Skip to main content

retryableData

Classes

RetryableDataTools

Defined in: dataEntities/retryableData.ts:58

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;

Defined in: dataEntities/retryableData.ts:63

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

gasLimit
gasLimit: BigNumber;
maxFeePerGas
maxFeePerGas: BigNumber;

Methods

tryParseError()
static tryParseError(ethersJsErrorOrData: 
| string
| Error
| {
errorData: string;
}): RetryableData | null;

Defined in: dataEntities/retryableData.ts:114

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

Parameters
ParameterTypeDescription
ethersJsErrorOrData| string | Error | { errorData: string; }
Returns

RetryableData | null