• The decorator for a method of a contract indexer to index all its transactions regardless of entrypoint.


    Demonstrates the method signature:

    import { DbContext } from '@tezos-dappetizer/database';
    import { indexTransaction } from '@tezos-dappetizer/decorators';
    import { TransactionIndexingContext } from '@tezos-dappetizer/indexer';

    class YourContractIndexer {
    // You may want a union with narrowing on the entrypoint.
    parameter: { entrypoint: string; value: unknown },
    dbContext: DbContext,
    indexingContext: TransactionIndexingContext<TContextData, TContractData>,
    ): void | PromiseLike<void> {
    // Your indexing code.


    If you want a method to index only a specific entrypoint, then see indexEntrypoint decorator.


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

    Returns MethodDecorator

Generated using TypeDoc