@proto-kit/sequencerDocs


Documentation / @proto-kit/sequencer / BatchTracingService

Class: BatchTracingService

Constructors

new BatchTracingService()

new BatchTracingService(blockTracingService, stateTransitionTracingService, tracer): BatchTracingService

Parameters

blockTracingService: BlockTracingService

stateTransitionTracingService: StateTransitionTracingService

tracer: Tracer

Returns

BatchTracingService

Defined in

packages/sequencer/src/protocol/production/tracing/BatchTracingService.ts:46

Properties

tracer

readonly tracer: Tracer

Defined in

packages/sequencer/src/protocol/production/tracing/BatchTracingService.ts:50

Methods

traceBatch()

traceBatch(blocks, merkleTreeStore, batchId): Promise<BatchTrace>

Parameters

blocks: BlockWithResult[]

merkleTreeStore: CachedLinkedLeafStore

batchId: number

Returns

Promise<BatchTrace>

Defined in

packages/sequencer/src/protocol/production/tracing/BatchTracingService.ts:181


traceBlocks()

traceBlocks(blocks): Promise<object>

Parameters

blocks: BlockWithResult[]

Returns

Promise<object>

blockTraces

blockTraces: BlockTrace[]

transactionTraces

transactionTraces: TransactionTrace[][][]

Defined in

packages/sequencer/src/protocol/production/tracing/BatchTracingService.ts:70


traceStateTransitions()

traceStateTransitions(blocks, merkleTreeStore): Promise<StateTransitionProofParameters[]>

Parameters

blocks: BlockWithResult[]

merkleTreeStore: CachedLinkedLeafStore

Returns

Promise<StateTransitionProofParameters[]>

Defined in

packages/sequencer/src/protocol/production/tracing/BatchTracingService.ts:165