Skip to main content

retryableData

Classes

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

PropertyModifierTypeDefault valueDescription
ErrorTriggeringParamsstaticobject...The parameters that should be passed to createRetryableTicket in order to induce
a revert with retryable data
ErrorTriggeringParams.gasLimitpublicBigNumber...-
ErrorTriggeringParams.maxFeePerGaspublicBigNumber...-

Methods

tryParseError()
static tryParseError(ethersJsErrorOrData: string | Error | object): null | RetryableData

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

Parameters
ParameterTypeDescription
ethersJsErrorOrDatastring | Error | object
Returns

null | RetryableData

Source

dataEntities/retryableData.ts:114