Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.13 KB

README.md

File metadata and controls

28 lines (19 loc) · 1.13 KB

Proposal Verifier

A tool to verify the specs of a proposal created through the Agent app of the API3 DAO

Parses the call data that was used to make the transaction that created a new vote to verify the target contract address, function, function parameters and value sent.

Instructions

  1. Clone the repo
  2. Run npm install in the project root
  3. Copy paste the provided proposal specification file under proposalSpecs/ with the file name ${PROPOSAL_NUMBER}.json
  4. Run PROPOSAL=${PROPOSAL_NUMBER} npm start in the project root (e.g. PROPOSAL=18 npm start)

Troubleshooting

  • The default ethers provider may sometimes rate limit you.

In that case, replace the provider with your own by using an environment variable:

# Export for the current shell session
export PROVIDER_URL=https://mainnet.infura.io/v3/<YOUR_INFURA_KEY>

# Alternatively, use as part of npm start
PROVIDER_URL=https://mainnet.infura.io/v3/<YOUR_INFURA_KEY> PROPOSAL=18 npm run start
  • Make sure that the adresses in the proposal specs are mixed-case for checksum. Otherwise, the proposal will not be verified even though the provided specs are correct.