• The decorator for a method of a contract indexer to index changes of its storage.

    Example

    Demonstrates the method signature:

    import { DbContext } from '@tezos-dappetizer/database';
    import { indexStorageChange } from '@tezos-dappetizer/decorators';
    import { StorageChangeIndexingContext } from '@tezos-dappetizer/indexer';

    class YourContractIndexer {
    @indexStorageChange()
    indexMyContractStorageChange(
    newStorage: StronglyTypedChangedStorage,
    dbContext: DbContext,
    indexingContext: StorageChangeIndexingContext<TContextData, TContractData>,
    ): void | PromiseLike<void> {
    // Your indexing code.
    }
    }

    Remark

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

    Returns MethodDecorator

Generated using TypeDoc