Skip to content

Spells.fyi - Support for zkSync Timelock Tracking #28

@calebsheridan

Description

@calebsheridan

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.

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 Timelock entity (see helpers)
  • New Platform entity (see helpers)
  • New Spell entity with required details (see schema)
  • New Target entities (see schema)
  • Update README
  • QA against example queries from README

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions