Optional
WGAS?: stringStatic
ADDRESS_Static
BALANCE_Static
MSG_Static
ROUTERHow many gas tokens are sent to the incentive contract? Should be getIncentiveCost(...) of the incentives
The routing incentives provided to the relayer routingIncentive.maxGasDelivery should be the estimated cost on the destination chain. routingIncentive.maxGasAck should be the estimated cost on the source chain. routingIncentive.refundGasTo Should be the sender of the transaction. Cannot be set to RouterArguments.MSG_SENDER. routingIncentive.priceOfDeliveryGas How much to pay for execution on the destination chain in native gas? routingIncentive.priceOfAckGas Should be greater than the base gas when the transaction is executed. routingIncentive.targetDelta Set it to more than the confirmation time for the bridge.
Transfers single asset after enacting a permit if necessary. If a permit (single) and a signature are provided, it enacts the permit before transferring the asset. If no permit information is provided, it directly transfers the specified asset.
An object containing the token address and amount to be transferred.
Optional
permitData: PermitDataOptional. An object containing the permit information for a single permit.
Transfers multiple assets after enacting a permit if necessary. If a permit (batch) and a signature are provided, it enacts the permit before transferring the assets. If no permit information is provided, it directly transfers the specified assets.
An array of objects containing the token address and amount to be transferred.
The address of the owner of the assets.
Optional
permitBatchData: PermitBatchDataOptional. An object containing the permit information for a batched permit.
The assets to be transferred, with their token addresses and amounts.
The owner of the assets to be transferred.
The estimated gas usage for the remote and local operations.
Optional
permitBatchData: PermitBatchDataThe data required for the permit batch, if using a permit.
An object containing the execution instructions, including the commands, inputs, and estimated gas usage.
Adds the transfer with optional permit instructions to the router for a deposit with liquidity swaps.
This function should be called after prepareDepositWithLiquiditySwapsViaPermits
to complete the deposit with liquidity swap flow.
If gas is provided as an asset prepareDepositWithLiquiditySwaps, it is not needed to set the asset here.
(Unless you want to combine both newly wrapped gas & pre-wrapped gas)
The asset to be transferred, with its token address and amount.
The estimated gas usage for the remote and local operations.
Optional
permitData: PermitDataThe data required for the permit, if using a permit.
An object containing the execution instructions, including the commands, inputs, and estimated gas usage.
Adds the transfer with optional permit instructions to the router for a withdraw with liquidity swap.
This function should be called after prepareWithdrawWithLiquiditySwapsViaPermits
to complete the withdraw with liquidity swap flow.
Static
addressStatic
getReturns the base cost given exactly by the routing incentives. There may be additional costs associated with verification which has to be paid on the sending side. Call estimateAdditionalCost() on the CCI to find out.
Static
split
Encodes a sendAsset into the routers calldata.