Skip to content
LogoLogo

AcrossV3BridgeAdapter

Git Source

Inherits: BridgeAdapter, IAcrossV3MessageHandler

Constants

ACROSS_V3_BRIDGE_ID

uint16 private constant ACROSS_V3_BRIDGE_ID = 1;

Functions

constructor

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

Parameters

NameTypeDescription
_registryaddress
_acrossV3SpokePooladdress

initialize

Initializer of the contract.

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

Parameters

NameTypeDescription
_controlleraddressThe bridge controller contract.
_bytesThe optional initialization data.

handleV3AcrossMessage

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

Parameters

NameTypeDescription
tokenSentaddress
amountuint256
_address
encodedMessagebytes

_outBridgeTransferCancelDefault

Internal logic for outgoing bridge transfer cancellation default.

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

Parameters

NameTypeDescription
transferIduint256

Returns

NameTypeDescription
<none>uint256

_checkOutBridgeTransferIsCancellable

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

function _checkOutBridgeTransferIsCancellable(uint256 transferId) internal override;

Parameters

NameTypeDescription
transferIduint256

_sendOutBridgeTransfer

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

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

Parameters

NameTypeDescription
transferIduint256
databytes