Module: message/ParentToChildMessageCreator
ParentToChildMessageCreator
Creates retryable tickets by directly calling the Inbox contract on Parent chain
Methods
createRetryableTicket()
createRetryableTicket(
params,
childProvider,
options?): Promise< ParentContractTransaction< ParentTransactionReceipt > >
Creates a retryable ticket by directly calling the Inbox contract on Parent chain
Parameters
Parameter | Type |
---|---|
params | OmitTyped < ParentToChildMessageNoGasParams , "excessFeeRefundAddress" | "callValueRefundAddress" > & Partial < ParentToChildMessageNoGasParams > & {overrides : PayableOverrides ;} | ParentToChildTransactionRequest & {overrides : PayableOverrides ;} |
childProvider | Provider |
options ? | GasOverrides |
Returns
Promise
< ParentContractTransaction
< ParentTransactionReceipt
> >
Source
arbitrum-sdk/src/lib/message/ParentToChildMessageCreator.ts:203
getTicketCreationRequest()
static getTicketCreationRequest(
params,
parentProvider,
childProvider,
options?): Promise< ParentToChildTransactionRequest >
Generate a transaction request for creating a retryable ticket
Parameters
Parameter | Type | Description |
---|---|---|
params | ParentToChildMessageParams | |
parentProvider | Provider | |
childProvider | Provider | |
options ? | GasOverrides |
Returns
Promise
< ParentToChildTransactionRequest
>
Source
arbitrum-sdk/src/lib/message/ParentToChildMessageCreator.ts:136
getTicketCreationRequestCallData()
static protected getTicketCreationRequestCallData(
params,
estimates,
excessFeeRefundAddress,
callValueRefundAddress,
nativeTokenIsEth): string
Prepare calldata for a call to create a retryable ticket
Parameters
Parameter | Type | Description |
---|---|---|
params | ParentToChildMessageParams | |
estimates | Pick < RetryableData , ParentToChildGasKeys > | |
excessFeeRefundAddress | string | |
callValueRefundAddress | string | |
nativeTokenIsEth | boolean |
Returns
string
Source
arbitrum-sdk/src/lib/message/ParentToChildMessageCreator.ts:89
getTicketEstimate()
static protected getTicketEstimate(
params,
parentProvider,
childProvider,
retryableGasOverrides?): Promise< Pick< RetryableData, ParentToChildGasKeys > >
Gets a current estimate for the supplied params
Parameters
Parameter | Type | Description |
---|---|---|
params | ParentToChildMessageNoGasParams | |
parentProvider | Provider | |
childProvider | Provider | |
retryableGasOverrides ? | GasOverrides |
Returns
Promise
< Pick
< RetryableData
, ParentToChildGasKeys
> >
Source
arbitrum-sdk/src/lib/message/ParentToChildMessageCreator.ts:63