IONFT721Core
Inherits: IERC165
Interface of the ONFT Core standard
Functions
estimateSendFee
estimate send token _tokenId
to (_dstChainId
, _toAddress
)
_dstChainId - L0 defined chain id to send tokens too
_toAddress - dynamic bytes array which contains the address to whom you are sending tokens to on the dstChain
_tokenId - token Id to transfer
_useZro - indicates to use zro to pay L0 fees
_adapterParams - flexible bytes array to indicate messaging adapter services in L0
function estimateSendFee(
uint16 _dstChainId,
bytes calldata _toAddress,
uint256 _tokenId,
bool _useZro,
bytes calldata _adapterParams,
bytes memory _data
) external view returns (uint256 nativeFee, uint256 zroFee);
estimateSendBatchFee
estimate send token _tokenId
to (_dstChainId
, _toAddress
)
_dstChainId - L0 defined chain id to send tokens too
_toAddress - dynamic bytes array which contains the address to whom you are sending tokens to on the dstChain
_tokenIds[] - token Ids to transfer
_useZro - indicates to use zro to pay L0 fees
_adapterParams - flexible bytes array to indicate messaging adapter services in L0
function estimateSendBatchFee(
uint16 _dstChainId,
bytes calldata _toAddress,
uint256[] calldata _tokenIds,
bool _useZro,
bytes calldata _adapterParams,
bytes[] memory _data
) external view returns (uint256 nativeFee, uint256 zroFee);
Events
SendToChain
Emitted when _tokenIds[]
are moved from the _sender
to (_dstChainId
, _toAddress
)
_nonce
is the outbound nonce from
event SendToChain(uint16 indexed _dstChainId, address indexed _from, bytes indexed _toAddress, uint256[] _tokenIds);
ReceiveFromChain
event ReceiveFromChain(
uint16 indexed _srcChainId, bytes indexed _srcAddress, address indexed _toAddress, uint256[] _tokenIds
);
CreditStored
Emitted when _payload
was received from lz, but not enough gas to deliver all tokenIds
event CreditStored(bytes32 _hashedPayload, bytes _payload);
CreditCleared
Emitted when _hashedPayload
has been completely delivered
event CreditCleared(bytes32 _hashedPayload);