-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add upgrade paths subgraph entity #74
base: add-contract-version-to-upgrade-event
Are you sure you want to change the base?
Add upgrade paths subgraph entity #74
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite. Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
What if we added |
function getContractVersion(address: Bytes): ContractVersion { | ||
const contractVersion = new ContractVersion(address); | ||
|
||
const versionString = ZoraCreator1155Impl.bind(address).contractVersion(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try_contractVersion()
also make it optional OR required and just skip the entity when it doesn't exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this makes sense, but it seems like it is not failing when looking for this in the factory handler here so do you think we'd be ok without try
since it doesn't fail there?
66d5e19
to
b1a11a1
Compare
Anything this needs to be able to be merged? Would be a great addition to the subgraph. |
got stuck on an issue: on the upgradeGate handler, which doesn't make much sense. tabling for now as was able to write a script that got what i needed with subgraph joins and rpc read calls |
Cool, I'll try to fix that then. |
Added subgraph for upgrade paths, that contains a mapping of:
upgrade from address & version <=> upgrade to address & version
this hasn't been tested yet