Item Bridge V2
Last updated
Last updated
interface IItemBridgeLZ {
event ERC1155Received(uint32 _srcChainId, address _srcAddress, address receiver, address item, uint256 amount, uint256 id);
event ERC1155Sent(uint32 _dstChainId, address sender, address item, uint256 amount, uint256 id);
event ItemReceived(uint32 _srcChainId, address _srcAddress, address receiver, address item, uint256 amount);
event ItemSent(uint32 _dstChainId, address sender, address item, uint256 amount);
function estimateFeeSendERC1155(uint16 _dstChainId, address _receiver, address _item, uint256 _amount, uint256 _id) view returns (tuple(uint256 nativeFee, uint256 lzTokenFee) fee);
function estimateFeeSendERC20(uint16 _dstChainId, address _receiver, address _item, uint256 _amount) view returns (tuple(uint256 nativeFee, uint256 lzTokenFee) fee);
function multiEstimateFeeSendERC20(uint16 _dstChainId, address _receiver, address[] _items, uint256[] _amounts) view returns (tuple(uint256 nativeFee, uint256 lzTokenFee) fee);
function multiSendERC1155(uint16 _dstChainId, address _receiver, address[] _items, uint256[] _amounts, uint256[] _ids) payable;
function multiSendERC20(uint16 _dstChainId, address _receiver, address[] _items, uint256[] _amounts) payable;
function sendERC1155(uint16 _dstChainId, address _receiver, address _item, uint256 _amount, uint256 _id) payable;
function sendERC20(uint16 _dstChainId, address _receiver, address _item, uint256 _amount) payable;
}