Skip to content

Comments

feat: add Maple GovernorTimelock to timelock monitoring#136

Merged
spalen0 merged 2 commits intomainfrom
feat/maple-timelock-monitoring
Feb 24, 2026
Merged

feat: add Maple GovernorTimelock to timelock monitoring#136
spalen0 merged 2 commits intomainfrom
feat/maple-timelock-monitoring

Conversation

@spalen0
Copy link
Collaborator

@spalen0 spalen0 commented Feb 20, 2026

Summary

  • Add Maple GovernorTimelock (0x2eFFf88747EB5a3FF00d4d8d0f0800E306C0426b) to cross-protocol timelock monitoring
  • Handles Maple timelock type with absolute timestamp delay (like Compound/Puffer) and proposalId display
  • Add --protocol flag to filter events by protocol (e.g. --protocol MAPLE)
  • Updates timelock README: add Maple to all type lists, complete monitored timelocks table with full addresses, fix docs defaults

Dependency

Connection

The flow is:

  1. Envio indexer indexes ProposalScheduled events from Maple GovernorTimelock → stores as TimelockEvent with timelockType: "Maple"
  2. This script (timelock_alerts.py) queries Envio for TimelockEvent where timelockAddress matches → formats alert with proposalId and delay → sends to TELEGRAM_CHAT_ID_MAPLE

Test results

Verified Envio indexer returns all Maple events:

$ uv run python -m timelock.timelock_alerts --protocol MAPLE --no-cache --since-seconds 31536000 --log-level DEBUG --limit 500

Filtering to protocol MAPLE: 1 timelocks
Fetched 12 TimelockEvent events
Processing 12 operations from 12 events

All 12 ProposalScheduled events (proposals 1–12) fetched successfully, matching on-chain data. Alert formatting works correctly with proposal IDs and executable delay display.

Test plan

🤖 Generated with Claude Code

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>
@spalen0 spalen0 merged commit 70dc221 into main Feb 24, 2026
2 checks passed
@spalen0 spalen0 deleted the feat/maple-timelock-monitoring branch February 24, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant