Skip to main content

Class: RetryableDataTools

dataEntities/retryableData.RetryableDataTools

Tools for parsing retryable data from errors. When calling createRetryableTicket on Inbox.sol special values can be passed for gasLimit and maxFeePerGas. This causes the call to revert with the info needed to estimate the gas needed for a retryable ticket using L1ToL2GasPriceEstimator.

Properties

ErrorTriggeringParams

Static ErrorTriggeringParams: Object

The parameters that should be passed to createRetryableTicket in order to induce a revert with retryable data

Type declaration

NameType
gasLimitBigNumber
maxFeePerGasBigNumber

Defined in

src/lib/dataEntities/retryableData.ts:63

Methods

tryParseError

Static tryParseError(ethersJsErrorOrData): null | RetryableData

Try to parse a retryable data struct from the supplied ethersjs error, or any explicitly supplied error data

Parameters

NameType
ethersJsErrorOrDatastring | Error | { errorData: string }

Returns

null | RetryableData

Defined in

src/lib/dataEntities/retryableData.ts:114