Skip to main content

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

PropertyTypeDescription
static ErrorTriggeringParamsobjectThe parameters that should be passed to createRetryableTicket in order to induce
a revert with retryable data
ErrorTriggeringParams.gasLimitBigNumber-
ErrorTriggeringParams.maxFeePerGasBigNumber-

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
ParameterTypeDescription
ethersJsErrorOrDatastring | Error | {errorData: string;}
Returns

null | RetryableData

Source

arbitrum-sdk/src/lib/dataEntities/retryableData.ts:114