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

    class YourSmartRollupIndexer {
    @indexAddMessages()
    indexMyMessages(
    operation: Applied<SmartRollupAddMessagesOperation>,
    dbContext: TDbContext,
    indexingContext: SmartRollupAddMessagesIndexingContext<TContextData>,
    ): void | PromiseLike<void> {
    // Your indexing code.
    }
    }

    Remark

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

    Returns MethodDecorator

Generated using TypeDoc