Nouns On-Chain Proposal Simulation and Analysis
Technical reports for all reviewed proposals can be found in the reports folder.
Simulation is a useful tool for inspecting execution of complex on-chain proposals, but it's not the only tool that should be used. Consult the report template for additional review steps.
- Install the Tenderly CLI
- Login to the Tenderly CLI using
tenderly login
- Configure Tenderly exporting using
tenderly export init
- Copy the sample environment file to
.env
and populate
- Simulate proposal execution
yarn task:simulate-proposal --id [proposal_id]
- Export the execution transaction for inspection
tenderly export [transaction_id]
Proposal test coverage is useful when the proposal is of low to moderate complexity. Test coverage is not exhaustive.
Running Tests
Prior to running a proposal test suite, simulate the proposal using the the above command and leave the node running.
Once simulation completes, use the following command to run the proposal test suite:
yarn test:proposal [id]
Writing Tests
Use test/proposal-37.test.ts
as an example.
Note that the file name must be of format: proposal-[id].test.ts
.