ETH Price: $3,214.28 (-3.23%)

Contract

0x174500CCCDd641b4BfDb41418e949B56E4adeD90
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Transfer From209321872024-10-10 2:21:35101 days ago1728526895IN
0x174500CC...6E4adeD90
0 ETH0.00055379.47560339
Set Approval For...207689942024-09-17 7:59:59124 days ago1726559999IN
0x174500CC...6E4adeD90
0 ETH0.000088841.90524562
Set Approval For...205181632024-08-13 7:18:23159 days ago1723533503IN
0x174500CC...6E4adeD90
0 ETH0.000037851.53146965
Transfer From200345772024-06-06 18:28:59226 days ago1717698539IN
0x174500CC...6E4adeD90
0 ETH0.0014815223.42894101
Set Approval For...192414712024-02-16 15:54:11337 days ago1708098851IN
0x174500CC...6E4adeD90
0 ETH0.0009263737.47627271
Transfer From192352682024-02-15 18:58:35338 days ago1708023515IN
0x174500CC...6E4adeD90
0 ETH0.0017093137.05033045
Transfer From192311842024-02-15 5:15:59339 days ago1707974159IN
0x174500CC...6E4adeD90
0 ETH0.0014164322.39962005
Transfer From189900142024-01-12 9:46:35373 days ago1705052795IN
0x174500CC...6E4adeD90
0 ETH0.0010573616.72117605
Set Approval For...187153252023-12-04 20:16:11411 days ago1701720971IN
0x174500CC...6E4adeD90
0 ETH0.0023049549.34086461
Set Approval For...183895852023-10-20 5:55:11457 days ago1697781311IN
0x174500CC...6E4adeD90
0 ETH0.000326036.9791873
Set Approval For...183895842023-10-20 5:54:59457 days ago1697781299IN
0x174500CC...6E4adeD90
0 ETH0.000301946.47525942
Safe Transfer Fr...182397542023-09-29 7:01:35478 days ago1695970895IN
0x174500CC...6E4adeD90
0 ETH0.000433977.07235145
Set Approval For...181952712023-09-23 1:32:59484 days ago1695432779IN
0x174500CC...6E4adeD90
0 ETH0.000224099.05690309
Set Approval For...181952702023-09-23 1:32:47484 days ago1695432767IN
0x174500CC...6E4adeD90
0 ETH0.000199958.0618829
Set Approval For...180542342023-09-03 6:38:35504 days ago1693723115IN
0x174500CC...6E4adeD90
0 ETH0.0005185411.10013416
Set Approval For...180542332023-09-03 6:38:23504 days ago1693723103IN
0x174500CC...6E4adeD90
0 ETH0.0005132511.00109805
Set Approval For...179587212023-08-20 21:44:59517 days ago1692567899IN
0x174500CC...6E4adeD90
0 ETH0.0008544418.29053939
Set Approval For...178379632023-08-04 0:12:35534 days ago1691107955IN
0x174500CC...6E4adeD90
0 ETH0.0007462316.00307201
Set Approval For...177971272023-07-29 7:11:59540 days ago1690614719IN
0x174500CC...6E4adeD90
0 ETH0.0008219617.59539144
Safe Transfer Fr...177969972023-07-29 6:45:47540 days ago1690613147IN
0x174500CC...6E4adeD90
0 ETH0.0018291929.80996746
Transfer From177088782023-07-16 22:39:35552 days ago1689547175IN
0x174500CC...6E4adeD90
0 ETH0.0008607914.73074127
Transfer From176594872023-07-09 23:43:11559 days ago1688946191IN
0x174500CC...6E4adeD90
0 ETH0.0007157617.31627765
Set Approval For...176417842023-07-07 11:59:59562 days ago1688731199IN
0x174500CC...6E4adeD90
0 ETH0.0009497620.3676746
Safe Transfer Fr...175393962023-06-23 2:45:11576 days ago1687488311IN
0x174500CC...6E4adeD90
0 ETH0.0008503112.66870521
Set Approval For...175345132023-06-22 10:17:23577 days ago1687429043IN
0x174500CC...6E4adeD90
0 ETH0.0007047215.10494983
View all transactions

Latest 11 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
166285812023-02-14 17:49:11704 days ago1676396951
0x174500CC...6E4adeD90
0.04 ETH
162276552022-12-20 18:19:47760 days ago1671560387
0x174500CC...6E4adeD90
3.92 ETH
161935092022-12-15 23:55:11765 days ago1671148511
0x174500CC...6E4adeD90
0.085 ETH
160705382022-11-28 19:20:47782 days ago1669663247
0x174500CC...6E4adeD90
6.46 ETH
160267812022-11-22 16:36:47788 days ago1669135007
0x174500CC...6E4adeD90
0.255 ETH
159697042022-11-14 17:15:23796 days ago1668446123
0x174500CC...6E4adeD90
3.825 ETH
159205382022-11-07 20:28:59803 days ago1667852939
0x174500CC...6E4adeD90
6.205 ETH
158700612022-10-31 19:14:35810 days ago1667243675
0x174500CC...6E4adeD90
9.35 ETH
158191882022-10-24 16:37:23817 days ago1666629443
0x174500CC...6E4adeD90
7.48 ETH
157828472022-10-19 14:47:59822 days ago1666190879
0x174500CC...6E4adeD90
6.545 ETH
157197832022-10-10 19:27:35831 days ago1665430055
0x174500CC...6E4adeD90
18.78 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GenesisCollection

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : GenesisCollection.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

interface IMinter {
    function whitelistOnly() external view returns (bool);
    function mintStarted() external view returns (bool);
}

contract GenesisCollection is ERC721, AccessControl {
    using Counters for Counters.Counter;
    using Strings for uint256;

    Counters.Counter private _tokenIdCounter;

    bytes32 public merkleRoot;
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    uint256 public constant TOTAL_SUPPLY = 9_724;
    uint256 public constant MAX_MINT_PER_WALLET = 5;

    // Authorized contract to mint tokens
    IMinter MinterContract;

    string private baseTokenURI;
    string private placeholderTokenURI;
    uint256 public mintPrice = 0.08 ether;
    bool _preminted;
    bool public revealed;
    mapping (address => uint256) _mintsPerWallet;

    constructor(
        string memory _name,
        string memory _symbol,
        string memory _placeholderTokenURI
    ) ERC721(_name, _symbol) {
        placeholderTokenURI = _placeholderTokenURI;
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(MINTER_ROLE, msg.sender);
    }

    // The following functions are overrides required by Solidity.
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, AccessControl)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
    function withdraw() public onlyRole(DEFAULT_ADMIN_ROLE) {
        payable(msg.sender).transfer(address(this).balance);
    }

    function setCost(uint256 newCost) public onlyRole(MINTER_ROLE) {
        require(newCost > 0, "Cost must be greater than 0 eth");
        mintPrice = newCost;
    }

    function setMerkleRoot(bytes32 root) public onlyRole(MINTER_ROLE) {
        merkleRoot = root;
    }

    function setMinterContract(address contractAddress) public onlyRole(MINTER_ROLE) {
        MinterContract = IMinter(contractAddress);
    }

    function setPlaceholderUri(string memory _newUri) public onlyRole(MINTER_ROLE) {
        placeholderTokenURI = _newUri;
    }

    function setBaseTokenUri(string memory _newUri) public onlyRole(MINTER_ROLE) {
        baseTokenURI = _newUri;
    }

    function toggleReveal() public onlyRole(MINTER_ROLE) {
        revealed = !revealed;
    }

    function mintEnded() public view returns (bool) {
        return _tokenIdCounter.current() == TOTAL_SUPPLY;
    }

    function checkToken(uint256 tokenId) external view returns (bool) {
        return _exists(tokenId);
    }

    function premint(uint256 premintCount) public onlyRole(DEFAULT_ADMIN_ROLE) {
        require(!_preminted, "Already preminted");
        for (uint256 i = 1; i <= premintCount; i++) {
            _safeMint(msg.sender, i);
        }
        _preminted = true;
        _tokenIdCounter._value = premintCount;
    }

    function whitelistMint(uint256 mintCount, bytes32[] calldata proof) public payable {
        require(MinterContract.mintStarted(), "Mint not started yet");
        require(MinterContract.whitelistOnly(), "Method can only be used during early mint");

        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(proof, merkleRoot, leaf), "User is not whitelisted");

        require(mintCount > 0, "Invalid mint count");
        require(_tokenIdCounter.current() + mintCount <= TOTAL_SUPPLY, "Requested mint count exceeds supply");
        require(msg.value >= mintCount * mintPrice, "Transaction value did not meet mint price");
        uint256 currentMints = _mintsPerWallet[msg.sender];
        require(currentMints < MAX_MINT_PER_WALLET, "Already minted the max allowed");
        require(currentMints + mintCount <= MAX_MINT_PER_WALLET, "Requested mint count exceeds max allowed");

        for (uint256 i = 0; i < mintCount; i++) {    
            _tokenIdCounter.increment();
            _mintsPerWallet[msg.sender] += 1;
            _safeMint(msg.sender, _tokenIdCounter.current());
        }
    }

    function mint(uint256 mintCount) public payable {
        require(MinterContract.mintStarted(), "Mint not started yet");

        require(mintCount > 0, "Invalid mint count");
        require(_tokenIdCounter.current() + mintCount <= TOTAL_SUPPLY, "Requested mint count exceeds supply");
        if (!hasRole(MINTER_ROLE, msg.sender)) {
            require(!MinterContract.whitelistOnly(), "Whitelist mint only");
            require(msg.value >= mintCount * mintPrice, "Transaction value did not meet mint price");
            uint256 currentMints = _mintsPerWallet[msg.sender];
            require(currentMints < MAX_MINT_PER_WALLET, "Already minted the max allowed");
            require(currentMints + mintCount <= MAX_MINT_PER_WALLET, "Requested mint count exceeds max allowed");
        }

        for (uint256 i = 0; i < mintCount; i++) {    
            _tokenIdCounter.increment();
            _mintsPerWallet[msg.sender] += 1;
            _safeMint(msg.sender, _tokenIdCounter.current());
        }
    }

    function totalSupply() external view returns (uint256) {
        return _tokenIdCounter.current();
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        return bytes(baseTokenURI).length > 0 && revealed
            ? string(abi.encodePacked(baseTokenURI, tokenId.toString(), ".json"))
            : string(abi.encodePacked(placeholderTokenURI, tokenId.toString(), ".json"));
    }
}

File 2 of 14 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 3 of 14 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    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.
     *
     * May emit a {RoleRevoked} event.
     */
    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`.
     *
     * May emit a {RoleRevoked} event.
     */
    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.
     *
     * May emit a {RoleGranted} event.
     *
     * [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.
     *
     * May emit a {RoleGranted} event.
     */
    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.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 4 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 5 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token 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: caller is not token 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {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 an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    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 6 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

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

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 7 of 14 : 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 8 of 14 : 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 9 of 14 : 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 10 of 14 : 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 11 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 13 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_placeholderTokenURI","type":"string"}],"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":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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"checkToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","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":"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":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintCount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintEnded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"premintCount","type":"uint256"}],"name":"premint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","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":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newUri","type":"string"}],"name":"setBaseTokenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setMinterContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newUri","type":"string"}],"name":"setPlaceholderUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleReveal","outputs":[],"stateMutability":"nonpayable","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"},{"inputs":[{"internalType":"uint256","name":"mintCount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405267011c37937e080000600c553480156200001d57600080fd5b50604051620054e7380380620054e78339818101604052810190620000439190620003c5565b82828160009081620000569190620006c9565b508060019081620000689190620006c9565b50505080600b90816200007c9190620006c9565b50620000926000801b33620000cd60201b60201c565b620000c47f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620000cd60201b60201c565b505050620007b0565b620000df8282620001bf60201b60201c565b620001bb5760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620001606200022a60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200029b8262000250565b810181811067ffffffffffffffff82111715620002bd57620002bc62000261565b5b80604052505050565b6000620002d262000232565b9050620002e0828262000290565b919050565b600067ffffffffffffffff82111562000303576200030262000261565b5b6200030e8262000250565b9050602081019050919050565b60005b838110156200033b5780820151818401526020810190506200031e565b60008484015250505050565b60006200035e6200035884620002e5565b620002c6565b9050828152602081018484840111156200037d576200037c6200024b565b5b6200038a8482856200031b565b509392505050565b600082601f830112620003aa57620003a962000246565b5b8151620003bc84826020860162000347565b91505092915050565b600080600060608486031215620003e157620003e06200023c565b5b600084015167ffffffffffffffff81111562000402576200040162000241565b5b620004108682870162000392565b935050602084015167ffffffffffffffff81111562000434576200043362000241565b5b620004428682870162000392565b925050604084015167ffffffffffffffff81111562000466576200046562000241565b5b620004748682870162000392565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620004d157607f821691505b602082108103620004e757620004e662000489565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000512565b6200055d868362000512565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620005aa620005a46200059e8462000575565b6200057f565b62000575565b9050919050565b6000819050919050565b620005c68362000589565b620005de620005d582620005b1565b8484546200051f565b825550505050565b600090565b620005f5620005e6565b62000602818484620005bb565b505050565b5b818110156200062a576200061e600082620005eb565b60018101905062000608565b5050565b601f82111562000679576200064381620004ed565b6200064e8462000502565b810160208510156200065e578190505b620006766200066d8562000502565b83018262000607565b50505b505050565b600082821c905092915050565b60006200069e600019846008026200067e565b1980831691505092915050565b6000620006b983836200068b565b9150826002028217905092915050565b620006d4826200047e565b67ffffffffffffffff811115620006f057620006ef62000261565b5b620006fc8254620004b8565b620007098282856200062e565b600060209050601f8311600181146200074157600084156200072c578287015190505b620007388582620006ab565b865550620007a8565b601f1984166200075186620004ed565b60005b828110156200077b5784890151825560018201915060208501945060208101905062000754565b868310156200079b578489015162000797601f8916826200068b565b8355505b6001600288020188555050505b505050505050565b614d2780620007c06000396000f3fe6080604052600436106102255760003560e01c80636afd4ba211610123578063a0bb2b54116100ab578063c87b56dd1161006f578063c87b56dd146107e2578063d2cab0561461081f578063d53913931461083b578063d547741f14610866578063e985e9c51461088f57610225565b8063a0bb2b54146106fd578063a217fddf1461073a578063a22cb46514610765578063b19960e61461078e578063b88d4fde146107b957610225565b806391d14854116100f257806391d148541461062757806395652cfa1461066457806395d89b411461068d5780639d5aef30146106b8578063a0712d68146106e157610225565b80636afd4ba21461056d57806370a08231146105965780637cb64759146105d3578063902d55a5146105fc57610225565b80632f2ff15d116101b157806344a0d68a1161017557806344a0d68a1461049a57806351830227146104c35780635b8ad429146104ee5780636352211e146105055780636817c76c1461054257610225565b80632f2ff15d146103df57806336568abe1461040857806338478ae7146104315780633ccfd60b1461045a57806342842e0e1461047157610225565b8063095ea7b3116101f8578063095ea7b3146102fa57806318160ddd1461032357806323b872dd1461034e578063248a9ca3146103775780632eb4a7ab146103b457610225565b806301ffc9a71461022a578063021313cf1461026757806306fdde0314610292578063081812fc146102bd575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c9190613036565b6108cc565b60405161025e919061307e565b60405180910390f35b34801561027357600080fd5b5061027c6108de565b604051610289919061307e565b60405180910390f35b34801561029e57600080fd5b506102a76108f3565b6040516102b49190613129565b60405180910390f35b3480156102c957600080fd5b506102e460048036038101906102df9190613181565b610985565b6040516102f191906131ef565b60405180910390f35b34801561030657600080fd5b50610321600480360381019061031c9190613236565b6109cb565b005b34801561032f57600080fd5b50610338610ae2565b6040516103459190613285565b60405180910390f35b34801561035a57600080fd5b50610375600480360381019061037091906132a0565b610af3565b005b34801561038357600080fd5b5061039e60048036038101906103999190613329565b610b53565b6040516103ab9190613365565b60405180910390f35b3480156103c057600080fd5b506103c9610b73565b6040516103d69190613365565b60405180910390f35b3480156103eb57600080fd5b5061040660048036038101906104019190613380565b610b79565b005b34801561041457600080fd5b5061042f600480360381019061042a9190613380565b610b9a565b005b34801561043d57600080fd5b50610458600480360381019061045391906133c0565b610c1d565b005b34801561046657600080fd5b5061046f610c8c565b005b34801561047d57600080fd5b50610498600480360381019061049391906132a0565b610ce3565b005b3480156104a657600080fd5b506104c160048036038101906104bc9190613181565b610d03565b005b3480156104cf57600080fd5b506104d8610d7b565b6040516104e5919061307e565b60405180910390f35b3480156104fa57600080fd5b50610503610d8e565b005b34801561051157600080fd5b5061052c60048036038101906105279190613181565b610de5565b60405161053991906131ef565b60405180910390f35b34801561054e57600080fd5b50610557610e96565b6040516105649190613285565b60405180910390f35b34801561057957600080fd5b50610594600480360381019061058f9190613522565b610e9c565b005b3480156105a257600080fd5b506105bd60048036038101906105b891906133c0565b610eda565b6040516105ca9190613285565b60405180910390f35b3480156105df57600080fd5b506105fa60048036038101906105f59190613329565b610f91565b005b34801561060857600080fd5b50610611610fc6565b60405161061e9190613285565b60405180910390f35b34801561063357600080fd5b5061064e60048036038101906106499190613380565b610fcc565b60405161065b919061307e565b60405180910390f35b34801561067057600080fd5b5061068b60048036038101906106869190613522565b611037565b005b34801561069957600080fd5b506106a2611075565b6040516106af9190613129565b60405180910390f35b3480156106c457600080fd5b506106df60048036038101906106da9190613181565b611107565b005b6106fb60048036038101906106f69190613181565b6111b9565b005b34801561070957600080fd5b50610724600480360381019061071f9190613181565b6115e2565b604051610731919061307e565b60405180910390f35b34801561074657600080fd5b5061074f6115f4565b60405161075c9190613365565b60405180910390f35b34801561077157600080fd5b5061078c60048036038101906107879190613597565b6115fb565b005b34801561079a57600080fd5b506107a3611611565b6040516107b09190613285565b60405180910390f35b3480156107c557600080fd5b506107e060048036038101906107db9190613678565b611616565b005b3480156107ee57600080fd5b5061080960048036038101906108049190613181565b611678565b6040516108169190613129565b60405180910390f35b6108396004803603810190610834919061375b565b611753565b005b34801561084757600080fd5b50610850611c07565b60405161085d9190613365565b60405180910390f35b34801561087257600080fd5b5061088d60048036038101906108889190613380565b611c2b565b005b34801561089b57600080fd5b506108b660048036038101906108b191906137bb565b611c4c565b6040516108c3919061307e565b60405180910390f35b60006108d782611ce0565b9050919050565b60006125fc6108ed6007611d5a565b14905090565b6060600080546109029061382a565b80601f016020809104026020016040519081016040528092919081815260200182805461092e9061382a565b801561097b5780601f106109505761010080835404028352916020019161097b565b820191906000526020600020905b81548152906001019060200180831161095e57829003601f168201915b5050505050905090565b600061099082611d68565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109d682610de5565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3d906138cd565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a65611db3565b73ffffffffffffffffffffffffffffffffffffffff161480610a945750610a9381610a8e611db3565b611c4c565b5b610ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aca9061395f565b60405180910390fd5b610add8383611dbb565b505050565b6000610aee6007611d5a565b905090565b610b04610afe611db3565b82611e74565b610b43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3a906139f1565b60405180910390fd5b610b4e838383611f09565b505050565b600060066000838152602001908152602001600020600101549050919050565b60085481565b610b8282610b53565b610b8b8161216f565b610b958383612183565b505050565b610ba2611db3565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0690613a83565b60405180910390fd5b610c198282612264565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610c478161216f565b81600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000801b610c998161216f565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610cdf573d6000803e3d6000fd5b5050565b610cfe83838360405180602001604052806000815250611616565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d2d8161216f565b60008211610d70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6790613aef565b60405180910390fd5b81600c819055505050565b600d60019054906101000a900460ff1681565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610db88161216f565b600d60019054906101000a900460ff1615600d60016101000a81548160ff02191690831515021790555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8490613b5b565b60405180910390fd5b80915050919050565b600c5481565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610ec68161216f565b81600b9081610ed59190613d27565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4190613e6b565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610fbb8161216f565b816008819055505050565b6125fc81565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66110618161216f565b81600a90816110709190613d27565b505050565b6060600180546110849061382a565b80601f01602080910402602001604051908101604052809291908181526020018280546110b09061382a565b80156110fd5780601f106110d2576101008083540402835291602001916110fd565b820191906000526020600020905b8154815290600101906020018083116110e057829003601f168201915b5050505050905090565b6000801b6111148161216f565b600d60009054906101000a900460ff1615611164576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115b90613ed7565b60405180910390fd5b6000600190505b82811161118f5761117c3382612346565b808061118790613f26565b91505061116b565b506001600d60006101000a81548160ff021916908315150217905550816007600001819055505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9722cf36040518163ffffffff1660e01b8152600401602060405180830381865afa158015611226573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124a9190613f83565b611289576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128090613ffc565b60405180910390fd5b600081116112cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c390614068565b60405180910390fd5b6125fc816112da6007611d5a565b6112e49190614088565b1115611325576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131c9061412e565b60405180910390fd5b61134f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610fcc565b61154c57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634b4687b56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e49190613f83565b15611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141b9061419a565b60405180910390fd5b600c548161143291906141ba565b341015611474576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146b9061426e565b60405180910390fd5b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600581106114fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f2906142da565b60405180910390fd5b600582826115099190614088565b111561154a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115419061436c565b60405180910390fd5b505b60005b818110156115de576115616007612364565b6001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115b19190614088565b925050819055506115cb336115c66007611d5a565b612346565b80806115d690613f26565b91505061154f565b5050565b60006115ed8261237a565b9050919050565b6000801b81565b61160d611606611db3565b83836123e6565b5050565b600581565b611627611621611db3565b83611e74565b611666576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165d906139f1565b60405180910390fd5b61167284848484612552565b50505050565b60606116838261237a565b6116c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b9906143fe565b60405180910390fd5b6000600a80546116d19061382a565b90501180156116ec5750600d60019054906101000a900460ff165b61172057600b6116fb836125ae565b60405160200161170c929190614529565b60405160208183030381529060405261174c565b600a61172b836125ae565b60405160200161173c929190614529565b6040516020818303038152906040525b9050919050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9722cf36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e49190613f83565b611823576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181a90613ffc565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634b4687b56040518163ffffffff1660e01b8152600401602060405180830381865afa158015611890573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b49190613f83565b6118f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ea906145ca565b60405180910390fd5b6000336040516020016119069190614632565b60405160208183030381529060405280519060200120905061196c838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506008548361270e565b6119ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a290614699565b60405180910390fd5b600084116119ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e590614068565b60405180910390fd5b6125fc846119fc6007611d5a565b611a069190614088565b1115611a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3e9061412e565b60405180910390fd5b600c5484611a5591906141ba565b341015611a97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8e9061426e565b60405180910390fd5b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060058110611b1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b15906142da565b60405180910390fd5b60058582611b2c9190614088565b1115611b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b649061436c565b60405180910390fd5b60005b85811015611bff57611b826007612364565b6001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bd29190614088565b92505081905550611bec33611be76007611d5a565b612346565b8080611bf790613f26565b915050611b70565b505050505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611c3482610b53565b611c3d8161216f565b611c478383612264565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d535750611d5282612725565b5b9050919050565b600081600001549050919050565b611d718161237a565b611db0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da790613b5b565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e2e83610de5565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611e8083610de5565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611ec25750611ec18185611c4c565b5b80611f0057508373ffffffffffffffffffffffffffffffffffffffff16611ee884610985565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611f2982610de5565b73ffffffffffffffffffffffffffffffffffffffff1614611f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f769061472b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611fee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe5906147bd565b60405180910390fd5b611ff9838383612807565b612004600082611dbb565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461205491906147dd565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120ab9190614088565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461216a83838361280c565b505050565b6121808161217b611db3565b612811565b50565b61218d8282610fcc565b6122605760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612205611db3565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61226e8282610fcc565b156123425760006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506122e7611db3565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6123608282604051806020016040528060008152506128ae565b5050565b6001816000016000828254019250508190555050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244b9061485d565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612545919061307e565b60405180910390a3505050565b61255d848484611f09565b61256984848484612909565b6125a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259f906148ef565b60405180910390fd5b50505050565b6060600082036125f5576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612709565b600082905060005b6000821461262757808061261090613f26565b915050600a82612620919061493e565b91506125fd565b60008167ffffffffffffffff811115612643576126426133f7565b5b6040519080825280601f01601f1916602001820160405280156126755781602001600182028036833780820191505090505b5090505b600085146127025760018261268e91906147dd565b9150600a8561269d919061496f565b60306126a99190614088565b60f81b8183815181106126bf576126be6149a0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856126fb919061493e565b9450612679565b8093505050505b919050565b60008261271b8584612a90565b1490509392505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127f057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061280057506127ff82612ae6565b5b9050919050565b505050565b505050565b61281b8282610fcc565b6128aa576128408173ffffffffffffffffffffffffffffffffffffffff166014612b50565b61284e8360001c6020612b50565b60405160200161285f929190614a67565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a19190613129565b60405180910390fd5b5050565b6128b88383612d8c565b6128c56000848484612909565b612904576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128fb906148ef565b60405180910390fd5b505050565b600061292a8473ffffffffffffffffffffffffffffffffffffffff16612f65565b15612a83578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612953611db3565b8786866040518563ffffffff1660e01b81526004016129759493929190614af6565b6020604051808303816000875af19250505080156129b157506040513d601f19601f820116820180604052508101906129ae9190614b57565b60015b612a33573d80600081146129e1576040519150601f19603f3d011682016040523d82523d6000602084013e6129e6565b606091505b506000815103612a2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a22906148ef565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612a88565b600190505b949350505050565b60008082905060005b8451811015612adb57612ac682868381518110612ab957612ab86149a0565b5b6020026020010151612f88565b91508080612ad390613f26565b915050612a99565b508091505092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b606060006002836002612b6391906141ba565b612b6d9190614088565b67ffffffffffffffff811115612b8657612b856133f7565b5b6040519080825280601f01601f191660200182016040528015612bb85781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612bf057612bef6149a0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612c5457612c536149a0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612c9491906141ba565b612c9e9190614088565b90505b6001811115612d3e577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612ce057612cdf6149a0565b5b1a60f81b828281518110612cf757612cf66149a0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612d3790614b84565b9050612ca1565b5060008414612d82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d7990614bf9565b60405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612dfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612df290614c65565b60405180910390fd5b612e048161237a565b15612e44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e3b90614cd1565b60405180910390fd5b612e5060008383612807565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ea09190614088565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612f616000838361280c565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000818310612fa057612f9b8284612fb3565b612fab565b612faa8383612fb3565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61301381612fde565b811461301e57600080fd5b50565b6000813590506130308161300a565b92915050565b60006020828403121561304c5761304b612fd4565b5b600061305a84828501613021565b91505092915050565b60008115159050919050565b61307881613063565b82525050565b6000602082019050613093600083018461306f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156130d35780820151818401526020810190506130b8565b60008484015250505050565b6000601f19601f8301169050919050565b60006130fb82613099565b61310581856130a4565b93506131158185602086016130b5565b61311e816130df565b840191505092915050565b6000602082019050818103600083015261314381846130f0565b905092915050565b6000819050919050565b61315e8161314b565b811461316957600080fd5b50565b60008135905061317b81613155565b92915050565b60006020828403121561319757613196612fd4565b5b60006131a58482850161316c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006131d9826131ae565b9050919050565b6131e9816131ce565b82525050565b600060208201905061320460008301846131e0565b92915050565b613213816131ce565b811461321e57600080fd5b50565b6000813590506132308161320a565b92915050565b6000806040838503121561324d5761324c612fd4565b5b600061325b85828601613221565b925050602061326c8582860161316c565b9150509250929050565b61327f8161314b565b82525050565b600060208201905061329a6000830184613276565b92915050565b6000806000606084860312156132b9576132b8612fd4565b5b60006132c786828701613221565b93505060206132d886828701613221565b92505060406132e98682870161316c565b9150509250925092565b6000819050919050565b613306816132f3565b811461331157600080fd5b50565b600081359050613323816132fd565b92915050565b60006020828403121561333f5761333e612fd4565b5b600061334d84828501613314565b91505092915050565b61335f816132f3565b82525050565b600060208201905061337a6000830184613356565b92915050565b6000806040838503121561339757613396612fd4565b5b60006133a585828601613314565b92505060206133b685828601613221565b9150509250929050565b6000602082840312156133d6576133d5612fd4565b5b60006133e484828501613221565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61342f826130df565b810181811067ffffffffffffffff8211171561344e5761344d6133f7565b5b80604052505050565b6000613461612fca565b905061346d8282613426565b919050565b600067ffffffffffffffff82111561348d5761348c6133f7565b5b613496826130df565b9050602081019050919050565b82818337600083830152505050565b60006134c56134c084613472565b613457565b9050828152602081018484840111156134e1576134e06133f2565b5b6134ec8482856134a3565b509392505050565b600082601f830112613509576135086133ed565b5b81356135198482602086016134b2565b91505092915050565b60006020828403121561353857613537612fd4565b5b600082013567ffffffffffffffff81111561355657613555612fd9565b5b613562848285016134f4565b91505092915050565b61357481613063565b811461357f57600080fd5b50565b6000813590506135918161356b565b92915050565b600080604083850312156135ae576135ad612fd4565b5b60006135bc85828601613221565b92505060206135cd85828601613582565b9150509250929050565b600067ffffffffffffffff8211156135f2576135f16133f7565b5b6135fb826130df565b9050602081019050919050565b600061361b613616846135d7565b613457565b905082815260208101848484011115613637576136366133f2565b5b6136428482856134a3565b509392505050565b600082601f83011261365f5761365e6133ed565b5b813561366f848260208601613608565b91505092915050565b6000806000806080858703121561369257613691612fd4565b5b60006136a087828801613221565b94505060206136b187828801613221565b93505060406136c28782880161316c565b925050606085013567ffffffffffffffff8111156136e3576136e2612fd9565b5b6136ef8782880161364a565b91505092959194509250565b600080fd5b600080fd5b60008083601f84011261371b5761371a6133ed565b5b8235905067ffffffffffffffff811115613738576137376136fb565b5b60208301915083602082028301111561375457613753613700565b5b9250929050565b60008060006040848603121561377457613773612fd4565b5b60006137828682870161316c565b935050602084013567ffffffffffffffff8111156137a3576137a2612fd9565b5b6137af86828701613705565b92509250509250925092565b600080604083850312156137d2576137d1612fd4565b5b60006137e085828601613221565b92505060206137f185828601613221565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061384257607f821691505b602082108103613855576138546137fb565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006138b76021836130a4565b91506138c28261385b565b604082019050919050565b600060208201905081810360008301526138e6816138aa565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613949603e836130a4565b9150613954826138ed565b604082019050919050565b600060208201905081810360008301526139788161393c565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006139db602e836130a4565b91506139e68261397f565b604082019050919050565b60006020820190508181036000830152613a0a816139ce565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613a6d602f836130a4565b9150613a7882613a11565b604082019050919050565b60006020820190508181036000830152613a9c81613a60565b9050919050565b7f436f7374206d7573742062652067726561746572207468616e20302065746800600082015250565b6000613ad9601f836130a4565b9150613ae482613aa3565b602082019050919050565b60006020820190508181036000830152613b0881613acc565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613b456018836130a4565b9150613b5082613b0f565b602082019050919050565b60006020820190508181036000830152613b7481613b38565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613bdd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613ba0565b613be78683613ba0565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613c24613c1f613c1a8461314b565b613bff565b61314b565b9050919050565b6000819050919050565b613c3e83613c09565b613c52613c4a82613c2b565b848454613bad565b825550505050565b600090565b613c67613c5a565b613c72818484613c35565b505050565b5b81811015613c9657613c8b600082613c5f565b600181019050613c78565b5050565b601f821115613cdb57613cac81613b7b565b613cb584613b90565b81016020851015613cc4578190505b613cd8613cd085613b90565b830182613c77565b50505b505050565b600082821c905092915050565b6000613cfe60001984600802613ce0565b1980831691505092915050565b6000613d178383613ced565b9150826002028217905092915050565b613d3082613099565b67ffffffffffffffff811115613d4957613d486133f7565b5b613d53825461382a565b613d5e828285613c9a565b600060209050601f831160018114613d915760008415613d7f578287015190505b613d898582613d0b565b865550613df1565b601f198416613d9f86613b7b565b60005b82811015613dc757848901518255600182019150602085019450602081019050613da2565b86831015613de45784890151613de0601f891682613ced565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613e556029836130a4565b9150613e6082613df9565b604082019050919050565b60006020820190508181036000830152613e8481613e48565b9050919050565b7f416c7265616479207072656d696e746564000000000000000000000000000000600082015250565b6000613ec16011836130a4565b9150613ecc82613e8b565b602082019050919050565b60006020820190508181036000830152613ef081613eb4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613f318261314b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613f6357613f62613ef7565b5b600182019050919050565b600081519050613f7d8161356b565b92915050565b600060208284031215613f9957613f98612fd4565b5b6000613fa784828501613f6e565b91505092915050565b7f4d696e74206e6f74207374617274656420796574000000000000000000000000600082015250565b6000613fe66014836130a4565b9150613ff182613fb0565b602082019050919050565b6000602082019050818103600083015261401581613fd9565b9050919050565b7f496e76616c6964206d696e7420636f756e740000000000000000000000000000600082015250565b60006140526012836130a4565b915061405d8261401c565b602082019050919050565b6000602082019050818103600083015261408181614045565b9050919050565b60006140938261314b565b915061409e8361314b565b92508282019050808211156140b6576140b5613ef7565b5b92915050565b7f526571756573746564206d696e7420636f756e7420657863656564732073757060008201527f706c790000000000000000000000000000000000000000000000000000000000602082015250565b60006141186023836130a4565b9150614123826140bc565b604082019050919050565b600060208201905081810360008301526141478161410b565b9050919050565b7f57686974656c697374206d696e74206f6e6c7900000000000000000000000000600082015250565b60006141846013836130a4565b915061418f8261414e565b602082019050919050565b600060208201905081810360008301526141b381614177565b9050919050565b60006141c58261314b565b91506141d08361314b565b92508282026141de8161314b565b915082820484148315176141f5576141f4613ef7565b5b5092915050565b7f5472616e73616374696f6e2076616c756520646964206e6f74206d656574206d60008201527f696e742070726963650000000000000000000000000000000000000000000000602082015250565b60006142586029836130a4565b9150614263826141fc565b604082019050919050565b600060208201905081810360008301526142878161424b565b9050919050565b7f416c7265616479206d696e74656420746865206d617820616c6c6f7765640000600082015250565b60006142c4601e836130a4565b91506142cf8261428e565b602082019050919050565b600060208201905081810360008301526142f3816142b7565b9050919050565b7f526571756573746564206d696e7420636f756e742065786365656473206d617860008201527f20616c6c6f776564000000000000000000000000000000000000000000000000602082015250565b60006143566028836130a4565b9150614361826142fa565b604082019050919050565b6000602082019050818103600083015261438581614349565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006143e8602f836130a4565b91506143f38261438c565b604082019050919050565b60006020820190508181036000830152614417816143db565b9050919050565b600081905092915050565b600081546144368161382a565b614440818661441e565b9450600182166000811461445b5760018114614470576144a3565b60ff19831686528115158202860193506144a3565b61447985613b7b565b60005b8381101561449b5781548189015260018201915060208101905061447c565b838801955050505b50505092915050565b60006144b782613099565b6144c1818561441e565b93506144d18185602086016130b5565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061451360058361441e565b915061451e826144dd565b600582019050919050565b60006145358285614429565b915061454182846144ac565b915061454c82614506565b91508190509392505050565b7f4d6574686f642063616e206f6e6c79206265207573656420647572696e67206560008201527f61726c79206d696e740000000000000000000000000000000000000000000000602082015250565b60006145b46029836130a4565b91506145bf82614558565b604082019050919050565b600060208201905081810360008301526145e3816145a7565b9050919050565b60008160601b9050919050565b6000614602826145ea565b9050919050565b6000614614826145f7565b9050919050565b61462c614627826131ce565b614609565b82525050565b600061463e828461461b565b60148201915081905092915050565b7f55736572206973206e6f742077686974656c6973746564000000000000000000600082015250565b60006146836017836130a4565b915061468e8261464d565b602082019050919050565b600060208201905081810360008301526146b281614676565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006147156025836130a4565b9150614720826146b9565b604082019050919050565b6000602082019050818103600083015261474481614708565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006147a76024836130a4565b91506147b28261474b565b604082019050919050565b600060208201905081810360008301526147d68161479a565b9050919050565b60006147e88261314b565b91506147f38361314b565b925082820390508181111561480b5761480a613ef7565b5b92915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006148476019836130a4565b915061485282614811565b602082019050919050565b600060208201905081810360008301526148768161483a565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006148d96032836130a4565b91506148e48261487d565b604082019050919050565b60006020820190508181036000830152614908816148cc565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006149498261314b565b91506149548361314b565b9250826149645761496361490f565b5b828204905092915050565b600061497a8261314b565b91506149858361314b565b9250826149955761499461490f565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614a0560178361441e565b9150614a10826149cf565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614a5160118361441e565b9150614a5c82614a1b565b601182019050919050565b6000614a72826149f8565b9150614a7e82856144ac565b9150614a8982614a44565b9150614a9582846144ac565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000614ac882614aa1565b614ad28185614aac565b9350614ae28185602086016130b5565b614aeb816130df565b840191505092915050565b6000608082019050614b0b60008301876131e0565b614b1860208301866131e0565b614b256040830185613276565b8181036060830152614b378184614abd565b905095945050505050565b600081519050614b518161300a565b92915050565b600060208284031215614b6d57614b6c612fd4565b5b6000614b7b84828501614b42565b91505092915050565b6000614b8f8261314b565b915060008203614ba257614ba1613ef7565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614be36020836130a4565b9150614bee82614bad565b602082019050919050565b60006020820190508181036000830152614c1281614bd6565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614c4f6020836130a4565b9150614c5a82614c19565b602082019050919050565b60006020820190508181036000830152614c7e81614c42565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614cbb601c836130a4565b9150614cc682614c85565b602082019050919050565b60006020820190508181036000830152614cea81614cae565b905091905056fea264697066735822122077fc6101448d850776593c947fefc89dd6f1c5ca3b0b288b0b6dde3d32cc452164736f6c63430008110033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001647656e6573697320436f6c6c656374696f6e20322e300000000000000000000000000000000000000000000000000000000000000000000000000000000000094d4f4445524e49535400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696175717879793432756e696c3262366772376a707a6e65356d6e6377647971716e37636733786b79746473666f6f6578663774652f0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102255760003560e01c80636afd4ba211610123578063a0bb2b54116100ab578063c87b56dd1161006f578063c87b56dd146107e2578063d2cab0561461081f578063d53913931461083b578063d547741f14610866578063e985e9c51461088f57610225565b8063a0bb2b54146106fd578063a217fddf1461073a578063a22cb46514610765578063b19960e61461078e578063b88d4fde146107b957610225565b806391d14854116100f257806391d148541461062757806395652cfa1461066457806395d89b411461068d5780639d5aef30146106b8578063a0712d68146106e157610225565b80636afd4ba21461056d57806370a08231146105965780637cb64759146105d3578063902d55a5146105fc57610225565b80632f2ff15d116101b157806344a0d68a1161017557806344a0d68a1461049a57806351830227146104c35780635b8ad429146104ee5780636352211e146105055780636817c76c1461054257610225565b80632f2ff15d146103df57806336568abe1461040857806338478ae7146104315780633ccfd60b1461045a57806342842e0e1461047157610225565b8063095ea7b3116101f8578063095ea7b3146102fa57806318160ddd1461032357806323b872dd1461034e578063248a9ca3146103775780632eb4a7ab146103b457610225565b806301ffc9a71461022a578063021313cf1461026757806306fdde0314610292578063081812fc146102bd575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c9190613036565b6108cc565b60405161025e919061307e565b60405180910390f35b34801561027357600080fd5b5061027c6108de565b604051610289919061307e565b60405180910390f35b34801561029e57600080fd5b506102a76108f3565b6040516102b49190613129565b60405180910390f35b3480156102c957600080fd5b506102e460048036038101906102df9190613181565b610985565b6040516102f191906131ef565b60405180910390f35b34801561030657600080fd5b50610321600480360381019061031c9190613236565b6109cb565b005b34801561032f57600080fd5b50610338610ae2565b6040516103459190613285565b60405180910390f35b34801561035a57600080fd5b50610375600480360381019061037091906132a0565b610af3565b005b34801561038357600080fd5b5061039e60048036038101906103999190613329565b610b53565b6040516103ab9190613365565b60405180910390f35b3480156103c057600080fd5b506103c9610b73565b6040516103d69190613365565b60405180910390f35b3480156103eb57600080fd5b5061040660048036038101906104019190613380565b610b79565b005b34801561041457600080fd5b5061042f600480360381019061042a9190613380565b610b9a565b005b34801561043d57600080fd5b50610458600480360381019061045391906133c0565b610c1d565b005b34801561046657600080fd5b5061046f610c8c565b005b34801561047d57600080fd5b50610498600480360381019061049391906132a0565b610ce3565b005b3480156104a657600080fd5b506104c160048036038101906104bc9190613181565b610d03565b005b3480156104cf57600080fd5b506104d8610d7b565b6040516104e5919061307e565b60405180910390f35b3480156104fa57600080fd5b50610503610d8e565b005b34801561051157600080fd5b5061052c60048036038101906105279190613181565b610de5565b60405161053991906131ef565b60405180910390f35b34801561054e57600080fd5b50610557610e96565b6040516105649190613285565b60405180910390f35b34801561057957600080fd5b50610594600480360381019061058f9190613522565b610e9c565b005b3480156105a257600080fd5b506105bd60048036038101906105b891906133c0565b610eda565b6040516105ca9190613285565b60405180910390f35b3480156105df57600080fd5b506105fa60048036038101906105f59190613329565b610f91565b005b34801561060857600080fd5b50610611610fc6565b60405161061e9190613285565b60405180910390f35b34801561063357600080fd5b5061064e60048036038101906106499190613380565b610fcc565b60405161065b919061307e565b60405180910390f35b34801561067057600080fd5b5061068b60048036038101906106869190613522565b611037565b005b34801561069957600080fd5b506106a2611075565b6040516106af9190613129565b60405180910390f35b3480156106c457600080fd5b506106df60048036038101906106da9190613181565b611107565b005b6106fb60048036038101906106f69190613181565b6111b9565b005b34801561070957600080fd5b50610724600480360381019061071f9190613181565b6115e2565b604051610731919061307e565b60405180910390f35b34801561074657600080fd5b5061074f6115f4565b60405161075c9190613365565b60405180910390f35b34801561077157600080fd5b5061078c60048036038101906107879190613597565b6115fb565b005b34801561079a57600080fd5b506107a3611611565b6040516107b09190613285565b60405180910390f35b3480156107c557600080fd5b506107e060048036038101906107db9190613678565b611616565b005b3480156107ee57600080fd5b5061080960048036038101906108049190613181565b611678565b6040516108169190613129565b60405180910390f35b6108396004803603810190610834919061375b565b611753565b005b34801561084757600080fd5b50610850611c07565b60405161085d9190613365565b60405180910390f35b34801561087257600080fd5b5061088d60048036038101906108889190613380565b611c2b565b005b34801561089b57600080fd5b506108b660048036038101906108b191906137bb565b611c4c565b6040516108c3919061307e565b60405180910390f35b60006108d782611ce0565b9050919050565b60006125fc6108ed6007611d5a565b14905090565b6060600080546109029061382a565b80601f016020809104026020016040519081016040528092919081815260200182805461092e9061382a565b801561097b5780601f106109505761010080835404028352916020019161097b565b820191906000526020600020905b81548152906001019060200180831161095e57829003601f168201915b5050505050905090565b600061099082611d68565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109d682610de5565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3d906138cd565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a65611db3565b73ffffffffffffffffffffffffffffffffffffffff161480610a945750610a9381610a8e611db3565b611c4c565b5b610ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aca9061395f565b60405180910390fd5b610add8383611dbb565b505050565b6000610aee6007611d5a565b905090565b610b04610afe611db3565b82611e74565b610b43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3a906139f1565b60405180910390fd5b610b4e838383611f09565b505050565b600060066000838152602001908152602001600020600101549050919050565b60085481565b610b8282610b53565b610b8b8161216f565b610b958383612183565b505050565b610ba2611db3565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0690613a83565b60405180910390fd5b610c198282612264565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610c478161216f565b81600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000801b610c998161216f565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610cdf573d6000803e3d6000fd5b5050565b610cfe83838360405180602001604052806000815250611616565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d2d8161216f565b60008211610d70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6790613aef565b60405180910390fd5b81600c819055505050565b600d60019054906101000a900460ff1681565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610db88161216f565b600d60019054906101000a900460ff1615600d60016101000a81548160ff02191690831515021790555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8490613b5b565b60405180910390fd5b80915050919050565b600c5481565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610ec68161216f565b81600b9081610ed59190613d27565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4190613e6b565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610fbb8161216f565b816008819055505050565b6125fc81565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66110618161216f565b81600a90816110709190613d27565b505050565b6060600180546110849061382a565b80601f01602080910402602001604051908101604052809291908181526020018280546110b09061382a565b80156110fd5780601f106110d2576101008083540402835291602001916110fd565b820191906000526020600020905b8154815290600101906020018083116110e057829003601f168201915b5050505050905090565b6000801b6111148161216f565b600d60009054906101000a900460ff1615611164576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115b90613ed7565b60405180910390fd5b6000600190505b82811161118f5761117c3382612346565b808061118790613f26565b91505061116b565b506001600d60006101000a81548160ff021916908315150217905550816007600001819055505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9722cf36040518163ffffffff1660e01b8152600401602060405180830381865afa158015611226573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124a9190613f83565b611289576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128090613ffc565b60405180910390fd5b600081116112cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c390614068565b60405180910390fd5b6125fc816112da6007611d5a565b6112e49190614088565b1115611325576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131c9061412e565b60405180910390fd5b61134f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610fcc565b61154c57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634b4687b56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e49190613f83565b15611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141b9061419a565b60405180910390fd5b600c548161143291906141ba565b341015611474576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146b9061426e565b60405180910390fd5b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600581106114fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f2906142da565b60405180910390fd5b600582826115099190614088565b111561154a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115419061436c565b60405180910390fd5b505b60005b818110156115de576115616007612364565b6001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115b19190614088565b925050819055506115cb336115c66007611d5a565b612346565b80806115d690613f26565b91505061154f565b5050565b60006115ed8261237a565b9050919050565b6000801b81565b61160d611606611db3565b83836123e6565b5050565b600581565b611627611621611db3565b83611e74565b611666576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165d906139f1565b60405180910390fd5b61167284848484612552565b50505050565b60606116838261237a565b6116c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b9906143fe565b60405180910390fd5b6000600a80546116d19061382a565b90501180156116ec5750600d60019054906101000a900460ff165b61172057600b6116fb836125ae565b60405160200161170c929190614529565b60405160208183030381529060405261174c565b600a61172b836125ae565b60405160200161173c929190614529565b6040516020818303038152906040525b9050919050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9722cf36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e49190613f83565b611823576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181a90613ffc565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634b4687b56040518163ffffffff1660e01b8152600401602060405180830381865afa158015611890573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b49190613f83565b6118f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ea906145ca565b60405180910390fd5b6000336040516020016119069190614632565b60405160208183030381529060405280519060200120905061196c838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506008548361270e565b6119ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a290614699565b60405180910390fd5b600084116119ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e590614068565b60405180910390fd5b6125fc846119fc6007611d5a565b611a069190614088565b1115611a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3e9061412e565b60405180910390fd5b600c5484611a5591906141ba565b341015611a97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8e9061426e565b60405180910390fd5b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060058110611b1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b15906142da565b60405180910390fd5b60058582611b2c9190614088565b1115611b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b649061436c565b60405180910390fd5b60005b85811015611bff57611b826007612364565b6001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bd29190614088565b92505081905550611bec33611be76007611d5a565b612346565b8080611bf790613f26565b915050611b70565b505050505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611c3482610b53565b611c3d8161216f565b611c478383612264565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d535750611d5282612725565b5b9050919050565b600081600001549050919050565b611d718161237a565b611db0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da790613b5b565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e2e83610de5565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611e8083610de5565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611ec25750611ec18185611c4c565b5b80611f0057508373ffffffffffffffffffffffffffffffffffffffff16611ee884610985565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611f2982610de5565b73ffffffffffffffffffffffffffffffffffffffff1614611f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f769061472b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611fee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe5906147bd565b60405180910390fd5b611ff9838383612807565b612004600082611dbb565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461205491906147dd565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120ab9190614088565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461216a83838361280c565b505050565b6121808161217b611db3565b612811565b50565b61218d8282610fcc565b6122605760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612205611db3565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61226e8282610fcc565b156123425760006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506122e7611db3565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6123608282604051806020016040528060008152506128ae565b5050565b6001816000016000828254019250508190555050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244b9061485d565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612545919061307e565b60405180910390a3505050565b61255d848484611f09565b61256984848484612909565b6125a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259f906148ef565b60405180910390fd5b50505050565b6060600082036125f5576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612709565b600082905060005b6000821461262757808061261090613f26565b915050600a82612620919061493e565b91506125fd565b60008167ffffffffffffffff811115612643576126426133f7565b5b6040519080825280601f01601f1916602001820160405280156126755781602001600182028036833780820191505090505b5090505b600085146127025760018261268e91906147dd565b9150600a8561269d919061496f565b60306126a99190614088565b60f81b8183815181106126bf576126be6149a0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856126fb919061493e565b9450612679565b8093505050505b919050565b60008261271b8584612a90565b1490509392505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127f057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061280057506127ff82612ae6565b5b9050919050565b505050565b505050565b61281b8282610fcc565b6128aa576128408173ffffffffffffffffffffffffffffffffffffffff166014612b50565b61284e8360001c6020612b50565b60405160200161285f929190614a67565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a19190613129565b60405180910390fd5b5050565b6128b88383612d8c565b6128c56000848484612909565b612904576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128fb906148ef565b60405180910390fd5b505050565b600061292a8473ffffffffffffffffffffffffffffffffffffffff16612f65565b15612a83578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612953611db3565b8786866040518563ffffffff1660e01b81526004016129759493929190614af6565b6020604051808303816000875af19250505080156129b157506040513d601f19601f820116820180604052508101906129ae9190614b57565b60015b612a33573d80600081146129e1576040519150601f19603f3d011682016040523d82523d6000602084013e6129e6565b606091505b506000815103612a2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a22906148ef565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612a88565b600190505b949350505050565b60008082905060005b8451811015612adb57612ac682868381518110612ab957612ab86149a0565b5b6020026020010151612f88565b91508080612ad390613f26565b915050612a99565b508091505092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b606060006002836002612b6391906141ba565b612b6d9190614088565b67ffffffffffffffff811115612b8657612b856133f7565b5b6040519080825280601f01601f191660200182016040528015612bb85781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612bf057612bef6149a0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612c5457612c536149a0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612c9491906141ba565b612c9e9190614088565b90505b6001811115612d3e577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612ce057612cdf6149a0565b5b1a60f81b828281518110612cf757612cf66149a0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612d3790614b84565b9050612ca1565b5060008414612d82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d7990614bf9565b60405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612dfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612df290614c65565b60405180910390fd5b612e048161237a565b15612e44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e3b90614cd1565b60405180910390fd5b612e5060008383612807565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ea09190614088565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612f616000838361280c565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000818310612fa057612f9b8284612fb3565b612fab565b612faa8383612fb3565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61301381612fde565b811461301e57600080fd5b50565b6000813590506130308161300a565b92915050565b60006020828403121561304c5761304b612fd4565b5b600061305a84828501613021565b91505092915050565b60008115159050919050565b61307881613063565b82525050565b6000602082019050613093600083018461306f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156130d35780820151818401526020810190506130b8565b60008484015250505050565b6000601f19601f8301169050919050565b60006130fb82613099565b61310581856130a4565b93506131158185602086016130b5565b61311e816130df565b840191505092915050565b6000602082019050818103600083015261314381846130f0565b905092915050565b6000819050919050565b61315e8161314b565b811461316957600080fd5b50565b60008135905061317b81613155565b92915050565b60006020828403121561319757613196612fd4565b5b60006131a58482850161316c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006131d9826131ae565b9050919050565b6131e9816131ce565b82525050565b600060208201905061320460008301846131e0565b92915050565b613213816131ce565b811461321e57600080fd5b50565b6000813590506132308161320a565b92915050565b6000806040838503121561324d5761324c612fd4565b5b600061325b85828601613221565b925050602061326c8582860161316c565b9150509250929050565b61327f8161314b565b82525050565b600060208201905061329a6000830184613276565b92915050565b6000806000606084860312156132b9576132b8612fd4565b5b60006132c786828701613221565b93505060206132d886828701613221565b92505060406132e98682870161316c565b9150509250925092565b6000819050919050565b613306816132f3565b811461331157600080fd5b50565b600081359050613323816132fd565b92915050565b60006020828403121561333f5761333e612fd4565b5b600061334d84828501613314565b91505092915050565b61335f816132f3565b82525050565b600060208201905061337a6000830184613356565b92915050565b6000806040838503121561339757613396612fd4565b5b60006133a585828601613314565b92505060206133b685828601613221565b9150509250929050565b6000602082840312156133d6576133d5612fd4565b5b60006133e484828501613221565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61342f826130df565b810181811067ffffffffffffffff8211171561344e5761344d6133f7565b5b80604052505050565b6000613461612fca565b905061346d8282613426565b919050565b600067ffffffffffffffff82111561348d5761348c6133f7565b5b613496826130df565b9050602081019050919050565b82818337600083830152505050565b60006134c56134c084613472565b613457565b9050828152602081018484840111156134e1576134e06133f2565b5b6134ec8482856134a3565b509392505050565b600082601f830112613509576135086133ed565b5b81356135198482602086016134b2565b91505092915050565b60006020828403121561353857613537612fd4565b5b600082013567ffffffffffffffff81111561355657613555612fd9565b5b613562848285016134f4565b91505092915050565b61357481613063565b811461357f57600080fd5b50565b6000813590506135918161356b565b92915050565b600080604083850312156135ae576135ad612fd4565b5b60006135bc85828601613221565b92505060206135cd85828601613582565b9150509250929050565b600067ffffffffffffffff8211156135f2576135f16133f7565b5b6135fb826130df565b9050602081019050919050565b600061361b613616846135d7565b613457565b905082815260208101848484011115613637576136366133f2565b5b6136428482856134a3565b509392505050565b600082601f83011261365f5761365e6133ed565b5b813561366f848260208601613608565b91505092915050565b6000806000806080858703121561369257613691612fd4565b5b60006136a087828801613221565b94505060206136b187828801613221565b93505060406136c28782880161316c565b925050606085013567ffffffffffffffff8111156136e3576136e2612fd9565b5b6136ef8782880161364a565b91505092959194509250565b600080fd5b600080fd5b60008083601f84011261371b5761371a6133ed565b5b8235905067ffffffffffffffff811115613738576137376136fb565b5b60208301915083602082028301111561375457613753613700565b5b9250929050565b60008060006040848603121561377457613773612fd4565b5b60006137828682870161316c565b935050602084013567ffffffffffffffff8111156137a3576137a2612fd9565b5b6137af86828701613705565b92509250509250925092565b600080604083850312156137d2576137d1612fd4565b5b60006137e085828601613221565b92505060206137f185828601613221565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061384257607f821691505b602082108103613855576138546137fb565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006138b76021836130a4565b91506138c28261385b565b604082019050919050565b600060208201905081810360008301526138e6816138aa565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613949603e836130a4565b9150613954826138ed565b604082019050919050565b600060208201905081810360008301526139788161393c565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006139db602e836130a4565b91506139e68261397f565b604082019050919050565b60006020820190508181036000830152613a0a816139ce565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613a6d602f836130a4565b9150613a7882613a11565b604082019050919050565b60006020820190508181036000830152613a9c81613a60565b9050919050565b7f436f7374206d7573742062652067726561746572207468616e20302065746800600082015250565b6000613ad9601f836130a4565b9150613ae482613aa3565b602082019050919050565b60006020820190508181036000830152613b0881613acc565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613b456018836130a4565b9150613b5082613b0f565b602082019050919050565b60006020820190508181036000830152613b7481613b38565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613bdd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613ba0565b613be78683613ba0565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613c24613c1f613c1a8461314b565b613bff565b61314b565b9050919050565b6000819050919050565b613c3e83613c09565b613c52613c4a82613c2b565b848454613bad565b825550505050565b600090565b613c67613c5a565b613c72818484613c35565b505050565b5b81811015613c9657613c8b600082613c5f565b600181019050613c78565b5050565b601f821115613cdb57613cac81613b7b565b613cb584613b90565b81016020851015613cc4578190505b613cd8613cd085613b90565b830182613c77565b50505b505050565b600082821c905092915050565b6000613cfe60001984600802613ce0565b1980831691505092915050565b6000613d178383613ced565b9150826002028217905092915050565b613d3082613099565b67ffffffffffffffff811115613d4957613d486133f7565b5b613d53825461382a565b613d5e828285613c9a565b600060209050601f831160018114613d915760008415613d7f578287015190505b613d898582613d0b565b865550613df1565b601f198416613d9f86613b7b565b60005b82811015613dc757848901518255600182019150602085019450602081019050613da2565b86831015613de45784890151613de0601f891682613ced565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613e556029836130a4565b9150613e6082613df9565b604082019050919050565b60006020820190508181036000830152613e8481613e48565b9050919050565b7f416c7265616479207072656d696e746564000000000000000000000000000000600082015250565b6000613ec16011836130a4565b9150613ecc82613e8b565b602082019050919050565b60006020820190508181036000830152613ef081613eb4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613f318261314b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613f6357613f62613ef7565b5b600182019050919050565b600081519050613f7d8161356b565b92915050565b600060208284031215613f9957613f98612fd4565b5b6000613fa784828501613f6e565b91505092915050565b7f4d696e74206e6f74207374617274656420796574000000000000000000000000600082015250565b6000613fe66014836130a4565b9150613ff182613fb0565b602082019050919050565b6000602082019050818103600083015261401581613fd9565b9050919050565b7f496e76616c6964206d696e7420636f756e740000000000000000000000000000600082015250565b60006140526012836130a4565b915061405d8261401c565b602082019050919050565b6000602082019050818103600083015261408181614045565b9050919050565b60006140938261314b565b915061409e8361314b565b92508282019050808211156140b6576140b5613ef7565b5b92915050565b7f526571756573746564206d696e7420636f756e7420657863656564732073757060008201527f706c790000000000000000000000000000000000000000000000000000000000602082015250565b60006141186023836130a4565b9150614123826140bc565b604082019050919050565b600060208201905081810360008301526141478161410b565b9050919050565b7f57686974656c697374206d696e74206f6e6c7900000000000000000000000000600082015250565b60006141846013836130a4565b915061418f8261414e565b602082019050919050565b600060208201905081810360008301526141b381614177565b9050919050565b60006141c58261314b565b91506141d08361314b565b92508282026141de8161314b565b915082820484148315176141f5576141f4613ef7565b5b5092915050565b7f5472616e73616374696f6e2076616c756520646964206e6f74206d656574206d60008201527f696e742070726963650000000000000000000000000000000000000000000000602082015250565b60006142586029836130a4565b9150614263826141fc565b604082019050919050565b600060208201905081810360008301526142878161424b565b9050919050565b7f416c7265616479206d696e74656420746865206d617820616c6c6f7765640000600082015250565b60006142c4601e836130a4565b91506142cf8261428e565b602082019050919050565b600060208201905081810360008301526142f3816142b7565b9050919050565b7f526571756573746564206d696e7420636f756e742065786365656473206d617860008201527f20616c6c6f776564000000000000000000000000000000000000000000000000602082015250565b60006143566028836130a4565b9150614361826142fa565b604082019050919050565b6000602082019050818103600083015261438581614349565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006143e8602f836130a4565b91506143f38261438c565b604082019050919050565b60006020820190508181036000830152614417816143db565b9050919050565b600081905092915050565b600081546144368161382a565b614440818661441e565b9450600182166000811461445b5760018114614470576144a3565b60ff19831686528115158202860193506144a3565b61447985613b7b565b60005b8381101561449b5781548189015260018201915060208101905061447c565b838801955050505b50505092915050565b60006144b782613099565b6144c1818561441e565b93506144d18185602086016130b5565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061451360058361441e565b915061451e826144dd565b600582019050919050565b60006145358285614429565b915061454182846144ac565b915061454c82614506565b91508190509392505050565b7f4d6574686f642063616e206f6e6c79206265207573656420647572696e67206560008201527f61726c79206d696e740000000000000000000000000000000000000000000000602082015250565b60006145b46029836130a4565b91506145bf82614558565b604082019050919050565b600060208201905081810360008301526145e3816145a7565b9050919050565b60008160601b9050919050565b6000614602826145ea565b9050919050565b6000614614826145f7565b9050919050565b61462c614627826131ce565b614609565b82525050565b600061463e828461461b565b60148201915081905092915050565b7f55736572206973206e6f742077686974656c6973746564000000000000000000600082015250565b60006146836017836130a4565b915061468e8261464d565b602082019050919050565b600060208201905081810360008301526146b281614676565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006147156025836130a4565b9150614720826146b9565b604082019050919050565b6000602082019050818103600083015261474481614708565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006147a76024836130a4565b91506147b28261474b565b604082019050919050565b600060208201905081810360008301526147d68161479a565b9050919050565b60006147e88261314b565b91506147f38361314b565b925082820390508181111561480b5761480a613ef7565b5b92915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006148476019836130a4565b915061485282614811565b602082019050919050565b600060208201905081810360008301526148768161483a565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006148d96032836130a4565b91506148e48261487d565b604082019050919050565b60006020820190508181036000830152614908816148cc565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006149498261314b565b91506149548361314b565b9250826149645761496361490f565b5b828204905092915050565b600061497a8261314b565b91506149858361314b565b9250826149955761499461490f565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614a0560178361441e565b9150614a10826149cf565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614a5160118361441e565b9150614a5c82614a1b565b601182019050919050565b6000614a72826149f8565b9150614a7e82856144ac565b9150614a8982614a44565b9150614a9582846144ac565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000614ac882614aa1565b614ad28185614aac565b9350614ae28185602086016130b5565b614aeb816130df565b840191505092915050565b6000608082019050614b0b60008301876131e0565b614b1860208301866131e0565b614b256040830185613276565b8181036060830152614b378184614abd565b905095945050505050565b600081519050614b518161300a565b92915050565b600060208284031215614b6d57614b6c612fd4565b5b6000614b7b84828501614b42565b91505092915050565b6000614b8f8261314b565b915060008203614ba257614ba1613ef7565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614be36020836130a4565b9150614bee82614bad565b602082019050919050565b60006020820190508181036000830152614c1281614bd6565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614c4f6020836130a4565b9150614c5a82614c19565b602082019050919050565b60006020820190508181036000830152614c7e81614c42565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614cbb601c836130a4565b9150614cc682614c85565b602082019050919050565b60006020820190508181036000830152614cea81614cae565b905091905056fea264697066735822122077fc6101448d850776593c947fefc89dd6f1c5ca3b0b288b0b6dde3d32cc452164736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001647656e6573697320436f6c6c656374696f6e20322e300000000000000000000000000000000000000000000000000000000000000000000000000000000000094d4f4445524e49535400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696175717879793432756e696c3262366772376a707a6e65356d6e6377647971716e37636733786b79746473666f6f6578663774652f0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Genesis Collection 2.0
Arg [1] : _symbol (string): MODERNIST
Arg [2] : _placeholderTokenURI (string): ipfs://bafybeiauqxyy42unil2b6gr7jpzne5mncwdyqqn7cg3xkytdsfooexf7te/

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000016
Arg [4] : 47656e6573697320436f6c6c656374696f6e20322e3000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [6] : 4d4f4445524e4953540000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [8] : 697066733a2f2f626166796265696175717879793432756e696c326236677237
Arg [9] : 6a707a6e65356d6e6377647971716e37636733786b79746473666f6f65786637
Arg [10] : 74652f0000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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