@proto-kit/sequencer • Docs
Documentation / @proto-kit/sequencer / TransactionStorage
Interface: TransactionStorage
Properties
countPendingUserTransactions()
countPendingUserTransactions: () =>
Promise<number>
Returns
Promise<number>
Defined in
packages/sequencer/src/storage/repositories/TransactionStorage.ts:14
findTransaction()
findTransaction: (
hash) =>Promise<undefined|object>
Finds a transaction by its hash. It returns both pending transaction and already included transactions In case the transaction has been included, it also returns the block hash and batch number where applicable.
Parameters
• hash: string
Returns
Promise<undefined | object>
Defined in
packages/sequencer/src/storage/repositories/TransactionStorage.ts:25
getPendingUserTransactions()
getPendingUserTransactions: (
offset,limit?) =>Promise<PendingTransaction[]>
Parameters
• offset: number
• limit?: number
Returns
Promise<PendingTransaction[]>
Defined in
packages/sequencer/src/storage/repositories/TransactionStorage.ts:9
pushUserTransaction()
pushUserTransaction: (
tx,priority) =>Promise<boolean>
Parameters
• tx: PendingTransaction
• priority: number
Returns
Promise<boolean>
Defined in
packages/sequencer/src/storage/repositories/TransactionStorage.ts:4
removeTx()
removeTx: (
txHashes,type) =>Promise<void>
Parameters
• txHashes: string[]
• type: "included" | "dropped"
Returns
Promise<void>
Defined in
packages/sequencer/src/storage/repositories/TransactionStorage.ts:16
reportChangedPaths()
reportChangedPaths: (
paths) =>Promise<void>
Parameters
• paths: bigint[]
Returns
Promise<void>
Defined in
packages/sequencer/src/storage/repositories/TransactionStorage.ts:39
reportSkippedTransactions()
reportSkippedTransactions: (
paths) =>Promise<void>
Mapping hash => path[]
Parameters
• paths: Record<string, bigint[]>
Returns
Promise<void>
Defined in
packages/sequencer/src/storage/repositories/TransactionStorage.ts:37