IONFT1155Core

Git Source

Inherits: IERC165

Interface of the ONFT Core standard

Functions

sendFrom

function sendFrom(
    address _from,
    uint16 _dstChainId,
    bytes calldata _toAddress,
    uint256 _tokenId,
    uint256 _amount,
    address payable _refundAddress,
    address _zroPaymentAddress,
    bytes calldata _adapterParams
) external payable;

sendBatchFrom

function sendBatchFrom(
    address _from,
    uint16 _dstChainId,
    bytes calldata _toAddress,
    uint256[] calldata _tokenIds,
    uint256[] calldata _amounts,
    address payable _refundAddress,
    address _zroPaymentAddress,
    bytes calldata _adapterParams
) external payable;

estimateSendFee

function estimateSendFee(
    uint16 _dstChainId,
    bytes calldata _toAddress,
    uint256 _tokenId,
    uint256 _amount,
    bool _useZro,
    bytes calldata _adapterParams
) external view returns (uint256 nativeFee, uint256 zroFee);

estimateSendBatchFee

function estimateSendBatchFee(
    uint16 _dstChainId,
    bytes calldata _toAddress,
    uint256[] calldata _tokenIds,
    uint256[] calldata _amounts,
    bool _useZro,
    bytes calldata _adapterParams
) external view returns (uint256 nativeFee, uint256 zroFee);

Events

SendToChain

event SendToChain(
    uint16 indexed _dstChainId, address indexed _from, bytes indexed _toAddress, uint256 _tokenId, uint256 _amount
);

SendBatchToChain

event SendBatchToChain(
    uint16 indexed _dstChainId, address indexed _from, bytes indexed _toAddress, uint256[] _tokenIds, uint256[] _amounts
);

ReceiveFromChain

event ReceiveFromChain(
    uint16 indexed _srcChainId, bytes indexed _srcAddress, address indexed _toAddress, uint256 _tokenId, uint256 _amount
);

ReceiveBatchFromChain

event ReceiveBatchFromChain(
    uint16 indexed _srcChainId,
    bytes indexed _srcAddress,
    address indexed _toAddress,
    uint256[] _tokenIds,
    uint256[] _amounts
);