ETH Price: $3,454.38 (-0.67%)
Gas: 20 Gwei

Token

RugPullFrensChristmasGift (RPFGIFT)
 

Overview

Max Total Supply

482 RPFGIFT

Holders

318

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 RPFGIFT
0x6aef363a43d849e7a9146dfb8b948eaa8d10140a
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:
RugPullFrensChristmasGift

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : RugPullFrensChristmasGift.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import './ERC721EnumerableGasOptimization.sol';
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

//           @@@@@@@@                                                     @@@@@@                                     
//           @@@@@@@@@@@@*                                             .@@@@@@@@@                          
//           @@@@@   @@@@@@@@                                      %@@@@@@@@@@@@                         
//             @@@@@@    @@@@@@@@@@                              ,@@@@@@@@@@@@@@@                         
//               @@@@@       @@@@@@@@@@.                       @@@@@@@  @@@@@@@@.                         
//                  @@@@@@        @@@@@@@@/                  @@@@@@/   @@@@@@@@.                          
//                     @@@@@@@@@,    &((#%  ______        #@@@@@&     @@@@@@@.                           
//                       ..@@(                   .(     .@@@@@     #@@@@@@@@                             
//                     (.                             ( @@@@@      @@@@@@@@                               
//                  ,(                                  (@@     ,@@@@@@@@.                                
//                 .                                       (  @@@@@@@@@                                   
//               .                                            *@@@@,                                     
//               (   _,.@@                                         (                                        
//              (   (   %%@                                         .                                      
//              .  /  %%%%%       &@@@@@@                           ,                                     
//             (  /  %%$%%       @@  ,%%%% ,                        ,                                     
//             (  \  %%%&       @@  %%%%%%%@                         *                                    
//             |  *  %%,        @  /%%%$%%(@                         (                                    
//           ,,    """         @@  %%%%%%%#*                         (                                    
//         @@                  @. .%%%%%% @                          (                                    
//         ##                   @   %%% @@                           (                                     
//          *                    ""...#,                             (                                     
//          (                                                      .((                                    
//           (                                                      ((.                                   
//           (                                                       (((__                                  
//           \                                                           ((___                               
//           (                                                                (/ ___                        
//           (                          C                                          (/__                   
//             \                         &                                               (__               
//             *                         \                                                  (             
//             (                         \                                                   ,            
//             (                         ,                                                     ,          
//             .                          |                                                     .          
//              *                         (                                                    (         
//              $         |                ,                                                     (        
//              .         \                 .                                                    *        
//              /         ,                                                                       *       
//              (          (                                                                       (       
//              (          (                                                                        }      
//              *           \                                                                       ,      
//              /          (                                                                             
//             (                                                                           Artist_Raimochi @2021

//    ______   _    _   ______     ______   _    _   _        _          ______  ______   ______  ______   ______  
//   | |  | \ | |  | | | | ____   | |  | \ | |  | | | |      | |        | |     | |  | \         | |  \ \ / |
//   | |__| | | |  | | | |  | |   | |__|_/ | |  | | | |   _  | |   _    | |---- | |__| |  ΞΞΞΞΞΞ | |  | | '------. 
//   |_|  \_\ \_|__|_| |_|__|_|   |_|      \_|__|_| |_|__|_| |_|__|_|   |_|     |_|  \_\  ______ |_|  |_|  ____|_/ 




contract RugPullFrensChristmasGift is ERC721EnumerableGasOptimization, EIP712 {

    using Strings for uint;

    // State variables
    // Using toggles to open/close freemint
    // ------------------------------------------------------------------------
    bool public isFreeMintActive = true; 


    // URI variables
    // ------------------------------------------------------------------------
    string private _baseTokenURI;

    // Free mint already claimed
    // ------------------------------------------------------------------------
    mapping(address => bool) public isGiftClaimed;

    // Events
    // ------------------------------------------------------------------------
    event BaseTokenURIChanged(string baseTokenURI);


    // Constructor
    // ------------------------------------------------------------------------
    constructor() 
    ERC721GasOptimization("RugPullFrensChristmasGift", "RPFGIFT",0)
    EIP712("RugPullFrensChristmasGift", "1.0.0")
    {}


    // Modifiers
    // ------------------------------------------------------------------------
    modifier onlyFreeMintActive() {
        require(isFreeMintActive, "FREE_MINT_NOT_ACTIVE");
        _;
    }
    
    // Block smart contract
    modifier callerIsUser() {
        require(tx.origin == msg.sender, "CALLER_IS_CONTRACT");
        _;
    }


    // free mint functions
    // ------------------------------------------------------------------------
    function isFreeMintEligible(uint256 holderLevel, bytes memory _SIGNATURE) public view returns (bool){
        address recoveredAddr = ECDSA.recover(_hashTypedDataV4(keccak256(abi.encode(
            keccak256("NFT(address addressForFreeMint,uint256 holderLevel)"),
            _msgSender(),
            holderLevel
        ))), _SIGNATURE);
        
        return owner() == recoveredAddr;
    }

    function setFreeMintStatus(bool _isFreeMintActive) external onlyOwner {
        require(isFreeMintActive != _isFreeMintActive,"SETTING_TO_CURRENT_STATE");
        isFreeMintActive = _isFreeMintActive;
    }

    
    function mintChristmasGift(
        uint256 holderLevel,
        bytes memory _SIGNATURE
    )
        external
        onlyFreeMintActive
        callerIsUser
    {
        require(isFreeMintEligible(holderLevel, _SIGNATURE), "NOT_ELIGIBLE_FOR_FREE_MINT");
        require(!isGiftClaimed[ msg.sender ],"GIFT_ALREADY_CLAIMED");
        require(_balances[ msg.sender ]==0,"YOU_ALREADY_HAVE_GIFT");

        uint supply = totalSupply();

        if (holderLevel==8){
            for(uint i; i < 3; ++i){
                _mint( msg.sender, supply++ );
            }
        } else if (holderLevel==4){
            for(uint i; i < 2; ++i){
                _mint( msg.sender, supply++ );
            }
        } else{
            _mint( msg.sender, supply++ );
        }

        // mark address as claimed
        isGiftClaimed[ msg.sender ] = true;

    }

    
    function ownerClaimGift(uint256 quantity, address addr) external onlyOwner {
        require(_balances[ addr ] + quantity <= 3,"EXCEEDS_MAX_ALLOWED_GIFT_NUM");

        uint supply = totalSupply();

        for(uint i; i < quantity; ++i){
            _mint( addr, supply++ );
        }
        
        // mark address as claimed
        isGiftClaimed[ addr ] = true;

    }

    function setGiftClaimed(address addr,bool isClaimed) external onlyOwner {
        require(isGiftClaimed[ addr ] != isClaimed,"SET_CURRENT_STATE");

        isGiftClaimed[ addr ] = isClaimed;
    }


    // Base URI Functions
    // ------------------------------------------------------------------------
    function setURI(string calldata __tokenURI) external onlyOwner {
        _baseTokenURI = __tokenURI;
        emit BaseTokenURIChanged(__tokenURI);
    }

    function tokenURI(uint256 tokenId) external view virtual override returns (string memory) {
        require(_exists(tokenId), "TOKEN_NOT_EXISTS");
        
        return string(abi.encodePacked(_baseTokenURI, tokenId.toString()));
    }

    // Internal functions
    // ------------------------------------------------------------------------
    function _beforeTokenTransfer(address from, address to, uint tokenId) internal override {
        if( from != address(0) ){
            --_balances[from];
        }
        
        if( to != address(0) ){
            ++_balances[to];
        }
        
    }

    // Other functions
    // ------------------------------------------------------------------------
    function withdraw() external onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    function contractDestruct() external onlyOwner {
        selfdestruct(payable(owner()));
    }

}

File 2 of 15 : ERC721EnumerableGasOptimization.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "./ERC721GasOptimization.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

abstract contract ERC721EnumerableGasOptimization is ERC721GasOptimization, IERC721Enumerable {
    mapping(address => uint) internal _balances;

    function isOwnerOf( address account, uint[] calldata tokenIds ) external view virtual returns( bool ){
        for(uint i; i < tokenIds.length; ++i ){
            if( _owners[ tokenIds[i] ] != account )
                return false;
        }

        return true;
    }

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

    function tokenOfOwnerByIndex(address owner, uint index) public view override returns (uint tokenId) {
        uint count;
        for( uint i; i < _owners.length; ++i ){
            if( owner == _owners[i] ){
                if( count == index )
                    return i;
                else
                    ++count;
            }
        }

        revert("ERC721Enumerable: owner index out of bounds");
    }

    function tokenByIndex(uint index) external view virtual override returns (uint) {
        require(index < totalSupply(), "ERC721Enumerable: global index out of bounds");
        return index;
    }

    function totalSupply() public view virtual override( ERC721GasOptimization, IERC721Enumerable ) returns (uint) {
        return _owners.length - (_offset + _burned);
    }

    function transferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external{
        for(uint i; i < tokenIds.length; ++i ){
            safeTransferFrom( from, to, tokenIds[i], data );
        }
    }

    function tokensOfOwner( address account ) external view virtual returns( uint[] memory ){
        uint quantity = balanceOf( account );
        uint[] memory wallet = new uint[]( quantity );
        for( uint i; i < quantity; ++i ){
            wallet[i] = tokenOfOwnerByIndex( account, i );
        }
        return wallet;
    }
}

File 3 of 15 : 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 4 of 15 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 5 of 15 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 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 15 : ERC721GasOptimization.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

abstract contract ERC721GasOptimization is Context, ERC165, IERC721, IERC721Metadata, Ownable {
    using Address for address;

    string private _name;
    string private _symbol;

    uint internal _burned;
    uint internal _offset;
    address[] internal _owners;

    mapping(uint => address) internal _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    constructor(string memory name_, string memory symbol_, uint offset) {
        _name = name_;
        _symbol = symbol_;
        _offset = offset;
        for(uint i; i < _offset; ++i ){
            _owners.push(address(0));
        }
    }

    //public
    function balanceOf(address owner) public view virtual override returns (uint) {
        require(owner != address(0), "ERC721: balance query for the zero address");

        uint count;
        for( uint i; i < _owners.length; ++i ){
          if( owner == _owners[i] )
            ++count;
        }
        return count;
    }

    function name() external view virtual override returns (string memory) {
        return _name;
    }

    function ownerOf(uint tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

    function symbol() external view virtual override returns (string memory) {
        return _symbol;
    }

    function totalSupply() public view virtual returns (uint) {
        return _owners.length - (_offset + _burned);
    }


    function approve(address to, uint tokenId) external virtual override {
        address owner = ERC721GasOptimization.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);
    }

    function getApproved(uint tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");
        return _tokenApprovals[tokenId];
    }

    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    function setApprovalForAll(address operator, bool approved) external virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");
        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint 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);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    function safeTransferFrom(
        address from,
        address to,
        uint tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }


    //internal
    function _approve(address to, uint tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721GasOptimization.ownerOf(tokenId), to, tokenId);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint tokenId
    ) internal virtual {}

    function _burn(uint tokenId) internal virtual {
        address owner = ERC721GasOptimization.ownerOf(tokenId);

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

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

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

    function _checkOnERC721Received(
        address from,
        address to,
        uint 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;
        }
    }

    function _exists(uint tokenId) internal view virtual returns (bool) {
        return tokenId < _owners.length && _owners[tokenId] != address(0);
    }

    function _isApprovedOrOwner(address spender, uint tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721GasOptimization.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    function _mint(address to, uint 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);
        _owners.push(to);

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

    function _next() internal view virtual returns( uint ){
        return _owners.length;
    }

    function _safeMint(address to, uint tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    function _safeMint(
        address to,
        uint tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    function _safeTransfer(
        address from,
        address to,
        uint tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    function _transfer(
        address from,
        address to,
        uint tokenId
    ) internal virtual {
        require(ERC721GasOptimization.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }
}

File 7 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 tokenId);

    /**
     * @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 8 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 15 : 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 10 of 15 : 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 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 12 of 15 : 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 13 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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":false,"internalType":"string","name":"baseTokenURI","type":"string"}],"name":"BaseTokenURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractDestruct","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"isFreeMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"holderLevel","type":"uint256"},{"internalType":"bytes","name":"_SIGNATURE","type":"bytes"}],"name":"isFreeMintEligible","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isGiftClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"holderLevel","type":"uint256"},{"internalType":"bytes","name":"_SIGNATURE","type":"bytes"}],"name":"mintChristmasGift","outputs":[],"stateMutability":"nonpayable","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":"quantity","type":"uint256"},{"internalType":"address","name":"addr","type":"address"}],"name":"ownerClaimGift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isFreeMintActive","type":"bool"}],"name":"setFreeMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isClaimed","type":"bool"}],"name":"setGiftClaimed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"__tokenURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"tokenId","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":[{"internalType":"address","name":"account","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferBatch","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101406040526009805460ff191660011790553480156200001f57600080fd5b506040518060400160405280601981526020017f52756750756c6c4672656e734368726973746d61734769667400000000000000815250604051806040016040528060058152602001640312e302e360dc1b8152506040518060400160405280601981526020017f52756750756c6c4672656e734368726973746d617347696674000000000000008152506040518060400160405280600781526020016614941191d2519560ca1b8152506000620000e6620000e06200021360201b60201c565b62000217565b8251620000fb90600190602086019062000267565b5081516200011190600290602085019062000267565b50600481905560005b6004548110156200017857600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b031916905562000170816200030d565b90506200011a565b5050835160208086019190912084518583012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c0019052805194019390932091945092506080523060c05261012052506200037492505050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620002759062000337565b90600052602060002090601f016020900481019282620002995760008555620002e4565b82601f10620002b457805160ff1916838001178555620002e4565b82800160010185558215620002e4579182015b82811115620002e4578251825591602001919060010190620002c7565b50620002f2929150620002f6565b5090565b5b80821115620002f25760008155600101620002f7565b60006000198214156200033057634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c908216806200034c57607f821691505b602082108114156200036e57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051610120516129e8620003c46000396000611baf01526000611bfe01526000611bd901526000611b3201526000611b5c01526000611b8601526129e86000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c806370a082311161010f578063a22cb465116100a2578063d9c0f6b611610071578063d9c0f6b614610431578063e52e58fd14610444578063e985e9c51461044c578063f2fde38b1461048857600080fd5b8063a22cb465146103e5578063b534a5c4146103f8578063b88d4fde1461040b578063c87b56dd1461041e57600080fd5b80638da5cb5b116100de5780638da5cb5b146103a65780638ec15137146103b75780638f6ad003146103ca57806395d89b41146103dd57600080fd5b806370a082311461035e578063715018a6146103715780637a5b85c1146103795780638462151c1461038657600080fd5b80633a1804dd116101875780634f6ccce7116101565780634f6ccce71461030257806354f96da7146103155780636352211e146103285780636ed03b4a1461033b57600080fd5b80633a1804dd146102c15780633ccfd60b146102d457806342842e0e146102dc5780634d44660c146102ef57600080fd5b8063095ea7b3116101c3578063095ea7b31461027257806318160ddd1461028557806323b872dd1461029b5780632f745c59146102ae57600080fd5b806301ffc9a7146101f557806302fe53051461021d57806306fdde0314610232578063081812fc14610247575b600080fd5b610208610203366004612146565b61049b565b60405190151581526020015b60405180910390f35b61023061022b3660046121a5565b6104c6565b005b61023a610543565b604051610214919061223f565b61025a610255366004612252565b6105d5565b6040516001600160a01b039091168152602001610214565b610230610280366004612287565b61065d565b61028d610773565b604051908152602001610214565b6102306102a93660046122b1565b610797565b61028d6102bc366004612287565b6107c8565b6102306102cf3660046122fd565b610894565b61023061094c565b6102306102ea3660046122b1565b6109b3565b6102086102fd366004612375565b6109ce565b61028d610310366004612252565b610a50565b61020861032336600461246b565b610ac1565b61025a610336366004612252565b610b62565b6102086103493660046124b2565b600b6020526000908152604090205460ff1681565b61028d61036c3660046124b2565b610bee565b610230610cbc565b6009546102089060ff1681565b6103996103943660046124b2565b610cf2565b60405161021491906124cd565b6000546001600160a01b031661025a565b6102306103c536600461246b565b610d92565b6102306103d8366004612511565b610fd4565b61023a6110cf565b6102306103f33660046122fd565b6110de565b610230610406366004612534565b6111a3565b6102306104193660046125c5565b611221565b61023a61042c366004612252565b611259565b61023061043f36600461262d565b6112d5565b61023061136b565b61020861045a366004612648565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102306104963660046124b2565b6113a3565b60006001600160e01b0319821663780e9d6360e01b14806104c057506104c08261143b565b92915050565b6000546001600160a01b031633146104f95760405162461bcd60e51b81526004016104f090612672565b60405180910390fd5b610505600a83836120a0565b507f228a3ac0675af69daeaaa5b8d369fe2faae665e7f340f0b78ccbb84e17b4f69482826040516105379291906126a7565b60405180910390a15050565b606060018054610552906126d6565b80601f016020809104026020016040519081016040528092919081815260200182805461057e906126d6565b80156105cb5780601f106105a0576101008083540402835291602001916105cb565b820191906000526020600020905b8154815290600101906020018083116105ae57829003601f168201915b5050505050905090565b60006105e08261148b565b6106415760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016104f0565b506000908152600660205260409020546001600160a01b031690565b600061066882610b62565b9050806001600160a01b0316836001600160a01b031614156106d65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016104f0565b336001600160a01b03821614806106f257506106f2813361045a565b6107645760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016104f0565b61076e83836114d5565b505050565b60006003546004546107859190612727565b600554610792919061273f565b905090565b6107a13382611543565b6107bd5760405162461bcd60e51b81526004016104f090612756565b61076e83838361162d565b60008060005b60055481101561083757600581815481106107eb576107eb6127a7565b6000918252602090912001546001600160a01b0386811691161415610827578382141561081b5791506104c09050565b610824826127bd565b91505b610830816127bd565b90506107ce565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016104f0565b6000546001600160a01b031633146108be5760405162461bcd60e51b81526004016104f090612672565b6001600160a01b0382166000908152600b602052604090205460ff16151581151514156109215760405162461bcd60e51b81526020600482015260116024820152705345545f43555252454e545f535441544560781b60448201526064016104f0565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6000546001600160a01b031633146109765760405162461bcd60e51b81526004016104f090612672565b600080546040516001600160a01b03909116914780156108fc02929091818181858888f193505050501580156109b0573d6000803e3d6000fd5b50565b61076e83838360405180602001604052806000815250611221565b6000805b82811015610a4357846001600160a01b031660058585848181106109f8576109f86127a7565b9050602002013581548110610a0f57610a0f6127a7565b6000918252602090912001546001600160a01b031614610a33576000915050610a49565b610a3c816127bd565b90506109d2565b50600190505b9392505050565b6000610a5a610773565b8210610abd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016104f0565b5090565b600080610b32610b2c7fc7ae81dd0c8a6f149b5e45e8bef77c3b21df93fd9bf2b89c3d1b9ee6ae8f816d336040805160208101939093526001600160a01b0390911690820152606081018790526080016040516020818303038152906040528051906020012061178e565b846117dc565b9050806001600160a01b0316610b506000546001600160a01b031690565b6001600160a01b031614949350505050565b60008060058381548110610b7857610b786127a7565b6000918252602090912001546001600160a01b03169050806104c05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016104f0565b60006001600160a01b038216610c595760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016104f0565b6000805b600554811015610cb55760058181548110610c7a57610c7a6127a7565b6000918252602090912001546001600160a01b0385811691161415610ca557610ca2826127bd565b91505b610cae816127bd565b9050610c5d565b5092915050565b6000546001600160a01b03163314610ce65760405162461bcd60e51b81526004016104f090612672565b610cf060006117f8565b565b60606000610cff83610bee565b905060008167ffffffffffffffff811115610d1c57610d1c6123c8565b604051908082528060200260200182016040528015610d45578160200160208202803683370190505b50905060005b82811015610d8a57610d5d85826107c8565b828281518110610d6f57610d6f6127a7565b6020908102919091010152610d83816127bd565b9050610d4b565b509392505050565b60095460ff16610ddb5760405162461bcd60e51b8152602060048201526014602482015273465245455f4d494e545f4e4f545f41435449564560601b60448201526064016104f0565b323314610e1f5760405162461bcd60e51b815260206004820152601260248201527110d05313115497d254d7d0d3d395149050d560721b60448201526064016104f0565b610e298282610ac1565b610e755760405162461bcd60e51b815260206004820152601a60248201527f4e4f545f454c494749424c455f464f525f465245455f4d494e5400000000000060448201526064016104f0565b336000908152600b602052604090205460ff1615610ecc5760405162461bcd60e51b815260206004820152601460248201527311d2519517d053149150511657d0d3105253515160621b60448201526064016104f0565b3360009081526008602052604090205415610f215760405162461bcd60e51b81526020600482015260156024820152741653d557d053149150511657d210559157d1d25195605a1b60448201526064016104f0565b6000610f2b610773565b90508260081415610f6d5760005b6003811015610f6757610f573383610f50816127bd565b9450611848565b610f60816127bd565b9050610f39565b50610fb5565b8260041415610fa05760005b6002811015610f6757610f903383610f50816127bd565b610f99816127bd565b9050610f79565b610fb53382610fae816127bd565b9350611848565b5050336000908152600b60205260409020805460ff1916600117905550565b6000546001600160a01b03163314610ffe5760405162461bcd60e51b81526004016104f090612672565b6001600160a01b038116600090815260086020526040902054600390611025908490612727565b11156110735760405162461bcd60e51b815260206004820152601c60248201527f455843454544535f4d41585f414c4c4f5745445f474946545f4e554d0000000060448201526064016104f0565b600061107d610773565b905060005b838110156110a8576110988383610f50816127bd565b6110a1816127bd565b9050611082565b50506001600160a01b03166000908152600b60205260409020805460ff1916600117905550565b606060028054610552906126d6565b6001600160a01b0382163314156111375760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016104f0565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005b838110156112185761120887878787858181106111c5576111c56127a7565b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061122192505050565b611211816127bd565b90506111a6565b50505050505050565b61122b3383611543565b6112475760405162461bcd60e51b81526004016104f090612756565b6112538484848461197c565b50505050565b60606112648261148b565b6112a35760405162461bcd60e51b815260206004820152601060248201526f544f4b454e5f4e4f545f45584953545360801b60448201526064016104f0565b600a6112ae836119af565b6040516020016112bf9291906127f4565b6040516020818303038152906040529050919050565b6000546001600160a01b031633146112ff5760405162461bcd60e51b81526004016104f090612672565b60095460ff16151581151514156113585760405162461bcd60e51b815260206004820152601860248201527f53455454494e475f544f5f43555252454e545f5354415445000000000000000060448201526064016104f0565b6009805460ff1916911515919091179055565b6000546001600160a01b031633146113955760405162461bcd60e51b81526004016104f090612672565b6000546001600160a01b0316ff5b6000546001600160a01b031633146113cd5760405162461bcd60e51b81526004016104f090612672565b6001600160a01b0381166114325760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104f0565b6109b0816117f8565b60006001600160e01b031982166380ac58cd60e01b148061146c57506001600160e01b03198216635b5e139f60e01b145b806104c057506301ffc9a760e01b6001600160e01b03198316146104c0565b600554600090821080156104c0575060006001600160a01b0316600583815481106114b8576114b86127a7565b6000918252602090912001546001600160a01b0316141592915050565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061150a82610b62565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061154e8261148b565b6115af5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016104f0565b60006115ba83610b62565b9050806001600160a01b0316846001600160a01b031614806115f55750836001600160a01b03166115ea846105d5565b6001600160a01b0316145b8061162557506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661164082610b62565b6001600160a01b0316146116a85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016104f0565b6001600160a01b03821661170a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016104f0565b611715838383611aad565b6117206000826114d5565b8160058281548110611734576117346127a7565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60006104c061179b611b25565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006117eb8585611c4c565b91509150610d8a81611cbc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821661189e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016104f0565b6118a78161148b565b156118f45760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104f0565b61190060008383611aad565b6005805460018101825560009182527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61198784848461162d565b61199384848484611e77565b6112535760405162461bcd60e51b81526004016104f09061289b565b6060816119d35750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119fd57806119e7816127bd565b91506119f69050600a83612903565b91506119d7565b60008167ffffffffffffffff811115611a1857611a186123c8565b6040519080825280601f01601f191660200182016040528015611a42576020820181803683370190505b5090505b841561162557611a5760018361273f565b9150611a64600a86612917565b611a6f906030612727565b60f81b818381518110611a8457611a846127a7565b60200101906001600160f81b031916908160001a905350611aa6600a86612903565b9450611a46565b6001600160a01b03831615611ae7576001600160a01b03831660009081526008602052604081208054909190611ae29061292b565b909155505b6001600160a01b0382161561076e576001600160a01b03821660009081526008602052604081208054909190611b1c906127bd565b90915550505050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015611b7e57507f000000000000000000000000000000000000000000000000000000000000000046145b15611ba857507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b600080825160411415611c835760208301516040840151606085015160001a611c7787828585611f84565b94509450505050611cb5565b825160401415611cad5760208301516040840151611ca2868383612071565b935093505050611cb5565b506000905060025b9250929050565b6000816004811115611cd057611cd0612942565b1415611cd95750565b6001816004811115611ced57611ced612942565b1415611d3b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016104f0565b6002816004811115611d4f57611d4f612942565b1415611d9d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016104f0565b6003816004811115611db157611db1612942565b1415611e0a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016104f0565b6004816004811115611e1e57611e1e612942565b14156109b05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016104f0565b60006001600160a01b0384163b15611f7957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ebb903390899088908890600401612958565b602060405180830381600087803b158015611ed557600080fd5b505af1925050508015611f05575060408051601f3d908101601f19168201909252611f0291810190612995565b60015b611f5f573d808015611f33576040519150601f19603f3d011682016040523d82523d6000602084013e611f38565b606091505b508051611f575760405162461bcd60e51b81526004016104f09061289b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611625565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611fbb5750600090506003612068565b8460ff16601b14158015611fd357508460ff16601c14155b15611fe45750600090506004612068565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612038573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661206157600060019250925050612068565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161209287828885611f84565b935093505050935093915050565b8280546120ac906126d6565b90600052602060002090601f0160209004810192826120ce5760008555612114565b82601f106120e75782800160ff19823516178555612114565b82800160010185558215612114579182015b828111156121145782358255916020019190600101906120f9565b50610abd9291505b80821115610abd576000815560010161211c565b6001600160e01b0319811681146109b057600080fd5b60006020828403121561215857600080fd5b8135610a4981612130565b60008083601f84011261217557600080fd5b50813567ffffffffffffffff81111561218d57600080fd5b602083019150836020828501011115611cb557600080fd5b600080602083850312156121b857600080fd5b823567ffffffffffffffff8111156121cf57600080fd5b6121db85828601612163565b90969095509350505050565b60005b838110156122025781810151838201526020016121ea565b838111156112535750506000910152565b6000815180845261222b8160208601602086016121e7565b601f01601f19169290920160200192915050565b602081526000610a496020830184612213565b60006020828403121561226457600080fd5b5035919050565b80356001600160a01b038116811461228257600080fd5b919050565b6000806040838503121561229a57600080fd5b6122a38361226b565b946020939093013593505050565b6000806000606084860312156122c657600080fd5b6122cf8461226b565b92506122dd6020850161226b565b9150604084013590509250925092565b8035801515811461228257600080fd5b6000806040838503121561231057600080fd5b6123198361226b565b9150612327602084016122ed565b90509250929050565b60008083601f84011261234257600080fd5b50813567ffffffffffffffff81111561235a57600080fd5b6020830191508360208260051b8501011115611cb557600080fd5b60008060006040848603121561238a57600080fd5b6123938461226b565b9250602084013567ffffffffffffffff8111156123af57600080fd5b6123bb86828701612330565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126123ef57600080fd5b813567ffffffffffffffff8082111561240a5761240a6123c8565b604051601f8301601f19908116603f01168101908282118183101715612432576124326123c8565b8160405283815286602085880101111561244b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561247e57600080fd5b82359150602083013567ffffffffffffffff81111561249c57600080fd5b6124a8858286016123de565b9150509250929050565b6000602082840312156124c457600080fd5b610a498261226b565b6020808252825182820181905260009190848201906040850190845b81811015612505578351835292840192918401916001016124e9565b50909695505050505050565b6000806040838503121561252457600080fd5b823591506123276020840161226b565b6000806000806000806080878903121561254d57600080fd5b6125568761226b565b95506125646020880161226b565b9450604087013567ffffffffffffffff8082111561258157600080fd5b61258d8a838b01612330565b909650945060608901359150808211156125a657600080fd5b506125b389828a01612163565b979a9699509497509295939492505050565b600080600080608085870312156125db57600080fd5b6125e48561226b565b93506125f26020860161226b565b925060408501359150606085013567ffffffffffffffff81111561261557600080fd5b612621878288016123de565b91505092959194509250565b60006020828403121561263f57600080fd5b610a49826122ed565b6000806040838503121561265b57600080fd5b6126648361226b565b91506123276020840161226b565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b600181811c908216806126ea57607f821691505b6020821081141561270b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561273a5761273a612711565b500190565b60008282101561275157612751612711565b500390565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156127d1576127d1612711565b5060010190565b600081516127ea8185602086016121e7565b9290920192915050565b600080845481600182811c91508083168061281057607f831692505b602080841082141561283057634e487b7160e01b86526022600452602486fd5b818015612844576001811461285557612882565b60ff19861689528489019650612882565b60008b81526020902060005b8681101561287a5781548b820152908501908301612861565b505084890196505b50505050505061289281856127d8565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612912576129126128ed565b500490565b600082612926576129266128ed565b500690565b60008161293a5761293a612711565b506000190190565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061298b90830184612213565b9695505050505050565b6000602082840312156129a757600080fd5b8151610a498161213056fea26469706673582212205a8cd480d2be18950a06bbb9dd925f22a034c0ae48cd6cd3f6eb10f19bcfb8ba64736f6c63430008090033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101f05760003560e01c806370a082311161010f578063a22cb465116100a2578063d9c0f6b611610071578063d9c0f6b614610431578063e52e58fd14610444578063e985e9c51461044c578063f2fde38b1461048857600080fd5b8063a22cb465146103e5578063b534a5c4146103f8578063b88d4fde1461040b578063c87b56dd1461041e57600080fd5b80638da5cb5b116100de5780638da5cb5b146103a65780638ec15137146103b75780638f6ad003146103ca57806395d89b41146103dd57600080fd5b806370a082311461035e578063715018a6146103715780637a5b85c1146103795780638462151c1461038657600080fd5b80633a1804dd116101875780634f6ccce7116101565780634f6ccce71461030257806354f96da7146103155780636352211e146103285780636ed03b4a1461033b57600080fd5b80633a1804dd146102c15780633ccfd60b146102d457806342842e0e146102dc5780634d44660c146102ef57600080fd5b8063095ea7b3116101c3578063095ea7b31461027257806318160ddd1461028557806323b872dd1461029b5780632f745c59146102ae57600080fd5b806301ffc9a7146101f557806302fe53051461021d57806306fdde0314610232578063081812fc14610247575b600080fd5b610208610203366004612146565b61049b565b60405190151581526020015b60405180910390f35b61023061022b3660046121a5565b6104c6565b005b61023a610543565b604051610214919061223f565b61025a610255366004612252565b6105d5565b6040516001600160a01b039091168152602001610214565b610230610280366004612287565b61065d565b61028d610773565b604051908152602001610214565b6102306102a93660046122b1565b610797565b61028d6102bc366004612287565b6107c8565b6102306102cf3660046122fd565b610894565b61023061094c565b6102306102ea3660046122b1565b6109b3565b6102086102fd366004612375565b6109ce565b61028d610310366004612252565b610a50565b61020861032336600461246b565b610ac1565b61025a610336366004612252565b610b62565b6102086103493660046124b2565b600b6020526000908152604090205460ff1681565b61028d61036c3660046124b2565b610bee565b610230610cbc565b6009546102089060ff1681565b6103996103943660046124b2565b610cf2565b60405161021491906124cd565b6000546001600160a01b031661025a565b6102306103c536600461246b565b610d92565b6102306103d8366004612511565b610fd4565b61023a6110cf565b6102306103f33660046122fd565b6110de565b610230610406366004612534565b6111a3565b6102306104193660046125c5565b611221565b61023a61042c366004612252565b611259565b61023061043f36600461262d565b6112d5565b61023061136b565b61020861045a366004612648565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102306104963660046124b2565b6113a3565b60006001600160e01b0319821663780e9d6360e01b14806104c057506104c08261143b565b92915050565b6000546001600160a01b031633146104f95760405162461bcd60e51b81526004016104f090612672565b60405180910390fd5b610505600a83836120a0565b507f228a3ac0675af69daeaaa5b8d369fe2faae665e7f340f0b78ccbb84e17b4f69482826040516105379291906126a7565b60405180910390a15050565b606060018054610552906126d6565b80601f016020809104026020016040519081016040528092919081815260200182805461057e906126d6565b80156105cb5780601f106105a0576101008083540402835291602001916105cb565b820191906000526020600020905b8154815290600101906020018083116105ae57829003601f168201915b5050505050905090565b60006105e08261148b565b6106415760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016104f0565b506000908152600660205260409020546001600160a01b031690565b600061066882610b62565b9050806001600160a01b0316836001600160a01b031614156106d65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016104f0565b336001600160a01b03821614806106f257506106f2813361045a565b6107645760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016104f0565b61076e83836114d5565b505050565b60006003546004546107859190612727565b600554610792919061273f565b905090565b6107a13382611543565b6107bd5760405162461bcd60e51b81526004016104f090612756565b61076e83838361162d565b60008060005b60055481101561083757600581815481106107eb576107eb6127a7565b6000918252602090912001546001600160a01b0386811691161415610827578382141561081b5791506104c09050565b610824826127bd565b91505b610830816127bd565b90506107ce565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016104f0565b6000546001600160a01b031633146108be5760405162461bcd60e51b81526004016104f090612672565b6001600160a01b0382166000908152600b602052604090205460ff16151581151514156109215760405162461bcd60e51b81526020600482015260116024820152705345545f43555252454e545f535441544560781b60448201526064016104f0565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6000546001600160a01b031633146109765760405162461bcd60e51b81526004016104f090612672565b600080546040516001600160a01b03909116914780156108fc02929091818181858888f193505050501580156109b0573d6000803e3d6000fd5b50565b61076e83838360405180602001604052806000815250611221565b6000805b82811015610a4357846001600160a01b031660058585848181106109f8576109f86127a7565b9050602002013581548110610a0f57610a0f6127a7565b6000918252602090912001546001600160a01b031614610a33576000915050610a49565b610a3c816127bd565b90506109d2565b50600190505b9392505050565b6000610a5a610773565b8210610abd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016104f0565b5090565b600080610b32610b2c7fc7ae81dd0c8a6f149b5e45e8bef77c3b21df93fd9bf2b89c3d1b9ee6ae8f816d336040805160208101939093526001600160a01b0390911690820152606081018790526080016040516020818303038152906040528051906020012061178e565b846117dc565b9050806001600160a01b0316610b506000546001600160a01b031690565b6001600160a01b031614949350505050565b60008060058381548110610b7857610b786127a7565b6000918252602090912001546001600160a01b03169050806104c05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016104f0565b60006001600160a01b038216610c595760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016104f0565b6000805b600554811015610cb55760058181548110610c7a57610c7a6127a7565b6000918252602090912001546001600160a01b0385811691161415610ca557610ca2826127bd565b91505b610cae816127bd565b9050610c5d565b5092915050565b6000546001600160a01b03163314610ce65760405162461bcd60e51b81526004016104f090612672565b610cf060006117f8565b565b60606000610cff83610bee565b905060008167ffffffffffffffff811115610d1c57610d1c6123c8565b604051908082528060200260200182016040528015610d45578160200160208202803683370190505b50905060005b82811015610d8a57610d5d85826107c8565b828281518110610d6f57610d6f6127a7565b6020908102919091010152610d83816127bd565b9050610d4b565b509392505050565b60095460ff16610ddb5760405162461bcd60e51b8152602060048201526014602482015273465245455f4d494e545f4e4f545f41435449564560601b60448201526064016104f0565b323314610e1f5760405162461bcd60e51b815260206004820152601260248201527110d05313115497d254d7d0d3d395149050d560721b60448201526064016104f0565b610e298282610ac1565b610e755760405162461bcd60e51b815260206004820152601a60248201527f4e4f545f454c494749424c455f464f525f465245455f4d494e5400000000000060448201526064016104f0565b336000908152600b602052604090205460ff1615610ecc5760405162461bcd60e51b815260206004820152601460248201527311d2519517d053149150511657d0d3105253515160621b60448201526064016104f0565b3360009081526008602052604090205415610f215760405162461bcd60e51b81526020600482015260156024820152741653d557d053149150511657d210559157d1d25195605a1b60448201526064016104f0565b6000610f2b610773565b90508260081415610f6d5760005b6003811015610f6757610f573383610f50816127bd565b9450611848565b610f60816127bd565b9050610f39565b50610fb5565b8260041415610fa05760005b6002811015610f6757610f903383610f50816127bd565b610f99816127bd565b9050610f79565b610fb53382610fae816127bd565b9350611848565b5050336000908152600b60205260409020805460ff1916600117905550565b6000546001600160a01b03163314610ffe5760405162461bcd60e51b81526004016104f090612672565b6001600160a01b038116600090815260086020526040902054600390611025908490612727565b11156110735760405162461bcd60e51b815260206004820152601c60248201527f455843454544535f4d41585f414c4c4f5745445f474946545f4e554d0000000060448201526064016104f0565b600061107d610773565b905060005b838110156110a8576110988383610f50816127bd565b6110a1816127bd565b9050611082565b50506001600160a01b03166000908152600b60205260409020805460ff1916600117905550565b606060028054610552906126d6565b6001600160a01b0382163314156111375760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016104f0565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005b838110156112185761120887878787858181106111c5576111c56127a7565b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061122192505050565b611211816127bd565b90506111a6565b50505050505050565b61122b3383611543565b6112475760405162461bcd60e51b81526004016104f090612756565b6112538484848461197c565b50505050565b60606112648261148b565b6112a35760405162461bcd60e51b815260206004820152601060248201526f544f4b454e5f4e4f545f45584953545360801b60448201526064016104f0565b600a6112ae836119af565b6040516020016112bf9291906127f4565b6040516020818303038152906040529050919050565b6000546001600160a01b031633146112ff5760405162461bcd60e51b81526004016104f090612672565b60095460ff16151581151514156113585760405162461bcd60e51b815260206004820152601860248201527f53455454494e475f544f5f43555252454e545f5354415445000000000000000060448201526064016104f0565b6009805460ff1916911515919091179055565b6000546001600160a01b031633146113955760405162461bcd60e51b81526004016104f090612672565b6000546001600160a01b0316ff5b6000546001600160a01b031633146113cd5760405162461bcd60e51b81526004016104f090612672565b6001600160a01b0381166114325760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104f0565b6109b0816117f8565b60006001600160e01b031982166380ac58cd60e01b148061146c57506001600160e01b03198216635b5e139f60e01b145b806104c057506301ffc9a760e01b6001600160e01b03198316146104c0565b600554600090821080156104c0575060006001600160a01b0316600583815481106114b8576114b86127a7565b6000918252602090912001546001600160a01b0316141592915050565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061150a82610b62565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061154e8261148b565b6115af5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016104f0565b60006115ba83610b62565b9050806001600160a01b0316846001600160a01b031614806115f55750836001600160a01b03166115ea846105d5565b6001600160a01b0316145b8061162557506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661164082610b62565b6001600160a01b0316146116a85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016104f0565b6001600160a01b03821661170a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016104f0565b611715838383611aad565b6117206000826114d5565b8160058281548110611734576117346127a7565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60006104c061179b611b25565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006117eb8585611c4c565b91509150610d8a81611cbc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821661189e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016104f0565b6118a78161148b565b156118f45760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104f0565b61190060008383611aad565b6005805460018101825560009182527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61198784848461162d565b61199384848484611e77565b6112535760405162461bcd60e51b81526004016104f09061289b565b6060816119d35750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119fd57806119e7816127bd565b91506119f69050600a83612903565b91506119d7565b60008167ffffffffffffffff811115611a1857611a186123c8565b6040519080825280601f01601f191660200182016040528015611a42576020820181803683370190505b5090505b841561162557611a5760018361273f565b9150611a64600a86612917565b611a6f906030612727565b60f81b818381518110611a8457611a846127a7565b60200101906001600160f81b031916908160001a905350611aa6600a86612903565b9450611a46565b6001600160a01b03831615611ae7576001600160a01b03831660009081526008602052604081208054909190611ae29061292b565b909155505b6001600160a01b0382161561076e576001600160a01b03821660009081526008602052604081208054909190611b1c906127bd565b90915550505050565b6000306001600160a01b037f000000000000000000000000828f8fcb9b044aa8c7cc97ecabf2f016f2ec6cc016148015611b7e57507f000000000000000000000000000000000000000000000000000000000000000146145b15611ba857507f511b5ce920a9a30ed17a15d0bfe1d70fa5892343fb855965cb5ce6aa1fddf71d90565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f02ba81f2f0d1c43a5d5465ba0637f6608943e3bb5d49cc8acce8d3f2303ff9f2828401527f06c015bd22b4c69690933c1058878ebdfef31f9aaae40bbe86d8a09fe1b2972c60608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b600080825160411415611c835760208301516040840151606085015160001a611c7787828585611f84565b94509450505050611cb5565b825160401415611cad5760208301516040840151611ca2868383612071565b935093505050611cb5565b506000905060025b9250929050565b6000816004811115611cd057611cd0612942565b1415611cd95750565b6001816004811115611ced57611ced612942565b1415611d3b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016104f0565b6002816004811115611d4f57611d4f612942565b1415611d9d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016104f0565b6003816004811115611db157611db1612942565b1415611e0a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016104f0565b6004816004811115611e1e57611e1e612942565b14156109b05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016104f0565b60006001600160a01b0384163b15611f7957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ebb903390899088908890600401612958565b602060405180830381600087803b158015611ed557600080fd5b505af1925050508015611f05575060408051601f3d908101601f19168201909252611f0291810190612995565b60015b611f5f573d808015611f33576040519150601f19603f3d011682016040523d82523d6000602084013e611f38565b606091505b508051611f575760405162461bcd60e51b81526004016104f09061289b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611625565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611fbb5750600090506003612068565b8460ff16601b14158015611fd357508460ff16601c14155b15611fe45750600090506004612068565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612038573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661206157600060019250925050612068565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161209287828885611f84565b935093505050935093915050565b8280546120ac906126d6565b90600052602060002090601f0160209004810192826120ce5760008555612114565b82601f106120e75782800160ff19823516178555612114565b82800160010185558215612114579182015b828111156121145782358255916020019190600101906120f9565b50610abd9291505b80821115610abd576000815560010161211c565b6001600160e01b0319811681146109b057600080fd5b60006020828403121561215857600080fd5b8135610a4981612130565b60008083601f84011261217557600080fd5b50813567ffffffffffffffff81111561218d57600080fd5b602083019150836020828501011115611cb557600080fd5b600080602083850312156121b857600080fd5b823567ffffffffffffffff8111156121cf57600080fd5b6121db85828601612163565b90969095509350505050565b60005b838110156122025781810151838201526020016121ea565b838111156112535750506000910152565b6000815180845261222b8160208601602086016121e7565b601f01601f19169290920160200192915050565b602081526000610a496020830184612213565b60006020828403121561226457600080fd5b5035919050565b80356001600160a01b038116811461228257600080fd5b919050565b6000806040838503121561229a57600080fd5b6122a38361226b565b946020939093013593505050565b6000806000606084860312156122c657600080fd5b6122cf8461226b565b92506122dd6020850161226b565b9150604084013590509250925092565b8035801515811461228257600080fd5b6000806040838503121561231057600080fd5b6123198361226b565b9150612327602084016122ed565b90509250929050565b60008083601f84011261234257600080fd5b50813567ffffffffffffffff81111561235a57600080fd5b6020830191508360208260051b8501011115611cb557600080fd5b60008060006040848603121561238a57600080fd5b6123938461226b565b9250602084013567ffffffffffffffff8111156123af57600080fd5b6123bb86828701612330565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126123ef57600080fd5b813567ffffffffffffffff8082111561240a5761240a6123c8565b604051601f8301601f19908116603f01168101908282118183101715612432576124326123c8565b8160405283815286602085880101111561244b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561247e57600080fd5b82359150602083013567ffffffffffffffff81111561249c57600080fd5b6124a8858286016123de565b9150509250929050565b6000602082840312156124c457600080fd5b610a498261226b565b6020808252825182820181905260009190848201906040850190845b81811015612505578351835292840192918401916001016124e9565b50909695505050505050565b6000806040838503121561252457600080fd5b823591506123276020840161226b565b6000806000806000806080878903121561254d57600080fd5b6125568761226b565b95506125646020880161226b565b9450604087013567ffffffffffffffff8082111561258157600080fd5b61258d8a838b01612330565b909650945060608901359150808211156125a657600080fd5b506125b389828a01612163565b979a9699509497509295939492505050565b600080600080608085870312156125db57600080fd5b6125e48561226b565b93506125f26020860161226b565b925060408501359150606085013567ffffffffffffffff81111561261557600080fd5b612621878288016123de565b91505092959194509250565b60006020828403121561263f57600080fd5b610a49826122ed565b6000806040838503121561265b57600080fd5b6126648361226b565b91506123276020840161226b565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b600181811c908216806126ea57607f821691505b6020821081141561270b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561273a5761273a612711565b500190565b60008282101561275157612751612711565b500390565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156127d1576127d1612711565b5060010190565b600081516127ea8185602086016121e7565b9290920192915050565b600080845481600182811c91508083168061281057607f831692505b602080841082141561283057634e487b7160e01b86526022600452602486fd5b818015612844576001811461285557612882565b60ff19861689528489019650612882565b60008b81526020902060005b8681101561287a5781548b820152908501908301612861565b505084890196505b50505050505061289281856127d8565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612912576129126128ed565b500490565b600082612926576129266128ed565b500690565b60008161293a5761293a612711565b506000190190565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061298b90830184612213565b9695505050505050565b6000602082840312156129a757600080fd5b8151610a498161213056fea26469706673582212205a8cd480d2be18950a06bbb9dd925f22a034c0ae48cd6cd3f6eb10f19bcfb8ba64736f6c63430008090033

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.