• Experimental

    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 { indexTimeout } from '@tezos-dappetizer/decorators';
    import { Applied, SmartRollupTimeoutIndexingContext } from '@tezos-dappetizer/indexer';

    class YourSmartRollupIndexer {
    @indexTimeout()
    indexMyRollupTimeouted(
    operation: Applied<SmartRollupTimeoutOperation>,
    dbContext: TDbContext,
    indexingContext: SmartRollupTimeoutIndexingContext<TContextData, TRollupData>,
    ): void | PromiseLike<void> {
    // Your indexing code.
    }
    }

    Remark

    This is based on SmartRollupIndexer.indexTimeout(...).

    Returns MethodDecorator

Generated using TypeDoc