ETH Price: $3,442.41 (-0.35%)
Gas: 7 Gwei

Contract

0x050ADe3715B5396977a9E51806FBC984De843223
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...184737472023-11-01 0:41:23265 days ago1698799283IN
0x050ADe37...4De843223
0 ETH0.0003868615.80121723
Set Approval For...182593032023-10-02 0:36:11295 days ago1696206971IN
0x050ADe37...4De843223
0 ETH0.000153536.27096741
Set Approval For...182522432023-10-01 0:55:59296 days ago1696121759IN
0x050ADe37...4De843223
0 ETH0.000157796.44502781
Transfer From170244832023-04-11 11:12:47469 days ago1681211567IN
0x050ADe37...4De843223
0 ETH0.0008076719.75682605
Transfer From169518652023-04-01 4:15:35479 days ago1680322535IN
0x050ADe37...4De843223
0 ETH0.0008232918.03227929
Transfer From169518432023-04-01 4:11:11479 days ago1680322271IN
0x050ADe37...4De843223
0 ETH0.0012229119.48645268
Set Approval For...167874102023-03-09 1:32:59502 days ago1678325579IN
0x050ADe37...4De843223
0 ETH0.0006522926.56454055
Safe Transfer Fr...167056292023-02-25 13:35:35514 days ago1677332135IN
0x050ADe37...4De843223
0 ETH0.0014372123.32039632
Set Approval For...166345982023-02-15 14:00:23524 days ago1676469623IN
0x050ADe37...4De843223
0 ETH0.0018602440.09575693
Set Approval For...163471432023-01-06 10:27:35564 days ago1673000855IN
0x050ADe37...4De843223
0 ETH0.0003908414.75844681
Set Approval For...163471272023-01-06 10:24:23564 days ago1673000663IN
0x050ADe37...4De843223
0 ETH0.0003565214.56226609
Set Approval For...162933852022-12-29 22:25:35571 days ago1672352735IN
0x050ADe37...4De843223
0 ETH0.0004565718.64870098
Set Approval For...162931152022-12-29 21:31:23571 days ago1672349483IN
0x050ADe37...4De843223
0 ETH0.0006943314.96578329
Set Approval For...162543992022-12-24 11:48:59577 days ago1671882539IN
0x050ADe37...4De843223
0 ETH0.0006386313.74378518
Set Approval For...159204702022-11-07 20:15:23623 days ago1667852123IN
0x050ADe37...4De843223
0 ETH0.0007250229.51214303
Safe Transfer Fr...157493062022-10-14 22:22:47647 days ago1665786167IN
0x050ADe37...4De843223
0 ETH0.0008804714.49123877
Set Approval For...156915702022-10-06 20:53:11655 days ago1665089591IN
0x050ADe37...4De843223
0 ETH0.0005751912.37533388
Set Approval For...156567572022-10-02 0:05:11660 days ago1664669111IN
0x050ADe37...4De843223
0 ETH0.000127955.22628128
Safe Transfer Fr...156563952022-10-01 22:52:23660 days ago1664664743IN
0x050ADe37...4De843223
0 ETH0.000227915.21747196
Set Approval For...156499362022-10-01 1:08:35661 days ago1664586515IN
0x050ADe37...4De843223
0 ETH0.0002876811.71039426
Set Approval For...156286672022-09-28 1:50:59664 days ago1664329859IN
0x050ADe37...4De843223
0 ETH0.0002419.8100176
Safe Transfer Fr...155701502022-09-19 21:12:23672 days ago1663621943IN
0x050ADe37...4De843223
0 ETH0.0007775412.79462809
Set Approval For...154237592022-08-27 20:43:08695 days ago1661632988IN
0x050ADe37...4De843223
0 ETH0.0009717820.94585425
Set Approval For...154201702022-08-27 7:07:54696 days ago1661584074IN
0x050ADe37...4De843223
0 ETH0.000149536.10789224
Set Approval For...152967452022-08-07 18:12:23715 days ago1659895943IN
0x050ADe37...4De843223
0 ETH0.000229539.37525566
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CryptoCommandosOrigins

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 23 : CryptoCommandosOrigins.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./ONFT721.sol";

/**
 * @title Crypto Commandos: Origins Collection
 * @dev Omni chain item mint. Source chain ETH, approved chain polygon
 * @author @ScottMitchell18
 */
contract CryptoCommandosOrigins is ONFT721, AccessControl {
    bytes32 private constant OWNER_ROLE = keccak256("OWNER_ROLE");

    /// @dev token Id counter
    uint256 public nextTokenId = 0;

    /// @dev The total supply of the source collection mint
    uint256 public endMintId;

    // @dev Base uri for the nft
    string private baseURI;

    /// @dev The merkle root bytes
    bytes32 public merkleRoot;

    /// @dev An address mapping to add max mints per wallet
    mapping(address => bool) public addressToMinted;

    /// @notice Constructor for the ONFT
    /// @param _layerZeroEndpoint handles message transmission across chains
    constructor(address _layerZeroEndpoint)
        ONFT721(
            "Crypto Commandos: Origins Collection",
            "CCO",
            _layerZeroEndpoint
        )
    {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(OWNER_ROLE, msg.sender);
    }

    /**
     * @notice Whitelisted minting function which requires a merkle proof
     * @param _proof The bytes32 array proof to verify the merkle root
     */
    function whitelistMint(bytes32[] calldata _proof) external {
        require(!addressToMinted[msg.sender], "3");
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_proof, merkleRoot, leaf), "4");
        addressToMinted[msg.sender] = true;
        _safeMint(msg.sender, ++nextTokenId);
    }

    /// @notice Mints one new token
    function mint() external {
        require(!addressToMinted[msg.sender], "1");
        require(nextTokenId + 1 < endMintId, "2");
        addressToMinted[msg.sender] = true;
        _safeMint(msg.sender, ++nextTokenId);
    }

    /**
     * @notice A toggle switch for public sale
     * @param _endMintId The max nft collection size
     */
    function triggerPublicSale(uint256 _endMintId)
        external
        onlyRole(OWNER_ROLE)
    {
        delete merkleRoot;
        endMintId = _endMintId;
    }

    /**
     * @notice Sets the base URI of the NFT
     * @param _baseURI A base uri
     */
    function setBaseURI(string calldata _baseURI)
        external
        onlyRole(OWNER_ROLE)
    {
        baseURI = _baseURI;
    }

    /**
     * @notice Sets the merkle root for the mint
     * @param _merkleRoot The merkle root to set
     */
    function setMerkleRoot(bytes32 _merkleRoot) external onlyRole(OWNER_ROLE) {
        merkleRoot = _merkleRoot;
    }

    /**
     * @notice Sets the collection start id
     * @param _nextTokenId The max supply of the collection
     */
    function setNextTokenId(uint256 _nextTokenId)
        external
        onlyRole(OWNER_ROLE)
    {
        nextTokenId = _nextTokenId;
    }

    /**
     * @notice Sets the collection max supply
     * @param _endMintId The max supply of the collection
     */
    function setEndMintId(uint256 _endMintId) external onlyRole(OWNER_ROLE) {
        endMintId = _endMintId;
    }

    function donate() external payable {
        // Thanks
    }

    /// @notice Withdraws funds from contract
    function withdraw() public onlyRole(OWNER_ROLE) {
        (bool success, ) = payable(msg.sender).call{
            value: address(this).balance
        }("");
        require(success, "Failed to send to treasury.");
    }

    /**
     * @notice Returns the URI for a given token id
     * @param _tokenId A tokenId
     */
    function tokenURI(uint256 _tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(_exists(_tokenId), "-1");
        return string(abi.encodePacked(baseURI, Strings.toString(_tokenId)));
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ONFT721, AccessControl)
        returns (bool)
    {
        return
            ONFT721.supportsInterface(interfaceId) ||
            AccessControl.supportsInterface(interfaceId);
    }
}

File 2 of 23 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 23 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 4 of 23 : ONFT721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IONFT721.sol";
import "./ONFT721Core.sol";

contract ONFT721 is ONFT721Core, ERC721, IONFT721 {
    constructor(
        string memory _name,
        string memory _symbol,
        address _lzEndpoint
    ) ERC721(_name, _symbol) ONFT721Core(_lzEndpoint) {}

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

    function _debitFrom(
        address _from,
        uint16,
        bytes memory,
        uint256 _tokenId
    ) internal virtual override {
        require(
            _isApprovedOrOwner(_msgSender(), _tokenId),
            "ONFT721: send caller is not owner nor approved"
        );
        require(
            ERC721.ownerOf(_tokenId) == _from,
            "ONFT721: send from incorrect owner"
        );
        _burn(_tokenId);
    }

    function _creditTo(
        uint16,
        address _toAddress,
        uint256 _tokenId
    ) internal virtual override {
        _safeMint(_toAddress, _tokenId);
    }
}

File 5 of 23 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 6 of 23 : 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 7 of 23 : 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 8 of 23 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 9 of 23 : 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 23 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 overridden 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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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 11 of 23 : 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 23 : IONFT721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Interface of the ONFT standard
 */
interface IONFT721 is IONFT721Core, IERC721 {

}

File 13 of 23 : ONFT721Core.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./interfaces/IONFT721Core.sol";
import "./lz/NonblockingLzApp.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

abstract contract ONFT721Core is NonblockingLzApp, ERC165, IONFT721Core {
    constructor(address _lzEndpoint) NonblockingLzApp(_lzEndpoint) {}

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

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

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

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

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

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

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

        _creditTo(_srcChainId, toAddress, tokenId);

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

    function _debitFrom(
        address _from,
        uint16 _dstChainId,
        bytes memory _toAddress,
        uint256 _tokenId
    ) internal virtual;

    function _creditTo(
        uint16 _srcChainId,
        address _toAddress,
        uint256 _tokenId
    ) internal virtual;
}

File 14 of 23 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);
}

File 15 of 23 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 16 of 23 : 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 17 of 23 : 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 18 of 23 : IONFT721Core.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Interface of the ONFT Core standard
 */
interface IONFT721Core is IERC165 {
    /**
     * @dev estimate send token `_tokenId` to (`_dstChainId`, `_toAddress`)
     * _dstChainId - L0 defined chain id to send tokens too
     * _toAddress - dynamic bytes array which contains the address to whom you are sending tokens to on the dstChain
     * _tokenId - token Id to transfer
     * _useZro - indicates to use zro to pay L0 fees
     * _adapterParams - flexible bytes array to indicate messaging adapter services in L0
     */
    function estimateSendFee(
        uint16 _dstChainId,
        bytes calldata _toAddress,
        uint256 _tokenId,
        bool _useZro,
        bytes calldata _adapterParams
    ) external view returns (uint256 nativeFee, uint256 zroFee);

    /**
     * @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)
     * `_adapterParams` is a flexible bytes array to indicate messaging adapter services
     */
    function sendFrom(
        address _from,
        uint16 _dstChainId,
        bytes calldata _toAddress,
        uint256 _tokenId,
        address payable _refundAddress,
        address _zroPaymentAddress,
        bytes calldata _adapterParams
    ) 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,
        uint256 _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 indexed _srcChainId,
        bytes indexed _srcAddress,
        address indexed _toAddress,
        uint256 _tokenId,
        uint64 _nonce
    );
}

File 19 of 23 : 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 20 of 23 : 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,
        uint256 _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,
        uint256 _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 21 of 23 : 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 22 of 23 : 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,
        uint256 _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 23 of 23 : 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,
        uint256 _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 (uint256 nativeFee, uint256 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,
        uint256 _configType
    ) external view returns (bytes memory);

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000,
    "details": {
      "yul": false
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_layerZeroEndpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"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":true,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":true,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":true,"internalType":"address","name":"_toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"ReceiveFromChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"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":"donate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"endMintId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_useZro","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateSendFee","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"failedMessages","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"forceResumeReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","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":"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":"_adapterParams","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":"_baseURI","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":"uint256","name":"_endMintId","type":"uint256"}],"name":"setEndMintId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nextTokenId","type":"uint256"}],"name":"setNextTokenId","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":"uint256","name":"_endMintId","type":"uint256"}],"name":"triggerPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040526000600a553480156200001657600080fd5b5060405162004a8038038062004a808339810160408190526200003991620002fb565b60405180606001604052806024815260200162004a5c6024913960408051808201909152600381526243434f60e81b60208201528282828280806200007e3362000105565b6001600160a01b031660805250508151620000a19060039060208501906200021c565b508051620000b79060049060208401906200021c565b505050505050620000d26000801b336200015560201b60201c565b620000fe7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3362000155565b506200036f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b62000161828262000165565b5050565b620001718282620001ef565b620001615760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001ab3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b8280546200022a906200033e565b90600052602060002090601f0160209004810192826200024e576000855562000299565b82601f106200026957805160ff191683800117855562000299565b8280016001018555821562000299579182015b82811115620002995782518255916020019190600101906200027c565b50620002a7929150620002ab565b5090565b5b80821115620002a75760008155600101620002ac565b60006001600160a01b03821662000216565b620002df81620002c2565b8114620002eb57600080fd5b50565b80516200021681620002d4565b600060208284031215620003125762000312600080fd5b6000620003208484620002ee565b949350505050565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200035357607f821691505b6020821081141562000369576200036962000328565b50919050565b608051614692620003ca6000396000818161085c015281816109e001528181610c2501528181610db801528181610f0e01528181611301015281816116d20152818161196301528181611f75015261260e01526146926000f3fe6080604052600436106103285760003560e01c806370a08231116101a5578063a22cb465116100ec578063d1deba1f11610095578063eb8d72b71161006f578063eb8d72b71461097d578063ed88c68e1461034d578063f2fde38b1461099d578063f5ecbdbc146109bd57600080fd5b8063d1deba1f14610901578063d547741f14610914578063e985e9c51461093457600080fd5b8063c87b56dd116100c6578063c87b56dd146108ab578063cbed8b9c146108cb578063d0f62e1b146108eb57600080fd5b8063a22cb4651461082a578063b353aaa71461084a578063b88d4fde1461088b57600080fd5b806383e3500f1161014e57806395d89b411161012857806395d89b41146107d05780639ec00c95146107e5578063a217fddf1461081557600080fd5b806383e3500f1461074c5780638da5cb5b1461076c57806391d148541461078a57600080fd5b806375794a3c1161017f57806375794a3c146106f657806379f911fe1461070c5780637cb647591461072c57600080fd5b806370a08231146106a1578063715018a6146106c15780637533d788146106d657600080fd5b80632f2ff15d1161027457806342842e0e1161021d57806355f804b3116101f757806355f804b3146105f25780635b8c41e6146106125780636352211e1461066157806366ad5c8a1461068157600080fd5b806342842e0e1461059f57806342d65a8d146105bf57806351905636146105df57600080fd5b80633ccfd60b1161024e5780633ccfd60b1461054a5780633d8b38f61461055f57806341fc99f61461057f57600080fd5b80632f2ff15d146104ea57806336568abe1461050a578063372f657c1461052a57600080fd5b806310ddb137116102d6578063248a9ca3116102b0578063248a9ca3146104695780632a205e3d146104a65780632eb4a7ab146104d457600080fd5b806310ddb137146104145780631249c58b1461043457806323b872dd1461044957600080fd5b806307e0db171161030757806307e0db17146103a7578063081812fc146103c7578063095ea7b3146103f457600080fd5b80621d35671461032d57806301ffc9a71461034f57806306fdde0314610385575b600080fd5b34801561033957600080fd5b5061034d610348366004612cd9565b6109dd565b005b34801561035b57600080fd5b5061036f61036a366004612d8e565b610b19565b60405161037c9190612db9565b60405180910390f35b34801561039157600080fd5b5061039a610b39565b60405161037c9190612e27565b3480156103b357600080fd5b5061034d6103c2366004612e38565b610bcb565b3480156103d357600080fd5b506103e76103e2366004612e6a565b610c88565b60405161037c9190612ea5565b34801561040057600080fd5b5061034d61040f366004612ec7565b610cd8565b34801561042057600080fd5b5061034d61042f366004612e38565b610d5e565b34801561044057600080fd5b5061034d610ded565b34801561045557600080fd5b5061034d610464366004612f04565b610e84565b34801561047557600080fd5b50610499610484366004612e6a565b60009081526009602052604090206001015490565b60405161037c9190612f5a565b3480156104b257600080fd5b506104c66104c1366004612f7b565b610eb6565b60405161037c929190613029565b3480156104e057600080fd5b50610499600d5481565b3480156104f657600080fd5b5061034d610505366004613044565b610fa9565b34801561051657600080fd5b5061034d610525366004613044565b610fce565b34801561053657600080fd5b5061034d6105453660046130c9565b611004565b34801561055657600080fd5b5061034d6110e9565b34801561056b57600080fd5b5061036f61057a36600461315c565b61118f565b34801561058b57600080fd5b5061034d61059a366004612e6a565b61125c565b3480156105ab57600080fd5b5061034d6105ba366004612f04565b61128c565b3480156105cb57600080fd5b5061034d6105da36600461315c565b6112a7565b61034d6105ed3660046131b8565b611371565b3480156105fe57600080fd5b5061034d61060d36600461328d565b611380565b34801561061e57600080fd5b5061049961062d3660046132c9565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b34801561066d57600080fd5b506103e761067c366004612e6a565b6113bc565b34801561068d57600080fd5b5061034d61069c366004612cd9565b6113f1565b3480156106ad57600080fd5b506104996106bc36600461332a565b61141c565b3480156106cd57600080fd5b5061034d611460565b3480156106e257600080fd5b5061039a6106f1366004612e38565b611494565b34801561070257600080fd5b50610499600a5481565b34801561071857600080fd5b5061034d610727366004612e6a565b61152e565b34801561073857600080fd5b5061034d610747366004612e6a565b611563565b34801561075857600080fd5b5061034d610767366004612e6a565b611593565b34801561077857600080fd5b506000546001600160a01b03166103e7565b34801561079657600080fd5b5061036f6107a5366004613044565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156107dc57600080fd5b5061039a6115c3565b3480156107f157600080fd5b5061036f61080036600461332a565b600e6020526000908152604090205460ff1681565b34801561082157600080fd5b50610499600081565b34801561083657600080fd5b5061034d61084536600461334b565b6115d2565b34801561085657600080fd5b5061087e7f000000000000000000000000000000000000000000000000000000000000000081565b60405161037c919061339d565b34801561089757600080fd5b5061034d6108a63660046133ab565b6115dd565b3480156108b757600080fd5b5061039a6108c6366004612e6a565b61160f565b3480156108d757600080fd5b5061034d6108e63660046133f2565b611678565b3480156108f757600080fd5b50610499600b5481565b61034d61090f366004612cd9565b611748565b34801561092057600080fd5b5061034d61092f366004613044565b611826565b34801561094057600080fd5b5061036f61094f366004613476565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561098957600080fd5b5061034d61099836600461315c565b61184b565b3480156109a957600080fd5b5061034d6109b836600461332a565b6118d4565b3480156109c957600080fd5b5061039a6109d8366004613498565b611930565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614610a2e5760405162461bcd60e51b8152600401610a2590613527565b60405180910390fd5b61ffff841660009081526001602052604081208054610a4c9061354d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a789061354d565b8015610ac55780601f10610a9a57610100808354040283529160200191610ac5565b820191906000526020600020905b815481529060010190602001808311610aa857829003601f168201915b5050505050905080518451148015610aea575080805190602001208480519060200120145b610b065760405162461bcd60e51b8152600401610a25906135d7565b610b12858585856119fd565b5050505050565b6000610b2482611b08565b80610b335750610b3382611b25565b92915050565b606060038054610b489061354d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b749061354d565b8015610bc15780601f10610b9657610100808354040283529160200191610bc1565b820191906000526020600020905b815481529060010190602001808311610ba457829003601f168201915b5050505050905090565b6000546001600160a01b03163314610bf55760405162461bcd60e51b8152600401610a2590613619565b6040517f07e0db170000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906307e0db1790610c5a908490600401613633565b600060405180830381600087803b158015610c7457600080fd5b505af1158015610b12573d6000803e3d6000fd5b6000818152600560205260408120546001600160a01b0316610cbc5760405162461bcd60e51b8152600401610a259061368a565b506000908152600760205260409020546001600160a01b031690565b6000610ce3826113bc565b9050806001600160a01b0316836001600160a01b03161415610d175760405162461bcd60e51b8152600401610a25906136f4565b336001600160a01b0382161480610d335750610d33813361094f565b610d4f5760405162461bcd60e51b8152600401610a259061375e565b610d598383611b63565b505050565b6000546001600160a01b03163314610d885760405162461bcd60e51b8152600401610a2590613619565b6040517f10ddb1370000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906310ddb13790610c5a908490600401613633565b336000908152600e602052604090205460ff1615610e1d5760405162461bcd60e51b8152600401610a25906137a2565b600b54600a54610e2e9060016137c8565b10610e4b5760405162461bcd60e51b8152600401610a2590613814565b336000818152600e60205260408120805460ff19166001179055600a8054610e82939290610e7890613824565b9182905550611bd1565b565b610e8f335b82611beb565b610eab5760405162461bcd60e51b8152600401610a2590613899565b610d59838383611c9c565b60008060008686604051602001610ece9291906138a9565b60408051601f19818403018152908290527f40a7bb1000000000000000000000000000000000000000000000000000000000825291506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906340a7bb1090610f4b908b90309086908b908b906004016138c9565b604080518083038186803b158015610f6257600080fd5b505afa158015610f76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9a919061392d565b92509250509550959350505050565b600082815260096020526040902060010154610fc481611dbe565b610d598383611dc8565b6001600160a01b0381163314610ff65760405162461bcd60e51b8152600401610a25906139ba565b6110008282611e6a565b5050565b336000908152600e602052604090205460ff16156110345760405162461bcd60e51b8152600401610a25906139fe565b6000336040516020016110479190613a36565b6040516020818303038152906040528051906020012090506110a083838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d549150849050611eed565b6110bc5760405162461bcd60e51b8152600401610a2590613a7f565b336000818152600e60205260408120805460ff19166001179055600a8054610d59939290610e7890613824565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61111381611dbe565b6000336001600160a01b03164760405161112c90613a8f565b60006040518083038185875af1925050503d8060008114611169576040519150601f19603f3d011682016040523d82523d6000602084013e61116e565b606091505b50509050806110005760405162461bcd60e51b8152600401610a2590613acb565b61ffff8316600090815260016020526040812080548291906111b09061354d565b80601f01602080910402602001604051908101604052809291908181526020018280546111dc9061354d565b80156112295780601f106111fe57610100808354040283529160200191611229565b820191906000526020600020905b81548152906001019060200180831161120c57829003601f168201915b505050505090508383604051611240929190613aee565b60405180910390208180519060200120149150505b9392505050565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61128681611dbe565b50600b55565b610d59838383604051806020016040528060008152506115dd565b6000546001600160a01b031633146112d15760405162461bcd60e51b8152600401610a2590613619565b6040517f42d65a8d0000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342d65a8d9061133a90869086908690600401613b1e565b600060405180830381600087803b15801561135457600080fd5b505af1158015611368573d6000803e3d6000fd5b50505050505050565b61136887878787878787611f03565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6113aa81611dbe565b6113b6600c8484612b16565b50505050565b6000818152600560205260408120546001600160a01b031680610b335760405162461bcd60e51b8152600401610a2590613b99565b3330146114105760405162461bcd60e51b8152600401610a2590613c03565b6113b684848484612067565b60006001600160a01b0382166114445760405162461bcd60e51b8152600401610a2590613c6d565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b0316331461148a5760405162461bcd60e51b8152600401610a2590613619565b610e8260006120fa565b600160205260009081526040902080546114ad9061354d565b80601f01602080910402602001604051908101604052809291908181526020018280546114d99061354d565b80156115265780601f106114fb57610100808354040283529160200191611526565b820191906000526020600020905b81548152906001019060200180831161150957829003601f168201915b505050505081565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61155881611dbe565b506000600d55600b55565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61158d81611dbe565b50600d55565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6115bd81611dbe565b50600a55565b606060048054610b489061354d565b61100033838361214a565b6115e73383611beb565b6116035760405162461bcd60e51b8152600401610a2590613899565b6113b6848484846121ed565b6000818152600560205260409020546060906001600160a01b03166116465760405162461bcd60e51b8152600401610a2590613cb1565b600c61165183612220565b604051602001611662929190613d51565b6040516020818303038152906040529050919050565b6000546001600160a01b031633146116a25760405162461bcd60e51b8152600401610a2590613619565b6040517fcbed8b9c0000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c9061170f9088908890889088908890600401613d69565b600060405180830381600087803b15801561172957600080fd5b505af115801561173d573d6000803e3d6000fd5b505050505050505050565b61ffff84166000908152600260205260408082209051611769908690613da4565b908152604080516020928190038301902067ffffffffffffffff8616600090815292529020549050806117ae5760405162461bcd60e51b8152600401610a2590613e0a565b8151602083012081146117d35760405162461bcd60e51b8152600401610a2590613e74565b61ffff851660009081526002602052604080822090516117f4908790613da4565b908152604080516020928190038301902067ffffffffffffffff871660009081529252902055610b1285858585612067565b60008281526009602052604090206001015461184181611dbe565b610d598383611e6a565b6000546001600160a01b031633146118755760405162461bcd60e51b8152600401610a2590613619565b61ffff83166000908152600160205260409020611893908383612b16565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab8383836040516118c793929190613b1e565b60405180910390a1505050565b6000546001600160a01b031633146118fe5760405162461bcd60e51b8152600401610a2590613619565b6001600160a01b0381166119245760405162461bcd60e51b8152600401610a2590613ede565b61192d816120fa565b50565b6040517ff5ecbdbc0000000000000000000000000000000000000000000000000000000081526060906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063f5ecbdbc9061199e908890889030908890600401613eee565b60006040518083038186803b1580156119b657600080fd5b505afa1580156119ca573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119f29190810190613f84565b90505b949350505050565b6040517f66ad5c8a00000000000000000000000000000000000000000000000000000000815230906366ad5c8a90611a3f908790879087908790600401613fcf565b600060405180830381600087803b158015611a5957600080fd5b505af1925050508015611a6a575060015b6113b6578080519060200120600260008661ffff1661ffff16815260200190815260200160002084604051611a9f9190613da4565b90815260408051918290036020908101832067ffffffffffffffff87166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90611afb908690869086908690613fcf565b60405180910390a16113b6565b60006001600160e01b031982161580610b335750610b338261231e565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610b335750610b3382611b08565b600081815260076020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b98826113bc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611000828260405180602001604052806000815250612390565b6000818152600560205260408120546001600160a01b0316611c1f5760405162461bcd60e51b8152600401610a2590614063565b6000611c2a836113bc565b9050806001600160a01b0316846001600160a01b03161480611c7157506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b806119f55750836001600160a01b0316611c8a84610c88565b6001600160a01b031614949350505050565b826001600160a01b0316611caf826113bc565b6001600160a01b031614611cd55760405162461bcd60e51b8152600401610a25906140cd565b6001600160a01b038216611cfb5760405162461bcd60e51b8152600401610a2590614137565b611d06600082611b63565b6001600160a01b0383166000908152600660205260408120805460019290611d2f908490614147565b90915550506001600160a01b0382166000908152600660205260408120805460019290611d5d9084906137c8565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61192d81336123c3565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff166110005760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611e263390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16156110005760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600082611efa8584612443565b14949350505050565b611f0f878787876124b7565b60008585604051602001611f249291906138a9565b6040516020818303038152906040529050611f42878286868661251e565b6040517f7a1457480000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690637a14574890611fac908b90309060040161415e565b60206040518083038186803b158015611fc457600080fd5b505afa158015611fd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ffc9190614184565b90508660405161200c9190613da4565b60405180910390208861ffff168a6001600160a01b03167f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce154389856040516120549291906141a5565b60405180910390a4505050505050505050565b6000808280602001905181019061207e91906141c0565b60148201519193509150612093878284612689565b806001600160a01b0316866040516120ab9190613da4565b60405180910390208861ffff167f64e10c37f404d128982dce114f5d233c14c5c7f6d8db93099e3d99dacb9e27ba85896040516120e99291906141a5565b60405180910390a450505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316141561217c5760405162461bcd60e51b8152600401610a2590614230565b6001600160a01b0383811660008181526008602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906121e0908590612db9565b60405180910390a3505050565b6121f8848484611c9c565b61220484848484612693565b6113b65760405162461bcd60e51b8152600401610a259061429a565b6060816122445750506040805180820190915260018152600360fc1b602082015290565b8160005b811561226e578061225881613824565b91506122679050600a836142c0565b9150612248565b60008167ffffffffffffffff81111561228957612289612bcb565b6040519080825280601f01601f1916602001820160405280156122b3576020820181803683370190505b5090505b84156119f5576122c8600183614147565b91506122d5600a866142d4565b6122e09060306137c8565b60f81b8183815181106122f5576122f56142e8565b60200101906001600160f81b031916908160001a905350612317600a866142c0565b94506122b7565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061238157506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b335750610b338261279d565b61239a8383612804565b6123a76000848484612693565b610d595760405162461bcd60e51b8152600401610a259061429a565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff1661100057612401816001600160a01b031660146128e6565b61240c8360206128e6565b60405160200161241d9291906142fe565b60408051601f198184030181529082905262461bcd60e51b8252610a2591600401612e27565b600081815b84518110156124af576000858281518110612465576124656142e8565b6020026020010151905080831161248b576000838152602082905260409020925061249c565b600081815260208490526040902092505b50806124a781613824565b915050612448565b509392505050565b6124c033610e89565b6124dc5760405162461bcd60e51b8152600401610a25906143b8565b836001600160a01b03166124ef826113bc565b6001600160a01b0316146125155760405162461bcd60e51b8152600401610a2590614422565b6113b681612a7b565b61ffff85166000908152600160205260408120805461253c9061354d565b80601f01602080910402602001604051908101604052809291908181526020018280546125689061354d565b80156125b55780601f1061258a576101008083540402835291602001916125b5565b820191906000526020600020905b81548152906001019060200180831161259857829003601f168201915b505050505090508051600014156125de5760405162461bcd60e51b8152600401610a259061448c565b6040517fc58031000000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c580310090349061264f908a9086908b908b908b908b9060040161449c565b6000604051808303818588803b15801561266857600080fd5b505af115801561267c573d6000803e3d6000fd5b5050505050505050505050565b610d598282611bd1565b60006001600160a01b0384163b1561279557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126d790339089908890889060040161450a565b602060405180830381600087803b1580156126f157600080fd5b505af1925050508015612721575060408051601f3d908101601f1916820190925261271e9181019061453d565b60015b61277b573d80801561274f576040519150601f19603f3d011682016040523d82523d6000602084013e612754565b606091505b5080516127735760405162461bcd60e51b8152600401610a259061429a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506119f5565b5060016119f5565b60006001600160e01b031982167f7bb0080b000000000000000000000000000000000000000000000000000000001480610b3357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610b33565b6001600160a01b03821661282a5760405162461bcd60e51b8152600401610a2590614590565b6000818152600560205260409020546001600160a01b03161561285f5760405162461bcd60e51b8152600401610a25906145d4565b6001600160a01b03821660009081526006602052604081208054600192906128889084906137c8565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606060006128f58360026145e4565b6129009060026137c8565b67ffffffffffffffff81111561291857612918612bcb565b6040519080825280601f01601f191660200182016040528015612942576020820181803683370190505b509050600360fc1b8160008151811061295d5761295d6142e8565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106129a8576129a86142e8565b60200101906001600160f81b031916908160001a90535060006129cc8460026145e4565b6129d79060016137c8565b90505b6001811115612a5c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612a1857612a186142e8565b1a60f81b828281518110612a2e57612a2e6142e8565b60200101906001600160f81b031916908160001a90535060049490941c93612a5581614603565b90506129da565b5083156112555760405162461bcd60e51b8152600401610a259061464c565b6000612a86826113bc565b9050612a93600083611b63565b6001600160a01b0381166000908152600660205260408120805460019290612abc908490614147565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b828054612b229061354d565b90600052602060002090601f016020900481019282612b445760008555612b8a565b82601f10612b5d5782800160ff19823516178555612b8a565b82800160010185558215612b8a579182015b82811115612b8a578235825591602001919060010190612b6f565b50612b96929150612b9a565b5090565b5b80821115612b965760008155600101612b9b565b61ffff81165b811461192d57600080fd5b8035610b3381612baf565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715612c0757612c07612bcb565b6040525050565b6000612c1960405190565b9050612c258282612be1565b919050565b600067ffffffffffffffff821115612c4457612c44612bcb565b601f19601f83011660200192915050565b82818337506000910152565b6000612c74612c6f84612c2a565b612c0e565b905082815260208101848484011115612c8f57612c8f600080fd5b6124af848285612c55565b600082601f830112612cae57612cae600080fd5b81356119f5848260208601612c61565b67ffffffffffffffff8116612bb5565b8035610b3381612cbe565b60008060008060808587031215612cf257612cf2600080fd5b6000612cfe8787612bc0565b945050602085013567ffffffffffffffff811115612d1e57612d1e600080fd5b612d2a87828801612c9a565b9350506040612d3b87828801612cce565b925050606085013567ffffffffffffffff811115612d5b57612d5b600080fd5b612d6787828801612c9a565b91505092959194509250565b6001600160e01b03198116612bb5565b8035610b3381612d73565b600060208284031215612da357612da3600080fd5b60006119f58484612d83565b8015155b82525050565b60208101610b338284612daf565b60005b83811015612de2578181015183820152602001612dca565b838111156113b65750506000910152565b6000612dfd825190565b808452602084019350612e14818560208601612dc7565b601f19601f8201165b9093019392505050565b602080825281016112558184612df3565b600060208284031215612e4d57612e4d600080fd5b60006119f58484612bc0565b80612bb5565b8035610b3381612e59565b600060208284031215612e7f57612e7f600080fd5b60006119f58484612e5f565b60006001600160a01b038216610b33565b612db381612e8b565b60208101610b338284612e9c565b612bb581612e8b565b8035610b3381612eb3565b60008060408385031215612edd57612edd600080fd5b6000612ee98585612ebc565b9250506020612efa85828601612e5f565b9150509250929050565b600080600060608486031215612f1c57612f1c600080fd5b6000612f288686612ebc565b9350506020612f3986828701612ebc565b9250506040612f4a86828701612e5f565b9150509250925092565b80612db3565b60208101610b338284612f54565b801515612bb5565b8035610b3381612f68565b600080600080600060a08688031215612f9657612f96600080fd5b6000612fa28888612bc0565b955050602086013567ffffffffffffffff811115612fc257612fc2600080fd5b612fce88828901612c9a565b9450506040612fdf88828901612e5f565b9350506060612ff088828901612f70565b925050608086013567ffffffffffffffff81111561301057613010600080fd5b61301c88828901612c9a565b9150509295509295909350565b604081016130378285612f54565b6112556020830184612f54565b6000806040838503121561305a5761305a600080fd5b60006130668585612e5f565b9250506020612efa85828601612ebc565b60008083601f84011261308c5761308c600080fd5b50813567ffffffffffffffff8111156130a7576130a7600080fd5b6020830191508360208202830111156130c2576130c2600080fd5b9250929050565b600080602083850312156130df576130df600080fd5b823567ffffffffffffffff8111156130f9576130f9600080fd5b61310585828601613077565b92509250509250929050565b60008083601f84011261312657613126600080fd5b50813567ffffffffffffffff81111561314157613141600080fd5b6020830191508360018202830111156130c2576130c2600080fd5b60008060006040848603121561317457613174600080fd5b60006131808686612bc0565b935050602084013567ffffffffffffffff8111156131a0576131a0600080fd5b6131ac86828701613111565b92509250509250925092565b600080600080600080600060e0888a0312156131d6576131d6600080fd5b60006131e28a8a612ebc565b97505060206131f38a828b01612bc0565b965050604088013567ffffffffffffffff81111561321357613213600080fd5b61321f8a828b01612c9a565b95505060606132308a828b01612e5f565b94505060806132418a828b01612ebc565b93505060a06132528a828b01612ebc565b92505060c088013567ffffffffffffffff81111561327257613272600080fd5b61327e8a828b01612c9a565b91505092959891949750929550565b600080602083850312156132a3576132a3600080fd5b823567ffffffffffffffff8111156132bd576132bd600080fd5b61310585828601613111565b6000806000606084860312156132e1576132e1600080fd5b60006132ed8686612bc0565b935050602084013567ffffffffffffffff81111561330d5761330d600080fd5b61331986828701612c9a565b9250506040612f4a86828701612cce565b60006020828403121561333f5761333f600080fd5b60006119f58484612ebc565b6000806040838503121561336157613361600080fd5b600061336d8585612ebc565b9250506020612efa85828601612f70565b6000610b3382612e8b565b6000610b338261337e565b612db381613389565b60208101610b338284613394565b600080600080608085870312156133c4576133c4600080fd5b60006133d08787612ebc565b94505060206133e187828801612ebc565b9350506040612d3b87828801612e5f565b60008060008060006080868803121561340d5761340d600080fd5b60006134198888612bc0565b955050602061342a88828901612bc0565b945050604061343b88828901612e5f565b935050606086013567ffffffffffffffff81111561345b5761345b600080fd5b61346788828901613111565b92509250509295509295909350565b6000806040838503121561348c5761348c600080fd5b60006130668585612ebc565b600080600080608085870312156134b1576134b1600080fd5b60006134bd8787612bc0565b94505060206134ce87828801612bc0565b93505060406134df87828801612ebc565b9250506060612d6787828801612e5f565b601e81526000602082017f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c65720000815291505b5060200190565b60208082528101610b33816134f0565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061356157607f821691505b6020821081141561357457613574613537565b50919050565b602681526000602082017f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f81527f6e74726163740000000000000000000000000000000000000000000000000000602082015291505b5060400190565b60208082528101610b338161357a565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613520565b60208082528101610b33816135e7565b61ffff8116612db3565b60208101610b338284613629565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291506135d0565b60208082528101610b3381613641565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f7200000000000000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b338161369a565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015291506135d0565b60208082528101610b3381613704565b600181526000602082017f310000000000000000000000000000000000000000000000000000000000000081529150613520565b60208082528101610b338161376e565b634e487b7160e01b600052601160045260246000fd5b600082198211156137db576137db6137b2565b500190565b600181526000602082017f320000000000000000000000000000000000000000000000000000000000000081529150613520565b60208082528101610b33816137e0565b6000600019821415613838576138386137b2565b5060010190565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f81527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015291506135d0565b60208082528101610b338161383f565b604080825281016138ba8185612df3565b90506112556020830184612f54565b60a081016138d78288613629565b6138e46020830187612e9c565b81810360408301526138f68186612df3565b90506139056060830185612daf565b81810360808301526139178184612df3565b979650505050505050565b8051610b3381612e59565b6000806040838503121561394357613943600080fd5b600061394f8585613922565b9250506020612efa85828601613922565b602f81526000602082017f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636581527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381613960565b600181526000602082017f330000000000000000000000000000000000000000000000000000000000000081529150613520565b60208082528101610b33816139ca565b6000610b338260601b90565b6000610b3382613a0e565b612db3613a3182612e8b565b613a1a565b6000613a428284613a25565b50601401919050565b600181526000602082017f340000000000000000000000000000000000000000000000000000000000000081529150613520565b60208082528101610b3381613a4b565b600081610b33565b601b81526000602082017f4661696c656420746f2073656e6420746f2074726561737572792e000000000081529150613520565b60208082528101610b3381613a97565b6000613ae8838584612c55565b50500190565b60006119f5828486613adb565b8183526000602084019350613b11838584612c55565b601f19601f840116612e1d565b60408101613b2c8286613629565b81810360208301526119f2818486613afb565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381613b3f565b602681526000602082017f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d75737420626581527f204c7a4170700000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381613ba9565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a6581527f726f206164647265737300000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381613c13565b600281526000602082017f2d3100000000000000000000000000000000000000000000000000000000000081529150613520565b60208082528101610b3381613c7d565b60008154613cce8161354d565b600182168015613ce55760018114613cf657613d26565b60ff19831686528186019350613d26565b60008581526020902060005b83811015613d1e57815488820152600190910190602001613d02565b838801955050505b50505092915050565b6000613d39825190565b613d47818560208601612dc7565b9290920192915050565b6000613d5d8285613cc1565b91506119f58284613d2f565b60808101613d778288613629565b613d846020830187613629565b613d916040830186612f54565b8181036060830152613917818486613afb565b60006112558284613d2f565b602381526000602082017f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737381527f6167650000000000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381613db0565b602181526000602082017f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f6181527f6400000000000000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381613e1a565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f6464726573730000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381613e84565b60808101613efc8287613629565b613f096020830186613629565b613f166040830185612e9c565b613f236060830184612f54565b95945050505050565b6000613f3a612c6f84612c2a565b905082815260208101848484011115613f5557613f55600080fd5b6124af848285612dc7565b600082601f830112613f7457613f74600080fd5b81516119f5848260208601613f2c565b600060208284031215613f9957613f99600080fd5b815167ffffffffffffffff811115613fb357613fb3600080fd5b6119f584828501613f60565b67ffffffffffffffff8116612db3565b60808101613fdd8287613629565b8181036020830152613fef8186612df3565b9050613ffe6040830185613fbf565b81810360608301526140108184612df3565b9695505050505050565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291506135d0565b60208082528101610b338161401a565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081527f6f776e6572000000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381614073565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f7265737300000000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b33816140dd565b600082821015614159576141596137b2565b500390565b6040810161416c8285613629565b6112556020830184612e9c565b8051610b3381612cbe565b60006020828403121561419957614199600080fd5b60006119f58484614179565b604081016141b38285612f54565b6112556020830184613fbf565b600080604083850312156141d6576141d6600080fd5b825167ffffffffffffffff8111156141f0576141f0600080fd5b61394f85828601613f60565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613520565b60208082528101610b33816141fc565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015291506135d0565b60208082528101610b3381614240565b634e487b7160e01b600052601260045260246000fd5b6000826142cf576142cf6142aa565b500490565b6000826142e3576142e36142aa565b500690565b634e487b7160e01b600052603260045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260170160006143308285613d2f565b7f206973206d697373696e6720726f6c65200000000000000000000000000000008152915060118201613d5d565b602e81526000602082017f4f4e46543732313a2073656e642063616c6c6572206973206e6f74206f776e6581527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015291506135d0565b60208082528101610b338161435e565b602281526000602082017f4f4e46543732313a2073656e642066726f6d20696e636f7272656374206f776e81527f6572000000000000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b33816143c8565b603081526000602082017f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742081527f61207472757374656420736f7572636500000000000000000000000000000000602082015291506135d0565b60208082528101610b3381614432565b60c081016144aa8289613629565b81810360208301526144bc8188612df3565b905081810360408301526144d08187612df3565b90506144df6060830186612e9c565b6144ec6080830185612e9c565b81810360a08301526144fe8184612df3565b98975050505050505050565b608081016145188287612e9c565b6145256020830186612e9c565b613ffe6040830185612f54565b8051610b3381612d73565b60006020828403121561455257614552600080fd5b60006119f58484614532565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613520565b60208082528101610b338161455e565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150613520565b60208082528101610b33816145a0565b60008160001904831182151516156145fe576145fe6137b2565b500290565b600081614612576146126137b2565b506000190190565b60208082527f537472696e67733a20686578206c656e67746820696e73756666696369656e7491019081526000613520565b60208082528101610b338161461a56fea2646970667358221220e8fcd27146523fb265cb736423c4c23956daa61f4cc36f473b25dba5f0258a0164736f6c6343000809003343727970746f20436f6d6d616e646f733a204f726967696e7320436f6c6c656374696f6e00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675

Deployed Bytecode

0x6080604052600436106103285760003560e01c806370a08231116101a5578063a22cb465116100ec578063d1deba1f11610095578063eb8d72b71161006f578063eb8d72b71461097d578063ed88c68e1461034d578063f2fde38b1461099d578063f5ecbdbc146109bd57600080fd5b8063d1deba1f14610901578063d547741f14610914578063e985e9c51461093457600080fd5b8063c87b56dd116100c6578063c87b56dd146108ab578063cbed8b9c146108cb578063d0f62e1b146108eb57600080fd5b8063a22cb4651461082a578063b353aaa71461084a578063b88d4fde1461088b57600080fd5b806383e3500f1161014e57806395d89b411161012857806395d89b41146107d05780639ec00c95146107e5578063a217fddf1461081557600080fd5b806383e3500f1461074c5780638da5cb5b1461076c57806391d148541461078a57600080fd5b806375794a3c1161017f57806375794a3c146106f657806379f911fe1461070c5780637cb647591461072c57600080fd5b806370a08231146106a1578063715018a6146106c15780637533d788146106d657600080fd5b80632f2ff15d1161027457806342842e0e1161021d57806355f804b3116101f757806355f804b3146105f25780635b8c41e6146106125780636352211e1461066157806366ad5c8a1461068157600080fd5b806342842e0e1461059f57806342d65a8d146105bf57806351905636146105df57600080fd5b80633ccfd60b1161024e5780633ccfd60b1461054a5780633d8b38f61461055f57806341fc99f61461057f57600080fd5b80632f2ff15d146104ea57806336568abe1461050a578063372f657c1461052a57600080fd5b806310ddb137116102d6578063248a9ca3116102b0578063248a9ca3146104695780632a205e3d146104a65780632eb4a7ab146104d457600080fd5b806310ddb137146104145780631249c58b1461043457806323b872dd1461044957600080fd5b806307e0db171161030757806307e0db17146103a7578063081812fc146103c7578063095ea7b3146103f457600080fd5b80621d35671461032d57806301ffc9a71461034f57806306fdde0314610385575b600080fd5b34801561033957600080fd5b5061034d610348366004612cd9565b6109dd565b005b34801561035b57600080fd5b5061036f61036a366004612d8e565b610b19565b60405161037c9190612db9565b60405180910390f35b34801561039157600080fd5b5061039a610b39565b60405161037c9190612e27565b3480156103b357600080fd5b5061034d6103c2366004612e38565b610bcb565b3480156103d357600080fd5b506103e76103e2366004612e6a565b610c88565b60405161037c9190612ea5565b34801561040057600080fd5b5061034d61040f366004612ec7565b610cd8565b34801561042057600080fd5b5061034d61042f366004612e38565b610d5e565b34801561044057600080fd5b5061034d610ded565b34801561045557600080fd5b5061034d610464366004612f04565b610e84565b34801561047557600080fd5b50610499610484366004612e6a565b60009081526009602052604090206001015490565b60405161037c9190612f5a565b3480156104b257600080fd5b506104c66104c1366004612f7b565b610eb6565b60405161037c929190613029565b3480156104e057600080fd5b50610499600d5481565b3480156104f657600080fd5b5061034d610505366004613044565b610fa9565b34801561051657600080fd5b5061034d610525366004613044565b610fce565b34801561053657600080fd5b5061034d6105453660046130c9565b611004565b34801561055657600080fd5b5061034d6110e9565b34801561056b57600080fd5b5061036f61057a36600461315c565b61118f565b34801561058b57600080fd5b5061034d61059a366004612e6a565b61125c565b3480156105ab57600080fd5b5061034d6105ba366004612f04565b61128c565b3480156105cb57600080fd5b5061034d6105da36600461315c565b6112a7565b61034d6105ed3660046131b8565b611371565b3480156105fe57600080fd5b5061034d61060d36600461328d565b611380565b34801561061e57600080fd5b5061049961062d3660046132c9565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b34801561066d57600080fd5b506103e761067c366004612e6a565b6113bc565b34801561068d57600080fd5b5061034d61069c366004612cd9565b6113f1565b3480156106ad57600080fd5b506104996106bc36600461332a565b61141c565b3480156106cd57600080fd5b5061034d611460565b3480156106e257600080fd5b5061039a6106f1366004612e38565b611494565b34801561070257600080fd5b50610499600a5481565b34801561071857600080fd5b5061034d610727366004612e6a565b61152e565b34801561073857600080fd5b5061034d610747366004612e6a565b611563565b34801561075857600080fd5b5061034d610767366004612e6a565b611593565b34801561077857600080fd5b506000546001600160a01b03166103e7565b34801561079657600080fd5b5061036f6107a5366004613044565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156107dc57600080fd5b5061039a6115c3565b3480156107f157600080fd5b5061036f61080036600461332a565b600e6020526000908152604090205460ff1681565b34801561082157600080fd5b50610499600081565b34801561083657600080fd5b5061034d61084536600461334b565b6115d2565b34801561085657600080fd5b5061087e7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67581565b60405161037c919061339d565b34801561089757600080fd5b5061034d6108a63660046133ab565b6115dd565b3480156108b757600080fd5b5061039a6108c6366004612e6a565b61160f565b3480156108d757600080fd5b5061034d6108e63660046133f2565b611678565b3480156108f757600080fd5b50610499600b5481565b61034d61090f366004612cd9565b611748565b34801561092057600080fd5b5061034d61092f366004613044565b611826565b34801561094057600080fd5b5061036f61094f366004613476565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561098957600080fd5b5061034d61099836600461315c565b61184b565b3480156109a957600080fd5b5061034d6109b836600461332a565b6118d4565b3480156109c957600080fd5b5061039a6109d8366004613498565b611930565b337f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b031614610a2e5760405162461bcd60e51b8152600401610a2590613527565b60405180910390fd5b61ffff841660009081526001602052604081208054610a4c9061354d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a789061354d565b8015610ac55780601f10610a9a57610100808354040283529160200191610ac5565b820191906000526020600020905b815481529060010190602001808311610aa857829003601f168201915b5050505050905080518451148015610aea575080805190602001208480519060200120145b610b065760405162461bcd60e51b8152600401610a25906135d7565b610b12858585856119fd565b5050505050565b6000610b2482611b08565b80610b335750610b3382611b25565b92915050565b606060038054610b489061354d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b749061354d565b8015610bc15780601f10610b9657610100808354040283529160200191610bc1565b820191906000526020600020905b815481529060010190602001808311610ba457829003601f168201915b5050505050905090565b6000546001600160a01b03163314610bf55760405162461bcd60e51b8152600401610a2590613619565b6040517f07e0db170000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67516906307e0db1790610c5a908490600401613633565b600060405180830381600087803b158015610c7457600080fd5b505af1158015610b12573d6000803e3d6000fd5b6000818152600560205260408120546001600160a01b0316610cbc5760405162461bcd60e51b8152600401610a259061368a565b506000908152600760205260409020546001600160a01b031690565b6000610ce3826113bc565b9050806001600160a01b0316836001600160a01b03161415610d175760405162461bcd60e51b8152600401610a25906136f4565b336001600160a01b0382161480610d335750610d33813361094f565b610d4f5760405162461bcd60e51b8152600401610a259061375e565b610d598383611b63565b505050565b6000546001600160a01b03163314610d885760405162461bcd60e51b8152600401610a2590613619565b6040517f10ddb1370000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67516906310ddb13790610c5a908490600401613633565b336000908152600e602052604090205460ff1615610e1d5760405162461bcd60e51b8152600401610a25906137a2565b600b54600a54610e2e9060016137c8565b10610e4b5760405162461bcd60e51b8152600401610a2590613814565b336000818152600e60205260408120805460ff19166001179055600a8054610e82939290610e7890613824565b9182905550611bd1565b565b610e8f335b82611beb565b610eab5760405162461bcd60e51b8152600401610a2590613899565b610d59838383611c9c565b60008060008686604051602001610ece9291906138a9565b60408051601f19818403018152908290527f40a7bb1000000000000000000000000000000000000000000000000000000000825291506001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67516906340a7bb1090610f4b908b90309086908b908b906004016138c9565b604080518083038186803b158015610f6257600080fd5b505afa158015610f76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9a919061392d565b92509250509550959350505050565b600082815260096020526040902060010154610fc481611dbe565b610d598383611dc8565b6001600160a01b0381163314610ff65760405162461bcd60e51b8152600401610a25906139ba565b6110008282611e6a565b5050565b336000908152600e602052604090205460ff16156110345760405162461bcd60e51b8152600401610a25906139fe565b6000336040516020016110479190613a36565b6040516020818303038152906040528051906020012090506110a083838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d549150849050611eed565b6110bc5760405162461bcd60e51b8152600401610a2590613a7f565b336000818152600e60205260408120805460ff19166001179055600a8054610d59939290610e7890613824565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61111381611dbe565b6000336001600160a01b03164760405161112c90613a8f565b60006040518083038185875af1925050503d8060008114611169576040519150601f19603f3d011682016040523d82523d6000602084013e61116e565b606091505b50509050806110005760405162461bcd60e51b8152600401610a2590613acb565b61ffff8316600090815260016020526040812080548291906111b09061354d565b80601f01602080910402602001604051908101604052809291908181526020018280546111dc9061354d565b80156112295780601f106111fe57610100808354040283529160200191611229565b820191906000526020600020905b81548152906001019060200180831161120c57829003601f168201915b505050505090508383604051611240929190613aee565b60405180910390208180519060200120149150505b9392505050565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61128681611dbe565b50600b55565b610d59838383604051806020016040528060008152506115dd565b6000546001600160a01b031633146112d15760405162461bcd60e51b8152600401610a2590613619565b6040517f42d65a8d0000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67516906342d65a8d9061133a90869086908690600401613b1e565b600060405180830381600087803b15801561135457600080fd5b505af1158015611368573d6000803e3d6000fd5b50505050505050565b61136887878787878787611f03565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6113aa81611dbe565b6113b6600c8484612b16565b50505050565b6000818152600560205260408120546001600160a01b031680610b335760405162461bcd60e51b8152600401610a2590613b99565b3330146114105760405162461bcd60e51b8152600401610a2590613c03565b6113b684848484612067565b60006001600160a01b0382166114445760405162461bcd60e51b8152600401610a2590613c6d565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b0316331461148a5760405162461bcd60e51b8152600401610a2590613619565b610e8260006120fa565b600160205260009081526040902080546114ad9061354d565b80601f01602080910402602001604051908101604052809291908181526020018280546114d99061354d565b80156115265780601f106114fb57610100808354040283529160200191611526565b820191906000526020600020905b81548152906001019060200180831161150957829003601f168201915b505050505081565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61155881611dbe565b506000600d55600b55565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61158d81611dbe565b50600d55565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6115bd81611dbe565b50600a55565b606060048054610b489061354d565b61100033838361214a565b6115e73383611beb565b6116035760405162461bcd60e51b8152600401610a2590613899565b6113b6848484846121ed565b6000818152600560205260409020546060906001600160a01b03166116465760405162461bcd60e51b8152600401610a2590613cb1565b600c61165183612220565b604051602001611662929190613d51565b6040516020818303038152906040529050919050565b6000546001600160a01b031633146116a25760405162461bcd60e51b8152600401610a2590613619565b6040517fcbed8b9c0000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675169063cbed8b9c9061170f9088908890889088908890600401613d69565b600060405180830381600087803b15801561172957600080fd5b505af115801561173d573d6000803e3d6000fd5b505050505050505050565b61ffff84166000908152600260205260408082209051611769908690613da4565b908152604080516020928190038301902067ffffffffffffffff8616600090815292529020549050806117ae5760405162461bcd60e51b8152600401610a2590613e0a565b8151602083012081146117d35760405162461bcd60e51b8152600401610a2590613e74565b61ffff851660009081526002602052604080822090516117f4908790613da4565b908152604080516020928190038301902067ffffffffffffffff871660009081529252902055610b1285858585612067565b60008281526009602052604090206001015461184181611dbe565b610d598383611e6a565b6000546001600160a01b031633146118755760405162461bcd60e51b8152600401610a2590613619565b61ffff83166000908152600160205260409020611893908383612b16565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab8383836040516118c793929190613b1e565b60405180910390a1505050565b6000546001600160a01b031633146118fe5760405162461bcd60e51b8152600401610a2590613619565b6001600160a01b0381166119245760405162461bcd60e51b8152600401610a2590613ede565b61192d816120fa565b50565b6040517ff5ecbdbc0000000000000000000000000000000000000000000000000000000081526060906001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675169063f5ecbdbc9061199e908890889030908890600401613eee565b60006040518083038186803b1580156119b657600080fd5b505afa1580156119ca573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119f29190810190613f84565b90505b949350505050565b6040517f66ad5c8a00000000000000000000000000000000000000000000000000000000815230906366ad5c8a90611a3f908790879087908790600401613fcf565b600060405180830381600087803b158015611a5957600080fd5b505af1925050508015611a6a575060015b6113b6578080519060200120600260008661ffff1661ffff16815260200190815260200160002084604051611a9f9190613da4565b90815260408051918290036020908101832067ffffffffffffffff87166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90611afb908690869086908690613fcf565b60405180910390a16113b6565b60006001600160e01b031982161580610b335750610b338261231e565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610b335750610b3382611b08565b600081815260076020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b98826113bc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611000828260405180602001604052806000815250612390565b6000818152600560205260408120546001600160a01b0316611c1f5760405162461bcd60e51b8152600401610a2590614063565b6000611c2a836113bc565b9050806001600160a01b0316846001600160a01b03161480611c7157506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b806119f55750836001600160a01b0316611c8a84610c88565b6001600160a01b031614949350505050565b826001600160a01b0316611caf826113bc565b6001600160a01b031614611cd55760405162461bcd60e51b8152600401610a25906140cd565b6001600160a01b038216611cfb5760405162461bcd60e51b8152600401610a2590614137565b611d06600082611b63565b6001600160a01b0383166000908152600660205260408120805460019290611d2f908490614147565b90915550506001600160a01b0382166000908152600660205260408120805460019290611d5d9084906137c8565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61192d81336123c3565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff166110005760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611e263390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16156110005760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600082611efa8584612443565b14949350505050565b611f0f878787876124b7565b60008585604051602001611f249291906138a9565b6040516020818303038152906040529050611f42878286868661251e565b6040517f7a1457480000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6751690637a14574890611fac908b90309060040161415e565b60206040518083038186803b158015611fc457600080fd5b505afa158015611fd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ffc9190614184565b90508660405161200c9190613da4565b60405180910390208861ffff168a6001600160a01b03167f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce154389856040516120549291906141a5565b60405180910390a4505050505050505050565b6000808280602001905181019061207e91906141c0565b60148201519193509150612093878284612689565b806001600160a01b0316866040516120ab9190613da4565b60405180910390208861ffff167f64e10c37f404d128982dce114f5d233c14c5c7f6d8db93099e3d99dacb9e27ba85896040516120e99291906141a5565b60405180910390a450505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316141561217c5760405162461bcd60e51b8152600401610a2590614230565b6001600160a01b0383811660008181526008602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906121e0908590612db9565b60405180910390a3505050565b6121f8848484611c9c565b61220484848484612693565b6113b65760405162461bcd60e51b8152600401610a259061429a565b6060816122445750506040805180820190915260018152600360fc1b602082015290565b8160005b811561226e578061225881613824565b91506122679050600a836142c0565b9150612248565b60008167ffffffffffffffff81111561228957612289612bcb565b6040519080825280601f01601f1916602001820160405280156122b3576020820181803683370190505b5090505b84156119f5576122c8600183614147565b91506122d5600a866142d4565b6122e09060306137c8565b60f81b8183815181106122f5576122f56142e8565b60200101906001600160f81b031916908160001a905350612317600a866142c0565b94506122b7565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061238157506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b335750610b338261279d565b61239a8383612804565b6123a76000848484612693565b610d595760405162461bcd60e51b8152600401610a259061429a565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff1661100057612401816001600160a01b031660146128e6565b61240c8360206128e6565b60405160200161241d9291906142fe565b60408051601f198184030181529082905262461bcd60e51b8252610a2591600401612e27565b600081815b84518110156124af576000858281518110612465576124656142e8565b6020026020010151905080831161248b576000838152602082905260409020925061249c565b600081815260208490526040902092505b50806124a781613824565b915050612448565b509392505050565b6124c033610e89565b6124dc5760405162461bcd60e51b8152600401610a25906143b8565b836001600160a01b03166124ef826113bc565b6001600160a01b0316146125155760405162461bcd60e51b8152600401610a2590614422565b6113b681612a7b565b61ffff85166000908152600160205260408120805461253c9061354d565b80601f01602080910402602001604051908101604052809291908181526020018280546125689061354d565b80156125b55780601f1061258a576101008083540402835291602001916125b5565b820191906000526020600020905b81548152906001019060200180831161259857829003601f168201915b505050505090508051600014156125de5760405162461bcd60e51b8152600401610a259061448c565b6040517fc58031000000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675169063c580310090349061264f908a9086908b908b908b908b9060040161449c565b6000604051808303818588803b15801561266857600080fd5b505af115801561267c573d6000803e3d6000fd5b5050505050505050505050565b610d598282611bd1565b60006001600160a01b0384163b1561279557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126d790339089908890889060040161450a565b602060405180830381600087803b1580156126f157600080fd5b505af1925050508015612721575060408051601f3d908101601f1916820190925261271e9181019061453d565b60015b61277b573d80801561274f576040519150601f19603f3d011682016040523d82523d6000602084013e612754565b606091505b5080516127735760405162461bcd60e51b8152600401610a259061429a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506119f5565b5060016119f5565b60006001600160e01b031982167f7bb0080b000000000000000000000000000000000000000000000000000000001480610b3357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610b33565b6001600160a01b03821661282a5760405162461bcd60e51b8152600401610a2590614590565b6000818152600560205260409020546001600160a01b03161561285f5760405162461bcd60e51b8152600401610a25906145d4565b6001600160a01b03821660009081526006602052604081208054600192906128889084906137c8565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606060006128f58360026145e4565b6129009060026137c8565b67ffffffffffffffff81111561291857612918612bcb565b6040519080825280601f01601f191660200182016040528015612942576020820181803683370190505b509050600360fc1b8160008151811061295d5761295d6142e8565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106129a8576129a86142e8565b60200101906001600160f81b031916908160001a90535060006129cc8460026145e4565b6129d79060016137c8565b90505b6001811115612a5c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612a1857612a186142e8565b1a60f81b828281518110612a2e57612a2e6142e8565b60200101906001600160f81b031916908160001a90535060049490941c93612a5581614603565b90506129da565b5083156112555760405162461bcd60e51b8152600401610a259061464c565b6000612a86826113bc565b9050612a93600083611b63565b6001600160a01b0381166000908152600660205260408120805460019290612abc908490614147565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b828054612b229061354d565b90600052602060002090601f016020900481019282612b445760008555612b8a565b82601f10612b5d5782800160ff19823516178555612b8a565b82800160010185558215612b8a579182015b82811115612b8a578235825591602001919060010190612b6f565b50612b96929150612b9a565b5090565b5b80821115612b965760008155600101612b9b565b61ffff81165b811461192d57600080fd5b8035610b3381612baf565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715612c0757612c07612bcb565b6040525050565b6000612c1960405190565b9050612c258282612be1565b919050565b600067ffffffffffffffff821115612c4457612c44612bcb565b601f19601f83011660200192915050565b82818337506000910152565b6000612c74612c6f84612c2a565b612c0e565b905082815260208101848484011115612c8f57612c8f600080fd5b6124af848285612c55565b600082601f830112612cae57612cae600080fd5b81356119f5848260208601612c61565b67ffffffffffffffff8116612bb5565b8035610b3381612cbe565b60008060008060808587031215612cf257612cf2600080fd5b6000612cfe8787612bc0565b945050602085013567ffffffffffffffff811115612d1e57612d1e600080fd5b612d2a87828801612c9a565b9350506040612d3b87828801612cce565b925050606085013567ffffffffffffffff811115612d5b57612d5b600080fd5b612d6787828801612c9a565b91505092959194509250565b6001600160e01b03198116612bb5565b8035610b3381612d73565b600060208284031215612da357612da3600080fd5b60006119f58484612d83565b8015155b82525050565b60208101610b338284612daf565b60005b83811015612de2578181015183820152602001612dca565b838111156113b65750506000910152565b6000612dfd825190565b808452602084019350612e14818560208601612dc7565b601f19601f8201165b9093019392505050565b602080825281016112558184612df3565b600060208284031215612e4d57612e4d600080fd5b60006119f58484612bc0565b80612bb5565b8035610b3381612e59565b600060208284031215612e7f57612e7f600080fd5b60006119f58484612e5f565b60006001600160a01b038216610b33565b612db381612e8b565b60208101610b338284612e9c565b612bb581612e8b565b8035610b3381612eb3565b60008060408385031215612edd57612edd600080fd5b6000612ee98585612ebc565b9250506020612efa85828601612e5f565b9150509250929050565b600080600060608486031215612f1c57612f1c600080fd5b6000612f288686612ebc565b9350506020612f3986828701612ebc565b9250506040612f4a86828701612e5f565b9150509250925092565b80612db3565b60208101610b338284612f54565b801515612bb5565b8035610b3381612f68565b600080600080600060a08688031215612f9657612f96600080fd5b6000612fa28888612bc0565b955050602086013567ffffffffffffffff811115612fc257612fc2600080fd5b612fce88828901612c9a565b9450506040612fdf88828901612e5f565b9350506060612ff088828901612f70565b925050608086013567ffffffffffffffff81111561301057613010600080fd5b61301c88828901612c9a565b9150509295509295909350565b604081016130378285612f54565b6112556020830184612f54565b6000806040838503121561305a5761305a600080fd5b60006130668585612e5f565b9250506020612efa85828601612ebc565b60008083601f84011261308c5761308c600080fd5b50813567ffffffffffffffff8111156130a7576130a7600080fd5b6020830191508360208202830111156130c2576130c2600080fd5b9250929050565b600080602083850312156130df576130df600080fd5b823567ffffffffffffffff8111156130f9576130f9600080fd5b61310585828601613077565b92509250509250929050565b60008083601f84011261312657613126600080fd5b50813567ffffffffffffffff81111561314157613141600080fd5b6020830191508360018202830111156130c2576130c2600080fd5b60008060006040848603121561317457613174600080fd5b60006131808686612bc0565b935050602084013567ffffffffffffffff8111156131a0576131a0600080fd5b6131ac86828701613111565b92509250509250925092565b600080600080600080600060e0888a0312156131d6576131d6600080fd5b60006131e28a8a612ebc565b97505060206131f38a828b01612bc0565b965050604088013567ffffffffffffffff81111561321357613213600080fd5b61321f8a828b01612c9a565b95505060606132308a828b01612e5f565b94505060806132418a828b01612ebc565b93505060a06132528a828b01612ebc565b92505060c088013567ffffffffffffffff81111561327257613272600080fd5b61327e8a828b01612c9a565b91505092959891949750929550565b600080602083850312156132a3576132a3600080fd5b823567ffffffffffffffff8111156132bd576132bd600080fd5b61310585828601613111565b6000806000606084860312156132e1576132e1600080fd5b60006132ed8686612bc0565b935050602084013567ffffffffffffffff81111561330d5761330d600080fd5b61331986828701612c9a565b9250506040612f4a86828701612cce565b60006020828403121561333f5761333f600080fd5b60006119f58484612ebc565b6000806040838503121561336157613361600080fd5b600061336d8585612ebc565b9250506020612efa85828601612f70565b6000610b3382612e8b565b6000610b338261337e565b612db381613389565b60208101610b338284613394565b600080600080608085870312156133c4576133c4600080fd5b60006133d08787612ebc565b94505060206133e187828801612ebc565b9350506040612d3b87828801612e5f565b60008060008060006080868803121561340d5761340d600080fd5b60006134198888612bc0565b955050602061342a88828901612bc0565b945050604061343b88828901612e5f565b935050606086013567ffffffffffffffff81111561345b5761345b600080fd5b61346788828901613111565b92509250509295509295909350565b6000806040838503121561348c5761348c600080fd5b60006130668585612ebc565b600080600080608085870312156134b1576134b1600080fd5b60006134bd8787612bc0565b94505060206134ce87828801612bc0565b93505060406134df87828801612ebc565b9250506060612d6787828801612e5f565b601e81526000602082017f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c65720000815291505b5060200190565b60208082528101610b33816134f0565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061356157607f821691505b6020821081141561357457613574613537565b50919050565b602681526000602082017f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f81527f6e74726163740000000000000000000000000000000000000000000000000000602082015291505b5060400190565b60208082528101610b338161357a565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613520565b60208082528101610b33816135e7565b61ffff8116612db3565b60208101610b338284613629565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291506135d0565b60208082528101610b3381613641565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f7200000000000000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b338161369a565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015291506135d0565b60208082528101610b3381613704565b600181526000602082017f310000000000000000000000000000000000000000000000000000000000000081529150613520565b60208082528101610b338161376e565b634e487b7160e01b600052601160045260246000fd5b600082198211156137db576137db6137b2565b500190565b600181526000602082017f320000000000000000000000000000000000000000000000000000000000000081529150613520565b60208082528101610b33816137e0565b6000600019821415613838576138386137b2565b5060010190565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f81527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015291506135d0565b60208082528101610b338161383f565b604080825281016138ba8185612df3565b90506112556020830184612f54565b60a081016138d78288613629565b6138e46020830187612e9c565b81810360408301526138f68186612df3565b90506139056060830185612daf565b81810360808301526139178184612df3565b979650505050505050565b8051610b3381612e59565b6000806040838503121561394357613943600080fd5b600061394f8585613922565b9250506020612efa85828601613922565b602f81526000602082017f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636581527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381613960565b600181526000602082017f330000000000000000000000000000000000000000000000000000000000000081529150613520565b60208082528101610b33816139ca565b6000610b338260601b90565b6000610b3382613a0e565b612db3613a3182612e8b565b613a1a565b6000613a428284613a25565b50601401919050565b600181526000602082017f340000000000000000000000000000000000000000000000000000000000000081529150613520565b60208082528101610b3381613a4b565b600081610b33565b601b81526000602082017f4661696c656420746f2073656e6420746f2074726561737572792e000000000081529150613520565b60208082528101610b3381613a97565b6000613ae8838584612c55565b50500190565b60006119f5828486613adb565b8183526000602084019350613b11838584612c55565b601f19601f840116612e1d565b60408101613b2c8286613629565b81810360208301526119f2818486613afb565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381613b3f565b602681526000602082017f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d75737420626581527f204c7a4170700000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381613ba9565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a6581527f726f206164647265737300000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381613c13565b600281526000602082017f2d3100000000000000000000000000000000000000000000000000000000000081529150613520565b60208082528101610b3381613c7d565b60008154613cce8161354d565b600182168015613ce55760018114613cf657613d26565b60ff19831686528186019350613d26565b60008581526020902060005b83811015613d1e57815488820152600190910190602001613d02565b838801955050505b50505092915050565b6000613d39825190565b613d47818560208601612dc7565b9290920192915050565b6000613d5d8285613cc1565b91506119f58284613d2f565b60808101613d778288613629565b613d846020830187613629565b613d916040830186612f54565b8181036060830152613917818486613afb565b60006112558284613d2f565b602381526000602082017f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737381527f6167650000000000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381613db0565b602181526000602082017f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f6181527f6400000000000000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381613e1a565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f6464726573730000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381613e84565b60808101613efc8287613629565b613f096020830186613629565b613f166040830185612e9c565b613f236060830184612f54565b95945050505050565b6000613f3a612c6f84612c2a565b905082815260208101848484011115613f5557613f55600080fd5b6124af848285612dc7565b600082601f830112613f7457613f74600080fd5b81516119f5848260208601613f2c565b600060208284031215613f9957613f99600080fd5b815167ffffffffffffffff811115613fb357613fb3600080fd5b6119f584828501613f60565b67ffffffffffffffff8116612db3565b60808101613fdd8287613629565b8181036020830152613fef8186612df3565b9050613ffe6040830185613fbf565b81810360608301526140108184612df3565b9695505050505050565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291506135d0565b60208082528101610b338161401a565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081527f6f776e6572000000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b3381614073565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f7265737300000000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b33816140dd565b600082821015614159576141596137b2565b500390565b6040810161416c8285613629565b6112556020830184612e9c565b8051610b3381612cbe565b60006020828403121561419957614199600080fd5b60006119f58484614179565b604081016141b38285612f54565b6112556020830184613fbf565b600080604083850312156141d6576141d6600080fd5b825167ffffffffffffffff8111156141f0576141f0600080fd5b61394f85828601613f60565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613520565b60208082528101610b33816141fc565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015291506135d0565b60208082528101610b3381614240565b634e487b7160e01b600052601260045260246000fd5b6000826142cf576142cf6142aa565b500490565b6000826142e3576142e36142aa565b500690565b634e487b7160e01b600052603260045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260170160006143308285613d2f565b7f206973206d697373696e6720726f6c65200000000000000000000000000000008152915060118201613d5d565b602e81526000602082017f4f4e46543732313a2073656e642063616c6c6572206973206e6f74206f776e6581527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015291506135d0565b60208082528101610b338161435e565b602281526000602082017f4f4e46543732313a2073656e642066726f6d20696e636f7272656374206f776e81527f6572000000000000000000000000000000000000000000000000000000000000602082015291506135d0565b60208082528101610b33816143c8565b603081526000602082017f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742081527f61207472757374656420736f7572636500000000000000000000000000000000602082015291506135d0565b60208082528101610b3381614432565b60c081016144aa8289613629565b81810360208301526144bc8188612df3565b905081810360408301526144d08187612df3565b90506144df6060830186612e9c565b6144ec6080830185612e9c565b81810360a08301526144fe8184612df3565b98975050505050505050565b608081016145188287612e9c565b6145256020830186612e9c565b613ffe6040830185612f54565b8051610b3381612d73565b60006020828403121561455257614552600080fd5b60006119f58484614532565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613520565b60208082528101610b338161455e565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150613520565b60208082528101610b33816145a0565b60008160001904831182151516156145fe576145fe6137b2565b500290565b600081614612576146126137b2565b506000190190565b60208082527f537472696e67733a20686578206c656e67746820696e73756666696369656e7491019081526000613520565b60208082528101610b338161461a56fea2646970667358221220e8fcd27146523fb265cb736423c4c23956daa61f4cc36f473b25dba5f0258a0164736f6c63430008090033

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

00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675

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

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675


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

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.