feat: add Maple GovernorTimelock to timelock monitoring#136
Merged
Conversation
Add Maple GovernorTimelock (0x2efff88747eb5a3ff00d4d8d0f0800e306c0426b) to cross-protocol timelock alerts. Handles "Maple" type with absolute timestamp delay (like Compound/Puffer) and proposalId display. Requires indexer update: chain-events/yearn-indexing-test#5 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add --protocol flag to filter events by protocol (e.g. --protocol MAPLE). Update README: add Maple to all type lists, complete monitored timelocks table with full addresses, fix --since-seconds default (43200/12h), document --protocol flag. Verified Maple Envio integration: 12 ProposalScheduled events fetched with --protocol MAPLE --no-cache --since-seconds 31536000. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
0x2eFFf88747EB5a3FF00d4d8d0f0800E306C0426b) to cross-protocol timelock monitoringMapletimelock type with absolute timestamp delay (like Compound/Puffer) and proposalId display--protocolflag to filter events by protocol (e.g.--protocol MAPLE)Dependency
Connection
The flow is:
ProposalScheduledevents from Maple GovernorTimelock → stores asTimelockEventwithtimelockType: "Maple"timelock_alerts.py) queries Envio forTimelockEventwheretimelockAddressmatches → formats alert with proposalId and delay → sends toTELEGRAM_CHAT_ID_MAPLETest results
Verified Envio indexer returns all Maple events:
All 12
ProposalScheduledevents (proposals 1–12) fetched successfully, matching on-chain data. Alert formatting works correctly with proposal IDs and executable delay display.Test plan
--protocol MAPLE --no-cache --since-seconds 31536000 --log-level DEBUG— 12 events fetched and formatted🤖 Generated with Claude Code