@proto-kit/sequencerDocs


Documentation / @proto-kit/sequencer / MessageStorage

Interface: MessageStorage

Interface to store Messages previously fetched by a IncomingMessageadapter

Properties

getMessageBatches()

getMessageBatches: (fromMessagesHash, toMessagesHash) => Promise<object[]>

Parameters

fromMessagesHash: string

toMessagesHash: string

Returns

Promise<object[]>

Defined in

packages/sequencer/src/storage/repositories/MessageStorage.ts:22


getNextMessagesBatch()

getNextMessagesBatch: (fromMessagesHash) => Promise<undefined | object>

Parameters

fromMessagesHash: string

Returns

Promise<undefined | object>

Defined in

packages/sequencer/src/storage/repositories/MessageStorage.ts:13


pushMessages()

pushMessages: (fromMessagesHash, toMessagesHash, messages) => Promise<void>

Parameters

fromMessagesHash: string

toMessagesHash: string

messages: PendingTransaction[]

Returns

Promise<void>

Defined in

packages/sequencer/src/storage/repositories/MessageStorage.ts:7