Try โ€‚โ€‰HackMD

How to check the evm script from Aragon vote

We've published a short replit from the script parts we're using for preparing the votes: https://replit.com/@VictorSuzdalev/EVMVoteScriptParser#main.py

Checking the evm script

  1. Start replit.

    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More โ†’

    1. Open https://replit.com/@VictorSuzdalev/EVMVoteScriptParser#main.py
    2. Click big green RUN button at the top.
    3. The script will start installing dependencies โ€” this takes couple minutes.
  2. Get the evm script from the vote.

    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More โ†’

    1. Open voting contract on etherscan https://etherscan.io/address/0x2e59A20f205bB85a89C53f1936454680651E618e#readProxyContract (can check the voting contract address at https://docs.lido.fi/deployed-contracts#dao-contracts).
    2. Check the getVote method (sixth in the list): enter the vote in question, push query.
    3. Copy the script text (long string starting with 0x).
  3. Check the script

    1. Get back to replit, wait for setup to pass.
    2. The replit will ask for the evm script โ€” paste the text from etherscan and push enter to see the actions in the script.
      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More โ†’

      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More โ†’

That's it! ๐Ÿ’ช๐ŸŽ‰๐Ÿ

How to check the replit itself

  • One can compare the parsing results for already passed votes with descriptions on Aragon UI (vote 86 may be a cool example)
  • The replit code is available under Show files button on the left; it's heavily based on the scripts & tooling from the https://github.com/lidofinance/scripts repo