The decorator for a method of a contract indexer to index changes of its storage.
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. }}
This is based on ContractIndexer.indexStorageChange(...).
Generated using TypeDoc
The decorator for a method of a contract indexer to index changes of its storage.
Example
Demonstrates the method signature:
Remark
This is based on ContractIndexer.indexStorageChange(...).