DocsReference@proto-kit/sequencerInterfacesAsyncLinkedLeafStore

@proto-kit/sequencerDocs


Documentation / @proto-kit/sequencer / AsyncLinkedLeafStore

Interface: AsyncLinkedLeafStore

Properties

commit()

commit: () => Promise<void>

Returns

Promise<void>

Defined in

packages/sequencer/src/state/async/AsyncLinkedLeafStore.ts:6


getLeavesAsync()

getLeavesAsync: (paths) => Promise<(undefined | StoredLeaf)[]>

Parameters

paths: bigint[]

Returns

Promise<(undefined | StoredLeaf)[]>

Defined in

packages/sequencer/src/state/async/AsyncLinkedLeafStore.ts:10


getMaximumIndexAsync()

getMaximumIndexAsync: () => Promise<undefined | bigint>

Returns

Promise<undefined | bigint>

Defined in

packages/sequencer/src/state/async/AsyncLinkedLeafStore.ts:12


getPreviousLeavesAsync()

getPreviousLeavesAsync: (path) => Promise<(undefined | StoredLeaf)[]>

Parameters

path: bigint[]

Returns

Promise<(undefined | StoredLeaf)[]>

Defined in

packages/sequencer/src/state/async/AsyncLinkedLeafStore.ts:14


openTransaction()

openTransaction: () => Promise<void>

Returns

Promise<void>

Defined in

packages/sequencer/src/state/async/AsyncLinkedLeafStore.ts:4


writeLeaves()

writeLeaves: (leaves) => void

Parameters

leaves: StoredLeaf[]

Returns

void

Defined in

packages/sequencer/src/state/async/AsyncLinkedLeafStore.ts:8