Decorator: indexBigMapUpdate
class YourContractIndexer {
@indexBigMapUpdate({ name: 'ledger' })
indexLedgerUpdate(
key: StronglyTypedBigMapKey,
value: StronglyTypedBigMapValue,
dbContext: TDbContext,
indexingContext: StorageChangeIndexingContext<TData, TContractData>,
): void | Promise<void> {
// Your code to index the storage change.
}
}
Also support matching by big map path
. Also id
? It can change...
Also add it to generator.
Edited by Peter Smolinský