FTM Price: $0.99 (-3.57%)
Gas: 33 GWei

Contract

0xaDBFA24b415Fb9B4069149851a0430e6C1f0Ce2c
 

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

FTM Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
Mint For401244292022-06-09 8:30:19659 days ago1654763419IN
0xaDBFA24b...6C1f0Ce2c
0 FTM0.000419756.27232797
Mint For401244052022-06-09 8:29:34659 days ago1654763374IN
0xaDBFA24b...6C1f0Ce2c
0 FTM0.000419756.27232797
Mint For401243852022-06-09 8:29:15659 days ago1654763355IN
0xaDBFA24b...6C1f0Ce2c
0 FTM0.000422956.32028342
Mint For401243662022-06-09 8:28:56659 days ago1654763336IN
0xaDBFA24b...6C1f0Ce2c
0 FTM0.000422956.32028342
Mint For401243312022-06-09 8:28:21659 days ago1654763301IN
0xaDBFA24b...6C1f0Ce2c
0 FTM0.000536446.32028342
Send401225122022-06-09 7:54:22659 days ago1654761262IN
0xaDBFA24b...6C1f0Ce2c
0.1 FTM0.001289646.816868
Mint For401218762022-06-09 7:42:31659 days ago1654760551IN
0xaDBFA24b...6C1f0Ce2c
0 FTM0.000798077.96438603
Set Manager Addr...401218352022-06-09 7:41:45659 days ago1654760505IN
0xaDBFA24b...6C1f0Ce2c
0 FTM0.00041698.61190082
Set Trusted Remo...401217102022-06-09 7:38:48659 days ago1654760328IN
0xaDBFA24b...6C1f0Ce2c
0 FTM0.000427288.24342526
0x60a06040401210572022-06-09 7:26:42659 days ago1654759602IN
 Create: GodNFT
0 FTM0.0328924511.30814156

Latest 2 internal transactions

Parent Txn Hash Block From To Value
401225122022-06-09 7:54:22659 days ago1654761262
0xaDBFA24b...6C1f0Ce2c
0.1 FTM
401210572022-06-09 7:26:42659 days ago1654759602  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GodNFT

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 50 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 20 : GodNFT.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.4;

import "../token/onft/ONFT.sol";
import "../interfaces/IGodNFT.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

contract GodNFT is ONFT, IGodNFT {
    uint public nextMintId;
    uint public maxSupply;
    address public managerAddress;

    modifier onlyManager() {
        require(msg.sender == managerAddress, "Only manager can call this function.");
        _;
    }

    /// @param _layerZeroEndpoint handles message transmission across chains
    constructor(address _layerZeroEndpoint, uint _maxSupply) ONFT("GodNFT", "BNFT", _layerZeroEndpoint) {
        nextMintId = 0;
        maxSupply = _maxSupply;
    }

    /// @notice Mint your ONFT
    function mintFor(address minter) external override onlyManager {
        require(nextMintId <= maxSupply, "ONFT: Max Mint limit reached");

        uint newId = nextMintId;
        nextMintId++;

        _safeMint(minter, newId);
    }

    function setManagerAddress(address _managerAddress) public onlyOwner {
        managerAddress = _managerAddress;
    }
}

File 2 of 20 : ONFT.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IONFT.sol";
import "../../lzApp/NonblockingLzApp.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

// NOTE: this ONFT contract has no minting logic.
// must implement your own minting logic in child classes
contract ONFT is IONFT, NonblockingLzApp, ERC721 {
    string public baseTokenURI;

    constructor(string memory _name, string memory _symbol, address _lzEndpoint) ERC721(_name, _symbol) NonblockingLzApp(_lzEndpoint) {}

    function sendFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam) external payable virtual override {
        _send(_from, _dstChainId, _toAddress, _tokenId, _refundAddress, _zroPaymentAddress, _adapterParam);
    }

    function send(uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam) external payable virtual override {
        _send(_msgSender(), _dstChainId, _toAddress, _tokenId, _refundAddress, _zroPaymentAddress, _adapterParam);
    }

    function _send(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam) internal virtual {
        require(_isApprovedOrOwner(_msgSender(), _tokenId), "ERC721: transfer caller is not owner nor approved");
        _beforeSend(_from, _dstChainId, _toAddress, _tokenId);

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

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

    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        _beforeReceive(_srcChainId, _srcAddress, _payload);

        // decode and load the toAddress
        (bytes memory toAddress, uint tokenId) = abi.decode(_payload, (bytes, uint));
        address localToAddress;
        assembly {
            localToAddress := mload(add(toAddress, 20))
        }

        // if the toAddress is 0x0, burn it or it will get cached
        if (localToAddress == address(0x0)) localToAddress == address(0xdEaD);

        _afterReceive(_srcChainId, localToAddress, tokenId);

        emit ReceiveFromChain(_srcChainId, localToAddress, tokenId, _nonce);
    }

    function _beforeSend(address /* _from */, uint16 /* _dstChainId */, bytes memory /* _toAddress */, uint _tokenId) internal virtual {
        _burn(_tokenId);
    }

    function _afterSend(address /* _from */, uint16 /* _dstChainId */, bytes memory /* _toAddress */, uint /* _tokenId */) internal virtual {}

    function _beforeReceive(uint16 /* _srcChainId */, bytes memory /* _srcAddress */, bytes memory /* _payload */) internal virtual {}

    function _afterReceive(uint16 /* _srcChainId */, address _toAddress, uint _tokenId) internal virtual {
        _safeMint(_toAddress, _tokenId);
    }

    function setBaseURI(string memory _baseTokenURI) public onlyOwner {
        baseTokenURI = _baseTokenURI;
    }

    function _baseURI() internal view override returns (string memory) {
        return baseTokenURI;
    }
}

File 3 of 20 : IGodNFT.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IGodNFT {
    function mintFor(address minter) external;
}

File 4 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        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 5 of 20 : IONFT.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

/**
 * @dev Interface of the ONFT standard
 */
interface IONFT is IERC721 {
    /**
     * @dev send token `_tokenId` to (`_dstChainId`, `_toAddress`)
     * `_toAddress` can be any size depending on the `dstChainId`.
     * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token)
     * `_adapterParam` is a flexible bytes array to indicate messaging adapter services
     */
    function send(
        uint16 _dstChainId,
        bytes calldata _toAddress,
        uint _tokenId,
        address payable _refundAddress,
        address _zroPaymentAddress,
        bytes calldata _adapterParam
    ) external payable;

    /**
     * @dev send token `_tokenId` to (`_dstChainId`, `_toAddress`) from `_from`
     * `_toAddress` can be any size depending on the `dstChainId`.
     * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token)
     * `_adapterParam` is a flexible bytes array to indicate messaging adapter services
     */
    function sendFrom(
        address _from,
        uint16 _dstChainId,
        bytes calldata _toAddress,
        uint _tokenId,
        address payable _refundAddress,
        address _zroPaymentAddress,
        bytes calldata _adapterParam
    ) external payable;

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

    /**
     * @dev Emitted when `_tokenId` are sent from `_srcChainId` to the `_toAddress` at this chain. `_nonce` is the inbound nonce.
     */
    event ReceiveFromChain(uint16 _srcChainId, address _toAddress, uint _tokenId, uint64 _nonce);
}

File 6 of 20 : 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 7 of 20 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` 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 tokenId
    ) 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.
     * - `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 tokenId
    ) internal virtual {}
}

File 8 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 9 of 20 : 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 10 of 20 : 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 11 of 20 : 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 12 of 20 : 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 13 of 20 : 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 14 of 20 : 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);
}

File 15 of 20 : 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 16 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 17 of 20 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 18 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 19 of 20 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 20 of 20 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_layerZeroEndpoint","type":"address"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","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":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"address","name":"_toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","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":"_tokenId","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":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"managerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"mintFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextMintId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParam","type":"bytes"}],"name":"send","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":"_tokenId","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParam","type":"bytes"}],"name":"sendFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","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":"address","name":"_managerAddress","type":"address"}],"name":"setManagerAddress","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"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"}]

60a06040523480156200001157600080fd5b506040516200347c3803806200347c8339810160408190526200003491620001da565b6040518060400160405280600681526020016511dbd913919560d21b815250604051806040016040528060048152602001631093919560e21b81525083828282806200008f62000089620000e060201b60201c565b620000e4565b6001600160a01b0316608052508151620000b190600390602085019062000134565b508051620000c790600490602084019062000134565b50506000600a55505050600b9190915550620002539050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001429062000216565b90600052602060002090601f016020900481019282620001665760008555620001b1565b82601f106200018157805160ff1916838001178555620001b1565b82800160010185558215620001b1579182015b82811115620001b157825182559160200191906001019062000194565b50620001bf929150620001c3565b5090565b5b80821115620001bf5760008155600101620001c4565b60008060408385031215620001ee57600080fd5b82516001600160a01b03811681146200020657600080fd5b6020939093015192949293505050565b600181811c908216806200022b57607f821691505b602082108114156200024d57634e487b7160e01b600052602260045260246000fd5b50919050565b6080516131d5620002a760003960008181610551015281816106c70152818161099701528181610bd901528181610dbf01528181611352015281816116fb01528181611c11015261213501526131d56000f3fe6080604052600436106101e45760003560e01c8063715018a611610103578063cbed8b9c1161009b578063cbed8b9c146105b3578063cf73a1bc146105d3578063d1deba1f146105f3578063d547cfb714610606578063d5abeb011461061b578063e985e9c514610631578063eb8d72b714610651578063eed33cef14610671578063f2fde38b14610684578063f5ecbdbc146106a457600080fd5b8063715018a6146104a057806371e578dc146104b55780637533d788146104d55780638da5cb5b146104f557806395d89b411461050a578063a22cb4651461051f578063b353aaa71461053f578063b88d4fde14610573578063c87b56dd1461059357600080fd5b80634143190811610181578063414319081461033a57806342842e0e1461035a57806342d65a8d1461037a578063519056361461039a57806355f804b3146103ad5780635b8c41e6146103cd5780636352211e1461042a57806366ad5c8a1461044a5780636aa99da31461046a57806370a082311461048057600080fd5b80621d3567146101e957806301ffc9a71461020b57806306fdde031461024057806307e0db1714610262578063081812fc14610282578063095ea7b3146102ba57806310ddb137146102da57806323b872dd146102fa5780633d8b38f61461031a575b600080fd5b3480156101f557600080fd5b506102096102043660046126a5565b6106c4565b005b34801561021757600080fd5b5061022b610226366004612743565b61086b565b60405190151581526020015b60405180910390f35b34801561024c57600080fd5b506102556108bd565b60405161023791906127b8565b34801561026e57600080fd5b5061020961027d3660046127cb565b61094f565b34801561028e57600080fd5b506102a261029d3660046127e6565b6109f8565b6040516001600160a01b039091168152602001610237565b3480156102c657600080fd5b506102096102d5366004612814565b610a80565b3480156102e657600080fd5b506102096102f53660046127cb565b610b91565b34801561030657600080fd5b50610209610315366004612840565b610c10565b34801561032657600080fd5b5061022b6103353660046128c9565b610c41565b34801561034657600080fd5b5061020961035536600461291b565b610d0d565b34801561036657600080fd5b50610209610375366004612840565b610d5e565b34801561038657600080fd5b506102096103953660046128c9565b610d79565b6102096103a8366004612938565b610e2f565b3480156103b957600080fd5b506102096103c83660046129ff565b610e82565b3480156103d957600080fd5b5061041c6103e8366004612a47565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b604051908152602001610237565b34801561043657600080fd5b506102a26104453660046127e6565b610ec8565b34801561045657600080fd5b506102096104653660046126a5565b610f3f565b34801561047657600080fd5b5061041c600a5481565b34801561048c57600080fd5b5061041c61049b36600461291b565b610faf565b3480156104ac57600080fd5b50610209611036565b3480156104c157600080fd5b506102096104d036600461291b565b611071565b3480156104e157600080fd5b506102556104f03660046127cb565b61114c565b34801561050157600080fd5b506102a26111e6565b34801561051657600080fd5b506102556111f5565b34801561052b57600080fd5b5061020961053a366004612aa8565b611204565b34801561054b57600080fd5b506102a27f000000000000000000000000000000000000000000000000000000000000000081565b34801561057f57600080fd5b5061020961058e366004612ae6565b61120f565b34801561059f57600080fd5b506102556105ae3660046127e6565b611241565b3480156105bf57600080fd5b506102096105ce366004612b45565b61130c565b3480156105df57600080fd5b50600c546102a2906001600160a01b031681565b6102096106013660046126a5565b6113bd565b34801561061257600080fd5b5061025561150f565b34801561062757600080fd5b5061041c600b5481565b34801561063d57600080fd5b5061022b61064c366004612bb3565b61151c565b34801561065d57600080fd5b5061020961066c3660046128c9565b61154a565b61020961067f366004612be1565b6115d8565b34801561069057600080fd5b5061020961069f36600461291b565b61162a565b3480156106b057600080fd5b506102556106bf366004612c93565b6116ca565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146107415760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff84166000908152600160205260408120805461075f90612ce0565b80601f016020809104026020016040519081016040528092919081815260200182805461078b90612ce0565b80156107d85780601f106107ad576101008083540402835291602001916107d8565b820191906000526020600020905b8154815290600101906020018083116107bb57829003601f168201915b50505050509050805184511480156107fd575080805190602001208480519060200120145b6108585760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608401610738565b6108648585858561178c565b5050505050565b60006001600160e01b031982166380ac58cd60e01b148061089c57506001600160e01b03198216635b5e139f60e01b145b806108b757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546108cc90612ce0565b80601f01602080910402602001604051908101604052809291908181526020018280546108f890612ce0565b80156109455780601f1061091a57610100808354040283529160200191610945565b820191906000526020600020905b81548152906001019060200180831161092857829003601f168201915b5050505050905090565b336109586111e6565b6001600160a01b03161461097e5760405162461bcd60e51b815260040161073890612d1b565b6040516307e0db1760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906307e0db17906024015b600060405180830381600087803b1580156109e457600080fd5b505af1158015610864573d6000803e3d6000fd5b6000610a038261187d565b610a645760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610738565b506000908152600760205260409020546001600160a01b031690565b6000610a8b82610ec8565b9050806001600160a01b0316836001600160a01b03161415610af95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610738565b336001600160a01b0382161480610b155750610b15813361151c565b610b825760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610738565b610b8c838361189a565b505050565b33610b9a6111e6565b6001600160a01b031614610bc05760405162461bcd60e51b815260040161073890612d1b565b6040516310ddb13760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906310ddb137906024016109ca565b610c1a3382611908565b610c365760405162461bcd60e51b815260040161073890612d50565b610b8c8383836119ca565b61ffff831660009081526001602052604081208054829190610c6290612ce0565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8e90612ce0565b8015610cdb5780601f10610cb057610100808354040283529160200191610cdb565b820191906000526020600020905b815481529060010190602001808311610cbe57829003601f168201915b505050505090508383604051610cf2929190612da1565b60405180910390208180519060200120149150509392505050565b33610d166111e6565b6001600160a01b031614610d3c5760405162461bcd60e51b815260040161073890612d1b565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b610b8c8383836040518060200160405280600081525061120f565b33610d826111e6565b6001600160a01b031614610da85760405162461bcd60e51b815260040161073890612d1b565b6040516342d65a8d60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342d65a8d90610df890869086908690600401612dda565b600060405180830381600087803b158015610e1257600080fd5b505af1158015610e26573d6000803e3d6000fd5b50505050505050565b610e77898989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a91508990508888611b54565b505050505050505050565b33610e8b6111e6565b6001600160a01b031614610eb15760405162461bcd60e51b815260040161073890612d1b565b8051610ec49060099060208401906124a1565b5050565b6000818152600560205260408120546001600160a01b0316806108b75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610738565b333014610f9d5760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608401610738565b610fa984848484611d08565b50505050565b60006001600160a01b03821661101a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610738565b506001600160a01b031660009081526006602052604090205490565b3361103f6111e6565b6001600160a01b0316146110655760405162461bcd60e51b815260040161073890612d1b565b61106f6000611d99565b565b600c546001600160a01b031633146110d75760405162461bcd60e51b8152602060048201526024808201527f4f6e6c79206d616e616765722063616e2063616c6c20746869732066756e637460448201526334b7b71760e11b6064820152608401610738565b600b54600a54111561112b5760405162461bcd60e51b815260206004820152601c60248201527f4f4e46543a204d6178204d696e74206c696d69742072656163686564000000006044820152606401610738565b600a8054908190600061113d83612e0e565b9190505550610ec48282611de9565b6001602052600090815260409020805461116590612ce0565b80601f016020809104026020016040519081016040528092919081815260200182805461119190612ce0565b80156111de5780601f106111b3576101008083540402835291602001916111de565b820191906000526020600020905b8154815290600101906020018083116111c157829003601f168201915b505050505081565b6000546001600160a01b031690565b6060600480546108cc90612ce0565b610ec4338383611e03565b6112193383611908565b6112355760405162461bcd60e51b815260040161073890612d50565b610fa984848484611ece565b606061124c8261187d565b6112b05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610738565b60006112ba611f01565b905060008151116112da5760405180602001604052806000815250611305565b806112e484611f10565b6040516020016112f5929190612e29565b6040516020818303038152906040525b9392505050565b336113156111e6565b6001600160a01b03161461133b5760405162461bcd60e51b815260040161073890612d1b565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c9061138f9088908890889088908890600401612e58565b600060405180830381600087803b1580156113a957600080fd5b505af1158015610e77573d6000803e3d6000fd5b61ffff841660009081526002602052604080822090516113de908690612e91565b90815260408051602092819003830190206001600160401b0386166000908152925290205490508061145e5760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608401610738565b8151602083012081146114bd5760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608401610738565b61ffff851660009081526002602052604080822090516114de908790612e91565b90815260408051602092819003830190206001600160401b0387166000908152925290205561086485858585611d08565b6009805461116590612ce0565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b336115536111e6565b6001600160a01b0316146115795760405162461bcd60e51b815260040161073890612d1b565b61ffff83166000908152600160205260409020611597908383612525565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab8383836040516115cb93929190612dda565b60405180910390a1505050565b611620338989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a91508990508888611b54565b5050505050505050565b336116336111e6565b6001600160a01b0316146116595760405162461bcd60e51b815260040161073890612d1b565b6001600160a01b0381166116be5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610738565b6116c781611d99565b50565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f5ecbdbc9060840160006040518083038186803b15801561174557600080fd5b505afa158015611759573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117819190810190612ef2565b90505b949350505050565b604051633356ae4560e11b815230906366ad5c8a906117b5908790879087908790600401612f26565b600060405180830381600087803b1580156117cf57600080fd5b505af19250505080156117e0575060015b610fa9578080519060200120600260008661ffff1661ffff168152602001908152602001600020846040516118159190612e91565b9081526040805191829003602090810183206001600160401b0387166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90611870908690869086908690612f26565b60405180910390a1610fa9565b6000908152600560205260409020546001600160a01b0316151590565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118cf82610ec8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006119138261187d565b6119745760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610738565b600061197f83610ec8565b9050806001600160a01b0316846001600160a01b031614806119ba5750836001600160a01b03166119af846109f8565b6001600160a01b0316145b806117845750611784818561151c565b826001600160a01b03166119dd82610ec8565b6001600160a01b031614611a415760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610738565b6001600160a01b038216611aa35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610738565b611aae60008261189a565b6001600160a01b0383166000908152600660205260408120805460019290611ad7908490612f64565b90915550506001600160a01b0382166000908152600660205260408120805460019290611b05908490612f7b565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061318083398151915291a4505050565b611b5e3386611908565b611b7a5760405162461bcd60e51b815260040161073890612d50565b611b868888888861200d565b60008686604051602001611b9b929190612f93565b6040516020818303038152906040529050611bef8882878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061201692505050565b604051630f428ae960e31b815261ffff891660048201523060248201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637a1457489060440160206040518083038186803b158015611c5b57600080fd5b505afa158015611c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c939190612fb5565b905087604051611ca39190612e91565b604080519182900382208983526001600160401b03841660208401529161ffff8c16916001600160a01b038e16917f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce1543910160405180910390a450505050505050505050565b60008082806020019051810190611d1f9190612fd2565b60148201519193509150611d348782846121b0565b6040805161ffff891681526001600160a01b03831660208201529081018390526001600160401b03861660608201527fd4d39d20f72eabd06c301e516d54653dfc9116de62c1d54bf1cb48cf3b42a7db9060800160405180910390a150505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ec48282604051806020016040528060008152506121ba565b816001600160a01b0316836001600160a01b03161415611e615760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610738565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ed98484846119ca565b611ee5848484846121ed565b610fa95760405162461bcd60e51b815260040161073890613018565b6060600980546108cc90612ce0565b606081611f345750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f5e5780611f4881612e0e565b9150611f579050600a83613080565b9150611f38565b6000816001600160401b03811115611f7857611f786125c5565b6040519080825280601f01601f191660200182016040528015611fa2576020820181803683370190505b5090505b841561178457611fb7600183612f64565b9150611fc4600a86613094565b611fcf906030612f7b565b60f81b818381518110611fe457611fe46130a8565b60200101906001600160f81b031916908160001a905350612006600a86613080565b9450611fa6565b610fa9816122f7565b61ffff85166000908152600160205260408120805461203490612ce0565b80601f016020809104026020016040519081016040528092919081815260200182805461206090612ce0565b80156120ad5780601f10612082576101008083540402835291602001916120ad565b820191906000526020600020905b81548152906001019060200180831161209057829003601f168201915b5050505050905080516000141561211f5760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608401610738565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c5803100903490612176908a9086908b908b908b908b906004016130be565b6000604051808303818588803b15801561218f57600080fd5b505af11580156121a3573d6000803e3d6000fd5b5050505050505050505050565b610b8c8282611de9565b6121c48383612380565b6121d160008484846121ed565b610b8c5760405162461bcd60e51b815260040161073890613018565b60006001600160a01b0384163b156122ef57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612231903390899088908890600401613125565b602060405180830381600087803b15801561224b57600080fd5b505af192505050801561227b575060408051601f3d908101601f1916820190925261227891810190613162565b60015b6122d5573d8080156122a9576040519150601f19603f3d011682016040523d82523d6000602084013e6122ae565b606091505b5080516122cd5760405162461bcd60e51b815260040161073890613018565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611784565b506001611784565b600061230282610ec8565b905061230f60008361189a565b6001600160a01b0381166000908152600660205260408120805460019290612338908490612f64565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b03841690600080516020613180833981519152908390a45050565b6001600160a01b0382166123d65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610738565b6123df8161187d565b1561242c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610738565b6001600160a01b0382166000908152600660205260408120805460019290612455908490612f7b565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020613180833981519152908290a45050565b8280546124ad90612ce0565b90600052602060002090601f0160209004810192826124cf5760008555612515565b82601f106124e857805160ff1916838001178555612515565b82800160010185558215612515579182015b828111156125155782518255916020019190600101906124fa565b50612521929150612599565b5090565b82805461253190612ce0565b90600052602060002090601f0160209004810192826125535760008555612515565b82601f1061256c5782800160ff19823516178555612515565b82800160010185558215612515579182015b8281111561251557823582559160200191906001019061257e565b5b80821115612521576000815560010161259a565b803561ffff811681146125c057600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612603576126036125c5565b604052919050565b60006001600160401b03821115612624576126246125c5565b50601f01601f191660200190565b60006126456126408461260b565b6125db565b905082815283838301111561265957600080fd5b828260208301376000602084830101529392505050565b600082601f83011261268157600080fd5b61130583833560208501612632565b6001600160401b03811681146116c757600080fd5b600080600080608085870312156126bb57600080fd5b6126c4856125ae565b935060208501356001600160401b03808211156126e057600080fd5b6126ec88838901612670565b9450604087013591506126fe82612690565b9092506060860135908082111561271457600080fd5b5061272187828801612670565b91505092959194509250565b6001600160e01b0319811681146116c757600080fd5b60006020828403121561275557600080fd5b81356113058161272d565b60005b8381101561277b578181015183820152602001612763565b83811115610fa95750506000910152565b600081518084526127a4816020860160208601612760565b601f01601f19169290920160200192915050565b602081526000611305602083018461278c565b6000602082840312156127dd57600080fd5b611305826125ae565b6000602082840312156127f857600080fd5b5035919050565b6001600160a01b03811681146116c757600080fd5b6000806040838503121561282757600080fd5b8235612832816127ff565b946020939093013593505050565b60008060006060848603121561285557600080fd5b8335612860816127ff565b92506020840135612870816127ff565b929592945050506040919091013590565b60008083601f84011261289357600080fd5b5081356001600160401b038111156128aa57600080fd5b6020830191508360208285010111156128c257600080fd5b9250929050565b6000806000604084860312156128de57600080fd5b6128e7846125ae565b925060208401356001600160401b0381111561290257600080fd5b61290e86828701612881565b9497909650939450505050565b60006020828403121561292d57600080fd5b8135611305816127ff565b600080600080600080600080600060e08a8c03121561295657600080fd5b8935612961816127ff565b985061296f60208b016125ae565b975060408a01356001600160401b038082111561298b57600080fd5b6129978d838e01612881565b909950975060608c0135965060808c013591506129b3826127ff565b90945060a08b0135906129c5826127ff565b90935060c08b013590808211156129db57600080fd5b506129e88c828d01612881565b915080935050809150509295985092959850929598565b600060208284031215612a1157600080fd5b81356001600160401b03811115612a2757600080fd5b8201601f81018413612a3857600080fd5b61178484823560208401612632565b600080600060608486031215612a5c57600080fd5b612a65846125ae565b925060208401356001600160401b03811115612a8057600080fd5b612a8c86828701612670565b9250506040840135612a9d81612690565b809150509250925092565b60008060408385031215612abb57600080fd5b8235612ac6816127ff565b915060208301358015158114612adb57600080fd5b809150509250929050565b60008060008060808587031215612afc57600080fd5b8435612b07816127ff565b93506020850135612b17816127ff565b92506040850135915060608501356001600160401b03811115612b3957600080fd5b61272187828801612670565b600080600080600060808688031215612b5d57600080fd5b612b66866125ae565b9450612b74602087016125ae565b93506040860135925060608601356001600160401b03811115612b9657600080fd5b612ba288828901612881565b969995985093965092949392505050565b60008060408385031215612bc657600080fd5b8235612bd1816127ff565b91506020830135612adb816127ff565b60008060008060008060008060c0898b031215612bfd57600080fd5b612c06896125ae565b975060208901356001600160401b0380821115612c2257600080fd5b612c2e8c838d01612881565b909950975060408b0135965060608b01359150612c4a826127ff565b90945060808a013590612c5c826127ff565b90935060a08a01359080821115612c7257600080fd5b50612c7f8b828c01612881565b999c989b5096995094979396929594505050565b60008060008060808587031215612ca957600080fd5b612cb2856125ae565b9350612cc0602086016125ae565b92506040850135612cd0816127ff565b9396929550929360600135925050565b600181811c90821680612cf457607f821691505b60208210811415612d1557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b8183823760009101908152919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b61ffff84168152604060208201526000611781604083018486612db1565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612e2257612e22612df8565b5060010190565b60008351612e3b818460208801612760565b835190830190612e4f818360208801612760565b01949350505050565b600061ffff808816835280871660208401525084604083015260806060830152612e86608083018486612db1565b979650505050505050565b60008251612ea3818460208701612760565b9190910192915050565b600082601f830112612ebe57600080fd5b8151612ecc6126408261260b565b818152846020838601011115612ee157600080fd5b611784826020830160208701612760565b600060208284031215612f0457600080fd5b81516001600160401b03811115612f1a57600080fd5b61178484828501612ead565b61ffff85168152608060208201526000612f43608083018661278c565b6001600160401b03851660408401528281036060840152612e86818561278c565b600082821015612f7657612f76612df8565b500390565b60008219821115612f8e57612f8e612df8565b500190565b604081526000612fa6604083018561278c565b90508260208301529392505050565b600060208284031215612fc757600080fd5b815161130581612690565b60008060408385031215612fe557600080fd5b82516001600160401b03811115612ffb57600080fd5b61300785828601612ead565b925050602083015190509250929050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261308f5761308f61306a565b500490565b6000826130a3576130a361306a565b500690565b634e487b7160e01b600052603260045260246000fd5b61ffff8716815260c0602082015260006130db60c083018861278c565b82810360408401526130ed818861278c565b6001600160a01b0387811660608601528616608085015283810360a08501529050613118818561278c565b9998505050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906131589083018461278c565b9695505050505050565b60006020828403121561317457600080fd5b81516113058161272d56feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212204ba36f96b1d0b4d9d4c3116323d7636b3ddfa3064a21769f63195812d9a9819164736f6c63430008090033000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd700000000000000000000000000000000000000000000003635c9adc5dea00000

Deployed Bytecode

0x6080604052600436106101e45760003560e01c8063715018a611610103578063cbed8b9c1161009b578063cbed8b9c146105b3578063cf73a1bc146105d3578063d1deba1f146105f3578063d547cfb714610606578063d5abeb011461061b578063e985e9c514610631578063eb8d72b714610651578063eed33cef14610671578063f2fde38b14610684578063f5ecbdbc146106a457600080fd5b8063715018a6146104a057806371e578dc146104b55780637533d788146104d55780638da5cb5b146104f557806395d89b411461050a578063a22cb4651461051f578063b353aaa71461053f578063b88d4fde14610573578063c87b56dd1461059357600080fd5b80634143190811610181578063414319081461033a57806342842e0e1461035a57806342d65a8d1461037a578063519056361461039a57806355f804b3146103ad5780635b8c41e6146103cd5780636352211e1461042a57806366ad5c8a1461044a5780636aa99da31461046a57806370a082311461048057600080fd5b80621d3567146101e957806301ffc9a71461020b57806306fdde031461024057806307e0db1714610262578063081812fc14610282578063095ea7b3146102ba57806310ddb137146102da57806323b872dd146102fa5780633d8b38f61461031a575b600080fd5b3480156101f557600080fd5b506102096102043660046126a5565b6106c4565b005b34801561021757600080fd5b5061022b610226366004612743565b61086b565b60405190151581526020015b60405180910390f35b34801561024c57600080fd5b506102556108bd565b60405161023791906127b8565b34801561026e57600080fd5b5061020961027d3660046127cb565b61094f565b34801561028e57600080fd5b506102a261029d3660046127e6565b6109f8565b6040516001600160a01b039091168152602001610237565b3480156102c657600080fd5b506102096102d5366004612814565b610a80565b3480156102e657600080fd5b506102096102f53660046127cb565b610b91565b34801561030657600080fd5b50610209610315366004612840565b610c10565b34801561032657600080fd5b5061022b6103353660046128c9565b610c41565b34801561034657600080fd5b5061020961035536600461291b565b610d0d565b34801561036657600080fd5b50610209610375366004612840565b610d5e565b34801561038657600080fd5b506102096103953660046128c9565b610d79565b6102096103a8366004612938565b610e2f565b3480156103b957600080fd5b506102096103c83660046129ff565b610e82565b3480156103d957600080fd5b5061041c6103e8366004612a47565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b604051908152602001610237565b34801561043657600080fd5b506102a26104453660046127e6565b610ec8565b34801561045657600080fd5b506102096104653660046126a5565b610f3f565b34801561047657600080fd5b5061041c600a5481565b34801561048c57600080fd5b5061041c61049b36600461291b565b610faf565b3480156104ac57600080fd5b50610209611036565b3480156104c157600080fd5b506102096104d036600461291b565b611071565b3480156104e157600080fd5b506102556104f03660046127cb565b61114c565b34801561050157600080fd5b506102a26111e6565b34801561051657600080fd5b506102556111f5565b34801561052b57600080fd5b5061020961053a366004612aa8565b611204565b34801561054b57600080fd5b506102a27f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd781565b34801561057f57600080fd5b5061020961058e366004612ae6565b61120f565b34801561059f57600080fd5b506102556105ae3660046127e6565b611241565b3480156105bf57600080fd5b506102096105ce366004612b45565b61130c565b3480156105df57600080fd5b50600c546102a2906001600160a01b031681565b6102096106013660046126a5565b6113bd565b34801561061257600080fd5b5061025561150f565b34801561062757600080fd5b5061041c600b5481565b34801561063d57600080fd5b5061022b61064c366004612bb3565b61151c565b34801561065d57600080fd5b5061020961066c3660046128c9565b61154a565b61020961067f366004612be1565b6115d8565b34801561069057600080fd5b5061020961069f36600461291b565b61162a565b3480156106b057600080fd5b506102556106bf366004612c93565b6116ca565b337f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd76001600160a01b0316146107415760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff84166000908152600160205260408120805461075f90612ce0565b80601f016020809104026020016040519081016040528092919081815260200182805461078b90612ce0565b80156107d85780601f106107ad576101008083540402835291602001916107d8565b820191906000526020600020905b8154815290600101906020018083116107bb57829003601f168201915b50505050509050805184511480156107fd575080805190602001208480519060200120145b6108585760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608401610738565b6108648585858561178c565b5050505050565b60006001600160e01b031982166380ac58cd60e01b148061089c57506001600160e01b03198216635b5e139f60e01b145b806108b757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546108cc90612ce0565b80601f01602080910402602001604051908101604052809291908181526020018280546108f890612ce0565b80156109455780601f1061091a57610100808354040283529160200191610945565b820191906000526020600020905b81548152906001019060200180831161092857829003601f168201915b5050505050905090565b336109586111e6565b6001600160a01b03161461097e5760405162461bcd60e51b815260040161073890612d1b565b6040516307e0db1760e01b815261ffff821660048201527f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd76001600160a01b0316906307e0db17906024015b600060405180830381600087803b1580156109e457600080fd5b505af1158015610864573d6000803e3d6000fd5b6000610a038261187d565b610a645760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610738565b506000908152600760205260409020546001600160a01b031690565b6000610a8b82610ec8565b9050806001600160a01b0316836001600160a01b03161415610af95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610738565b336001600160a01b0382161480610b155750610b15813361151c565b610b825760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610738565b610b8c838361189a565b505050565b33610b9a6111e6565b6001600160a01b031614610bc05760405162461bcd60e51b815260040161073890612d1b565b6040516310ddb13760e01b815261ffff821660048201527f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd76001600160a01b0316906310ddb137906024016109ca565b610c1a3382611908565b610c365760405162461bcd60e51b815260040161073890612d50565b610b8c8383836119ca565b61ffff831660009081526001602052604081208054829190610c6290612ce0565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8e90612ce0565b8015610cdb5780601f10610cb057610100808354040283529160200191610cdb565b820191906000526020600020905b815481529060010190602001808311610cbe57829003601f168201915b505050505090508383604051610cf2929190612da1565b60405180910390208180519060200120149150509392505050565b33610d166111e6565b6001600160a01b031614610d3c5760405162461bcd60e51b815260040161073890612d1b565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b610b8c8383836040518060200160405280600081525061120f565b33610d826111e6565b6001600160a01b031614610da85760405162461bcd60e51b815260040161073890612d1b565b6040516342d65a8d60e01b81526001600160a01b037f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd716906342d65a8d90610df890869086908690600401612dda565b600060405180830381600087803b158015610e1257600080fd5b505af1158015610e26573d6000803e3d6000fd5b50505050505050565b610e77898989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a91508990508888611b54565b505050505050505050565b33610e8b6111e6565b6001600160a01b031614610eb15760405162461bcd60e51b815260040161073890612d1b565b8051610ec49060099060208401906124a1565b5050565b6000818152600560205260408120546001600160a01b0316806108b75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610738565b333014610f9d5760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608401610738565b610fa984848484611d08565b50505050565b60006001600160a01b03821661101a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610738565b506001600160a01b031660009081526006602052604090205490565b3361103f6111e6565b6001600160a01b0316146110655760405162461bcd60e51b815260040161073890612d1b565b61106f6000611d99565b565b600c546001600160a01b031633146110d75760405162461bcd60e51b8152602060048201526024808201527f4f6e6c79206d616e616765722063616e2063616c6c20746869732066756e637460448201526334b7b71760e11b6064820152608401610738565b600b54600a54111561112b5760405162461bcd60e51b815260206004820152601c60248201527f4f4e46543a204d6178204d696e74206c696d69742072656163686564000000006044820152606401610738565b600a8054908190600061113d83612e0e565b9190505550610ec48282611de9565b6001602052600090815260409020805461116590612ce0565b80601f016020809104026020016040519081016040528092919081815260200182805461119190612ce0565b80156111de5780601f106111b3576101008083540402835291602001916111de565b820191906000526020600020905b8154815290600101906020018083116111c157829003601f168201915b505050505081565b6000546001600160a01b031690565b6060600480546108cc90612ce0565b610ec4338383611e03565b6112193383611908565b6112355760405162461bcd60e51b815260040161073890612d50565b610fa984848484611ece565b606061124c8261187d565b6112b05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610738565b60006112ba611f01565b905060008151116112da5760405180602001604052806000815250611305565b806112e484611f10565b6040516020016112f5929190612e29565b6040516020818303038152906040525b9392505050565b336113156111e6565b6001600160a01b03161461133b5760405162461bcd60e51b815260040161073890612d1b565b6040516332fb62e760e21b81526001600160a01b037f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd7169063cbed8b9c9061138f9088908890889088908890600401612e58565b600060405180830381600087803b1580156113a957600080fd5b505af1158015610e77573d6000803e3d6000fd5b61ffff841660009081526002602052604080822090516113de908690612e91565b90815260408051602092819003830190206001600160401b0386166000908152925290205490508061145e5760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608401610738565b8151602083012081146114bd5760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608401610738565b61ffff851660009081526002602052604080822090516114de908790612e91565b90815260408051602092819003830190206001600160401b0387166000908152925290205561086485858585611d08565b6009805461116590612ce0565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b336115536111e6565b6001600160a01b0316146115795760405162461bcd60e51b815260040161073890612d1b565b61ffff83166000908152600160205260409020611597908383612525565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab8383836040516115cb93929190612dda565b60405180910390a1505050565b611620338989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a91508990508888611b54565b5050505050505050565b336116336111e6565b6001600160a01b0316146116595760405162461bcd60e51b815260040161073890612d1b565b6001600160a01b0381166116be5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610738565b6116c781611d99565b50565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd76001600160a01b03169063f5ecbdbc9060840160006040518083038186803b15801561174557600080fd5b505afa158015611759573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117819190810190612ef2565b90505b949350505050565b604051633356ae4560e11b815230906366ad5c8a906117b5908790879087908790600401612f26565b600060405180830381600087803b1580156117cf57600080fd5b505af19250505080156117e0575060015b610fa9578080519060200120600260008661ffff1661ffff168152602001908152602001600020846040516118159190612e91565b9081526040805191829003602090810183206001600160401b0387166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90611870908690869086908690612f26565b60405180910390a1610fa9565b6000908152600560205260409020546001600160a01b0316151590565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118cf82610ec8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006119138261187d565b6119745760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610738565b600061197f83610ec8565b9050806001600160a01b0316846001600160a01b031614806119ba5750836001600160a01b03166119af846109f8565b6001600160a01b0316145b806117845750611784818561151c565b826001600160a01b03166119dd82610ec8565b6001600160a01b031614611a415760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610738565b6001600160a01b038216611aa35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610738565b611aae60008261189a565b6001600160a01b0383166000908152600660205260408120805460019290611ad7908490612f64565b90915550506001600160a01b0382166000908152600660205260408120805460019290611b05908490612f7b565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061318083398151915291a4505050565b611b5e3386611908565b611b7a5760405162461bcd60e51b815260040161073890612d50565b611b868888888861200d565b60008686604051602001611b9b929190612f93565b6040516020818303038152906040529050611bef8882878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061201692505050565b604051630f428ae960e31b815261ffff891660048201523060248201526000907f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd76001600160a01b031690637a1457489060440160206040518083038186803b158015611c5b57600080fd5b505afa158015611c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c939190612fb5565b905087604051611ca39190612e91565b604080519182900382208983526001600160401b03841660208401529161ffff8c16916001600160a01b038e16917f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce1543910160405180910390a450505050505050505050565b60008082806020019051810190611d1f9190612fd2565b60148201519193509150611d348782846121b0565b6040805161ffff891681526001600160a01b03831660208201529081018390526001600160401b03861660608201527fd4d39d20f72eabd06c301e516d54653dfc9116de62c1d54bf1cb48cf3b42a7db9060800160405180910390a150505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ec48282604051806020016040528060008152506121ba565b816001600160a01b0316836001600160a01b03161415611e615760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610738565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ed98484846119ca565b611ee5848484846121ed565b610fa95760405162461bcd60e51b815260040161073890613018565b6060600980546108cc90612ce0565b606081611f345750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f5e5780611f4881612e0e565b9150611f579050600a83613080565b9150611f38565b6000816001600160401b03811115611f7857611f786125c5565b6040519080825280601f01601f191660200182016040528015611fa2576020820181803683370190505b5090505b841561178457611fb7600183612f64565b9150611fc4600a86613094565b611fcf906030612f7b565b60f81b818381518110611fe457611fe46130a8565b60200101906001600160f81b031916908160001a905350612006600a86613080565b9450611fa6565b610fa9816122f7565b61ffff85166000908152600160205260408120805461203490612ce0565b80601f016020809104026020016040519081016040528092919081815260200182805461206090612ce0565b80156120ad5780601f10612082576101008083540402835291602001916120ad565b820191906000526020600020905b81548152906001019060200180831161209057829003601f168201915b5050505050905080516000141561211f5760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608401610738565b60405162c5803160e81b81526001600160a01b037f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd7169063c5803100903490612176908a9086908b908b908b908b906004016130be565b6000604051808303818588803b15801561218f57600080fd5b505af11580156121a3573d6000803e3d6000fd5b5050505050505050505050565b610b8c8282611de9565b6121c48383612380565b6121d160008484846121ed565b610b8c5760405162461bcd60e51b815260040161073890613018565b60006001600160a01b0384163b156122ef57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612231903390899088908890600401613125565b602060405180830381600087803b15801561224b57600080fd5b505af192505050801561227b575060408051601f3d908101601f1916820190925261227891810190613162565b60015b6122d5573d8080156122a9576040519150601f19603f3d011682016040523d82523d6000602084013e6122ae565b606091505b5080516122cd5760405162461bcd60e51b815260040161073890613018565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611784565b506001611784565b600061230282610ec8565b905061230f60008361189a565b6001600160a01b0381166000908152600660205260408120805460019290612338908490612f64565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b03841690600080516020613180833981519152908390a45050565b6001600160a01b0382166123d65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610738565b6123df8161187d565b1561242c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610738565b6001600160a01b0382166000908152600660205260408120805460019290612455908490612f7b565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020613180833981519152908290a45050565b8280546124ad90612ce0565b90600052602060002090601f0160209004810192826124cf5760008555612515565b82601f106124e857805160ff1916838001178555612515565b82800160010185558215612515579182015b828111156125155782518255916020019190600101906124fa565b50612521929150612599565b5090565b82805461253190612ce0565b90600052602060002090601f0160209004810192826125535760008555612515565b82601f1061256c5782800160ff19823516178555612515565b82800160010185558215612515579182015b8281111561251557823582559160200191906001019061257e565b5b80821115612521576000815560010161259a565b803561ffff811681146125c057600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612603576126036125c5565b604052919050565b60006001600160401b03821115612624576126246125c5565b50601f01601f191660200190565b60006126456126408461260b565b6125db565b905082815283838301111561265957600080fd5b828260208301376000602084830101529392505050565b600082601f83011261268157600080fd5b61130583833560208501612632565b6001600160401b03811681146116c757600080fd5b600080600080608085870312156126bb57600080fd5b6126c4856125ae565b935060208501356001600160401b03808211156126e057600080fd5b6126ec88838901612670565b9450604087013591506126fe82612690565b9092506060860135908082111561271457600080fd5b5061272187828801612670565b91505092959194509250565b6001600160e01b0319811681146116c757600080fd5b60006020828403121561275557600080fd5b81356113058161272d565b60005b8381101561277b578181015183820152602001612763565b83811115610fa95750506000910152565b600081518084526127a4816020860160208601612760565b601f01601f19169290920160200192915050565b602081526000611305602083018461278c565b6000602082840312156127dd57600080fd5b611305826125ae565b6000602082840312156127f857600080fd5b5035919050565b6001600160a01b03811681146116c757600080fd5b6000806040838503121561282757600080fd5b8235612832816127ff565b946020939093013593505050565b60008060006060848603121561285557600080fd5b8335612860816127ff565b92506020840135612870816127ff565b929592945050506040919091013590565b60008083601f84011261289357600080fd5b5081356001600160401b038111156128aa57600080fd5b6020830191508360208285010111156128c257600080fd5b9250929050565b6000806000604084860312156128de57600080fd5b6128e7846125ae565b925060208401356001600160401b0381111561290257600080fd5b61290e86828701612881565b9497909650939450505050565b60006020828403121561292d57600080fd5b8135611305816127ff565b600080600080600080600080600060e08a8c03121561295657600080fd5b8935612961816127ff565b985061296f60208b016125ae565b975060408a01356001600160401b038082111561298b57600080fd5b6129978d838e01612881565b909950975060608c0135965060808c013591506129b3826127ff565b90945060a08b0135906129c5826127ff565b90935060c08b013590808211156129db57600080fd5b506129e88c828d01612881565b915080935050809150509295985092959850929598565b600060208284031215612a1157600080fd5b81356001600160401b03811115612a2757600080fd5b8201601f81018413612a3857600080fd5b61178484823560208401612632565b600080600060608486031215612a5c57600080fd5b612a65846125ae565b925060208401356001600160401b03811115612a8057600080fd5b612a8c86828701612670565b9250506040840135612a9d81612690565b809150509250925092565b60008060408385031215612abb57600080fd5b8235612ac6816127ff565b915060208301358015158114612adb57600080fd5b809150509250929050565b60008060008060808587031215612afc57600080fd5b8435612b07816127ff565b93506020850135612b17816127ff565b92506040850135915060608501356001600160401b03811115612b3957600080fd5b61272187828801612670565b600080600080600060808688031215612b5d57600080fd5b612b66866125ae565b9450612b74602087016125ae565b93506040860135925060608601356001600160401b03811115612b9657600080fd5b612ba288828901612881565b969995985093965092949392505050565b60008060408385031215612bc657600080fd5b8235612bd1816127ff565b91506020830135612adb816127ff565b60008060008060008060008060c0898b031215612bfd57600080fd5b612c06896125ae565b975060208901356001600160401b0380821115612c2257600080fd5b612c2e8c838d01612881565b909950975060408b0135965060608b01359150612c4a826127ff565b90945060808a013590612c5c826127ff565b90935060a08a01359080821115612c7257600080fd5b50612c7f8b828c01612881565b999c989b5096995094979396929594505050565b60008060008060808587031215612ca957600080fd5b612cb2856125ae565b9350612cc0602086016125ae565b92506040850135612cd0816127ff565b9396929550929360600135925050565b600181811c90821680612cf457607f821691505b60208210811415612d1557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b8183823760009101908152919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b61ffff84168152604060208201526000611781604083018486612db1565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612e2257612e22612df8565b5060010190565b60008351612e3b818460208801612760565b835190830190612e4f818360208801612760565b01949350505050565b600061ffff808816835280871660208401525084604083015260806060830152612e86608083018486612db1565b979650505050505050565b60008251612ea3818460208701612760565b9190910192915050565b600082601f830112612ebe57600080fd5b8151612ecc6126408261260b565b818152846020838601011115612ee157600080fd5b611784826020830160208701612760565b600060208284031215612f0457600080fd5b81516001600160401b03811115612f1a57600080fd5b61178484828501612ead565b61ffff85168152608060208201526000612f43608083018661278c565b6001600160401b03851660408401528281036060840152612e86818561278c565b600082821015612f7657612f76612df8565b500390565b60008219821115612f8e57612f8e612df8565b500190565b604081526000612fa6604083018561278c565b90508260208301529392505050565b600060208284031215612fc757600080fd5b815161130581612690565b60008060408385031215612fe557600080fd5b82516001600160401b03811115612ffb57600080fd5b61300785828601612ead565b925050602083015190509250929050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261308f5761308f61306a565b500490565b6000826130a3576130a361306a565b500690565b634e487b7160e01b600052603260045260246000fd5b61ffff8716815260c0602082015260006130db60c083018861278c565b82810360408401526130ed818861278c565b6001600160a01b0387811660608601528616608085015283810360a08501529050613118818561278c565b9998505050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906131589083018461278c565b9695505050505050565b60006020828403121561317457600080fd5b81516113058161272d56feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212204ba36f96b1d0b4d9d4c3116323d7636b3ddfa3064a21769f63195812d9a9819164736f6c63430008090033

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

000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd700000000000000000000000000000000000000000000003635c9adc5dea00000

-----Decoded View---------------
Arg [0] : _layerZeroEndpoint (address): 0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7
Arg [1] : _maxSupply (uint256): 1000000000000000000000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd7
Arg [1] : 00000000000000000000000000000000000000000000003635c9adc5dea00000


Block Transaction Difficulty 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

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ 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.