Skip to content
LogoLogo

AcrossV3BridgeConfig

Git Source

Inherits: AccessManagedUpgradeable, IAcrossV3BridgeConfig

Constants

AcrossV3BridgeConfigStorageLocation

bytes32 private constant AcrossV3BridgeConfigStorageLocation =
        0x55c9f27624440face9d60f824f50119631f5ca1c165e4b047f325c445d2b2500;

Functions

_getAcrossV3BridgeConfigStorage

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

Returns

NameTypeDescription
$AcrossV3BridgeConfigStorage

constructor

constructor();

initialize

function initialize(address initialAuthority) external initializer;

Parameters

NameTypeDescription
initialAuthorityaddress

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
_addressThe token being sent from the source chain.
foreignChainIduint256The destination chain ID.
_addressThe token being received on the destination chain.

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);

Parameters

NameTypeDescription
foreignChainIduint256

Returns

NameTypeDescription
<none>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;
    }

Properties

NameTypeDescription
_isForeignChainSupportedmapping(uint256 evmChainId => bool isSupported)