ETH Price: $3,296.28 (-4.84%)

Token

PokeGAN (KOPE)
 

Overview

Max Total Supply

4,003 KOPE

Holders

1,118

Market

Volume (24H)

0.0087 ETH

Min Price (24H)

$28.68 @ 0.008700 ETH

Max Price (24H)

$28.68 @ 0.008700 ETH
Balance
0 KOPE
0x72606f32b842e2f2c8fff37101fb01e2b124ac23
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:
PokeGAN

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 15 : PokeGAN.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.10;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./IReverseRegistrar.sol";
import "./ERC721.sol";

contract PokeGAN is ERC721, Ownable {
  using ECDSA for bytes32;

  uint256 public allowListMintPrice;

  address private signerAddress;
  bool public paused = true;
  bool public mintEnded = false;

  address immutable ENSReverseRegistrar = 0x084b1c3C81545d370f3634392De611CaaBFf8148;

  uint256 public currentEvolutionIndex = 0;

  // TokenID represents the seed of the corresponding pickle file
  // New Pickle files are added with a new indices as GAN training progresses
  mapping (uint256 => string) public evolutions;

  constructor(
      string memory _name,
      string memory _symbol,
      uint256 _allowListMintPrice,
      address _signerAddress
  ) ERC721(_name, _symbol, 99999) {
    allowListMintPrice = _allowListMintPrice;
    signerAddress = _signerAddress;
  }

  function flipPaused() external onlyOwner {
    paused = !paused;
  }

  function endMint() external onlyOwner {
    mintEnded = true;  
  }

  function setBaseURI(string memory baseURI) public onlyOwner {
    _setBaseURI(baseURI);
  }
  
  function evolve(string calldata newURI) external onlyOwner {
    currentEvolutionIndex = currentEvolutionIndex + 1;
    evolutions[currentEvolutionIndex] = newURI;
  }

  function mintAllowList(
    bytes32 messageHash,
    bytes calldata signature,
    uint amount
  ) public payable {
    require(!paused, "s");
    require(!mintEnded, "m");
    require(hashMessage(msg.sender, address(this)) == messageHash, "i");
    require(verifyAddressSigner(messageHash, signature), "f");
    require(allowListMintPrice * amount <= msg.value, "a");

    _safeMint(msg.sender, amount);
  }

  function addReverseENSRecord(string memory name) external onlyOwner{
    IReverseRegistrar(ENSReverseRegistrar).setName(name);
  }

  function verifyAddressSigner(bytes32 messageHash, bytes memory signature) private view returns (bool) {
    return signerAddress == messageHash.toEthSignedMessageHash().recover(signature);
  }

  function hashMessage(address sender, address thisContract) public pure returns (bytes32) {
    return keccak256(abi.encodePacked(sender, thisContract));
  }

  function withdraw() external onlyOwner() {
    uint balance = address(this).balance;
    payable(msg.sender).transfer(balance);
  }

  function withdrawTokens(address tokenAddress) external onlyOwner() {
    IERC20(tokenAddress).transfer(msg.sender, IERC20(tokenAddress).balanceOf(address(this)));
  }
}

// The High Table

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 5 of 15 : IReverseRegistrar.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity >=0.8.4;

interface IReverseRegistrar {
    function setDefaultResolver(address resolver) external;

    function claim(address owner) external returns (bytes32);

    function claimForAddr(
        address addr,
        address owner,
        address resolver
    ) external returns (bytes32);

    function claimWithResolver(address owner, address resolver)
        external
        returns (bytes32);

    function setName(string memory name) external returns (bytes32);

    function setNameForAddr(
        address addr,
        address owner,
        address resolver,
        string memory name
    ) external returns (bytes32);

    function node(address addr) external pure returns (bytes32);
}

File 6 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.10;

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;

    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
    }

    struct AddressData {
        uint128 balance;
        uint128 numberMinted;
    }

    uint256 private currentIndex = 0;

    uint256 internal immutable maxBatchSize;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Base URI
    string private _baseURI;

    // 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) private _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

    /**
     * @dev
     * `maxBatchSize` refers to how much a minter can mint at a time.
     */
    constructor(
        string memory name_,
        string memory symbol_,
        uint256 maxBatchSize_
    ) {
        require(maxBatchSize_ > 0, "b");
        _name = name_;
        _symbol = symbol_;
        maxBatchSize = maxBatchSize_;
    }

    /**
     * @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(), "g");
        return index;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). 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) public view override returns (uint256) {
        require(index < balanceOf(owner), "b");
        uint256 numMintedSoFar = totalSupply();
        uint256 tokenIdsIdx = 0;
        address currOwnershipAddr = address(0);
        for (uint256 i = 0; i < numMintedSoFar; i++) {
            TokenOwnership memory ownership = _ownerships[i];
            if (ownership.addr != address(0)) {
                currOwnershipAddr = ownership.addr;
            }
            if (currOwnershipAddr == owner) {
                if (tokenIdsIdx == index) {
                    return i;
                }
                tokenIdsIdx++;
            }
        }
        revert("u");
    }

    /**
     * @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}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        require(owner != address(0), "0");
        return uint256(_addressData[owner].balance);
    }

    function _numberMinted(address owner) internal view returns (uint256) {
        require(owner != address(0), "0");
        return uint256(_addressData[owner].numberMinted);
    }

    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        require(_exists(tokenId), "t");

        uint256 lowestTokenToCheck;
        if (tokenId >= maxBatchSize) {
            lowestTokenToCheck = tokenId - maxBatchSize + 1;
        }

        for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
            TokenOwnership memory ownership = _ownerships[curr];
            if (ownership.addr != address(0)) {
                return ownership;
            }
        }

        revert("o");
    }

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "z");

        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() public view virtual returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }



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

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "a"
        );

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        require(_exists(tokenId), "a");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        require(operator != _msgSender(), "a");

        _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 override {
        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, _data),
            "z"
        );
    }

    /**
     * @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 Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` cannot be larger than the max batch size.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = currentIndex;
        require(to != address(0), "0");
        // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
        require(!_exists(startTokenId), "a");
        require(quantity <= maxBatchSize, "m");

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

        AddressData memory addressData = _addressData[to];
        _addressData[to] = AddressData(
            addressData.balance + uint128(quantity),
            addressData.numberMinted + uint128(quantity)
        );
        _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

        uint256 updatedIndex = startTokenId;

        for (uint256 i = 0; i < quantity; i++) {
            emit Transfer(address(0), to, updatedIndex);
            require(
                _checkOnERC721Received(address(0), to, updatedIndex, _data),
                "z"
            );
            updatedIndex++;
        }

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

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            getApproved(tokenId) == _msgSender() ||
            isApprovedForAll(prevOwnership.addr, _msgSender()));

        require(isApprovedOrOwner, "a");

        require(prevOwnership.addr == from, "o");
        require(to != address(0), "0");

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        _addressData[from].balance -= 1;
        _addressData[to].balance += 1;
        _ownerships[tokenId] = TokenOwnership(to, 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;
        if (_ownerships[nextTokenId].addr == address(0)) {
            if (_exists(nextTokenId)) {
                _ownerships[nextTokenId] = TokenOwnership(prevOwnership.addr, prevOwnership.startTimestamp);
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, 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);
    }

    uint256 public nextOwnerToExplicitlySet = 0;

    /**
     * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
     */
    function _setOwnersExplicit(uint256 quantity) internal {
        uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
        require(quantity > 0, "q");
        uint256 endIndex = oldNextOwnerToSet + quantity - 1;
        if (endIndex > currentIndex - 1) {
            endIndex = currentIndex - 1;
        }
        // We know if the last one in the group exists, all in the group exist, due to serial ordering.
        require(_exists(endIndex), "n");
        for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
            if (_ownerships[i].addr == address(0)) {
                TokenOwnership memory ownership = ownershipOf(i);
                _ownerships[i] = TokenOwnership(ownership.addr, ownership.startTimestamp);
            }
        }
        nextOwnerToExplicitlySet = endIndex + 1;
    }

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

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     *
     * 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`.
     */
    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.
     *
     * 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` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_allowListMintPrice","type":"uint256"},{"internalType":"address","name":"_signerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"string","name":"name","type":"string"}],"name":"addReverseENSRecord","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowListMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentEvolutionIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"evolutions","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"evolve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"thisContract","type":"address"}],"name":"hashMessage","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","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":"bytes32","name":"messageHash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintAllowList","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintEnded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","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"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c060405260008080556008819055600b805461ffff60a01b1916600160a01b17905573084b1c3c81545d370f3634392de611caabff814860a052600c553480156200004a57600080fd5b5060405162002fe538038062002fe58339810160408190526200006d91620002a3565b83836201869f82516200008890600190602086019062000130565b5081516200009e90600290602085019062000130565b5060805250620000b0905033620000de565b600a91909155600b80546001600160a01b0319166001600160a01b0390921691909117905550620003759050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200013e9062000338565b90600052602060002090601f016020900481019282620001625760008555620001ad565b82601f106200017d57805160ff1916838001178555620001ad565b82800160010185558215620001ad579182015b82811115620001ad57825182559160200191906001019062000190565b50620001bb929150620001bf565b5090565b5b80821115620001bb5760008155600101620001c0565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001fe57600080fd5b81516001600160401b03808211156200021b576200021b620001d6565b604051601f8301601f19908116603f01168101908282118183101715620002465762000246620001d6565b816040528381526020925086838588010111156200026357600080fd5b600091505b8382101562000287578582018301518183018401529082019062000268565b83821115620002995760008385830101525b9695505050505050565b60008060008060808587031215620002ba57600080fd5b84516001600160401b0380821115620002d257600080fd5b620002e088838901620001ec565b95506020870151915080821115620002f757600080fd5b506200030687828801620001ec565b60408701516060880151919550935090506001600160a01b03811681146200032d57600080fd5b939692955090935050565b600181811c908216806200034d57607f821691505b602082108114156200036f57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051612c3c620003a960003960006114a50152600081816119e301528181611a0d0152611e930152612c3c6000f3fe6080604052600436106102345760003560e01c806368855b6411610138578063ae096f5d116100b0578063d7224ba01161007f578063dfb5259c11610064578063dfb5259c14610641578063e985e9c514610661578063f2fde38b146106aa57600080fd5b8063d7224ba014610615578063dbed01b21461062b57600080fd5b8063ae096f5d14610595578063b88d4fde146105b5578063c87b56dd146105d5578063d11a461f146105f557600080fd5b8063715018a61161010757806395d89b41116100ec57806395d89b411461054d578063a22cb46514610562578063a9cbd06d1461058257600080fd5b8063715018a61461051a5780638da5cb5b1461052f57600080fd5b806368855b641461046a5780636c0360eb146104805780636c82054b1461049557806370a08231146104fa57600080fd5b80632f745c59116101cb57806349df728c1161019a57806355f804b31161017f57806355f804b3146104095780635c975abb146104295780636352211e1461044a57600080fd5b806349df728c146103c95780634f6ccce7146103e957600080fd5b80632f745c591461035f578063333171bb1461037f5780633ccfd60b1461039457806342842e0e146103a957600080fd5b8063081812fc11610207578063081812fc146102c8578063095ea7b31461030057806318160ddd1461032057806323b872dd1461033f57600080fd5b8063017043a51461023957806301ffc9a714610250578063021313cf1461028557806306fdde03146102a6575b600080fd5b34801561024557600080fd5b5061024e6106ca565b005b34801561025c57600080fd5b5061027061026b366004612541565b610759565b60405190151581526020015b60405180910390f35b34801561029157600080fd5b50600b5461027090600160a81b900460ff1681565b3480156102b257600080fd5b506102bb61082a565b60405161027c91906125bd565b3480156102d457600080fd5b506102e86102e33660046125d0565b6108bc565b6040516001600160a01b03909116815260200161027c565b34801561030c57600080fd5b5061024e61031b366004612605565b610915565b34801561032c57600080fd5b506000545b60405190815260200161027c565b34801561034b57600080fd5b5061024e61035a36600461262f565b6109c4565b34801561036b57600080fd5b5061033161037a366004612605565b6109cf565b34801561038b57600080fd5b5061024e610b1b565b3480156103a057600080fd5b5061024e610bb1565b3480156103b557600080fd5b5061024e6103c436600461262f565b610c3e565b3480156103d557600080fd5b5061024e6103e436600461266b565b610c59565b3480156103f557600080fd5b506103316104043660046125d0565b610dad565b34801561041557600080fd5b5061024e610424366004612712565b610e03565b34801561043557600080fd5b50600b5461027090600160a01b900460ff1681565b34801561045657600080fd5b506102e86104653660046125d0565b610e69565b34801561047657600080fd5b50610331600a5481565b34801561048c57600080fd5b506102bb610e7b565b3480156104a157600080fd5b506103316104b036600461275b565b6040516bffffffffffffffffffffffff19606084811b8216602084015283901b16603482015260009060480160405160208183030381529060405280519060200120905092915050565b34801561050657600080fd5b5061033161051536600461266b565b610e8a565b34801561052657600080fd5b5061024e610eeb565b34801561053b57600080fd5b506009546001600160a01b03166102e8565b34801561055957600080fd5b506102bb610f51565b34801561056e57600080fd5b5061024e61057d36600461279c565b610f60565b61024e610590366004612815565b611009565b3480156105a157600080fd5b5061024e6105b0366004612868565b61121b565b3480156105c157600080fd5b5061024e6105d03660046128aa565b6112a1565b3480156105e157600080fd5b506102bb6105f03660046125d0565b6112e8565b34801561060157600080fd5b506102bb6106103660046125d0565b611381565b34801561062157600080fd5b5061033160085481565b34801561063757600080fd5b50610331600c5481565b34801561064d57600080fd5b5061024e61065c366004612712565b61141b565b34801561066d57600080fd5b5061027061067c36600461275b565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156106b657600080fd5b5061024e6106c536600461266b565b61151d565b6009546001600160a01b031633146107295760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600b80547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16600160a81b179055565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806107bc57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806107f057506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061082457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606001805461083990612926565b80601f016020809104026020016040519081016040528092919081815260200182805461086590612926565b80156108b25780601f10610887576101008083540402835291602001916108b2565b820191906000526020600020905b81548152906001019060200180831161089557829003601f168201915b5050505050905090565b60006108c9826000541190565b6108f95760405162461bcd60e51b81526020600482015260016024820152606160f81b6044820152606401610720565b506000908152600660205260409020546001600160a01b031690565b600061092082610e69565b9050806001600160a01b0316836001600160a01b031614156109685760405162461bcd60e51b81526020600482015260016024820152606f60f81b6044820152606401610720565b336001600160a01b03821614806109845750610984813361067c565b6109b45760405162461bcd60e51b81526020600482015260016024820152606160f81b6044820152606401610720565b6109bf8383836115fc565b505050565b6109bf838383611665565b60006109da83610e8a565b8210610a285760405162461bcd60e51b815260206004820152600160248201527f62000000000000000000000000000000000000000000000000000000000000006044820152606401610720565b600080549080805b83811015610ad2576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610a8357805192505b876001600160a01b0316836001600160a01b03161415610abf5786841415610ab15750935061082492505050565b83610abb81612977565b9450505b5080610aca81612977565b915050610a30565b5060405162461bcd60e51b815260206004820152600160248201527f75000000000000000000000000000000000000000000000000000000000000006044820152606401610720565b6009546001600160a01b03163314610b755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b600b80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116600160a01b9182900460ff1615909102179055565b6009546001600160a01b03163314610c0b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b6040514790339082156108fc029083906000818181858888f19350505050158015610c3a573d6000803e3d6000fd5b5050565b6109bf838383604051806020016040528060008152506112a1565b6009546001600160a01b03163314610cb35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015610d1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3e9190612992565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610d89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3a91906129ab565b600080548210610dff5760405162461bcd60e51b815260206004820152600160248201527f67000000000000000000000000000000000000000000000000000000000000006044820152606401610720565b5090565b6009546001600160a01b03163314610e5d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b610e6681611961565b50565b6000610e7482611974565b5192915050565b60606003805461083990612926565b60006001600160a01b038216610ec65760405162461bcd60e51b81526020600482015260016024820152600360fc1b6044820152606401610720565b506001600160a01b03166000908152600560205260409020546001600160801b031690565b6009546001600160a01b03163314610f455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b610f4f6000611ad7565b565b60606002805461083990612926565b6001600160a01b038216331415610f9d5760405162461bcd60e51b81526020600482015260016024820152606160f81b6044820152606401610720565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b54600160a01b900460ff16156110635760405162461bcd60e51b815260206004820152600160248201527f73000000000000000000000000000000000000000000000000000000000000006044820152606401610720565b600b54600160a81b900460ff16156110a15760405162461bcd60e51b81526020600482015260016024820152606d60f81b6044820152606401610720565b836110f133306040516bffffffffffffffffffffffff19606084811b8216602084015283901b16603482015260009060480160405160208183030381529060405280519060200120905092915050565b1461113e5760405162461bcd60e51b815260206004820152600160248201527f69000000000000000000000000000000000000000000000000000000000000006044820152606401610720565b61117e8484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611b3692505050565b6111ca5760405162461bcd60e51b815260206004820152600160248201527f66000000000000000000000000000000000000000000000000000000000000006044820152606401610720565b3481600a546111d991906129c8565b111561120b5760405162461bcd60e51b81526020600482015260016024820152606160f81b6044820152606401610720565b6112153382611bb1565b50505050565b6009546001600160a01b031633146112755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b600c546112839060016129e7565b600c8190556000908152600d602052604090206109bf908383612422565b6112ac848484611665565b6112b884848484611bcb565b6112155760405162461bcd60e51b81526020600482015260016024820152603d60f91b6044820152606401610720565b60606112f5826000541190565b6113255760405162461bcd60e51b81526020600482015260016024820152603d60f91b6044820152606401610720565b60006003805461133490612926565b9050116113505760405180602001604052806000815250610824565b600361135b83611cde565b60405160200161136c929190612a1b565b60405160208183030381529060405292915050565b600d602052600090815260409020805461139a90612926565b80601f01602080910402602001604051908101604052809291908181526020018280546113c690612926565b80156114135780601f106113e857610100808354040283529160200191611413565b820191906000526020600020905b8154815290600101906020018083116113f657829003601f168201915b505050505081565b6009546001600160a01b031633146114755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b6040517fc47f00270000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c47f0027906114da9084906004016125bd565b6020604051808303816000875af11580156114f9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3a9190612992565b6009546001600160a01b031633146115775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b6001600160a01b0381166115f35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610720565b610e6681611ad7565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061167082611974565b80519091506000906001600160a01b0316336001600160a01b031614806116a757503361169c846108bc565b6001600160a01b0316145b806116b9575081516116b9903361067c565b9050806116ec5760405162461bcd60e51b81526020600482015260016024820152606160f81b6044820152606401610720565b846001600160a01b031682600001516001600160a01b0316146117355760405162461bcd60e51b81526020600482015260016024820152606f60f81b6044820152606401610720565b6001600160a01b03841661176f5760405162461bcd60e51b81526020600482015260016024820152600360fc1b6044820152606401610720565b61177f60008484600001516115fc565b6001600160a01b03851660009081526005602052604081208054600192906117b19084906001600160801b0316612ac2565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260056020526040812080546001945090926117fd91859116612aea565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526004909152948520935184549151909216600160a01b026001600160e01b031990911691909216171790556118858460016129e7565b6000818152600460205260409020549091506001600160a01b0316611917576118af816000541190565b156119175760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b8051610c3a9060039060208401906124a2565b6040805180820190915260008082526020820152611993826000541190565b6119df5760405162461bcd60e51b815260206004820152600160248201527f74000000000000000000000000000000000000000000000000000000000000006044820152606401610720565b60007f00000000000000000000000000000000000000000000000000000000000000008310611a4057611a327f000000000000000000000000000000000000000000000000000000000000000084612b15565b611a3d9060016129e7565b90505b825b818110611aaa576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215611a9757949350505050565b5080611aa281612b2c565b915050611a42565b5060405162461bcd60e51b81526020600482015260016024820152606f60f81b6044820152606401610720565b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611b9982611b93856040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90611df4565b600b546001600160a01b039182169116149392505050565b610c3a828260405180602001604052806000815250611e18565b60006001600160a01b0384163b15611cd257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611c0f903390899088908890600401612b43565b6020604051808303816000875af1925050508015611c4a575060408051601f3d908101601f19168201909252611c4791810190612b7f565b60015b611cb8573d808015611c78576040519150601f19603f3d011682016040523d82523d6000602084013e611c7d565b606091505b508051611cb05760405162461bcd60e51b81526020600482015260016024820152603d60f91b6044820152606401610720565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611cd6565b5060015b949350505050565b606081611d025750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d2c5780611d1681612977565b9150611d259050600a83612bb2565b9150611d06565b60008167ffffffffffffffff811115611d4757611d47612686565b6040519080825280601f01601f191660200182016040528015611d71576020820181803683370190505b5090505b8415611cd657611d86600183612b15565b9150611d93600a86612bc6565b611d9e9060306129e7565b60f81b818381518110611db357611db3612bda565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611ded600a86612bb2565b9450611d75565b6000806000611e0385856120b8565b91509150611e1081612128565b509392505050565b6000546001600160a01b038416611e555760405162461bcd60e51b81526020600482015260016024820152600360fc1b6044820152606401610720565b611e60816000541190565b15611e915760405162461bcd60e51b81526020600482015260016024820152606160f81b6044820152606401610720565b7f0000000000000000000000000000000000000000000000000000000000000000831115611ee55760405162461bcd60e51b81526020600482015260016024820152606d60f81b6044820152606401610720565b6001600160a01b0384166000908152600560209081526040918290208251808401845290546001600160801b0380821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190611f4e908790612aea565b6001600160801b03168152602001858360200151611f6c9190612aea565b6001600160801b039081169091526001600160a01b03808816600081815260056020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526004909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156120ad5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461205d6000888488611bcb565b61208d5760405162461bcd60e51b81526020600482015260016024820152603d60f91b6044820152606401610720565b8161209781612977565b92505080806120a590612977565b915050612010565b506000819055611959565b6000808251604114156120ef5760208301516040840151606085015160001a6120e3878285856122e3565b94509450505050612121565b825160401415612119576020830151604084015161210e8683836123d0565b935093505050612121565b506000905060025b9250929050565b600081600481111561213c5761213c612bf0565b14156121455750565b600181600481111561215957612159612bf0565b14156121a75760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610720565b60028160048111156121bb576121bb612bf0565b14156122095760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610720565b600381600481111561221d5761221d612bf0565b14156122765760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610720565b600481600481111561228a5761228a612bf0565b1415610e665760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610720565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561231a57506000905060036123c7565b8460ff16601b1415801561233257508460ff16601c14155b1561234357506000905060046123c7565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612397573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166123c0576000600192509250506123c7565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161240660ff86901c601b6129e7565b9050612414878288856122e3565b935093505050935093915050565b82805461242e90612926565b90600052602060002090601f0160209004810192826124505760008555612496565b82601f106124695782800160ff19823516178555612496565b82800160010185558215612496579182015b8281111561249657823582559160200191906001019061247b565b50610dff929150612516565b8280546124ae90612926565b90600052602060002090601f0160209004810192826124d05760008555612496565b82601f106124e957805160ff1916838001178555612496565b82800160010185558215612496579182015b828111156124965782518255916020019190600101906124fb565b5b80821115610dff5760008155600101612517565b6001600160e01b031981168114610e6657600080fd5b60006020828403121561255357600080fd5b813561255e8161252b565b9392505050565b60005b83811015612580578181015183820152602001612568565b838111156112155750506000910152565b600081518084526125a9816020860160208601612565565b601f01601f19169290920160200192915050565b60208152600061255e6020830184612591565b6000602082840312156125e257600080fd5b5035919050565b80356001600160a01b038116811461260057600080fd5b919050565b6000806040838503121561261857600080fd5b612621836125e9565b946020939093013593505050565b60008060006060848603121561264457600080fd5b61264d846125e9565b925061265b602085016125e9565b9150604084013590509250925092565b60006020828403121561267d57600080fd5b61255e826125e9565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156126b7576126b7612686565b604051601f8501601f19908116603f011681019082821181831017156126df576126df612686565b816040528093508581528686860111156126f857600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561272457600080fd5b813567ffffffffffffffff81111561273b57600080fd5b8201601f8101841361274c57600080fd5b611cd68482356020840161269c565b6000806040838503121561276e57600080fd5b612777836125e9565b9150612785602084016125e9565b90509250929050565b8015158114610e6657600080fd5b600080604083850312156127af57600080fd5b6127b8836125e9565b915060208301356127c88161278e565b809150509250929050565b60008083601f8401126127e557600080fd5b50813567ffffffffffffffff8111156127fd57600080fd5b60208301915083602082850101111561212157600080fd5b6000806000806060858703121561282b57600080fd5b84359350602085013567ffffffffffffffff81111561284957600080fd5b612855878288016127d3565b9598909750949560400135949350505050565b6000806020838503121561287b57600080fd5b823567ffffffffffffffff81111561289257600080fd5b61289e858286016127d3565b90969095509350505050565b600080600080608085870312156128c057600080fd5b6128c9856125e9565b93506128d7602086016125e9565b925060408501359150606085013567ffffffffffffffff8111156128fa57600080fd5b8501601f8101871361290b57600080fd5b61291a8782356020840161269c565b91505092959194509250565b600181811c9082168061293a57607f821691505b6020821081141561295b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600060001982141561298b5761298b612961565b5060010190565b6000602082840312156129a457600080fd5b5051919050565b6000602082840312156129bd57600080fd5b815161255e8161278e565b60008160001904831182151516156129e2576129e2612961565b500290565b600082198211156129fa576129fa612961565b500190565b60008151612a11818560208601612565565b9290920192915050565b600080845481600182811c915080831680612a3757607f831692505b6020808410821415612a5757634e487b7160e01b86526022600452602486fd5b818015612a6b5760018114612a7c57612aa9565b60ff19861689528489019650612aa9565b60008b81526020902060005b86811015612aa15781548b820152908501908301612a88565b505084890196505b505050505050612ab981856129ff565b95945050505050565b60006001600160801b0383811690831681811015612ae257612ae2612961565b039392505050565b60006001600160801b03808316818516808303821115612b0c57612b0c612961565b01949350505050565b600082821015612b2757612b27612961565b500390565b600081612b3b57612b3b612961565b506000190190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612b756080830184612591565b9695505050505050565b600060208284031215612b9157600080fd5b815161255e8161252b565b634e487b7160e01b600052601260045260246000fd5b600082612bc157612bc1612b9c565b500490565b600082612bd557612bd5612b9c565b500690565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fdfea26469706673582212204da60f6641fd7246b079b0c90913849a4b304275e487af01f171d34bf8cd1ef864736f6c634300080a0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000005ab8df7c8a6d3d7db4ce4c0023f17b7ee53485b50000000000000000000000000000000000000000000000000000000000000007506f6b6547414e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044b4f504500000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102345760003560e01c806368855b6411610138578063ae096f5d116100b0578063d7224ba01161007f578063dfb5259c11610064578063dfb5259c14610641578063e985e9c514610661578063f2fde38b146106aa57600080fd5b8063d7224ba014610615578063dbed01b21461062b57600080fd5b8063ae096f5d14610595578063b88d4fde146105b5578063c87b56dd146105d5578063d11a461f146105f557600080fd5b8063715018a61161010757806395d89b41116100ec57806395d89b411461054d578063a22cb46514610562578063a9cbd06d1461058257600080fd5b8063715018a61461051a5780638da5cb5b1461052f57600080fd5b806368855b641461046a5780636c0360eb146104805780636c82054b1461049557806370a08231146104fa57600080fd5b80632f745c59116101cb57806349df728c1161019a57806355f804b31161017f57806355f804b3146104095780635c975abb146104295780636352211e1461044a57600080fd5b806349df728c146103c95780634f6ccce7146103e957600080fd5b80632f745c591461035f578063333171bb1461037f5780633ccfd60b1461039457806342842e0e146103a957600080fd5b8063081812fc11610207578063081812fc146102c8578063095ea7b31461030057806318160ddd1461032057806323b872dd1461033f57600080fd5b8063017043a51461023957806301ffc9a714610250578063021313cf1461028557806306fdde03146102a6575b600080fd5b34801561024557600080fd5b5061024e6106ca565b005b34801561025c57600080fd5b5061027061026b366004612541565b610759565b60405190151581526020015b60405180910390f35b34801561029157600080fd5b50600b5461027090600160a81b900460ff1681565b3480156102b257600080fd5b506102bb61082a565b60405161027c91906125bd565b3480156102d457600080fd5b506102e86102e33660046125d0565b6108bc565b6040516001600160a01b03909116815260200161027c565b34801561030c57600080fd5b5061024e61031b366004612605565b610915565b34801561032c57600080fd5b506000545b60405190815260200161027c565b34801561034b57600080fd5b5061024e61035a36600461262f565b6109c4565b34801561036b57600080fd5b5061033161037a366004612605565b6109cf565b34801561038b57600080fd5b5061024e610b1b565b3480156103a057600080fd5b5061024e610bb1565b3480156103b557600080fd5b5061024e6103c436600461262f565b610c3e565b3480156103d557600080fd5b5061024e6103e436600461266b565b610c59565b3480156103f557600080fd5b506103316104043660046125d0565b610dad565b34801561041557600080fd5b5061024e610424366004612712565b610e03565b34801561043557600080fd5b50600b5461027090600160a01b900460ff1681565b34801561045657600080fd5b506102e86104653660046125d0565b610e69565b34801561047657600080fd5b50610331600a5481565b34801561048c57600080fd5b506102bb610e7b565b3480156104a157600080fd5b506103316104b036600461275b565b6040516bffffffffffffffffffffffff19606084811b8216602084015283901b16603482015260009060480160405160208183030381529060405280519060200120905092915050565b34801561050657600080fd5b5061033161051536600461266b565b610e8a565b34801561052657600080fd5b5061024e610eeb565b34801561053b57600080fd5b506009546001600160a01b03166102e8565b34801561055957600080fd5b506102bb610f51565b34801561056e57600080fd5b5061024e61057d36600461279c565b610f60565b61024e610590366004612815565b611009565b3480156105a157600080fd5b5061024e6105b0366004612868565b61121b565b3480156105c157600080fd5b5061024e6105d03660046128aa565b6112a1565b3480156105e157600080fd5b506102bb6105f03660046125d0565b6112e8565b34801561060157600080fd5b506102bb6106103660046125d0565b611381565b34801561062157600080fd5b5061033160085481565b34801561063757600080fd5b50610331600c5481565b34801561064d57600080fd5b5061024e61065c366004612712565b61141b565b34801561066d57600080fd5b5061027061067c36600461275b565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156106b657600080fd5b5061024e6106c536600461266b565b61151d565b6009546001600160a01b031633146107295760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600b80547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16600160a81b179055565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806107bc57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806107f057506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061082457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606001805461083990612926565b80601f016020809104026020016040519081016040528092919081815260200182805461086590612926565b80156108b25780601f10610887576101008083540402835291602001916108b2565b820191906000526020600020905b81548152906001019060200180831161089557829003601f168201915b5050505050905090565b60006108c9826000541190565b6108f95760405162461bcd60e51b81526020600482015260016024820152606160f81b6044820152606401610720565b506000908152600660205260409020546001600160a01b031690565b600061092082610e69565b9050806001600160a01b0316836001600160a01b031614156109685760405162461bcd60e51b81526020600482015260016024820152606f60f81b6044820152606401610720565b336001600160a01b03821614806109845750610984813361067c565b6109b45760405162461bcd60e51b81526020600482015260016024820152606160f81b6044820152606401610720565b6109bf8383836115fc565b505050565b6109bf838383611665565b60006109da83610e8a565b8210610a285760405162461bcd60e51b815260206004820152600160248201527f62000000000000000000000000000000000000000000000000000000000000006044820152606401610720565b600080549080805b83811015610ad2576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610a8357805192505b876001600160a01b0316836001600160a01b03161415610abf5786841415610ab15750935061082492505050565b83610abb81612977565b9450505b5080610aca81612977565b915050610a30565b5060405162461bcd60e51b815260206004820152600160248201527f75000000000000000000000000000000000000000000000000000000000000006044820152606401610720565b6009546001600160a01b03163314610b755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b600b80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116600160a01b9182900460ff1615909102179055565b6009546001600160a01b03163314610c0b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b6040514790339082156108fc029083906000818181858888f19350505050158015610c3a573d6000803e3d6000fd5b5050565b6109bf838383604051806020016040528060008152506112a1565b6009546001600160a01b03163314610cb35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015610d1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3e9190612992565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610d89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3a91906129ab565b600080548210610dff5760405162461bcd60e51b815260206004820152600160248201527f67000000000000000000000000000000000000000000000000000000000000006044820152606401610720565b5090565b6009546001600160a01b03163314610e5d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b610e6681611961565b50565b6000610e7482611974565b5192915050565b60606003805461083990612926565b60006001600160a01b038216610ec65760405162461bcd60e51b81526020600482015260016024820152600360fc1b6044820152606401610720565b506001600160a01b03166000908152600560205260409020546001600160801b031690565b6009546001600160a01b03163314610f455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b610f4f6000611ad7565b565b60606002805461083990612926565b6001600160a01b038216331415610f9d5760405162461bcd60e51b81526020600482015260016024820152606160f81b6044820152606401610720565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b54600160a01b900460ff16156110635760405162461bcd60e51b815260206004820152600160248201527f73000000000000000000000000000000000000000000000000000000000000006044820152606401610720565b600b54600160a81b900460ff16156110a15760405162461bcd60e51b81526020600482015260016024820152606d60f81b6044820152606401610720565b836110f133306040516bffffffffffffffffffffffff19606084811b8216602084015283901b16603482015260009060480160405160208183030381529060405280519060200120905092915050565b1461113e5760405162461bcd60e51b815260206004820152600160248201527f69000000000000000000000000000000000000000000000000000000000000006044820152606401610720565b61117e8484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611b3692505050565b6111ca5760405162461bcd60e51b815260206004820152600160248201527f66000000000000000000000000000000000000000000000000000000000000006044820152606401610720565b3481600a546111d991906129c8565b111561120b5760405162461bcd60e51b81526020600482015260016024820152606160f81b6044820152606401610720565b6112153382611bb1565b50505050565b6009546001600160a01b031633146112755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b600c546112839060016129e7565b600c8190556000908152600d602052604090206109bf908383612422565b6112ac848484611665565b6112b884848484611bcb565b6112155760405162461bcd60e51b81526020600482015260016024820152603d60f91b6044820152606401610720565b60606112f5826000541190565b6113255760405162461bcd60e51b81526020600482015260016024820152603d60f91b6044820152606401610720565b60006003805461133490612926565b9050116113505760405180602001604052806000815250610824565b600361135b83611cde565b60405160200161136c929190612a1b565b60405160208183030381529060405292915050565b600d602052600090815260409020805461139a90612926565b80601f01602080910402602001604051908101604052809291908181526020018280546113c690612926565b80156114135780601f106113e857610100808354040283529160200191611413565b820191906000526020600020905b8154815290600101906020018083116113f657829003601f168201915b505050505081565b6009546001600160a01b031633146114755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b6040517fc47f00270000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000084b1c3c81545d370f3634392de611caabff8148169063c47f0027906114da9084906004016125bd565b6020604051808303816000875af11580156114f9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3a9190612992565b6009546001600160a01b031633146115775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b6001600160a01b0381166115f35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610720565b610e6681611ad7565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061167082611974565b80519091506000906001600160a01b0316336001600160a01b031614806116a757503361169c846108bc565b6001600160a01b0316145b806116b9575081516116b9903361067c565b9050806116ec5760405162461bcd60e51b81526020600482015260016024820152606160f81b6044820152606401610720565b846001600160a01b031682600001516001600160a01b0316146117355760405162461bcd60e51b81526020600482015260016024820152606f60f81b6044820152606401610720565b6001600160a01b03841661176f5760405162461bcd60e51b81526020600482015260016024820152600360fc1b6044820152606401610720565b61177f60008484600001516115fc565b6001600160a01b03851660009081526005602052604081208054600192906117b19084906001600160801b0316612ac2565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260056020526040812080546001945090926117fd91859116612aea565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526004909152948520935184549151909216600160a01b026001600160e01b031990911691909216171790556118858460016129e7565b6000818152600460205260409020549091506001600160a01b0316611917576118af816000541190565b156119175760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b8051610c3a9060039060208401906124a2565b6040805180820190915260008082526020820152611993826000541190565b6119df5760405162461bcd60e51b815260206004820152600160248201527f74000000000000000000000000000000000000000000000000000000000000006044820152606401610720565b60007f000000000000000000000000000000000000000000000000000000000001869f8310611a4057611a327f000000000000000000000000000000000000000000000000000000000001869f84612b15565b611a3d9060016129e7565b90505b825b818110611aaa576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215611a9757949350505050565b5080611aa281612b2c565b915050611a42565b5060405162461bcd60e51b81526020600482015260016024820152606f60f81b6044820152606401610720565b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611b9982611b93856040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90611df4565b600b546001600160a01b039182169116149392505050565b610c3a828260405180602001604052806000815250611e18565b60006001600160a01b0384163b15611cd257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611c0f903390899088908890600401612b43565b6020604051808303816000875af1925050508015611c4a575060408051601f3d908101601f19168201909252611c4791810190612b7f565b60015b611cb8573d808015611c78576040519150601f19603f3d011682016040523d82523d6000602084013e611c7d565b606091505b508051611cb05760405162461bcd60e51b81526020600482015260016024820152603d60f91b6044820152606401610720565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611cd6565b5060015b949350505050565b606081611d025750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d2c5780611d1681612977565b9150611d259050600a83612bb2565b9150611d06565b60008167ffffffffffffffff811115611d4757611d47612686565b6040519080825280601f01601f191660200182016040528015611d71576020820181803683370190505b5090505b8415611cd657611d86600183612b15565b9150611d93600a86612bc6565b611d9e9060306129e7565b60f81b818381518110611db357611db3612bda565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611ded600a86612bb2565b9450611d75565b6000806000611e0385856120b8565b91509150611e1081612128565b509392505050565b6000546001600160a01b038416611e555760405162461bcd60e51b81526020600482015260016024820152600360fc1b6044820152606401610720565b611e60816000541190565b15611e915760405162461bcd60e51b81526020600482015260016024820152606160f81b6044820152606401610720565b7f000000000000000000000000000000000000000000000000000000000001869f831115611ee55760405162461bcd60e51b81526020600482015260016024820152606d60f81b6044820152606401610720565b6001600160a01b0384166000908152600560209081526040918290208251808401845290546001600160801b0380821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190611f4e908790612aea565b6001600160801b03168152602001858360200151611f6c9190612aea565b6001600160801b039081169091526001600160a01b03808816600081815260056020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526004909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156120ad5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461205d6000888488611bcb565b61208d5760405162461bcd60e51b81526020600482015260016024820152603d60f91b6044820152606401610720565b8161209781612977565b92505080806120a590612977565b915050612010565b506000819055611959565b6000808251604114156120ef5760208301516040840151606085015160001a6120e3878285856122e3565b94509450505050612121565b825160401415612119576020830151604084015161210e8683836123d0565b935093505050612121565b506000905060025b9250929050565b600081600481111561213c5761213c612bf0565b14156121455750565b600181600481111561215957612159612bf0565b14156121a75760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610720565b60028160048111156121bb576121bb612bf0565b14156122095760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610720565b600381600481111561221d5761221d612bf0565b14156122765760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610720565b600481600481111561228a5761228a612bf0565b1415610e665760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610720565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561231a57506000905060036123c7565b8460ff16601b1415801561233257508460ff16601c14155b1561234357506000905060046123c7565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612397573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166123c0576000600192509250506123c7565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161240660ff86901c601b6129e7565b9050612414878288856122e3565b935093505050935093915050565b82805461242e90612926565b90600052602060002090601f0160209004810192826124505760008555612496565b82601f106124695782800160ff19823516178555612496565b82800160010185558215612496579182015b8281111561249657823582559160200191906001019061247b565b50610dff929150612516565b8280546124ae90612926565b90600052602060002090601f0160209004810192826124d05760008555612496565b82601f106124e957805160ff1916838001178555612496565b82800160010185558215612496579182015b828111156124965782518255916020019190600101906124fb565b5b80821115610dff5760008155600101612517565b6001600160e01b031981168114610e6657600080fd5b60006020828403121561255357600080fd5b813561255e8161252b565b9392505050565b60005b83811015612580578181015183820152602001612568565b838111156112155750506000910152565b600081518084526125a9816020860160208601612565565b601f01601f19169290920160200192915050565b60208152600061255e6020830184612591565b6000602082840312156125e257600080fd5b5035919050565b80356001600160a01b038116811461260057600080fd5b919050565b6000806040838503121561261857600080fd5b612621836125e9565b946020939093013593505050565b60008060006060848603121561264457600080fd5b61264d846125e9565b925061265b602085016125e9565b9150604084013590509250925092565b60006020828403121561267d57600080fd5b61255e826125e9565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156126b7576126b7612686565b604051601f8501601f19908116603f011681019082821181831017156126df576126df612686565b816040528093508581528686860111156126f857600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561272457600080fd5b813567ffffffffffffffff81111561273b57600080fd5b8201601f8101841361274c57600080fd5b611cd68482356020840161269c565b6000806040838503121561276e57600080fd5b612777836125e9565b9150612785602084016125e9565b90509250929050565b8015158114610e6657600080fd5b600080604083850312156127af57600080fd5b6127b8836125e9565b915060208301356127c88161278e565b809150509250929050565b60008083601f8401126127e557600080fd5b50813567ffffffffffffffff8111156127fd57600080fd5b60208301915083602082850101111561212157600080fd5b6000806000806060858703121561282b57600080fd5b84359350602085013567ffffffffffffffff81111561284957600080fd5b612855878288016127d3565b9598909750949560400135949350505050565b6000806020838503121561287b57600080fd5b823567ffffffffffffffff81111561289257600080fd5b61289e858286016127d3565b90969095509350505050565b600080600080608085870312156128c057600080fd5b6128c9856125e9565b93506128d7602086016125e9565b925060408501359150606085013567ffffffffffffffff8111156128fa57600080fd5b8501601f8101871361290b57600080fd5b61291a8782356020840161269c565b91505092959194509250565b600181811c9082168061293a57607f821691505b6020821081141561295b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600060001982141561298b5761298b612961565b5060010190565b6000602082840312156129a457600080fd5b5051919050565b6000602082840312156129bd57600080fd5b815161255e8161278e565b60008160001904831182151516156129e2576129e2612961565b500290565b600082198211156129fa576129fa612961565b500190565b60008151612a11818560208601612565565b9290920192915050565b600080845481600182811c915080831680612a3757607f831692505b6020808410821415612a5757634e487b7160e01b86526022600452602486fd5b818015612a6b5760018114612a7c57612aa9565b60ff19861689528489019650612aa9565b60008b81526020902060005b86811015612aa15781548b820152908501908301612a88565b505084890196505b505050505050612ab981856129ff565b95945050505050565b60006001600160801b0383811690831681811015612ae257612ae2612961565b039392505050565b60006001600160801b03808316818516808303821115612b0c57612b0c612961565b01949350505050565b600082821015612b2757612b27612961565b500390565b600081612b3b57612b3b612961565b506000190190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612b756080830184612591565b9695505050505050565b600060208284031215612b9157600080fd5b815161255e8161252b565b634e487b7160e01b600052601260045260246000fd5b600082612bc157612bc1612b9c565b500490565b600082612bd557612bd5612b9c565b500690565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fdfea26469706673582212204da60f6641fd7246b079b0c90913849a4b304275e487af01f171d34bf8cd1ef864736f6c634300080a0033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000005ab8df7c8a6d3d7db4ce4c0023f17b7ee53485b50000000000000000000000000000000000000000000000000000000000000007506f6b6547414e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044b4f504500000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): PokeGAN
Arg [1] : _symbol (string): KOPE
Arg [2] : _allowListMintPrice (uint256): 50000000000000000
Arg [3] : _signerAddress (address): 0x5Ab8DF7c8a6D3d7dB4Ce4c0023f17b7ee53485b5

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 00000000000000000000000000000000000000000000000000b1a2bc2ec50000
Arg [3] : 0000000000000000000000005ab8df7c8a6d3d7db4ce4c0023f17b7ee53485b5
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [5] : 506f6b6547414e00000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 4b4f504500000000000000000000000000000000000000000000000000000000


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.