WhiteLightDebridge

WhiteDebridge for chains with high fees

State-Changing Functions

mint

function mint(
bytes32 _debridgeId,
uint256 _chainIdFrom,
address _receiver,
uint256 _amount,
uint256 _nonce,
bytes[] calldata _signatures
) 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

_signatures

bytes[] calldata

Array of oracles signatures

mintWithOldAggregator

function autoMintWithOldAggregator(
bytes32 _debridgeId,
uint256 _chainIdFrom,
address _receiver,
uint256 _amount,
uint256 _nonce,
bytes[] calldata _signatures,
address _fallbackAddress,
uint256 _executionFee,
bytes memory _data,
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

_signatures

bytes[] calldata

Array of oracles signatures

_aggregatorVersion

uint8

Aggregator version

autoMint

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

Mints wrapped asset on the current chain; 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

_signatures

bytes[] calldata

Array of oracles signatures

_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,
bytes[] calldata _signatures,
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

_signatures

bytes[] calldata

Array of oracles signatures

_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,
bytes[] calldata _signatures
) external;

Unlock the asset on the current chain and transfer 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

_signatures

bytes[] calldata

Array of oracles signatures

claimWithOldAggregator

function claimWithOldAggregator(
bytes32 _debridgeId,
uint256 _chainIdFrom,
address _receiver,
uint256 _amount,
uint256 _nonce,
bytes[] calldata _signatures,
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

_signatures

bytes[] calldata

Array of oracles signatures

_aggregatorVersion

uint8

Aggregator version

autoClaim

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

Unlock the asset on the current chain and transfer to the receiver; is expected to be called by the worker that earns 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

_signatures

bytes[] calldata

Array of oracles signatures

_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,
bytes[] calldata _signatures,
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

_signatures

bytes[] calldata

Array of oracles signatures

_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

‚Äč