CrossChain Precompiled
Address: 0x0000000000000000000000000000000000001004
ABI: ICrossChain
Overview: Use cross-chain precompiled contract to call some functions of the cross-chain module, such as: crossChain, etc.
Method
crossChain (Deprecated)
send token from Pundi AIFX to other chain, like ethereum, pundix, etc.
// Deprecated: please use `IBridgeCall.bridgeCall`
function crossChain(
address _token,
string memory _receipt,
uint256 _amount,
uint256 _fee,
bytes32 _target,
string memory _memo
) external payable returns (result bool);_token: the token address on the Pundi AIFX(Tokens)if token is origin token, _token address is
0x0000000000000000000000000000000000000000
_receipt: the receipt address on the target chain_amount: the amount of the token to be cross chain_fee: the fee of the token to be cross chainif cross chain to cosmos chain, _fee is
0
_target: the target of the token on the target chain(more detail see Target_target represents cross chain destination, such as chain
ethereum,pundixdestination ethereum: _target is
ethdestination other cosmos chain(example Pundix): _target is
ibc/{id}/{prefix}.idis the channel id of the target chain on Pundi AIFX(examples: Pundix: 0)prefixis the address prefix of the target chain(examples: Pundix: px)
_memo: the memo of cross chain
crossChain event
event CrossChain(
address indexed sender,
address indexed token,
string denom,
string receipt,
uint256 amount,
uint256 fee,
bytes32 target,
string memo
);sender: the sender addresstoken: the erc20 token address on the Pundi AIFXdenom: the cross chain token denomreceipt: the receipt address on the target chainamount: the amount of the token to be cross chainfee: the fee of the token to be cross chaintarget: the target of cross chainmemo: the memo of cross chain
Last updated