FUZD / fuzd-executor / ExecutorStorage
Interface: ExecutorStorage<TransactionDataType>
Type Parameters
• TransactionDataType
Methods
clear()
clear():
Promise
<void
>
Returns
Promise
<void
>
Defined in
types/executor-storage.ts:90
createBroadcaster()
createBroadcaster(
broadcaster
):Promise
<void
>
Parameters
broadcaster
Returns
Promise
<void
>
Defined in
types/executor-storage.ts:89
createOrUpdatePendingExecution()
createOrUpdatePendingExecution(
executionToStore
,options
,asPaymentFor
?):Promise
<PendingExecutionStored
<TransactionDataType
>>
Parameters
executionToStore
PendingExecutionStored
<TransactionDataType
>
options
debtOffset
bigint
updateNonceIfNeeded
{ broadcaster
: String0x
; lock
: string
; }
updateNonceIfNeeded.broadcaster
updateNonceIfNeeded.lock
string
asPaymentFor?
account
batchIndex
number
chainId
slot
string
upToGasPrice
bigint
Returns
Promise
<PendingExecutionStored
<TransactionDataType
>>
Defined in
types/executor-storage.ts:65
deletePendingExecution()
deletePendingExecution(
params
):Promise
<void
>
Parameters
params
account
batchIndex
number
chainId
slot
string
Returns
Promise
<void
>
Defined in
types/executor-storage.ts:50
getAllExecutions()
getAllExecutions(
params
):Promise
<PendingExecutionStored
<TransactionDataType
>[]>
Parameters
params
limit
number
Returns
Promise
<PendingExecutionStored
<TransactionDataType
>[]>
Defined in
types/executor-storage.ts:85
getBroadcaster()
getBroadcaster(
params
):Promise
<undefined
|BroadcasterData
>
Parameters
params
address
string
chainId
Returns
Promise
<undefined
| BroadcasterData
>
Defined in
types/executor-storage.ts:88
getChainConfiguration()
getChainConfiguration(
chainId
):Promise
<ChainConfiguration
>
Parameters
chainId
Returns
Promise
<ChainConfiguration
>
Defined in
types/executor-storage.ts:92
getPendingExecution()
getPendingExecution(
params
):Promise
<undefined
|PendingExecutionStored
<TransactionDataType
>>
Parameters
params
account
batchIndex
number
chainId
slot
string
Returns
Promise
<undefined
| PendingExecutionStored
<TransactionDataType
>>
Defined in
types/executor-storage.ts:37
getPendingExecutionBatch()
getPendingExecutionBatch(
params
):Promise
<undefined
|PendingExecutionStored
<TransactionDataType
>[]>
Parameters
params
account
chainId
slot
string
Returns
Promise
<undefined
| PendingExecutionStored
<TransactionDataType
>[]>
Defined in
types/executor-storage.ts:44
getPendingExecutions()
getPendingExecutions(
params
):Promise
<PendingExecutionStored
<TransactionDataType
>[]>
Parameters
params
limit
number
Returns
Promise
<PendingExecutionStored
<TransactionDataType
>[]>
Defined in
types/executor-storage.ts:76
getPendingExecutionsPerBroadcaster()
getPendingExecutionsPerBroadcaster(
broadcasterData
,params
):Promise
<PendingExecutionStored
<TransactionDataType
>[]>
Parameters
broadcasterData
broadcaster
chainId
params
limit
number
Returns
Promise
<PendingExecutionStored
<TransactionDataType
>[]>
Defined in
types/executor-storage.ts:77
lockBroadcaster()
lockBroadcaster(
params
):Promise
<undefined
|BroadcasterDataWithLock
>
Parameters
params
address
string
chainId
nonceFromNetwork
number
Returns
Promise
<undefined
| BroadcasterDataWithLock
>
Defined in
types/executor-storage.ts:57
setup()
setup():
Promise
<void
>
Returns
Promise
<void
>
Defined in
types/executor-storage.ts:91
unlockBroadcaster()
unlockBroadcaster(
params
):Promise
<void
>
Parameters
params
address
string
chainId
Returns
Promise
<void
>
Defined in
types/executor-storage.ts:63
updateExpectedWorstCaseGasPrice()
updateExpectedWorstCaseGasPrice(
chainId
,timestamp
,newGasPrice
):Promise
<ChainConfiguration
>
Parameters
chainId
timestamp
number
newGasPrice
bigint
Returns
Promise
<ChainConfiguration
>
Defined in
types/executor-storage.ts:93
updateFees()
updateFees(
chainId
,timestamp
,newFees
):Promise
<ChainConfiguration
>
Parameters
chainId
timestamp
number
newFees
Returns
Promise
<ChainConfiguration
>
Defined in
types/executor-storage.ts:98