OFTCore
Inherits: NonblockingLzApp, ERC165, IOFTCore
State Variables
NO_EXTRA_GAS
uint256 public constant NO_EXTRA_GAS = 0;
PT_SEND
uint16 public constant PT_SEND = 0;
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 calldata _toAddress,
uint256 _amount,
bool _useZro,
bytes calldata _adapterParams
) public view virtual override returns (uint256 nativeFee, uint256 zroFee);
sendFrom
function sendFrom(
address _from,
uint16 _dstChainId,
bytes calldata _toAddress,
uint256 _amount,
address payable _refundAddress,
address _zroPaymentAddress,
bytes calldata _adapterParams
) public payable virtual override;
setUseCustomAdapterParams
function setUseCustomAdapterParams(bool _useCustomAdapterParams) public virtual onlyOwner;
_nonblockingLzReceive
function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload)
internal
virtual
override;
_send
function _send(
address _from,
uint16 _dstChainId,
bytes memory _toAddress,
uint256 _amount,
address payable _refundAddress,
address _zroPaymentAddress,
bytes memory _adapterParams
) internal virtual;
_sendAck
function _sendAck(uint16 _srcChainId, bytes memory, uint64, bytes memory _payload) internal virtual;
_checkAdapterParams
function _checkAdapterParams(uint16 _dstChainId, uint16 _pkType, bytes memory _adapterParams, uint256 _extraGas)
internal
virtual;
_debitFrom
function _debitFrom(address _from, uint16 _dstChainId, bytes memory _toAddress, uint256 _amount)
internal
virtual
returns (uint256);
_creditTo
function _creditTo(uint16 _srcChainId, address _toAddress, uint256 _amount) internal virtual returns (uint256);