StargateV2
Inherits: BaseUtils
Functions
_bridgeStargateV2
Handles Stargate V2 bridging operations
Decodes calldata and forwards the call to the appropriate Stargate adapter function
Note: calldata-offset-table:
| Offset | Length (bytes) | Description |
|---|---|---|
| 0 | 20 | tokenAddress |
| 20 | 20 | stargate pool |
| 40 | 4 | dstEid |
| 44 | 32 | receiver |
| 76 | 20 | refundReceiver |
| 96 | 16 | amount |
| 112 | 4 | slippage |
| 116 | 16 | fee |
| 132 | 1 | isBusMode |
| 133 | 2 | composeMsg.length: cl |
| 135 | 2 | extraOptions.length: el |
| 137 | cl | composeMsg |
| 137+cl | el | extraOptions |
function _bridgeStargateV2(uint256 currentOffset) internal returns (uint256);
Parameters
| Name | Type | Description |
|---|---|---|
currentOffset |
uint256 |
Current position in the calldata |
Returns
| Name | Type | Description |
|---|---|---|
<none> |
uint256 |
Updated calldata offset after processing |