ETH Price: $3,567.13 (+8.18%)

Token

Pastel World (PASTEL)
 

Overview

Max Total Supply

1,647 PASTEL

Holders

510

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
2 PASTEL
0x563dcc40602e11a5034ee61c003f5a5ce9252bdf
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Pastel World is a collection of 8,888 legendary Pastel Prophet NFTs— one-of-a-kind digital collectibles residing on the Ethereum blockchain… for now.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ONFT

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 30000 runs

Other Settings:
default evmVersion, MIT license
File 1 of 21 : ONFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8;

import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

import "./ONFT721.sol";

contract ONFT is ONFT721, Pausable, ReentrancyGuard {
    using Strings for uint;

    uint public currentMintId;
    uint public immutable maximumSupply;
    bool public reveal;
    string public contractURI;
    address public feeCollectorAddress;
    mapping(uint => uint16) public chainId;

    modifier onlyMinter() {
        require(hasRole(MINTER_ROLE, msg.sender), "Must have minter role.");
        _;
    }

    /// @notice Constructor for the ONFT
    /// @param _name the name of the token
    /// @param _symbol the token symbol
    /// @param _baseTokenURI the base URI for computing the tokenURI
    /// @param _layerZeroEndpoint handles message transmission across chains
    /// @param _feeCollectorAddress the address fee collector
    /// @param _maxSupply of the the nft
    constructor(string memory _name, string memory _symbol, string memory _baseTokenURI, address _layerZeroEndpoint, address _feeCollectorAddress, uint _maxSupply) ONFT721(_name, _symbol, _layerZeroEndpoint) {
        setBaseURI(_baseTokenURI);
        contractURI = _baseTokenURI;
        feeCollectorAddress = _feeCollectorAddress;
        currentMintId = 0;
        maximumSupply = _maxSupply;
        reveal = false;
    }

    function mint(address to) external onlyMinter {
        require(currentMintId < maximumSupply, "Max supply reached.");
        _mint(to, currentMintId++);
    }

    function mintHonorary(address to, uint tokenId) external onlyMinter {
        _mint(to, tokenId);
    }

    function _beforeSend(address, uint16, bytes memory, uint _tokenId) internal override whenNotPaused {
        _burn(_tokenId);
    }

    function pauseSendTokens(bool pause) external onlyOwner {
        pause ? _pause() : _unpause();
    }

    function activateReveal() external onlyOwner {
        reveal = true;
    }

    function tokenURI(uint tokenId) public view override returns (string memory) {
        if (reveal) {
            return string(abi.encodePacked(_baseURI(), tokenId.toString()));
        }
        return _baseURI();
    }

    function tokenChainId(uint tokenId) public view returns (uint16) {
        return chainId[tokenId];
    }

    function setFeeCollector(address _feeCollectorAddress) external onlyOwner {
        feeCollectorAddress = _feeCollectorAddress;
    }

    function setContractURI(string memory _contractURI) public onlyOwner {
        contractURI = _contractURI;
    }

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

    function maxSupply() public view virtual returns (uint) {
        return maximumSupply;
    }

    function setChainId(uint _tokenId, uint16 _chainId) public onlyOwner {
        _setChainId(_tokenId, _chainId);
    }

    //tokenIds and chainIds must be in matching order
    function setChainIds(uint[] memory _tokenIds, uint16[] memory _chainIds) public onlyOwner {
        for (uint i = 0; i < _tokenIds.length; i++) {
            _setChainId(_tokenIds[i], _chainIds[i]);
        }
    }

    function _setChainId(uint _tokenId, uint16 _chainId) internal {
        chainId[_tokenId] = _chainId;
    }
}

File 2 of 21 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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, _msgSender());
        _;
    }

    /**
     * @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 `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 21 : 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 4 of 21 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 21 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 6 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 9 of 21 : 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 10 of 21 : 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 11 of 21 : 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 12 of 21 : 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 13 of 21 : 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 14 of 21 : 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 15 of 21 : LzApp.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

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

    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    mapping(uint16 => bytes) internal trustedRemoteLookup;

    event SetTrustedRemote(uint16 _srcChainId, bytes _srcAddress);

    modifier onlyOwner() {
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Must have admin role.");
        _;
    }

    constructor(address _endpoint) {
        lzEndpoint = ILayerZeroEndpoint(_endpoint);
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    function lzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) external override {
        // lzReceive must be called by the endpoint for security
        require(_msgSender() == address(lzEndpoint));
        // if will still block the message pathway from (srcChainId, srcAddress). should not receive message from untrusted remote.
        require(_srcAddress.length == trustedRemoteLookup[_srcChainId].length && keccak256(_srcAddress) == keccak256(trustedRemoteLookup[_srcChainId]), "LzReceiver: 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 _adapterParam) internal {
        require(trustedRemoteLookup[_dstChainId].length != 0, "LzSend: destination chain is not a trusted source.");
        lzEndpoint.send{value: msg.value}(_dstChainId, trustedRemoteLookup[_dstChainId], _payload, _refundAddress, _zroPaymentAddress, _adapterParam);
    }

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

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

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

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

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

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

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

    //--------------------------- VIEW FUNCTION ----------------------------------------
    // interacting with the LayerZero Endpoint and remote contracts

    function getTrustedRemote(uint16 _chainId) external view returns (bytes memory) {
        return trustedRemoteLookup[_chainId];
    }

    function getLzEndpoint() external view returns (address) {
        return address(lzEndpoint);
    }
}

File 16 of 21 : 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(uint => 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), "LzReceiver: caller must be Bridge.");
        _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 calldata _payload) external payable virtual {
        // assert there is message to retry
        bytes32 payloadHash = failedMessages[_srcChainId][_srcAddress][_nonce];
        require(payloadHash != bytes32(0), "LzReceiver: no stored message");
        require(keccak256(_payload) == payloadHash, "LzReceiver: invalid payload");
        // clear the stored message
        failedMessages[_srcChainId][_srcAddress][_nonce] = bytes32(0);
        // execute the message. revert if it fails again
        this.nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }
}

File 17 of 21 : ONFT721.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "./interfaces/IONFT721.sol";
import "./NonblockingLzApp.sol";

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

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

    function estimateSendFee(
        uint16 _dstChainId,
        bytes memory _toAddress,
        uint _tokenId,
        bool _payInZRO,
        bytes calldata _adapterParams
    ) external view virtual returns (uint nativeFee, uint _zroFee) {
        bytes memory payload = abi.encode(_toAddress, _tokenId);
        return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _payInZRO, _adapterParams);
    }

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

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

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

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

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

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

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

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

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

        _afterReceive(_srcChainId, localToAddress, tokenId);

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

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

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

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

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

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

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

File 18 of 21 : ILayerZeroEndpoint.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;

import "./ILayerZeroUserApplicationConfig.sol";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 19 of 21 : 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 20 of 21 : ILayerZeroUserApplicationConfig.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;

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

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

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

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

File 21 of 21 : IONFT721.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

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

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

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

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

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 30000
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseTokenURI","type":"string"},{"internalType":"address","name":"_layerZeroEndpoint","type":"address"},{"internalType":"address","name":"_feeCollectorAddress","type":"address"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"MessageFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"address","name":"_toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"ReceiveFromChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activateReveal","outputs":[],"stateMutability":"nonpayable","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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"chainId","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentMintId","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":"_payInZRO","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":"uint256","name":"","type":"uint256"}],"name":"failedMessages","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollectorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"","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":[],"name":"getLzEndpoint","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"uint16","name":"_chainId","type":"uint16"}],"name":"getTrustedRemote","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"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":[{"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":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maximumSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintHonorary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"nonblockingLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"pause","type":"bool"}],"name":"pauseSendTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"reveal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParam","type":"bytes"}],"name":"send","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParam","type":"bytes"}],"name":"sendFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint16","name":"_chainId","type":"uint16"}],"name":"setChainId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint16[]","name":"_chainIds","type":"uint16[]"}],"name":"setChainIds","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":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeCollectorAddress","type":"address"}],"name":"setFeeCollector","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":"tokenChainId","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b506040516200596c3803806200596c8339810160408190526200003491620003ba565b6001600160601b0319606084901b16608052858584828282806200005a600033620000fc565b505081516200007190600390602085019062000244565b5080516200008790600490602084019062000244565b5050600a805460ff1916905550506001600b5550620000a89050846200010c565b8351620000bd90600e90602087019062000244565b50600f80546001600160a01b0319166001600160a01b0393909316929092179091556000600c5560a0525050600d805460ff1916905550620004c89050565b620001088282620001a4565b5050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166200018f5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e0000000000000000000000604482015260640160405180910390fd5b80516200010890600990602084019062000244565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000108576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002003390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620002529062000475565b90600052602060002090601f016020900481019282620002765760008555620002c1565b82601f106200029157805160ff1916838001178555620002c1565b82800160010185558215620002c1579182015b82811115620002c1578251825591602001919060010190620002a4565b50620002cf929150620002d3565b5090565b5b80821115620002cf5760008155600101620002d4565b80516001600160a01b03811681146200030257600080fd5b919050565b600082601f83011262000318578081fd5b81516001600160401b0380821115620003355762000335620004b2565b604051601f8301601f19908116603f01168101908282118183101715620003605762000360620004b2565b816040528381526020925086838588010111156200037c578485fd5b8491505b838210156200039f578582018301518183018401529082019062000380565b83821115620003b057848385830101525b9695505050505050565b60008060008060008060c08789031215620003d3578182fd5b86516001600160401b0380821115620003ea578384fd5b620003f88a838b0162000307565b975060208901519150808211156200040e578384fd5b6200041c8a838b0162000307565b9650604089015191508082111562000432578384fd5b506200044189828a0162000307565b9450506200045260608801620002ea565b92506200046260808801620002ea565b915060a087015190509295509295509295565b600181811c908216806200048a57607f821691505b60208210811415620004ac57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05161542e6200053e600039600081816103d8015281816109dd015261196a015260008181610a1001528181610b8801528181610e4b01528181611189015281816112d7015281816115d601528181612058015281816125e3015281816130a10152613d3d015261542e6000f3fe60806040526004361061036a5760003560e01c806391d14854116101c6578063d5391393116100f7578063eb8d72b711610095578063f108e2251161006f578063f108e22514610b03578063f187892214610b30578063f5a8622a14610b50578063f5ecbdbc14610b6557600080fd5b8063eb8d72b714610a9f578063eed33cef14610abf578063f090ff3514610ad257600080fd5b8063d5abeb01116100d1578063d5abeb01146109ce578063dacbcbe214610a01578063e8a3d48514610a34578063e985e9c514610a4957600080fd5b8063d539139314610965578063d547741f14610999578063d547cfb7146109b957600080fd5b8063a475b5dd11610164578063c674f5691161013e578063c674f569146108f2578063c87b56dd14610912578063cbed8b9c14610932578063d1deba1f1461095257600080fd5b8063a475b5dd14610898578063b2dcc6a7146108b2578063b88d4fde146108d257600080fd5b80639ef08c9e116101a05780639ef08c9e14610823578063a217fddf14610843578063a22cb46514610858578063a42dce801461087857600080fd5b806391d148541461079d578063938e3d7b146107ee57806395d89b411461080e57600080fd5b80633d8b38f6116102a05780636352211e1161023e5780636a627842116102185780636a627842146106f857806370a082311461071857806373b6abd5146107385780638ee749121461074e57600080fd5b80636352211e1461069857806366ad5c8a146106b857806369b41f95146106d857600080fd5b806342d65a8d1161027a57806342d65a8d1461062d578063519056361461064d57806355f804b3146106605780635c975abb1461068057600080fd5b80633d8b38f6146105a95780634049ddd2146105c957806342842e0e1461060d57600080fd5b806310ddb1371161030d578063248a9ca3116102e7578063248a9ca3146105045780632a205e3d146105345780632f2ff15d1461056957806336568abe1461058957600080fd5b806310ddb137146104af57806318160ddd146104cf57806323b872dd146104e457600080fd5b806306fdde031161034957806306fdde031461040857806307e0db171461042a578063081812fc1461044a578063095ea7b31461048f57600080fd5b80621d35671461036f57806301ffc9a7146103915780630480e58b146103c6575b600080fd5b34801561037b57600080fd5b5061038f61038a366004614a68565b610b85565b005b34801561039d57600080fd5b506103b16103ac3660046146bb565b610cad565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103fa7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016103bd565b34801561041457600080fd5b5061041d610d09565b6040516103bd9190614e3b565b34801561043657600080fd5b5061038f6104453660046147b1565b610d9b565b34801561045657600080fd5b5061046a61046536600461467f565b610ec0565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103bd565b34801561049b57600080fd5b5061038f6104aa366004614580565b610f80565b3480156104bb57600080fd5b5061038f6104ca3660046147b1565b6110d9565b3480156104db57600080fd5b50600c546103fa565b3480156104f057600080fd5b5061038f6104ff3660046143db565b6111cd565b34801561051057600080fd5b506103fa61051f36600461467f565b60009081526020819052604090206001015490565b34801561054057600080fd5b5061055461054f366004614945565b611254565b604080519283526020830191909152016103bd565b34801561057557600080fd5b5061038f610584366004614697565b611375565b34801561059557600080fd5b5061038f6105a4366004614697565b61139b565b3480156105b557600080fd5b506103b16105c43660046147e9565b611434565b3480156105d557600080fd5b506105fa6105e436600461467f565b60106020526000908152604090205461ffff1681565b60405161ffff90911681526020016103bd565b34801561061957600080fd5b5061038f6106283660046143db565b611500565b34801561063957600080fd5b5061038f6106483660046147e9565b61151b565b61038f61065b3660046144b9565b611646565b34801561066c57600080fd5b5061038f61067b36600461476b565b611699565b34801561068c57600080fd5b50600a5460ff166103b1565b3480156106a457600080fd5b5061046a6106b336600461467f565b61172a565b3480156106c457600080fd5b5061038f6106d3366004614a68565b6117c2565b3480156106e457600080fd5b5061041d6106f33660046147b1565b611843565b34801561070457600080fd5b5061038f610713366004614387565b6118ea565b34801561072457600080fd5b506103fa610733366004614387565b6119fb565b34801561074457600080fd5b506103fa600c5481565b34801561075a57600080fd5b506103fa6107693660046148ee565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b3480156107a957600080fd5b506103b16107b8366004614697565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156107fa57600080fd5b5061038f61080936600461476b565b611aaf565b34801561081a57600080fd5b5061041d611b40565b34801561082f57600080fd5b5061038f61083e366004614b94565b611b4f565b34801561084f57600080fd5b506103fa600081565b34801561086457600080fd5b5061038f610873366004614485565b611c0b565b34801561088457600080fd5b5061038f610893366004614387565b611c16565b3480156108a457600080fd5b50600d546103b19060ff1681565b3480156108be57600080fd5b5061038f6108cd366004614580565b611cdb565b3480156108de57600080fd5b5061038f6108ed36600461441b565b611d63565b3480156108fe57600080fd5b5061038f61090d3660046145ab565b611deb565b34801561091e57600080fd5b5061041d61092d36600461467f565b611f4f565b34801561093e57600080fd5b5061038f61094d366004614b34565b611f9d565b61038f6109603660046149d9565b6120c3565b34801561097157600080fd5b506103fa7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156109a557600080fd5b5061038f6109b4366004614697565b612284565b3480156109c557600080fd5b5061041d6122aa565b3480156109da57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103fa565b348015610a0d57600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061046a565b348015610a4057600080fd5b5061041d612338565b348015610a5557600080fd5b506103b1610a643660046143a3565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610aab57600080fd5b5061038f610aba3660046147e9565b612345565b61038f610acd36600461483c565b612422565b348015610ade57600080fd5b506105fa610aed36600461467f565b60009081526010602052604090205461ffff1690565b348015610b0f57600080fd5b50600f5461046a9073ffffffffffffffffffffffffffffffffffffffff1681565b348015610b3c57600080fd5b5061038f610b4b366004614665565b612474565b348015610b5c57600080fd5b5061038f612507565b348015610b7157600080fd5b5061041d610b80366004614ae4565b6125b2565b337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1614610bc757600080fd5b61ffff841660009081526001602052604090208054610be590615254565b90508351148015610c24575061ffff8416600090815260016020526040908190209051610c129190614cb5565b60405180910390208380519060200120145b610c9b5760405162461bcd60e51b815260206004820152602b60248201527f4c7a52656365697665723a20696e76616c696420736f757263652073656e646960448201527f6e6720636f6e747261637400000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610ca784848484612746565b50505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610d035750610d0382612851565b92915050565b606060038054610d1890615254565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4490615254565b8015610d915780601f10610d6657610100808354040283529160200191610d91565b820191906000526020600020905b815481529060010190602001808311610d7457829003601f168201915b5050505050905090565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16610e195760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b6040517f07e0db1700000000000000000000000000000000000000000000000000000000815261ffff821660048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906307e0db17906024015b600060405180830381600087803b158015610ea557600080fd5b505af1158015610eb9573d6000803e3d6000fd5b5050505050565b60008181526005602052604081205473ffffffffffffffffffffffffffffffffffffffff16610f575760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610c92565b5060009081526007602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610f8b8261172a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561102f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c92565b3373ffffffffffffffffffffffffffffffffffffffff8216148061105857506110588133610a64565b6110ca5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c92565b6110d483836128f3565b505050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166111575760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b6040517f10ddb13700000000000000000000000000000000000000000000000000000000815261ffff821660048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906310ddb13790602401610e8b565b6111d73382612993565b6112495760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c92565b6110d4838383612ae5565b6000806000878760405160200161126c929190614e4e565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f40a7bb10000000000000000000000000000000000000000000000000000000008252915073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906340a7bb1090611316908c90309086908c908c908c90600401614e70565b604080518083038186803b15801561132d57600080fd5b505afa158015611341573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113659190614bb8565b9250925050965096945050505050565b6000828152602081905260409020600101546113918133612d18565b6110d48383612dce565b73ffffffffffffffffffffffffffffffffffffffff811633146114265760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610c92565b6114308282612ebe565b5050565b61ffff83166000908152600160205260408120805482919061145590615254565b80601f016020809104026020016040519081016040528092919081815260200182805461148190615254565b80156114ce5780601f106114a3576101008083540402835291602001916114ce565b820191906000526020600020905b8154815290600101906020018083116114b157829003601f168201915b5050505050905083836040516114e5929190614c89565b60405180910390208180519060200120149150509392505050565b6110d483838360405180602001604052806000815250611d63565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166115995760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b6040517f42d65a8d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906342d65a8d9061160f90869086908690600401614ed1565b600060405180830381600087803b15801561162957600080fd5b505af115801561163d573d6000803e3d6000fd5b50505050505050565b61168e898989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a91508990508888612f75565b505050505050505050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166117175760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b80516114309060099060208401906140ed565b60008181526005602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610d035760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c92565b3330146118375760405162461bcd60e51b815260206004820152602260248201527f4c7a52656365697665723a2063616c6c6572206d75737420626520427269646760448201527f652e0000000000000000000000000000000000000000000000000000000000006064820152608401610c92565b610ca7848484846131ac565b61ffff8116600090815260016020526040902080546060919061186590615254565b80601f016020809104026020016040519081016040528092919081815260200182805461189190615254565b80156118de5780601f106118b3576101008083540402835291602001916118de565b820191906000526020600020905b8154815290600101906020018083116118c157829003601f168201915b50505050509050919050565b3360009081527f0781d7cac9c378efa22a7481e4d4d29704a680ddf504b3bc50b517700ee11e6c602052604090205460ff166119685760405162461bcd60e51b815260206004820152601660248201527f4d7573742068617665206d696e74657220726f6c652e000000000000000000006044820152606401610c92565b7f0000000000000000000000000000000000000000000000000000000000000000600c54106119d95760405162461bcd60e51b815260206004820152601360248201527f4d617820737570706c7920726561636865642e000000000000000000000000006044820152606401610c92565b600c80546119f89183919060006119ef836152a8565b9190505561324b565b50565b600073ffffffffffffffffffffffffffffffffffffffff8216611a865760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c92565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205490565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611b2d5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b805161143090600e9060208401906140ed565b606060048054610d1890615254565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611bcd5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b600082815260106020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff83161790555050565b6114303383836133d9565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611c945760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b600f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3360009081527f0781d7cac9c378efa22a7481e4d4d29704a680ddf504b3bc50b517700ee11e6c602052604090205460ff16611d595760405162461bcd60e51b815260206004820152601660248201527f4d7573742068617665206d696e74657220726f6c652e000000000000000000006044820152606401610c92565b611430828261324b565b611d6d3383612993565b611ddf5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c92565b610ca7848484846134ed565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611e695760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b60005b82518110156110d457611f3d838281518110611eb1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151838381518110611ef2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151600091825260106020526040909120805461ffff9092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000909216919091179055565b80611f47816152a8565b915050611e6c565b600d5460609060ff1615611f9557611f65613576565b611f6e83613585565b604051602001611f7f929190614d42565b6040516020818303038152906040529050919050565b610d03613576565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff1661201b5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b6040517fcbed8b9c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c90612095908890889088908890889060040161508c565b600060405180830381600087803b1580156120af57600080fd5b505af115801561168e573d6000803e3d6000fd5b61ffff851660009081526002602052604080822090516120e4908790614c99565b908152604080516020928190038301902067ffffffffffffffff8716600090815292529020549050806121595760405162461bcd60e51b815260206004820152601d60248201527f4c7a52656365697665723a206e6f2073746f726564206d6573736167650000006044820152606401610c92565b80838360405161216a929190614c89565b6040518091039020146121bf5760405162461bcd60e51b815260206004820152601b60248201527f4c7a52656365697665723a20696e76616c6964207061796c6f616400000000006044820152606401610c92565b61ffff861660009081526002602052604080822090516121e0908890614c99565b90815260408051918290036020908101832067ffffffffffffffff89166000908152915220919091557f66ad5c8a00000000000000000000000000000000000000000000000000000000815230906366ad5c8a9061224a9089908990899089908990600401614eef565b600060405180830381600087803b15801561226457600080fd5b505af1158015612278573d6000803e3d6000fd5b50505050505050505050565b6000828152602081905260409020600101546122a08133612d18565b6110d48383612ebe565b600980546122b790615254565b80601f01602080910402602001604051908101604052809291908181526020018280546122e390615254565b80156123305780601f1061230557610100808354040283529160200191612330565b820191906000526020600020905b81548152906001019060200180831161231357829003601f168201915b505050505081565b600e80546122b790615254565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166123c35760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b61ffff831660009081526001602052604090206123e1908383614171565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab83838360405161241593929190614ed1565b60405180910390a1505050565b61246a338989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a91508990508888612f75565b5050505050505050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166124f25760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b806124ff576119f8613705565b6119f86137cc565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166125855760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b600d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6040517f096568f60000000000000000000000000000000000000000000000000000000081523060048201526060907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063f5ecbdbc90829063096568f69060240160206040518083038186803b15801561264257600080fd5b505afa158015612656573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061267a91906147cd565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815261ffff918216600482015290871660248201523060448201526064810185905260840160006040518083038186803b1580156126e157600080fd5b505afa1580156126f5573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261273b91908101906146f3565b90505b949350505050565b6040517f66ad5c8a00000000000000000000000000000000000000000000000000000000815230906366ad5c8a90612788908790879087908790600401614f3b565b600060405180830381600087803b1580156127a257600080fd5b505af19250505080156127b3575060015b610ca7578080519060200120600260008661ffff1661ffff168152602001908152602001600020846040516127e89190614c99565b90815260408051918290036020908101832067ffffffffffffffff87166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90612844908690869086908690614f3b565b60405180910390a1610ca7565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806128e457507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610d035750610d0382613872565b600081815260076020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061294d8261172a565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526005602052604081205473ffffffffffffffffffffffffffffffffffffffff16612a2a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610c92565b6000612a358361172a565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612aa457508373ffffffffffffffffffffffffffffffffffffffff16612a8c84610ec0565b73ffffffffffffffffffffffffffffffffffffffff16145b8061273e575073ffffffffffffffffffffffffffffffffffffffff80821660009081526008602090815260408083209388168352929052205460ff1661273e565b8273ffffffffffffffffffffffffffffffffffffffff16612b058261172a565b73ffffffffffffffffffffffffffffffffffffffff1614612b8e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610c92565b73ffffffffffffffffffffffffffffffffffffffff8216612c165760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c92565b612c216000826128f3565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600660205260408120805460019290612c579084906151dc565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600660205260408120805460019290612c92908490615173565b909155505060008181526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661143057612d6e8173ffffffffffffffffffffffffffffffffffffffff166014613909565b612d79836020613909565b604051602001612d8a929190614d71565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905262461bcd60e51b8252610c9291600401614e3b565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166114305760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055612e603390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16156114305760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b612f7f3386612993565b612ff15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c92565b612ffd88888888613bfc565b60008686604051602001613012929190614e4e565b60405160208183030381529060405290506130668882878787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613c5892505050565b6040517f7a14574800000000000000000000000000000000000000000000000000000000815261ffff891660048201523060248201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690637a1457489060440160206040518083038186803b1580156130f857600080fd5b505afa15801561310c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131309190614bdb565b9050876040516131409190614c99565b6040805191829003822089835267ffffffffffffffff841660208401529161ffff8c169173ffffffffffffffffffffffffffffffffffffffff8e16917f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce1543910160405180910390a4612278565b600080828060200190518101906131c39190614726565b601482015191935091506131d8878284613d96565b6040805161ffff8916815273ffffffffffffffffffffffffffffffffffffffff8316602082015290810183905267ffffffffffffffff861660608201527fd4d39d20f72eabd06c301e516d54653dfc9116de62c1d54bf1cb48cf3b42a7db9060800160405180910390a150505050505050565b73ffffffffffffffffffffffffffffffffffffffff82166132ae5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c92565b60008181526005602052604090205473ffffffffffffffffffffffffffffffffffffffff16156133205760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c92565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600660205260408120805460019290613356908490615173565b909155505060008181526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156134555760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c92565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526008602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6134f8848484612ae5565b61350484848484613da0565b610ca75760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c92565b606060098054610d1890615254565b6060816135c557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156135ef57806135d9816152a8565b91506135e89050600a8361518b565b91506135c9565b60008167ffffffffffffffff811115613631577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561365b576020820181803683370190505b5090505b841561273e576136706001836151dc565b915061367d600a866152e1565b613688906030615173565b60f81b8183815181106136c4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506136fe600a8661518b565b945061365f565b600a5460ff166137575760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610c92565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600a5460ff161561381f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610c92565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586137a23390565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610d0357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610d03565b6060600061391883600261519f565b613923906002615173565b67ffffffffffffffff811115613962577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561398c576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106139ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613a74577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000613ab084600261519f565b613abb906001615173565b90505b6001811115613ba6577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613b23577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110613b60577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93613b9f8161521f565b9050613abe565b508315613bf55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c92565b9392505050565b600a5460ff1615613c4f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610c92565b610ca781613f82565b61ffff851660009081526001602052604090208054613c7690615254565b15159050613cec5760405162461bcd60e51b815260206004820152603260248201527f4c7a53656e643a2064657374696e6174696f6e20636861696e206973206e6f7460448201527f2061207472757374656420736f757263652e00000000000000000000000000006064820152608401610c92565b61ffff85166000908152600160205260409081902090517fc580310000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169163c5803100913491613d7d918a91908a908a908a908a90600401614f85565b6000604051808303818588803b15801561226457600080fd5b6110d4828261404f565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613f7a576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613e17903390899088908890600401614df2565b602060405180830381600087803b158015613e3157600080fd5b505af1925050508015613e7f575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613e7c918101906146d7565b60015b613f2f573d808015613ead576040519150601f19603f3d011682016040523d82523d6000602084013e613eb2565b606091505b508051613f275760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c92565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061273e565b50600161273e565b6000613f8d8261172a565b9050613f9a6000836128f3565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660205260408120805460019290613fd09084906151dc565b909155505060008281526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b61143082826040518060200160405280600081525061406e838361324b565b61407b6000848484613da0565b6110d45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c92565b8280546140f990615254565b90600052602060002090601f01602090048101928261411b5760008555614161565b82601f1061413457805160ff1916838001178555614161565b82800160010185558215614161579182015b82811115614161578251825591602001919060010190614146565b5061416d929150614203565b5090565b82805461417d90615254565b90600052602060002090601f01602090048101928261419f5760008555614161565b82601f106141d6578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555614161565b82800160010185558215614161579182015b828111156141615782358255916020019190600101906141e8565b5b8082111561416d5760008155600101614204565b600061422b6142268461512d565b6150ba565b905082815283838301111561423f57600080fd5b828260208301376000602084830101529392505050565b600082601f830112614266578081fd5b8135602061427661422683615109565b80838252828201915082860187848660051b8901011115614295578586fd5b855b858110156142bc5781356142aa816153d2565b84529284019290840190600101614297565b5090979650505050505050565b803580151581146142d957600080fd5b919050565b60008083601f8401126142ef578182fd5b50813567ffffffffffffffff811115614306578182fd5b60208301915083602082850101111561431e57600080fd5b9250929050565b600082601f830112614335578081fd5b613bf583833560208501614218565b600082601f830112614354578081fd5b81516143626142268261512d565b818152846020838601011115614376578283fd5b61273e8260208301602087016151f3565b600060208284031215614398578081fd5b8135613bf581615382565b600080604083850312156143b5578081fd5b82356143c081615382565b915060208301356143d081615382565b809150509250929050565b6000806000606084860312156143ef578081fd5b83356143fa81615382565b9250602084013561440a81615382565b929592945050506040919091013590565b60008060008060808587031215614430578081fd5b843561443b81615382565b9350602085013561444b81615382565b925060408501359150606085013567ffffffffffffffff81111561446d578182fd5b61447987828801614325565b91505092959194509250565b60008060408385031215614497578182fd5b82356144a281615382565b91506144b0602084016142c9565b90509250929050565b600080600080600080600080600060e08a8c0312156144d6578687fd5b89356144e181615382565b985060208a01356144f1816153d2565b975060408a013567ffffffffffffffff8082111561450d578889fd5b6145198d838e016142de565b909950975060608c0135965060808c0135915061453582615382565b90945060a08b01359061454782615382565b90935060c08b0135908082111561455c578384fd5b506145698c828d016142de565b915080935050809150509295985092959850929598565b60008060408385031215614592578182fd5b823561459d81615382565b946020939093013593505050565b600080604083850312156145bd578182fd5b823567ffffffffffffffff808211156145d4578384fd5b818501915085601f8301126145e7578384fd5b813560206145f761422683615109565b8083825282820191508286018a848660051b8901011115614616578889fd5b8896505b8487101561463857803583526001969096019591830191830161461a565b509650508601359250508082111561464e578283fd5b5061465b85828601614256565b9150509250929050565b600060208284031215614676578081fd5b613bf5826142c9565b600060208284031215614690578081fd5b5035919050565b600080604083850312156146a9578182fd5b8235915060208301356143d081615382565b6000602082840312156146cc578081fd5b8135613bf5816153a4565b6000602082840312156146e8578081fd5b8151613bf5816153a4565b600060208284031215614704578081fd5b815167ffffffffffffffff81111561471a578182fd5b61273e84828501614344565b60008060408385031215614738578182fd5b825167ffffffffffffffff81111561474e578283fd5b61475a85828601614344565b925050602083015190509250929050565b60006020828403121561477c578081fd5b813567ffffffffffffffff811115614792578182fd5b8201601f810184136147a2578182fd5b61273e84823560208401614218565b6000602082840312156147c2578081fd5b8135613bf5816153d2565b6000602082840312156147de578081fd5b8151613bf5816153d2565b6000806000604084860312156147fd578081fd5b8335614808816153d2565b9250602084013567ffffffffffffffff811115614823578182fd5b61482f868287016142de565b9497909650939450505050565b60008060008060008060008060c0898b031215614857578182fd5b8835614862816153d2565b9750602089013567ffffffffffffffff8082111561487e578384fd5b61488a8c838d016142de565b909950975060408b0135965060608b013591506148a682615382565b90945060808a0135906148b882615382565b90935060a08a013590808211156148cd578384fd5b506148da8b828c016142de565b999c989b5096995094979396929594505050565b600080600060608486031215614902578081fd5b833561490d816153d2565b9250602084013567ffffffffffffffff811115614928578182fd5b61493486828701614325565b925050604084013590509250925092565b60008060008060008060a0878903121561495d578384fd5b8635614968816153d2565b9550602087013567ffffffffffffffff80821115614984578586fd5b6149908a838b01614325565b9650604089013595506149a560608a016142c9565b945060808901359150808211156149ba578384fd5b506149c789828a016142de565b979a9699509497509295939492505050565b6000806000806000608086880312156149f0578283fd5b85356149fb816153d2565b9450602086013567ffffffffffffffff80821115614a17578485fd5b614a2389838a01614325565b955060408801359150614a35826153e2565b90935060608701359080821115614a4a578283fd5b50614a57888289016142de565b969995985093965092949392505050565b60008060008060808587031215614a7d578182fd5b8435614a88816153d2565b9350602085013567ffffffffffffffff80821115614aa4578384fd5b614ab088838901614325565b945060408701359150614ac2826153e2565b90925060608601359080821115614ad7578283fd5b5061447987828801614325565b60008060008060808587031215614af9578182fd5b8435614b04816153d2565b93506020850135614b14816153d2565b92506040850135614b2481615382565b9396929550929360600135925050565b600080600080600060808688031215614b4b578283fd5b8535614b56816153d2565b94506020860135614b66816153d2565b935060408601359250606086013567ffffffffffffffff811115614b88578182fd5b614a57888289016142de565b60008060408385031215614ba6578182fd5b8235915060208301356143d0816153d2565b60008060408385031215614bca578182fd5b505080516020909101519092909150565b600060208284031215614bec578081fd5b8151613bf5816153e2565b81835281816020850137506000806020838501015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b60008151808452614c578160208601602086016151f3565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8183823760009101908152919050565b60008251614cab8184602087016151f3565b9190910192915050565b6000808354614cc381615254565b60018281168015614cdb5760018114614d0a57614d36565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00841687528287019450614d36565b8786526020808720875b85811015614d2d5781548a820152908401908201614d14565b50505082870194505b50929695505050505050565b60008351614d548184602088016151f3565b835190830190614d688183602088016151f3565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614da98160178501602088016151f3565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614de68160288401602088016151f3565b01602801949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152614e316080830184614c3f565b9695505050505050565b602081526000613bf56020830184614c3f565b604081526000614e616040830185614c3f565b90508260208301529392505050565b61ffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a060408201526000614ea960a0830187614c3f565b85151560608401528281036080840152614ec4818587614bf7565b9998505050505050505050565b61ffff8416815260406020820152600061273b604083018486614bf7565b61ffff86168152608060208201526000614f0c6080830187614c3f565b67ffffffffffffffff861660408401528281036060840152614f2f818587614bf7565b98975050505050505050565b61ffff85168152608060208201526000614f586080830186614c3f565b67ffffffffffffffff851660408401528281036060840152614f7a8185614c3f565b979650505050505050565b61ffff871681526000602060c081840152818854614fa281615254565b8060c087015260e0600180841660008114614fc45760018114614ff757615022565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008516838a015261010089019550615022565b8d8852868820885b8581101561501a5781548b8201860152908301908801614fff565b8a0184019650505b505050505083810360408501526150398189614c3f565b91505061505e606084018773ffffffffffffffffffffffffffffffffffffffff169052565b73ffffffffffffffffffffffffffffffffffffffff8516608084015282810360a0840152614ec48185614c3f565b600061ffff808816835280871660208401525084604083015260806060830152614f7a608083018486614bf7565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561510157615101615353565b604052919050565b600067ffffffffffffffff82111561512357615123615353565b5060051b60200190565b600067ffffffffffffffff82111561514757615147615353565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b60008219821115615186576151866152f5565b500190565b60008261519a5761519a615324565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156151d7576151d76152f5565b500290565b6000828210156151ee576151ee6152f5565b500390565b60005b8381101561520e5781810151838201526020016151f6565b83811115610ca75750506000910152565b60008161522e5761522e6152f5565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c9082168061526857607f821691505b602082108114156152a2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152da576152da6152f5565b5060010190565b6000826152f0576152f0615324565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff811681146119f857600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000811681146119f857600080fd5b61ffff811681146119f857600080fd5b67ffffffffffffffff811681146119f857600080fdfea264697066735822122030480dc932abd2b67cccef3a6acf156486f16681c311e82f0a98b4f33aa2779264736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675000000000000000000000000d465a03ad59d86dd67db03d08343a1f11a7f3dc400000000000000000000000000000000000000000000000000000000000022b8000000000000000000000000000000000000000000000000000000000000000c50617374656c20576f726c640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000650415354454c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f626166796265696168736a6337767836636e6c7a626b7962676271796170337a7676727565707370353468716e666e696366637170686c6e727179000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061036a5760003560e01c806391d14854116101c6578063d5391393116100f7578063eb8d72b711610095578063f108e2251161006f578063f108e22514610b03578063f187892214610b30578063f5a8622a14610b50578063f5ecbdbc14610b6557600080fd5b8063eb8d72b714610a9f578063eed33cef14610abf578063f090ff3514610ad257600080fd5b8063d5abeb01116100d1578063d5abeb01146109ce578063dacbcbe214610a01578063e8a3d48514610a34578063e985e9c514610a4957600080fd5b8063d539139314610965578063d547741f14610999578063d547cfb7146109b957600080fd5b8063a475b5dd11610164578063c674f5691161013e578063c674f569146108f2578063c87b56dd14610912578063cbed8b9c14610932578063d1deba1f1461095257600080fd5b8063a475b5dd14610898578063b2dcc6a7146108b2578063b88d4fde146108d257600080fd5b80639ef08c9e116101a05780639ef08c9e14610823578063a217fddf14610843578063a22cb46514610858578063a42dce801461087857600080fd5b806391d148541461079d578063938e3d7b146107ee57806395d89b411461080e57600080fd5b80633d8b38f6116102a05780636352211e1161023e5780636a627842116102185780636a627842146106f857806370a082311461071857806373b6abd5146107385780638ee749121461074e57600080fd5b80636352211e1461069857806366ad5c8a146106b857806369b41f95146106d857600080fd5b806342d65a8d1161027a57806342d65a8d1461062d578063519056361461064d57806355f804b3146106605780635c975abb1461068057600080fd5b80633d8b38f6146105a95780634049ddd2146105c957806342842e0e1461060d57600080fd5b806310ddb1371161030d578063248a9ca3116102e7578063248a9ca3146105045780632a205e3d146105345780632f2ff15d1461056957806336568abe1461058957600080fd5b806310ddb137146104af57806318160ddd146104cf57806323b872dd146104e457600080fd5b806306fdde031161034957806306fdde031461040857806307e0db171461042a578063081812fc1461044a578063095ea7b31461048f57600080fd5b80621d35671461036f57806301ffc9a7146103915780630480e58b146103c6575b600080fd5b34801561037b57600080fd5b5061038f61038a366004614a68565b610b85565b005b34801561039d57600080fd5b506103b16103ac3660046146bb565b610cad565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103fa7f00000000000000000000000000000000000000000000000000000000000022b881565b6040519081526020016103bd565b34801561041457600080fd5b5061041d610d09565b6040516103bd9190614e3b565b34801561043657600080fd5b5061038f6104453660046147b1565b610d9b565b34801561045657600080fd5b5061046a61046536600461467f565b610ec0565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103bd565b34801561049b57600080fd5b5061038f6104aa366004614580565b610f80565b3480156104bb57600080fd5b5061038f6104ca3660046147b1565b6110d9565b3480156104db57600080fd5b50600c546103fa565b3480156104f057600080fd5b5061038f6104ff3660046143db565b6111cd565b34801561051057600080fd5b506103fa61051f36600461467f565b60009081526020819052604090206001015490565b34801561054057600080fd5b5061055461054f366004614945565b611254565b604080519283526020830191909152016103bd565b34801561057557600080fd5b5061038f610584366004614697565b611375565b34801561059557600080fd5b5061038f6105a4366004614697565b61139b565b3480156105b557600080fd5b506103b16105c43660046147e9565b611434565b3480156105d557600080fd5b506105fa6105e436600461467f565b60106020526000908152604090205461ffff1681565b60405161ffff90911681526020016103bd565b34801561061957600080fd5b5061038f6106283660046143db565b611500565b34801561063957600080fd5b5061038f6106483660046147e9565b61151b565b61038f61065b3660046144b9565b611646565b34801561066c57600080fd5b5061038f61067b36600461476b565b611699565b34801561068c57600080fd5b50600a5460ff166103b1565b3480156106a457600080fd5b5061046a6106b336600461467f565b61172a565b3480156106c457600080fd5b5061038f6106d3366004614a68565b6117c2565b3480156106e457600080fd5b5061041d6106f33660046147b1565b611843565b34801561070457600080fd5b5061038f610713366004614387565b6118ea565b34801561072457600080fd5b506103fa610733366004614387565b6119fb565b34801561074457600080fd5b506103fa600c5481565b34801561075a57600080fd5b506103fa6107693660046148ee565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b3480156107a957600080fd5b506103b16107b8366004614697565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156107fa57600080fd5b5061038f61080936600461476b565b611aaf565b34801561081a57600080fd5b5061041d611b40565b34801561082f57600080fd5b5061038f61083e366004614b94565b611b4f565b34801561084f57600080fd5b506103fa600081565b34801561086457600080fd5b5061038f610873366004614485565b611c0b565b34801561088457600080fd5b5061038f610893366004614387565b611c16565b3480156108a457600080fd5b50600d546103b19060ff1681565b3480156108be57600080fd5b5061038f6108cd366004614580565b611cdb565b3480156108de57600080fd5b5061038f6108ed36600461441b565b611d63565b3480156108fe57600080fd5b5061038f61090d3660046145ab565b611deb565b34801561091e57600080fd5b5061041d61092d36600461467f565b611f4f565b34801561093e57600080fd5b5061038f61094d366004614b34565b611f9d565b61038f6109603660046149d9565b6120c3565b34801561097157600080fd5b506103fa7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156109a557600080fd5b5061038f6109b4366004614697565b612284565b3480156109c557600080fd5b5061041d6122aa565b3480156109da57600080fd5b507f00000000000000000000000000000000000000000000000000000000000022b86103fa565b348015610a0d57600080fd5b507f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67561046a565b348015610a4057600080fd5b5061041d612338565b348015610a5557600080fd5b506103b1610a643660046143a3565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610aab57600080fd5b5061038f610aba3660046147e9565b612345565b61038f610acd36600461483c565b612422565b348015610ade57600080fd5b506105fa610aed36600461467f565b60009081526010602052604090205461ffff1690565b348015610b0f57600080fd5b50600f5461046a9073ffffffffffffffffffffffffffffffffffffffff1681565b348015610b3c57600080fd5b5061038f610b4b366004614665565b612474565b348015610b5c57600080fd5b5061038f612507565b348015610b7157600080fd5b5061041d610b80366004614ae4565b6125b2565b337f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67573ffffffffffffffffffffffffffffffffffffffff1614610bc757600080fd5b61ffff841660009081526001602052604090208054610be590615254565b90508351148015610c24575061ffff8416600090815260016020526040908190209051610c129190614cb5565b60405180910390208380519060200120145b610c9b5760405162461bcd60e51b815260206004820152602b60248201527f4c7a52656365697665723a20696e76616c696420736f757263652073656e646960448201527f6e6720636f6e747261637400000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610ca784848484612746565b50505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610d035750610d0382612851565b92915050565b606060038054610d1890615254565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4490615254565b8015610d915780601f10610d6657610100808354040283529160200191610d91565b820191906000526020600020905b815481529060010190602001808311610d7457829003601f168201915b5050505050905090565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16610e195760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b6040517f07e0db1700000000000000000000000000000000000000000000000000000000815261ffff821660048201527f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67573ffffffffffffffffffffffffffffffffffffffff16906307e0db17906024015b600060405180830381600087803b158015610ea557600080fd5b505af1158015610eb9573d6000803e3d6000fd5b5050505050565b60008181526005602052604081205473ffffffffffffffffffffffffffffffffffffffff16610f575760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610c92565b5060009081526007602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610f8b8261172a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561102f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c92565b3373ffffffffffffffffffffffffffffffffffffffff8216148061105857506110588133610a64565b6110ca5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c92565b6110d483836128f3565b505050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166111575760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b6040517f10ddb13700000000000000000000000000000000000000000000000000000000815261ffff821660048201527f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67573ffffffffffffffffffffffffffffffffffffffff16906310ddb13790602401610e8b565b6111d73382612993565b6112495760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c92565b6110d4838383612ae5565b6000806000878760405160200161126c929190614e4e565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f40a7bb10000000000000000000000000000000000000000000000000000000008252915073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67516906340a7bb1090611316908c90309086908c908c908c90600401614e70565b604080518083038186803b15801561132d57600080fd5b505afa158015611341573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113659190614bb8565b9250925050965096945050505050565b6000828152602081905260409020600101546113918133612d18565b6110d48383612dce565b73ffffffffffffffffffffffffffffffffffffffff811633146114265760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610c92565b6114308282612ebe565b5050565b61ffff83166000908152600160205260408120805482919061145590615254565b80601f016020809104026020016040519081016040528092919081815260200182805461148190615254565b80156114ce5780601f106114a3576101008083540402835291602001916114ce565b820191906000526020600020905b8154815290600101906020018083116114b157829003601f168201915b5050505050905083836040516114e5929190614c89565b60405180910390208180519060200120149150509392505050565b6110d483838360405180602001604052806000815250611d63565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166115995760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b6040517f42d65a8d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67516906342d65a8d9061160f90869086908690600401614ed1565b600060405180830381600087803b15801561162957600080fd5b505af115801561163d573d6000803e3d6000fd5b50505050505050565b61168e898989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a91508990508888612f75565b505050505050505050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166117175760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b80516114309060099060208401906140ed565b60008181526005602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610d035760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c92565b3330146118375760405162461bcd60e51b815260206004820152602260248201527f4c7a52656365697665723a2063616c6c6572206d75737420626520427269646760448201527f652e0000000000000000000000000000000000000000000000000000000000006064820152608401610c92565b610ca7848484846131ac565b61ffff8116600090815260016020526040902080546060919061186590615254565b80601f016020809104026020016040519081016040528092919081815260200182805461189190615254565b80156118de5780601f106118b3576101008083540402835291602001916118de565b820191906000526020600020905b8154815290600101906020018083116118c157829003601f168201915b50505050509050919050565b3360009081527f0781d7cac9c378efa22a7481e4d4d29704a680ddf504b3bc50b517700ee11e6c602052604090205460ff166119685760405162461bcd60e51b815260206004820152601660248201527f4d7573742068617665206d696e74657220726f6c652e000000000000000000006044820152606401610c92565b7f00000000000000000000000000000000000000000000000000000000000022b8600c54106119d95760405162461bcd60e51b815260206004820152601360248201527f4d617820737570706c7920726561636865642e000000000000000000000000006044820152606401610c92565b600c80546119f89183919060006119ef836152a8565b9190505561324b565b50565b600073ffffffffffffffffffffffffffffffffffffffff8216611a865760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c92565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205490565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611b2d5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b805161143090600e9060208401906140ed565b606060048054610d1890615254565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611bcd5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b600082815260106020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff83161790555050565b6114303383836133d9565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611c945760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b600f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3360009081527f0781d7cac9c378efa22a7481e4d4d29704a680ddf504b3bc50b517700ee11e6c602052604090205460ff16611d595760405162461bcd60e51b815260206004820152601660248201527f4d7573742068617665206d696e74657220726f6c652e000000000000000000006044820152606401610c92565b611430828261324b565b611d6d3383612993565b611ddf5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c92565b610ca7848484846134ed565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611e695760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b60005b82518110156110d457611f3d838281518110611eb1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151838381518110611ef2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151600091825260106020526040909120805461ffff9092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000909216919091179055565b80611f47816152a8565b915050611e6c565b600d5460609060ff1615611f9557611f65613576565b611f6e83613585565b604051602001611f7f929190614d42565b6040516020818303038152906040529050919050565b610d03613576565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff1661201b5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b6040517fcbed8b9c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675169063cbed8b9c90612095908890889088908890889060040161508c565b600060405180830381600087803b1580156120af57600080fd5b505af115801561168e573d6000803e3d6000fd5b61ffff851660009081526002602052604080822090516120e4908790614c99565b908152604080516020928190038301902067ffffffffffffffff8716600090815292529020549050806121595760405162461bcd60e51b815260206004820152601d60248201527f4c7a52656365697665723a206e6f2073746f726564206d6573736167650000006044820152606401610c92565b80838360405161216a929190614c89565b6040518091039020146121bf5760405162461bcd60e51b815260206004820152601b60248201527f4c7a52656365697665723a20696e76616c6964207061796c6f616400000000006044820152606401610c92565b61ffff861660009081526002602052604080822090516121e0908890614c99565b90815260408051918290036020908101832067ffffffffffffffff89166000908152915220919091557f66ad5c8a00000000000000000000000000000000000000000000000000000000815230906366ad5c8a9061224a9089908990899089908990600401614eef565b600060405180830381600087803b15801561226457600080fd5b505af1158015612278573d6000803e3d6000fd5b50505050505050505050565b6000828152602081905260409020600101546122a08133612d18565b6110d48383612ebe565b600980546122b790615254565b80601f01602080910402602001604051908101604052809291908181526020018280546122e390615254565b80156123305780601f1061230557610100808354040283529160200191612330565b820191906000526020600020905b81548152906001019060200180831161231357829003601f168201915b505050505081565b600e80546122b790615254565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166123c35760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b61ffff831660009081526001602052604090206123e1908383614171565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab83838360405161241593929190614ed1565b60405180910390a1505050565b61246a338989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a91508990508888612f75565b5050505050505050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166124f25760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b806124ff576119f8613705565b6119f86137cc565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166125855760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610c92565b600d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6040517f096568f60000000000000000000000000000000000000000000000000000000081523060048201526060907f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67573ffffffffffffffffffffffffffffffffffffffff169063f5ecbdbc90829063096568f69060240160206040518083038186803b15801561264257600080fd5b505afa158015612656573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061267a91906147cd565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815261ffff918216600482015290871660248201523060448201526064810185905260840160006040518083038186803b1580156126e157600080fd5b505afa1580156126f5573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261273b91908101906146f3565b90505b949350505050565b6040517f66ad5c8a00000000000000000000000000000000000000000000000000000000815230906366ad5c8a90612788908790879087908790600401614f3b565b600060405180830381600087803b1580156127a257600080fd5b505af19250505080156127b3575060015b610ca7578080519060200120600260008661ffff1661ffff168152602001908152602001600020846040516127e89190614c99565b90815260408051918290036020908101832067ffffffffffffffff87166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90612844908690869086908690614f3b565b60405180910390a1610ca7565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806128e457507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610d035750610d0382613872565b600081815260076020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061294d8261172a565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526005602052604081205473ffffffffffffffffffffffffffffffffffffffff16612a2a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610c92565b6000612a358361172a565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612aa457508373ffffffffffffffffffffffffffffffffffffffff16612a8c84610ec0565b73ffffffffffffffffffffffffffffffffffffffff16145b8061273e575073ffffffffffffffffffffffffffffffffffffffff80821660009081526008602090815260408083209388168352929052205460ff1661273e565b8273ffffffffffffffffffffffffffffffffffffffff16612b058261172a565b73ffffffffffffffffffffffffffffffffffffffff1614612b8e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610c92565b73ffffffffffffffffffffffffffffffffffffffff8216612c165760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c92565b612c216000826128f3565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600660205260408120805460019290612c579084906151dc565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600660205260408120805460019290612c92908490615173565b909155505060008181526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661143057612d6e8173ffffffffffffffffffffffffffffffffffffffff166014613909565b612d79836020613909565b604051602001612d8a929190614d71565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905262461bcd60e51b8252610c9291600401614e3b565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166114305760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055612e603390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16156114305760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b612f7f3386612993565b612ff15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c92565b612ffd88888888613bfc565b60008686604051602001613012929190614e4e565b60405160208183030381529060405290506130668882878787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613c5892505050565b6040517f7a14574800000000000000000000000000000000000000000000000000000000815261ffff891660048201523060248201526000907f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67573ffffffffffffffffffffffffffffffffffffffff1690637a1457489060440160206040518083038186803b1580156130f857600080fd5b505afa15801561310c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131309190614bdb565b9050876040516131409190614c99565b6040805191829003822089835267ffffffffffffffff841660208401529161ffff8c169173ffffffffffffffffffffffffffffffffffffffff8e16917f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce1543910160405180910390a4612278565b600080828060200190518101906131c39190614726565b601482015191935091506131d8878284613d96565b6040805161ffff8916815273ffffffffffffffffffffffffffffffffffffffff8316602082015290810183905267ffffffffffffffff861660608201527fd4d39d20f72eabd06c301e516d54653dfc9116de62c1d54bf1cb48cf3b42a7db9060800160405180910390a150505050505050565b73ffffffffffffffffffffffffffffffffffffffff82166132ae5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c92565b60008181526005602052604090205473ffffffffffffffffffffffffffffffffffffffff16156133205760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c92565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600660205260408120805460019290613356908490615173565b909155505060008181526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156134555760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c92565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526008602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6134f8848484612ae5565b61350484848484613da0565b610ca75760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c92565b606060098054610d1890615254565b6060816135c557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156135ef57806135d9816152a8565b91506135e89050600a8361518b565b91506135c9565b60008167ffffffffffffffff811115613631577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561365b576020820181803683370190505b5090505b841561273e576136706001836151dc565b915061367d600a866152e1565b613688906030615173565b60f81b8183815181106136c4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506136fe600a8661518b565b945061365f565b600a5460ff166137575760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610c92565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600a5460ff161561381f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610c92565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586137a23390565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610d0357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610d03565b6060600061391883600261519f565b613923906002615173565b67ffffffffffffffff811115613962577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561398c576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106139ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613a74577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000613ab084600261519f565b613abb906001615173565b90505b6001811115613ba6577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613b23577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110613b60577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93613b9f8161521f565b9050613abe565b508315613bf55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c92565b9392505050565b600a5460ff1615613c4f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610c92565b610ca781613f82565b61ffff851660009081526001602052604090208054613c7690615254565b15159050613cec5760405162461bcd60e51b815260206004820152603260248201527f4c7a53656e643a2064657374696e6174696f6e20636861696e206973206e6f7460448201527f2061207472757374656420736f757263652e00000000000000000000000000006064820152608401610c92565b61ffff85166000908152600160205260409081902090517fc580310000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675169163c5803100913491613d7d918a91908a908a908a908a90600401614f85565b6000604051808303818588803b15801561226457600080fd5b6110d4828261404f565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613f7a576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613e17903390899088908890600401614df2565b602060405180830381600087803b158015613e3157600080fd5b505af1925050508015613e7f575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613e7c918101906146d7565b60015b613f2f573d808015613ead576040519150601f19603f3d011682016040523d82523d6000602084013e613eb2565b606091505b508051613f275760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c92565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061273e565b50600161273e565b6000613f8d8261172a565b9050613f9a6000836128f3565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660205260408120805460019290613fd09084906151dc565b909155505060008281526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b61143082826040518060200160405280600081525061406e838361324b565b61407b6000848484613da0565b6110d45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c92565b8280546140f990615254565b90600052602060002090601f01602090048101928261411b5760008555614161565b82601f1061413457805160ff1916838001178555614161565b82800160010185558215614161579182015b82811115614161578251825591602001919060010190614146565b5061416d929150614203565b5090565b82805461417d90615254565b90600052602060002090601f01602090048101928261419f5760008555614161565b82601f106141d6578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555614161565b82800160010185558215614161579182015b828111156141615782358255916020019190600101906141e8565b5b8082111561416d5760008155600101614204565b600061422b6142268461512d565b6150ba565b905082815283838301111561423f57600080fd5b828260208301376000602084830101529392505050565b600082601f830112614266578081fd5b8135602061427661422683615109565b80838252828201915082860187848660051b8901011115614295578586fd5b855b858110156142bc5781356142aa816153d2565b84529284019290840190600101614297565b5090979650505050505050565b803580151581146142d957600080fd5b919050565b60008083601f8401126142ef578182fd5b50813567ffffffffffffffff811115614306578182fd5b60208301915083602082850101111561431e57600080fd5b9250929050565b600082601f830112614335578081fd5b613bf583833560208501614218565b600082601f830112614354578081fd5b81516143626142268261512d565b818152846020838601011115614376578283fd5b61273e8260208301602087016151f3565b600060208284031215614398578081fd5b8135613bf581615382565b600080604083850312156143b5578081fd5b82356143c081615382565b915060208301356143d081615382565b809150509250929050565b6000806000606084860312156143ef578081fd5b83356143fa81615382565b9250602084013561440a81615382565b929592945050506040919091013590565b60008060008060808587031215614430578081fd5b843561443b81615382565b9350602085013561444b81615382565b925060408501359150606085013567ffffffffffffffff81111561446d578182fd5b61447987828801614325565b91505092959194509250565b60008060408385031215614497578182fd5b82356144a281615382565b91506144b0602084016142c9565b90509250929050565b600080600080600080600080600060e08a8c0312156144d6578687fd5b89356144e181615382565b985060208a01356144f1816153d2565b975060408a013567ffffffffffffffff8082111561450d578889fd5b6145198d838e016142de565b909950975060608c0135965060808c0135915061453582615382565b90945060a08b01359061454782615382565b90935060c08b0135908082111561455c578384fd5b506145698c828d016142de565b915080935050809150509295985092959850929598565b60008060408385031215614592578182fd5b823561459d81615382565b946020939093013593505050565b600080604083850312156145bd578182fd5b823567ffffffffffffffff808211156145d4578384fd5b818501915085601f8301126145e7578384fd5b813560206145f761422683615109565b8083825282820191508286018a848660051b8901011115614616578889fd5b8896505b8487101561463857803583526001969096019591830191830161461a565b509650508601359250508082111561464e578283fd5b5061465b85828601614256565b9150509250929050565b600060208284031215614676578081fd5b613bf5826142c9565b600060208284031215614690578081fd5b5035919050565b600080604083850312156146a9578182fd5b8235915060208301356143d081615382565b6000602082840312156146cc578081fd5b8135613bf5816153a4565b6000602082840312156146e8578081fd5b8151613bf5816153a4565b600060208284031215614704578081fd5b815167ffffffffffffffff81111561471a578182fd5b61273e84828501614344565b60008060408385031215614738578182fd5b825167ffffffffffffffff81111561474e578283fd5b61475a85828601614344565b925050602083015190509250929050565b60006020828403121561477c578081fd5b813567ffffffffffffffff811115614792578182fd5b8201601f810184136147a2578182fd5b61273e84823560208401614218565b6000602082840312156147c2578081fd5b8135613bf5816153d2565b6000602082840312156147de578081fd5b8151613bf5816153d2565b6000806000604084860312156147fd578081fd5b8335614808816153d2565b9250602084013567ffffffffffffffff811115614823578182fd5b61482f868287016142de565b9497909650939450505050565b60008060008060008060008060c0898b031215614857578182fd5b8835614862816153d2565b9750602089013567ffffffffffffffff8082111561487e578384fd5b61488a8c838d016142de565b909950975060408b0135965060608b013591506148a682615382565b90945060808a0135906148b882615382565b90935060a08a013590808211156148cd578384fd5b506148da8b828c016142de565b999c989b5096995094979396929594505050565b600080600060608486031215614902578081fd5b833561490d816153d2565b9250602084013567ffffffffffffffff811115614928578182fd5b61493486828701614325565b925050604084013590509250925092565b60008060008060008060a0878903121561495d578384fd5b8635614968816153d2565b9550602087013567ffffffffffffffff80821115614984578586fd5b6149908a838b01614325565b9650604089013595506149a560608a016142c9565b945060808901359150808211156149ba578384fd5b506149c789828a016142de565b979a9699509497509295939492505050565b6000806000806000608086880312156149f0578283fd5b85356149fb816153d2565b9450602086013567ffffffffffffffff80821115614a17578485fd5b614a2389838a01614325565b955060408801359150614a35826153e2565b90935060608701359080821115614a4a578283fd5b50614a57888289016142de565b969995985093965092949392505050565b60008060008060808587031215614a7d578182fd5b8435614a88816153d2565b9350602085013567ffffffffffffffff80821115614aa4578384fd5b614ab088838901614325565b945060408701359150614ac2826153e2565b90925060608601359080821115614ad7578283fd5b5061447987828801614325565b60008060008060808587031215614af9578182fd5b8435614b04816153d2565b93506020850135614b14816153d2565b92506040850135614b2481615382565b9396929550929360600135925050565b600080600080600060808688031215614b4b578283fd5b8535614b56816153d2565b94506020860135614b66816153d2565b935060408601359250606086013567ffffffffffffffff811115614b88578182fd5b614a57888289016142de565b60008060408385031215614ba6578182fd5b8235915060208301356143d0816153d2565b60008060408385031215614bca578182fd5b505080516020909101519092909150565b600060208284031215614bec578081fd5b8151613bf5816153e2565b81835281816020850137506000806020838501015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b60008151808452614c578160208601602086016151f3565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8183823760009101908152919050565b60008251614cab8184602087016151f3565b9190910192915050565b6000808354614cc381615254565b60018281168015614cdb5760018114614d0a57614d36565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00841687528287019450614d36565b8786526020808720875b85811015614d2d5781548a820152908401908201614d14565b50505082870194505b50929695505050505050565b60008351614d548184602088016151f3565b835190830190614d688183602088016151f3565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614da98160178501602088016151f3565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614de68160288401602088016151f3565b01602801949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152614e316080830184614c3f565b9695505050505050565b602081526000613bf56020830184614c3f565b604081526000614e616040830185614c3f565b90508260208301529392505050565b61ffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a060408201526000614ea960a0830187614c3f565b85151560608401528281036080840152614ec4818587614bf7565b9998505050505050505050565b61ffff8416815260406020820152600061273b604083018486614bf7565b61ffff86168152608060208201526000614f0c6080830187614c3f565b67ffffffffffffffff861660408401528281036060840152614f2f818587614bf7565b98975050505050505050565b61ffff85168152608060208201526000614f586080830186614c3f565b67ffffffffffffffff851660408401528281036060840152614f7a8185614c3f565b979650505050505050565b61ffff871681526000602060c081840152818854614fa281615254565b8060c087015260e0600180841660008114614fc45760018114614ff757615022565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008516838a015261010089019550615022565b8d8852868820885b8581101561501a5781548b8201860152908301908801614fff565b8a0184019650505b505050505083810360408501526150398189614c3f565b91505061505e606084018773ffffffffffffffffffffffffffffffffffffffff169052565b73ffffffffffffffffffffffffffffffffffffffff8516608084015282810360a0840152614ec48185614c3f565b600061ffff808816835280871660208401525084604083015260806060830152614f7a608083018486614bf7565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561510157615101615353565b604052919050565b600067ffffffffffffffff82111561512357615123615353565b5060051b60200190565b600067ffffffffffffffff82111561514757615147615353565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b60008219821115615186576151866152f5565b500190565b60008261519a5761519a615324565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156151d7576151d76152f5565b500290565b6000828210156151ee576151ee6152f5565b500390565b60005b8381101561520e5781810151838201526020016151f6565b83811115610ca75750506000910152565b60008161522e5761522e6152f5565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c9082168061526857607f821691505b602082108114156152a2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152da576152da6152f5565b5060010190565b6000826152f0576152f0615324565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff811681146119f857600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000811681146119f857600080fd5b61ffff811681146119f857600080fd5b67ffffffffffffffff811681146119f857600080fdfea264697066735822122030480dc932abd2b67cccef3a6acf156486f16681c311e82f0a98b4f33aa2779264736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675000000000000000000000000d465a03ad59d86dd67db03d08343a1f11a7f3dc400000000000000000000000000000000000000000000000000000000000022b8000000000000000000000000000000000000000000000000000000000000000c50617374656c20576f726c640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000650415354454c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f626166796265696168736a6337767836636e6c7a626b7962676271796170337a7676727565707370353468716e666e696366637170686c6e727179000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Pastel World
Arg [1] : _symbol (string): PASTEL
Arg [2] : _baseTokenURI (string): ipfs://bafybeiahsjc7vx6cnlzbkybgbqyap3zvvruepsp54hqnfnicfcqphlnrqy
Arg [3] : _layerZeroEndpoint (address): 0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675
Arg [4] : _feeCollectorAddress (address): 0xD465A03ad59D86dd67db03d08343A1F11a7f3dC4
Arg [5] : _maxSupply (uint256): 8888

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675
Arg [4] : 000000000000000000000000d465a03ad59d86dd67db03d08343a1f11a7f3dc4
Arg [5] : 00000000000000000000000000000000000000000000000000000000000022b8
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [7] : 50617374656c20576f726c640000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [9] : 50415354454c0000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [11] : 697066733a2f2f626166796265696168736a6337767836636e6c7a626b796267
Arg [12] : 6271796170337a7676727565707370353468716e666e696366637170686c6e72
Arg [13] : 7179000000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.