The decorator for a method of a contract indexer to index its transactions with the specified entrypoint.
Demonstrates the method signature:
import { DbContext } from '@tezos-dappetizer/database';import { indexEvent } from '@tezos-dappetizer/decorators';import { EventIndexingContext } from '@tezos-dappetizer/indexer';class YourContractIndexer { @indexEvent('product_ordered') indexProductOrdered( payload: StronglyTypedProductOrderedPayload | null, dbContext: DbContext, indexingContext: EventIndexingContext<TContextData, TContractData>, ): void | PromiseLike<void> { // Your indexing code. }}
This is based on ContractIndexer.indexEvent(...).
Generated using TypeDoc
The decorator for a method of a contract indexer to index its transactions with the specified entrypoint.
Example
Demonstrates the method signature:
Remark
This is based on ContractIndexer.indexEvent(...).