AcrossV3BridgeAdapter
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
| Name | Type | Description |
|---|---|---|
| _registry | address | |
| _acrossV3SpokePool | address |
initialize
Initializer of the contract.
function initialize(address _controller, bytes calldata) external override initializer;Parameters
| Name | Type | Description |
|---|---|---|
| _controller | address | The bridge controller contract. |
| _ | bytes | The optional initialization data. |
handleV3AcrossMessage
function handleV3AcrossMessage(address tokenSent, uint256 amount, address, bytes memory encodedMessage)
external
override;Parameters
| Name | Type | Description |
|---|---|---|
| tokenSent | address | |
| amount | uint256 | |
| _ | address | |
| encodedMessage | bytes |
_outBridgeTransferCancelDefault
Internal logic for outgoing bridge transfer cancellation default.
function _outBridgeTransferCancelDefault(uint256 transferId) internal view override returns (uint256);Parameters
| Name | Type | Description |
|---|---|---|
| transferId | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 |
_checkOutBridgeTransferIsCancellable
Checks if an outgoing bridge transfer is in a cancellable state.
function _checkOutBridgeTransferIsCancellable(uint256 transferId) internal override;Parameters
| Name | Type | Description |
|---|---|---|
| transferId | uint256 |
_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
| Name | Type | Description |
|---|---|---|
| transferId | uint256 | |
| data | bytes |