• The decorator for a method of a contract indexer to index updates of the specified big map.

    Example

    Demonstrates the method signature:

    import { DbContext } from '@tezos-dappetizer/database';
    import { indexBigMapUpdate } from '@tezos-dappetizer/decorators';
    import { BigMapUpdateIndexingContext } from '@tezos-dappetizer/indexer';

    class YourContractIndexer {
    @indexBigMapUpdate({ name: 'ledger' })
    indexLedgerUpdate(
    key: StronglyTypedBigMapKey,
    value: StronglyTypedBigMapValue | null, // Null if entry removal.
    dbContext: DbContext,
    indexingContext: BigMapUpdateIndexingContext<TContextData, TContractData>,
    ): void | PromiseLike<void> {
    // Your indexing code.
    }
    }

    Remark

    This is based on ContractIndexer.indexBigMapUpdate(...).

    Parameters

    Returns MethodDecorator

Generated using TypeDoc