An open API service indexing awesome lists of open source software.

https://github.com/api3dao/proposal-verifier

A tool to verify the specs of a proposal created through the Agent app of the DAOv1
https://github.com/api3dao/proposal-verifier

Last synced: 8 days ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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
1. Run `npm install` in the project root
1. Copy paste the provided proposal specification file under `proposalSpecs/` with the file name `${PROPOSAL_NUMBER}.json`
1. 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:
```sh
# Export for the current shell session
export PROVIDER_URL=https://mainnet.infura.io/v3/

# Alternatively, use as part of npm start
PROVIDER_URL=https://mainnet.infura.io/v3/ 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.