refactor: metadataUpdate handlers in the subgraph (#187)

* feat: update newMint and add verifier and apAutoApproval, update subgraph accordingly.

* remove: bugged tests.

* refactor: update metadataUpdate handlers to match the new interface.
This commit is contained in:
Shredder 2023-03-17 19:43:43 +03:30 committed by GitHub
parent 2eca4be8f0
commit 4682be82e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -6,6 +6,7 @@ import {
MetadataUpdate1 as MetadataUpdateEvent1, MetadataUpdate1 as MetadataUpdateEvent1,
MetadataUpdate2 as MetadataUpdateEvent2, MetadataUpdate2 as MetadataUpdateEvent2,
MetadataUpdate3 as MetadataUpdateEvent3, MetadataUpdate3 as MetadataUpdateEvent3,
MetadataUpdate4 as MetadataUpdateEvent4,
} from '../generated/FleekNFA/FleekNFA'; } from '../generated/FleekNFA/FleekNFA';
// Entity Imports [based on the schema] // Entity Imports [based on the schema]
@ -16,7 +17,7 @@ import {
} from '../generated/schema'; } from '../generated/schema';
export function handleMetadataUpdateWithStringValue( export function handleMetadataUpdateWithStringValue(
event: MetadataUpdateEvent event: MetadataUpdateEvent1
): void { ): void {
/** /**
* Metadata handled here: * Metadata handled here:
@ -62,7 +63,7 @@ export function handleMetadataUpdateWithStringValue(
} }
export function handleMetadataUpdateWithDoubleStringValue( export function handleMetadataUpdateWithDoubleStringValue(
event: MetadataUpdateEvent2 event: MetadataUpdateEvent3
): void { ): void {
/** /**
* setTokenBuild * setTokenBuild
@ -101,7 +102,7 @@ export function handleMetadataUpdateWithDoubleStringValue(
} }
export function handleMetadataUpdateWithIntValue( export function handleMetadataUpdateWithIntValue(
event: MetadataUpdateEvent1 event: MetadataUpdateEvent2
): void { ): void {
/** /**
* setTokenColor * setTokenColor
@ -132,7 +133,7 @@ export function handleMetadataUpdateWithIntValue(
} }
export function handleMetadataUpdateWithBooleanValue( export function handleMetadataUpdateWithBooleanValue(
event: MetadataUpdateEvent3 event: MetadataUpdateEvent4
): void { ): void {
/** /**
* accessPointAutoApproval * accessPointAutoApproval