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 { indexEntrypoint } from '@tezos-dappetizer/decorators';import { TransactionIndexingContext } from '@tezos-dappetizer/indexer';class YourContractIndexer { @indexEntrypoint('foo_entrypoint') indexFoo( parameter: StronglyTypedFooParameter, dbContext: DbContext, indexingContext: TransactionIndexingContext<TContextData, TContractData>, ): void | PromiseLike<void> { // Your indexing code. }}
If you want to index all entrypoints with a single method, then see indexTransaction decorator.
This is based on ContractIndexer.indexTransaction(...).
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
If you want to index all entrypoints with a single method, then see indexTransaction decorator.
Remark
This is based on ContractIndexer.indexTransaction(...).