• The decorator for a method of a contract indexer to index its origination operation.

    Example

    Demonstrates the method signature:

    import { DbContext } from '@tezos-dappetizer/database';
    import { indexOrigination } from '@tezos-dappetizer/decorators';
    import { OriginationIndexingContext } from '@tezos-dappetizer/indexer';

    class YourContractIndexer {
    @indexOrigination()
    indexMyContractOrigination(
    initialStorage: StronglyTypedInitialStorage,
    dbContext: DbContext,
    indexingContext: OriginationIndexingContext<TContextData, TContractData>,
    ): void | Promise<void> {
    // Your indexing code.
    }
    }

    Remark

    This is based on ContractIndexer.indexOrigination(...).

    Returns MethodDecorator

Generated using TypeDoc