wannabehero / superhack Goto Github PK
View Code? Open in Web Editor NEWShortcuts – The Public Good for onchain interactions
Home Page: https://shortcuts.wtf
Shortcuts – The Public Good for onchain interactions
Home Page: https://shortcuts.wtf
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.
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:
{$executor}
{$chainId}
{$contract}
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).
Base "Stand with Crypto" NFT is minted via claim(...)
call on this contract: 0x874ad7c13935f73c7bbe94efbd8e766de2a585eb
My tx: https://basescan.org/tx/0x02ea820ee2d81af4f58f44184a13d5736e4ecb68580c3a8a9689a7a3bc0ad0a8
One of the args is a struct (uint256, uint256, address)
and we show it as a tuple
:
We should allow to set individual values inside for all struct components and encode them accordingly both for Safe and EOA calls.
See how we can add gasless shortcut execution
Explore and create new tickets for:
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.