@proto-kit/indexerDocs


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

IndexBlockTask

Overrides

TaskWorkerModule.constructor

Defined in

indexer/src/tasks/IndexBlockTask.ts:34

Properties

blockStorage

blockStorage: BlockQueue

Defined in

indexer/src/tasks/IndexBlockTask.ts:37


currentConfig

protected currentConfig: 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

Task.name

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

TaskWorkerModule.config

Defined in

common/dist/config/ConfigurableModule.d.ts:18

Methods

compute()

compute(input): Promise<IndexBlockResult>

Parameters

input: IndexBlockTaskParameters[]

Returns

Promise<IndexBlockResult>

Implementation of

Task.compute

Defined in

indexer/src/tasks/IndexBlockTask.ts:75


create()

create(childContainerProvider): void

Parameters

childContainerProvider: ChildContainerProvider

Returns

void

Inherited from

TaskWorkerModule.create

Defined in

common/dist/config/ConfigurableModule.d.ts:20


inputSerializer()

inputSerializer(): TaskSerializer<IndexBlockTaskParameters[]>

Returns

TaskSerializer<IndexBlockTaskParameters[]>

Implementation of

Task.inputSerializer

Defined in

indexer/src/tasks/IndexBlockTask.ts:118


prepare()

prepare(): Promise<void>

Returns

Promise<void>

Implementation of

Task.prepare

Defined in

indexer/src/tasks/IndexBlockTask.ts:47


resultSerializer()

resultSerializer(): TaskSerializer<IndexBlockResult>

Returns

TaskSerializer<IndexBlockResult>

Implementation of

Task.resultSerializer

Defined in

indexer/src/tasks/IndexBlockTask.ts:131