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.
- Clone the repo
- Run
npm install
in the project root - Copy paste the provided proposal specification file under
proposalSpecs/
with the file name${PROPOSAL_NUMBER}.json
- Run
PROPOSAL=${PROPOSAL_NUMBER} npm start
in the project root (e.g.PROPOSAL=18 npm start
)
- 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.