blocklytics / spells-subgraph

Graph protocol subgraph for Spells.fyi
MIT License
6 stars 2 forks source link

Dharma `UpgradeBeaconControllers` and `Upgrade` event #12

Closed calebsheridan closed 4 years ago

calebsheridan commented 4 years ago

Description

UpgradeBeaconControllers emit an Upgrade event when the spell is cast. This upgrade event should be used to update the Tx entity's execution-related fields.

Template

A template should be used in subgraph.yaml.

The template should create a new object in createAndReturnTx function.

New mapping

A new mapping is needed for the template to handle Upgrade event.