The current modules are two, std and aragonos. Future modules could be giveth, superfluid, uniswap, safeā¦
A good example of the current structure of a module is std.
It has a main class that defines the name and loads the module helpers and commands.
Every module helper is defined in a different file within the helpers directory.
Every module command is also defined within a file, within the commands directory.
This structure is still in alpha, and is subject to heavy changes during the subsequent versions. Once we have a stable way to define modules, we will publish them on npm and apm, so other developers will be able to load their modules and define their custom commands and helpers.
The next module to integrate will probably be giveth.
@daniel-ospina@fartunov Believe we do not need to continue the previous process of ESD approval as the funding for this project is now approved by Main DAO as per this vote cc @Ricktik6
Hello everyone, the auto-completion feature (targeted for the end of September) took more time than we expected, and although huge progress has been made, we are going to delay its release to the end of October. We are also delaying the last release of this proposal (which includes simulations) to the end of November. This is why we are skipping Septemberās monthly payment, so we will get paid when we release what we promised. Thanks for your understanding; the next version will help a lot with the user experience of EVMcrispr. We will tell you more about it in the following days.
This last version has taken a bit more time than expected. Weāve been a little bit busy with ETHBogota, ETHLatam and Devcon this month. Weāve had the opportunity to see old faces and meet some wonderful new people during these events as well as participating in the ETHGlobal hackathon where we ended up finalists (you can check out the project here, if youāre interested ).
Anyway, we hope you like what this new version brings.
October 2022 EOM Report - v.0.8.0 āModular Consigliereā
v0.8.0, as its name may suggest, is a user-center version that seeks to improve the terminal UX by providing new auto-completion features which offers contextual code completion suggestions that take into account the previous commands that youāve typed in as well as the current commandās parameters to help you fill the next word.
Deliverables
Commands and helpers suggestions based on the current imported modules.
Method signature suggestions given a specific contract address.
Specific identifiers suggestions based on the command and argument position being filled.
Dynamic suggestions list that changes based on the previous commands.
Code highlighting: commands, helpers, keywords and literals
UI enhancements: wallet connection and error handling display.
Next steps
Weāll be working on the final version that offers transaction simulation features to to test the userās scripts.
Weāll also keep working on improving the auto-completion feature by fixing possible bugs and edge cases and adding support to a couple of missing commands.
We are about to release the last version funded by this financial proposal. We are very thankful for everything we could build, thanks to Aragon. In this final version, we are introducing the long-awaited simulations.
Simulations fork the blockchain from a certain point (present or past) and perform fictional operations to see if there are āno glitches in the Matrixā (no bugs in your script) before it is performed for real.
As usual, we request the community for the codename of this next version. These are the options:
Morphean simulation - You will be able to simulate transactions and see if the outcome is what you expect.
Intrepid daydreamer - You will be able to time-travel to the future or the past to explore the state of the blockchain.
Endless construct - Your simulation, your rules, so you will be able to impersonate other addresses (including contracts) to make them do what you wish.
0voters
We target November 26th for releasing it. Stay tuned.
On November 17, we released a patch called EVMcrispr v0.8.1 with the following changes:
New Features:
You can attach a script to the URL, which will be preloaded in the terminal (example).
The raw command is reintroduced in this version.
New arithmetic operator for exponentiation (^) in mathematical calculations.
The Goerli network is now supported by the EVMcrispr and the aragonos module.
The exec command can now process payable functions.
Gas is estimated by the wallet by default now.
New print command.
New autocompletion suggestions for Aragon agents and tokens retrieved with the @token helper.
Fixes:
Fix line endings in Windows. The new parser could not process multiline scripts in Windows due to how it treats line endings.
Some numbers were not processed as BigNumbers, making some operations impossible.
Network changes were not considered when processing the subsequent commands and helpers, making some operations fail.
The call operator (::) can process view functions with an underscore in them (such as token-manager::MINT_ROLE())
Fixes in the set command and @get helper.
EVMcrispr v0.9.0
Today we release EVMcrispr v0.9.0, āmorphean simualtionā, with the following new features:
New sequential interpreter, which makes it easier to write scripts in which one operation depends on the result of a previous one.
New tenderly module that can be used to fork the blockchain from a certain point, simulate transactions (from any address), and advance time. It introduces the following commands:
fork: Used to execute all the commands within a simulated blockchain fork from a specific block number and a specific address.
wait: Used to advance time and blocks in the simulated blockchain.
expect: Used to specify an expected outcome or test case.
New for command used to repeat many operations with different parameters.
This is a nice example on how simulations can be used to simulate a vote in a DAO and checking that everything is correct after the execution (you can also see the counterpart in ethers.js):
load tenderly as sim
switch gnosis
set $tenderly <user>/<project>/<apiKey>
set $token.tokenlist https://tokens.honeyswap.org
set $gardenHolder 0x5b0F8D8f47E3fDF7eE1c337AbCA19dBba98524e6
set $gardenVoters [0x6120f29ccb5b1DDaa5a747235F257Ef6cB47970F, 0xc89000E12C600b12D6e61a535cD3fedd4ac1eeC4, 0xa328500Eab25698b8b146D195F35f5b26C93AAEe]
set $somebodyElse 0x02d9cc72Bc796D2128E58c04B6e50A4E101c0be1
set $multisig 0xe6a1b6B98dc978888b0c83DbA2D5fabcF5069312
set $commonPool 0x4ba7362F9189572CbB1216819a45aba0d0B2D1CB
sim:fork 24850000 (
# Return funds to common pool and execute the vote #14
exec @token(HNY) transfer(address,uint256) $commonPool @token.balance(HNY,$multisig) --from $multisig
expect @token.balance(HNY,$commonPool) > 8000e18
set $voteId 14
set $executionScript 0x000000010b21081c6f8b1990f53fc76279cc41ba22d7afe200000084c35ac76d00000000000000000000000000000000000000000000000000000000009895b700000000000000000000000000000000000000000000000000000000001e8480000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000002c68af0bb140000
set $voting 0xfbd0b2726070a9d6aff6d7216c9e9340eae68b2a
for $gardenVoter of $gardenVoters (
exec $voting vote(uint256,bool) $voteId true --from $gardenVoter
)
wait 30d 5s
exec $voting executeVote(uint256,bytes) $voteId $executionScript
# Check new conviction settings are correct
set $conviction 0x0b21081c6f8b1990f53fc76279cc41ba22d7afe2
expect $conviction::decay() == 9999799
expect $conviction::maxRatio() == 2000000
expect $conviction::weight() == 10000
expect $conviction::minThresholdStakePercentage() == 200000000000000000
)
EVMcrispr documentation
With this deliverable we release a Cookbook with a series of āpre-cookedā recipes:
Total: $100,000 (90% USDC and 10% ANT) + 6,000 for an independent review.
Original Deliverables
v0.4.x (May 2022):
Introduce environment variables.
Introduce @sender(finally called @me), @token and @token.balance helpers.
v0.5.x (June 2022):
Restructure EVMcrispr library API.
Introduce @params.oracle(finally called --oracle option), @id and @now(finally extended to @date) helpers.
v0.6.x (July 2022):
Retrieve external contracts ABI from external sources (i. e., etherscan).
Introduce @ipfs, @calc, and @get helpers.
v0.7.x (August 2022):
Allow multi-transaction sending scripts to create many votes in many different DAOs in just one script.
Allow automatic chain switching.
v0.8.x (September 2022 ā October 2022):
Improve code highlighting and auto-completion in the EVMcrispr terminal. We are using the same editor as VS Code, which is highly configurable and will allow scripts to be written easier and faster.
v0.9.x (October 2022 ā November 2022):
Simulate the EVM scripts and notify the user if it will succeed before sending it.
Introduce the log(finally called print) command that provides more information about the simulated changes (token balances, app parametersā¦) during and after the execution of the script.
new-token: creates a MiniMe token, and we can use it when installing a new token manager.
new-dao: creates an empty DAO. Once available in the graph, you can install as many apps as you want and grant them permissions within a connect command.
raw: allows sending a transaction to an address with a custom data field.
for: allows repeating a set of actions for each element of an array.
Extra helpers:
@aragonEns: helper to find the addresses pointed by subdomains of aragonpm.eth and aragonid.eth.
Better frontend:
We added support to Wallet Connect.
We added a new footer on the terminal website, with the text āSponsored by Aragonā and the other organizations that support or previously supported us.
We use more modern technologies that make the website very fast: pnpm and vite.
We migrated the UI to use Chakra React components.
Improved security:
We registered evmcrispr.eth ENS, and EVMcrispr frontend is now available under https://evmcrispr.eth.limo.
We executed all the deliverables, although two features are failing, and we would like to fix them in subsequent versions of EVMcrispr.
Retrieve external contracts ABI from external sources. - It stopped working in the most recent versions, and we will prioritize a fix for this in the next EVMcrispr release. In the meantime, you can use the @get helper to interact with external contracts.
Complete multi-chain support for AragonOS module. - The aragonos module depends on the AragonOS subgraph in each network, and for some of them, it is not available. We will include support for those networks as soon as the subgraphs are available. Current available networks are are Mainnet, Goerli, and Gnosis Chain.
Short reflection on S1 and S2
We are very thankful for the tremendous impulse Aragon gave to EVMcrispr from v0.3.8 to v0.9.0.
During this time, EVMcrispr has passed from being a helpful tool for performing DAO-ops to being a fully-fledged scripting language for performing operations on different protocols (Curve, Sushi, Superfluid, Gnosis Safe, etc.).
We will continue developing the language and add new modules, so EVMcrispr can be even more potent in the future and allow Aragon DAOs (both old and new) to perform incrementally more complex transactions encoded with a simple language.
Stoked to see the evolution and to have been able to support and learn about this project. Thank you for the transparency provided throughout and the work delivered, as proposed and above and beyond. I trust this team will continue to grow from strength to strength. Keep killin it