AVAX Price: $22.27 (+2.97%)
Gas: 1 nAVAX
 

Overview

AVAX Balance

Avalanche C-Chain LogoAvalanche C-Chain LogoAvalanche C-Chain Logo0 AVAX

AVAX Value

$0.00

Token Holdings

Multichain Info

1 address found via
Amount:Between 1-100
Reset Filter

Transaction Hash
Method
Block
From
To

There are no matching entries

> 10 Internal Transactions found.

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
526992132024-11-05 18:51:20168 days ago1730832680
0xc3e5a8A1...B3575C478
0.00726597 AVAX
526595672024-11-04 20:10:34169 days ago1730751034
0xc3e5a8A1...B3575C478
0.00650827 AVAX
476588412024-07-07 8:18:23290 days ago1720340303
0xc3e5a8A1...B3575C478
0.04600346 AVAX
468667782024-06-18 10:15:07309 days ago1718705707
0xc3e5a8A1...B3575C478
0.09334175 AVAX
466586222024-06-13 8:11:18314 days ago1718266278
0xc3e5a8A1...B3575C478
0.01792901 AVAX
466586222024-06-13 8:11:18314 days ago1718266278
0xc3e5a8A1...B3575C478
0.01792901 AVAX
457441552024-05-22 4:48:19336 days ago1716353299
0xc3e5a8A1...B3575C478
0.00236202 AVAX
457441552024-05-22 4:48:19336 days ago1716353299
0xc3e5a8A1...B3575C478
0.00236202 AVAX
449738352024-05-03 10:19:28355 days ago1714731568
0xc3e5a8A1...B3575C478
0.00128939 AVAX
449738352024-05-03 10:19:28355 days ago1714731568
0xc3e5a8A1...B3575C478
0.00128939 AVAX
449036532024-05-01 17:08:56356 days ago1714583336
0xc3e5a8A1...B3575C478
0.0105057 AVAX
449036532024-05-01 17:08:56356 days ago1714583336
0xc3e5a8A1...B3575C478
0.0105057 AVAX
448929002024-05-01 10:54:24357 days ago1714560864
0xc3e5a8A1...B3575C478
0.01674349 AVAX
448929002024-05-01 10:54:24357 days ago1714560864
0xc3e5a8A1...B3575C478
0.01674349 AVAX
448047092024-04-29 7:42:22359 days ago1714376542
0xc3e5a8A1...B3575C478
0.00965704 AVAX
448047092024-04-29 7:42:22359 days ago1714376542
0xc3e5a8A1...B3575C478
0.00965704 AVAX
447553182024-04-28 3:03:05360 days ago1714273385
0xc3e5a8A1...B3575C478
0.01017801 AVAX
447553182024-04-28 3:03:05360 days ago1714273385
0xc3e5a8A1...B3575C478
0.01017801 AVAX
447414262024-04-27 18:59:17360 days ago1714244357
0xc3e5a8A1...B3575C478
0.01593602 AVAX
447414262024-04-27 18:59:17360 days ago1714244357
0xc3e5a8A1...B3575C478
0.01593602 AVAX
447234632024-04-27 8:36:50361 days ago1714207010
0xc3e5a8A1...B3575C478
0.01365607 AVAX
447072302024-04-26 23:08:32361 days ago1714172912
0xc3e5a8A1...B3575C478
0.24725705 AVAX
447072302024-04-26 23:08:32361 days ago1714172912
0xc3e5a8A1...B3575C478
0.24725705 AVAX
445802372024-04-23 21:34:21364 days ago1713908061
0xc3e5a8A1...B3575C478
0.00891277 AVAX
445802372024-04-23 21:34:21364 days ago1713908061
0xc3e5a8A1...B3575C478
0.00891277 AVAX
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OmniseaToken

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion
File 1 of 17 : OmniseaToken.sol
pragma solidity ^0.8.7;

import "../oft/OFT.sol";

contract OmniseaToken is OFT {
    constructor(address _layerZeroEndpoint) OFT("Omnisea", "OSEA", _layerZeroEndpoint) {}
}

File 2 of 17 : OFT.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "./OFTCore.sol";
import "./IOFT.sol";

// override decimal() function is needed
contract OFT is OFTCore, ERC20, IOFT {
    constructor(string memory _name, string memory _symbol, address _lzEndpoint) ERC20(_name, _symbol) OFTCore(_lzEndpoint) {}

    function supportsInterface(bytes4 interfaceId) public view virtual override(OFTCore, IERC165) returns (bool) {
        return interfaceId == type(IOFT).interfaceId || interfaceId == type(IERC20).interfaceId || super.supportsInterface(interfaceId);
    }

    function circulatingSupply() public view virtual override returns (uint) {
        return totalSupply();
    }

    function _debitFrom(address _from, uint16, bytes memory, uint _amount) internal virtual override {
        address spender = _msgSender();
        if (_from != spender) {
            uint allowedSpend = allowance(_from, spender);
            require (allowedSpend >= _amount);
        }
        _burn(_from, _amount);
    }

    function _creditTo(uint16, address _toAddress, uint _amount) internal virtual override {
        _mint(_toAddress, _amount);
    }
}

File 3 of 17 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 4 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 5 of 17 : OFTCore.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../lzApp/NonblockingLzApp.sol";
import "./IOFTCore.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

abstract contract OFTCore is NonblockingLzApp, ERC165, IOFTCore {
    constructor(address _lzEndpoint) NonblockingLzApp(_lzEndpoint) {}

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IOFTCore).interfaceId || super.supportsInterface(interfaceId);
    }

    function estimateSendFee(uint16 _dstChainId, bytes memory _toAddress, uint _amount, bool _useZro, bytes memory _adapterParams) public view virtual override returns (uint nativeFee, uint zroFee) {
        // mock the payload for send()
        bytes memory payload = abi.encode(_toAddress, _amount);
        return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _adapterParams);
    }

    function sendFrom(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) public payable virtual override {
        _send(_from, _dstChainId, _toAddress, _amount, _refundAddress, _zroPaymentAddress, _adapterParams);
    }

    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        // decode and load the toAddress
        (bytes memory toAddressBytes, uint amount) = abi.decode(_payload, (bytes, uint));
        address toAddress;
        assembly {
            toAddress := mload(add(toAddressBytes, 20))
        }

        _creditTo(_srcChainId, toAddress, amount);

        emit ReceiveFromChain(_srcChainId, _srcAddress, toAddress, amount, _nonce);
    }

    function _send(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) internal virtual {
        _debitFrom(_from, _dstChainId, _toAddress, _amount);

        bytes memory payload = abi.encode(_toAddress, _amount);
        _lzSend(_dstChainId, payload, _refundAddress, _zroPaymentAddress, _adapterParams);

        uint64 nonce = lzEndpoint.getOutboundNonce(_dstChainId, address(this));
        emit SendToChain(_from, _dstChainId, _toAddress, _amount, nonce);
    }

    function _debitFrom(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _amount) internal virtual;

    function _creditTo(uint16 _srcChainId, address _toAddress, uint _amount) internal virtual;
}

File 6 of 17 : IOFT.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IOFTCore.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/**
 * @dev Interface of the OFT standard
 */
interface IOFT is IOFTCore, IERC20 {

}

File 7 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 8 of 17 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 9 of 17 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 10 of 17 : NonblockingLzApp.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./LzApp.sol";

/*
 * the default LayerZero messaging behaviour is blocking, i.e. any failed message will block the channel
 * this abstract class try-catch all fail messages and store locally for future retry. hence, non-blocking
 * NOTE: if the srcAddress is not configured properly, it will still block the message pathway from (srcChainId, srcAddress)
 */
abstract contract NonblockingLzApp is LzApp {
    constructor(address _endpoint) LzApp(_endpoint) {}

    mapping(uint16 => mapping(bytes => mapping(uint64 => bytes32))) public failedMessages;

    event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload);

    // overriding the virtual function in LzReceiver
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        // try-catch all errors/exceptions
        try this.nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload) {
            // do nothing
        } catch {
            // error / exception
            failedMessages[_srcChainId][_srcAddress][_nonce] = keccak256(_payload);
            emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload);
        }
    }

    function nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) public virtual {
        // only internal transaction
        require(_msgSender() == address(this), "NonblockingLzApp: caller must be LzApp");
        _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    //@notice override this function
    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual;

    function retryMessage(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) public payable virtual {
        // assert there is message to retry
        bytes32 payloadHash = failedMessages[_srcChainId][_srcAddress][_nonce];
        require(payloadHash != bytes32(0), "NonblockingLzApp: no stored message");
        require(keccak256(_payload) == payloadHash, "NonblockingLzApp: invalid payload");
        // clear the stored message
        failedMessages[_srcChainId][_srcAddress][_nonce] = bytes32(0);
        // execute the message. revert if it fails again
        _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }
}

File 11 of 17 : IOFTCore.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @dev Interface of the IOFT core standard
 */
interface IOFTCore is IERC165 {
    /**
     * @dev 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
     * _amount - amount of the tokens to transfer
     * _useZro - indicates to use zro to pay L0 fees
     * _adapterParam - flexible bytes array to indicate messaging adapter services in L0
     */
    function estimateSendFee(uint16 _dstChainId, bytes calldata _toAddress, uint _amount, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee);

    /**
     * @dev send `_amount` amount of token to (`_dstChainId`, `_toAddress`) from `_from`
     * `_from` the owner of token
     * `_dstChainId` the destination chain identifier
     * `_toAddress` can be any size depending on the `dstChainId`.
     * `_amount` the quantity of tokens in wei
     * `_refundAddress` the address LayerZero refunds if too much message fee is sent
     * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token)
     * `_adapterParams` is a flexible bytes array to indicate messaging adapter services
     */
    function sendFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;

    /**
     * @dev returns the circulating amount of tokens on current chain
     */
    function circulatingSupply() external view returns (uint);

    /**
     * @dev Emitted when `_amount` tokens are moved from the `_sender` to (`_dstChainId`, `_toAddress`)
     * `_nonce` is the outbound nonce
     */
    event SendToChain(address indexed _sender, uint16 indexed _dstChainId, bytes indexed _toAddress, uint _amount, uint64 _nonce);

    /**
     * @dev Emitted when `_amount` tokens are received from `_srcChainId` into the `_toAddress` on the local chain.
     * `_nonce` is the inbound nonce.
     */
    event ReceiveFromChain(uint16 indexed _srcChainId, bytes indexed _srcAddress, address indexed _toAddress, uint _amount, uint64 _nonce);
}

File 12 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 13 of 17 : LzApp.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "../interfaces/ILayerZeroReceiver.sol";
import "../interfaces/ILayerZeroUserApplicationConfig.sol";
import "../interfaces/ILayerZeroEndpoint.sol";

/*
 * a generic LzReceiver implementation
 */
abstract contract LzApp is Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig {
    ILayerZeroEndpoint public immutable lzEndpoint;

    mapping(uint16 => bytes) public trustedRemoteLookup;

    event SetTrustedRemote(uint16 _srcChainId, bytes _srcAddress);

    constructor(address _endpoint) {
        lzEndpoint = ILayerZeroEndpoint(_endpoint);
    }

    function lzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) public virtual override {
        // lzReceive must be called by the endpoint for security
        require(_msgSender() == address(lzEndpoint), "LzApp: invalid endpoint caller");

        bytes memory trustedRemote = trustedRemoteLookup[_srcChainId];
        // if will still block the message pathway from (srcChainId, srcAddress). should not receive message from untrusted remote.
        require(_srcAddress.length == trustedRemote.length && keccak256(_srcAddress) == keccak256(trustedRemote), "LzApp: invalid source sending contract");

        _blockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    // abstract function - the default behaviour of LayerZero is blocking. See: NonblockingLzApp if you dont need to enforce ordered messaging
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual;

    function _lzSend(uint16 _dstChainId, bytes memory _payload, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) internal virtual {
        bytes memory trustedRemote = trustedRemoteLookup[_dstChainId];
        require(trustedRemote.length != 0, "LzApp: destination chain is not a trusted source");
        lzEndpoint.send{value: msg.value}(_dstChainId, trustedRemote, _payload, _refundAddress, _zroPaymentAddress, _adapterParams);
    }

    //---------------------------UserApplication config----------------------------------------
    function getConfig(uint16 _version, uint16 _chainId, address, uint _configType) external view returns (bytes memory) {
        return lzEndpoint.getConfig(_version, _chainId, address(this), _configType);
    }

    // generic config for LayerZero user Application
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external override onlyOwner {
        lzEndpoint.setConfig(_version, _chainId, _configType, _config);
    }

    function setSendVersion(uint16 _version) external override onlyOwner {
        lzEndpoint.setSendVersion(_version);
    }

    function setReceiveVersion(uint16 _version) external override onlyOwner {
        lzEndpoint.setReceiveVersion(_version);
    }

    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external override onlyOwner {
        lzEndpoint.forceResumeReceive(_srcChainId, _srcAddress);
    }

    // allow owner to set it multiple times.
    function setTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external onlyOwner {
        trustedRemoteLookup[_srcChainId] = _srcAddress;
        emit SetTrustedRemote(_srcChainId, _srcAddress);
    }

    //--------------------------- VIEW FUNCTION ----------------------------------------

    function isTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool) {
        bytes memory trustedSource = trustedRemoteLookup[_srcChainId];
        return keccak256(trustedSource) == keccak256(_srcAddress);
    }
}

File 14 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 15 of 17 : ILayerZeroReceiver.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

interface ILayerZeroReceiver {
    // @notice LayerZero endpoint will invoke this function to deliver the message on the destination
    // @param _srcChainId - the source endpoint identifier
    // @param _srcAddress - the source sending contract address from the source chain
    // @param _nonce - the ordered message nonce
    // @param _payload - the signed payload is the UA bytes has encoded to be sent
    function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external;
}

File 16 of 17 : ILayerZeroUserApplicationConfig.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

interface ILayerZeroUserApplicationConfig {
    // @notice set the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _configType - type of configuration. every messaging library has its own convention.
    // @param _config - configuration in the bytes. can encode arbitrary content.
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external;

    // @notice set the send() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setSendVersion(uint16 _version) external;

    // @notice set the lzReceive() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setReceiveVersion(uint16 _version) external;

    // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload
    // @param _srcChainId - the chainId of the source chain
    // @param _srcAddress - the contract address of the source contract at the source chain
    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external;
}

File 17 of 17 : ILayerZeroEndpoint.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

import "./ILayerZeroUserApplicationConfig.sol";

interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig {
    // @notice send a LayerZero message to the specified address at a LayerZero endpoint.
    // @param _dstChainId - the destination chain identifier
    // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains
    // @param _payload - a custom bytes payload to send to the destination contract
    // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address
    // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction
    // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination
    function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;

    // @notice used by the messaging library to publish verified payload
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source contract (as bytes) at the source chain
    // @param _dstAddress - the address on destination chain
    // @param _nonce - the unbound message ordering nonce
    // @param _gasLimit - the gas limit for external contract execution
    // @param _payload - verified payload to send to the destination contract
    function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external;

    // @notice get the inboundNonce of a lzApp from a source chain which could be EVM or non-EVM chain
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64);

    // @notice get the outboundNonce from this source chain which, consequently, is always an EVM
    // @param _srcAddress - the source chain contract address
    function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64);

    // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery
    // @param _dstChainId - the destination chain identifier
    // @param _userApplication - the user app address on this EVM chain
    // @param _payload - the custom message to send over LayerZero
    // @param _payInZRO - if false, user app pays the protocol fee in native token
    // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain
    function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee);

    // @notice get this Endpoint's immutable source identifier
    function getChainId() external view returns (uint16);

    // @notice the interface to retry failed message on this Endpoint destination
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    // @param _payload - the payload to be retried
    function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external;

    // @notice query if any STORED payload (message blocking) at the endpoint.
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool);

    // @notice query if the _libraryAddress is valid for sending msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getSendLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the _libraryAddress is valid for receiving msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getReceiveLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the non-reentrancy guard for send() is on
    // @return true if the guard is on. false otherwise
    function isSendingPayload() external view returns (bool);

    // @notice query if the non-reentrancy guard for receive() is on
    // @return true if the guard is on. false otherwise
    function isReceivingPayload() external view returns (bool);

    // @notice get the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _userApplication - the contract address of the user application
    // @param _configType - type of configuration. every messaging library has its own convention.
    function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory);

    // @notice get the send() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getSendVersion(address _userApplication) external view returns (uint16);

    // @notice get the lzReceive() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getReceiveVersion(address _userApplication) external view returns (uint16);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_layerZeroEndpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"MessageFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":true,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":true,"internalType":"address","name":"_toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"ReceiveFromChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_sender","type":"address"},{"indexed":true,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":true,"internalType":"bytes","name":"_toAddress","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"SendToChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"SetTrustedRemote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_useZro","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateSendFee","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"failedMessages","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"forceResumeReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"_configType","type":"uint256"}],"name":"getConfig","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"isTrustedRemote","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lzEndpoint","outputs":[{"internalType":"contract ILayerZeroEndpoint","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"nonblockingLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"retryMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"sendFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"_configType","type":"uint256"},{"internalType":"bytes","name":"_config","type":"bytes"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setReceiveVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setSendVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"}]

60a06040523480156200001157600080fd5b5060405162002a3f38038062002a3f8339810160408190526200003491620001d5565b604051806040016040528060078152602001664f6d6e6973656160c81b815250604051806040016040528060048152602001634f53454160e01b815250828282828080620000916200008b620000db60201b60201c565b620000df565b60601b6001600160601b03191660805250508151620000b89060069060208501906200012f565b508051620000ce9060079060208401906200012f565b5050505050505062000244565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200013d9062000207565b90600052602060002090601f016020900481019282620001615760008555620001ac565b82601f106200017c57805160ff1916838001178555620001ac565b82800160010185558215620001ac579182015b82811115620001ac5782518255916020019190600101906200018f565b50620001ba929150620001be565b5090565b5b80821115620001ba5760008155600101620001bf565b600060208284031215620001e857600080fd5b81516001600160a01b03811681146200020057600080fd5b9392505050565b600181811c908216806200021c57607f821691505b602082108114156200023e57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c61279d620002a2600039600081816104cb015281816105a30152818161085f0152818161091e01528181610a3e01528181610c2701528181610f05015281816112570152818161174d0152611a79015261279d6000f3fe6080604052600436106101675760003560e01c80621d35671461016c57806301ffc9a71461018e57806306fdde03146101c357806307e0db17146101e5578063095ea7b31461020557806310ddb1371461022557806318160ddd1461024557806323b872dd146102645780632a205e3d14610284578063313ce567146102b957806339509351146102d55780633d8b38f6146102f557806342d65a8d1461031557806351905636146103355780635b8c41e61461034857806366ad5c8a1461039757806370a08231146103b7578063715018a6146103ed5780637533d788146104025780638da5cb5b146104225780639358928b1461044f57806395d89b4114610464578063a457c2d714610479578063a9059cbb14610499578063b353aaa7146104b9578063cbed8b9c146104ed578063d1deba1f1461050d578063dd62ed3e14610520578063eb8d72b714610540578063f2fde38b14610560578063f5ecbdbc14610580575b600080fd5b34801561017857600080fd5b5061018c61018736600461222e565b6105a0565b005b34801561019a57600080fd5b506101ae6101a9366004612025565b610747565b60405190151581526020015b60405180910390f35b3480156101cf57600080fd5b506101d8610785565b6040516101ba9190612433565b3480156101f157600080fd5b5061018c6102003660046120c9565b610817565b34801561021157600080fd5b506101ae610220366004611ff9565b6108c0565b34801561023157600080fd5b5061018c6102403660046120c9565b6108d6565b34801561025157600080fd5b506005545b6040519081526020016101ba565b34801561027057600080fd5b506101ae61027f366004611eff565b610955565b34801561029057600080fd5b506102a461029f366004612136565b6109ff565b604080519283526020830191909152016101ba565b3480156102c557600080fd5b50604051601281526020016101ba565b3480156102e157600080fd5b506101ae6102f0366004611ff9565b610ad9565b34801561030157600080fd5b506101ae6103103660046120e4565b610b15565b34801561032157600080fd5b5061018c6103303660046120e4565b610be1565b61018c610343366004611f40565b610c97565b34801561035457600080fd5b506102566103633660046121cd565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b3480156103a357600080fd5b5061018c6103b236600461222e565b610ca6565b3480156103c357600080fd5b506102566103d2366004611ea2565b6001600160a01b031660009081526003602052604090205490565b3480156103f957600080fd5b5061018c610d16565b34801561040e57600080fd5b506101d861041d3660046120c9565b610d51565b34801561042e57600080fd5b50610437610deb565b6040516001600160a01b0390911681526020016101ba565b34801561045b57600080fd5b50610256610dfa565b34801561047057600080fd5b506101d8610e0a565b34801561048557600080fd5b506101ae610494366004611ff9565b610e19565b3480156104a557600080fd5b506101ae6104b4366004611ff9565b610eb2565b3480156104c557600080fd5b506104377f000000000000000000000000000000000000000000000000000000000000000081565b3480156104f957600080fd5b5061018c610508366004612303565b610ebf565b61018c61051b36600461222e565b610f7b565b34801561052c57600080fd5b5061025661053b366004611ec6565b6110cd565b34801561054c57600080fd5b5061018c61055b3660046120e4565b6110f8565b34801561056c57600080fd5b5061018c61057b366004611ea2565b611186565b34801561058c57600080fd5b506101d861059b3660046122b6565b611226565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161461061d5760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff84166000908152600160205260408120805461063b906126b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610667906126b6565b80156106b45780601f10610689576101008083540402835291602001916106b4565b820191906000526020600020905b81548152906001019060200180831161069757829003601f168201915b50505050509050805184511480156106d9575080805190602001208480519060200120145b6107345760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608401610614565b610740858585856112e6565b5050505050565b60006001600160e01b03198216158061077057506001600160e01b031982166336372b0760e01b145b8061077f575061077f826113d7565b92915050565b606060068054610794906126b6565b80601f01602080910402602001604051908101604052809291908181526020018280546107c0906126b6565b801561080d5780601f106107e25761010080835404028352916020019161080d565b820191906000526020600020905b8154815290600101906020018083116107f057829003601f168201915b5050505050905090565b33610820610deb565b6001600160a01b0316146108465760405162461bcd60e51b815260040161061490612468565b6040516307e0db1760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906307e0db17906024015b600060405180830381600087803b1580156108ac57600080fd5b505af1158015610740573d6000803e3d6000fd5b60006108cd33848461140c565b50600192915050565b336108df610deb565b6001600160a01b0316146109055760405162461bcd60e51b815260040161061490612468565b6040516310ddb13760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906310ddb13790602401610892565b6000610962848484611530565b6001600160a01b0384166000908152600460209081526040808320338452909152902054828110156109e75760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610614565b6109f4853385840361140c565b506001949350505050565b60008060008686604051602001610a17929190612446565b60408051601f198184030181529082905263040a7bb160e41b825291506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906340a7bb1090610a7b908b90309086908b908b9060040161249d565b604080518083038186803b158015610a9257600080fd5b505afa158015610aa6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aca9190612371565b92509250509550959350505050565b3360008181526004602090815260408083206001600160a01b038716845290915281205490916108cd918590610b1090869061265b565b61140c565b61ffff831660009081526001602052604081208054829190610b36906126b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610b62906126b6565b8015610baf5780601f10610b8457610100808354040283529160200191610baf565b820191906000526020600020905b815481529060010190602001808311610b9257829003601f168201915b505050505090508383604051610bc6929190612407565b60405180910390208180519060200120149150509392505050565b33610bea610deb565b6001600160a01b031614610c105760405162461bcd60e51b815260040161061490612468565b6040516342d65a8d60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342d65a8d90610c60908690869086906004016124f1565b600060405180830381600087803b158015610c7a57600080fd5b505af1158015610c8e573d6000803e3d6000fd5b50505050505050565b610c8e878787878787876116ec565b333014610d045760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608401610614565b610d108484848461183a565b50505050565b33610d1f610deb565b6001600160a01b031614610d455760405162461bcd60e51b815260040161061490612468565b610d4f60006118cd565b565b60016020526000908152604090208054610d6a906126b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610d96906126b6565b8015610de35780601f10610db857610100808354040283529160200191610de3565b820191906000526020600020905b815481529060010190602001808311610dc657829003601f168201915b505050505081565b6000546001600160a01b031690565b6000610e0560055490565b905090565b606060078054610794906126b6565b3360009081526004602090815260408083206001600160a01b038616845290915281205482811015610e9b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610614565b610ea8338585840361140c565b5060019392505050565b60006108cd338484611530565b33610ec8610deb565b6001600160a01b031614610eee5760405162461bcd60e51b815260040161061490612468565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c90610f4290889088908890889088906004016125bf565b600060405180830381600087803b158015610f5c57600080fd5b505af1158015610f70573d6000803e3d6000fd5b505050505050505050565b61ffff84166000908152600260205260408082209051610f9c908690612417565b90815260408051602092819003830190206001600160401b0386166000908152925290205490508061101c5760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608401610614565b81516020830120811461107b5760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608401610614565b61ffff8516600090815260026020526040808220905161109c908790612417565b90815260408051602092819003830190206001600160401b038716600090815292529020556107408585858561183a565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b33611101610deb565b6001600160a01b0316146111275760405162461bcd60e51b815260040161061490612468565b61ffff83166000908152600160205260409020611145908383611d07565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab838383604051611179939291906124f1565b60405180910390a1505050565b3361118f610deb565b6001600160a01b0316146111b55760405162461bcd60e51b815260040161061490612468565b6001600160a01b03811661121a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610614565b611223816118cd565b50565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f5ecbdbc9060840160006040518083038186803b1580156112a157600080fd5b505afa1580156112b5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112dd919081019061204f565b95945050505050565b604051633356ae4560e11b815230906366ad5c8a9061130f908790879087908790600401612576565b600060405180830381600087803b15801561132957600080fd5b505af192505050801561133a575060015b610d10578080519060200120600260008661ffff1661ffff1681526020019081526020016000208460405161136f9190612417565b9081526040805191829003602090810183206001600160401b0387166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d906113ca908690869086908690612576565b60405180910390a1610d10565b60006001600160e01b031982166301d1d13560e71b148061077f57506301ffc9a760e01b6001600160e01b031983161461077f565b6001600160a01b03831661146e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610614565b6001600160a01b0382166114cf5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610614565b6001600160a01b0383811660008181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166115945760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610614565b6001600160a01b0382166115f65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610614565b6001600160a01b0383166000908152600360205260409020548181101561166e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610614565b6001600160a01b038085166000908152600360205260408082208585039055918516815290812080548492906116a590849061265b565b92505081905550826001600160a01b0316846001600160a01b0316600080516020612748833981519152846040516116df91815260200190565b60405180910390a3610d10565b6116f887878787611922565b6000858560405160200161170d929190612446565b604051602081830303815290604052905061172b878286868661195a565b604051630f428ae960e31b815261ffff881660048201523060248201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637a1457489060440160206040518083038186803b15801561179757600080fd5b505afa1580156117ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117cf9190612395565b9050866040516117df9190612417565b60405180910390208861ffff168a6001600160a01b03167f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce154389856040516118279291906125ed565b60405180910390a4505050505050505050565b600080828060200190518101906118519190612083565b60148201519193509150611866878284611af4565b806001600160a01b03168660405161187e9190612417565b60405180910390208861ffff167f64e10c37f404d128982dce114f5d233c14c5c7f6d8db93099e3d99dacb9e27ba85896040516118bc9291906125ed565b60405180910390a450505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b505050565b336001600160a01b038516811461195057600061193f86836110cd565b90508281101561194e57600080fd5b505b6107408583611afe565b61ffff851660009081526001602052604081208054611978906126b6565b80601f01602080910402602001604051908101604052809291908181526020018280546119a4906126b6565b80156119f15780601f106119c6576101008083540402835291602001916119f1565b820191906000526020600020905b8154815290600101906020018083116119d457829003601f168201915b50505050509050805160001415611a635760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608401610614565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c5803100903490611aba908a9086908b908b908b908b9060040161250f565b6000604051808303818588803b158015611ad357600080fd5b505af1158015611ae7573d6000803e3d6000fd5b5050505050505050505050565b61191d8282611c3a565b6001600160a01b038216611b5e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610614565b6001600160a01b03821660009081526003602052604090205481811015611bd25760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610614565b6001600160a01b0383166000908152600360205260408120838303905560058054849290611c01908490612673565b90915550506040518281526000906001600160a01b038516906000805160206127488339815191529060200160405180910390a3505050565b6001600160a01b038216611c905760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610614565b8060056000828254611ca2919061265b565b90915550506001600160a01b03821660009081526003602052604081208054839290611ccf90849061265b565b90915550506040518181526001600160a01b038316906000906000805160206127488339815191529060200160405180910390a35050565b828054611d13906126b6565b90600052602060002090601f016020900481019282611d355760008555611d7b565b82601f10611d4e5782800160ff19823516178555611d7b565b82800160010185558215611d7b579182015b82811115611d7b578235825591602001919060010190611d60565b50611d87929150611d8b565b5090565b5b80821115611d875760008155600101611d8c565b60008083601f840112611db257600080fd5b5081356001600160401b03811115611dc957600080fd5b602083019150836020828501011115611de157600080fd5b9250929050565b600082601f830112611df957600080fd5b8135611e0c611e0782612634565b612604565b818152846020838601011115611e2157600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f830112611e4f57600080fd5b8151611e5d611e0782612634565b818152846020838601011115611e7257600080fd5b611e8382602083016020870161268a565b949350505050565b803561ffff81168114611e9d57600080fd5b919050565b600060208284031215611eb457600080fd5b8135611ebf8161271d565b9392505050565b60008060408385031215611ed957600080fd5b8235611ee48161271d565b91506020830135611ef48161271d565b809150509250929050565b600080600060608486031215611f1457600080fd5b8335611f1f8161271d565b92506020840135611f2f8161271d565b929592945050506040919091013590565b600080600080600080600060e0888a031215611f5b57600080fd5b8735611f668161271d565b9650611f7460208901611e8b565b955060408801356001600160401b0380821115611f9057600080fd5b611f9c8b838c01611de8565b965060608a0135955060808a01359150611fb58261271d565b90935060a089013590611fc78261271d565b90925060c08901359080821115611fdd57600080fd5b50611fea8a828b01611de8565b91505092959891949750929550565b6000806040838503121561200c57600080fd5b82356120178161271d565b946020939093013593505050565b60006020828403121561203757600080fd5b81356001600160e01b031981168114611ebf57600080fd5b60006020828403121561206157600080fd5b81516001600160401b0381111561207757600080fd5b611e8384828501611e3e565b6000806040838503121561209657600080fd5b82516001600160401b038111156120ac57600080fd5b6120b885828601611e3e565b925050602083015190509250929050565b6000602082840312156120db57600080fd5b611ebf82611e8b565b6000806000604084860312156120f957600080fd5b61210284611e8b565b925060208401356001600160401b0381111561211d57600080fd5b61212986828701611da0565b9497909650939450505050565b600080600080600060a0868803121561214e57600080fd5b61215786611e8b565b945060208601356001600160401b038082111561217357600080fd5b61217f89838a01611de8565b95506040880135945060608801359150811515821461219d57600080fd5b909250608087013590808211156121b357600080fd5b506121c088828901611de8565b9150509295509295909350565b6000806000606084860312156121e257600080fd5b6121eb84611e8b565b925060208401356001600160401b0381111561220657600080fd5b61221286828701611de8565b925050604084013561222381612732565b809150509250925092565b6000806000806080858703121561224457600080fd5b61224d85611e8b565b935060208501356001600160401b038082111561226957600080fd5b61227588838901611de8565b94506040870135915061228782612732565b9092506060860135908082111561229d57600080fd5b506122aa87828801611de8565b91505092959194509250565b600080600080608085870312156122cc57600080fd5b6122d585611e8b565b93506122e360208601611e8b565b925060408501356122f38161271d565b9396929550929360600135925050565b60008060008060006080868803121561231b57600080fd5b61232486611e8b565b945061233260208701611e8b565b93506040860135925060608601356001600160401b0381111561235457600080fd5b61236088828901611da0565b969995985093965092949392505050565b6000806040838503121561238457600080fd5b505080516020909101519092909150565b6000602082840312156123a757600080fd5b8151611ebf81612732565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b600081518084526123f381602086016020860161268a565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b6000825161242981846020870161268a565b9190910192915050565b602081526000611ebf60208301846123db565b60408152600061245960408301856123db565b90508260208301529392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b61ffff861681526001600160a01b038516602082015260a0604082018190526000906124cb908301866123db565b841515606084015282810360808401526124e581856123db565b98975050505050505050565b61ffff841681526040602082015260006112dd6040830184866123b2565b61ffff8716815260c06020820152600061252c60c08301886123db565b828103604084015261253e81886123db565b6001600160a01b0387811660608601528616608085015283810360a0850152905061256981856123db565b9998505050505050505050565b61ffff8516815260806020820152600061259360808301866123db565b6001600160401b038516604084015282810360608401526125b481856123db565b979650505050505050565b600061ffff8088168352808716602084015250846040830152608060608301526125b46080830184866123b2565b9182526001600160401b0316602082015260400190565b604051601f8201601f191681016001600160401b038111828210171561262c5761262c612707565b604052919050565b60006001600160401b0382111561264d5761264d612707565b50601f01601f191660200190565b6000821982111561266e5761266e6126f1565b500190565b600082821015612685576126856126f1565b500390565b60005b838110156126a557818101518382015260200161268d565b83811115610d105750506000910152565b600181811c908216806126ca57607f821691505b602082108114156126eb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461122357600080fd5b6001600160401b038116811461122357600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207e953c8d7e18e72ef9560bbf05997b595c8a11ce3fe2987451761d214536abe464736f6c634300080700330000000000000000000000003c2269811836af69497e5f486a85d7316753cf62

Deployed Bytecode

0x6080604052600436106101675760003560e01c80621d35671461016c57806301ffc9a71461018e57806306fdde03146101c357806307e0db17146101e5578063095ea7b31461020557806310ddb1371461022557806318160ddd1461024557806323b872dd146102645780632a205e3d14610284578063313ce567146102b957806339509351146102d55780633d8b38f6146102f557806342d65a8d1461031557806351905636146103355780635b8c41e61461034857806366ad5c8a1461039757806370a08231146103b7578063715018a6146103ed5780637533d788146104025780638da5cb5b146104225780639358928b1461044f57806395d89b4114610464578063a457c2d714610479578063a9059cbb14610499578063b353aaa7146104b9578063cbed8b9c146104ed578063d1deba1f1461050d578063dd62ed3e14610520578063eb8d72b714610540578063f2fde38b14610560578063f5ecbdbc14610580575b600080fd5b34801561017857600080fd5b5061018c61018736600461222e565b6105a0565b005b34801561019a57600080fd5b506101ae6101a9366004612025565b610747565b60405190151581526020015b60405180910390f35b3480156101cf57600080fd5b506101d8610785565b6040516101ba9190612433565b3480156101f157600080fd5b5061018c6102003660046120c9565b610817565b34801561021157600080fd5b506101ae610220366004611ff9565b6108c0565b34801561023157600080fd5b5061018c6102403660046120c9565b6108d6565b34801561025157600080fd5b506005545b6040519081526020016101ba565b34801561027057600080fd5b506101ae61027f366004611eff565b610955565b34801561029057600080fd5b506102a461029f366004612136565b6109ff565b604080519283526020830191909152016101ba565b3480156102c557600080fd5b50604051601281526020016101ba565b3480156102e157600080fd5b506101ae6102f0366004611ff9565b610ad9565b34801561030157600080fd5b506101ae6103103660046120e4565b610b15565b34801561032157600080fd5b5061018c6103303660046120e4565b610be1565b61018c610343366004611f40565b610c97565b34801561035457600080fd5b506102566103633660046121cd565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b3480156103a357600080fd5b5061018c6103b236600461222e565b610ca6565b3480156103c357600080fd5b506102566103d2366004611ea2565b6001600160a01b031660009081526003602052604090205490565b3480156103f957600080fd5b5061018c610d16565b34801561040e57600080fd5b506101d861041d3660046120c9565b610d51565b34801561042e57600080fd5b50610437610deb565b6040516001600160a01b0390911681526020016101ba565b34801561045b57600080fd5b50610256610dfa565b34801561047057600080fd5b506101d8610e0a565b34801561048557600080fd5b506101ae610494366004611ff9565b610e19565b3480156104a557600080fd5b506101ae6104b4366004611ff9565b610eb2565b3480156104c557600080fd5b506104377f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6281565b3480156104f957600080fd5b5061018c610508366004612303565b610ebf565b61018c61051b36600461222e565b610f7b565b34801561052c57600080fd5b5061025661053b366004611ec6565b6110cd565b34801561054c57600080fd5b5061018c61055b3660046120e4565b6110f8565b34801561056c57600080fd5b5061018c61057b366004611ea2565b611186565b34801561058c57600080fd5b506101d861059b3660046122b6565b611226565b337f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b03161461061d5760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff84166000908152600160205260408120805461063b906126b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610667906126b6565b80156106b45780601f10610689576101008083540402835291602001916106b4565b820191906000526020600020905b81548152906001019060200180831161069757829003601f168201915b50505050509050805184511480156106d9575080805190602001208480519060200120145b6107345760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608401610614565b610740858585856112e6565b5050505050565b60006001600160e01b03198216158061077057506001600160e01b031982166336372b0760e01b145b8061077f575061077f826113d7565b92915050565b606060068054610794906126b6565b80601f01602080910402602001604051908101604052809291908181526020018280546107c0906126b6565b801561080d5780601f106107e25761010080835404028352916020019161080d565b820191906000526020600020905b8154815290600101906020018083116107f057829003601f168201915b5050505050905090565b33610820610deb565b6001600160a01b0316146108465760405162461bcd60e51b815260040161061490612468565b6040516307e0db1760e01b815261ffff821660048201527f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b0316906307e0db17906024015b600060405180830381600087803b1580156108ac57600080fd5b505af1158015610740573d6000803e3d6000fd5b60006108cd33848461140c565b50600192915050565b336108df610deb565b6001600160a01b0316146109055760405162461bcd60e51b815260040161061490612468565b6040516310ddb13760e01b815261ffff821660048201527f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b0316906310ddb13790602401610892565b6000610962848484611530565b6001600160a01b0384166000908152600460209081526040808320338452909152902054828110156109e75760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610614565b6109f4853385840361140c565b506001949350505050565b60008060008686604051602001610a17929190612446565b60408051601f198184030181529082905263040a7bb160e41b825291506001600160a01b037f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6216906340a7bb1090610a7b908b90309086908b908b9060040161249d565b604080518083038186803b158015610a9257600080fd5b505afa158015610aa6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aca9190612371565b92509250509550959350505050565b3360008181526004602090815260408083206001600160a01b038716845290915281205490916108cd918590610b1090869061265b565b61140c565b61ffff831660009081526001602052604081208054829190610b36906126b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610b62906126b6565b8015610baf5780601f10610b8457610100808354040283529160200191610baf565b820191906000526020600020905b815481529060010190602001808311610b9257829003601f168201915b505050505090508383604051610bc6929190612407565b60405180910390208180519060200120149150509392505050565b33610bea610deb565b6001600160a01b031614610c105760405162461bcd60e51b815260040161061490612468565b6040516342d65a8d60e01b81526001600160a01b037f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6216906342d65a8d90610c60908690869086906004016124f1565b600060405180830381600087803b158015610c7a57600080fd5b505af1158015610c8e573d6000803e3d6000fd5b50505050505050565b610c8e878787878787876116ec565b333014610d045760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608401610614565b610d108484848461183a565b50505050565b33610d1f610deb565b6001600160a01b031614610d455760405162461bcd60e51b815260040161061490612468565b610d4f60006118cd565b565b60016020526000908152604090208054610d6a906126b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610d96906126b6565b8015610de35780601f10610db857610100808354040283529160200191610de3565b820191906000526020600020905b815481529060010190602001808311610dc657829003601f168201915b505050505081565b6000546001600160a01b031690565b6000610e0560055490565b905090565b606060078054610794906126b6565b3360009081526004602090815260408083206001600160a01b038616845290915281205482811015610e9b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610614565b610ea8338585840361140c565b5060019392505050565b60006108cd338484611530565b33610ec8610deb565b6001600160a01b031614610eee5760405162461bcd60e51b815260040161061490612468565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62169063cbed8b9c90610f4290889088908890889088906004016125bf565b600060405180830381600087803b158015610f5c57600080fd5b505af1158015610f70573d6000803e3d6000fd5b505050505050505050565b61ffff84166000908152600260205260408082209051610f9c908690612417565b90815260408051602092819003830190206001600160401b0386166000908152925290205490508061101c5760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608401610614565b81516020830120811461107b5760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608401610614565b61ffff8516600090815260026020526040808220905161109c908790612417565b90815260408051602092819003830190206001600160401b038716600090815292529020556107408585858561183a565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b33611101610deb565b6001600160a01b0316146111275760405162461bcd60e51b815260040161061490612468565b61ffff83166000908152600160205260409020611145908383611d07565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab838383604051611179939291906124f1565b60405180910390a1505050565b3361118f610deb565b6001600160a01b0316146111b55760405162461bcd60e51b815260040161061490612468565b6001600160a01b03811661121a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610614565b611223816118cd565b50565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b03169063f5ecbdbc9060840160006040518083038186803b1580156112a157600080fd5b505afa1580156112b5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112dd919081019061204f565b95945050505050565b604051633356ae4560e11b815230906366ad5c8a9061130f908790879087908790600401612576565b600060405180830381600087803b15801561132957600080fd5b505af192505050801561133a575060015b610d10578080519060200120600260008661ffff1661ffff1681526020019081526020016000208460405161136f9190612417565b9081526040805191829003602090810183206001600160401b0387166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d906113ca908690869086908690612576565b60405180910390a1610d10565b60006001600160e01b031982166301d1d13560e71b148061077f57506301ffc9a760e01b6001600160e01b031983161461077f565b6001600160a01b03831661146e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610614565b6001600160a01b0382166114cf5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610614565b6001600160a01b0383811660008181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166115945760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610614565b6001600160a01b0382166115f65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610614565b6001600160a01b0383166000908152600360205260409020548181101561166e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610614565b6001600160a01b038085166000908152600360205260408082208585039055918516815290812080548492906116a590849061265b565b92505081905550826001600160a01b0316846001600160a01b0316600080516020612748833981519152846040516116df91815260200190565b60405180910390a3610d10565b6116f887878787611922565b6000858560405160200161170d929190612446565b604051602081830303815290604052905061172b878286868661195a565b604051630f428ae960e31b815261ffff881660048201523060248201526000907f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b031690637a1457489060440160206040518083038186803b15801561179757600080fd5b505afa1580156117ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117cf9190612395565b9050866040516117df9190612417565b60405180910390208861ffff168a6001600160a01b03167f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce154389856040516118279291906125ed565b60405180910390a4505050505050505050565b600080828060200190518101906118519190612083565b60148201519193509150611866878284611af4565b806001600160a01b03168660405161187e9190612417565b60405180910390208861ffff167f64e10c37f404d128982dce114f5d233c14c5c7f6d8db93099e3d99dacb9e27ba85896040516118bc9291906125ed565b60405180910390a450505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b505050565b336001600160a01b038516811461195057600061193f86836110cd565b90508281101561194e57600080fd5b505b6107408583611afe565b61ffff851660009081526001602052604081208054611978906126b6565b80601f01602080910402602001604051908101604052809291908181526020018280546119a4906126b6565b80156119f15780601f106119c6576101008083540402835291602001916119f1565b820191906000526020600020905b8154815290600101906020018083116119d457829003601f168201915b50505050509050805160001415611a635760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608401610614565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62169063c5803100903490611aba908a9086908b908b908b908b9060040161250f565b6000604051808303818588803b158015611ad357600080fd5b505af1158015611ae7573d6000803e3d6000fd5b5050505050505050505050565b61191d8282611c3a565b6001600160a01b038216611b5e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610614565b6001600160a01b03821660009081526003602052604090205481811015611bd25760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610614565b6001600160a01b0383166000908152600360205260408120838303905560058054849290611c01908490612673565b90915550506040518281526000906001600160a01b038516906000805160206127488339815191529060200160405180910390a3505050565b6001600160a01b038216611c905760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610614565b8060056000828254611ca2919061265b565b90915550506001600160a01b03821660009081526003602052604081208054839290611ccf90849061265b565b90915550506040518181526001600160a01b038316906000906000805160206127488339815191529060200160405180910390a35050565b828054611d13906126b6565b90600052602060002090601f016020900481019282611d355760008555611d7b565b82601f10611d4e5782800160ff19823516178555611d7b565b82800160010185558215611d7b579182015b82811115611d7b578235825591602001919060010190611d60565b50611d87929150611d8b565b5090565b5b80821115611d875760008155600101611d8c565b60008083601f840112611db257600080fd5b5081356001600160401b03811115611dc957600080fd5b602083019150836020828501011115611de157600080fd5b9250929050565b600082601f830112611df957600080fd5b8135611e0c611e0782612634565b612604565b818152846020838601011115611e2157600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f830112611e4f57600080fd5b8151611e5d611e0782612634565b818152846020838601011115611e7257600080fd5b611e8382602083016020870161268a565b949350505050565b803561ffff81168114611e9d57600080fd5b919050565b600060208284031215611eb457600080fd5b8135611ebf8161271d565b9392505050565b60008060408385031215611ed957600080fd5b8235611ee48161271d565b91506020830135611ef48161271d565b809150509250929050565b600080600060608486031215611f1457600080fd5b8335611f1f8161271d565b92506020840135611f2f8161271d565b929592945050506040919091013590565b600080600080600080600060e0888a031215611f5b57600080fd5b8735611f668161271d565b9650611f7460208901611e8b565b955060408801356001600160401b0380821115611f9057600080fd5b611f9c8b838c01611de8565b965060608a0135955060808a01359150611fb58261271d565b90935060a089013590611fc78261271d565b90925060c08901359080821115611fdd57600080fd5b50611fea8a828b01611de8565b91505092959891949750929550565b6000806040838503121561200c57600080fd5b82356120178161271d565b946020939093013593505050565b60006020828403121561203757600080fd5b81356001600160e01b031981168114611ebf57600080fd5b60006020828403121561206157600080fd5b81516001600160401b0381111561207757600080fd5b611e8384828501611e3e565b6000806040838503121561209657600080fd5b82516001600160401b038111156120ac57600080fd5b6120b885828601611e3e565b925050602083015190509250929050565b6000602082840312156120db57600080fd5b611ebf82611e8b565b6000806000604084860312156120f957600080fd5b61210284611e8b565b925060208401356001600160401b0381111561211d57600080fd5b61212986828701611da0565b9497909650939450505050565b600080600080600060a0868803121561214e57600080fd5b61215786611e8b565b945060208601356001600160401b038082111561217357600080fd5b61217f89838a01611de8565b95506040880135945060608801359150811515821461219d57600080fd5b909250608087013590808211156121b357600080fd5b506121c088828901611de8565b9150509295509295909350565b6000806000606084860312156121e257600080fd5b6121eb84611e8b565b925060208401356001600160401b0381111561220657600080fd5b61221286828701611de8565b925050604084013561222381612732565b809150509250925092565b6000806000806080858703121561224457600080fd5b61224d85611e8b565b935060208501356001600160401b038082111561226957600080fd5b61227588838901611de8565b94506040870135915061228782612732565b9092506060860135908082111561229d57600080fd5b506122aa87828801611de8565b91505092959194509250565b600080600080608085870312156122cc57600080fd5b6122d585611e8b565b93506122e360208601611e8b565b925060408501356122f38161271d565b9396929550929360600135925050565b60008060008060006080868803121561231b57600080fd5b61232486611e8b565b945061233260208701611e8b565b93506040860135925060608601356001600160401b0381111561235457600080fd5b61236088828901611da0565b969995985093965092949392505050565b6000806040838503121561238457600080fd5b505080516020909101519092909150565b6000602082840312156123a757600080fd5b8151611ebf81612732565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b600081518084526123f381602086016020860161268a565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b6000825161242981846020870161268a565b9190910192915050565b602081526000611ebf60208301846123db565b60408152600061245960408301856123db565b90508260208301529392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b61ffff861681526001600160a01b038516602082015260a0604082018190526000906124cb908301866123db565b841515606084015282810360808401526124e581856123db565b98975050505050505050565b61ffff841681526040602082015260006112dd6040830184866123b2565b61ffff8716815260c06020820152600061252c60c08301886123db565b828103604084015261253e81886123db565b6001600160a01b0387811660608601528616608085015283810360a0850152905061256981856123db565b9998505050505050505050565b61ffff8516815260806020820152600061259360808301866123db565b6001600160401b038516604084015282810360608401526125b481856123db565b979650505050505050565b600061ffff8088168352808716602084015250846040830152608060608301526125b46080830184866123b2565b9182526001600160401b0316602082015260400190565b604051601f8201601f191681016001600160401b038111828210171561262c5761262c612707565b604052919050565b60006001600160401b0382111561264d5761264d612707565b50601f01601f191660200190565b6000821982111561266e5761266e6126f1565b500190565b600082821015612685576126856126f1565b500390565b60005b838110156126a557818101518382015260200161268d565b83811115610d105750506000910152565b600181811c908216806126ca57607f821691505b602082108114156126eb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461122357600080fd5b6001600160401b038116811461122357600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207e953c8d7e18e72ef9560bbf05997b595c8a11ce3fe2987451761d214536abe464736f6c63430008070033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62

-----Decoded View---------------
Arg [0] : _layerZeroEndpoint (address): 0x3c2269811836af69497E5F486A85D7316753cf62

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62


Block Transaction Gas Used Reward
view all blocks ##produced##

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.