AcrossV3BridgeConfig
Inherits: AccessManagedUpgradeable, IAcrossV3BridgeConfig
Constants
AcrossV3BridgeConfigStorageLocation
bytes32 private constant AcrossV3BridgeConfigStorageLocation =
0x55c9f27624440face9d60f824f50119631f5ca1c165e4b047f325c445d2b2500;Functions
_getAcrossV3BridgeConfigStorage
function _getAcrossV3BridgeConfigStorage() private pure returns (AcrossV3BridgeConfigStorage storage $);Returns
| Name | Type | Description |
|---|---|---|
| $ | AcrossV3BridgeConfigStorage |
constructor
constructor();initialize
function initialize(address initialAuthority) external initializer;Parameters
| Name | Type | Description |
|---|---|---|
| initialAuthority | address |
isRouteSupported
Returns whether a bridge transfer route is supported for the associated bridge.
function isRouteSupported(address, uint256 foreignChainId, address) external view override returns (bool);Parameters
| Name | Type | Description |
|---|---|---|
| _ | address | The token being sent from the source chain. |
| foreignChainId | uint256 | The destination chain ID. |
| _ | address | The token being received on the destination chain. |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bool | True if the route is supported, false otherwise. |
isForeignChainSupported
Foreign Chain ID => Whether the chain is supported.
function isForeignChainSupported(uint256 foreignChainId) public view override returns (bool);Parameters
| Name | Type | Description |
|---|---|---|
| foreignChainId | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bool |
setForeignChainSupported
Sets whether a foreign chain is supported.
function setForeignChainSupported(uint256 foreignChainId, bool supported) external override restricted;Parameters
| Name | Type | Description |
|---|---|---|
| foreignChainId | uint256 | The foreign chain ID. |
| supported | bool | True if the chain is supported, false otherwise. |
Structs
AcrossV3BridgeConfigStorage
Note:
- storage-location: erc7201:makina.storage.AcrossV3BridgeConfig
struct AcrossV3BridgeConfigStorage {
mapping(uint256 evmChainId => bool isSupported) _isForeignChainSupported;
}Properties
| Name | Type | Description |
|---|---|---|
| _isForeignChainSupported | mapping(uint256 evmChainId => bool isSupported) |