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

    class YourSmartRollupIndexer {
    @indexExecuteOutboxMessage()
    indexMyRollupExecuteOutboxMessageed(
    operation: Applied<SmartRollupExecuteOutboxMessageOperation>,
    dbContext: TDbContext,
    indexingContext: SmartRollupExecuteOutboxMessageIndexingContext<TContextData, TRollupData>,
    ): void | PromiseLike<void> {
    // Your indexing code.
    }
    }

    Remark

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

    Returns MethodDecorator

Generated using TypeDoc