ETH Price: $3,398.25 (+1.91%)

Token

AlphaHQ Access Pass (AHQ)
 

Overview

Max Total Supply

751 AHQ

Holders

613

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 AHQ
0xa5db44e5002d9558a04337f50f9212d5ce715a8a
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
AlphaHQ

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 16 : AlphaHQ.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;

// Author: Stephen Nelson @st3bas
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";

/*
      >>       >=>       >======>   >=>    >=>       >>             >=>    >=>     >===>     
     >>=>      >=>       >=>    >=> >=>    >=>      >>=>            >=>    >=>   >=>    >=>  
    >> >=>     >=>       >=>    >=> >=>    >=>     >> >=>           >=>    >=> >=>       >=> 
   >=>  >=>    >=>       >======>   >=====>>=>    >=>  >=>          >=====>>=> >=>       >=> 
  >=====>>=>   >=>       >=>        >=>    >=>   >=====>>=>         >=>    >=> >=>       >=> 
 >=>      >=>  >=>       >=>        >=>    >=>  >=>      >=>        >=>    >=>   >=> >> >=>  
>=>        >=> >=======> >=>        >=>    >=> >=>        >=>       >=>    >=>     >= >>=>   
                                                                                        >>   
*/



contract AlphaHQ is ERC721Enumerable, Ownable {
    using ECDSA for bytes32;
    using Counters for Counters.Counter;
    using SafeMath for uint256;

    Counters.Counter private _tokenIds;

    address public ALPHA_SIGNER;
    uint256 public MAX_SUPPLY = 2500;

    uint256 public WHITELIST_SALE_PRICE = 0.20 ether;
    bool public WHITELIST_SALE_ACTIVE = false;
    uint public WHITELIST_MAX_MINTS = 2;

    uint256 public PUBLIC_SALE_PRICE = 0.25 ether;
    bool public PUBLIC_SALE_ACTIVE = false;
    uint public PUBLIC_MAX_MINTS = 3;
    
    string public TOKEN_IMAGE = "https://ipfs.io/ipfs/bafybeibwsruzy3vcgne2yh4rbh6qdwpq5bq32mmsmzhiyicazlyoj33jtq";
    string public TOKEN_EXPIRED = "false";
    string public TOKEN_EXPIRY_TIME = "1682899200";

    event SignerUpdated(address alphaSigner);
    event TokenImageUpdated(string tokenImage);
    event TokenExpiryTimeUpdated(string tokenExpiryTime);
    event TokenExpiredUpdated(string tokenExpired);

    mapping(bytes => uint256) public usedSignatures;

    constructor() ERC721("AlphaHQ Access Pass", "AHQ") {
        _tokenIds.increment();
    }

    function setTokenImage(string memory _url) public onlyOwner {
        TOKEN_IMAGE = _url;
        emit TokenImageUpdated(TOKEN_IMAGE);
    }

    function setTokenExpiryTime(string memory _expiryTime) public onlyOwner {
        TOKEN_EXPIRY_TIME = _expiryTime;
        emit TokenExpiryTimeUpdated(TOKEN_EXPIRY_TIME);
    }

    function setTokenExpired(string memory _expired) public onlyOwner {
        TOKEN_EXPIRED = _expired;
        emit TokenExpiredUpdated(TOKEN_EXPIRED);
    }

    function _alphaHQSigner() internal view virtual returns (address) {
        return ALPHA_SIGNER;
    }

    function setAlphaHQSigner(address _signer) public onlyOwner {
        require(_signer != address(0), "signer cannot be 0x0");
        ALPHA_SIGNER = _signer;
        emit SignerUpdated(ALPHA_SIGNER);
    }

    function _mintSingleNFT() private {
        uint newTokenID = _tokenIds.current();
        _safeMint(msg.sender, newTokenID);
        _tokenIds.increment();
    }

    // Only used for alpha hq for giveaways and team access nfts
    function adminReserveNFTs(uint _count) public onlyOwner {
        uint totalMinted = _tokenIds.current();
        require(totalMinted.add(_count) < MAX_SUPPLY, "Not enough NFTs left to reserve");
        for (uint i = 0; i < _count; i++) {
            _mintSingleNFT();
        }
    }

    function publicMintToken(uint _count) public payable {
        uint totalMinted = _tokenIds.current();
        require(PUBLIC_SALE_ACTIVE, "Public sale is not active.");
        require(totalMinted.add(_count) <= MAX_SUPPLY, "Max token supply has been reached.");
        require(_count > 0 && _count <= PUBLIC_MAX_MINTS, "Cannot mint specified number of NFTs.");
        require(msg.value >= PUBLIC_SALE_PRICE.mul(_count), "Ether value sent is not correct.");

        for (uint i = 0; i < _count; i++) {
            _mintSingleNFT();
        }
    }

    function whitelistMintToken(uint8 _count, bytes memory signature) external payable {
        uint totalMinted = _tokenIds.current();
        require(WHITELIST_SALE_ACTIVE, "Whitelist sale is not active.");
        require(totalMinted.add(_count) <= MAX_SUPPLY, "Max token supply has been reached.");
        require(msg.sender == tx.origin, "You have to mint from a wallet.");
        require(_count > 0 && _count <= WHITELIST_MAX_MINTS, "Cannot mint specified number of NFTs.");
        require(msg.value >= WHITELIST_SALE_PRICE.mul(_count), "Ether value sent is not correct.");
		require(usedSignatures[signature] + _count < WHITELIST_MAX_MINTS + 1, "Exceeds whitelist allocation");
        require(_isSignedByAlphaSigner(_getSenderHash(msg.sender), signature), "Invalid signature.");
        usedSignatures[signature] += _count;
        
        for (uint i = 0; i < _count; i++) {
            _mintSingleNFT();
        }
    }

    function _getSenderHash(address _address) private pure returns (bytes32) {
        bytes32 hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n40", toAsciiString(_address)));
        return hash;
    }

    function _isSignedByAlphaSigner(bytes32 _hash, bytes memory _signature) private view returns (bool) {
        return ALPHA_SIGNER != address(0) && ALPHA_SIGNER == _recoverSigner(_hash, _signature);
    }

    function _recoverSigner(bytes32 hash, bytes memory signature) private pure returns (address) {
        bytes32 messageDigest = keccak256(
            abi.encodePacked(
                "\x19Ethereum Signed Message:\n32", 
                hash
            )
        );
        return ECDSA.recover(messageDigest, signature);
    }

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

        string memory json = Base64.encode(bytes(string(abi.encodePacked('{"name": "Alpha HQ Access pass", "description": "Access pass for membership to the Alpha HQ toolset and alpha information channels.", "attributes": [{"trait_type": "Expiration","value": "', TOKEN_EXPIRY_TIME, '"},{"trait_type": "Expired","value": "', TOKEN_EXPIRED,'"}], "image": "', TOKEN_IMAGE, '"}'))));
        json = string(abi.encodePacked('data:application/json;base64,', json));
        return json;
    }


    /** AHQ AHQ AHQ AHQ AHQ AHQ AHQ AHQ AHQ AHQ **/
    /** AHQ AHQ AHQ Owner Functions AHQ AHQ AHQ **/
    /** AHQ AHQ AHQ AHQ AHQ AHQ AHQ AHQ AHQ AHQ **/
    function withdraw() public onlyOwner {
        uint256 balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    function toggleWhitelistSale() public onlyOwner {
        WHITELIST_SALE_ACTIVE = !WHITELIST_SALE_ACTIVE;
    }

    function togglePublicSale() public onlyOwner {
        PUBLIC_SALE_ACTIVE = !PUBLIC_SALE_ACTIVE;
    }

    function setWhitelistSalePrice(uint256 newPrice) public onlyOwner {
        WHITELIST_SALE_PRICE = (1 ether * newPrice) / 100;
    }

    function setPublicSalePrice(uint256 newPrice) public onlyOwner {
        PUBLIC_SALE_PRICE = (1 ether * newPrice) / 100;
    }

    function toAsciiString(address x) private pure returns (string memory) {
        bytes memory s = new bytes(40);
        for (uint i = 0; i < 20; i++) {
            bytes1 b = bytes1(uint8(uint(uint160(x)) / (2**(8*(19 - i)))));
            bytes1 hi = bytes1(uint8(b) / 16);
            bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi));
            s[2*i] = char(hi);
            s[2*i+1] = char(lo);            
        }
        return string(s);
    }

    function char(bytes1 b) internal pure returns (bytes1 c) {
        if (uint8(b) < 10) return bytes1(uint8(b) + 0x30);
        else return bytes1(uint8(b) + 0x57);
    }
}

library Base64 {
    bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 2 of 16 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 3 of 16 : 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 4 of 16 : 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 5 of 16 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 16 : 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 8 of 16 : 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 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 12 of 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"alphaSigner","type":"address"}],"name":"SignerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"tokenExpired","type":"string"}],"name":"TokenExpiredUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"tokenExpiryTime","type":"string"}],"name":"TokenExpiryTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"tokenImage","type":"string"}],"name":"TokenImageUpdated","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":"ALPHA_SIGNER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MAX_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_ACTIVE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_EXPIRED","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_EXPIRY_TIME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_IMAGE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MAX_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_SALE_ACTIVE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"adminReserveNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"publicMintToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"_signer","type":"address"}],"name":"setAlphaHQSigner","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":"uint256","name":"newPrice","type":"uint256"}],"name":"setPublicSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_expired","type":"string"}],"name":"setTokenExpired","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_expiryTime","type":"string"}],"name":"setTokenExpiryTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"setTokenImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setWhitelistSalePrice","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":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleWhitelistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"usedSignatures","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_count","type":"uint8"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"whitelistMintToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6109c4600d556702c68af0bb140000600e55600f805460ff1990811690915560026010556703782dace9d900006011556012805490911690556003601355610100604052605060808181529062003c4560a03980516200006891601491602090910190620001e9565b506040805180820190915260058082526466616c736560d81b60209092019182526200009791601591620001e9565b5060408051808201909152600a808252690313638323839393230360b41b6020909201918252620000cb91601691620001e9565b50348015620000d957600080fd5b50604080518082018252601381527f416c70686148512041636365737320506173730000000000000000000000000060208083019182528351808501909452600384526241485160e81b9084015281519192916200013a91600091620001e9565b50805162000150906001906020840190620001e9565b5050506200016d620001676200018a60201b60201c565b6200018e565b62000184600b620001e060201b62001b711760201c565b620002cc565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b828054620001f7906200028f565b90600052602060002090601f0160209004810192826200021b576000855562000266565b82601f106200023657805160ff191683800117855562000266565b8280016001018555821562000266579182015b828111156200026657825182559160200191906001019062000249565b506200027492915062000278565b5090565b5b8082111562000274576000815560010162000279565b600181811c90821680620002a457607f821691505b60208210811415620002c657634e487b7160e01b600052602260045260246000fd5b50919050565b61396980620002dc6000396000f3fe6080604052600436106102dc5760003560e01c8063791a251911610184578063bc912e1a116100d6578063e3dd60d91161008a578063f2fde38b11610064578063f2fde38b146107aa578063f3d5145c146107ca578063f806147d146107e457600080fd5b8063e3dd60d914610714578063e949580e14610729578063e985e9c51461076157600080fd5b8063c87b56dd116100bb578063c87b56dd146106bf578063cd083ccf146106df578063e222c7f9146106ff57600080fd5b8063bc912e1a14610693578063c51c2d26146106a957600080fd5b80639d5534e211610138578063b5e71b7711610112578063b5e71b771461064b578063b5f46aa51461065e578063b88d4fde1461067357600080fd5b80639d5534e2146105f8578063a22cb4651461060b578063b35339e51461062b57600080fd5b80638da5cb5b116101695780638da5cb5b146105a557806395d89b41146105c3578063965539e1146105d857600080fd5b8063791a25191461056b57806389ba09f11461058b57600080fd5b806332cb6b0c1161023d578063513cd4a2116101f157806370a08231116101cb57806370a0823114610516578063715018a61461053657806376dc68911461054b57600080fd5b8063513cd4a2146104cb57806359eda1b5146104e15780636352211e146104f657600080fd5b80633ccfd60b116102225780633ccfd60b1461047657806342842e0e1461048b5780634f6ccce7146104ab57600080fd5b806332cb6b0c146104405780633515fbdb1461045657600080fd5b80630d2763961161029457806318160ddd1161027957806318160ddd146103eb57806323b872dd146104005780632f745c591461042057600080fd5b80630d276396146103b657806311097246146103d657600080fd5b806307e89ec0116102c557806307e89ec014610338578063081812fc1461035c578063095ea7b31461039457600080fd5b806301ffc9a7146102e157806306fdde0314610316575b600080fd5b3480156102ed57600080fd5b506103016102fc366004612f07565b610804565b60405190151581526020015b60405180910390f35b34801561032257600080fd5b5061032b610848565b60405161030d9190612f7c565b34801561034457600080fd5b5061034e60115481565b60405190815260200161030d565b34801561036857600080fd5b5061037c610377366004612f8f565b6108da565b6040516001600160a01b03909116815260200161030d565b3480156103a057600080fd5b506103b46103af366004612fbf565b610974565b005b3480156103c257600080fd5b506103b46103d1366004612f8f565b610aa6565b3480156103e257600080fd5b5061032b610b7b565b3480156103f757600080fd5b5060085461034e565b34801561040c57600080fd5b506103b461041b366004612fe9565b610c09565b34801561042c57600080fd5b5061034e61043b366004612fbf565b610c90565b34801561044c57600080fd5b5061034e600d5481565b34801561046257600080fd5b506103b4610471366004612f8f565b610d38565b34801561048257600080fd5b506103b4610da4565b34801561049757600080fd5b506103b46104a6366004612fe9565b610e1f565b3480156104b757600080fd5b5061034e6104c6366004612f8f565b610e3a565b3480156104d757600080fd5b5061034e60105481565b3480156104ed57600080fd5b506103b4610ede565b34801561050257600080fd5b5061037c610511366004612f8f565b610f3a565b34801561052257600080fd5b5061034e610531366004613025565b610fc5565b34801561054257600080fd5b506103b461105f565b34801561055757600080fd5b506103b46105663660046130cc565b6110b3565b34801561057757600080fd5b506103b4610586366004612f8f565b61114a565b34801561059757600080fd5b506012546103019060ff1681565b3480156105b157600080fd5b50600a546001600160a01b031661037c565b3480156105cf57600080fd5b5061032b6111b6565b3480156105e457600080fd5b506103b46105f3366004613025565b6111c5565b6103b4610606366004613135565b6112b1565b34801561061757600080fd5b506103b461062636600461318b565b6115e5565b34801561063757600080fd5b506103b46106463660046130cc565b6115f0565b6103b4610659366004612f8f565b61167c565b34801561066a57600080fd5b5061032b61182f565b34801561067f57600080fd5b506103b461068e3660046131c7565b61183c565b34801561069f57600080fd5b5061034e600e5481565b3480156106b557600080fd5b5061034e60135481565b3480156106cb57600080fd5b5061032b6106da366004612f8f565b6118c4565b3480156106eb57600080fd5b50600c5461037c906001600160a01b031681565b34801561070b57600080fd5b506103b46119ac565b34801561072057600080fd5b5061032b611a08565b34801561073557600080fd5b5061034e61074436600461322f565b805160208183018101805160178252928201919093012091525481565b34801561076d57600080fd5b5061030161077c366004613264565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107b657600080fd5b506103b46107c5366004613025565b611a15565b3480156107d657600080fd5b50600f546103019060ff1681565b3480156107f057600080fd5b506103b46107ff3660046130cc565b611ae5565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610842575061084282611b7a565b92915050565b60606000805461085790613297565b80601f016020809104026020016040519081016040528092919081815260200182805461088390613297565b80156108d05780601f106108a5576101008083540402835291602001916108d0565b820191906000526020600020905b8154815290600101906020018083116108b357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109585760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061097f82610f3a565b9050806001600160a01b0316836001600160a01b03161415610a095760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161094f565b336001600160a01b0382161480610a255750610a25813361077c565b610a975760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161094f565b610aa18383611c15565b505050565b600a546001600160a01b03163314610aee5760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b6000610af9600b5490565b600d54909150610b098284611c83565b10610b565760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f756768204e465473206c65667420746f207265736572766500604482015260640161094f565b60005b82811015610aa157610b69611c96565b80610b73816132e8565b915050610b59565b60148054610b8890613297565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb490613297565b8015610c015780601f10610bd657610100808354040283529160200191610c01565b820191906000526020600020905b815481529060010190602001808311610be457829003601f168201915b505050505081565b610c133382611cbb565b610c855760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161094f565b610aa1838383611db2565b6000610c9b83610fc5565b8210610d0f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161094f565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610d805760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b6064610d9482670de0b6b3a7640000613303565b610d9e9190613338565b600e5550565b600a546001600160a01b03163314610dec5760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b6040514790339082156108fc029083906000818181858888f19350505050158015610e1b573d6000803e3d6000fd5b5050565b610aa18383836040518060200160405280600081525061183c565b6000610e4560085490565b8210610eb95760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161094f565b60088281548110610ecc57610ecc61334c565b90600052602060002001549050919050565b600a546001600160a01b03163314610f265760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b600f805460ff19811660ff90911615179055565b6000818152600260205260408120546001600160a01b0316806108425760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161094f565b60006001600160a01b0382166110435760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161094f565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146110a75760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b6110b16000611f8a565b565b600a546001600160a01b031633146110fb5760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b805161110e906016906020840190612e58565b507f0d54b4f270ccf290ebb00691be85f210f13ed3fbd3bbebfcc69b7b54a55b8c8d601660405161113f9190613362565b60405180910390a150565b600a546001600160a01b031633146111925760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b60646111a682670de0b6b3a7640000613303565b6111b09190613338565b60115550565b60606001805461085790613297565b600a546001600160a01b0316331461120d5760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b6001600160a01b0381166112635760405162461bcd60e51b815260206004820152601460248201527f7369676e65722063616e6e6f7420626520307830000000000000000000000000604482015260640161094f565b600c80546001600160a01b0319166001600160a01b0383169081179091556040519081527f5553331329228fbd4123164423717a4a7539f6dfa1c3279a923b98fd681a6c739060200161113f565b60006112bc600b5490565b600f5490915060ff166113115760405162461bcd60e51b815260206004820152601d60248201527f57686974656c6973742073616c65206973206e6f74206163746976652e000000604482015260640161094f565b600d546113218260ff8616611c83565b111561137a5760405162461bcd60e51b815260206004820152602260248201527f4d617820746f6b656e20737570706c7920686173206265656e20726561636865604482015261321760f11b606482015260840161094f565b3332146113c95760405162461bcd60e51b815260206004820152601f60248201527f596f75206861766520746f206d696e742066726f6d20612077616c6c65742e00604482015260640161094f565b60008360ff161180156113e157506010548360ff1611155b61143b5760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f74206d696e7420737065636966696564206e756d626572206f662060448201526427232a399760d91b606482015260840161094f565b600e5461144b9060ff8516611fdc565b34101561149a5760405162461bcd60e51b815260206004820181905260248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563742e604482015260640161094f565b6010546114a89060016133e7565b8360ff166017846040516114bc91906133ff565b9081526020016040518091039020546114d591906133e7565b106115225760405162461bcd60e51b815260206004820152601c60248201527f457863656564732077686974656c69737420616c6c6f636174696f6e00000000604482015260640161094f565b61153461152e33611fe8565b83612023565b6115805760405162461bcd60e51b815260206004820152601260248201527f496e76616c6964207369676e61747572652e0000000000000000000000000000604482015260640161094f565b8260ff1660178360405161159491906133ff565b908152602001604051809103902060008282546115b191906133e7565b90915550600090505b8360ff168110156115df576115cd611c96565b806115d7816132e8565b9150506115ba565b50505050565b610e1b33838361205d565b600a546001600160a01b031633146116385760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b805161164b906015906020840190612e58565b507f841342a8175b8ec3a13051374811e09283d3f95aeaec88c26063630972d4683c601560405161113f9190613362565b6000611687600b5490565b60125490915060ff166116dc5760405162461bcd60e51b815260206004820152601a60248201527f5075626c69632073616c65206973206e6f74206163746976652e000000000000604482015260640161094f565b600d546116e98284611c83565b11156117425760405162461bcd60e51b815260206004820152602260248201527f4d617820746f6b656e20737570706c7920686173206265656e20726561636865604482015261321760f11b606482015260840161094f565b60008211801561175457506013548211155b6117ae5760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f74206d696e7420737065636966696564206e756d626572206f662060448201526427232a399760d91b606482015260840161094f565b6011546117bb9083611fdc565b34101561180a5760405162461bcd60e51b815260206004820181905260248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563742e604482015260640161094f565b60005b82811015610aa15761181d611c96565b80611827816132e8565b91505061180d565b60158054610b8890613297565b6118463383611cbb565b6118b85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161094f565b6115df8484848461212c565b6000818152600260205260409020546060906001600160a01b03166119515760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e2e00000000000000000000000000000000606482015260840161094f565b600061198260166015601460405160200161196e9392919061348a565b6040516020818303038152906040526121aa565b9050806040516020016119959190613632565b60408051601f198184030181529190529392505050565b600a546001600160a01b031633146119f45760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b6012805460ff19811660ff90911615179055565b60168054610b8890613297565b600a546001600160a01b03163314611a5d5760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b6001600160a01b038116611ad95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161094f565b611ae281611f8a565b50565b600a546001600160a01b03163314611b2d5760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b8051611b40906014906020840190612e58565b507f4d98ac2b8d8ddc5ab05a532ec99672f12250740f3de0c067fff75fa3c09066fc601460405161113f9190613362565b80546001019055565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611bdd57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061084257507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610842565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c4a82610f3a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611c8f82846133e7565b9392505050565b6000611ca1600b5490565b9050611cad3382612347565b611ae2600b80546001019055565b6000818152600260205260408120546001600160a01b0316611d345760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161094f565b6000611d3f83610f3a565b9050806001600160a01b0316846001600160a01b03161480611d7a5750836001600160a01b0316611d6f846108da565b6001600160a01b0316145b80611daa57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611dc582610f3a565b6001600160a01b031614611e415760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161094f565b6001600160a01b038216611ebc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161094f565b611ec7838383612361565b611ed2600082611c15565b6001600160a01b0383166000908152600360205260408120805460019290611efb908490613677565b90915550506001600160a01b0382166000908152600360205260408120805460019290611f299084906133e7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611c8f8284613303565b600080611ff483612419565b604051602001612004919061368e565b60408051601f1981840301815291905280516020909101209392505050565b600c546000906001600160a01b031615801590611c8f57506120458383612590565b600c546001600160a01b039182169116149392505050565b816001600160a01b0316836001600160a01b031614156120bf5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161094f565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612137848484611db2565b612143848484846125ea565b6115df5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161094f565b8051606090806121ca575050604080516020810190915260008152919050565b600060036121d98360026133e7565b6121e39190613338565b6121ee906004613303565b905060006121fd8260206133e7565b67ffffffffffffffff81111561221557612215613040565b6040519080825280601f01601f19166020018201604052801561223f576020820181803683370190505b50905060006040518060600160405280604081526020016138d4604091399050600181016020830160005b868110156122cb576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b83526004909201910161226a565b5060038606600181146122e5576002811461231157612339565b7f3d3d000000000000000000000000000000000000000000000000000000000000600119830152612339565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b505050918152949350505050565b610e1b828260405180602001604052806000815250612733565b6001600160a01b0383166123bc576123b781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6123df565b816001600160a01b0316836001600160a01b0316146123df576123df83826127b1565b6001600160a01b0382166123f657610aa18161284e565b826001600160a01b0316826001600160a01b031614610aa157610aa182826128fd565b60408051602880825260608281019093526000919060208201818036833701905050905060005b6014811015612589576000612456826013613677565b612461906008613303565b61246c9060026137b7565b61247f906001600160a01b038716613338565b60f81b9050600060108260f81c61249691906137c3565b60f81b905060008160f81c60106124ad91906137e5565b8360f81c6124bb9190613806565b60f81b90506124c982612941565b856124d5866002613303565b815181106124e5576124e561334c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061251d81612941565b85612529866002613303565b6125349060016133e7565b815181106125445761254461334c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505050508080612581906132e8565b915050612440565b5092915050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c01604051602081830303815290604052805190602001209050611daa818461297c565b60006001600160a01b0384163b1561272857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061262e903390899088908890600401613829565b6020604051808303816000875af1925050508015612669575060408051601f3d908101601f1916820190925261266691810190613865565b60015b61270e573d808015612697576040519150601f19603f3d011682016040523d82523d6000602084013e61269c565b606091505b5080516127065760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161094f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611daa565b506001949350505050565b61273d83836129a0565b61274a60008484846125ea565b610aa15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161094f565b600060016127be84610fc5565b6127c89190613677565b60008381526007602052604090205490915080821461281b576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061286090600190613677565b600083815260096020526040812054600880549394509092849081106128885761288861334c565b9060005260206000200154905080600883815481106128a9576128a961334c565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806128e1576128e1613882565b6001900381819060005260206000200160009055905550505050565b600061290883610fc5565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6000600a60f883901c10156129685761295f60f883901c6030613898565b60f81b92915050565b61295f60f883901c6057613898565b919050565b600080600061298b8585612aee565b9150915061299881612b5e565b509392505050565b6001600160a01b0382166129f65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161094f565b6000818152600260205260409020546001600160a01b031615612a5b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161094f565b612a6760008383612361565b6001600160a01b0382166000908152600360205260408120805460019290612a909084906133e7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080825160411415612b255760208301516040840151606085015160001a612b1987828585612d19565b94509450505050612b57565b825160401415612b4f5760208301516040840151612b44868383612e06565b935093505050612b57565b506000905060025b9250929050565b6000816004811115612b7257612b726138bd565b1415612b7b5750565b6001816004811115612b8f57612b8f6138bd565b1415612bdd5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161094f565b6002816004811115612bf157612bf16138bd565b1415612c3f5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161094f565b6003816004811115612c5357612c536138bd565b1415612cac5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161094f565b6004816004811115612cc057612cc06138bd565b1415611ae25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161094f565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612d505750600090506003612dfd565b8460ff16601b14158015612d6857508460ff16601c14155b15612d795750600090506004612dfd565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612dcd573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612df657600060019250925050612dfd565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681612e3c60ff86901c601b6133e7565b9050612e4a87828885612d19565b935093505050935093915050565b828054612e6490613297565b90600052602060002090601f016020900481019282612e865760008555612ecc565b82601f10612e9f57805160ff1916838001178555612ecc565b82800160010185558215612ecc579182015b82811115612ecc578251825591602001919060010190612eb1565b50612ed8929150612edc565b5090565b5b80821115612ed85760008155600101612edd565b6001600160e01b031981168114611ae257600080fd5b600060208284031215612f1957600080fd5b8135611c8f81612ef1565b60005b83811015612f3f578181015183820152602001612f27565b838111156115df5750506000910152565b60008151808452612f68816020860160208601612f24565b601f01601f19169290920160200192915050565b602081526000611c8f6020830184612f50565b600060208284031215612fa157600080fd5b5035919050565b80356001600160a01b038116811461297757600080fd5b60008060408385031215612fd257600080fd5b612fdb83612fa8565b946020939093013593505050565b600080600060608486031215612ffe57600080fd5b61300784612fa8565b925061301560208501612fa8565b9150604084013590509250925092565b60006020828403121561303757600080fd5b611c8f82612fa8565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561307157613071613040565b604051601f8501601f19908116603f0116810190828211818310171561309957613099613040565b816040528093508581528686860111156130b257600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156130de57600080fd5b813567ffffffffffffffff8111156130f557600080fd5b8201601f8101841361310657600080fd5b611daa84823560208401613056565b600082601f83011261312657600080fd5b611c8f83833560208501613056565b6000806040838503121561314857600080fd5b823560ff8116811461315957600080fd5b9150602083013567ffffffffffffffff81111561317557600080fd5b61318185828601613115565b9150509250929050565b6000806040838503121561319e57600080fd5b6131a783612fa8565b9150602083013580151581146131bc57600080fd5b809150509250929050565b600080600080608085870312156131dd57600080fd5b6131e685612fa8565b93506131f460208601612fa8565b925060408501359150606085013567ffffffffffffffff81111561321757600080fd5b61322387828801613115565b91505092959194509250565b60006020828403121561324157600080fd5b813567ffffffffffffffff81111561325857600080fd5b611daa84828501613115565b6000806040838503121561327757600080fd5b61328083612fa8565b915061328e60208401612fa8565b90509250929050565b600181811c908216806132ab57607f821691505b602082108114156132cc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60006000198214156132fc576132fc6132d2565b5060010190565b600081600019048311821515161561331d5761331d6132d2565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261334757613347613322565b500490565b634e487b7160e01b600052603260045260246000fd5b600060208083526000845461337681613297565b8084870152604060018084166000811461339757600181146133ab576133d9565b60ff198516898401526060890195506133d9565b896000528660002060005b858110156133d15781548b82018601529083019088016133b6565b8a0184019650505b509398975050505050505050565b600082198211156133fa576133fa6132d2565b500190565b60008251613411818460208701612f24565b9190910192915050565b6000815461342881613297565b60018281168015613440576001811461345157613480565b60ff19841687528287019450613480565b8560005260208060002060005b858110156134775781548a82015290840190820161345e565b50505082870194505b5050505092915050565b7f7b226e616d65223a2022416c706861204851204163636573732070617373222c81527f20226465736372697074696f6e223a2022416363657373207061737320666f7260208201527f206d656d6265727368697020746f2074686520416c70686120485120746f6f6c60408201527f73657420616e6420616c70686120696e666f726d6174696f6e206368616e6e6560608201527f6c732e222c202261747472696275746573223a205b7b2274726169745f74797060808201527f65223a202245787069726174696f6e222c2276616c7565223a2022000000000060a0820152600061357a60bb83018661341b565b7f227d2c7b2274726169745f74797065223a202245787069726564222c2276616c81527f7565223a2022000000000000000000000000000000000000000000000000000060208201526135d0602682018661341b565b90507f227d5d2c2022696d616765223a202200000000000000000000000000000000008152613602600f82018561341b565b7f227d00000000000000000000000000000000000000000000000000000000000081526002019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161366a81601d850160208701612f24565b91909101601d0192915050565b600082821015613689576136896132d2565b500390565b7f19457468657265756d205369676e6564204d6573736167653a0a3430000000008152600082516136c681601c850160208701612f24565b91909101601c0192915050565b600181815b8085111561370e5781600019048211156136f4576136f46132d2565b8085161561370157918102915b93841c93908002906136d8565b509250929050565b60008261372557506001610842565b8161373257506000610842565b816001811461374857600281146137525761376e565b6001915050610842565b60ff841115613763576137636132d2565b50506001821b610842565b5060208310610133831016604e8410600b8410161715613791575081810a610842565b61379b83836136d3565b80600019048211156137af576137af6132d2565b029392505050565b6000611c8f8383613716565b600060ff8316806137d6576137d6613322565b8060ff84160491505092915050565b600060ff821660ff84168160ff04811182151516156137af576137af6132d2565b600060ff821660ff841680821015613820576138206132d2565b90039392505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261385b6080830184612f50565b9695505050505050565b60006020828403121561387757600080fd5b8151611c8f81612ef1565b634e487b7160e01b600052603160045260246000fd5b600060ff821660ff84168060ff038211156138b5576138b56132d2565b019392505050565b634e487b7160e01b600052602160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220d163ca32a92cb868889ee71eab0035b06b037aaffe0680767abe82a66aa4f2a864736f6c634300080c003368747470733a2f2f697066732e696f2f697066732f6261667962656962777372757a79337663676e653279683472626836716477707135627133326d6d736d7a6869796963617a6c796f6a33336a7471

Deployed Bytecode

0x6080604052600436106102dc5760003560e01c8063791a251911610184578063bc912e1a116100d6578063e3dd60d91161008a578063f2fde38b11610064578063f2fde38b146107aa578063f3d5145c146107ca578063f806147d146107e457600080fd5b8063e3dd60d914610714578063e949580e14610729578063e985e9c51461076157600080fd5b8063c87b56dd116100bb578063c87b56dd146106bf578063cd083ccf146106df578063e222c7f9146106ff57600080fd5b8063bc912e1a14610693578063c51c2d26146106a957600080fd5b80639d5534e211610138578063b5e71b7711610112578063b5e71b771461064b578063b5f46aa51461065e578063b88d4fde1461067357600080fd5b80639d5534e2146105f8578063a22cb4651461060b578063b35339e51461062b57600080fd5b80638da5cb5b116101695780638da5cb5b146105a557806395d89b41146105c3578063965539e1146105d857600080fd5b8063791a25191461056b57806389ba09f11461058b57600080fd5b806332cb6b0c1161023d578063513cd4a2116101f157806370a08231116101cb57806370a0823114610516578063715018a61461053657806376dc68911461054b57600080fd5b8063513cd4a2146104cb57806359eda1b5146104e15780636352211e146104f657600080fd5b80633ccfd60b116102225780633ccfd60b1461047657806342842e0e1461048b5780634f6ccce7146104ab57600080fd5b806332cb6b0c146104405780633515fbdb1461045657600080fd5b80630d2763961161029457806318160ddd1161027957806318160ddd146103eb57806323b872dd146104005780632f745c591461042057600080fd5b80630d276396146103b657806311097246146103d657600080fd5b806307e89ec0116102c557806307e89ec014610338578063081812fc1461035c578063095ea7b31461039457600080fd5b806301ffc9a7146102e157806306fdde0314610316575b600080fd5b3480156102ed57600080fd5b506103016102fc366004612f07565b610804565b60405190151581526020015b60405180910390f35b34801561032257600080fd5b5061032b610848565b60405161030d9190612f7c565b34801561034457600080fd5b5061034e60115481565b60405190815260200161030d565b34801561036857600080fd5b5061037c610377366004612f8f565b6108da565b6040516001600160a01b03909116815260200161030d565b3480156103a057600080fd5b506103b46103af366004612fbf565b610974565b005b3480156103c257600080fd5b506103b46103d1366004612f8f565b610aa6565b3480156103e257600080fd5b5061032b610b7b565b3480156103f757600080fd5b5060085461034e565b34801561040c57600080fd5b506103b461041b366004612fe9565b610c09565b34801561042c57600080fd5b5061034e61043b366004612fbf565b610c90565b34801561044c57600080fd5b5061034e600d5481565b34801561046257600080fd5b506103b4610471366004612f8f565b610d38565b34801561048257600080fd5b506103b4610da4565b34801561049757600080fd5b506103b46104a6366004612fe9565b610e1f565b3480156104b757600080fd5b5061034e6104c6366004612f8f565b610e3a565b3480156104d757600080fd5b5061034e60105481565b3480156104ed57600080fd5b506103b4610ede565b34801561050257600080fd5b5061037c610511366004612f8f565b610f3a565b34801561052257600080fd5b5061034e610531366004613025565b610fc5565b34801561054257600080fd5b506103b461105f565b34801561055757600080fd5b506103b46105663660046130cc565b6110b3565b34801561057757600080fd5b506103b4610586366004612f8f565b61114a565b34801561059757600080fd5b506012546103019060ff1681565b3480156105b157600080fd5b50600a546001600160a01b031661037c565b3480156105cf57600080fd5b5061032b6111b6565b3480156105e457600080fd5b506103b46105f3366004613025565b6111c5565b6103b4610606366004613135565b6112b1565b34801561061757600080fd5b506103b461062636600461318b565b6115e5565b34801561063757600080fd5b506103b46106463660046130cc565b6115f0565b6103b4610659366004612f8f565b61167c565b34801561066a57600080fd5b5061032b61182f565b34801561067f57600080fd5b506103b461068e3660046131c7565b61183c565b34801561069f57600080fd5b5061034e600e5481565b3480156106b557600080fd5b5061034e60135481565b3480156106cb57600080fd5b5061032b6106da366004612f8f565b6118c4565b3480156106eb57600080fd5b50600c5461037c906001600160a01b031681565b34801561070b57600080fd5b506103b46119ac565b34801561072057600080fd5b5061032b611a08565b34801561073557600080fd5b5061034e61074436600461322f565b805160208183018101805160178252928201919093012091525481565b34801561076d57600080fd5b5061030161077c366004613264565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107b657600080fd5b506103b46107c5366004613025565b611a15565b3480156107d657600080fd5b50600f546103019060ff1681565b3480156107f057600080fd5b506103b46107ff3660046130cc565b611ae5565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610842575061084282611b7a565b92915050565b60606000805461085790613297565b80601f016020809104026020016040519081016040528092919081815260200182805461088390613297565b80156108d05780601f106108a5576101008083540402835291602001916108d0565b820191906000526020600020905b8154815290600101906020018083116108b357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109585760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061097f82610f3a565b9050806001600160a01b0316836001600160a01b03161415610a095760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161094f565b336001600160a01b0382161480610a255750610a25813361077c565b610a975760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161094f565b610aa18383611c15565b505050565b600a546001600160a01b03163314610aee5760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b6000610af9600b5490565b600d54909150610b098284611c83565b10610b565760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f756768204e465473206c65667420746f207265736572766500604482015260640161094f565b60005b82811015610aa157610b69611c96565b80610b73816132e8565b915050610b59565b60148054610b8890613297565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb490613297565b8015610c015780601f10610bd657610100808354040283529160200191610c01565b820191906000526020600020905b815481529060010190602001808311610be457829003601f168201915b505050505081565b610c133382611cbb565b610c855760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161094f565b610aa1838383611db2565b6000610c9b83610fc5565b8210610d0f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161094f565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610d805760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b6064610d9482670de0b6b3a7640000613303565b610d9e9190613338565b600e5550565b600a546001600160a01b03163314610dec5760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b6040514790339082156108fc029083906000818181858888f19350505050158015610e1b573d6000803e3d6000fd5b5050565b610aa18383836040518060200160405280600081525061183c565b6000610e4560085490565b8210610eb95760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161094f565b60088281548110610ecc57610ecc61334c565b90600052602060002001549050919050565b600a546001600160a01b03163314610f265760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b600f805460ff19811660ff90911615179055565b6000818152600260205260408120546001600160a01b0316806108425760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161094f565b60006001600160a01b0382166110435760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161094f565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146110a75760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b6110b16000611f8a565b565b600a546001600160a01b031633146110fb5760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b805161110e906016906020840190612e58565b507f0d54b4f270ccf290ebb00691be85f210f13ed3fbd3bbebfcc69b7b54a55b8c8d601660405161113f9190613362565b60405180910390a150565b600a546001600160a01b031633146111925760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b60646111a682670de0b6b3a7640000613303565b6111b09190613338565b60115550565b60606001805461085790613297565b600a546001600160a01b0316331461120d5760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b6001600160a01b0381166112635760405162461bcd60e51b815260206004820152601460248201527f7369676e65722063616e6e6f7420626520307830000000000000000000000000604482015260640161094f565b600c80546001600160a01b0319166001600160a01b0383169081179091556040519081527f5553331329228fbd4123164423717a4a7539f6dfa1c3279a923b98fd681a6c739060200161113f565b60006112bc600b5490565b600f5490915060ff166113115760405162461bcd60e51b815260206004820152601d60248201527f57686974656c6973742073616c65206973206e6f74206163746976652e000000604482015260640161094f565b600d546113218260ff8616611c83565b111561137a5760405162461bcd60e51b815260206004820152602260248201527f4d617820746f6b656e20737570706c7920686173206265656e20726561636865604482015261321760f11b606482015260840161094f565b3332146113c95760405162461bcd60e51b815260206004820152601f60248201527f596f75206861766520746f206d696e742066726f6d20612077616c6c65742e00604482015260640161094f565b60008360ff161180156113e157506010548360ff1611155b61143b5760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f74206d696e7420737065636966696564206e756d626572206f662060448201526427232a399760d91b606482015260840161094f565b600e5461144b9060ff8516611fdc565b34101561149a5760405162461bcd60e51b815260206004820181905260248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563742e604482015260640161094f565b6010546114a89060016133e7565b8360ff166017846040516114bc91906133ff565b9081526020016040518091039020546114d591906133e7565b106115225760405162461bcd60e51b815260206004820152601c60248201527f457863656564732077686974656c69737420616c6c6f636174696f6e00000000604482015260640161094f565b61153461152e33611fe8565b83612023565b6115805760405162461bcd60e51b815260206004820152601260248201527f496e76616c6964207369676e61747572652e0000000000000000000000000000604482015260640161094f565b8260ff1660178360405161159491906133ff565b908152602001604051809103902060008282546115b191906133e7565b90915550600090505b8360ff168110156115df576115cd611c96565b806115d7816132e8565b9150506115ba565b50505050565b610e1b33838361205d565b600a546001600160a01b031633146116385760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b805161164b906015906020840190612e58565b507f841342a8175b8ec3a13051374811e09283d3f95aeaec88c26063630972d4683c601560405161113f9190613362565b6000611687600b5490565b60125490915060ff166116dc5760405162461bcd60e51b815260206004820152601a60248201527f5075626c69632073616c65206973206e6f74206163746976652e000000000000604482015260640161094f565b600d546116e98284611c83565b11156117425760405162461bcd60e51b815260206004820152602260248201527f4d617820746f6b656e20737570706c7920686173206265656e20726561636865604482015261321760f11b606482015260840161094f565b60008211801561175457506013548211155b6117ae5760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f74206d696e7420737065636966696564206e756d626572206f662060448201526427232a399760d91b606482015260840161094f565b6011546117bb9083611fdc565b34101561180a5760405162461bcd60e51b815260206004820181905260248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563742e604482015260640161094f565b60005b82811015610aa15761181d611c96565b80611827816132e8565b91505061180d565b60158054610b8890613297565b6118463383611cbb565b6118b85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161094f565b6115df8484848461212c565b6000818152600260205260409020546060906001600160a01b03166119515760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e2e00000000000000000000000000000000606482015260840161094f565b600061198260166015601460405160200161196e9392919061348a565b6040516020818303038152906040526121aa565b9050806040516020016119959190613632565b60408051601f198184030181529190529392505050565b600a546001600160a01b031633146119f45760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b6012805460ff19811660ff90911615179055565b60168054610b8890613297565b600a546001600160a01b03163314611a5d5760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b6001600160a01b038116611ad95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161094f565b611ae281611f8a565b50565b600a546001600160a01b03163314611b2d5760405162461bcd60e51b81526020600482018190526024820152600080516020613914833981519152604482015260640161094f565b8051611b40906014906020840190612e58565b507f4d98ac2b8d8ddc5ab05a532ec99672f12250740f3de0c067fff75fa3c09066fc601460405161113f9190613362565b80546001019055565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611bdd57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061084257507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610842565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c4a82610f3a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611c8f82846133e7565b9392505050565b6000611ca1600b5490565b9050611cad3382612347565b611ae2600b80546001019055565b6000818152600260205260408120546001600160a01b0316611d345760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161094f565b6000611d3f83610f3a565b9050806001600160a01b0316846001600160a01b03161480611d7a5750836001600160a01b0316611d6f846108da565b6001600160a01b0316145b80611daa57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611dc582610f3a565b6001600160a01b031614611e415760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161094f565b6001600160a01b038216611ebc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161094f565b611ec7838383612361565b611ed2600082611c15565b6001600160a01b0383166000908152600360205260408120805460019290611efb908490613677565b90915550506001600160a01b0382166000908152600360205260408120805460019290611f299084906133e7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611c8f8284613303565b600080611ff483612419565b604051602001612004919061368e565b60408051601f1981840301815291905280516020909101209392505050565b600c546000906001600160a01b031615801590611c8f57506120458383612590565b600c546001600160a01b039182169116149392505050565b816001600160a01b0316836001600160a01b031614156120bf5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161094f565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612137848484611db2565b612143848484846125ea565b6115df5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161094f565b8051606090806121ca575050604080516020810190915260008152919050565b600060036121d98360026133e7565b6121e39190613338565b6121ee906004613303565b905060006121fd8260206133e7565b67ffffffffffffffff81111561221557612215613040565b6040519080825280601f01601f19166020018201604052801561223f576020820181803683370190505b50905060006040518060600160405280604081526020016138d4604091399050600181016020830160005b868110156122cb576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b83526004909201910161226a565b5060038606600181146122e5576002811461231157612339565b7f3d3d000000000000000000000000000000000000000000000000000000000000600119830152612339565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b505050918152949350505050565b610e1b828260405180602001604052806000815250612733565b6001600160a01b0383166123bc576123b781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6123df565b816001600160a01b0316836001600160a01b0316146123df576123df83826127b1565b6001600160a01b0382166123f657610aa18161284e565b826001600160a01b0316826001600160a01b031614610aa157610aa182826128fd565b60408051602880825260608281019093526000919060208201818036833701905050905060005b6014811015612589576000612456826013613677565b612461906008613303565b61246c9060026137b7565b61247f906001600160a01b038716613338565b60f81b9050600060108260f81c61249691906137c3565b60f81b905060008160f81c60106124ad91906137e5565b8360f81c6124bb9190613806565b60f81b90506124c982612941565b856124d5866002613303565b815181106124e5576124e561334c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061251d81612941565b85612529866002613303565b6125349060016133e7565b815181106125445761254461334c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505050508080612581906132e8565b915050612440565b5092915050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c01604051602081830303815290604052805190602001209050611daa818461297c565b60006001600160a01b0384163b1561272857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061262e903390899088908890600401613829565b6020604051808303816000875af1925050508015612669575060408051601f3d908101601f1916820190925261266691810190613865565b60015b61270e573d808015612697576040519150601f19603f3d011682016040523d82523d6000602084013e61269c565b606091505b5080516127065760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161094f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611daa565b506001949350505050565b61273d83836129a0565b61274a60008484846125ea565b610aa15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161094f565b600060016127be84610fc5565b6127c89190613677565b60008381526007602052604090205490915080821461281b576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061286090600190613677565b600083815260096020526040812054600880549394509092849081106128885761288861334c565b9060005260206000200154905080600883815481106128a9576128a961334c565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806128e1576128e1613882565b6001900381819060005260206000200160009055905550505050565b600061290883610fc5565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6000600a60f883901c10156129685761295f60f883901c6030613898565b60f81b92915050565b61295f60f883901c6057613898565b919050565b600080600061298b8585612aee565b9150915061299881612b5e565b509392505050565b6001600160a01b0382166129f65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161094f565b6000818152600260205260409020546001600160a01b031615612a5b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161094f565b612a6760008383612361565b6001600160a01b0382166000908152600360205260408120805460019290612a909084906133e7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080825160411415612b255760208301516040840151606085015160001a612b1987828585612d19565b94509450505050612b57565b825160401415612b4f5760208301516040840151612b44868383612e06565b935093505050612b57565b506000905060025b9250929050565b6000816004811115612b7257612b726138bd565b1415612b7b5750565b6001816004811115612b8f57612b8f6138bd565b1415612bdd5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161094f565b6002816004811115612bf157612bf16138bd565b1415612c3f5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161094f565b6003816004811115612c5357612c536138bd565b1415612cac5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161094f565b6004816004811115612cc057612cc06138bd565b1415611ae25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161094f565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612d505750600090506003612dfd565b8460ff16601b14158015612d6857508460ff16601c14155b15612d795750600090506004612dfd565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612dcd573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612df657600060019250925050612dfd565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681612e3c60ff86901c601b6133e7565b9050612e4a87828885612d19565b935093505050935093915050565b828054612e6490613297565b90600052602060002090601f016020900481019282612e865760008555612ecc565b82601f10612e9f57805160ff1916838001178555612ecc565b82800160010185558215612ecc579182015b82811115612ecc578251825591602001919060010190612eb1565b50612ed8929150612edc565b5090565b5b80821115612ed85760008155600101612edd565b6001600160e01b031981168114611ae257600080fd5b600060208284031215612f1957600080fd5b8135611c8f81612ef1565b60005b83811015612f3f578181015183820152602001612f27565b838111156115df5750506000910152565b60008151808452612f68816020860160208601612f24565b601f01601f19169290920160200192915050565b602081526000611c8f6020830184612f50565b600060208284031215612fa157600080fd5b5035919050565b80356001600160a01b038116811461297757600080fd5b60008060408385031215612fd257600080fd5b612fdb83612fa8565b946020939093013593505050565b600080600060608486031215612ffe57600080fd5b61300784612fa8565b925061301560208501612fa8565b9150604084013590509250925092565b60006020828403121561303757600080fd5b611c8f82612fa8565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561307157613071613040565b604051601f8501601f19908116603f0116810190828211818310171561309957613099613040565b816040528093508581528686860111156130b257600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156130de57600080fd5b813567ffffffffffffffff8111156130f557600080fd5b8201601f8101841361310657600080fd5b611daa84823560208401613056565b600082601f83011261312657600080fd5b611c8f83833560208501613056565b6000806040838503121561314857600080fd5b823560ff8116811461315957600080fd5b9150602083013567ffffffffffffffff81111561317557600080fd5b61318185828601613115565b9150509250929050565b6000806040838503121561319e57600080fd5b6131a783612fa8565b9150602083013580151581146131bc57600080fd5b809150509250929050565b600080600080608085870312156131dd57600080fd5b6131e685612fa8565b93506131f460208601612fa8565b925060408501359150606085013567ffffffffffffffff81111561321757600080fd5b61322387828801613115565b91505092959194509250565b60006020828403121561324157600080fd5b813567ffffffffffffffff81111561325857600080fd5b611daa84828501613115565b6000806040838503121561327757600080fd5b61328083612fa8565b915061328e60208401612fa8565b90509250929050565b600181811c908216806132ab57607f821691505b602082108114156132cc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60006000198214156132fc576132fc6132d2565b5060010190565b600081600019048311821515161561331d5761331d6132d2565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261334757613347613322565b500490565b634e487b7160e01b600052603260045260246000fd5b600060208083526000845461337681613297565b8084870152604060018084166000811461339757600181146133ab576133d9565b60ff198516898401526060890195506133d9565b896000528660002060005b858110156133d15781548b82018601529083019088016133b6565b8a0184019650505b509398975050505050505050565b600082198211156133fa576133fa6132d2565b500190565b60008251613411818460208701612f24565b9190910192915050565b6000815461342881613297565b60018281168015613440576001811461345157613480565b60ff19841687528287019450613480565b8560005260208060002060005b858110156134775781548a82015290840190820161345e565b50505082870194505b5050505092915050565b7f7b226e616d65223a2022416c706861204851204163636573732070617373222c81527f20226465736372697074696f6e223a2022416363657373207061737320666f7260208201527f206d656d6265727368697020746f2074686520416c70686120485120746f6f6c60408201527f73657420616e6420616c70686120696e666f726d6174696f6e206368616e6e6560608201527f6c732e222c202261747472696275746573223a205b7b2274726169745f74797060808201527f65223a202245787069726174696f6e222c2276616c7565223a2022000000000060a0820152600061357a60bb83018661341b565b7f227d2c7b2274726169745f74797065223a202245787069726564222c2276616c81527f7565223a2022000000000000000000000000000000000000000000000000000060208201526135d0602682018661341b565b90507f227d5d2c2022696d616765223a202200000000000000000000000000000000008152613602600f82018561341b565b7f227d00000000000000000000000000000000000000000000000000000000000081526002019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161366a81601d850160208701612f24565b91909101601d0192915050565b600082821015613689576136896132d2565b500390565b7f19457468657265756d205369676e6564204d6573736167653a0a3430000000008152600082516136c681601c850160208701612f24565b91909101601c0192915050565b600181815b8085111561370e5781600019048211156136f4576136f46132d2565b8085161561370157918102915b93841c93908002906136d8565b509250929050565b60008261372557506001610842565b8161373257506000610842565b816001811461374857600281146137525761376e565b6001915050610842565b60ff841115613763576137636132d2565b50506001821b610842565b5060208310610133831016604e8410600b8410161715613791575081810a610842565b61379b83836136d3565b80600019048211156137af576137af6132d2565b029392505050565b6000611c8f8383613716565b600060ff8316806137d6576137d6613322565b8060ff84160491505092915050565b600060ff821660ff84168160ff04811182151516156137af576137af6132d2565b600060ff821660ff841680821015613820576138206132d2565b90039392505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261385b6080830184612f50565b9695505050505050565b60006020828403121561387757600080fd5b8151611c8f81612ef1565b634e487b7160e01b600052603160045260246000fd5b600060ff821660ff84168060ff038211156138b5576138b56132d2565b019392505050565b634e487b7160e01b600052602160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220d163ca32a92cb868889ee71eab0035b06b037aaffe0680767abe82a66aa4f2a864736f6c634300080c0033

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

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