Skip to content
LogoLogo

IAcrossV4BridgeEncoder

Git Source

Inherits: IBridgeEncoder

Functions

acrossV4SpokePool

Address of the Across SpokePool.

function acrossV4SpokePool() external view returns (address);

Returns

NameTypeDescription
<none>address

isRouteRegistered

Returns whether a bridge transfer route is registered.

function isRouteRegistered(address inputToken, uint256 foreignChainId, address outputToken)
        external
        view
        returns (bool);

Parameters

NameTypeDescription
inputTokenaddressThe token to be sent from the source chain.
foreignChainIduint256The destination chain ID.
outputTokenaddressThe token to be received on the destination chain.

Returns

NameTypeDescription
<none>boolTrue if the route is registered, false otherwise.

addRoute

Registers a transfer route.

function addRoute(address inputToken, uint256 foreignChainId, address outputToken) external;

Parameters

NameTypeDescription
inputTokenaddressThe token to be sent from the source chain.
foreignChainIduint256The destination chain ID.
outputTokenaddressThe token to be received on the destination chain.

removeRoute

Unregisters a transfer route.

function removeRoute(address inputToken, uint256 foreignChainId, address outputToken) external;

Parameters

NameTypeDescription
inputTokenaddressThe token to be sent from the source chain.
foreignChainIduint256The destination chain ID.
outputTokenaddressThe token to be received on the destination chain.

Events

RouteAdded

event RouteAdded(address indexed inputToken, uint256 indexed foreignChainId, address indexed outputToken);

Parameters

NameTypeDescription
inputTokenaddress
foreignChainIduint256
outputTokenaddress

RouteRemoved

event RouteRemoved(address indexed inputToken, uint256 indexed foreignChainId, address indexed outputToken);

Parameters

NameTypeDescription
inputTokenaddress
foreignChainIduint256
outputTokenaddress