@proto-kit/sequencer • Docs
Documentation / @proto-kit/sequencer / InMemoryBlockStorage
Class: InMemoryBlockStorage
Implements
Constructors
new InMemoryBlockStorage()
new InMemoryBlockStorage(
batchStorage):InMemoryBlockStorage
Parameters
• batchStorage: BatchStorage
Returns
Defined in
packages/sequencer/src/storage/inmemory/InMemoryBlockStorage.ts:14
Methods
getBlock()
getBlock(
hash):Promise<undefined|Block>
Parameters
• hash: string
Returns
Promise<undefined | Block>
Implementation of
Defined in
packages/sequencer/src/storage/inmemory/InMemoryBlockStorage.ts:113
getBlockAt()
getBlockAt(
height):Promise<undefined|Block>
Parameters
• height: number
Returns
Promise<undefined | Block>
Implementation of
Defined in
packages/sequencer/src/storage/inmemory/InMemoryBlockStorage.ts:22
getBlockWithResultAt()
getBlockWithResultAt(
height):Promise<undefined|BlockWithResult>
Parameters
• height: number
Returns
Promise<undefined | BlockWithResult>
Implementation of
BlockStorage.getBlockWithResultAt
Defined in
packages/sequencer/src/storage/inmemory/InMemoryBlockStorage.ts:26
getCurrentBlockHeight()
getCurrentBlockHeight():
Promise<number>
Returns
Promise<number>
Implementation of
BlockStorage.getCurrentBlockHeight
Defined in
packages/sequencer/src/storage/inmemory/InMemoryBlockStorage.ts:37
getLatestBlock()
getLatestBlock():
Promise<undefined|BlockWithResult>
Returns
Promise<undefined | BlockWithResult>
Implementation of
Defined in
packages/sequencer/src/storage/inmemory/InMemoryBlockStorage.ts:56
getLatestBlockAndResult()
getLatestBlockAndResult():
Promise<undefined|BlockWithMaybeResult>
Returns
Promise<undefined | BlockWithMaybeResult>
Implementation of
BlockQueue.getLatestBlockAndResult
Defined in
packages/sequencer/src/storage/inmemory/InMemoryBlockStorage.ts:41
getNewBlocks()
getNewBlocks():
Promise<BlockWithResult[]>
Returns
Promise<BlockWithResult[]>
Implementation of
Defined in
packages/sequencer/src/storage/inmemory/InMemoryBlockStorage.ts:72
getNewestResult()
getNewestResult():
Promise<undefined|BlockResult>
Returns
Promise<undefined | BlockResult>
Defined in
packages/sequencer/src/storage/inmemory/InMemoryBlockStorage.ts:105
pushBlock()
pushBlock(
block):Promise<void>
Parameters
• block: Block
Returns
Promise<void>
Implementation of
Defined in
packages/sequencer/src/storage/inmemory/InMemoryBlockStorage.ts:101
pushResult()
pushResult(
result):Promise<void>
Parameters
• result: BlockResult
Returns
Promise<void>
Implementation of
Defined in
packages/sequencer/src/storage/inmemory/InMemoryBlockStorage.ts:109