-
Notifications
You must be signed in to change notification settings - Fork 396
Governor: fix state at snapshot #1606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ericnordelo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
bidzyyys
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some nits.
packages/governance/src/tests/governor/timestamp/test_governor_timelock_execution.cairo
Show resolved
Hide resolved
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v3.0.0-rc #1606 +/- ##
============================================
Coverage ? 92.63%
============================================
Files ? 85
Lines ? 2282
Branches ? 0
============================================
Hits ? 2114
Misses ? 168
Partials ? 0
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
* Improve `AccessControlDefaultAdminRules` admin transfer delay change logic (#1567) * Chore(deps): Bump stefanzweifel/git-auto-commit-action (#1553) Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 6.0.1 to 7.0.0. - [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases) - [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md) - [Commits](stefanzweifel/git-auto-commit-action@778341a...28e16e8) --- updated-dependencies: - dependency-name: stefanzweifel/git-auto-commit-action dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update foundry to 0.51.0 (#1555) * feat: update to 0.51.0 * feat: update CHANGELOG * Update packages/testing/src/common.cairo Co-authored-by: Copilot <[email protected]> * feat: update to 0.51.1 --------- Co-authored-by: Copilot <[email protected]> * Release openzeppelin_testing v6.0.0 (#1556) * feat: update to 0.51.0 * feat: update CHANGELOG * Update packages/testing/src/common.cairo Co-authored-by: Copilot <[email protected]> * feat: update CHANGELOG * Bump openzeppelin_testing version to 6.0.0 and update docs * feat: update to 0.51.1 --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: ericnordelo <[email protected]> * Update contract sizes benchmark (#1559) Co-authored-by: ericnordelo <[email protected]> * Remove the coverage_incompatible feature (#1558) * feat: update to 0.51.0 * feat: update CHANGELOG * Update packages/testing/src/common.cairo Co-authored-by: Copilot <[email protected]> * feat: remove the feature * feat: update to 0.51.1 --------- Co-authored-by: Copilot <[email protected]> * chore: remove repetitive word in comment (#1561) Signed-off-by: vastonus <[email protected]> * Chore(deps): Bump crate-ci/typos from 1.38.1 to 1.39.0 (#1562) Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.38.1 to 1.39.0. - [Release notes](https://github.com/crate-ci/typos/releases) - [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md) - [Commits](crate-ci/typos@80c8a49...07d900b) --- updated-dependencies: - dependency-name: crate-ci/typos dependency-version: 1.39.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump snforge to 0.51.2 (#1563) * Bump snforge version to 0.51.2 * Add changelog entry for snforge update to 0.51.2 * Bump Cairo to v2.13.1 (#1565) * Update contract sizes benchmark (#1566) Co-authored-by: immrsd <[email protected]> * feat: improve logic * feat: apply review comments * feat: update CHANGELOG --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: vastonus <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]> Co-authored-by: ericnordelo <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: vastonus <[email protected]> Co-authored-by: immrsd <[email protected]> * Add a note clarifying EIP-6372 clock bounds (#1600) * Remove unused NEGATIVE_FEE error code (#1599) * Clarify `ERC-4626` fees flow (#1602) * Add a note to ERC4626HooksTrait * Add clarifying comments to ERC4626 mocks * Clarify `Governor` voting start (#1598) * Add doc requirement clarifying that voting starts only after snapshot * Mint initial supply at deployment for Votes mocks * Add additional test cases for block-number-based governor voting * Add additional test cases for timestamp-based governor voting * Format files * Governor: fix state at snapshot (#1606) * Make state resolving logic consistent with Solidity * Fix timestamp in Governor tests * Add tests checking Governor Pending state at snapshot timestamp * Add changelog entry * Format files * Fix changelog entry * Extract duplicated logic into helper func in tests * Reduce number of fuzzer runs * Fix setup-snfoundry version in tests workflow * Set number of fuzzer runs to 200 * Fix setup-snfoundry version * Add v3.0.0 audit report (#1612) * Add v3.0.0 updates to changelog * Bump version to 3.0.0 and update presets page * Update version of utils and interfaces modules to 2.1.0 * Update readmes * Fix root dir in update-readme script * Fix version in MetaTransactionV0 preset --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: vastonus <[email protected]> Co-authored-by: Eric Nordelo <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]> Co-authored-by: ericnordelo <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: vastonus <[email protected]>
Addressed the minor audit finding by changing the Governor state resolution at snapshot timepoint from
ActivetoPending