ICctpV2BridgeConfig
Inherits: IBridgeConfig
Functions
getCctpDomain
EVM chain ID => CCTP domain
function getCctpDomain(uint256 evmChainId) external view returns (uint32);Parameters
| Name | Type | Description |
|---|---|---|
| evmChainId | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint32 |
getForeignToken
Local token address => Foreign EVM chain ID => Foreign Token address
function getForeignToken(address localToken, uint256 foreignEvmChainId) external view returns (address);Parameters
| Name | Type | Description |
|---|---|---|
| localToken | address | |
| foreignEvmChainId | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
setCctpDomain
Associates an EVM chain ID with a CCTP domain in the contract storage.
function setCctpDomain(uint256 evmChainId, uint32 cctpDomain) external;Parameters
| Name | Type | Description |
|---|---|---|
| evmChainId | uint256 | The EVM chain ID. |
| cctpDomain | uint32 | The CCTP domain. |
setForeignToken
Associates a local token with its foreign counterpart used in CCTP bridging.
function setForeignToken(address localToken, uint256 foreignEvmChainId, address foreignToken) external;Parameters
| Name | Type | Description |
|---|---|---|
| localToken | address | The local token address. |
| foreignEvmChainId | uint256 | The foreign EVM chain ID. |
| foreignToken | address | The foreign token address. |
Events
ForeignTokenRegistered
event ForeignTokenRegistered(address indexed localToken, uint256 indexed evmChainId, address indexed foreignToken);Parameters
| Name | Type | Description |
|---|---|---|
| localToken | address | |
| evmChainId | uint256 | |
| foreignToken | address |
CctpDomainRegistered
event CctpDomainRegistered(uint256 indexed evmChainId, uint32 indexed cctpDomain);Parameters
| Name | Type | Description |
|---|---|---|
| evmChainId | uint256 | |
| cctpDomain | uint32 |