DocsReference@proto-kit/sequencerClassesInMemorySettlementStorage

@proto-kit/sequencerDocs


Documentation / @proto-kit/sequencer / InMemorySettlementStorage

Class: InMemorySettlementStorage

Implements

Constructors

new InMemorySettlementStorage()

new InMemorySettlementStorage(): InMemorySettlementStorage

Returns

InMemorySettlementStorage

Properties

settlements

settlements: Settlement[] = []

Defined in

packages/sequencer/src/storage/inmemory/InMemorySettlementStorage.ts:8

Methods

getLatestSettlement()

getLatestSettlement(): Promise<undefined | Settlement>

Returns

Promise<undefined | Settlement>

Implementation of

SettlementStorage.getLatestSettlement

Defined in

packages/sequencer/src/storage/inmemory/InMemorySettlementStorage.ts:14


pushSettlement()

pushSettlement(settlement): Promise<void>

Parameters

settlement: Settlement

Returns

Promise<void>

Implementation of

SettlementStorage.pushSettlement

Defined in

packages/sequencer/src/storage/inmemory/InMemorySettlementStorage.ts:10