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
- Host: GitHub
- URL: https://github.com/api3dao/proposal-verifier
- Owner: api3dao
- Created: 2020-09-30T12:22:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-12T15:50:50.000Z (over 3 years ago)
- Last Synced: 2023-03-03T20:09:24.235Z (about 3 years ago)
- Language: JavaScript
- Homepage:
- Size: 203 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.