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:90


createBroadcaster()

createBroadcaster(broadcaster): Promise<void>

Parameters

broadcaster

BroadcasterData

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

String0x

updateNonceIfNeeded.lock

string

asPaymentFor?
account

String0x

batchIndex

number

chainId

IntegerString

slot

string

upToGasPrice

bigint

Returns

Promise<PendingExecutionStored<TransactionDataType>>

Defined in

types/executor-storage.ts:65


deletePendingExecution()

deletePendingExecution(params): Promise<void>

Parameters

params
account

String0x

batchIndex

number

chainId

IntegerString

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

IntegerString

Returns

Promise<undefined | BroadcasterData>

Defined in

types/executor-storage.ts:88


getChainConfiguration()

getChainConfiguration(chainId): Promise<ChainConfiguration>

Parameters

chainId

IntegerString

Returns

Promise<ChainConfiguration>

Defined in

types/executor-storage.ts:92


getPendingExecution()

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

Parameters

params
account

String0x

batchIndex

number

chainId

IntegerString

slot

string

Returns

Promise<undefined | PendingExecutionStored<TransactionDataType>>

Defined in

types/executor-storage.ts:37


getPendingExecutionBatch()

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

Parameters

params
account

String0x

chainId

IntegerString

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

String0x

chainId

IntegerString

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

IntegerString

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

IntegerString

Returns

Promise<void>

Defined in

types/executor-storage.ts:63


updateExpectedWorstCaseGasPrice()

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

Parameters

chainId

IntegerString

timestamp

number

newGasPrice

bigint

Returns

Promise<ChainConfiguration>

Defined in

types/executor-storage.ts:93


updateFees()

updateFees(chainId, timestamp, newFees): Promise<ChainConfiguration>

Parameters

chainId

IntegerString

timestamp

number

newFees

Fees

Returns

Promise<ChainConfiguration>

Defined in

types/executor-storage.ts:98