Conversation
…heduledMostRecentPastSnapshot + create CLAUDE and AGENTS files
…nd prevent getNextSnapshots underflow
…tBalanceOfExact, snapshotTotalSupplyExact) and enforce scheduled-time checks
…alize due snapshots
…dvancement with access-controlled poke() and coverage tests
…Documentation, Testing) and align notes with latest OZ (5.6.1)/CMTAT(3.2.0) updates
…e2Step deployment variant, and update moved deployment contract paths plus shared cross-auth snapshot tests
… CMTAT/engine bases and refactor reusable multi-mode snapshot test suites/helpers
…r, and v3.2.0-compatible CMTAT fallback deployments
…apshotCompatible and update docs/changelog accordingly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dependencies
CMTAT v3.2.0.CMTATBaseRuleEngineimport path (1_CMTATBaseRuleEngine.sol->2_CMTATBaseRuleEngine.sol).IERC3643BasetoIERC3643Version.@openzeppelin/contractsand@openzeppelin/contracts-upgradeable5.6.1.Documentation
0.3.0known issue and0.4.0resolution forgetNextSnapshots()arithmetic underflow when no future snapshots remain.snapshotExists(time)snapshotBalanceOfExact(time, tokenHolder)(reverts iftimeis not scheduled)snapshotTotalSupplyExact(time)(reverts iftimeis not scheduled)SnapshotMaterialized(time, blockNumber)emitted when_setCurrentSnapshot()advances.poke()can be used by authorized accounts to materialize due snapshots without requiring token transfers.Ownable2Step(SnapshotEngineOwnable2Step) and refactor shared deployment logic intoSnapshotEngineBaseto minimize duplication.CMTATStandaloneSnapshot(standalone/non-proxy deployment) and refactor shared CMTAT+snapshot behavior intoCMTATSnapshotBaseto minimize duplication withCMTATUpgradeableSnapshot.Testing
poke()access control and idempotent behavior.SnapshotUnschedule(time)emission inunscheduleSnapshotNotOptimized.SnapshotEngineOwnable2Steptest suite and share common snapshot behavior tests across AccessControl and Ownable variants.