ETH Price: $2,974.42 (+2.54%)
Gas: 1 Gwei

Contract

0xCe790BfAc08d71F409ff33D5dE9EcCAAd07ECF2d
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x60806040152170882022-07-26 8:31:53710 days ago1658824313IN
 Create: GenesisV2
0 ETH0.0510478815

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GenesisV2

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
petersburg EvmVersion
File 1 of 16 : GenesisV2.sol
//SPDX-License-Identifier: Unlicense
pragma solidity 0.8.11;

import "./ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/cryptography/SignatureCheckerUpgradeable.sol";

contract GenesisV2 is
    ERC721Upgradeable,
    OwnableUpgradeable,
    ReentrancyGuardUpgradeable
{
    using StringsUpgradeable for uint256;

    uint256 public tokenCounter;

    // type 1 counter
    uint256 public genesisMemberCounter;

    uint256 public keySocietyCounter;

    // range for sale
    uint256[] public saleRange;

    uint256[] temp;

    // base uri for token
    string private baseUri;

    // token uri extension
    string private baseExtension;

    // Users structure
    struct Users {
        address user;
        uint256 count;
    }

    // genesis user mapping w.r.t their address
    mapping(address => Users) public genesisList;

    // key society sale status
    bool public keySocietySaleStatus;

    // genesis sale status
    bool public genesisSaleStatus;

    // max NFT limit
    uint256 public maxNFT;

    // get token type
    mapping(uint256 => string) public tokenType;

    // genesis whitelist structure.
    struct Whitelist {
        bool isWhitlelisted;
        bool isClaimed;
    }

    // mapping of user address with whitelist data
    mapping(address => Whitelist) public WhitelistedAddress;

    // Order struct
    struct Order {
        uint256 num;
        uint256 price;
        uint256 usdPrice;
        bytes32 messageHash;
    }

    // cross mint address
    address public crossMintAddress;

    // merchant wallet address
    address public merchantWallet;

    // unlimited stage enable disable
    bool public genesisUnlimitedStage;

    // check for no repetition of signature
    mapping(bytes => bool) public signatureCheck;

    // token details
    struct Token {
        uint256 tokenId;
        string tokenType;
    }

    // Price
    uint256 public Price;

    // crossmint token counter
    uint256 public crossmintCounter;

    /**
     * @dev Emitted when new gensis token is minted.
     */
    event GenesisPurchased(
        address user,
        uint256[] tokenIds,
        uint256 ethPrice,
        uint256 usdPrice,
        string tokenType
    );

    /**
     * @dev Emitted when new token minted by owner.
     */
    event KeySocietyClaimed(address user, uint256 tokenId, string tokenType);

    /**
     * @dev Emitted when new token minted by owner.
     */
    event crossmintToTokenDetails(
        address to,
        uint256[] tokenIds,
        uint256 userId,
        uint256 priceETH,
        uint256 priceUSD,
        string tokenType
    );

    /**
     * @dev Emitted when new tokens are airdroped.
     */
    event AirDrop(address[] user, uint256[] tokenIds, string tokenType);

    // initialisation section

    function initialize() public initializer {
        __ERC721_init("Clubhouse Archives", "CAG");
        __Ownable_init();
        __ReentrancyGuard_init();

        baseUri = "https://s3.amazonaws.com/assets.thearchivesmint.xyz/token-uri/";
        baseExtension = "/token-uri.json";

        saleRange = [80, 1880];
        maxNFT = 2;

        keySocietySaleStatus = true;
        genesisSaleStatus = true;
        genesisUnlimitedStage = true;

        keySocietyCounter = 0; // id = 1
        genesisMemberCounter = 0; // id = 2

        merchantWallet = owner();

        crossMintAddress = 0xdAb1a1854214684acE522439684a145E62505233;
    }

    function withdraw() external virtual nonReentrant onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    /**
     * @dev updates the totalSupply range
     *
     * @param _saleRangeIds range of token supply according to their types
     * Example: [1, 80, 1960]. From 1 to 80 = type 1
     * From 81 to 1960 = type 2
     *
     * Requirements:
     * - only owner can update value.
     */

    function updateTotalSupply(
        uint256[] calldata _saleRangeIds,
        uint256 _maxNft
    ) external virtual onlyOwner {
        delete saleRange;
        saleRange.push(_saleRangeIds[0]);
        saleRange.push(_saleRangeIds[1]);
        maxNFT = _maxNft;
    }

    /**
     * @dev updates the token base uri and extension
     *
     * @param _baseuri base uri. (Ex. "https://abc.com/")
     * @param _extension extension uri. (Ex. ".json", "-token-uri.json", etc)
     *
     * Requirements:
     * - only owner can update value.
     */

    function upadateDefaultUri(string memory _baseuri, string memory _extension)
        external
        virtual
        onlyOwner
    {
        baseUri = _baseuri;
        baseExtension = _extension;
    }

    /**
     * @dev updates the token minting price in crossmint function.
     *
     * @param _price mint price
     *
     * Requirements:
     * - only owner can update value.
     */

    function updatePrice(uint256 _price) external virtual onlyOwner {
        Price = _price;
    }

    /**
     * @dev user can view its balance token ids and its type
     *
     * @param _user user wallet address
     *
     * Returns:
     * - Array of struct Token
     */

    function userBalance(address _user)
        external
        view
        virtual
        returns (Token[] memory TokenDetails)
    {
        uint256 number = _userBalance[_user].length;
        TokenDetails = new Token[](number);
        uint256 j = 0;

        for (uint256 i = 0; i < number; i++) {
            if (_userBalance[_user][i] != 0) {
                Token memory _data = Token(
                    _userBalance[_user][i],
                    tokenType[_userBalance[_user][i]]
                );
                TokenDetails[j] = _data;
                j++;
            }
        }
    }

    /**
     * @dev updates the status of sales.
     *
     * @param _key_society key society status
     * @param _genesis_status genesis member society society
     * @param _genesis_unlimited_stage unlimited stage status
     *
     * Requirements:
     * - only owner can update value.
     */

    function upadateSaleStatus(
        bool _key_society,
        bool _genesis_status,
        bool _genesis_unlimited_stage
    ) external virtual onlyOwner {
        keySocietySaleStatus = _key_society;
        genesisSaleStatus = _genesis_status;
        genesisUnlimitedStage = _genesis_unlimited_stage;
    }

    /**
     * @dev updates the cross mint and merchant wallet address.
     *
     * @param _cross_mint_address cross mint address
     * @param _merchant_wallet merchant wallet address
     *
     * Requirements:
     * - only owner can update value.
     */

    function updateCrossMintAndMerchantAddress(
        address _cross_mint_address,
        address _merchant_wallet
    ) external virtual onlyOwner {
        crossMintAddress = _cross_mint_address;
        merchantWallet = _merchant_wallet;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     *
     * @param _tokenId tokenid.
     */

    function tokenURI(uint256 _tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(_tokenId),
            "GenesisV1: URI query for nonexistent token"
        );
        return
            string(
                abi.encodePacked(
                    baseUri,
                    StringsUpgradeable.toString(_tokenId),
                    baseExtension
                )
            );
    }

    /**
     * @dev adds and removes user from whitelist list.
     *
     * @param _addresses array of addresses.
     * @param _status whitelist status
     *
     * Requirements:
     * - msg.sender must be owner of contract.
     *
     * Returns
     * - boolean.
     *
     */

    function addOrRemoveWhitelistUser(
        address[] calldata _addresses,
        bool _status
    ) external virtual onlyOwner {
        for (uint256 i = 0; i < _addresses.length; i++) {
            WhitelistedAddress[_addresses[i]].isWhitlelisted = _status;
        }
    }

    /**
     * @dev claim the key society token. Only whitelisted addresses can claim.
     *
     * Requirements:
     * - msg.sender must be whitelist and have not been claimed.
     *
     * Emits a {KeySocietyClaimed} event.
     */

    function keySocietyClaim() external virtual {
        require(
            keySocietySaleStatus && saleRange[0] >= keySocietyCounter,
            "GenesisV1: Sale is closed"
        );

        require(
            WhitelistedAddress[msg.sender].isWhitlelisted &&
                !WhitelistedAddress[msg.sender].isClaimed,
            "GenesisV1: User is not whitelisted or already claimed"
        );

        tokenCounter += 1;
        _mint(msg.sender, tokenCounter);

        tokenType[tokenCounter] = "KEY-SOCIETY";
        keySocietyCounter += 1;
        WhitelistedAddress[msg.sender].isClaimed = true;

        emit KeySocietyClaimed(msg.sender, tokenCounter, "KEY-SOCIETY");
    }

    /**
     * @dev genesis member token minting
     *
     * @param order order structure
     * @param signature owner's signature
     *
     * Requirements:
     * - msg.sender must be whitelist as genesis member.
     *
     * Emits a {GenesisPurchased} event.
     */

    function genesisTokenSale(Order memory order, bytes memory signature)
        external
        payable
        virtual
    {
        require(
            genesisSaleStatus && saleRange[1] >= genesisMemberCounter,
            "GenesisV1: genesis sale is closed"
        );

        bool status = SignatureCheckerUpgradeable.isValidSignatureNow(
            owner(),
            order.messageHash,
            signature
        );
        require(
            status && !signatureCheck[signature],
            "$GenesisV1: cannot purchase the token"
        );

        if (genesisList[msg.sender].user == msg.sender) {
            genesisList[msg.sender].count += order.num;
        }

        if (genesisList[msg.sender].user == address(0)) {
            Users memory _data = Users(msg.sender, order.num);
            genesisList[msg.sender] = _data;
        }

        if (genesisUnlimitedStage) {
            require(
                genesisList[msg.sender].count <= maxNFT &&
                    order.price == msg.value,
                "GenesisV1: Exceeds max count or invalid price"
            );
        }

        for (uint256 i = 0; i < order.num; i++) {
            tokenCounter += 1;
            _mint(msg.sender, tokenCounter);
            temp.push(tokenCounter);
        }

        tokenType[tokenCounter] = "GENESIS-MEMBER";
        genesisMemberCounter += order.num;
        signatureCheck[signature] = true;

        payable(merchantWallet).transfer(msg.value); // merchant wallet

        emit GenesisPurchased(
            msg.sender,
            temp,
            msg.value,
            order.usdPrice,
            "GENESIS-MEMBER"
        );

        delete temp;
    }

    /**
     * @dev mint to method used by cross mint address.
     *
     * @param to to address where token to be minted
     * @param count number of tokens to be minted
     * @param userId user id from db
     * @param usd_price usd price
     *
     * Requirements:
     * - msg.sender must be crossmmint address
     *
     * Returns
     * - boolean.
     *
     * Emits a {crossmintToTokenDetails} event.
     */

    function mintTo(
        address to,
        uint256 count,
        uint256 userId,
        uint256 usd_price
    ) external payable returns (bool) {
        require(
            msg.sender == crossMintAddress,
            "GenesisV1: Method can be only called by Cross mint address"
        );

        uint256 _price = Price * count;
        require(_price <= msg.value, "GenesisV1: Price is incorrect");

        for (uint256 i = 0; i < count; i++) {
            tokenCounter += 1;
            _mint(to, tokenCounter);
            temp.push(tokenCounter);
        }

        tokenType[tokenCounter] = "GENESIS-MEMBER";
        crossmintCounter += 1;

        payable(merchantWallet).transfer(msg.value);

        emit crossmintToTokenDetails(
            to,
            temp,
            userId,
            msg.value,
            usd_price,
            "GENESIS-MEMBER"
        );

        delete temp;

        return true;
    }

    /**
     * @dev updates the cross mint token count
     *
     * @param _count count of cross mint
     *
     * Requirements:
     * - msg.sender must be owner address
     *
     */

    function updateGenesisDetails(uint256 _count) external virtual onlyOwner {
        crossmintCounter = _count;
        for (uint256 i = 1; i <= tokenCounter; i++) {
            bytes memory tempString = bytes(tokenType[i]);
            if (tempString.length == 0) {
                tokenType[i] = "GENESIS-MEMBER";
            }
        }
    }

    /**
     * @dev airdrops the tokens to array of addresses
     *
     * @param _addresses to address where token to be minted
     *
     * Requirements:
     * - msg.sender must be owner address
     *
     * Emits a {AirDrop} event.
     */

    function airdrop(address[] calldata _addresses) external virtual onlyOwner {
        require(
            saleRange[1] >= genesisMemberCounter,
            "GenesisV1: overflow supply"
        );

        for (uint256 i = 0; i < _addresses.length; i++) {
            tokenCounter += 1;
            genesisMemberCounter += 1;
            _mint(_addresses[i], tokenCounter);
            tokenType[tokenCounter] = "GENESIS-MEMBER";
            temp.push(tokenCounter);
        }

        emit AirDrop(_addresses, temp, "GENESIS-MEMBER");

        delete temp;
    }
}

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    mapping(address => uint256[]) internal _userBalance;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing {
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

        _balances[to] += 1;
        _owners[tokenId] = to;
        _userBalance[msg.sender].push(tokenId);

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

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

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

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

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

        for(uint256 i = 0; i < _userBalance[ownerOf(tokenId)].length; i++){
            if(_userBalance[ownerOf(tokenId)][i] == tokenId){
                delete _userBalance[ownerOf(tokenId)][i];
                _userBalance[ownerOf(tokenId)][i] = _userBalance[ownerOf(tokenId)][_userBalance[ownerOf(tokenId)].length - 1];
                _userBalance[ownerOf(tokenId)].pop();
            }
        }

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        for(uint256 i = 0; i < _userBalance[from].length; i++){
            if(_userBalance[from][i] == tokenId){
                delete _userBalance[from][i];
                _userBalance[from][i] = _userBalance[from][_userBalance[from].length - 1];
                _userBalance[from].pop();
        }
        }
        _balances[to] += 1;
        _userBalance[to].push(tokenId);
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[44] private __gap;
}

File 3 of 16 : IERC165Upgradeable.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 IERC165Upgradeable {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 4 of 16 : ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal onlyInitializing {
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 5 of 16 : SignatureCheckerUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/SignatureChecker.sol)

pragma solidity ^0.8.0;

import "./ECDSAUpgradeable.sol";
import "../AddressUpgradeable.sol";
import "../../interfaces/IERC1271Upgradeable.sol";

/**
 * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
 * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
 * Argent and Gnosis Safe.
 *
 * _Available since v4.1._
 */
library SignatureCheckerUpgradeable {
    /**
     * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the
     * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidSignatureNow(
        address signer,
        bytes32 hash,
        bytes memory signature
    ) internal view returns (bool) {
        (address recovered, ECDSAUpgradeable.RecoverError error) = ECDSAUpgradeable.tryRecover(hash, signature);
        if (error == ECDSAUpgradeable.RecoverError.NoError && recovered == signer) {
            return true;
        }

        (bool success, bytes memory result) = signer.staticcall(
            abi.encodeWithSelector(IERC1271Upgradeable.isValidSignature.selector, hash, signature)
        );
        return (success && result.length == 32 && abi.decode(result, (bytes4)) == IERC1271Upgradeable.isValidSignature.selector);
    }
}

File 6 of 16 : ECDSAUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../StringsUpgradeable.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 ECDSAUpgradeable {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", StringsUpgradeable.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 7 of 16 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 16 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 9 of 16 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721Upgradeable is IERC165Upgradeable {
    /**
     * @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 12 of 16 : IERC721ReceiverUpgradeable.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 IERC721ReceiverUpgradeable {
    /**
     * @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 13 of 16 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

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

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

    uint256 private _status;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 14 of 16 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 15 of 16 : IERC1271Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 *
 * _Available since v4.1._
 */
interface IERC1271Upgradeable {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

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

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _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);
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"user","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"string","name":"tokenType","type":"string"}],"name":"AirDrop","type":"event"},{"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":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"ethPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usdPrice","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenType","type":"string"}],"name":"GenesisPurchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenType","type":"string"}],"name":"KeySocietyClaimed","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"userId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"priceETH","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"priceUSD","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenType","type":"string"}],"name":"crossmintToTokenDetails","type":"event"},{"inputs":[],"name":"Price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WhitelistedAddress","outputs":[{"internalType":"bool","name":"isWhitlelisted","type":"bool"},{"internalType":"bool","name":"isClaimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"addOrRemoveWhitelistUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crossMintAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crossmintCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"genesisList","outputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genesisMemberCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genesisSaleStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"num","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"usdPrice","type":"uint256"},{"internalType":"bytes32","name":"messageHash","type":"bytes32"}],"internalType":"struct GenesisV2.Order","name":"order","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"genesisTokenSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"genesisUnlimitedStage","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":"keySocietyClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"keySocietyCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keySocietySaleStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merchantWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256","name":"userId","type":"uint256"},{"internalType":"uint256","name":"usd_price","type":"uint256"}],"name":"mintTo","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"uint256","name":"","type":"uint256"}],"name":"saleRange","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"signatureCheck","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenType","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseuri","type":"string"},{"internalType":"string","name":"_extension","type":"string"}],"name":"upadateDefaultUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_key_society","type":"bool"},{"internalType":"bool","name":"_genesis_status","type":"bool"},{"internalType":"bool","name":"_genesis_unlimited_stage","type":"bool"}],"name":"upadateSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_cross_mint_address","type":"address"},{"internalType":"address","name":"_merchant_wallet","type":"address"}],"name":"updateCrossMintAndMerchantAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"updateGenesisDetails","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"updatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_saleRangeIds","type":"uint256[]"},{"internalType":"uint256","name":"_maxNft","type":"uint256"}],"name":"updateTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"userBalance","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenType","type":"string"}],"internalType":"struct GenesisV2.Token[]","name":"TokenDetails","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50613c9b806100206000396000f3fe60806040526004361061027d5760003560e01c806389f848211161014f578063b88d4fde116100c1578063e456b01c1161007a578063e456b01c1461079b578063e6c3b1f6146107b2578063e985e9c5146107d2578063f2fde38b1461081b578063f3b9e9621461083b578063f60031201461089b57600080fd5b8063b88d4fde146106e3578063bc85e06414610703578063c87b56dd14610724578063d082e38114610744578063d81603a51461075a578063e2c674a41461077a57600080fd5b806397c04edb1161011357806397c04edb1461063e5780639dfde2011461065e578063a22cb46514610675578063a5a6aaee14610695578063ae14e843146106ab578063b6afca22146106cd57600080fd5b806389f848211461057a5780638d6cc56d1461059a5780638da5cb5b146105ba57806395d89b41146105d85780639659de77146105ed57600080fd5b80634b7833af116101f35780636ff1f9bc116101ac5780636ff1f9bc146104de57806370a08231146104f9578063715018a614610519578063729ad39e1461052e5780638129fc1c1461054e57806382c6234f1461056357600080fd5b80634b7833af1461040157806354d44c251461042f5780635ab485c61461044f5780636352211e1461046f5780636a3e12151461048f5780636ece0153146104a257600080fd5b806311b3cba61161024557806311b3cba61461036457806323b872dd1461038457806328f0dc7a146103a45780633ba10a36146103b75780633ccfd60b146103cc57806342842e0e146103e157600080fd5b80630103c92b1461028257806301ffc9a7146102b857806306fdde03146102e8578063081812fc1461030a578063095ea7b314610342575b600080fd5b34801561028e57600080fd5b506102a261029d3660046130f5565b6108bb565b6040516102af9190613168565b60405180910390f35b3480156102c457600080fd5b506102d86102d33660046131f2565b610af0565b60405190151581526020016102af565b3480156102f457600080fd5b506102fd610b42565b6040516102af919061320f565b34801561031657600080fd5b5061032a610325366004613222565b610bd4565b6040516001600160a01b0390911681526020016102af565b34801561034e57600080fd5b5061036261035d36600461323b565b610c6e565b005b34801561037057600080fd5b50610104546102d890610100900460ff1681565b34801561039057600080fd5b5061036261039f366004613265565b610d84565b6102d86103b23660046132a1565b610db5565b3480156103c357600080fd5b5061036261100d565b3480156103d857600080fd5b5061036261122b565b3480156103ed57600080fd5b506103626103fc366004613265565b6112f9565b34801561040d57600080fd5b5061042161041c366004613222565b611314565b6040519081526020016102af565b34801561043b57600080fd5b5061036261044a366004613222565b611335565b34801561045b57600080fd5b5061036261046a3660046132da565b611470565b34801561047b57600080fd5b5061032a61048a366004613222565b6114ca565b61036261049d3660046133b0565b611541565b3480156104ae57600080fd5b506102d86104bd36600461344c565b805160208183018101805161010a8252928201919093012091525460ff1681565b3480156104ea57600080fd5b50610104546102d89060ff1681565b34801561050557600080fd5b506104216105143660046130f5565b611962565b34801561052557600080fd5b506103626119e9565b34801561053a57600080fd5b506103626105493660046134c6565b611a1f565b34801561055a57600080fd5b50610362611c03565b34801561056f57600080fd5b5061042161010c5481565b34801561058657600080fd5b50610362610595366004613518565b611e19565b3480156105a657600080fd5b506103626105b5366004613222565b611e8a565b3480156105c657600080fd5b506098546001600160a01b031661032a565b3480156105e457600080fd5b506102fd611eba565b3480156105f957600080fd5b506106276106083660046130f5565b6101076020526000908152604090205460ff8082169161010090041682565b6040805192151583529015156020830152016102af565b34801561064a57600080fd5b5061036261065936600461355b565b611ec9565b34801561066a57600080fd5b5061042161010b5481565b34801561068157600080fd5b506103626106903660046135b5565b611f1c565b3480156106a157600080fd5b5061042160fd5481565b3480156106b757600080fd5b50610109546102d890600160a01b900460ff1681565b3480156106d957600080fd5b5061042160fe5481565b3480156106ef57600080fd5b506103626106fe3660046135df565b611f27565b34801561070f57600080fd5b506101095461032a906001600160a01b031681565b34801561073057600080fd5b506102fd61073f366004613222565b611f5f565b34801561075057600080fd5b5061042160fc5481565b34801561076657600080fd5b50610362610775366004613647565b612010565b34801561078657600080fd5b506101085461032a906001600160a01b031681565b3480156107a757600080fd5b506104216101055481565b3480156107be57600080fd5b506102fd6107cd366004613222565b6120ac565b3480156107de57600080fd5b506102d86107ed3660046132da565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561082757600080fd5b506103626108363660046130f5565b612147565b34801561084757600080fd5b5061087c6108563660046130f5565b61010360205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b0390931683526020830191909152016102af565b3480156108a757600080fd5b506103626108b6366004613692565b6121df565b6001600160a01b0381166000908152606b60205260409020546060908067ffffffffffffffff8111156108f0576108f061330d565b60405190808252806020026020018201604052801561093657816020015b60408051808201909152600081526060602082015281526020019060019003908161090e5790505b5091506000805b82811015610ae8576001600160a01b0385166000908152606b6020526040902080548290811061096f5761096f6136de565b9060005260206000200154600014610ad6576040805180820182526001600160a01b0387166000908152606b6020529182208054829190859081106109b6576109b66136de565b906000526020600020015481526020016101066000606b60008b6001600160a01b03166001600160a01b031681526020019081526020016000208681548110610a0157610a016136de565b906000526020600020015481526020019081526020016000208054610a25906136f4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a51906136f4565b8015610a9e5780601f10610a7357610100808354040283529160200191610a9e565b820191906000526020600020905b815481529060010190602001808311610a8157829003601f168201915b5050505050815250905080858481518110610abb57610abb6136de565b60200260200101819052508280610ad190613745565b935050505b80610ae081613745565b91505061093d565b505050919050565b60006001600160e01b031982166380ac58cd60e01b1480610b2157506001600160e01b03198216635b5e139f60e01b145b80610b3c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060658054610b51906136f4565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7d906136f4565b8015610bca5780601f10610b9f57610100808354040283529160200191610bca565b820191906000526020600020905b815481529060010190602001808311610bad57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b0316610c525760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b6000610c79826114ca565b9050806001600160a01b0316836001600160a01b03161415610ce75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c49565b336001600160a01b0382161480610d035750610d0381336107ed565b610d755760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c49565b610d7f838361228e565b505050565b610d8e33826122fc565b610daa5760405162461bcd60e51b8152600401610c4990613760565b610d7f8383836123ef565b610108546000906001600160a01b03163314610e395760405162461bcd60e51b815260206004820152603a60248201527f47656e6573697356313a204d6574686f642063616e206265206f6e6c7920636160448201527f6c6c65642062792043726f7373206d696e7420616464726573730000000000006064820152608401610c49565b60008461010b54610e4a91906137b1565b905034811115610e9c5760405162461bcd60e51b815260206004820152601d60248201527f47656e6573697356313a20507269636520697320696e636f72726563740000006044820152606401610c49565b60005b85811015610f1657600160fc6000828254610eba91906137d0565b92505081905550610ecd8760fc54612714565b60fc5461010080546001810182556000919091527f45e010b9ae401e2eb71529478da8bd513a9bdc2d095a111e324f5b95c09ed87b015580610f0e81613745565b915050610e9f565b50604080518082018252600e81526d23a2a722a9a4a996a6a2a6a122a960911b602080830191825260fc546000908152610106909152929092209051610f5c9290612fe1565b50600161010c6000828254610f7191906137d0565b9091555050610109546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610fb0573d6000803e3d6000fd5b507fcf645e72d4933700c8be19c317f9f4673f2db0eef36f3742c77ff4f3e8dc434286610100863487604051610fea959493929190613828565b60405180910390a1610fff6101006000613065565b60019150505b949350505050565b6101045460ff168015611040575060fe5460ff600081548110611032576110326136de565b906000526020600020015410155b61108c5760405162461bcd60e51b815260206004820152601960248201527f47656e6573697356313a2053616c6520697320636c6f736564000000000000006044820152606401610c49565b336000908152610107602052604090205460ff1680156110c257503360009081526101076020526040902054610100900460ff16155b61112c5760405162461bcd60e51b815260206004820152603560248201527f47656e6573697356313a2055736572206973206e6f742077686974656c6973746044820152741959081bdc88185b1c9958591e4818db185a5b5959605a1b6064820152608401610c49565b600160fc600082825461113f91906137d0565b925050819055506111523360fc54612714565b604080518082018252600b81526a4b45592d534f434945545960a81b602080830191825260fc5460009081526101069091529290922090516111949290612fe1565b50600160fe60008282546111a891906137d0565b90915550503360008181526101076020908152604091829020805461ff00191661010017905560fc548251938452908301526060908201819052600b908201526a4b45592d534f434945545960a81b60808201527fa77b58f5c429450b078b55cf9ff4f587b0642d00b51bd783035b2bef6a0fb4379060a00160405180910390a1565b600260ca54141561127e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c49565b600260ca556098546001600160a01b031633146112ad5760405162461bcd60e51b8152600401610c4990613897565b6098546001600160a01b03166040516001600160a01b039190911690303180156108fc02916000818181858888f193505050501580156112f1573d6000803e3d6000fd5b50600160ca55565b610d7f83838360405180602001604052806000815250611f27565b60ff818154811061132457600080fd5b600091825260209091200154905081565b6098546001600160a01b0316331461135f5760405162461bcd60e51b8152600401610c4990613897565b61010c81905560015b60fc54811161146c57600081815261010660205260408120805461138b906136f4565b80601f01602080910402602001604051908101604052809291908181526020018280546113b7906136f4565b80156114045780601f106113d957610100808354040283529160200191611404565b820191906000526020600020905b8154815290600101906020018083116113e757829003601f168201915b5050505050905080516000141561145957604080518082018252600e81526d23a2a722a9a4a996a6a2a6a122a960911b602080830191825260008681526101069091529290922090516114579290612fe1565b505b508061146481613745565b915050611368565b5050565b6098546001600160a01b0316331461149a5760405162461bcd60e51b8152600401610c4990613897565b61010880546001600160a01b039384166001600160a01b0319918216179091556101098054929093169116179055565b6000818152606760205260408120546001600160a01b031680610b3c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c49565b61010454610100900460ff168015611579575060fd5460ff60018154811061156b5761156b6136de565b906000526020600020015410155b6115cf5760405162461bcd60e51b815260206004820152602160248201527f47656e6573697356313a2067656e657369732073616c6520697320636c6f73656044820152601960fa1b6064820152608401610c49565b60006115f16115e66098546001600160a01b031690565b846060015184612875565b9050808015611621575061010a8260405161160c91906138cc565b9081526040519081900360200190205460ff16155b61167b5760405162461bcd60e51b815260206004820152602560248201527f2447656e6573697356313a2063616e6e6f7420707572636861736520746865206044820152643a37b5b2b760d91b6064820152608401610c49565b33600081815261010360205260409020546001600160a01b031614156116c65782513360009081526101036020526040812060010180549091906116c09084906137d0565b90915550505b33600090815261010360205260409020546001600160a01b031661172d57604080518082018252338082528551602080840191825260009283526101039052929020905181546001600160a01b0319166001600160a01b0390911617815590516001909101555b61010954600160a01b900460ff16156117cb57610105543360009081526101036020526040902060010154118015906117695750348360200151145b6117cb5760405162461bcd60e51b815260206004820152602d60248201527f47656e6573697356313a2045786365656473206d617820636f756e74206f722060448201526c696e76616c696420707269636560981b6064820152608401610c49565b60005b835181101561184657600160fc60008282546117ea91906137d0565b925050819055506117fd3360fc54612714565b60fc5461010080546001810182556000919091527f45e010b9ae401e2eb71529478da8bd513a9bdc2d095a111e324f5b95c09ed87b01558061183e81613745565b9150506117ce565b50604080518082018252600e81526d23a2a722a9a4a996a6a2a6a122a960911b602080830191825260fc54600090815261010690915292909220905161188c9290612fe1565b50825160fd80546000906118a19084906137d0565b92505081905550600161010a836040516118bb91906138cc565b908152604051908190036020018120805492151560ff1990931692909217909155610109546001600160a01b0316903480156108fc02916000818181858888f19350505050158015611911573d6000803e3d6000fd5b507f6075f964ddc6ba47b0ea4945225777dd6d0f8423efd34df4cc4a1c2928ea3dc13361010034866040015160405161194d94939291906138e8565b60405180910390a1610d7f6101006000613065565b60006001600160a01b0382166119cd5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c49565b506001600160a01b031660009081526068602052604090205490565b6098546001600160a01b03163314611a135760405162461bcd60e51b8152600401610c4990613897565b611a1d60006129c3565b565b6098546001600160a01b03163314611a495760405162461bcd60e51b8152600401610c4990613897565b60fd5460ff600181548110611a6057611a606136de565b90600052602060002001541015611ab95760405162461bcd60e51b815260206004820152601a60248201527f47656e6573697356313a206f766572666c6f7720737570706c790000000000006044820152606401610c49565b60005b81811015611bb857600160fc6000828254611ad791906137d0565b92505081905550600160fd6000828254611af191906137d0565b90915550611b299050838383818110611b0c57611b0c6136de565b9050602002016020810190611b2191906130f5565b60fc54612714565b604080518082018252600e81526d23a2a722a9a4a996a6a2a6a122a960911b602080830191825260fc546000908152610106909152929092209051611b6e9290612fe1565b5060fc5461010080546001810182556000919091527f45e010b9ae401e2eb71529478da8bd513a9bdc2d095a111e324f5b95c09ed87b015580611bb081613745565b915050611abc565b507f3e1e741c87a8b1c7acbdf1bc78354f38a7f36a3a2ad2e40abf2a9e440d1f27c68282610100604051611bee93929190613950565b60405180910390a161146c6101006000613065565b600054610100900460ff16611c1e5760005460ff1615611c22565b303b155b611c855760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610c49565b600054610100900460ff16158015611ca7576000805461ffff19166101011790555b611cf660405180604001604052806012815260200171436c7562686f75736520417263686976657360701b8152506040518060400160405280600381526020016243414760e81b815250612a15565b611cfe612a46565b611d06612a75565b6040518060600160405280603e8152602001613c28603e91398051611d349161010191602090910190612fe1565b5060408051808201909152600f8082526e17ba37b5b2b716bab934973539b7b760891b6020909201918252611d6c9161010291612fe1565b5060408051808201909152605081526107586020820152611d919060ff906002613083565b50600261010555610104805461ffff19166101011790556101098054600060fe81905560fd55609854600160a01b6001600160a01b039091166001600160a81b03199092169190911717905561010880546001600160a01b03191673dab1a1854214684ace522439684a145e625052331790558015611e16576000805461ff00191690555b50565b6098546001600160a01b03163314611e435760405162461bcd60e51b8152600401610c4990613897565b61010480549215156101000261ff00199415159490941661ffff19909316929092179290921790556101098054911515600160a01b0260ff60a01b19909216919091179055565b6098546001600160a01b03163314611eb45760405162461bcd60e51b8152600401610c4990613897565b61010b55565b606060668054610b51906136f4565b6098546001600160a01b03163314611ef35760405162461bcd60e51b8152600401610c4990613897565b8151611f0790610101906020850190612fe1565b508051610d7f90610102906020840190612fe1565b61146c338383612aa4565b611f3133836122fc565b611f4d5760405162461bcd60e51b8152600401610c4990613760565b611f5984848484612b73565b50505050565b6000818152606760205260409020546060906001600160a01b0316611fd95760405162461bcd60e51b815260206004820152602a60248201527f47656e6573697356313a2055524920717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610c49565b610101611fe583612ba6565b610102604051602001611ffa93929190613a78565b6040516020818303038152906040529050919050565b6098546001600160a01b0316331461203a5760405162461bcd60e51b8152600401610c4990613897565b60005b82811015611f595781610107600086868581811061205d5761205d6136de565b905060200201602081019061207291906130f5565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806120a481613745565b91505061203d565b61010660205260009081526040902080546120c6906136f4565b80601f01602080910402602001604051908101604052809291908181526020018280546120f2906136f4565b801561213f5780601f106121145761010080835404028352916020019161213f565b820191906000526020600020905b81548152906001019060200180831161212257829003601f168201915b505050505081565b6098546001600160a01b031633146121715760405162461bcd60e51b8152600401610c4990613897565b6001600160a01b0381166121d65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c49565b611e16816129c3565b6098546001600160a01b031633146122095760405162461bcd60e51b8152600401610c4990613897565b61221560ff6000613065565b60ff8383600081811061222a5761222a6136de565b83546001808201865560009586526020958690209290950293909301359201919091555060ff9084908490818110612264576122646136de565b83546001810185556000948552602094859020919094029290920135919092015550610105555050565b600081815260696020526040902080546001600160a01b0319166001600160a01b03841690811790915581906122c3826114ca565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b03166123755760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c49565b6000612380836114ca565b9050806001600160a01b0316846001600160a01b031614806123bb5750836001600160a01b03166123b084610bd4565b6001600160a01b0316145b8061100557506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff16611005565b826001600160a01b0316612402826114ca565b6001600160a01b0316146124665760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c49565b6001600160a01b0382166124c85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c49565b6124d360008261228e565b6001600160a01b03831660009081526068602052604081208054600192906124fc908490613aa0565b90915550600090505b6001600160a01b0384166000908152606b602052604090205481101561266e576001600160a01b0384166000908152606b60205260409020805483919083908110612552576125526136de565b9060005260206000200154141561265c576001600160a01b0384166000908152606b6020526040902080548290811061258d5761258d6136de565b600091825260208083209091018290556001600160a01b0386168252606b90526040902080546125bf90600190613aa0565b815481106125cf576125cf6136de565b9060005260206000200154606b6000866001600160a01b03166001600160a01b031681526020019081526020016000208281548110612610576126106136de565b60009182526020808320909101929092556001600160a01b0386168152606b9091526040902080548061264557612645613ab7565b600190038181906000526020600020016000905590555b8061266681613745565b915050612505565b506001600160a01b03821660009081526068602052604081208054600192906126989084906137d0565b90915550506001600160a01b038083166000818152606b60209081526040808320805460018101825590845282842001869055858352606790915280822080546001600160a01b031916841790555184938716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821661276a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c49565b6000818152606760205260409020546001600160a01b0316156127cf5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c49565b6001600160a01b03821660009081526068602052604081208054600192906127f89084906137d0565b9091555050600081815260676020908152604080832080546001600160a01b0319166001600160a01b038716908117909155338452606b83528184208054600181018255908552928420909201849055518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008060006128848585612ca4565b9092509050600081600481111561289d5761289d613acd565b1480156128bb5750856001600160a01b0316826001600160a01b0316145b156128cb576001925050506129bc565b600080876001600160a01b0316631626ba7e60e01b88886040516024016128f3929190613ae3565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252905161293191906138cc565b600060405180830381855afa9150503d806000811461296c576040519150601f19603f3d011682016040523d82523d6000602084013e612971565b606091505b5091509150818015612984575080516020145b80156129b557508051630b135d3f60e11b906129a99083016020908101908401613afc565b6001600160e01b031916145b9450505050505b9392505050565b609880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16612a3c5760405162461bcd60e51b8152600401610c4990613b19565b61146c8282612d14565b600054610100900460ff16612a6d5760405162461bcd60e51b8152600401610c4990613b19565b611a1d612d62565b600054610100900460ff16612a9c5760405162461bcd60e51b8152600401610c4990613b19565b611a1d612d92565b816001600160a01b0316836001600160a01b03161415612b065760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c49565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612b7e8484846123ef565b612b8a84848484612dc0565b611f595760405162461bcd60e51b8152600401610c4990613b64565b606081612bca5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612bf45780612bde81613745565b9150612bed9050600a83613bcc565b9150612bce565b60008167ffffffffffffffff811115612c0f57612c0f61330d565b6040519080825280601f01601f191660200182016040528015612c39576020820181803683370190505b5090505b841561100557612c4e600183613aa0565b9150612c5b600a86613be0565b612c669060306137d0565b60f81b818381518110612c7b57612c7b6136de565b60200101906001600160f81b031916908160001a905350612c9d600a86613bcc565b9450612c3d565b600080825160411415612cdb5760208301516040840151606085015160001a612ccf87828585612ebb565b94509450505050612d0d565b825160401415612d055760208301516040840151612cfa868383612fa8565b935093505050612d0d565b506000905060025b9250929050565b600054610100900460ff16612d3b5760405162461bcd60e51b8152600401610c4990613b19565b8151612d4e906065906020850190612fe1565b508051610d7f906066906020840190612fe1565b600054610100900460ff16612d895760405162461bcd60e51b8152600401610c4990613b19565b611a1d336129c3565b600054610100900460ff16612db95760405162461bcd60e51b8152600401610c4990613b19565b600160ca55565b60006001600160a01b0384163b15612eb357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612e04903390899088908890600401613bf4565b6020604051808303816000875af1925050508015612e3f575060408051601f3d908101601f19168201909252612e3c91810190613afc565b60015b612e99573d808015612e6d576040519150601f19603f3d011682016040523d82523d6000602084013e612e72565b606091505b508051612e915760405162461bcd60e51b8152600401610c4990613b64565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611005565b506001611005565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612ef25750600090506003612f9f565b8460ff16601b14158015612f0a57508460ff16601c14155b15612f1b5750600090506004612f9f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612f6f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612f9857600060019250925050612f9f565b9150600090505b94509492505050565b6000806001600160ff1b03831681612fc560ff86901c601b6137d0565b9050612fd387828885612ebb565b935093505050935093915050565b828054612fed906136f4565b90600052602060002090601f01602090048101928261300f5760008555613055565b82601f1061302857805160ff1916838001178555613055565b82800160010185558215613055579182015b8281111561305557825182559160200191906001019061303a565b506130619291506130c4565b5090565b5080546000825590600052602060002090810190611e1691906130c4565b828054828255906000526020600020908101928215613055579160200282015b82811115613055578251829061ffff169055916020019190600101906130a3565b5b8082111561306157600081556001016130c5565b80356001600160a01b03811681146130f057600080fd5b919050565b60006020828403121561310757600080fd5b6129bc826130d9565b60005b8381101561312b578181015183820152602001613113565b83811115611f595750506000910152565b60008151808452613154816020860160208601613110565b601f01601f19169290920160200192915050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b838110156131ce57888303603f190185528151805184528701518784018790526131bb8785018261313c565b958801959350509086019060010161318f565b509098975050505050505050565b6001600160e01b031981168114611e1657600080fd5b60006020828403121561320457600080fd5b81356129bc816131dc565b6020815260006129bc602083018461313c565b60006020828403121561323457600080fd5b5035919050565b6000806040838503121561324e57600080fd5b613257836130d9565b946020939093013593505050565b60008060006060848603121561327a57600080fd5b613283846130d9565b9250613291602085016130d9565b9150604084013590509250925092565b600080600080608085870312156132b757600080fd5b6132c0856130d9565b966020860135965060408601359560600135945092505050565b600080604083850312156132ed57600080fd5b6132f6836130d9565b9150613304602084016130d9565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261333457600080fd5b813567ffffffffffffffff8082111561334f5761334f61330d565b604051601f8301601f19908116603f011681019082821181831017156133775761337761330d565b8160405283815286602085880101111561339057600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008082840360a08112156133c457600080fd5b60808112156133d257600080fd5b506040516080810167ffffffffffffffff82821081831117156133f7576133f761330d565b8160405285358352602086013560208401526040860135604084015260608601356060840152829450608086013592508083111561343457600080fd5b505061344285828601613323565b9150509250929050565b60006020828403121561345e57600080fd5b813567ffffffffffffffff81111561347557600080fd5b61100584828501613323565b60008083601f84011261349357600080fd5b50813567ffffffffffffffff8111156134ab57600080fd5b6020830191508360208260051b8501011115612d0d57600080fd5b600080602083850312156134d957600080fd5b823567ffffffffffffffff8111156134f057600080fd5b6134fc85828601613481565b90969095509350505050565b803580151581146130f057600080fd5b60008060006060848603121561352d57600080fd5b61353684613508565b925061354460208501613508565b915061355260408501613508565b90509250925092565b6000806040838503121561356e57600080fd5b823567ffffffffffffffff8082111561358657600080fd5b61359286838701613323565b935060208501359150808211156135a857600080fd5b5061344285828601613323565b600080604083850312156135c857600080fd5b6135d1836130d9565b915061330460208401613508565b600080600080608085870312156135f557600080fd5b6135fe856130d9565b935061360c602086016130d9565b925060408501359150606085013567ffffffffffffffff81111561362f57600080fd5b61363b87828801613323565b91505092959194509250565b60008060006040848603121561365c57600080fd5b833567ffffffffffffffff81111561367357600080fd5b61367f86828701613481565b9094509250613552905060208501613508565b6000806000604084860312156136a757600080fd5b833567ffffffffffffffff8111156136be57600080fd5b6136ca86828701613481565b909790965060209590950135949350505050565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061370857607f821691505b6020821081141561372957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60006000198214156137595761375961372f565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008160001904831182151516156137cb576137cb61372f565b500290565b600082198211156137e3576137e361372f565b500190565b6000815480845260208085019450836000528060002060005b8381101561381d57815487529582019560019182019101613801565b509495945050505050565b6001600160a01b038616815260c06020820181905260009061384c908301876137e8565b85604084015284606084015283608084015282810360a084015261388b81600e81526d23a2a722a9a4a996a6a2a6a122a960911b602082015260400190565b98975050505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082516138de818460208701613110565b9190910192915050565b6001600160a01b038516815260a06020820181905260009061390c908301866137e8565b846040840152836060840152828103608084015261394581600e81526d23a2a722a9a4a996a6a2a6a122a960911b602082015260400190565b979650505050505050565b6060808252810183905260008460808301825b86811015613991576001600160a01b0361397c846130d9565b16825260209283019290910190600101613963565b5083810360208501526139a481866137e8565b91505082810360408401526139d481600e81526d23a2a722a9a4a996a6a2a6a122a960911b602082015260400190565b9695505050505050565b8054600090600181811c90808316806139f857607f831692505b6020808410821415613a1a57634e487b7160e01b600052602260045260246000fd5b818015613a2e5760018114613a3f57613a6c565b60ff19861689528489019650613a6c565b60008881526020902060005b86811015613a645781548b820152908501908301613a4b565b505084890196505b50505050505092915050565b6000613a8482866139de565b8451613a94818360208901613110565b613945818301866139de565b600082821015613ab257613ab261372f565b500390565b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b828152604060208201526000611005604083018461313c565b600060208284031215613b0e57600080fd5b81516129bc816131dc565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613bdb57613bdb613bb6565b500490565b600082613bef57613bef613bb6565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906139d49083018461313c56fe68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6173736574732e74686561726368697665736d696e742e78797a2f746f6b656e2d7572692fa2646970667358221220edb322cd675f1efd840194da8944eb4bb6927fe732ae13b5d5c4ebd4f179960764736f6c634300080b0033

Deployed Bytecode

0x60806040526004361061027d5760003560e01c806389f848211161014f578063b88d4fde116100c1578063e456b01c1161007a578063e456b01c1461079b578063e6c3b1f6146107b2578063e985e9c5146107d2578063f2fde38b1461081b578063f3b9e9621461083b578063f60031201461089b57600080fd5b8063b88d4fde146106e3578063bc85e06414610703578063c87b56dd14610724578063d082e38114610744578063d81603a51461075a578063e2c674a41461077a57600080fd5b806397c04edb1161011357806397c04edb1461063e5780639dfde2011461065e578063a22cb46514610675578063a5a6aaee14610695578063ae14e843146106ab578063b6afca22146106cd57600080fd5b806389f848211461057a5780638d6cc56d1461059a5780638da5cb5b146105ba57806395d89b41146105d85780639659de77146105ed57600080fd5b80634b7833af116101f35780636ff1f9bc116101ac5780636ff1f9bc146104de57806370a08231146104f9578063715018a614610519578063729ad39e1461052e5780638129fc1c1461054e57806382c6234f1461056357600080fd5b80634b7833af1461040157806354d44c251461042f5780635ab485c61461044f5780636352211e1461046f5780636a3e12151461048f5780636ece0153146104a257600080fd5b806311b3cba61161024557806311b3cba61461036457806323b872dd1461038457806328f0dc7a146103a45780633ba10a36146103b75780633ccfd60b146103cc57806342842e0e146103e157600080fd5b80630103c92b1461028257806301ffc9a7146102b857806306fdde03146102e8578063081812fc1461030a578063095ea7b314610342575b600080fd5b34801561028e57600080fd5b506102a261029d3660046130f5565b6108bb565b6040516102af9190613168565b60405180910390f35b3480156102c457600080fd5b506102d86102d33660046131f2565b610af0565b60405190151581526020016102af565b3480156102f457600080fd5b506102fd610b42565b6040516102af919061320f565b34801561031657600080fd5b5061032a610325366004613222565b610bd4565b6040516001600160a01b0390911681526020016102af565b34801561034e57600080fd5b5061036261035d36600461323b565b610c6e565b005b34801561037057600080fd5b50610104546102d890610100900460ff1681565b34801561039057600080fd5b5061036261039f366004613265565b610d84565b6102d86103b23660046132a1565b610db5565b3480156103c357600080fd5b5061036261100d565b3480156103d857600080fd5b5061036261122b565b3480156103ed57600080fd5b506103626103fc366004613265565b6112f9565b34801561040d57600080fd5b5061042161041c366004613222565b611314565b6040519081526020016102af565b34801561043b57600080fd5b5061036261044a366004613222565b611335565b34801561045b57600080fd5b5061036261046a3660046132da565b611470565b34801561047b57600080fd5b5061032a61048a366004613222565b6114ca565b61036261049d3660046133b0565b611541565b3480156104ae57600080fd5b506102d86104bd36600461344c565b805160208183018101805161010a8252928201919093012091525460ff1681565b3480156104ea57600080fd5b50610104546102d89060ff1681565b34801561050557600080fd5b506104216105143660046130f5565b611962565b34801561052557600080fd5b506103626119e9565b34801561053a57600080fd5b506103626105493660046134c6565b611a1f565b34801561055a57600080fd5b50610362611c03565b34801561056f57600080fd5b5061042161010c5481565b34801561058657600080fd5b50610362610595366004613518565b611e19565b3480156105a657600080fd5b506103626105b5366004613222565b611e8a565b3480156105c657600080fd5b506098546001600160a01b031661032a565b3480156105e457600080fd5b506102fd611eba565b3480156105f957600080fd5b506106276106083660046130f5565b6101076020526000908152604090205460ff8082169161010090041682565b6040805192151583529015156020830152016102af565b34801561064a57600080fd5b5061036261065936600461355b565b611ec9565b34801561066a57600080fd5b5061042161010b5481565b34801561068157600080fd5b506103626106903660046135b5565b611f1c565b3480156106a157600080fd5b5061042160fd5481565b3480156106b757600080fd5b50610109546102d890600160a01b900460ff1681565b3480156106d957600080fd5b5061042160fe5481565b3480156106ef57600080fd5b506103626106fe3660046135df565b611f27565b34801561070f57600080fd5b506101095461032a906001600160a01b031681565b34801561073057600080fd5b506102fd61073f366004613222565b611f5f565b34801561075057600080fd5b5061042160fc5481565b34801561076657600080fd5b50610362610775366004613647565b612010565b34801561078657600080fd5b506101085461032a906001600160a01b031681565b3480156107a757600080fd5b506104216101055481565b3480156107be57600080fd5b506102fd6107cd366004613222565b6120ac565b3480156107de57600080fd5b506102d86107ed3660046132da565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561082757600080fd5b506103626108363660046130f5565b612147565b34801561084757600080fd5b5061087c6108563660046130f5565b61010360205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b0390931683526020830191909152016102af565b3480156108a757600080fd5b506103626108b6366004613692565b6121df565b6001600160a01b0381166000908152606b60205260409020546060908067ffffffffffffffff8111156108f0576108f061330d565b60405190808252806020026020018201604052801561093657816020015b60408051808201909152600081526060602082015281526020019060019003908161090e5790505b5091506000805b82811015610ae8576001600160a01b0385166000908152606b6020526040902080548290811061096f5761096f6136de565b9060005260206000200154600014610ad6576040805180820182526001600160a01b0387166000908152606b6020529182208054829190859081106109b6576109b66136de565b906000526020600020015481526020016101066000606b60008b6001600160a01b03166001600160a01b031681526020019081526020016000208681548110610a0157610a016136de565b906000526020600020015481526020019081526020016000208054610a25906136f4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a51906136f4565b8015610a9e5780601f10610a7357610100808354040283529160200191610a9e565b820191906000526020600020905b815481529060010190602001808311610a8157829003601f168201915b5050505050815250905080858481518110610abb57610abb6136de565b60200260200101819052508280610ad190613745565b935050505b80610ae081613745565b91505061093d565b505050919050565b60006001600160e01b031982166380ac58cd60e01b1480610b2157506001600160e01b03198216635b5e139f60e01b145b80610b3c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060658054610b51906136f4565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7d906136f4565b8015610bca5780601f10610b9f57610100808354040283529160200191610bca565b820191906000526020600020905b815481529060010190602001808311610bad57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b0316610c525760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b6000610c79826114ca565b9050806001600160a01b0316836001600160a01b03161415610ce75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c49565b336001600160a01b0382161480610d035750610d0381336107ed565b610d755760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c49565b610d7f838361228e565b505050565b610d8e33826122fc565b610daa5760405162461bcd60e51b8152600401610c4990613760565b610d7f8383836123ef565b610108546000906001600160a01b03163314610e395760405162461bcd60e51b815260206004820152603a60248201527f47656e6573697356313a204d6574686f642063616e206265206f6e6c7920636160448201527f6c6c65642062792043726f7373206d696e7420616464726573730000000000006064820152608401610c49565b60008461010b54610e4a91906137b1565b905034811115610e9c5760405162461bcd60e51b815260206004820152601d60248201527f47656e6573697356313a20507269636520697320696e636f72726563740000006044820152606401610c49565b60005b85811015610f1657600160fc6000828254610eba91906137d0565b92505081905550610ecd8760fc54612714565b60fc5461010080546001810182556000919091527f45e010b9ae401e2eb71529478da8bd513a9bdc2d095a111e324f5b95c09ed87b015580610f0e81613745565b915050610e9f565b50604080518082018252600e81526d23a2a722a9a4a996a6a2a6a122a960911b602080830191825260fc546000908152610106909152929092209051610f5c9290612fe1565b50600161010c6000828254610f7191906137d0565b9091555050610109546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610fb0573d6000803e3d6000fd5b507fcf645e72d4933700c8be19c317f9f4673f2db0eef36f3742c77ff4f3e8dc434286610100863487604051610fea959493929190613828565b60405180910390a1610fff6101006000613065565b60019150505b949350505050565b6101045460ff168015611040575060fe5460ff600081548110611032576110326136de565b906000526020600020015410155b61108c5760405162461bcd60e51b815260206004820152601960248201527f47656e6573697356313a2053616c6520697320636c6f736564000000000000006044820152606401610c49565b336000908152610107602052604090205460ff1680156110c257503360009081526101076020526040902054610100900460ff16155b61112c5760405162461bcd60e51b815260206004820152603560248201527f47656e6573697356313a2055736572206973206e6f742077686974656c6973746044820152741959081bdc88185b1c9958591e4818db185a5b5959605a1b6064820152608401610c49565b600160fc600082825461113f91906137d0565b925050819055506111523360fc54612714565b604080518082018252600b81526a4b45592d534f434945545960a81b602080830191825260fc5460009081526101069091529290922090516111949290612fe1565b50600160fe60008282546111a891906137d0565b90915550503360008181526101076020908152604091829020805461ff00191661010017905560fc548251938452908301526060908201819052600b908201526a4b45592d534f434945545960a81b60808201527fa77b58f5c429450b078b55cf9ff4f587b0642d00b51bd783035b2bef6a0fb4379060a00160405180910390a1565b600260ca54141561127e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c49565b600260ca556098546001600160a01b031633146112ad5760405162461bcd60e51b8152600401610c4990613897565b6098546001600160a01b03166040516001600160a01b039190911690303180156108fc02916000818181858888f193505050501580156112f1573d6000803e3d6000fd5b50600160ca55565b610d7f83838360405180602001604052806000815250611f27565b60ff818154811061132457600080fd5b600091825260209091200154905081565b6098546001600160a01b0316331461135f5760405162461bcd60e51b8152600401610c4990613897565b61010c81905560015b60fc54811161146c57600081815261010660205260408120805461138b906136f4565b80601f01602080910402602001604051908101604052809291908181526020018280546113b7906136f4565b80156114045780601f106113d957610100808354040283529160200191611404565b820191906000526020600020905b8154815290600101906020018083116113e757829003601f168201915b5050505050905080516000141561145957604080518082018252600e81526d23a2a722a9a4a996a6a2a6a122a960911b602080830191825260008681526101069091529290922090516114579290612fe1565b505b508061146481613745565b915050611368565b5050565b6098546001600160a01b0316331461149a5760405162461bcd60e51b8152600401610c4990613897565b61010880546001600160a01b039384166001600160a01b0319918216179091556101098054929093169116179055565b6000818152606760205260408120546001600160a01b031680610b3c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c49565b61010454610100900460ff168015611579575060fd5460ff60018154811061156b5761156b6136de565b906000526020600020015410155b6115cf5760405162461bcd60e51b815260206004820152602160248201527f47656e6573697356313a2067656e657369732073616c6520697320636c6f73656044820152601960fa1b6064820152608401610c49565b60006115f16115e66098546001600160a01b031690565b846060015184612875565b9050808015611621575061010a8260405161160c91906138cc565b9081526040519081900360200190205460ff16155b61167b5760405162461bcd60e51b815260206004820152602560248201527f2447656e6573697356313a2063616e6e6f7420707572636861736520746865206044820152643a37b5b2b760d91b6064820152608401610c49565b33600081815261010360205260409020546001600160a01b031614156116c65782513360009081526101036020526040812060010180549091906116c09084906137d0565b90915550505b33600090815261010360205260409020546001600160a01b031661172d57604080518082018252338082528551602080840191825260009283526101039052929020905181546001600160a01b0319166001600160a01b0390911617815590516001909101555b61010954600160a01b900460ff16156117cb57610105543360009081526101036020526040902060010154118015906117695750348360200151145b6117cb5760405162461bcd60e51b815260206004820152602d60248201527f47656e6573697356313a2045786365656473206d617820636f756e74206f722060448201526c696e76616c696420707269636560981b6064820152608401610c49565b60005b835181101561184657600160fc60008282546117ea91906137d0565b925050819055506117fd3360fc54612714565b60fc5461010080546001810182556000919091527f45e010b9ae401e2eb71529478da8bd513a9bdc2d095a111e324f5b95c09ed87b01558061183e81613745565b9150506117ce565b50604080518082018252600e81526d23a2a722a9a4a996a6a2a6a122a960911b602080830191825260fc54600090815261010690915292909220905161188c9290612fe1565b50825160fd80546000906118a19084906137d0565b92505081905550600161010a836040516118bb91906138cc565b908152604051908190036020018120805492151560ff1990931692909217909155610109546001600160a01b0316903480156108fc02916000818181858888f19350505050158015611911573d6000803e3d6000fd5b507f6075f964ddc6ba47b0ea4945225777dd6d0f8423efd34df4cc4a1c2928ea3dc13361010034866040015160405161194d94939291906138e8565b60405180910390a1610d7f6101006000613065565b60006001600160a01b0382166119cd5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c49565b506001600160a01b031660009081526068602052604090205490565b6098546001600160a01b03163314611a135760405162461bcd60e51b8152600401610c4990613897565b611a1d60006129c3565b565b6098546001600160a01b03163314611a495760405162461bcd60e51b8152600401610c4990613897565b60fd5460ff600181548110611a6057611a606136de565b90600052602060002001541015611ab95760405162461bcd60e51b815260206004820152601a60248201527f47656e6573697356313a206f766572666c6f7720737570706c790000000000006044820152606401610c49565b60005b81811015611bb857600160fc6000828254611ad791906137d0565b92505081905550600160fd6000828254611af191906137d0565b90915550611b299050838383818110611b0c57611b0c6136de565b9050602002016020810190611b2191906130f5565b60fc54612714565b604080518082018252600e81526d23a2a722a9a4a996a6a2a6a122a960911b602080830191825260fc546000908152610106909152929092209051611b6e9290612fe1565b5060fc5461010080546001810182556000919091527f45e010b9ae401e2eb71529478da8bd513a9bdc2d095a111e324f5b95c09ed87b015580611bb081613745565b915050611abc565b507f3e1e741c87a8b1c7acbdf1bc78354f38a7f36a3a2ad2e40abf2a9e440d1f27c68282610100604051611bee93929190613950565b60405180910390a161146c6101006000613065565b600054610100900460ff16611c1e5760005460ff1615611c22565b303b155b611c855760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610c49565b600054610100900460ff16158015611ca7576000805461ffff19166101011790555b611cf660405180604001604052806012815260200171436c7562686f75736520417263686976657360701b8152506040518060400160405280600381526020016243414760e81b815250612a15565b611cfe612a46565b611d06612a75565b6040518060600160405280603e8152602001613c28603e91398051611d349161010191602090910190612fe1565b5060408051808201909152600f8082526e17ba37b5b2b716bab934973539b7b760891b6020909201918252611d6c9161010291612fe1565b5060408051808201909152605081526107586020820152611d919060ff906002613083565b50600261010555610104805461ffff19166101011790556101098054600060fe81905560fd55609854600160a01b6001600160a01b039091166001600160a81b03199092169190911717905561010880546001600160a01b03191673dab1a1854214684ace522439684a145e625052331790558015611e16576000805461ff00191690555b50565b6098546001600160a01b03163314611e435760405162461bcd60e51b8152600401610c4990613897565b61010480549215156101000261ff00199415159490941661ffff19909316929092179290921790556101098054911515600160a01b0260ff60a01b19909216919091179055565b6098546001600160a01b03163314611eb45760405162461bcd60e51b8152600401610c4990613897565b61010b55565b606060668054610b51906136f4565b6098546001600160a01b03163314611ef35760405162461bcd60e51b8152600401610c4990613897565b8151611f0790610101906020850190612fe1565b508051610d7f90610102906020840190612fe1565b61146c338383612aa4565b611f3133836122fc565b611f4d5760405162461bcd60e51b8152600401610c4990613760565b611f5984848484612b73565b50505050565b6000818152606760205260409020546060906001600160a01b0316611fd95760405162461bcd60e51b815260206004820152602a60248201527f47656e6573697356313a2055524920717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610c49565b610101611fe583612ba6565b610102604051602001611ffa93929190613a78565b6040516020818303038152906040529050919050565b6098546001600160a01b0316331461203a5760405162461bcd60e51b8152600401610c4990613897565b60005b82811015611f595781610107600086868581811061205d5761205d6136de565b905060200201602081019061207291906130f5565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806120a481613745565b91505061203d565b61010660205260009081526040902080546120c6906136f4565b80601f01602080910402602001604051908101604052809291908181526020018280546120f2906136f4565b801561213f5780601f106121145761010080835404028352916020019161213f565b820191906000526020600020905b81548152906001019060200180831161212257829003601f168201915b505050505081565b6098546001600160a01b031633146121715760405162461bcd60e51b8152600401610c4990613897565b6001600160a01b0381166121d65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c49565b611e16816129c3565b6098546001600160a01b031633146122095760405162461bcd60e51b8152600401610c4990613897565b61221560ff6000613065565b60ff8383600081811061222a5761222a6136de565b83546001808201865560009586526020958690209290950293909301359201919091555060ff9084908490818110612264576122646136de565b83546001810185556000948552602094859020919094029290920135919092015550610105555050565b600081815260696020526040902080546001600160a01b0319166001600160a01b03841690811790915581906122c3826114ca565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b03166123755760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c49565b6000612380836114ca565b9050806001600160a01b0316846001600160a01b031614806123bb5750836001600160a01b03166123b084610bd4565b6001600160a01b0316145b8061100557506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff16611005565b826001600160a01b0316612402826114ca565b6001600160a01b0316146124665760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c49565b6001600160a01b0382166124c85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c49565b6124d360008261228e565b6001600160a01b03831660009081526068602052604081208054600192906124fc908490613aa0565b90915550600090505b6001600160a01b0384166000908152606b602052604090205481101561266e576001600160a01b0384166000908152606b60205260409020805483919083908110612552576125526136de565b9060005260206000200154141561265c576001600160a01b0384166000908152606b6020526040902080548290811061258d5761258d6136de565b600091825260208083209091018290556001600160a01b0386168252606b90526040902080546125bf90600190613aa0565b815481106125cf576125cf6136de565b9060005260206000200154606b6000866001600160a01b03166001600160a01b031681526020019081526020016000208281548110612610576126106136de565b60009182526020808320909101929092556001600160a01b0386168152606b9091526040902080548061264557612645613ab7565b600190038181906000526020600020016000905590555b8061266681613745565b915050612505565b506001600160a01b03821660009081526068602052604081208054600192906126989084906137d0565b90915550506001600160a01b038083166000818152606b60209081526040808320805460018101825590845282842001869055858352606790915280822080546001600160a01b031916841790555184938716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821661276a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c49565b6000818152606760205260409020546001600160a01b0316156127cf5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c49565b6001600160a01b03821660009081526068602052604081208054600192906127f89084906137d0565b9091555050600081815260676020908152604080832080546001600160a01b0319166001600160a01b038716908117909155338452606b83528184208054600181018255908552928420909201849055518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008060006128848585612ca4565b9092509050600081600481111561289d5761289d613acd565b1480156128bb5750856001600160a01b0316826001600160a01b0316145b156128cb576001925050506129bc565b600080876001600160a01b0316631626ba7e60e01b88886040516024016128f3929190613ae3565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252905161293191906138cc565b600060405180830381855afa9150503d806000811461296c576040519150601f19603f3d011682016040523d82523d6000602084013e612971565b606091505b5091509150818015612984575080516020145b80156129b557508051630b135d3f60e11b906129a99083016020908101908401613afc565b6001600160e01b031916145b9450505050505b9392505050565b609880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16612a3c5760405162461bcd60e51b8152600401610c4990613b19565b61146c8282612d14565b600054610100900460ff16612a6d5760405162461bcd60e51b8152600401610c4990613b19565b611a1d612d62565b600054610100900460ff16612a9c5760405162461bcd60e51b8152600401610c4990613b19565b611a1d612d92565b816001600160a01b0316836001600160a01b03161415612b065760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c49565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612b7e8484846123ef565b612b8a84848484612dc0565b611f595760405162461bcd60e51b8152600401610c4990613b64565b606081612bca5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612bf45780612bde81613745565b9150612bed9050600a83613bcc565b9150612bce565b60008167ffffffffffffffff811115612c0f57612c0f61330d565b6040519080825280601f01601f191660200182016040528015612c39576020820181803683370190505b5090505b841561100557612c4e600183613aa0565b9150612c5b600a86613be0565b612c669060306137d0565b60f81b818381518110612c7b57612c7b6136de565b60200101906001600160f81b031916908160001a905350612c9d600a86613bcc565b9450612c3d565b600080825160411415612cdb5760208301516040840151606085015160001a612ccf87828585612ebb565b94509450505050612d0d565b825160401415612d055760208301516040840151612cfa868383612fa8565b935093505050612d0d565b506000905060025b9250929050565b600054610100900460ff16612d3b5760405162461bcd60e51b8152600401610c4990613b19565b8151612d4e906065906020850190612fe1565b508051610d7f906066906020840190612fe1565b600054610100900460ff16612d895760405162461bcd60e51b8152600401610c4990613b19565b611a1d336129c3565b600054610100900460ff16612db95760405162461bcd60e51b8152600401610c4990613b19565b600160ca55565b60006001600160a01b0384163b15612eb357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612e04903390899088908890600401613bf4565b6020604051808303816000875af1925050508015612e3f575060408051601f3d908101601f19168201909252612e3c91810190613afc565b60015b612e99573d808015612e6d576040519150601f19603f3d011682016040523d82523d6000602084013e612e72565b606091505b508051612e915760405162461bcd60e51b8152600401610c4990613b64565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611005565b506001611005565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612ef25750600090506003612f9f565b8460ff16601b14158015612f0a57508460ff16601c14155b15612f1b5750600090506004612f9f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612f6f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612f9857600060019250925050612f9f565b9150600090505b94509492505050565b6000806001600160ff1b03831681612fc560ff86901c601b6137d0565b9050612fd387828885612ebb565b935093505050935093915050565b828054612fed906136f4565b90600052602060002090601f01602090048101928261300f5760008555613055565b82601f1061302857805160ff1916838001178555613055565b82800160010185558215613055579182015b8281111561305557825182559160200191906001019061303a565b506130619291506130c4565b5090565b5080546000825590600052602060002090810190611e1691906130c4565b828054828255906000526020600020908101928215613055579160200282015b82811115613055578251829061ffff169055916020019190600101906130a3565b5b8082111561306157600081556001016130c5565b80356001600160a01b03811681146130f057600080fd5b919050565b60006020828403121561310757600080fd5b6129bc826130d9565b60005b8381101561312b578181015183820152602001613113565b83811115611f595750506000910152565b60008151808452613154816020860160208601613110565b601f01601f19169290920160200192915050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b838110156131ce57888303603f190185528151805184528701518784018790526131bb8785018261313c565b958801959350509086019060010161318f565b509098975050505050505050565b6001600160e01b031981168114611e1657600080fd5b60006020828403121561320457600080fd5b81356129bc816131dc565b6020815260006129bc602083018461313c565b60006020828403121561323457600080fd5b5035919050565b6000806040838503121561324e57600080fd5b613257836130d9565b946020939093013593505050565b60008060006060848603121561327a57600080fd5b613283846130d9565b9250613291602085016130d9565b9150604084013590509250925092565b600080600080608085870312156132b757600080fd5b6132c0856130d9565b966020860135965060408601359560600135945092505050565b600080604083850312156132ed57600080fd5b6132f6836130d9565b9150613304602084016130d9565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261333457600080fd5b813567ffffffffffffffff8082111561334f5761334f61330d565b604051601f8301601f19908116603f011681019082821181831017156133775761337761330d565b8160405283815286602085880101111561339057600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008082840360a08112156133c457600080fd5b60808112156133d257600080fd5b506040516080810167ffffffffffffffff82821081831117156133f7576133f761330d565b8160405285358352602086013560208401526040860135604084015260608601356060840152829450608086013592508083111561343457600080fd5b505061344285828601613323565b9150509250929050565b60006020828403121561345e57600080fd5b813567ffffffffffffffff81111561347557600080fd5b61100584828501613323565b60008083601f84011261349357600080fd5b50813567ffffffffffffffff8111156134ab57600080fd5b6020830191508360208260051b8501011115612d0d57600080fd5b600080602083850312156134d957600080fd5b823567ffffffffffffffff8111156134f057600080fd5b6134fc85828601613481565b90969095509350505050565b803580151581146130f057600080fd5b60008060006060848603121561352d57600080fd5b61353684613508565b925061354460208501613508565b915061355260408501613508565b90509250925092565b6000806040838503121561356e57600080fd5b823567ffffffffffffffff8082111561358657600080fd5b61359286838701613323565b935060208501359150808211156135a857600080fd5b5061344285828601613323565b600080604083850312156135c857600080fd5b6135d1836130d9565b915061330460208401613508565b600080600080608085870312156135f557600080fd5b6135fe856130d9565b935061360c602086016130d9565b925060408501359150606085013567ffffffffffffffff81111561362f57600080fd5b61363b87828801613323565b91505092959194509250565b60008060006040848603121561365c57600080fd5b833567ffffffffffffffff81111561367357600080fd5b61367f86828701613481565b9094509250613552905060208501613508565b6000806000604084860312156136a757600080fd5b833567ffffffffffffffff8111156136be57600080fd5b6136ca86828701613481565b909790965060209590950135949350505050565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061370857607f821691505b6020821081141561372957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60006000198214156137595761375961372f565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008160001904831182151516156137cb576137cb61372f565b500290565b600082198211156137e3576137e361372f565b500190565b6000815480845260208085019450836000528060002060005b8381101561381d57815487529582019560019182019101613801565b509495945050505050565b6001600160a01b038616815260c06020820181905260009061384c908301876137e8565b85604084015284606084015283608084015282810360a084015261388b81600e81526d23a2a722a9a4a996a6a2a6a122a960911b602082015260400190565b98975050505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082516138de818460208701613110565b9190910192915050565b6001600160a01b038516815260a06020820181905260009061390c908301866137e8565b846040840152836060840152828103608084015261394581600e81526d23a2a722a9a4a996a6a2a6a122a960911b602082015260400190565b979650505050505050565b6060808252810183905260008460808301825b86811015613991576001600160a01b0361397c846130d9565b16825260209283019290910190600101613963565b5083810360208501526139a481866137e8565b91505082810360408401526139d481600e81526d23a2a722a9a4a996a6a2a6a122a960911b602082015260400190565b9695505050505050565b8054600090600181811c90808316806139f857607f831692505b6020808410821415613a1a57634e487b7160e01b600052602260045260246000fd5b818015613a2e5760018114613a3f57613a6c565b60ff19861689528489019650613a6c565b60008881526020902060005b86811015613a645781548b820152908501908301613a4b565b505084890196505b50505050505092915050565b6000613a8482866139de565b8451613a94818360208901613110565b613945818301866139de565b600082821015613ab257613ab261372f565b500390565b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b828152604060208201526000611005604083018461313c565b600060208284031215613b0e57600080fd5b81516129bc816131dc565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613bdb57613bdb613bb6565b500490565b600082613bef57613bef613bb6565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906139d49083018461313c56fe68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6173736574732e74686561726368697665736d696e742e78797a2f746f6b656e2d7572692fa2646970667358221220edb322cd675f1efd840194da8944eb4bb6927fe732ae13b5d5c4ebd4f179960764736f6c634300080b0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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