ETH Price: $3,170.04 (-7.90%)
Gas: 3 Gwei

Token

SpySignals (AGENT)
 

Overview

Max Total Supply

2,222 AGENT

Holders

784

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
goatwith3horns.eth
Balance
1 AGENT
0xdb0df63435a64132ddf7c626011cb3bb370150cb
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
SpySignalsAgent

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 14 : SpySignalsAgent.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;

/// @title Spy Signals Agent
/// @author MilkyTaste#8662 @MilkyTasteEth https://milkytaste.xyz

/// https://spysignals.io/

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./ERC721Ao.sol";
import "./Payable.sol";

contract SpySignalsAgent is ERC721Ao, Payable {
    using Strings for uint256;
    using ECDSA for bytes32;

    // Token values incremented for gas efficiency
    uint256 private maxSalePlusOne = 2223;
    uint256 private constant MAX_RESERVED_PLUS_ONE = 51;
    uint256 private constant MAX_PRESALE_PLUS_ONE = 4;
    uint256 private constant MAX_PER_TRANS_PLUS_ONE = 4;

    uint256 private reserveClaimed = 0;
    uint256 private tokenPublicPrice = 0.2 ether;
    uint256 private tokenPresalePrice = 0.15 ether;

    enum SaleState {
        OFF,
        PRESALE,
        PUBLIC
    }
    SaleState public saleState = SaleState.OFF;

    address public presaleSigner;
    mapping(address => uint256) public presaleClaimed;

    string public baseURI;

    constructor() ERC721Ao("SpySignals", "AGENT") Payable() {}

    //
    // Minting
    //

    /**
     * Mint tokens
     */
    function mintPublic(uint256 numTokens) external payable {
        require(msg.sender == tx.origin, "SpySignalsAgent: No bots");
        require(saleState == SaleState.PUBLIC, "SpySignalsAgent: Public sale is not active");
        require((totalSupply() + numTokens) < maxSalePlusOne, "SpySignalsAgent: Purchase exceeds available tokens");
        require(numTokens < MAX_PER_TRANS_PLUS_ONE, "SpySignalsAgent: Exceeds tokens per transaction");
        require((tokenPublicPrice * numTokens) == msg.value, "SpySignalsAgent: Ether value sent is not correct");
        _safeMint(msg.sender, numTokens);
    }

    /**
     * Mint presale.
     * @notice Do not mint from contract. Requires a signature
     * @param numTokens Number of tokens to mint
     * @param signature Server signature
     */
    function mintPresale(uint256 numTokens, bytes memory signature) external payable {
        require(saleState == SaleState.PRESALE, "SpySignalsAgent: Presale is not active");
        require((totalSupply() + numTokens) < maxSalePlusOne, "SpySignalsAgent: Purchase exceeds available tokens");
        require(
            (presaleClaimed[msg.sender] + numTokens) < MAX_PRESALE_PLUS_ONE,
            "SpySignalsAgent: Exceeds presale allowance"
        );
        require((tokenPresalePrice * numTokens) == msg.value, "SpySignalsAgent: Ether value sent is not correct");
        require(
            _verify(abi.encodePacked(msg.sender), signature, presaleSigner),
            "SpySignalsAgent: Signature not valid"
        );
        presaleClaimed[msg.sender] += numTokens;
        _safeMint(msg.sender, numTokens);
    }

    /**
     * Mints reserved tokens.
     */
    function mintReserved(uint256 numTokens, address mintTo) external onlyOwner {
        require((totalSupply() + numTokens) < maxSalePlusOne, "SpySignalsAgent: Purchase exceeds available tokens");
        require((reserveClaimed + numTokens) < MAX_RESERVED_PLUS_ONE, "SpySignalsAgent: Reservation exceeded");
        reserveClaimed += numTokens;
        _safeMint(mintTo, numTokens);
    }

    //
    // Admin
    //

    /**
     * Set sale state
     * @param saleState_ 0: OFF, 1: PRESALE, 2: PUBLIC
     */
    function setSaleState(SaleState saleState_) external onlyOwner {
        saleState = saleState_;
    }

    /**
     * Update token prices
     * @param tokenPresalePrice_ New presale price
     * @param tokenPublicPrice_ New public price
     */
    function setTokenPrices(uint256 tokenPresalePrice_, uint256 tokenPublicPrice_) external onlyOwner {
        tokenPresalePrice = tokenPresalePrice_;
        tokenPublicPrice = tokenPublicPrice_;
    }

    /**
     * Update maximum number of tokens for sale
     */
    function setMaxSale(uint256 maxSale) external onlyOwner {
        require(maxSale + 1 < maxSalePlusOne, "SpySignalsAgent: Can only reduce supply");
        maxSalePlusOne = maxSale + 1;
    }

    /**
     * Update the presale signer address
     */
    function setPresaleSigner(address presaleSigner_) external onlyOwner {
        presaleSigner = presaleSigner_;
    }

    /**
     * Sets base URI
     * @dev Only use this method after sell out as it will leak unminted token data.
     */
    function setBaseURI(string memory _newBaseURI) external onlyOwner {
        baseURI = _newBaseURI;
    }

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

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

        return string(abi.encodePacked(_baseURI(), tokenId.toString(), ".json"));
    }

    /**
     * Return sale info.
     * @param addr The address to check for presaleClaimed
     * @return [maxSale, totalSupply, saleState, reserveClaimed, presaleClaimed, tokenPresalePrice, tokenPublicPrice]
     * saleClaims[0]: maxSale (total available tokens)
     * saleClaims[1]: totalSupply (total minted)
     * saleClaims[2]: saleState (state of the sale)
     * saleClaims[3]: reserveClaimed (claimed by team)
     * saleClaims[4]: presaleClaimed (presale tokens claimed by given address)
     * saleClaims[5]: tokenPresalePrice
     * saleClaims[6]: tokenPublicPrice
     */
    function saleInfo(address addr) public view virtual returns (uint256[7] memory) {
        return [
            maxSalePlusOne - 1,
            totalSupply(),
            uint256(saleState),
            reserveClaimed,
            presaleClaimed[addr],
            tokenPresalePrice,
            tokenPublicPrice
        ];
    }

    /**
     * Verify a signature
     * @param data The signature data
     * @param signature The signature to verify
     * @param account The signer account
     */
    function _verify(
        bytes memory data,
        bytes memory signature,
        address account
    ) public pure returns (bool) {
        return keccak256(data).toEthSignedMessageHash().recover(signature) == account;
    }
}

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 3 of 14 : ERC721Ao.sol
// SPDX-License-Identifier: MIT
/// @author Chiru Labs
/// @author Optimisations by MilkyTaste#8662 @MilkyTasteEth https://milkytaste.xyz

pragma solidity ^0.8.4;

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

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 * 
 * The ERC721A contract has been further optimised for gas efficiency for minting and transfers.
 * This impacts read functions like `balanceOf`.
 * Instead use `explicitOwnerOf` passing in a `tokenId` that the user explicitly owns.
 */
contract ERC721Ao is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // 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;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(n). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view override returns (uint256) {
        require(index < balanceOf(owner), "ERC721Ao: owner index out of bounds");
        uint256 numMintedSoFar = totalSupply();
        uint256 tokenIdsIdx = 0;
        address currOwnershipAddr = address(0);
        for (uint256 i = 0; i < numMintedSoFar; i++) {
            address ownership = _ownerships[i].addr;
            if (ownership != address(0)) {
                currOwnershipAddr = ownership;
            }
            if (currOwnershipAddr == owner) {
                if (tokenIdsIdx == index) {
                    return i;
                }
                tokenIdsIdx++;
            }
        }
        revert("ERC721Ao: unable to get token of owner by index");
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     * @dev This is NOT gas efficient.
     * @dev Highly recommend NOT integrating to this function in other contracts.
     * @dev Use `explicitOwnerOf(id) == owner` instead.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        require(owner != address(0), "ERC721Ao: balance query for the zero address");
        uint256 owned = 0;
        // Loop through tokens to find the owner
        for (uint256 i = 0; i < totalSupply(); i++) {
            if (ownerOf(i) == owner) {
                owned++;
            }
        }
        return owned;
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (ownership.addr != address(0)) {
                    return ownership;
                }
                // Invariant:
                // There will always be an ownership that has an address
                // before an ownership that does not have an address.
                // Hence, curr will not underflow.
                while (true) {
                    curr--;
                    ownership = _ownerships[curr];
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        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 override {
        address owner = ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

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

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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 {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return tokenId < _currentIndex;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, "");
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 4 of 14 : Payable.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;

/// @title Payable
/// @author @MilkyTasteEth MilkyTaste:8662 https://milkytaste.xyz
/// Manage payables

import "@openzeppelin/contracts/access/Ownable.sol";

contract Payable is Ownable {
    address private constant ADDR1 = 0x4c54b734471EF8080C5c252e5588F625D2e5E93E;
    address private constant ADDR2 = 0xE9971063262e10e97Cd778ba85eEbCA656942c59;
    address private constant ADDR3 = 0x686e2dCb4a37D6342ce20F3f8D418f42DbBB5352;
    address private constant ADDR4 = 0x5be495FFE3C171babdDd16AFb8BA816deF29d26c;
    address private constant ADDR5 = 0x390DbD52ac3583ee7F61105F76bf82Fa88fFEf90;
    address private constant ADDR6 = 0x36a23D03faa1A23cAF019C7F9a17d59e3B783A2B;

    /**
     * Withdraw funds
     */
    function withdraw() external onlyOwner {
        uint256 bal = address(this).balance;
        payable(ADDR1).transfer(bal * 10 / 100);
        payable(ADDR2).transfer(bal * 5 / 100);
        payable(ADDR3).transfer(bal * 28 / 100);
        payable(ADDR4).transfer(bal * 28 / 100);
        payable(ADDR5).transfer(bal * 28 / 100);
        payable(ADDR6).transfer(address(this).balance); // The rest
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 13 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address","name":"account","type":"address"}],"name":"_verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"},{"internalType":"address","name":"mintTo","type":"address"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"saleInfo","outputs":[{"internalType":"uint256[7]","name":"","type":"uint256[7]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum SpySignalsAgent.SaleState","name":"","type":"uint8"}],"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":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSale","type":"uint256"}],"name":"setMaxSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"presaleSigner_","type":"address"}],"name":"setPresaleSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum SpySignalsAgent.SaleState","name":"saleState_","type":"uint8"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenPresalePrice_","type":"uint256"},{"internalType":"uint256","name":"tokenPublicPrice_","type":"uint256"}],"name":"setTokenPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526108af60075560006008556702c68af0bb140000600955670214e8348c4f0000600a55600b805460ff191690553480156200003e57600080fd5b50604080518082018252600a8152695370795369676e616c7360b01b6020808301918252835180850190945260058452641051d1539560da1b9084015281519192916200008e916001916200011d565b508051620000a49060029060208401906200011d565b505050620000c1620000bb620000c760201b60201c565b620000cb565b62000200565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200012b90620001c3565b90600052602060002090601f0160209004810192826200014f57600085556200019a565b82601f106200016a57805160ff19168380011785556200019a565b828001600101855582156200019a579182015b828111156200019a5782518255916020019190600101906200017d565b50620001a8929150620001ac565b5090565b5b80821115620001a85760008155600101620001ad565b600181811c90821680620001d857607f821691505b60208210811415620001fa57634e487b7160e01b600052602260045260246000fd5b50919050565b612cf380620002106000396000f3fe6080604052600436106102195760003560e01c8063631bbbba1161011d578063a22cb465116100b0578063d7b0b29d1161007f578063efd0cbf911610064578063efd0cbf914610635578063f2fde38b14610648578063f9765bc11461066857600080fd5b8063d7b0b29d146105bf578063e985e9c5146105ec57600080fd5b8063a22cb4651461053f578063b88d4fde1461055f578063b9f67b251461057f578063c87b56dd1461059f57600080fd5b8063715018a6116100ec578063715018a6146104d75780638336f274146104ec5780638da5cb5b1461050c57806395d89b411461052a57600080fd5b8063631bbbba146104625780636352211e146104825780636c0360eb146104a257806370a08231146104b757600080fd5b806323b872dd116101b057806342842e0e1161017f57806355f804b31161016457806355f804b3146103fb5780635a67de071461041b578063603f4d521461043b57600080fd5b806342842e0e146103bb5780634f6ccce7146103db57600080fd5b806323b872dd146103415780632f745c59146103615780633ccfd60b146103815780633ea85b901461039657600080fd5b8063095ea7b3116101ec578063095ea7b3146102cf5780630d06ed72146102ef57806318160ddd14610302578063191b16a01461032157600080fd5b806301ffc9a71461021e57806306fdde0314610253578063081812fc1461027557806308290dc5146102ad575b600080fd5b34801561022a57600080fd5b5061023e610239366004612667565b610695565b60405190151581526020015b60405180910390f35b34801561025f57600080fd5b50610268610702565b60405161024a91906126e3565b34801561028157600080fd5b506102956102903660046126f6565b610794565b6040516001600160a01b03909116815260200161024a565b3480156102b957600080fd5b506102cd6102c83660046126f6565b6107da565b005b3480156102db57600080fd5b506102cd6102ea36600461272b565b6108b9565b6102cd6102fd366004612801565b610947565b34801561030e57600080fd5b506000545b60405190815260200161024a565b34801561032d57600080fd5b506102cd61033c366004612848565b610c2d565b34801561034d57600080fd5b506102cd61035c36600461286a565b610c80565b34801561036d57600080fd5b5061031361037c36600461272b565b610c8b565b34801561038d57600080fd5b506102cd610de0565b3480156103a257600080fd5b50600b546102959061010090046001600160a01b031681565b3480156103c757600080fd5b506102cd6103d636600461286a565b611021565b3480156103e757600080fd5b506103136103f63660046126f6565b61103c565b34801561040757600080fd5b506102cd6104163660046128a6565b61109e565b34801561042757600080fd5b506102cd6104363660046128ef565b6110f9565b34801561044757600080fd5b50600b546104559060ff1681565b60405161024a9190612926565b34801561046e57600080fd5b506102cd61047d36600461294e565b611168565b34801561048e57600080fd5b5061029561049d3660046126f6565b6112d4565b3480156104ae57600080fd5b506102686112e6565b3480156104c357600080fd5b506103136104d236600461297a565b611374565b3480156104e357600080fd5b506102cd611449565b3480156104f857600080fd5b5061023e610507366004612995565b61149d565b34801561051857600080fd5b506006546001600160a01b0316610295565b34801561053657600080fd5b50610268611523565b34801561054b57600080fd5b506102cd61055a366004612a09565b611532565b34801561056b57600080fd5b506102cd61057a366004612a45565b6115c8565b34801561058b57600080fd5b506102cd61059a36600461297a565b611619565b3480156105ab57600080fd5b506102686105ba3660046126f6565b6116a0565b3480156105cb57600080fd5b506105df6105da36600461297a565b611757565b60405161024a9190612aad565b3480156105f857600080fd5b5061023e610607366004612ade565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102cd6106433660046126f6565b6117f3565b34801561065457600080fd5b506102cd61066336600461297a565b611a45565b34801561067457600080fd5b5061031361068336600461297a565b600c6020526000908152604090205481565b60006001600160e01b031982166380ac58cd60e01b14806106c657506001600160e01b03198216635b5e139f60e01b145b806106e157506001600160e01b0319821663780e9d6360e01b145b806106fc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461071190612b08565b80601f016020809104026020016040519081016040528092919081815260200182805461073d90612b08565b801561078a5780601f1061075f5761010080835404028352916020019161078a565b820191906000526020600020905b81548152906001019060200180831161076d57829003601f168201915b5050505050905090565b60006107a1826000541190565b6107be576040516333d1c03960e21b815260040160405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6006546001600160a01b031633146108275760405162461bcd60e51b81526020600482018190526024820152600080516020612cc783398151915260448201526064015b60405180910390fd5b600754610835826001612b59565b106108a85760405162461bcd60e51b815260206004820152602760248201527f5370795369676e616c734167656e743a2043616e206f6e6c792072656475636560448201527f20737570706c7900000000000000000000000000000000000000000000000000606482015260840161081e565b6108b3816001612b59565b60075550565b60006108c4826112d4565b9050806001600160a01b0316836001600160a01b031614156108f95760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061091957506109178133610607565b155b15610937576040516367d9dca160e11b815260040160405180910390fd5b610942838383611b12565b505050565b6001600b5460ff16600281111561096057610960612910565b146109d35760405162461bcd60e51b815260206004820152602660248201527f5370795369676e616c734167656e743a2050726573616c65206973206e6f742060448201527f6163746976650000000000000000000000000000000000000000000000000000606482015260840161081e565b600754826109e060005490565b6109ea9190612b59565b10610a525760405162461bcd60e51b815260206004820152603260248201527f5370795369676e616c734167656e743a205075726368617365206578636565646044820152717320617661696c61626c6520746f6b656e7360701b606482015260840161081e565b336000908152600c6020526040902054600490610a70908490612b59565b10610ae35760405162461bcd60e51b815260206004820152602a60248201527f5370795369676e616c734167656e743a20457863656564732070726573616c6560448201527f20616c6c6f77616e636500000000000000000000000000000000000000000000606482015260840161081e565b3482600a54610af29190612b71565b14610b585760405162461bcd60e51b815260206004820152603060248201527f5370795369676e616c734167656e743a2045746865722076616c75652073656e60448201526f1d081a5cc81b9bdd0818dbdc9c9958dd60821b606482015260840161081e565b6040516bffffffffffffffffffffffff193360601b166020820152610ba29060340160408051808303601f19018152919052600b54839061010090046001600160a01b031661149d565b610bfa5760405162461bcd60e51b8152602060048201526024808201527f5370795369676e616c734167656e743a205369676e6174757265206e6f742076604482015263185b1a5960e21b606482015260840161081e565b336000908152600c602052604081208054849290610c19908490612b59565b90915550610c2990503383611b7b565b5050565b6006546001600160a01b03163314610c755760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b600a91909155600955565b610942838383611b95565b6000610c9683611374565b8210610cf05760405162461bcd60e51b815260206004820152602360248201527f455243373231416f3a206f776e657220696e646578206f7574206f6620626f756044820152626e647360e81b606482015260840161081e565b600080549080805b83811015610d71576000818152600360205260409020546001600160a01b03168015610d22578092505b876001600160a01b0316836001600160a01b03161415610d5e5786841415610d50575093506106fc92505050565b83610d5a81612b90565b9450505b5080610d6981612b90565b915050610cf8565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231416f3a20756e61626c6520746f2067657420746f6b656e206f6660448201527f206f776e657220627920696e6465780000000000000000000000000000000000606482015260840161081e565b6006546001600160a01b03163314610e285760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b47734c54b734471ef8080c5c252e5588f625d2e5e93e6108fc6064610e4e84600a612b71565b610e589190612bc1565b6040518115909202916000818181858888f19350505050158015610e80573d6000803e3d6000fd5b5073e9971063262e10e97cd778ba85eebca656942c596108fc6064610ea6846005612b71565b610eb09190612bc1565b6040518115909202916000818181858888f19350505050158015610ed8573d6000803e3d6000fd5b5073686e2dcb4a37d6342ce20f3f8d418f42dbbb53526108fc6064610efe84601c612b71565b610f089190612bc1565b6040518115909202916000818181858888f19350505050158015610f30573d6000803e3d6000fd5b50735be495ffe3c171babddd16afb8ba816def29d26c6108fc6064610f5684601c612b71565b610f609190612bc1565b6040518115909202916000818181858888f19350505050158015610f88573d6000803e3d6000fd5b5073390dbd52ac3583ee7f61105f76bf82fa88ffef906108fc6064610fae84601c612b71565b610fb89190612bc1565b6040518115909202916000818181858888f19350505050158015610fe0573d6000803e3d6000fd5b506040517336a23d03faa1a23caf019c7f9a17d59e3b783a2b904780156108fc02916000818181858888f19350505050158015610c29573d6000803e3d6000fd5b610942838383604051806020016040528060008152506115c8565b60008054821061109a5760405162461bcd60e51b8152602060048201526024808201527f455243373231416f3a20676c6f62616c20696e646578206f7574206f6620626f604482015263756e647360e01b606482015260840161081e565b5090565b6006546001600160a01b031633146110e65760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b8051610c2990600d90602084019061259e565b6006546001600160a01b031633146111415760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b600b805482919060ff1916600183600281111561116057611160612910565b021790555050565b6006546001600160a01b031633146111b05760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b600754826111bd60005490565b6111c79190612b59565b1061122f5760405162461bcd60e51b815260206004820152603260248201527f5370795369676e616c734167656e743a205075726368617365206578636565646044820152717320617661696c61626c6520746f6b656e7360701b606482015260840161081e565b60338260085461123f9190612b59565b106112b25760405162461bcd60e51b815260206004820152602560248201527f5370795369676e616c734167656e743a205265736572766174696f6e2065786360448201527f6565646564000000000000000000000000000000000000000000000000000000606482015260840161081e565b81600860008282546112c49190612b59565b90915550610c2990508183611b7b565b60006112df82611d40565b5192915050565b600d80546112f390612b08565b80601f016020809104026020016040519081016040528092919081815260200182805461131f90612b08565b801561136c5780601f106113415761010080835404028352916020019161136c565b820191906000526020600020905b81548152906001019060200180831161134f57829003601f168201915b505050505081565b60006001600160a01b0382166113f25760405162461bcd60e51b815260206004820152602c60248201527f455243373231416f3a2062616c616e636520717565727920666f72207468652060448201527f7a65726f20616464726573730000000000000000000000000000000000000000606482015260840161081e565b6000805b60005481101561144257836001600160a01b0316611413826112d4565b6001600160a01b03161415611430578161142c81612b90565b9250505b8061143a81612b90565b9150506113f6565b5092915050565b6006546001600160a01b031633146114915760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b61149b6000611e1d565b565b6000816001600160a01b03166115118461150b87805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90611e7c565b6001600160a01b031614949350505050565b60606002805461071190612b08565b6001600160a01b03821633141561155c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115d3848484611b95565b6001600160a01b0383163b151580156115f557506115f384848484611ea0565b155b15611613576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6006546001600160a01b031633146116615760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b600b80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b60606116ad826000541190565b61171f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161081e565b611727611f98565b61173083611fa7565b604051602001611741929190612bd5565b6040516020818303038152906040529050919050565b61175f61261e565b6040518060e0016040528060016007546117799190612c2c565b815260200161178760005490565b8152600b5460209091019060ff1660028111156117a6576117a6612910565b81526020016008548152602001600c6000856001600160a01b03166001600160a01b03168152602001908152602001600020548152602001600a5481526020016009548152509050919050565b3332146118425760405162461bcd60e51b815260206004820152601860248201527f5370795369676e616c734167656e743a204e6f20626f74730000000000000000604482015260640161081e565b6002600b5460ff16600281111561185b5761185b612910565b146118ce5760405162461bcd60e51b815260206004820152602a60248201527f5370795369676e616c734167656e743a205075626c69632073616c652069732060448201527f6e6f742061637469766500000000000000000000000000000000000000000000606482015260840161081e565b600754816118db60005490565b6118e59190612b59565b1061194d5760405162461bcd60e51b815260206004820152603260248201527f5370795369676e616c734167656e743a205075726368617365206578636565646044820152717320617661696c61626c6520746f6b656e7360701b606482015260840161081e565b600481106119c35760405162461bcd60e51b815260206004820152602f60248201527f5370795369676e616c734167656e743a204578636565647320746f6b656e732060448201527f706572207472616e73616374696f6e0000000000000000000000000000000000606482015260840161081e565b34816009546119d29190612b71565b14611a385760405162461bcd60e51b815260206004820152603060248201527f5370795369676e616c734167656e743a2045746865722076616c75652073656e60448201526f1d081a5cc81b9bdd0818dbdc9c9958dd60821b606482015260840161081e565b611a423382611b7b565b50565b6006546001600160a01b03163314611a8d5760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b6001600160a01b038116611b095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161081e565b611a4281611e1d565b600082815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610c298282604051806020016040528060008152506120bd565b6000611ba082611d40565b9050836001600160a01b031681600001516001600160a01b031614611bd75760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611bf55750611bf58533610607565b80611c10575033611c0584610794565b6001600160a01b0316145b905080611c3057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611c5757604051633a954ecd60e21b815260040160405180910390fd5b611c6360008487611b12565b60008381526003602052604080822080546001600160a01b038881166001600160e01b031990921691909117600160a01b4267ffffffffffffffff1602178255600187018085529290932080549193909116611cf4576000548214611cf4578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051808201909152600080825260208201526000548290811015611e04576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215611dad579392505050565b50600019016000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215611dff579392505050565b611dad565b604051636f96cda160e11b815260040160405180910390fd5b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806000611e8b85856120ca565b91509150611e988161213a565b509392505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611ed5903390899088908890600401612c43565b602060405180830381600087803b158015611eef57600080fd5b505af1925050508015611f1f575060408051601f3d908101601f19168201909252611f1c91810190612c7f565b60015b611f7a573d808015611f4d576040519150601f19603f3d011682016040523d82523d6000602084013e611f52565b606091505b508051611f72576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600d805461071190612b08565b606081611fcb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ff55780611fdf81612b90565b9150611fee9050600a83612bc1565b9150611fcf565b60008167ffffffffffffffff81111561201057612010612755565b6040519080825280601f01601f19166020018201604052801561203a576020820181803683370190505b5090505b8415611f905761204f600183612c2c565b915061205c600a86612c9c565b612067906030612b59565b60f81b81838151811061207c5761207c612cb0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506120b6600a86612bc1565b945061203e565b61094283838360016122f5565b6000808251604114156121015760208301516040840151606085015160001a6120f587828585612469565b94509450505050612133565b82516040141561212b5760208301516040840151612120868383612556565b935093505050612133565b506000905060025b9250929050565b600081600481111561214e5761214e612910565b14156121575750565b600181600481111561216b5761216b612910565b14156121b95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161081e565b60028160048111156121cd576121cd612910565b141561221b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161081e565b600381600481111561222f5761222f612910565b14156122885760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161081e565b600481600481111561229c5761229c612910565b1415611a425760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161081e565b6000546001600160a01b03851661231e57604051622e076360e81b815260040160405180910390fd5b8361233c5760405163b562e8dd60e01b815260040160405180910390fd5b6000818152600360205260409020805467ffffffffffffffff4216600160a01b026001600160e01b03199091166001600160a01b038816171790558084810183801561239157506001600160a01b0387163b15155b1561241a575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46123e26000888480600101955088611ea0565b6123ff576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561239757826000541461241557600080fd5b612460565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561241b575b50600055611d39565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156124a0575060009050600361254d565b8460ff16601b141580156124b857508460ff16601c14155b156124c9575060009050600461254d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561251d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166125465760006001925092505061254d565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b0161259087828885612469565b935093505050935093915050565b8280546125aa90612b08565b90600052602060002090601f0160209004810192826125cc5760008555612612565b82601f106125e557805160ff1916838001178555612612565b82800160010185558215612612579182015b828111156126125782518255916020019190600101906125f7565b5061109a92915061263c565b6040518060e001604052806007906020820280368337509192915050565b5b8082111561109a576000815560010161263d565b6001600160e01b031981168114611a4257600080fd5b60006020828403121561267957600080fd5b813561268481612651565b9392505050565b60005b838110156126a657818101518382015260200161268e565b838111156116135750506000910152565b600081518084526126cf81602086016020860161268b565b601f01601f19169290920160200192915050565b60208152600061268460208301846126b7565b60006020828403121561270857600080fd5b5035919050565b80356001600160a01b038116811461272657600080fd5b919050565b6000806040838503121561273e57600080fd5b6127478361270f565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561278657612786612755565b604051601f8501601f19908116603f011681019082821181831017156127ae576127ae612755565b816040528093508581528686860111156127c757600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126127f257600080fd5b6126848383356020850161276b565b6000806040838503121561281457600080fd5b82359150602083013567ffffffffffffffff81111561283257600080fd5b61283e858286016127e1565b9150509250929050565b6000806040838503121561285b57600080fd5b50508035926020909101359150565b60008060006060848603121561287f57600080fd5b6128888461270f565b92506128966020850161270f565b9150604084013590509250925092565b6000602082840312156128b857600080fd5b813567ffffffffffffffff8111156128cf57600080fd5b8201601f810184136128e057600080fd5b611f908482356020840161276b565b60006020828403121561290157600080fd5b81356003811061268457600080fd5b634e487b7160e01b600052602160045260246000fd5b602081016003831061294857634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561296157600080fd5b823591506129716020840161270f565b90509250929050565b60006020828403121561298c57600080fd5b6126848261270f565b6000806000606084860312156129aa57600080fd5b833567ffffffffffffffff808211156129c257600080fd5b6129ce878388016127e1565b945060208601359150808211156129e457600080fd5b506129f1868287016127e1565b925050612a006040850161270f565b90509250925092565b60008060408385031215612a1c57600080fd5b612a258361270f565b915060208301358015158114612a3a57600080fd5b809150509250929050565b60008060008060808587031215612a5b57600080fd5b612a648561270f565b9350612a726020860161270f565b925060408501359150606085013567ffffffffffffffff811115612a9557600080fd5b612aa1878288016127e1565b91505092959194509250565b60e08101818360005b6007811015612ad5578151835260209283019290910190600101612ab6565b50505092915050565b60008060408385031215612af157600080fd5b612afa8361270f565b91506129716020840161270f565b600181811c90821680612b1c57607f821691505b60208210811415612b3d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612b6c57612b6c612b43565b500190565b6000816000190483118215151615612b8b57612b8b612b43565b500290565b6000600019821415612ba457612ba4612b43565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082612bd057612bd0612bab565b500490565b60008351612be781846020880161268b565b835190830190612bfb81836020880161268b565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600082821015612c3e57612c3e612b43565b500390565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612c7560808301846126b7565b9695505050505050565b600060208284031215612c9157600080fd5b815161268481612651565b600082612cab57612cab612bab565b500690565b634e487b7160e01b600052603260045260246000fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a164736f6c6343000809000a

Deployed Bytecode

0x6080604052600436106102195760003560e01c8063631bbbba1161011d578063a22cb465116100b0578063d7b0b29d1161007f578063efd0cbf911610064578063efd0cbf914610635578063f2fde38b14610648578063f9765bc11461066857600080fd5b8063d7b0b29d146105bf578063e985e9c5146105ec57600080fd5b8063a22cb4651461053f578063b88d4fde1461055f578063b9f67b251461057f578063c87b56dd1461059f57600080fd5b8063715018a6116100ec578063715018a6146104d75780638336f274146104ec5780638da5cb5b1461050c57806395d89b411461052a57600080fd5b8063631bbbba146104625780636352211e146104825780636c0360eb146104a257806370a08231146104b757600080fd5b806323b872dd116101b057806342842e0e1161017f57806355f804b31161016457806355f804b3146103fb5780635a67de071461041b578063603f4d521461043b57600080fd5b806342842e0e146103bb5780634f6ccce7146103db57600080fd5b806323b872dd146103415780632f745c59146103615780633ccfd60b146103815780633ea85b901461039657600080fd5b8063095ea7b3116101ec578063095ea7b3146102cf5780630d06ed72146102ef57806318160ddd14610302578063191b16a01461032157600080fd5b806301ffc9a71461021e57806306fdde0314610253578063081812fc1461027557806308290dc5146102ad575b600080fd5b34801561022a57600080fd5b5061023e610239366004612667565b610695565b60405190151581526020015b60405180910390f35b34801561025f57600080fd5b50610268610702565b60405161024a91906126e3565b34801561028157600080fd5b506102956102903660046126f6565b610794565b6040516001600160a01b03909116815260200161024a565b3480156102b957600080fd5b506102cd6102c83660046126f6565b6107da565b005b3480156102db57600080fd5b506102cd6102ea36600461272b565b6108b9565b6102cd6102fd366004612801565b610947565b34801561030e57600080fd5b506000545b60405190815260200161024a565b34801561032d57600080fd5b506102cd61033c366004612848565b610c2d565b34801561034d57600080fd5b506102cd61035c36600461286a565b610c80565b34801561036d57600080fd5b5061031361037c36600461272b565b610c8b565b34801561038d57600080fd5b506102cd610de0565b3480156103a257600080fd5b50600b546102959061010090046001600160a01b031681565b3480156103c757600080fd5b506102cd6103d636600461286a565b611021565b3480156103e757600080fd5b506103136103f63660046126f6565b61103c565b34801561040757600080fd5b506102cd6104163660046128a6565b61109e565b34801561042757600080fd5b506102cd6104363660046128ef565b6110f9565b34801561044757600080fd5b50600b546104559060ff1681565b60405161024a9190612926565b34801561046e57600080fd5b506102cd61047d36600461294e565b611168565b34801561048e57600080fd5b5061029561049d3660046126f6565b6112d4565b3480156104ae57600080fd5b506102686112e6565b3480156104c357600080fd5b506103136104d236600461297a565b611374565b3480156104e357600080fd5b506102cd611449565b3480156104f857600080fd5b5061023e610507366004612995565b61149d565b34801561051857600080fd5b506006546001600160a01b0316610295565b34801561053657600080fd5b50610268611523565b34801561054b57600080fd5b506102cd61055a366004612a09565b611532565b34801561056b57600080fd5b506102cd61057a366004612a45565b6115c8565b34801561058b57600080fd5b506102cd61059a36600461297a565b611619565b3480156105ab57600080fd5b506102686105ba3660046126f6565b6116a0565b3480156105cb57600080fd5b506105df6105da36600461297a565b611757565b60405161024a9190612aad565b3480156105f857600080fd5b5061023e610607366004612ade565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102cd6106433660046126f6565b6117f3565b34801561065457600080fd5b506102cd61066336600461297a565b611a45565b34801561067457600080fd5b5061031361068336600461297a565b600c6020526000908152604090205481565b60006001600160e01b031982166380ac58cd60e01b14806106c657506001600160e01b03198216635b5e139f60e01b145b806106e157506001600160e01b0319821663780e9d6360e01b145b806106fc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461071190612b08565b80601f016020809104026020016040519081016040528092919081815260200182805461073d90612b08565b801561078a5780601f1061075f5761010080835404028352916020019161078a565b820191906000526020600020905b81548152906001019060200180831161076d57829003601f168201915b5050505050905090565b60006107a1826000541190565b6107be576040516333d1c03960e21b815260040160405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6006546001600160a01b031633146108275760405162461bcd60e51b81526020600482018190526024820152600080516020612cc783398151915260448201526064015b60405180910390fd5b600754610835826001612b59565b106108a85760405162461bcd60e51b815260206004820152602760248201527f5370795369676e616c734167656e743a2043616e206f6e6c792072656475636560448201527f20737570706c7900000000000000000000000000000000000000000000000000606482015260840161081e565b6108b3816001612b59565b60075550565b60006108c4826112d4565b9050806001600160a01b0316836001600160a01b031614156108f95760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061091957506109178133610607565b155b15610937576040516367d9dca160e11b815260040160405180910390fd5b610942838383611b12565b505050565b6001600b5460ff16600281111561096057610960612910565b146109d35760405162461bcd60e51b815260206004820152602660248201527f5370795369676e616c734167656e743a2050726573616c65206973206e6f742060448201527f6163746976650000000000000000000000000000000000000000000000000000606482015260840161081e565b600754826109e060005490565b6109ea9190612b59565b10610a525760405162461bcd60e51b815260206004820152603260248201527f5370795369676e616c734167656e743a205075726368617365206578636565646044820152717320617661696c61626c6520746f6b656e7360701b606482015260840161081e565b336000908152600c6020526040902054600490610a70908490612b59565b10610ae35760405162461bcd60e51b815260206004820152602a60248201527f5370795369676e616c734167656e743a20457863656564732070726573616c6560448201527f20616c6c6f77616e636500000000000000000000000000000000000000000000606482015260840161081e565b3482600a54610af29190612b71565b14610b585760405162461bcd60e51b815260206004820152603060248201527f5370795369676e616c734167656e743a2045746865722076616c75652073656e60448201526f1d081a5cc81b9bdd0818dbdc9c9958dd60821b606482015260840161081e565b6040516bffffffffffffffffffffffff193360601b166020820152610ba29060340160408051808303601f19018152919052600b54839061010090046001600160a01b031661149d565b610bfa5760405162461bcd60e51b8152602060048201526024808201527f5370795369676e616c734167656e743a205369676e6174757265206e6f742076604482015263185b1a5960e21b606482015260840161081e565b336000908152600c602052604081208054849290610c19908490612b59565b90915550610c2990503383611b7b565b5050565b6006546001600160a01b03163314610c755760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b600a91909155600955565b610942838383611b95565b6000610c9683611374565b8210610cf05760405162461bcd60e51b815260206004820152602360248201527f455243373231416f3a206f776e657220696e646578206f7574206f6620626f756044820152626e647360e81b606482015260840161081e565b600080549080805b83811015610d71576000818152600360205260409020546001600160a01b03168015610d22578092505b876001600160a01b0316836001600160a01b03161415610d5e5786841415610d50575093506106fc92505050565b83610d5a81612b90565b9450505b5080610d6981612b90565b915050610cf8565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231416f3a20756e61626c6520746f2067657420746f6b656e206f6660448201527f206f776e657220627920696e6465780000000000000000000000000000000000606482015260840161081e565b6006546001600160a01b03163314610e285760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b47734c54b734471ef8080c5c252e5588f625d2e5e93e6108fc6064610e4e84600a612b71565b610e589190612bc1565b6040518115909202916000818181858888f19350505050158015610e80573d6000803e3d6000fd5b5073e9971063262e10e97cd778ba85eebca656942c596108fc6064610ea6846005612b71565b610eb09190612bc1565b6040518115909202916000818181858888f19350505050158015610ed8573d6000803e3d6000fd5b5073686e2dcb4a37d6342ce20f3f8d418f42dbbb53526108fc6064610efe84601c612b71565b610f089190612bc1565b6040518115909202916000818181858888f19350505050158015610f30573d6000803e3d6000fd5b50735be495ffe3c171babddd16afb8ba816def29d26c6108fc6064610f5684601c612b71565b610f609190612bc1565b6040518115909202916000818181858888f19350505050158015610f88573d6000803e3d6000fd5b5073390dbd52ac3583ee7f61105f76bf82fa88ffef906108fc6064610fae84601c612b71565b610fb89190612bc1565b6040518115909202916000818181858888f19350505050158015610fe0573d6000803e3d6000fd5b506040517336a23d03faa1a23caf019c7f9a17d59e3b783a2b904780156108fc02916000818181858888f19350505050158015610c29573d6000803e3d6000fd5b610942838383604051806020016040528060008152506115c8565b60008054821061109a5760405162461bcd60e51b8152602060048201526024808201527f455243373231416f3a20676c6f62616c20696e646578206f7574206f6620626f604482015263756e647360e01b606482015260840161081e565b5090565b6006546001600160a01b031633146110e65760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b8051610c2990600d90602084019061259e565b6006546001600160a01b031633146111415760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b600b805482919060ff1916600183600281111561116057611160612910565b021790555050565b6006546001600160a01b031633146111b05760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b600754826111bd60005490565b6111c79190612b59565b1061122f5760405162461bcd60e51b815260206004820152603260248201527f5370795369676e616c734167656e743a205075726368617365206578636565646044820152717320617661696c61626c6520746f6b656e7360701b606482015260840161081e565b60338260085461123f9190612b59565b106112b25760405162461bcd60e51b815260206004820152602560248201527f5370795369676e616c734167656e743a205265736572766174696f6e2065786360448201527f6565646564000000000000000000000000000000000000000000000000000000606482015260840161081e565b81600860008282546112c49190612b59565b90915550610c2990508183611b7b565b60006112df82611d40565b5192915050565b600d80546112f390612b08565b80601f016020809104026020016040519081016040528092919081815260200182805461131f90612b08565b801561136c5780601f106113415761010080835404028352916020019161136c565b820191906000526020600020905b81548152906001019060200180831161134f57829003601f168201915b505050505081565b60006001600160a01b0382166113f25760405162461bcd60e51b815260206004820152602c60248201527f455243373231416f3a2062616c616e636520717565727920666f72207468652060448201527f7a65726f20616464726573730000000000000000000000000000000000000000606482015260840161081e565b6000805b60005481101561144257836001600160a01b0316611413826112d4565b6001600160a01b03161415611430578161142c81612b90565b9250505b8061143a81612b90565b9150506113f6565b5092915050565b6006546001600160a01b031633146114915760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b61149b6000611e1d565b565b6000816001600160a01b03166115118461150b87805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90611e7c565b6001600160a01b031614949350505050565b60606002805461071190612b08565b6001600160a01b03821633141561155c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115d3848484611b95565b6001600160a01b0383163b151580156115f557506115f384848484611ea0565b155b15611613576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6006546001600160a01b031633146116615760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b600b80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b60606116ad826000541190565b61171f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161081e565b611727611f98565b61173083611fa7565b604051602001611741929190612bd5565b6040516020818303038152906040529050919050565b61175f61261e565b6040518060e0016040528060016007546117799190612c2c565b815260200161178760005490565b8152600b5460209091019060ff1660028111156117a6576117a6612910565b81526020016008548152602001600c6000856001600160a01b03166001600160a01b03168152602001908152602001600020548152602001600a5481526020016009548152509050919050565b3332146118425760405162461bcd60e51b815260206004820152601860248201527f5370795369676e616c734167656e743a204e6f20626f74730000000000000000604482015260640161081e565b6002600b5460ff16600281111561185b5761185b612910565b146118ce5760405162461bcd60e51b815260206004820152602a60248201527f5370795369676e616c734167656e743a205075626c69632073616c652069732060448201527f6e6f742061637469766500000000000000000000000000000000000000000000606482015260840161081e565b600754816118db60005490565b6118e59190612b59565b1061194d5760405162461bcd60e51b815260206004820152603260248201527f5370795369676e616c734167656e743a205075726368617365206578636565646044820152717320617661696c61626c6520746f6b656e7360701b606482015260840161081e565b600481106119c35760405162461bcd60e51b815260206004820152602f60248201527f5370795369676e616c734167656e743a204578636565647320746f6b656e732060448201527f706572207472616e73616374696f6e0000000000000000000000000000000000606482015260840161081e565b34816009546119d29190612b71565b14611a385760405162461bcd60e51b815260206004820152603060248201527f5370795369676e616c734167656e743a2045746865722076616c75652073656e60448201526f1d081a5cc81b9bdd0818dbdc9c9958dd60821b606482015260840161081e565b611a423382611b7b565b50565b6006546001600160a01b03163314611a8d5760405162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015260640161081e565b6001600160a01b038116611b095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161081e565b611a4281611e1d565b600082815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610c298282604051806020016040528060008152506120bd565b6000611ba082611d40565b9050836001600160a01b031681600001516001600160a01b031614611bd75760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611bf55750611bf58533610607565b80611c10575033611c0584610794565b6001600160a01b0316145b905080611c3057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611c5757604051633a954ecd60e21b815260040160405180910390fd5b611c6360008487611b12565b60008381526003602052604080822080546001600160a01b038881166001600160e01b031990921691909117600160a01b4267ffffffffffffffff1602178255600187018085529290932080549193909116611cf4576000548214611cf4578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051808201909152600080825260208201526000548290811015611e04576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215611dad579392505050565b50600019016000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215611dff579392505050565b611dad565b604051636f96cda160e11b815260040160405180910390fd5b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806000611e8b85856120ca565b91509150611e988161213a565b509392505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611ed5903390899088908890600401612c43565b602060405180830381600087803b158015611eef57600080fd5b505af1925050508015611f1f575060408051601f3d908101601f19168201909252611f1c91810190612c7f565b60015b611f7a573d808015611f4d576040519150601f19603f3d011682016040523d82523d6000602084013e611f52565b606091505b508051611f72576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600d805461071190612b08565b606081611fcb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ff55780611fdf81612b90565b9150611fee9050600a83612bc1565b9150611fcf565b60008167ffffffffffffffff81111561201057612010612755565b6040519080825280601f01601f19166020018201604052801561203a576020820181803683370190505b5090505b8415611f905761204f600183612c2c565b915061205c600a86612c9c565b612067906030612b59565b60f81b81838151811061207c5761207c612cb0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506120b6600a86612bc1565b945061203e565b61094283838360016122f5565b6000808251604114156121015760208301516040840151606085015160001a6120f587828585612469565b94509450505050612133565b82516040141561212b5760208301516040840151612120868383612556565b935093505050612133565b506000905060025b9250929050565b600081600481111561214e5761214e612910565b14156121575750565b600181600481111561216b5761216b612910565b14156121b95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161081e565b60028160048111156121cd576121cd612910565b141561221b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161081e565b600381600481111561222f5761222f612910565b14156122885760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161081e565b600481600481111561229c5761229c612910565b1415611a425760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161081e565b6000546001600160a01b03851661231e57604051622e076360e81b815260040160405180910390fd5b8361233c5760405163b562e8dd60e01b815260040160405180910390fd5b6000818152600360205260409020805467ffffffffffffffff4216600160a01b026001600160e01b03199091166001600160a01b038816171790558084810183801561239157506001600160a01b0387163b15155b1561241a575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46123e26000888480600101955088611ea0565b6123ff576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561239757826000541461241557600080fd5b612460565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561241b575b50600055611d39565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156124a0575060009050600361254d565b8460ff16601b141580156124b857508460ff16601c14155b156124c9575060009050600461254d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561251d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166125465760006001925092505061254d565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b0161259087828885612469565b935093505050935093915050565b8280546125aa90612b08565b90600052602060002090601f0160209004810192826125cc5760008555612612565b82601f106125e557805160ff1916838001178555612612565b82800160010185558215612612579182015b828111156126125782518255916020019190600101906125f7565b5061109a92915061263c565b6040518060e001604052806007906020820280368337509192915050565b5b8082111561109a576000815560010161263d565b6001600160e01b031981168114611a4257600080fd5b60006020828403121561267957600080fd5b813561268481612651565b9392505050565b60005b838110156126a657818101518382015260200161268e565b838111156116135750506000910152565b600081518084526126cf81602086016020860161268b565b601f01601f19169290920160200192915050565b60208152600061268460208301846126b7565b60006020828403121561270857600080fd5b5035919050565b80356001600160a01b038116811461272657600080fd5b919050565b6000806040838503121561273e57600080fd5b6127478361270f565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561278657612786612755565b604051601f8501601f19908116603f011681019082821181831017156127ae576127ae612755565b816040528093508581528686860111156127c757600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126127f257600080fd5b6126848383356020850161276b565b6000806040838503121561281457600080fd5b82359150602083013567ffffffffffffffff81111561283257600080fd5b61283e858286016127e1565b9150509250929050565b6000806040838503121561285b57600080fd5b50508035926020909101359150565b60008060006060848603121561287f57600080fd5b6128888461270f565b92506128966020850161270f565b9150604084013590509250925092565b6000602082840312156128b857600080fd5b813567ffffffffffffffff8111156128cf57600080fd5b8201601f810184136128e057600080fd5b611f908482356020840161276b565b60006020828403121561290157600080fd5b81356003811061268457600080fd5b634e487b7160e01b600052602160045260246000fd5b602081016003831061294857634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561296157600080fd5b823591506129716020840161270f565b90509250929050565b60006020828403121561298c57600080fd5b6126848261270f565b6000806000606084860312156129aa57600080fd5b833567ffffffffffffffff808211156129c257600080fd5b6129ce878388016127e1565b945060208601359150808211156129e457600080fd5b506129f1868287016127e1565b925050612a006040850161270f565b90509250925092565b60008060408385031215612a1c57600080fd5b612a258361270f565b915060208301358015158114612a3a57600080fd5b809150509250929050565b60008060008060808587031215612a5b57600080fd5b612a648561270f565b9350612a726020860161270f565b925060408501359150606085013567ffffffffffffffff811115612a9557600080fd5b612aa1878288016127e1565b91505092959194509250565b60e08101818360005b6007811015612ad5578151835260209283019290910190600101612ab6565b50505092915050565b60008060408385031215612af157600080fd5b612afa8361270f565b91506129716020840161270f565b600181811c90821680612b1c57607f821691505b60208210811415612b3d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612b6c57612b6c612b43565b500190565b6000816000190483118215151615612b8b57612b8b612b43565b500290565b6000600019821415612ba457612ba4612b43565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082612bd057612bd0612bab565b500490565b60008351612be781846020880161268b565b835190830190612bfb81836020880161268b565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600082821015612c3e57612c3e612b43565b500390565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612c7560808301846126b7565b9695505050505050565b600060208284031215612c9157600080fd5b815161268481612651565b600082612cab57612cab612bab565b500690565b634e487b7160e01b600052603260045260246000fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a164736f6c6343000809000a

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

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