IAcrossV4BridgeEncoder
Inherits: IBridgeEncoder
Functions
acrossV4SpokePool
Address of the Across SpokePool.
function acrossV4SpokePool() external view returns (address);Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
isRouteRegistered
Returns whether a bridge transfer route is registered.
function isRouteRegistered(address inputToken, uint256 foreignChainId, address outputToken)
external
view
returns (bool);Parameters
| Name | Type | Description |
|---|---|---|
| inputToken | address | The token to be sent from the source chain. |
| foreignChainId | uint256 | The destination chain ID. |
| outputToken | address | The token to be received on the destination chain. |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bool | True if the route is registered, false otherwise. |
addRoute
Registers a transfer route.
function addRoute(address inputToken, uint256 foreignChainId, address outputToken) external;Parameters
| Name | Type | Description |
|---|---|---|
| inputToken | address | The token to be sent from the source chain. |
| foreignChainId | uint256 | The destination chain ID. |
| outputToken | address | The token to be received on the destination chain. |
removeRoute
Unregisters a transfer route.
function removeRoute(address inputToken, uint256 foreignChainId, address outputToken) external;Parameters
| Name | Type | Description |
|---|---|---|
| inputToken | address | The token to be sent from the source chain. |
| foreignChainId | uint256 | The destination chain ID. |
| outputToken | address | The token to be received on the destination chain. |
Events
RouteAdded
event RouteAdded(address indexed inputToken, uint256 indexed foreignChainId, address indexed outputToken);Parameters
| Name | Type | Description |
|---|---|---|
| inputToken | address | |
| foreignChainId | uint256 | |
| outputToken | address |
RouteRemoved
event RouteRemoved(address indexed inputToken, uint256 indexed foreignChainId, address indexed outputToken);Parameters
| Name | Type | Description |
|---|---|---|
| inputToken | address | |
| foreignChainId | uint256 | |
| outputToken | address |