Description
Governance must be verified end-to-end: creating a proposal, voting, waiting for the timelock, executing, and verifying the parameter change takes effect in the main contract.
Requirements and context
- Create a governance proposal to change
MIN_INVOICE_AMOUNT
- Cast votes to pass quorum
- Wait for the voting period to close (use ledger fast-forward if available on local node)
- Execute the proposal after timelock
- Verify the main contract uses the new
MIN_INVOICE_AMOUNT by submitting a below-threshold invoice and confirming rejection
Suggested execution
git checkout -b test/e2e-governance
- Create
tests/e2e/governance.test.ts
- Implement ledger fast-forward helper if local node supports it
- Write proposal lifecycle and parameter verification tests
Example commit message
test(e2e): add governance proposal lifecycle E2E tests
Description
Governance must be verified end-to-end: creating a proposal, voting, waiting for the timelock, executing, and verifying the parameter change takes effect in the main contract.
Requirements and context
MIN_INVOICE_AMOUNTMIN_INVOICE_AMOUNTby submitting a below-threshold invoice and confirming rejectionSuggested execution
tests/e2e/governance.test.tsExample commit message
test(e2e): add governance proposal lifecycle E2E tests