OFTCore

Git Source

Inherits: NonblockingLzApp, ERC165Base, IOFTCore

State Variables

PT_SEND

uint16 public constant PT_SEND = 0;

Functions

constructor

constructor(address lzEndpoint) NonblockingLzApp(lzEndpoint);

estimateSendFee

function estimateSendFee(
    uint16 dstChainId,
    bytes memory toAddress,
    uint256 amount,
    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 amount,
    address payable refundAddress,
    address zroPaymentAddress,
    bytes memory adapterParams
) public payable virtual override;

_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;

_debitFrom

function _debitFrom(address from, uint16 dstChainId, bytes memory toAddress, uint256 amount) internal virtual;

_creditTo

function _creditTo(uint16 srcChainId, address toAddress, uint256 amount) internal virtual;