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


createBroadcaster()

createBroadcaster(broadcaster): Promise<void>

Parameters

broadcaster

BroadcasterData

Returns

Promise<void>

Defined in

types/executor-storage.ts:94


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

helpedForUpToGasPrice

{ upToGasPrice: bigint; valueSent: bigint; }

helpedForUpToGasPrice.upToGasPrice

bigint

helpedForUpToGasPrice.valueSent

bigint

slot

string

Returns

Promise<PendingExecutionStored<TransactionDataType>>

Defined in

types/executor-storage.ts:67


deleteFinalizedPendingExecutions()

deleteFinalizedPendingExecutions(params): Promise<void>

Parameters

params
chainId

IntegerString

upTo

number

Returns

Promise<void>

Defined in

types/executor-storage.ts:57


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

order

"ASC" | "DESC"

Returns

Promise<PendingExecutionStored<TransactionDataType>[]>

Defined in

types/executor-storage.ts:87


getBroadcaster()

getBroadcaster(params): Promise<undefined | BroadcasterData>

Parameters

params
address

string

chainId

IntegerString

Returns

Promise<undefined | BroadcasterData>

Defined in

types/executor-storage.ts:93


getChainConfiguration()

getChainConfiguration(chainId): Promise<ChainConfiguration>

Parameters

chainId

IntegerString

Returns

Promise<ChainConfiguration>

Defined in

types/executor-storage.ts:97


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


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


lockBroadcaster()

lockBroadcaster(params): Promise<undefined | BroadcasterDataWithLock>

Parameters

params
address

string

chainId

IntegerString

nonceFromNetwork

number

Returns

Promise<undefined | BroadcasterDataWithLock>

Defined in

types/executor-storage.ts:59


setup()

setup(): Promise<void>

Returns

Promise<void>

Defined in

types/executor-storage.ts:96


unlockBroadcaster()

unlockBroadcaster(params): Promise<void>

Parameters

params
address

string

chainId

IntegerString

Returns

Promise<void>

Defined in

types/executor-storage.ts:65


updateExpectedWorstCaseGasPrice()

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

Parameters

chainId

IntegerString

timestamp

number

newGasPrice

bigint

Returns

Promise<ChainConfiguration>

Defined in

types/executor-storage.ts:98


updateFees()

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

Parameters

chainId

IntegerString

timestamp

number

newFees

Fees

Returns

Promise<ChainConfiguration>

Defined in

types/executor-storage.ts:103