• 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 { indexEvent } from '@tezos-dappetizer/decorators';
    import { EventIndexingContext } from '@tezos-dappetizer/indexer';

    class YourContractIndexer {
    @indexEvent('product_ordered')
    indexProductOrdered(
    payload: StronglyTypedProductOrderedPayload | null,
    dbContext: DbContext,
    indexingContext: EventIndexingContext<TContextData, TContractData>,
    ): void | PromiseLike<void> {
    // Your indexing code.
    }
    }

    Remark

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

    Parameters

    • tag: null | string

    Returns MethodDecorator

Generated using TypeDoc