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

    class YourSmartRollupIndexer {
    @indexOriginate()
    indexMyRollupOriginateed(
    operation: Applied<SmartRollupOriginateOperation>,
    dbContext: TDbContext,
    indexingContext: SmartRollupOriginateIndexingContext<TContextData, TRollupData>,
    ): void | PromiseLike<void> {
    // Your indexing code.
    }
    }

    Remark

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

    Returns MethodDecorator

Generated using TypeDoc