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

    Example

    Demonstrates the method signature:

    import { DbContext } from '@tezos-dappetizer/database';
    import { indexBigMapDiff } from '@tezos-dappetizer/decorators';
    import { BigMapDiff, BigMapDiffIndexingContext } from '@tezos-dappetizer/indexer';

    class YourContractIndexer {
    @indexBigMapDiff({ name: 'ledger' })
    indexLedgerDiff(
    bigMapDiff: BigMapDiff,
    dbContext: DbContext,
    indexingContext: BigMapDiffIndexingContext<TContextData, TContractData>,
    ): void | PromiseLike<void> {
    // Your indexing code.
    }
    }

    Remark

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

    Parameters

    Returns MethodDecorator

Generated using TypeDoc