DocsReference@proto-kit/sequencerClassesInMemoryBatchStorage

@proto-kit/sequencerDocs


Documentation / @proto-kit/sequencer / InMemoryBatchStorage

Class: InMemoryBatchStorage

Implements

Constructors

new InMemoryBatchStorage()

new InMemoryBatchStorage(): InMemoryBatchStorage

Returns

InMemoryBatchStorage

Methods

getBatchAt()

getBatchAt(height): Promise<undefined | Batch>

Parameters

height: number

Returns

Promise<undefined | Batch>

Implementation of

BatchStorage.getBatchAt

Defined in

packages/sequencer/src/storage/inmemory/InMemoryBatchStorage.ts:13


getCurrentBatchHeight()

getCurrentBatchHeight(): Promise<number>

Returns

Promise<number>

Implementation of

BatchStorage.getCurrentBatchHeight

Defined in

packages/sequencer/src/storage/inmemory/InMemoryBatchStorage.ts:9


getLatestBatch()

getLatestBatch(): Promise<undefined | Batch>

Returns

Promise<undefined | Batch>

Implementation of

BatchStorage.getLatestBatch

Defined in

packages/sequencer/src/storage/inmemory/InMemoryBatchStorage.ts:22


pushBatch()

pushBatch(batch): Promise<void>

Parameters

batch: Batch

Returns

Promise<void>

Implementation of

BatchStorage.pushBatch

Defined in

packages/sequencer/src/storage/inmemory/InMemoryBatchStorage.ts:17