Skip to main content

AcrossV3BridgeConfig

Git Source

Inherits: AccessManagedUpgradeable, IAcrossV3BridgeConfig

State Variables

AcrossV3BridgeConfigStorageLocation

bytes32 private constant AcrossV3BridgeConfigStorageLocation =
0x55c9f27624440face9d60f824f50119631f5ca1c165e4b047f325c445d2b2500;

Functions

_getAcrossV3BridgeConfigStorage

function _getAcrossV3BridgeConfigStorage() internal pure returns (AcrossV3BridgeConfigStorage storage $);

constructor

constructor();

initialize

function initialize(address _initialAuthority) external initializer;

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

NameTypeDescription
<none>address
foreignChainIduint256The destination chain ID.
<none>address

Returns

NameTypeDescription
<none>boolTrue 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);

setForeignChainSupported

Sets whether a foreign chain is supported.

function setForeignChainSupported(uint256 foreignChainId, bool supported) external override restricted;

Parameters

NameTypeDescription
foreignChainIduint256The foreign chain ID.
supportedboolTrue if the chain is supported, false otherwise.

Structs

AcrossV3BridgeConfigStorage

Note: storage-location: erc7201:makina.storage.AcrossV3BridgeConfig

struct AcrossV3BridgeConfigStorage {
mapping(uint256 evmChainId => bool isSupported) _isForeignChainSupported;
}