Giter Site home page Giter Site logo

superhack's People

Contributors

wannabehero avatar yabalaban avatar

Stargazers

 avatar  avatar

Watchers

 avatar

superhack's Issues

Add autocomplete and validation for templated values

Actions allow to use {argument} as a value when defining a shortcut.

Right now it's implied that {argument} exist among shortcut's inputs.

We need to validate that before creation, and also add autocomplete for the action fields (you either enter plain value or a {templated} one which should be displayed in some fancy way.

Add dynamic inputs

It's worth adding some dynamic and "system" inputs.

We can prefix them with $ (or other) to label them as "reserved"

Some of the simple ideas I had:

  • current wallet (executor) address: {$executor}
  • current chain id: {$chainId}
  • current action's contract address: {$contract}

Create shortcuts from transactions

We should allow creating actions from my previous transactions (present an option and a list) or by referencing any onchain transaction (populate values from tx hash).

Explore Cross-Chain calls

Explore and create new tickets for:

  • execute shortcuts from other chains
  • add cross-chain actions – shortcuts can contain actions from different chains

Allow to use results of `view` functions as action inputs

I imagined that we can define inputs for shortcuts not only by name: type as we do now, but also name: <view_function_result>.

<view_function_result> is another action that points to the contract and accepts arguments, but selects a view or pure function from the contract. It can also reference another view_function.

Before executing an action, all inputs should be resolved. Right now it works for ETH value and ENS names – view functions should work in a similar fashion: making an RPC call to set a value.

Batch simulation

Right now Simulate only works work with one action at a time.

We should fix it for complex shortcuts so all actions simulated in batch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.