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

    class YourSmartRollupIndexer {
    @indexRefute()
    indexMyRollupRefuteed(
    operation: Applied<SmartRollupRefuteOperation>,
    dbContext: TDbContext,
    indexingContext: SmartRollupRefuteIndexingContext<TContextData, TRollupData>,
    ): void | PromiseLike<void> {
    // Your indexing code.
    }
    }

    Remark

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

    Returns MethodDecorator

Generated using TypeDoc