-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Gitcoin bountyGitcoin bounty is availableGitcoin bounty is available
Description
Spells.fyi Subgraph Update
Spells.fyi is a public good tracking timelocked smart contract upgrades. This issue adds support for zkSync's timelock to the Spells.fyi subgraph.
- Website: https://spells.fyi/
- Subgraph: https://thegraph.com/explorer/subgraph/blocklytics/spells
- Code: https://github.com/blocklytics/spells-subgraph
Overview
zkSync offers a new type of timelock UpgradeGatekeeper which is an opt-out upgrade mechanism. From the docs:
A new upgrade must be announced via the zkSync contract and all users get 2 week notice period to exit in case they don't like the changes.
Contract
0x38A43F4330f24fe920F943409709fc9A6084C939
Notes
NoticePeriodStart is the name of the event that will be emitted at the start of upgrade.
Event parameters:
- version
- array of targets
- notice period duration
Workflow
- Add the contract to the subgraph manifest
- Add the contract's ABI to the ABI folder
- Add a mapping file for the contract with logging logic triggered by contract events to create/update:
- New
Timelockentity (see helpers) - New
Platformentity (see helpers) - New
Spellentity with required details (see schema) - New
Targetentities (see schema) - Update README
- QA against example queries from README
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Gitcoin bountyGitcoin bounty is availableGitcoin bounty is available