L1ToL2MessageCreator
Classes
L1ToL2MessageCreator
Creates retryable tickets by directly calling the Inbox contract on L1
Methods
createRetryableTicket()
createRetryableTicket(
params: OmitTyped<L1ToL2MessageNoGasParams, "excessFeeRefundAddress" | "callValueRefundAddress"> & Partial<L1ToL2MessageNoGasParams> & object | L1ToL2TransactionRequest & object,
l2Provider: Provider,
options?: GasOverrides): Promise<L1ContractTransaction<L1TransactionReceipt>>
Creates a retryable ticket by directly calling the Inbox contract on L1
Parameters
Parameter | Type |
---|---|
params | OmitTyped <L1ToL2MessageNoGasParams , "excessFeeRefundAddress" | "callValueRefundAddress" > & Partial <L1ToL2MessageNoGasParams > & object | L1ToL2TransactionRequest & object |
l2Provider | Provider |
options ? | GasOverrides |
Returns
Promise
<L1ContractTransaction
<L1TransactionReceipt
>>
Defined in
message/L1ToL2MessageCreator.ts:194
getTicketCreationRequest()
static getTicketCreationRequest(
params: L1ToL2MessageParams,
l1Provider: Provider,
l2Provider: Provider,
options?: GasOverrides): Promise<L1ToL2TransactionRequest>
Generate a transaction request for creating a retryable ticket
Parameters
Parameter | Type | Description |
---|---|---|
params | L1ToL2MessageParams | |
l1Provider | Provider | |
l2Provider | Provider | |
options ? | GasOverrides |
Returns
Promise
<L1ToL2TransactionRequest
>
Defined in
message/L1ToL2MessageCreator.ts:127
getTicketCreationRequestCallData()
protected static getTicketCreationRequestCallData(
params: L1ToL2MessageParams,
estimates: Pick<RetryableData, L1ToL2GasKeys>,
excessFeeRefundAddress: string,
callValueRefundAddress: string,
nativeTokenIsEth: boolean): string
Prepare calldata for a call to create a retryable ticket
Parameters
Parameter | Type | Description |
---|---|---|
params | L1ToL2MessageParams | |
estimates | Pick <RetryableData , L1ToL2GasKeys > | |
excessFeeRefundAddress | string | |
callValueRefundAddress | string | |
nativeTokenIsEth | boolean |
Returns
string
Defined in
message/L1ToL2MessageCreator.ts:80
getTicketEstimate()
protected static getTicketEstimate(
params: L1ToL2MessageNoGasParams,
l1Provider: Provider,
l2Provider: Provider,
retryableGasOverrides?: GasOverrides): Promise<Pick<RetryableData, L1ToL2GasKeys>>
Gets a current estimate for the supplied params
Parameters
Parameter | Type | Description |
---|---|---|
params | L1ToL2MessageNoGasParams | |
l1Provider | Provider | |
l2Provider | Provider | |
retryableGasOverrides ? | GasOverrides |
Returns
Promise
<Pick
<RetryableData
, L1ToL2GasKeys
>>