DocsReference@proto-kit/sequencerClassesInMemoryAsyncMerkleTreeStore

@proto-kit/sequencerDocs


Documentation / @proto-kit/sequencer / InMemoryAsyncMerkleTreeStore

Class: InMemoryAsyncMerkleTreeStore

Implements

Constructors

new InMemoryAsyncMerkleTreeStore()

new InMemoryAsyncMerkleTreeStore(): InMemoryAsyncMerkleTreeStore

Returns

InMemoryAsyncMerkleTreeStore

Methods

commit()

commit(): Promise<void>

Returns

Promise<void>

Implementation of

AsyncMerkleTreeStore.commit

Defined in

packages/sequencer/src/storage/inmemory/InMemoryAsyncMerkleTreeStore.ts:18


getNodesAsync()

getNodesAsync(nodes): Promise<(undefined | bigint)[]>

Parameters

nodes: MerkleTreeNodeQuery[]

Returns

Promise<(undefined | bigint)[]>

Implementation of

AsyncMerkleTreeStore.getNodesAsync

Defined in

packages/sequencer/src/storage/inmemory/InMemoryAsyncMerkleTreeStore.ts:26


openTransaction()

openTransaction(): Promise<void>

Returns

Promise<void>

Implementation of

AsyncMerkleTreeStore.openTransaction

Defined in

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


writeNodes()

writeNodes(nodes): void

Parameters

nodes: MerkleTreeNode[]

Returns

void

Implementation of

AsyncMerkleTreeStore.writeNodes

Defined in

packages/sequencer/src/storage/inmemory/InMemoryAsyncMerkleTreeStore.ts:12