@proto-kit/sequencerDocs


Documentation / @proto-kit/sequencer / NewBlockTask

Class: NewBlockTask

Used by various module sub-types that may need to be configured

Extends

Implements

Constructors

new NewBlockTask()

new NewBlockTask(protocol, executionContext, compileRegistry): NewBlockTask

Parameters

protocol: Protocol<MandatoryProtocolModulesRecord>

executionContext: ProvableMethodExecutionContext

compileRegistry: CompileRegistry

Returns

NewBlockTask

Overrides

TaskWorkerModule.constructor

Defined in

packages/sequencer/src/protocol/production/tasks/NewBlockTask.ts:77

Properties

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

packages/common/dist/config/ConfigurableModule.d.ts:17


name

readonly name: "newBlock" = "newBlock"

Implementation of

Task.name

Defined in

packages/sequencer/src/protocol/production/tasks/NewBlockTask.ts:75

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

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

Methods

compute()

compute(input): Promise<BlockProof>

Parameters

input: NewBlockProvingParameters

Returns

Promise<BlockProof>

Implementation of

Task.compute

Defined in

packages/sequencer/src/protocol/production/tasks/NewBlockTask.ts:118


create()

create(childContainerProvider): void

Parameters

childContainerProvider: ChildContainerProvider

Returns

void

Inherited from

TaskWorkerModule.create

Defined in

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


inputSerializer()

inputSerializer(): TaskSerializer<NewBlockProvingParameters>

Returns

TaskSerializer<NewBlockProvingParameters>

Implementation of

Task.inputSerializer

Defined in

packages/sequencer/src/protocol/production/tasks/NewBlockTask.ts:97


prepare()

prepare(): Promise<void>

Returns

Promise<void>

Implementation of

Task.prepare

Defined in

packages/sequencer/src/protocol/production/tasks/NewBlockTask.ts:191


resultSerializer()

resultSerializer(): TaskSerializer<BlockProof>

Returns

TaskSerializer<BlockProof>

Implementation of

Task.resultSerializer

Defined in

packages/sequencer/src/protocol/production/tasks/NewBlockTask.ts:112


dependencies()

static dependencies(): object

Returns

object

BlockProverCompileTask

BlockProverCompileTask: object

BlockProverCompileTask.useClass

BlockProverCompileTask.useClass: typeof BlockProverCompileTask = BlockProverCompileTask

Defined in

packages/sequencer/src/protocol/production/tasks/NewBlockTask.ts:89