Skip to main content

AcrossV3BridgeAdapter

Git Source

Inherits: BridgeAdapter, IAcrossV3MessageHandler

State Variables

ACROSS_V3_BRIDGE_ID

uint16 private constant ACROSS_V3_BRIDGE_ID = 1;

Functions

constructor

constructor(address _registry, address _acrossV3SpokePool)
BridgeAdapter(_registry, _acrossV3SpokePool, _acrossV3SpokePool, _acrossV3SpokePool);

initialize

Initializer of the contract.

function initialize(address _controller, bytes calldata) external override initializer;

Parameters

NameTypeDescription
_controlleraddress
<none>bytes

handleV3AcrossMessage

function handleV3AcrossMessage(address tokenSent, uint256 amount, address, bytes memory encodedMessage)
external
override;

_outBridgeTransferCancelDefault

Internal logic for outgoing bridge transfer cancellation default.

function _outBridgeTransferCancelDefault(uint256 transferId) internal view override returns (uint256);

_checkOutBridgeTransferIsCancellable

Checks if an outgoing bridge transfer is in a cancellable state.

function _checkOutBridgeTransferIsCancellable(uint256 transferId) internal override;

_sendOutBridgeTransfer

Handles logic specific to the external bridge protocol for sending out a bridge transfer.

function _sendOutBridgeTransfer(uint256 transferId, bytes calldata data) internal override;