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

    class YourSmartRollupIndexer {
    @indexRecoverBond()
    indexMyRollupRecoverBonded(
    operation: Applied<SmartRollupRecoverBondOperation>,
    dbContext: TDbContext,
    indexingContext: SmartRollupRecoverBondIndexingContext<TContextData, TRollupData>,
    ): void | PromiseLike<void> {
    // Your indexing code.
    }
    }

    Remark

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

    Returns MethodDecorator

Generated using TypeDoc