@proto-kit/indexer • Docs
Documentation / @proto-kit/indexer / IndexBlockTask
Class: IndexBlockTask
Used by various module sub-types that may need to be configured
Extends
Implements
Constructors
new IndexBlockTask()
new IndexBlockTask(
taskSerializer,blockStorage,blockRepository,transactionStorage):IndexBlockTask
Parameters
• taskSerializer: IndexBlockTaskParametersSerializer
• blockStorage: BlockQueue
• blockRepository: BlockStorage
• transactionStorage: TransactionStorage
Returns
Overrides
Defined in
indexer/src/tasks/IndexBlockTask.ts:34
Properties
blockStorage
blockStorage:
BlockQueue
Defined in
indexer/src/tasks/IndexBlockTask.ts:37
currentConfig
protectedcurrentConfig:undefined|NoConfig
Store the config separately, so that we can apply additional checks when retrieving it via the getter
Inherited from
TaskWorkerModule.currentConfig
Defined in
common/dist/config/ConfigurableModule.d.ts:17
name
name:
string="index-block"
Implementation of
Defined in
indexer/src/tasks/IndexBlockTask.ts:32
taskSerializer
taskSerializer:
IndexBlockTaskParametersSerializer
Defined in
indexer/src/tasks/IndexBlockTask.ts:35
transactionStorage
transactionStorage:
TransactionStorage
Defined in
indexer/src/tasks/IndexBlockTask.ts:41
Accessors
config
Get Signature
get config():
Config
Returns
Config
Set Signature
set config(
config):void
Parameters
• config: Config
Returns
void
Inherited from
Defined in
common/dist/config/ConfigurableModule.d.ts:18
Methods
compute()
compute(
input):Promise<IndexBlockResult>
Parameters
• input: IndexBlockTaskParameters[]
Returns
Promise<IndexBlockResult>
Implementation of
Defined in
indexer/src/tasks/IndexBlockTask.ts:75
create()
create(
childContainerProvider):void
Parameters
• childContainerProvider: ChildContainerProvider
Returns
void
Inherited from
Defined in
common/dist/config/ConfigurableModule.d.ts:20
inputSerializer()
inputSerializer():
TaskSerializer<IndexBlockTaskParameters[]>
Returns
TaskSerializer<IndexBlockTaskParameters[]>
Implementation of
Defined in
indexer/src/tasks/IndexBlockTask.ts:118
prepare()
prepare():
Promise<void>
Returns
Promise<void>
Implementation of
Defined in
indexer/src/tasks/IndexBlockTask.ts:47
resultSerializer()
resultSerializer():
TaskSerializer<IndexBlockResult>
Returns
TaskSerializer<IndexBlockResult>