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?
• asPaymentFor.account?: String0x
• asPaymentFor.batchIndex?: number
• asPaymentFor.chainId?: String0x
• asPaymentFor.slot?: string
• asPaymentFor.upToGasPrice?: bigint
Returns
Promise
<PendingExecutionStored
<TransactionDataType
>>
Defined in
types/executor-storage.ts:29
deletePendingExecution()
deletePendingExecution(
params
):Promise
<void
>
Parameters
• params
• params.account: String0x
• params.batchIndex: number
• params.chainId: String0x
• params.slot: string
Returns
Promise
<void
>
Defined in
types/executor-storage.ts:23
getAllExecutions()
getAllExecutions(
params
):Promise
<PendingExecutionStored
<TransactionDataType
>[]>
Parameters
• params
• params.limit: number
Returns
Promise
<PendingExecutionStored
<TransactionDataType
>[]>
Defined in
types/executor-storage.ts:48
getBroadcaster()
getBroadcaster(
params
):Promise
<undefined
|BroadcasterData
>
Parameters
• params
• params.address: string
• params.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
• params.account: String0x
• params.batchIndex: number
• params.chainId: String0x
• params.slot: string
Returns
Promise
<undefined
| PendingExecutionStored
<TransactionDataType
>>
Defined in
types/executor-storage.ts:10
getPendingExecutionBatch()
getPendingExecutionBatch(
params
):Promise
<undefined
|PendingExecutionStored
<TransactionDataType
>[]>
Parameters
• params
• params.account: String0x
• params.chainId: String0x
• params.slot: string
Returns
Promise
<undefined
| PendingExecutionStored
<TransactionDataType
>[]>
Defined in
types/executor-storage.ts:17
getPendingExecutions()
getPendingExecutions(
params
):Promise
<PendingExecutionStored
<TransactionDataType
>[]>
Parameters
• params
• params.limit: number
Returns
Promise
<PendingExecutionStored
<TransactionDataType
>[]>
Defined in
types/executor-storage.ts:39
getPendingExecutionsPerBroadcaster()
getPendingExecutionsPerBroadcaster(
broadcasterData
,params
):Promise
<PendingExecutionStored
<TransactionDataType
>[]>
Parameters
• broadcasterData
• broadcasterData.broadcaster: String0x
• broadcasterData.chainId: String0x
• params
• 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