ONFT1155Core
Inherits: NonblockingLzApp, ERC165, IONFT1155Core
State Variables
NO_EXTRA_GAS
uint256 public constant NO_EXTRA_GAS = 0;
FUNCTION_TYPE_SEND
uint16 public constant FUNCTION_TYPE_SEND = 1;
FUNCTION_TYPE_SEND_BATCH
uint16 public constant FUNCTION_TYPE_SEND_BATCH = 2;
useCustomAdapterParams
bool public useCustomAdapterParams;
Functions
constructor
constructor(address _lzEndpoint) NonblockingLzApp(_lzEndpoint);
supportsInterface
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool);
estimateSendFee
function estimateSendFee(
uint16 _dstChainId,
bytes memory _toAddress,
uint256 _tokenId,
uint256 _amount,
bool _useZro,
bytes memory _adapterParams
) public view virtual override returns (uint256 nativeFee, uint256 zroFee);
estimateSendBatchFee
function estimateSendBatchFee(
uint16 _dstChainId,
bytes memory _toAddress,
uint256[] memory _tokenIds,
uint256[] memory _amounts,
bool _useZro,
bytes memory _adapterParams
) public view virtual override returns (uint256 nativeFee, uint256 zroFee);
sendFrom
function sendFrom(
address _from,
uint16 _dstChainId,
bytes memory _toAddress,
uint256 _tokenId,
uint256 _amount,
address payable _refundAddress,
address _zroPaymentAddress,
bytes memory _adapterParams
) public payable virtual override;
sendBatchFrom
function sendBatchFrom(
address _from,
uint16 _dstChainId,
bytes memory _toAddress,
uint256[] memory _tokenIds,
uint256[] memory _amounts,
address payable _refundAddress,
address _zroPaymentAddress,
bytes memory _adapterParams
) public payable virtual override;
_sendBatch
function _sendBatch(
address _from,
uint16 _dstChainId,
bytes memory _toAddress,
uint256[] memory _tokenIds,
uint256[] memory _amounts,
address payable _refundAddress,
address _zroPaymentAddress,
bytes memory _adapterParams
) internal virtual;
_nonblockingLzReceive
function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64, bytes memory _payload)
internal
virtual
override;
setUseCustomAdapterParams
function setUseCustomAdapterParams(bool _useCustomAdapterParams) external onlyOwner;
_debitFrom
function _debitFrom(
address _from,
uint16 _dstChainId,
bytes memory _toAddress,
uint256[] memory _tokenIds,
uint256[] memory _amounts
) internal virtual;
_creditTo
function _creditTo(uint16 _srcChainId, address _toAddress, uint256[] memory _tokenIds, uint256[] memory _amounts)
internal
virtual;
_toSingletonArray
function _toSingletonArray(uint256 element) internal pure returns (uint256[] memory);
Events
SetUseCustomAdapterParams
event SetUseCustomAdapterParams(bool _useCustomAdapterParams);