Relay Chain Contract
Last updated
Last updated
Here to get MAPO mainnet and testnet MCS contract address.
Cross-chain transfer of tokens
function transferOutToken(address _token, bytes memory _to, uint256 _amount, uint256 _toChain) external
_token
address
Token address to transfer tokens from
_to
bytes
The destination chain receiving address of the token to be transferred out
_amount
uint256
Amount of tokens to be transferred
_toChain
uint256
Target chain id to transfer out
Cross-chain transfer out of the native token
function transferOutNative(bytes memory _to, uint256 _toChain) external
_to
bytes
The destination chain receiving address of the token to be transferred out
_toChain
uint256
Target chain id to transfer out
The deposit tokens are in the chain
function depositToken(address _token, address _to, uint _amount) external
_token
address
Token address to transfer tokens from
_to
address
The destination chain receiving address of the token to be deposited out
_amount
uint
Amount of tokens to be deposited
The deposit native tokens are in the chain
function depositNative(address _to) external
_to
address
The destination chain receiving address of the token to be transferred out
Withdraw staked tokens and earnings
function withdraw(address _vaultToken, uint256 _vaultAmount) external
_vaultToken
address
valut token address
_vaultAmount
uint256
Amount of tokens withdraw
Perform cross-chain transfer
function transferIn(uint256 _chainId, bytes memory _receiptProof) external
_chainId
uint256
source chain id
_receiptProof
bytes
source chain transfer proof
Perform cross-chain deposit
function depositIn(uint256 _chainId, bytes memory _receiptProof) external
_chainId
uint256
source chain id
_receiptProof
bytes
source chain depsoit proof
ReceiptProof includes the proof and the receipt to prove.