Skip to content

FUZD / fuzd-executor / ExecutorStorage

Interface: ExecutorStorage<TransactionDataType>

Type Parameters

TransactionDataType

Methods

clear()

clear(): Promise<void>

Returns

Promise<void>

Defined in

types/executor-storage.ts:53


createBroadcaster()

createBroadcaster(broadcaster): Promise<void>

Parameters

broadcaster

BroadcasterData

Returns

Promise<void>

Defined in

types/executor-storage.ts:52


createOrUpdatePendingExecutionAndUpdateNonceIfNeeded()

createOrUpdatePendingExecutionAndUpdateNonceIfNeeded(executionToStore, asPaymentFor?): Promise<PendingExecutionStored<TransactionDataType>>

Parameters

executionToStore

PendingExecutionStored<TransactionDataType>

asPaymentFor?
account

String0x

batchIndex

number

chainId

String0x

slot

string

upToGasPrice

bigint

Returns

Promise<PendingExecutionStored<TransactionDataType>>

Defined in

types/executor-storage.ts:29


deletePendingExecution()

deletePendingExecution(params): Promise<void>

Parameters

params
account

String0x

batchIndex

number

chainId

String0x

slot

string

Returns

Promise<void>

Defined in

types/executor-storage.ts:23


getAllExecutions()

getAllExecutions(params): Promise<PendingExecutionStored<TransactionDataType>[]>

Parameters

params
limit

number

Returns

Promise<PendingExecutionStored<TransactionDataType>[]>

Defined in

types/executor-storage.ts:48


getBroadcaster()

getBroadcaster(params): Promise<undefined | BroadcasterData>

Parameters

params
address

string

chainId

String0x

Returns

Promise<undefined | BroadcasterData>

Defined in

types/executor-storage.ts:51


getExpectedWorstCaseGasPrice()

getExpectedWorstCaseGasPrice(chainId): Promise<ExpectedWorstCaseGasPrice>

Parameters

chainId

String0x

Returns

Promise<ExpectedWorstCaseGasPrice>

Defined in

types/executor-storage.ts:55


getPendingExecution()

getPendingExecution(params): Promise<undefined | PendingExecutionStored<TransactionDataType>>

Parameters

params
account

String0x

batchIndex

number

chainId

String0x

slot

string

Returns

Promise<undefined | PendingExecutionStored<TransactionDataType>>

Defined in

types/executor-storage.ts:10


getPendingExecutionBatch()

getPendingExecutionBatch(params): Promise<undefined | PendingExecutionStored<TransactionDataType>[]>

Parameters

params
account

String0x

chainId

String0x

slot

string

Returns

Promise<undefined | PendingExecutionStored<TransactionDataType>[]>

Defined in

types/executor-storage.ts:17


getPendingExecutions()

getPendingExecutions(params): Promise<PendingExecutionStored<TransactionDataType>[]>

Parameters

params
limit

number

Returns

Promise<PendingExecutionStored<TransactionDataType>[]>

Defined in

types/executor-storage.ts:39


getPendingExecutionsPerBroadcaster()

getPendingExecutionsPerBroadcaster(broadcasterData, params): Promise<PendingExecutionStored<TransactionDataType>[]>

Parameters

broadcasterData
broadcaster

String0x

chainId

String0x

params
limit

number

Returns

Promise<PendingExecutionStored<TransactionDataType>[]>

Defined in

types/executor-storage.ts:40


setup()

setup(): Promise<void>

Returns

Promise<void>

Defined in

types/executor-storage.ts:54


updateExpectedWorstCaseGasPrice()

updateExpectedWorstCaseGasPrice(chainId, timestamp, newGasPrice): Promise<ExpectedWorstCaseGasPrice>

Parameters

chainId

String0x

timestamp

number

newGasPrice

bigint

Returns

Promise<ExpectedWorstCaseGasPrice>

Defined in

types/executor-storage.ts:56