ETH Price: $2,650.58 (+0.54%)

Token

NewSticksOnTheBlock (NSOTB)
 

Overview

Max Total Supply

888 NSOTB

Holders

101

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 NSOTB
0xd42545bc62521805c2093a30df6bb5f71f030590
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:
NewSticksOnTheBlock

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

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

//Standard NFT
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

//Proof of Signature
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

//Royalty
import "@openzeppelin/contracts/token/common/ERC2981.sol";

contract NewSticksOnTheBlock is ERC721, Ownable, ERC2981 {
  using Strings for uint256;
  using Counters for Counters.Counter;
  using ECDSA for bytes32;

  uint256 public constant T1SUPPLY = 111; //Legendary supply
  uint256 public constant T2SUPPLY = 222; //Guardian supply
  uint256 public constant T3SUPPLY = 555; //Keeper supply
  uint256 public constant MAXGUARDIANSUPPLY = T1SUPPLY + T2SUPPLY;
  uint256 public constant MAXKEEPERSUPPLY = T1SUPPLY + T2SUPPLY + T3SUPPLY;
  uint256 public constant GUARDIANCOST = 0.12 ether;
  uint256 public constant KEEPERCOST = 0.08 ether;
  uint256 public constant MAXMINTAMOUNT = 1;

  Counters.Counter private supply;
  address private t1 = 0x1D372AfE7e797d3Bb0B734768DCBcceF0dc13679; //Treasury wallet
  string private _contractURI = "https://animagine.mypinata.cloud/ipfs/QmYcvij8uY9nZPLFgCT5v3RCbRKH3TTBBExxFJiQqZKzzy";

  string public baseURI = "https://animagine.mypinata.cloud/ipfs/QmUSadNAmu9Awgp2TAXv7ujvLNB21D8b7QEQ4wY3RgptA9/";
  bool public paused = false;

  enum PeriodMintStatus {
    CLOSED,
    GUARDIAN,
    OPENGUARDIAN,
    KEEPER,
    OPENKEEPER
  }
  PeriodMintStatus public _periodMintStatus = PeriodMintStatus.CLOSED;

  //Guardian Whitelist
  bytes32 public gMerkleRoot = 0x2f727751776094c84affb0688430a674ada76ec5a6e76f94f5efce19c6a1ce7c;
  mapping(address => bool) public gWhitelistClaimed;

  //Keeper Whitelist
  bytes32 public kMerkleRoot = 0x260e992552beffbe02cdf04037d1ec096940d8a0ad14f71b200c43e6bee3dcce;
  mapping(address => bool) public kWhitelistClaimed;

  constructor() ERC721("NewSticksOnTheBlock", "NSOTB") {
    //Contract interprets 10,000 as 100%.
    setDefaultRoyalty(t1, 500); //5%
   }

//*** INTERNAL FUNCTION ***//
  function isValidSignature(bytes memory _signature) public view returns (bool) {
    bytes32 hash = keccak256(abi.encodePacked(msg.sender, address(this)));
    bytes32 signedHash = hash.toEthSignedMessageHash();
    return signedHash.recover(_signature) == msg.sender;
  }

  function _mintLoop(address _receiver, uint256 _mintAmount) internal {
    for (uint256 i = 0; i < _mintAmount; i++) {
      supply.increment();
      _safeMint(_receiver, supply.current());
    }
  }

//*** PUBLIC FUNCTION ***//
  function guardianSaleMint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public payable {
    require(!paused);
    require(_periodMintStatus == PeriodMintStatus.GUARDIAN, "CP: Minting status invalid.");
    require(msg.sender == tx.origin, "CP: We like real users.");
    require(_mintAmount > 0 && _mintAmount <= MAXMINTAMOUNT, "Out of mint amount limit.");
    require(supply.current() + _mintAmount <= MAXGUARDIANSUPPLY, "Out of guardian supply.");

    if (msg.sender != owner()) {
      require(!gWhitelistClaimed[msg.sender], "Address has already claimed.");

      bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
      require(MerkleProof.verify(_merkleProof, gMerkleRoot, leaf), "Invalid proof.");
      
      gWhitelistClaimed[msg.sender] = true;
        
      require(msg.value >= GUARDIANCOST * _mintAmount, "Insufficient Eth.");
    }

    _mintLoop(msg.sender, _mintAmount);
  }

  function guardianPublicSaleMint(uint256 _mintAmount, bytes memory _signature) public payable {
    require(!paused);
    require(_periodMintStatus == PeriodMintStatus.OPENGUARDIAN, "CP: Minting status invalid.");
    require(msg.sender == tx.origin, "CP: We like real users.");
    require(_mintAmount > 0 && _mintAmount <= MAXMINTAMOUNT, "Out of mint amount limit.");
    require(supply.current() + _mintAmount <= MAXGUARDIANSUPPLY, "Out of guardian supply.");

    if (msg.sender != owner()) {
      require(isValidSignature(_signature), "CP: Invalid signature.");

      require(msg.value >= GUARDIANCOST * _mintAmount, "Insufficient Eth.");
    }

    _mintLoop(msg.sender, _mintAmount);
  }

  function keeperSaleMint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public payable {
    require(!paused);
    require(_periodMintStatus == PeriodMintStatus.KEEPER, "CP: Minting status invalid.");
    require(msg.sender == tx.origin, "CP: We like real users.");
    require(_mintAmount > 0 && _mintAmount <= MAXMINTAMOUNT, "Out of mint amount limit.");
    require(supply.current() + _mintAmount <= MAXKEEPERSUPPLY, "Out of supply.");

    if (msg.sender != owner()) {
      require(!kWhitelistClaimed[msg.sender], "Address has already claimed.");

      bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
      require(MerkleProof.verify(_merkleProof, kMerkleRoot, leaf), "Invalid proof.");
      
      kWhitelistClaimed[msg.sender] = true;
        
      require(msg.value >= KEEPERCOST * _mintAmount, "Insufficient Eth.");
    }

    _mintLoop(msg.sender, _mintAmount);
  }

  function keeperPublicSaleMint(uint256 _mintAmount, bytes memory _signature) public payable {
    require(!paused);
    require(_periodMintStatus == PeriodMintStatus.OPENKEEPER, "CP: Minting status invalid.");
    require(msg.sender == tx.origin, "CP: We like real users.");
    require(_mintAmount > 0 && _mintAmount <= MAXMINTAMOUNT, "Out of mint amount limit.");
    require(supply.current() + _mintAmount <= MAXKEEPERSUPPLY, "Out of supply.");

    if (msg.sender != owner()) {
      require(isValidSignature(_signature), "CP: Invalid signature.");

      require(msg.value >= KEEPERCOST * _mintAmount, "Insufficient Eth.");
    }

    _mintLoop(msg.sender, _mintAmount);
  }

  function walletOfOwner(address _owner) public view returns (uint256[] memory) {
    uint256 ownerTokenCount = balanceOf(_owner);
    uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
    uint256 currentTokenId = 1;
    uint256 ownedTokenIndex = 0;

    while (ownedTokenIndex < ownerTokenCount && currentTokenId <= MAXKEEPERSUPPLY) {
      address currentTokenOwner = ownerOf(currentTokenId);

      if (currentTokenOwner == _owner) {
        ownedTokenIds[ownedTokenIndex] = currentTokenId;

        ownedTokenIndex++;
      }

      currentTokenId++;
    }

    return ownedTokenIds;
  }

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

    return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, _tokenId.toString(), ".json")) : "";
  }

  // Returns the URI for the contract-level metadata of the contract.
  function contractURI() public view returns (string memory) {
      return _contractURI;
  }

  function totalSupply() public view returns (uint256) {
    return supply.current();
  }

//*** ONLY OWNER FUNCTION **** //
  function setBaseURI(string memory _newBaseURI) public onlyOwner {
    baseURI = _newBaseURI;
  }

  function pause(bool _state) public onlyOwner {
    paused = _state;
  }

  function setMintStatus(uint256 status) public onlyOwner {
    require(status <= uint256(PeriodMintStatus.OPENKEEPER), "CP: Out of bounds.");

    _periodMintStatus = PeriodMintStatus(status);
  }

  function setGMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
    gMerkleRoot = _merkleRoot;
  }

  function setKMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
    kMerkleRoot = _merkleRoot;
  }

  function mintAllLegendary() public onlyOwner {
    require(!paused);
    require(_periodMintStatus == PeriodMintStatus.CLOSED, "CP: Minting status invalid.");
    uint256 mintAmount = T1SUPPLY - supply.current();
    require(mintAmount > 0 && supply.current() + mintAmount <= T1SUPPLY, "Out of legendary supply.");

    _mintLoop(t1, mintAmount);
  }

  function mintAllGuardian() public onlyOwner {
    require(!paused);
    require(_periodMintStatus == PeriodMintStatus.OPENGUARDIAN, "CP: Minting status invalid.");
    uint256 mintAmount = MAXGUARDIANSUPPLY - supply.current();
    require(mintAmount > 0 && supply.current() + mintAmount <= MAXGUARDIANSUPPLY, "Out of guardian supply.");

    _mintLoop(t1, mintAmount);
  }

  function mintAllKeeper() public onlyOwner {
    require(!paused);
    require(_periodMintStatus == PeriodMintStatus.OPENKEEPER, "CP: Minting status invalid.");
    uint256 _mintAmount = MAXKEEPERSUPPLY - supply.current();
    require(_mintAmount > 0 && supply.current() + _mintAmount <= MAXKEEPERSUPPLY, "Out of supply.");

    _mintLoop(t1, _mintAmount);
  }

  function bulkAirDropLegendary(address[] calldata _airDropAddresses) public onlyOwner {
    require(!paused);
    require(_periodMintStatus == PeriodMintStatus.CLOSED, "CP: Minting status invalid.");
    require(supply.current() + _airDropAddresses.length <= T1SUPPLY, "Out of legendary supply.");

    for (uint256 i = 0; i < _airDropAddresses.length; i++) {
      supply.increment();
      _safeMint(_airDropAddresses[i], supply.current());
    }
  }

  function withdraw() public payable onlyOwner {
    (bool os, ) = payable(t1).call{value: address(this).balance}("");
    require(os);
  }

  // Sets contract URI for the contract-level metadata of the contract.
  function setContractURI(string calldata _URI) public onlyOwner {
      _contractURI = _URI;
  }

  function setDefaultRoyalty(address _receiver, uint96 _royaltyPercent) public onlyOwner {
      _setDefaultRoyalty(_receiver, _royaltyPercent);
  }

//REQUIRED OVERRIDE FOR ERC721 & ERC2981
  function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721) {
    super._beforeTokenTransfer(from, to, tokenId);
  }

  function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC2981)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 16 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 3 of 16 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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.
            /// @solidity memory-safe-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.
            /// @solidity memory-safe-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 4 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 5 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 6 of 16 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

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

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

File 8 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @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);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 10 of 16 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

pragma solidity ^0.8.0;

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

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

File 12 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 14 of 16 : 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 15 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 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 16 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"GUARDIANCOST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"KEEPERCOST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXGUARDIANSUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXKEEPERSUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXMINTAMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"T1SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"T2SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"T3SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_periodMintStatus","outputs":[{"internalType":"enum NewSticksOnTheBlock.PeriodMintStatus","name":"","type":"uint8"}],"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":[{"internalType":"address[]","name":"_airDropAddresses","type":"address[]"}],"name":"bulkAirDropLegendary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"gWhitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"guardianPublicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"guardianSaleMint","outputs":[],"stateMutability":"payable","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":"bytes","name":"_signature","type":"bytes"}],"name":"isValidSignature","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"kWhitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"keeperPublicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"keeperSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintAllGuardian","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintAllKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintAllLegendary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_URI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_royaltyPercent","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setGMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setKMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"status","type":"uint256"}],"name":"setMintStatus","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":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

600a80546001600160a01b031916731d372afe7e797d3bb0b734768dcbccef0dc13679179055610100604052605460808181529062003b4460a03980516200005091600b916020909101906200036b565b5060405180608001604052806055815260200162003aef6055913980516200008191600c916020909101906200036b565b50600d805461ffff191690557f2f727751776094c84affb0688430a674ada76ec5a6e76f94f5efce19c6a1ce7c600e557f260e992552beffbe02cdf04037d1ec096940d8a0ad14f71b200c43e6bee3dcce601055348015620000e257600080fd5b50604080518082018252601381527f4e6577537469636b734f6e546865426c6f636b000000000000000000000000006020808301918252835180850190945260058452642729a7aa2160d91b90840152815191929162000145916000916200036b565b5080516200015b9060019060208401906200036b565b50505062000178620001726200019860201b60201c565b6200019c565b600a5462000192906001600160a01b03166101f4620001ee565b6200044e565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001f862000208565b6200020482826200026a565b5050565b6006546001600160a01b03163314620002685760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b565b6127106001600160601b0382161115620002da5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016200025f565b6001600160a01b038216620003325760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200025f565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b828054620003799062000411565b90600052602060002090601f0160209004810192826200039d5760008555620003e8565b82601f10620003b857805160ff1916838001178555620003e8565b82800160010185558215620003e8579182015b82811115620003e8578251825591602001919060010190620003cb565b50620003f6929150620003fa565b5090565b5b80821115620003f65760008155600101620003fb565b600181811c908216806200042657607f821691505b602082108114156200044857634e487b7160e01b600052602260045260246000fd5b50919050565b613691806200045e6000396000f3fe6080604052600436106102ff5760003560e01c80636352211e11610190578063c477e447116100dc578063dc2a4c5911610095578063e985e9c51161006f578063e985e9c514610896578063f2fde38b146108df578063f5cb572b146108ff578063ff26c1791461091b57600080fd5b8063dc2a4c591461084c578063e28cc2b21461086c578063e8a3d4851461088157600080fd5b8063c477e447146107ad578063c87b56dd146107c0578063d1ee3667146107e0578063d6bb9209146107f3578063d6d62bf714610809578063dc1ca0a11461081c57600080fd5b8063938e3d7b11610149578063a22cb46511610123578063a22cb4651461071d578063aa5fcade1461073d578063b11a77391461075d578063b88d4fde1461078d57600080fd5b8063938e3d7b146106d257806395d89b41146106f2578063999044ef1461070757600080fd5b80636352211e1461062a5780636c0360eb1461064a57806370a082311461065f578063715018a61461067f578063887fee31146106945780638da5cb5b146106b457600080fd5b806329619a211161024f5780634f4a682d1161020857806355f804b3116101e257806355f804b3146105c65780635688f805146105e65780635c975abb146105fb578063616b38db1461061557600080fd5b80634f4a682d14610587578063530bf05f1461059c57806353f6d120146105b157600080fd5b806329619a21146104b25780632a55205a146104c7578063325e98a8146105065780633ccfd60b1461053257806342842e0e1461053a578063438b63001461055a57600080fd5b8063095ea7b3116102bc578063118347de11610296578063118347de1461044e57806318160ddd146104615780631ae198221461047657806323b872dd1461049257600080fd5b8063095ea7b3146103f857806309820aff146104185780630ac43baf1461043857600080fd5b806301ffc9a71461030457806302329a291461033957806304634d8d1461035b57806305297b5d1461037b57806306fdde031461039e578063081812fc146103c0575b600080fd5b34801561031057600080fd5b5061032461031f366004612f9d565b61093b565b60405190151581526020015b60405180910390f35b34801561034557600080fd5b50610359610354366004612f69565b61094c565b005b34801561036757600080fd5b50610359610376366004612ee4565b610967565b34801561038757600080fd5b5061039061097d565b604051908152602001610330565b3480156103aa57600080fd5b506103b361098c565b6040516103309190613328565b3480156103cc57600080fd5b506103e06103db366004612f84565b610a1e565b6040516001600160a01b039091168152602001610330565b34801561040457600080fd5b50610359610413366004612eba565b610a45565b34801561042457600080fd5b50610359610433366004612f84565b610b60565b34801561044457600080fd5b5061039061022b81565b61035961045c366004613113565b610b6d565b34801561046d57600080fd5b50610390610d0e565b34801561048257600080fd5b5061039067011c37937e08000081565b34801561049e57600080fd5b506103596104ad366004612dec565b610d1e565b3480156104be57600080fd5b50610359610d4f565b3480156104d357600080fd5b506104e76104e236600461315a565b610e3e565b604080516001600160a01b039093168352602083019190915201610330565b34801561051257600080fd5b50600d5461052590610100900460ff1681565b6040516103309190613300565b610359610eec565b34801561054657600080fd5b50610359610555366004612dec565b610f54565b34801561056657600080fd5b5061057a610575366004612d9e565b610f6f565b60405161033091906132bc565b34801561059357600080fd5b50610359611066565b3480156105a857600080fd5b50610390606f81565b3480156105bd57600080fd5b50610359611126565b3480156105d257600080fd5b506103596105e136600461307e565b611200565b3480156105f257600080fd5b5061039060de81565b34801561060757600080fd5b50600d546103249060ff1681565b34801561062157600080fd5b5061039061121b565b34801561063657600080fd5b506103e0610645366004612f84565b611234565b34801561065657600080fd5b506103b3611294565b34801561066b57600080fd5b5061039061067a366004612d9e565b611322565b34801561068b57600080fd5b506103596113a8565b3480156106a057600080fd5b506103596106af366004612f84565b6113bc565b3480156106c057600080fd5b506006546001600160a01b03166103e0565b3480156106de57600080fd5b506103596106ed36600461300c565b611442565b3480156106fe57600080fd5b506103b3611456565b34801561071357600080fd5b50610390600e5481565b34801561072957600080fd5b50610359610738366004612e90565b611465565b34801561074957600080fd5b50610359610758366004612f84565b611470565b34801561076957600080fd5b50610324610778366004612d9e565b60116020526000908152604090205460ff1681565b34801561079957600080fd5b506103596107a8366004612e28565b61147d565b6103596107bb366004613113565b6114b5565b3480156107cc57600080fd5b506103b36107db366004612f84565b6115fc565b6103596107ee3660046130c7565b6116d8565b3480156107ff57600080fd5b5061039060105481565b6103596108173660046130c7565b61194c565b34801561082857600080fd5b50610324610837366004612d9e565b600f6020526000908152604090205460ff1681565b34801561085857600080fd5b50610324610867366004612fd7565b611b7e565b34801561087857600080fd5b50610390600181565b34801561088d57600080fd5b506103b3611c23565b3480156108a257600080fd5b506103246108b1366004612db9565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108eb57600080fd5b506103596108fa366004612d9e565b611c32565b34801561090b57600080fd5b506103906701aa535d3d0c000081565b34801561092757600080fd5b50610359610936366004612f27565b611ca8565b600061094682611dbc565b92915050565b610954611de1565b600d805460ff1916911515919091179055565b61096f611de1565b6109798282611e3b565b5050565b61098960de606f6134df565b81565b60606000805461099b9061356d565b80601f01602080910402602001604051908101604052809291908181526020018280546109c79061356d565b8015610a145780601f106109e957610100808354040283529160200191610a14565b820191906000526020600020905b8154815290600101906020018083116109f757829003601f168201915b5050505050905090565b6000610a2982611f38565b506000908152600460205260409020546001600160a01b031690565b6000610a5082611234565b9050806001600160a01b0316836001600160a01b03161415610ac35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610adf5750610adf81336108b1565b610b515760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610aba565b610b5b8383611f97565b505050565b610b68611de1565b600e55565b600d5460ff1615610b7d57600080fd5b6004600d54610100900460ff166004811115610b9b57610b9b613603565b14610bb85760405162461bcd60e51b8152600401610aba906133ec565b333214610bd75760405162461bcd60e51b8152600401610aba9061338d565b600082118015610be8575060018211155b610c045760405162461bcd60e51b8152600401610aba90613423565b61022b610c1360de606f6134df565b610c1d91906134df565b82610c2760095490565b610c3191906134df565b1115610c4f5760405162461bcd60e51b8152600401610aba906133c4565b6006546001600160a01b03163314610d0457610c6a81611b7e565b610caf5760405162461bcd60e51b815260206004820152601660248201527521a81d1024b73b30b634b21039b4b3b730ba3ab9329760511b6044820152606401610aba565b610cc18267011c37937e08000061350b565b341015610d045760405162461bcd60e51b815260206004820152601160248201527024b739bab33334b1b4b2b73a1022ba341760791b6044820152606401610aba565b6109793383612005565b6000610d1960095490565b905090565b610d28338261203d565b610d445760405162461bcd60e51b8152600401610aba9061345a565b610b5b8383836120b1565b610d57611de1565b600d5460ff1615610d6757600080fd5b6000600d54610100900460ff166004811115610d8557610d85613603565b14610da25760405162461bcd60e51b8152600401610aba906133ec565b6000610dad60095490565b610db890606f61352a565b9050600081118015610dde5750606f81610dd160095490565b610ddb91906134df565b11155b610e255760405162461bcd60e51b815260206004820152601860248201527727baba1037b3103632b3b2b73230b93c9039bab838363c9760411b6044820152606401610aba565b600a54610e3b906001600160a01b031682612005565b50565b60008281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610eb35750604080518082019091526007546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610ed2906001600160601b03168761350b565b610edc91906134f7565b91519350909150505b9250929050565b610ef4611de1565b600a546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610f41576040519150601f19603f3d011682016040523d82523d6000602084013e610f46565b606091505b5050905080610e3b57600080fd5b610b5b8383836040518060200160405280600081525061147d565b60606000610f7c83611322565b905060008167ffffffffffffffff811115610f9957610f9961362f565b604051908082528060200260200182016040528015610fc2578160200160208202803683370190505b509050600160005b8381108015610ff1575061022b610fe360de606f6134df565b610fed91906134df565b8211155b1561105c57600061100183611234565b9050866001600160a01b0316816001600160a01b03161415611049578284838151811061103057611030613619565b602090810291909101015281611045816135a8565b9250505b82611053816135a8565b93505050610fca565b5090949350505050565b61106e611de1565b600d5460ff161561107e57600080fd5b6002600d54610100900460ff16600481111561109c5761109c613603565b146110b95760405162461bcd60e51b8152600401610aba906133ec565b60006110c460095490565b6110d060de606f6134df565b6110da919061352a565b905060008111801561110a57506110f360de606f6134df565b816110fd60095490565b61110791906134df565b11155b610e255760405162461bcd60e51b8152600401610aba906134a8565b61112e611de1565b600d5460ff161561113e57600080fd5b6004600d54610100900460ff16600481111561115c5761115c613603565b146111795760405162461bcd60e51b8152600401610aba906133ec565b600061118460095490565b61022b61119360de606f6134df565b61119d91906134df565b6111a7919061352a565b90506000811180156111e4575061022b6111c360de606f6134df565b6111cd91906134df565b816111d760095490565b6111e191906134df565b11155b610e255760405162461bcd60e51b8152600401610aba906133c4565b611208611de1565b805161097990600c906020840190612b8a565b61022b61122a60de606f6134df565b61098991906134df565b6000818152600260205260408120546001600160a01b0316806109465760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610aba565b600c80546112a19061356d565b80601f01602080910402602001604051908101604052809291908181526020018280546112cd9061356d565b801561131a5780601f106112ef5761010080835404028352916020019161131a565b820191906000526020600020905b8154815290600101906020018083116112fd57829003601f168201915b505050505081565b60006001600160a01b03821661138c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610aba565b506001600160a01b031660009081526003602052604090205490565b6113b0611de1565b6113ba600061224d565b565b6113c4611de1565b600481111561140a5760405162461bcd60e51b815260206004820152601260248201527121a81d1027baba1037b3103137bab732399760711b6044820152606401610aba565b80600481111561141c5761141c613603565b600d805461ff00191661010083600481111561143a5761143a613603565b021790555050565b61144a611de1565b610b5b600b8383612c0e565b60606001805461099b9061356d565b61097933838361229f565b611478611de1565b601055565b611487338361203d565b6114a35760405162461bcd60e51b8152600401610aba9061345a565b6114af8484848461236e565b50505050565b600d5460ff16156114c557600080fd5b6002600d54610100900460ff1660048111156114e3576114e3613603565b146115005760405162461bcd60e51b8152600401610aba906133ec565b33321461151f5760405162461bcd60e51b8152600401610aba9061338d565b600082118015611530575060018211155b61154c5760405162461bcd60e51b8152600401610aba90613423565b61155860de606f6134df565b8261156260095490565b61156c91906134df565b111561158a5760405162461bcd60e51b8152600401610aba906134a8565b6006546001600160a01b03163314610d04576115a581611b7e565b6115ea5760405162461bcd60e51b815260206004820152601660248201527521a81d1024b73b30b634b21039b4b3b730ba3ab9329760511b6044820152606401610aba565b610cc1826701aa535d3d0c000061350b565b6000818152600260205260409020546060906001600160a01b031661167c5760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526f3732bc34b9ba32b73a103a37b5b2b71760811b6064820152608401610aba565b6000600c805461168b9061356d565b9050116116a75760405180602001604052806000815250610946565b600c6116b2836123a1565b6040516020016116c39291906131c4565b60405160208183030381529060405292915050565b600d5460ff16156116e857600080fd5b6001600d54610100900460ff16600481111561170657611706613603565b146117235760405162461bcd60e51b8152600401610aba906133ec565b3332146117425760405162461bcd60e51b8152600401610aba9061338d565b600083118015611753575060018311155b61176f5760405162461bcd60e51b8152600401610aba90613423565b61177b60de606f6134df565b8361178560095490565b61178f91906134df565b11156117ad5760405162461bcd60e51b8152600401610aba906134a8565b6006546001600160a01b0316331461194257336000908152600f602052604090205460ff161561181f5760405162461bcd60e51b815260206004820152601c60248201527f416464726573732068617320616c726561647920636c61696d65642e000000006044820152606401610aba565b6040516001600160601b03193360601b16602082015260009060340160405160208183030381529060405280519060200120905061189483838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600e54915084905061249f565b6118d15760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b210383937b7b31760911b6044820152606401610aba565b336000908152600f60205260409020805460ff191660011790556118fd846701aa535d3d0c000061350b565b3410156119405760405162461bcd60e51b815260206004820152601160248201527024b739bab33334b1b4b2b73a1022ba341760791b6044820152606401610aba565b505b610b5b3384612005565b600d5460ff161561195c57600080fd5b6003600d54610100900460ff16600481111561197a5761197a613603565b146119975760405162461bcd60e51b8152600401610aba906133ec565b3332146119b65760405162461bcd60e51b8152600401610aba9061338d565b6000831180156119c7575060018311155b6119e35760405162461bcd60e51b8152600401610aba90613423565b61022b6119f260de606f6134df565b6119fc91906134df565b83611a0660095490565b611a1091906134df565b1115611a2e5760405162461bcd60e51b8152600401610aba906133c4565b6006546001600160a01b03163314611942573360009081526011602052604090205460ff1615611aa05760405162461bcd60e51b815260206004820152601c60248201527f416464726573732068617320616c726561647920636c61696d65642e000000006044820152606401610aba565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050611b1583838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601054915084905061249f565b611b525760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b210383937b7b31760911b6044820152606401610aba565b336000908152601160205260409020805460ff191660011790556118fd8467011c37937e08000061350b565b6040805133606090811b6001600160601b03199081166020808501919091523090921b166034830152825160288184030181526048830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a333200000000606884015260848084018290528451808503909101815260a490930190935281519101206000919033611c1182866124b5565b6001600160a01b031614949350505050565b6060600b805461099b9061356d565b611c3a611de1565b6001600160a01b038116611c9f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610aba565b610e3b8161224d565b611cb0611de1565b600d5460ff1615611cc057600080fd5b6000600d54610100900460ff166004811115611cde57611cde613603565b14611cfb5760405162461bcd60e51b8152600401610aba906133ec565b606f81611d0760095490565b611d1191906134df565b1115611d5a5760405162461bcd60e51b815260206004820152601860248201527727baba1037b3103632b3b2b73230b93c9039bab838363c9760411b6044820152606401610aba565b60005b81811015610b5b57611d73600980546001019055565b611daa838383818110611d8857611d88613619565b9050602002016020810190611d9d9190612d9e565b6009546124d9565b6124d9565b80611db4816135a8565b915050611d5d565b60006001600160e01b0319821663152a902d60e11b14806109465750610946826124f3565b6006546001600160a01b031633146113ba5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610aba565b6127106001600160601b0382161115611ea95760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610aba565b6001600160a01b038216611eff5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610aba565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b6000818152600260205260409020546001600160a01b0316610e3b5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610aba565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611fcc82611234565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60005b81811015610b5b5761201e600980546001019055565b61202b83611da560095490565b80612035816135a8565b915050612008565b60008061204983611234565b9050806001600160a01b0316846001600160a01b0316148061209057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806120a95750836001600160a01b0316611c1184610a1e565b949350505050565b826001600160a01b03166120c482611234565b6001600160a01b0316146121285760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610aba565b6001600160a01b03821661218a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610aba565b612195600082611f97565b6001600160a01b03831660009081526003602052604081208054600192906121be90849061352a565b90915550506001600160a01b03821660009081526003602052604081208054600192906121ec9084906134df565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156123015760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610aba565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6123798484846120b1565b61238584848484612543565b6114af5760405162461bcd60e51b8152600401610aba9061333b565b6060816123c55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123ef57806123d9816135a8565b91506123e89050600a836134f7565b91506123c9565b60008167ffffffffffffffff81111561240a5761240a61362f565b6040519080825280601f01601f191660200182016040528015612434576020820181803683370190505b5090505b84156120a95761244960018361352a565b9150612456600a866135c3565b6124619060306134df565b60f81b81838151811061247657612476613619565b60200101906001600160f81b031916908160001a905350612498600a866134f7565b9450612438565b6000826124ac8584612650565b14949350505050565b60008060006124c48585612695565b915091506124d181612702565b509392505050565b6109798282604051806020016040528060008152506128bd565b60006001600160e01b031982166380ac58cd60e01b148061252457506001600160e01b03198216635b5e139f60e01b145b8061094657506301ffc9a760e01b6001600160e01b0319831614610946565b60006001600160a01b0384163b1561264557604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061258790339089908890889060040161327f565b602060405180830381600087803b1580156125a157600080fd5b505af19250505080156125d1575060408051601f3d908101601f191682019092526125ce91810190612fba565b60015b61262b573d8080156125ff576040519150601f19603f3d011682016040523d82523d6000602084013e612604565b606091505b5080516126235760405162461bcd60e51b8152600401610aba9061333b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506120a9565b506001949350505050565b600081815b84518110156124d1576126818286838151811061267457612674613619565b60200260200101516128f0565b91508061268d816135a8565b915050612655565b6000808251604114156126cc5760208301516040840151606085015160001a6126c087828585612922565b94509450505050610ee5565b8251604014156126f657602083015160408401516126eb868383612a0f565b935093505050610ee5565b50600090506002610ee5565b600081600481111561271657612716613603565b141561271f5750565b600181600481111561273357612733613603565b14156127815760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610aba565b600281600481111561279557612795613603565b14156127e35760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610aba565b60038160048111156127f7576127f7613603565b14156128505760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610aba565b600481600481111561286457612864613603565b1415610e3b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610aba565b6128c78383612a48565b6128d46000848484612543565b610b5b5760405162461bcd60e51b8152600401610aba9061333b565b600081831061290c57600082815260208490526040902061291b565b60008381526020839052604090205b9392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156129595750600090506003612a06565b8460ff16601b1415801561297157508460ff16601c14155b156129825750600090506004612a06565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156129d6573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166129ff57600060019250925050612a06565b9150600090505b94509492505050565b6000806001600160ff1b03831681612a2c60ff86901c601b6134df565b9050612a3a87828885612922565b935093505050935093915050565b6001600160a01b038216612a9e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610aba565b6000818152600260205260409020546001600160a01b031615612b035760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610aba565b6001600160a01b0382166000908152600360205260408120805460019290612b2c9084906134df565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612b969061356d565b90600052602060002090601f016020900481019282612bb85760008555612bfe565b82601f10612bd157805160ff1916838001178555612bfe565b82800160010185558215612bfe579182015b82811115612bfe578251825591602001919060010190612be3565b50612c0a929150612c82565b5090565b828054612c1a9061356d565b90600052602060002090601f016020900481019282612c3c5760008555612bfe565b82601f10612c555782800160ff19823516178555612bfe565b82800160010185558215612bfe579182015b82811115612bfe578235825591602001919060010190612c67565b5b80821115612c0a5760008155600101612c83565b600067ffffffffffffffff80841115612cb257612cb261362f565b604051601f8501601f19908116603f01168101908282118183101715612cda57612cda61362f565b81604052809350858152868686011115612cf357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612d2457600080fd5b919050565b60008083601f840112612d3b57600080fd5b50813567ffffffffffffffff811115612d5357600080fd5b6020830191508360208260051b8501011115610ee557600080fd5b80358015158114612d2457600080fd5b600082601f830112612d8f57600080fd5b61291b83833560208501612c97565b600060208284031215612db057600080fd5b61291b82612d0d565b60008060408385031215612dcc57600080fd5b612dd583612d0d565b9150612de360208401612d0d565b90509250929050565b600080600060608486031215612e0157600080fd5b612e0a84612d0d565b9250612e1860208501612d0d565b9150604084013590509250925092565b60008060008060808587031215612e3e57600080fd5b612e4785612d0d565b9350612e5560208601612d0d565b925060408501359150606085013567ffffffffffffffff811115612e7857600080fd5b612e8487828801612d7e565b91505092959194509250565b60008060408385031215612ea357600080fd5b612eac83612d0d565b9150612de360208401612d6e565b60008060408385031215612ecd57600080fd5b612ed683612d0d565b946020939093013593505050565b60008060408385031215612ef757600080fd5b612f0083612d0d565b915060208301356001600160601b0381168114612f1c57600080fd5b809150509250929050565b60008060208385031215612f3a57600080fd5b823567ffffffffffffffff811115612f5157600080fd5b612f5d85828601612d29565b90969095509350505050565b600060208284031215612f7b57600080fd5b61291b82612d6e565b600060208284031215612f9657600080fd5b5035919050565b600060208284031215612faf57600080fd5b813561291b81613645565b600060208284031215612fcc57600080fd5b815161291b81613645565b600060208284031215612fe957600080fd5b813567ffffffffffffffff81111561300057600080fd5b6120a984828501612d7e565b6000806020838503121561301f57600080fd5b823567ffffffffffffffff8082111561303757600080fd5b818501915085601f83011261304b57600080fd5b81358181111561305a57600080fd5b86602082850101111561306c57600080fd5b60209290920196919550909350505050565b60006020828403121561309057600080fd5b813567ffffffffffffffff8111156130a757600080fd5b8201601f810184136130b857600080fd5b6120a984823560208401612c97565b6000806000604084860312156130dc57600080fd5b83359250602084013567ffffffffffffffff8111156130fa57600080fd5b61310686828701612d29565b9497909650939450505050565b6000806040838503121561312657600080fd5b82359150602083013567ffffffffffffffff81111561314457600080fd5b61315085828601612d7e565b9150509250929050565b6000806040838503121561316d57600080fd5b50508035926020909101359150565b60008151808452613194816020860160208601613541565b601f01601f19169290920160200192915050565b600081516131ba818560208601613541565b9290920192915050565b600080845481600182811c9150808316806131e057607f831692505b602080841082141561320057634e487b7160e01b86526022600452602486fd5b818015613214576001811461322557613252565b60ff19861689528489019650613252565b60008b81526020902060005b8681101561324a5781548b820152908501908301613231565b505084890196505b50505050505061327661326582866131a8565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906132b29083018461317c565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156132f4578351835292840192918401916001016132d8565b50909695505050505050565b602081016005831061332257634e487b7160e01b600052602160045260246000fd5b91905290565b60208152600061291b602083018461317c565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526017908201527f43503a205765206c696b65207265616c2075736572732e000000000000000000604082015260600190565b6020808252600e908201526d27baba1037b31039bab838363c9760911b604082015260600190565b6020808252601b908201527f43503a204d696e74696e672073746174757320696e76616c69642e0000000000604082015260600190565b60208082526019908201527f4f7574206f66206d696e7420616d6f756e74206c696d69742e00000000000000604082015260600190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526017908201527f4f7574206f6620677561726469616e20737570706c792e000000000000000000604082015260600190565b600082198211156134f2576134f26135d7565b500190565b600082613506576135066135ed565b500490565b6000816000190483118215151615613525576135256135d7565b500290565b60008282101561353c5761353c6135d7565b500390565b60005b8381101561355c578181015183820152602001613544565b838111156114af5750506000910152565b600181811c9082168061358157607f821691505b602082108114156135a257634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156135bc576135bc6135d7565b5060010190565b6000826135d2576135d26135ed565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610e3b57600080fdfea2646970667358221220473e343cbd2706858b5ae751e34fed8799ff17be4c4bfe1eddaeb833a641c7f664736f6c6343000807003368747470733a2f2f616e696d6167696e652e6d7970696e6174612e636c6f75642f697066732f516d555361644e416d753941776770325441587637756a764c4e42323144386237514551347759335267707441392f68747470733a2f2f616e696d6167696e652e6d7970696e6174612e636c6f75642f697066732f516d596376696a387559396e5a504c46674354357633524362524b483354544242457878464a6951715a4b7a7a79

Deployed Bytecode

0x6080604052600436106102ff5760003560e01c80636352211e11610190578063c477e447116100dc578063dc2a4c5911610095578063e985e9c51161006f578063e985e9c514610896578063f2fde38b146108df578063f5cb572b146108ff578063ff26c1791461091b57600080fd5b8063dc2a4c591461084c578063e28cc2b21461086c578063e8a3d4851461088157600080fd5b8063c477e447146107ad578063c87b56dd146107c0578063d1ee3667146107e0578063d6bb9209146107f3578063d6d62bf714610809578063dc1ca0a11461081c57600080fd5b8063938e3d7b11610149578063a22cb46511610123578063a22cb4651461071d578063aa5fcade1461073d578063b11a77391461075d578063b88d4fde1461078d57600080fd5b8063938e3d7b146106d257806395d89b41146106f2578063999044ef1461070757600080fd5b80636352211e1461062a5780636c0360eb1461064a57806370a082311461065f578063715018a61461067f578063887fee31146106945780638da5cb5b146106b457600080fd5b806329619a211161024f5780634f4a682d1161020857806355f804b3116101e257806355f804b3146105c65780635688f805146105e65780635c975abb146105fb578063616b38db1461061557600080fd5b80634f4a682d14610587578063530bf05f1461059c57806353f6d120146105b157600080fd5b806329619a21146104b25780632a55205a146104c7578063325e98a8146105065780633ccfd60b1461053257806342842e0e1461053a578063438b63001461055a57600080fd5b8063095ea7b3116102bc578063118347de11610296578063118347de1461044e57806318160ddd146104615780631ae198221461047657806323b872dd1461049257600080fd5b8063095ea7b3146103f857806309820aff146104185780630ac43baf1461043857600080fd5b806301ffc9a71461030457806302329a291461033957806304634d8d1461035b57806305297b5d1461037b57806306fdde031461039e578063081812fc146103c0575b600080fd5b34801561031057600080fd5b5061032461031f366004612f9d565b61093b565b60405190151581526020015b60405180910390f35b34801561034557600080fd5b50610359610354366004612f69565b61094c565b005b34801561036757600080fd5b50610359610376366004612ee4565b610967565b34801561038757600080fd5b5061039061097d565b604051908152602001610330565b3480156103aa57600080fd5b506103b361098c565b6040516103309190613328565b3480156103cc57600080fd5b506103e06103db366004612f84565b610a1e565b6040516001600160a01b039091168152602001610330565b34801561040457600080fd5b50610359610413366004612eba565b610a45565b34801561042457600080fd5b50610359610433366004612f84565b610b60565b34801561044457600080fd5b5061039061022b81565b61035961045c366004613113565b610b6d565b34801561046d57600080fd5b50610390610d0e565b34801561048257600080fd5b5061039067011c37937e08000081565b34801561049e57600080fd5b506103596104ad366004612dec565b610d1e565b3480156104be57600080fd5b50610359610d4f565b3480156104d357600080fd5b506104e76104e236600461315a565b610e3e565b604080516001600160a01b039093168352602083019190915201610330565b34801561051257600080fd5b50600d5461052590610100900460ff1681565b6040516103309190613300565b610359610eec565b34801561054657600080fd5b50610359610555366004612dec565b610f54565b34801561056657600080fd5b5061057a610575366004612d9e565b610f6f565b60405161033091906132bc565b34801561059357600080fd5b50610359611066565b3480156105a857600080fd5b50610390606f81565b3480156105bd57600080fd5b50610359611126565b3480156105d257600080fd5b506103596105e136600461307e565b611200565b3480156105f257600080fd5b5061039060de81565b34801561060757600080fd5b50600d546103249060ff1681565b34801561062157600080fd5b5061039061121b565b34801561063657600080fd5b506103e0610645366004612f84565b611234565b34801561065657600080fd5b506103b3611294565b34801561066b57600080fd5b5061039061067a366004612d9e565b611322565b34801561068b57600080fd5b506103596113a8565b3480156106a057600080fd5b506103596106af366004612f84565b6113bc565b3480156106c057600080fd5b506006546001600160a01b03166103e0565b3480156106de57600080fd5b506103596106ed36600461300c565b611442565b3480156106fe57600080fd5b506103b3611456565b34801561071357600080fd5b50610390600e5481565b34801561072957600080fd5b50610359610738366004612e90565b611465565b34801561074957600080fd5b50610359610758366004612f84565b611470565b34801561076957600080fd5b50610324610778366004612d9e565b60116020526000908152604090205460ff1681565b34801561079957600080fd5b506103596107a8366004612e28565b61147d565b6103596107bb366004613113565b6114b5565b3480156107cc57600080fd5b506103b36107db366004612f84565b6115fc565b6103596107ee3660046130c7565b6116d8565b3480156107ff57600080fd5b5061039060105481565b6103596108173660046130c7565b61194c565b34801561082857600080fd5b50610324610837366004612d9e565b600f6020526000908152604090205460ff1681565b34801561085857600080fd5b50610324610867366004612fd7565b611b7e565b34801561087857600080fd5b50610390600181565b34801561088d57600080fd5b506103b3611c23565b3480156108a257600080fd5b506103246108b1366004612db9565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108eb57600080fd5b506103596108fa366004612d9e565b611c32565b34801561090b57600080fd5b506103906701aa535d3d0c000081565b34801561092757600080fd5b50610359610936366004612f27565b611ca8565b600061094682611dbc565b92915050565b610954611de1565b600d805460ff1916911515919091179055565b61096f611de1565b6109798282611e3b565b5050565b61098960de606f6134df565b81565b60606000805461099b9061356d565b80601f01602080910402602001604051908101604052809291908181526020018280546109c79061356d565b8015610a145780601f106109e957610100808354040283529160200191610a14565b820191906000526020600020905b8154815290600101906020018083116109f757829003601f168201915b5050505050905090565b6000610a2982611f38565b506000908152600460205260409020546001600160a01b031690565b6000610a5082611234565b9050806001600160a01b0316836001600160a01b03161415610ac35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610adf5750610adf81336108b1565b610b515760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610aba565b610b5b8383611f97565b505050565b610b68611de1565b600e55565b600d5460ff1615610b7d57600080fd5b6004600d54610100900460ff166004811115610b9b57610b9b613603565b14610bb85760405162461bcd60e51b8152600401610aba906133ec565b333214610bd75760405162461bcd60e51b8152600401610aba9061338d565b600082118015610be8575060018211155b610c045760405162461bcd60e51b8152600401610aba90613423565b61022b610c1360de606f6134df565b610c1d91906134df565b82610c2760095490565b610c3191906134df565b1115610c4f5760405162461bcd60e51b8152600401610aba906133c4565b6006546001600160a01b03163314610d0457610c6a81611b7e565b610caf5760405162461bcd60e51b815260206004820152601660248201527521a81d1024b73b30b634b21039b4b3b730ba3ab9329760511b6044820152606401610aba565b610cc18267011c37937e08000061350b565b341015610d045760405162461bcd60e51b815260206004820152601160248201527024b739bab33334b1b4b2b73a1022ba341760791b6044820152606401610aba565b6109793383612005565b6000610d1960095490565b905090565b610d28338261203d565b610d445760405162461bcd60e51b8152600401610aba9061345a565b610b5b8383836120b1565b610d57611de1565b600d5460ff1615610d6757600080fd5b6000600d54610100900460ff166004811115610d8557610d85613603565b14610da25760405162461bcd60e51b8152600401610aba906133ec565b6000610dad60095490565b610db890606f61352a565b9050600081118015610dde5750606f81610dd160095490565b610ddb91906134df565b11155b610e255760405162461bcd60e51b815260206004820152601860248201527727baba1037b3103632b3b2b73230b93c9039bab838363c9760411b6044820152606401610aba565b600a54610e3b906001600160a01b031682612005565b50565b60008281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610eb35750604080518082019091526007546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610ed2906001600160601b03168761350b565b610edc91906134f7565b91519350909150505b9250929050565b610ef4611de1565b600a546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610f41576040519150601f19603f3d011682016040523d82523d6000602084013e610f46565b606091505b5050905080610e3b57600080fd5b610b5b8383836040518060200160405280600081525061147d565b60606000610f7c83611322565b905060008167ffffffffffffffff811115610f9957610f9961362f565b604051908082528060200260200182016040528015610fc2578160200160208202803683370190505b509050600160005b8381108015610ff1575061022b610fe360de606f6134df565b610fed91906134df565b8211155b1561105c57600061100183611234565b9050866001600160a01b0316816001600160a01b03161415611049578284838151811061103057611030613619565b602090810291909101015281611045816135a8565b9250505b82611053816135a8565b93505050610fca565b5090949350505050565b61106e611de1565b600d5460ff161561107e57600080fd5b6002600d54610100900460ff16600481111561109c5761109c613603565b146110b95760405162461bcd60e51b8152600401610aba906133ec565b60006110c460095490565b6110d060de606f6134df565b6110da919061352a565b905060008111801561110a57506110f360de606f6134df565b816110fd60095490565b61110791906134df565b11155b610e255760405162461bcd60e51b8152600401610aba906134a8565b61112e611de1565b600d5460ff161561113e57600080fd5b6004600d54610100900460ff16600481111561115c5761115c613603565b146111795760405162461bcd60e51b8152600401610aba906133ec565b600061118460095490565b61022b61119360de606f6134df565b61119d91906134df565b6111a7919061352a565b90506000811180156111e4575061022b6111c360de606f6134df565b6111cd91906134df565b816111d760095490565b6111e191906134df565b11155b610e255760405162461bcd60e51b8152600401610aba906133c4565b611208611de1565b805161097990600c906020840190612b8a565b61022b61122a60de606f6134df565b61098991906134df565b6000818152600260205260408120546001600160a01b0316806109465760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610aba565b600c80546112a19061356d565b80601f01602080910402602001604051908101604052809291908181526020018280546112cd9061356d565b801561131a5780601f106112ef5761010080835404028352916020019161131a565b820191906000526020600020905b8154815290600101906020018083116112fd57829003601f168201915b505050505081565b60006001600160a01b03821661138c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610aba565b506001600160a01b031660009081526003602052604090205490565b6113b0611de1565b6113ba600061224d565b565b6113c4611de1565b600481111561140a5760405162461bcd60e51b815260206004820152601260248201527121a81d1027baba1037b3103137bab732399760711b6044820152606401610aba565b80600481111561141c5761141c613603565b600d805461ff00191661010083600481111561143a5761143a613603565b021790555050565b61144a611de1565b610b5b600b8383612c0e565b60606001805461099b9061356d565b61097933838361229f565b611478611de1565b601055565b611487338361203d565b6114a35760405162461bcd60e51b8152600401610aba9061345a565b6114af8484848461236e565b50505050565b600d5460ff16156114c557600080fd5b6002600d54610100900460ff1660048111156114e3576114e3613603565b146115005760405162461bcd60e51b8152600401610aba906133ec565b33321461151f5760405162461bcd60e51b8152600401610aba9061338d565b600082118015611530575060018211155b61154c5760405162461bcd60e51b8152600401610aba90613423565b61155860de606f6134df565b8261156260095490565b61156c91906134df565b111561158a5760405162461bcd60e51b8152600401610aba906134a8565b6006546001600160a01b03163314610d04576115a581611b7e565b6115ea5760405162461bcd60e51b815260206004820152601660248201527521a81d1024b73b30b634b21039b4b3b730ba3ab9329760511b6044820152606401610aba565b610cc1826701aa535d3d0c000061350b565b6000818152600260205260409020546060906001600160a01b031661167c5760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526f3732bc34b9ba32b73a103a37b5b2b71760811b6064820152608401610aba565b6000600c805461168b9061356d565b9050116116a75760405180602001604052806000815250610946565b600c6116b2836123a1565b6040516020016116c39291906131c4565b60405160208183030381529060405292915050565b600d5460ff16156116e857600080fd5b6001600d54610100900460ff16600481111561170657611706613603565b146117235760405162461bcd60e51b8152600401610aba906133ec565b3332146117425760405162461bcd60e51b8152600401610aba9061338d565b600083118015611753575060018311155b61176f5760405162461bcd60e51b8152600401610aba90613423565b61177b60de606f6134df565b8361178560095490565b61178f91906134df565b11156117ad5760405162461bcd60e51b8152600401610aba906134a8565b6006546001600160a01b0316331461194257336000908152600f602052604090205460ff161561181f5760405162461bcd60e51b815260206004820152601c60248201527f416464726573732068617320616c726561647920636c61696d65642e000000006044820152606401610aba565b6040516001600160601b03193360601b16602082015260009060340160405160208183030381529060405280519060200120905061189483838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600e54915084905061249f565b6118d15760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b210383937b7b31760911b6044820152606401610aba565b336000908152600f60205260409020805460ff191660011790556118fd846701aa535d3d0c000061350b565b3410156119405760405162461bcd60e51b815260206004820152601160248201527024b739bab33334b1b4b2b73a1022ba341760791b6044820152606401610aba565b505b610b5b3384612005565b600d5460ff161561195c57600080fd5b6003600d54610100900460ff16600481111561197a5761197a613603565b146119975760405162461bcd60e51b8152600401610aba906133ec565b3332146119b65760405162461bcd60e51b8152600401610aba9061338d565b6000831180156119c7575060018311155b6119e35760405162461bcd60e51b8152600401610aba90613423565b61022b6119f260de606f6134df565b6119fc91906134df565b83611a0660095490565b611a1091906134df565b1115611a2e5760405162461bcd60e51b8152600401610aba906133c4565b6006546001600160a01b03163314611942573360009081526011602052604090205460ff1615611aa05760405162461bcd60e51b815260206004820152601c60248201527f416464726573732068617320616c726561647920636c61696d65642e000000006044820152606401610aba565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050611b1583838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601054915084905061249f565b611b525760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b210383937b7b31760911b6044820152606401610aba565b336000908152601160205260409020805460ff191660011790556118fd8467011c37937e08000061350b565b6040805133606090811b6001600160601b03199081166020808501919091523090921b166034830152825160288184030181526048830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a333200000000606884015260848084018290528451808503909101815260a490930190935281519101206000919033611c1182866124b5565b6001600160a01b031614949350505050565b6060600b805461099b9061356d565b611c3a611de1565b6001600160a01b038116611c9f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610aba565b610e3b8161224d565b611cb0611de1565b600d5460ff1615611cc057600080fd5b6000600d54610100900460ff166004811115611cde57611cde613603565b14611cfb5760405162461bcd60e51b8152600401610aba906133ec565b606f81611d0760095490565b611d1191906134df565b1115611d5a5760405162461bcd60e51b815260206004820152601860248201527727baba1037b3103632b3b2b73230b93c9039bab838363c9760411b6044820152606401610aba565b60005b81811015610b5b57611d73600980546001019055565b611daa838383818110611d8857611d88613619565b9050602002016020810190611d9d9190612d9e565b6009546124d9565b6124d9565b80611db4816135a8565b915050611d5d565b60006001600160e01b0319821663152a902d60e11b14806109465750610946826124f3565b6006546001600160a01b031633146113ba5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610aba565b6127106001600160601b0382161115611ea95760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610aba565b6001600160a01b038216611eff5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610aba565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b6000818152600260205260409020546001600160a01b0316610e3b5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610aba565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611fcc82611234565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60005b81811015610b5b5761201e600980546001019055565b61202b83611da560095490565b80612035816135a8565b915050612008565b60008061204983611234565b9050806001600160a01b0316846001600160a01b0316148061209057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806120a95750836001600160a01b0316611c1184610a1e565b949350505050565b826001600160a01b03166120c482611234565b6001600160a01b0316146121285760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610aba565b6001600160a01b03821661218a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610aba565b612195600082611f97565b6001600160a01b03831660009081526003602052604081208054600192906121be90849061352a565b90915550506001600160a01b03821660009081526003602052604081208054600192906121ec9084906134df565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156123015760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610aba565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6123798484846120b1565b61238584848484612543565b6114af5760405162461bcd60e51b8152600401610aba9061333b565b6060816123c55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123ef57806123d9816135a8565b91506123e89050600a836134f7565b91506123c9565b60008167ffffffffffffffff81111561240a5761240a61362f565b6040519080825280601f01601f191660200182016040528015612434576020820181803683370190505b5090505b84156120a95761244960018361352a565b9150612456600a866135c3565b6124619060306134df565b60f81b81838151811061247657612476613619565b60200101906001600160f81b031916908160001a905350612498600a866134f7565b9450612438565b6000826124ac8584612650565b14949350505050565b60008060006124c48585612695565b915091506124d181612702565b509392505050565b6109798282604051806020016040528060008152506128bd565b60006001600160e01b031982166380ac58cd60e01b148061252457506001600160e01b03198216635b5e139f60e01b145b8061094657506301ffc9a760e01b6001600160e01b0319831614610946565b60006001600160a01b0384163b1561264557604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061258790339089908890889060040161327f565b602060405180830381600087803b1580156125a157600080fd5b505af19250505080156125d1575060408051601f3d908101601f191682019092526125ce91810190612fba565b60015b61262b573d8080156125ff576040519150601f19603f3d011682016040523d82523d6000602084013e612604565b606091505b5080516126235760405162461bcd60e51b8152600401610aba9061333b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506120a9565b506001949350505050565b600081815b84518110156124d1576126818286838151811061267457612674613619565b60200260200101516128f0565b91508061268d816135a8565b915050612655565b6000808251604114156126cc5760208301516040840151606085015160001a6126c087828585612922565b94509450505050610ee5565b8251604014156126f657602083015160408401516126eb868383612a0f565b935093505050610ee5565b50600090506002610ee5565b600081600481111561271657612716613603565b141561271f5750565b600181600481111561273357612733613603565b14156127815760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610aba565b600281600481111561279557612795613603565b14156127e35760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610aba565b60038160048111156127f7576127f7613603565b14156128505760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610aba565b600481600481111561286457612864613603565b1415610e3b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610aba565b6128c78383612a48565b6128d46000848484612543565b610b5b5760405162461bcd60e51b8152600401610aba9061333b565b600081831061290c57600082815260208490526040902061291b565b60008381526020839052604090205b9392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156129595750600090506003612a06565b8460ff16601b1415801561297157508460ff16601c14155b156129825750600090506004612a06565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156129d6573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166129ff57600060019250925050612a06565b9150600090505b94509492505050565b6000806001600160ff1b03831681612a2c60ff86901c601b6134df565b9050612a3a87828885612922565b935093505050935093915050565b6001600160a01b038216612a9e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610aba565b6000818152600260205260409020546001600160a01b031615612b035760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610aba565b6001600160a01b0382166000908152600360205260408120805460019290612b2c9084906134df565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612b969061356d565b90600052602060002090601f016020900481019282612bb85760008555612bfe565b82601f10612bd157805160ff1916838001178555612bfe565b82800160010185558215612bfe579182015b82811115612bfe578251825591602001919060010190612be3565b50612c0a929150612c82565b5090565b828054612c1a9061356d565b90600052602060002090601f016020900481019282612c3c5760008555612bfe565b82601f10612c555782800160ff19823516178555612bfe565b82800160010185558215612bfe579182015b82811115612bfe578235825591602001919060010190612c67565b5b80821115612c0a5760008155600101612c83565b600067ffffffffffffffff80841115612cb257612cb261362f565b604051601f8501601f19908116603f01168101908282118183101715612cda57612cda61362f565b81604052809350858152868686011115612cf357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612d2457600080fd5b919050565b60008083601f840112612d3b57600080fd5b50813567ffffffffffffffff811115612d5357600080fd5b6020830191508360208260051b8501011115610ee557600080fd5b80358015158114612d2457600080fd5b600082601f830112612d8f57600080fd5b61291b83833560208501612c97565b600060208284031215612db057600080fd5b61291b82612d0d565b60008060408385031215612dcc57600080fd5b612dd583612d0d565b9150612de360208401612d0d565b90509250929050565b600080600060608486031215612e0157600080fd5b612e0a84612d0d565b9250612e1860208501612d0d565b9150604084013590509250925092565b60008060008060808587031215612e3e57600080fd5b612e4785612d0d565b9350612e5560208601612d0d565b925060408501359150606085013567ffffffffffffffff811115612e7857600080fd5b612e8487828801612d7e565b91505092959194509250565b60008060408385031215612ea357600080fd5b612eac83612d0d565b9150612de360208401612d6e565b60008060408385031215612ecd57600080fd5b612ed683612d0d565b946020939093013593505050565b60008060408385031215612ef757600080fd5b612f0083612d0d565b915060208301356001600160601b0381168114612f1c57600080fd5b809150509250929050565b60008060208385031215612f3a57600080fd5b823567ffffffffffffffff811115612f5157600080fd5b612f5d85828601612d29565b90969095509350505050565b600060208284031215612f7b57600080fd5b61291b82612d6e565b600060208284031215612f9657600080fd5b5035919050565b600060208284031215612faf57600080fd5b813561291b81613645565b600060208284031215612fcc57600080fd5b815161291b81613645565b600060208284031215612fe957600080fd5b813567ffffffffffffffff81111561300057600080fd5b6120a984828501612d7e565b6000806020838503121561301f57600080fd5b823567ffffffffffffffff8082111561303757600080fd5b818501915085601f83011261304b57600080fd5b81358181111561305a57600080fd5b86602082850101111561306c57600080fd5b60209290920196919550909350505050565b60006020828403121561309057600080fd5b813567ffffffffffffffff8111156130a757600080fd5b8201601f810184136130b857600080fd5b6120a984823560208401612c97565b6000806000604084860312156130dc57600080fd5b83359250602084013567ffffffffffffffff8111156130fa57600080fd5b61310686828701612d29565b9497909650939450505050565b6000806040838503121561312657600080fd5b82359150602083013567ffffffffffffffff81111561314457600080fd5b61315085828601612d7e565b9150509250929050565b6000806040838503121561316d57600080fd5b50508035926020909101359150565b60008151808452613194816020860160208601613541565b601f01601f19169290920160200192915050565b600081516131ba818560208601613541565b9290920192915050565b600080845481600182811c9150808316806131e057607f831692505b602080841082141561320057634e487b7160e01b86526022600452602486fd5b818015613214576001811461322557613252565b60ff19861689528489019650613252565b60008b81526020902060005b8681101561324a5781548b820152908501908301613231565b505084890196505b50505050505061327661326582866131a8565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906132b29083018461317c565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156132f4578351835292840192918401916001016132d8565b50909695505050505050565b602081016005831061332257634e487b7160e01b600052602160045260246000fd5b91905290565b60208152600061291b602083018461317c565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526017908201527f43503a205765206c696b65207265616c2075736572732e000000000000000000604082015260600190565b6020808252600e908201526d27baba1037b31039bab838363c9760911b604082015260600190565b6020808252601b908201527f43503a204d696e74696e672073746174757320696e76616c69642e0000000000604082015260600190565b60208082526019908201527f4f7574206f66206d696e7420616d6f756e74206c696d69742e00000000000000604082015260600190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526017908201527f4f7574206f6620677561726469616e20737570706c792e000000000000000000604082015260600190565b600082198211156134f2576134f26135d7565b500190565b600082613506576135066135ed565b500490565b6000816000190483118215151615613525576135256135d7565b500290565b60008282101561353c5761353c6135d7565b500390565b60005b8381101561355c578181015183820152602001613544565b838111156114af5750506000910152565b600181811c9082168061358157607f821691505b602082108114156135a257634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156135bc576135bc6135d7565b5060010190565b6000826135d2576135d26135ed565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610e3b57600080fdfea2646970667358221220473e343cbd2706858b5ae751e34fed8799ff17be4c4bfe1eddaeb833a641c7f664736f6c63430008070033

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.