@proto-kit/sequencer • Docs
Documentation / @proto-kit/sequencer / InMemoryBatchStorage
Class: InMemoryBatchStorage
Implements
Constructors
new InMemoryBatchStorage()
new InMemoryBatchStorage():
InMemoryBatchStorage
Returns
Methods
getBatchAt()
getBatchAt(
height):Promise<undefined|Batch>
Parameters
• height: number
Returns
Promise<undefined | Batch>
Implementation of
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
Defined in
packages/sequencer/src/storage/inmemory/InMemoryBatchStorage.ts:22
pushBatch()
pushBatch(
batch):Promise<void>
Parameters
• batch: Batch
Returns
Promise<void>
Implementation of
Defined in
packages/sequencer/src/storage/inmemory/InMemoryBatchStorage.ts:17