WhiteFullDebridge

WhiteDebridge for chains with low fees

Read-Only Functions

feeProxy

function feeProxy() external view returns (IFeeProxy);

Returns proxy to convert the collected fees into LINK token.

weth

function weth() external view returns (IWETH);

Returns contract for wrapped native token.

State-Changing Functions

mint

function mint(
bytes32 _debridgeId,
uint256 _chainIdFrom,
address _receiver,
uint256 _amount,
uint256 _nonce
) external;

Mints wrapped asset on the current chain; is expected to be ca by the user who receives the transferred amount.

Parameter

Type

Description

_debridgeId

bytes32

Asset identifier

_chainIdFrom

uint256

Chain identifier of the chain where tokens are sent from

_amount

uint256

Amount of the transferred asset

_receiver

address

Receiver address

_nonce

uint256

User's transfer count

mintWithOldAggregator

function mintWithOldAggregator(
bytes32 _debridgeId,
uint256 _chainIdFrom,
address _receiver,
uint256 _amount,
uint256 _nonce,
uint8 _aggregatorVersion
) external;

Mints wrapped asset on the current chain using confirmations from old aggregator; is expected to be called by the user who receives the transferred amount.

Parameter

Type

Description

_debridgeId

bytes32

Asset identifier

_chainIdFrom

uint256

Chain identifier of the chain where tokens are sent from

_amount

uint256

Amount of the transferred asset

_receiver

address

Receiver address

_nonce

uint256

User's transfer count

_aggregatorVersion

uint8

Aggregator version

autoMint

function autoMint(
bytes32 _debridgeId,
uint256 _chainIdFrom,
address _receiver,
uint256 _amount,
uint256 _nonce,
address _fallbackAddress,
uint256 _executionFee,
bytes memory _data
) external;

Mints wrapped asset on the current chain; is expected to be called by the worker which earns the execution fee.

Parameter

Type

Description

_debridgeId

bytes32

Asset identifier

_chainIdFrom

uint256

Chain identifier of the chain where tokens are sent from

_amount

uint256

Amount of the transferred asset

_receiver

address

Receiver address

_nonce

uint256

User's transfer count

_fallbackAddress

address

Receiver of the tokens if the call fails

_executionFee

uint256

Fees paid to the transaction executor

_data

bytes

Data for the call

autoMintWithOldAggregator

function autoMintWithOldAggregator(
bytes32 _debridgeId,
uint256 _chainIdFrom,
address _receiver,
uint256 _amount,
uint256 _nonce,
address _fallbackAddress,
uint256 _executionFee,
bytes memory _data,
uint8 _aggregatorVersion
) external;

Mints wrapped asset on the current chain using the confirmations from old aggregator; is expected to be called by the worked who earns the execution fee.

Parameter

Type

Description

_debridgeId

bytes32

Asset identifier

_chainIdFrom

uint256

Chain identifier of the chain where tokens are sent from

_amount

uint256

Amount of the transferred asset

_receiver

address

Receiver address

_nonce

uint256

User's transfer count

_fallbackAddress

address

Receiver of the tokens if the call fails

_executionFee

uint256

Fees paid to the transaction executor

_data

bytes

Data for the call

_aggregatorVersion

uint8

Aggregator version

claim

function claim(
bytes32 _debridgeId,
uint256 _chainIdFrom,
address _receiver,
uint256 _amount,
uint256 _nonce
) external;

Unlock the asset on the current chain and transfer it to the receiver.

Parameter

Type

Description

_debridgeId

bytes32

Asset identifier

_chainIdFrom

uint256

Chain identifier of the chain where tokens are sent from

_amount

uint256

Amount of the transferred asset

_receiver

address

Receiver address

_nonce

uint256

User's transfer count

claimWithOldAggregator

function claimWithOldAggregator(
bytes32 _debridgeId,
uint256 _chainIdFrom,
address _receiver,
uint256 _amount,
uint256 _nonce,
uint8 _aggregatorVersion
) external;

Unlock the asset on the current chain and transfer to the receiver using the confirmations from the old aggregator.

Parameter

Type

Description

_debridgeId

bytes32

Asset identifier

_chainIdFrom

uint256

Chain identifier of the chain where tokens are sent from

_amount

uint256

Amount of the transferred asset

_receiver

address

Receiver address

_nonce

uint256

User's transfer count

_aggregatorVersion

uint8

Aggregator version

autoClaim

function autoClaim(
bytes32 _debridgeId,
uint256 _chainIdFrom,
address _receiver,
uint256 _amount,
uint256 _nonce,
address _fallbackAddress,
uint256 _executionFee,
bytes memory _data
) external;

Unlock the asset on the current chain and transfer it to the receiver; is expected to be called by the worker that earns the execution fee.

Parameter

Type

Description

_debridgeId

bytes32

Asset identifier

_chainIdFrom

uint256

Chain identifier of the chain where tokens are sent from

_amount

uint256

Amount of the transferred asset

_receiver

address

Receiver address

_nonce

uint256

User's transfer count

_fallbackAddress

address

Receiver of the tokens if the call fails

_executionFee

uint256

Fees paid to the transaction executor

_data

bytes

Data for the call

autoClaimWithOldAggregator

function autoClaimWithOldAggregator(
bytes32 _debridgeId,
uint256 _chainIdFrom,
address _receiver,
uint256 _amount,
uint256 _nonce,
address _fallbackAddress,
uint256 _executionFee,
bytes memory _data,
uint8 _aggregatorVersion
) external;

Unlock the asset on the current chain and transfer to the receiver using the confirmations from the old aggregator; is expected to be called by the worker that earns the execution fee.

Parameter

Type

Description

_debridgeId

bytes32

Asset identifier

_chainIdFrom

uint256

Chain identifier of the chain where tokens are sent from

_amount

uint256

Amount of the transferred asset

_receiver

address

Receiver address

_nonce

uint256

User's transfer count

_fallbackAddress

address

Receiver of the tokens if the call fails

_executionFee

uint256

Fees paid to the transaction executor

_data

bytes

Data for the call

_aggregatorVersion

uint8

Aggregator version

fundAggregator

function fundAggregator(bytes32 _debridgeId, uint256 _amount) external;

Fund aggregator.

Parameter

Type

Description

_debridgeId

bytes32

Asset identifier

_amount

uint256

Amount of the transferred asset

setFeeProxy

function setFeeProxy(IFeeProxy _feeProxy) external;

Set fee converter proxy.

Parameter

Type

Description

_feeProxy

IFeeProxy

Fee proxy

setWeth

function setWeth(IWETH _weth) external;

Set wrapped native asset address.

Parameter

Type

Description

_weth

IWETH

Wrapped native token address