Skip to content
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 the upgrade version to the upgrade event #72

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ type Upgrade @entity {
# End – default data block

impl: Bytes
version: String!
type: String
}

Expand Down
1 change: 1 addition & 0 deletions src/ERC1155Mappings/factoryMappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export function handle1155FactoryUpgraded(event: Upgraded): void {
upgrade.block = event.block.number;
upgrade.timestamp = event.block.timestamp;
upgrade.impl = event.params.implementation;
upgrade.version = creator.contractVersion();
upgrade.address = event.address;
upgrade.type = "1155Factory";

Expand Down
1 change: 1 addition & 0 deletions src/ERC721Mappings/ERC721FactoryMappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export function handleFactoryUpgraded(event: Upgraded): void {
upgrade.block = event.block.number;
upgrade.timestamp = event.block.timestamp;
upgrade.impl = event.params.implementation;
upgrade.version = creator.contractVersion().toString();
upgrade.address = event.address;
upgrade.type = "721Factory";

Expand Down