Decorator: indexBigMapDiff
class YourContractIndexer {
@indexBigMapDiff({ name: 'ledger' })
indexLedgerDiff(
diff: BigMapDiff,
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...