• The decorator for a method of a contract indexer to index its transactions with the specified entrypoint.

    Example

    Demonstrates the method signature:

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

    class YourContractIndexer {
    @indexEntrypoint('foo_entrypoint')
    indexFoo(
    parameter: StronglyTypedFooParameter,
    dbContext: DbContext,
    indexingContext: TransactionIndexingContext<TContextData, TContractData>,
    ): void | PromiseLike<void> {
    // Your indexing code.
    }
    }

    Remark

    If you want to index all entrypoints with a single method, then see indexTransaction decorator.

    Remark

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

    Parameters

    • entrypoint: string

    Returns MethodDecorator

Generated using TypeDoc