diff --git a/src/mappings/multiTokens/events/reserved.ts b/src/mappings/multiTokens/events/reserved.ts index 741272e14..a3971ac98 100644 --- a/src/mappings/multiTokens/events/reserved.ts +++ b/src/mappings/multiTokens/events/reserved.ts @@ -5,6 +5,7 @@ import { TokenAccount, TokenNamedReserve } from '../../../model' import { MultiTokensReservedEvent } from '../../../types/generated/events' import { Event } from '../../../types/generated/support' import { CommonContext } from '../../types/contexts' +import { syncCollectionStats } from '../../../jobs/collection-stats' function getEventData(ctx: CommonContext, eventItem: Event) { const event = new MultiTokensReservedEvent(ctx, eventItem) @@ -49,5 +50,7 @@ export async function reserved( ctx.store.save(tokenAccount) } + syncCollectionStats(data.collectionId.toString()) + return undefined } diff --git a/src/mappings/multiTokens/events/transferred.ts b/src/mappings/multiTokens/events/transferred.ts index 89a868097..5265ab5c7 100644 --- a/src/mappings/multiTokens/events/transferred.ts +++ b/src/mappings/multiTokens/events/transferred.ts @@ -15,6 +15,7 @@ import { import { CommonContext } from '../../types/contexts' import { Event } from '../../../types/generated/support' import { getOrCreateAccount } from '../../util/entities' +import { syncCollectionStats } from '../../../jobs/collection-stats' function getEventData(ctx: CommonContext, event: Event) { const data = new MultiTokensTransferredEvent(ctx, event) @@ -106,5 +107,7 @@ export async function transferred( ctx.store.save(account) } + syncCollectionStats(data.collectionId.toString()) + return getEvent(item, data) }