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

    class YourSmartRollupIndexer {
    @indexCement()
    indexMyRollupCemented(
    operation: Applied<SmartRollupCementOperation>,
    dbContext: TDbContext,
    indexingContext: SmartRollupCementIndexingContext<TContextData, TRollupData>,
    ): void | PromiseLike<void> {
    // Your indexing code.
    }
    }

    Remark

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

    Returns MethodDecorator

Generated using TypeDoc