ETH Price: $3,325.16 (-2.63%)

Token

Cold Blooded Creepz (CBC)
 

Overview

Max Total Supply

11,111 CBC

Holders

501

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
2 CBC
0xA8f056bF55FA15f326759BDED5439583fbA304C9
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

P2E NFT - Invade Earth, claim $loomi & dodge enemies!

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ColdBloodedCreepz

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : ColdBloodedCreepz.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "../utils/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.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 ColdBloodedCreepz is Context, ERC721Enumerable, VRFConsumerBase, Ownable, ReentrancyGuard  {
  using SafeMath for uint256;
  using Strings for uint256;
  using ECDSA for bytes32;

  // currentSupply
  uint256 private currentSupply;

  // Provenance hash
  string public PROVENANCE_HASH;

  // Base URI
  string private _creepzBaseURI;

  // Starting Index
  uint256 public startingIndex;

  // Max number of NFTs
  uint256 public constant MAX_SUPPLY = 11111;
  uint256 public constant MAX_PER_TRANSACTION = 50;

  bool public saleIsActive;
  bool public signatureClaimIsActive;
  bool public metadataRevealed;
  bool public metadataFinalised;

  // Royalty info
  address public signerAddress;
  address public royaltyAddress;
  uint256 public ROYALTY_SIZE = 750;
  uint256 public ROYALTY_DENOMINATOR = 10000;
  mapping(uint256 => address) private _royaltyReceivers;

  // Mint pass contracts
  IERC1155 public FloorXCreepz;
  IERC1155 public InvasionPass;

  // Stores the number of minted tokens through mintpasses
  mapping(address => mapping(address => uint256)) public _mintPassesUsed;
  mapping(address => uint256) public _usedNonces;
  

  bytes32 internal keyHash;
  uint256 internal fee;

  event TokensMinted(
    address indexed mintedBy,
    uint256 indexed tokensNumber
  );

  event startingIndexFinalized(
    uint256 indexed startingIndex
  );

  event baseUriUpdated(
    string oldBaseUri,
    string newBaseUri
  );

  constructor(address _royaltyAddress, address _signerAddress, address _fxc, address _invasionPass, string memory _baseURI)
  ERC721("Cold Blooded Creepz", "CBC")
  VRFConsumerBase(
    0xf0d54349aDdcf704F77AE15b96510dEA15cb7952, // VRF Coordinator
    0x514910771AF9Ca656af840dff83E8264EcF986CA // LINK Token
  )
   {
    royaltyAddress = _royaltyAddress;
    signerAddress = _signerAddress;

    FloorXCreepz = IERC1155(_fxc);
    InvasionPass = IERC1155(_invasionPass);

    keyHash = 0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445;
    fee = 2 * 10 ** 18;

    _creepzBaseURI = _baseURI;
  }

  function mintPassPurchase(address _collectionAddress, uint256 tokensToMint) public nonReentrant {
    require(
      _collectionAddress == address(FloorXCreepz)
      || _collectionAddress == address(InvasionPass),
      "Unknown address provided"
    );
    if (_msgSender() != owner()) require(saleIsActive, "The mint has not started yet");
    require(tokensToMint <= MAX_PER_TRANSACTION, "You can mint max 50 tokens per transaction");
    require(totalSupply().add(tokensToMint) <= MAX_SUPPLY, "Mint more creepz that allowed");
    
    uint256 passesLeft = IERC1155(_collectionAddress).balanceOf(_msgSender(), 0).sub(_mintPassesUsed[_collectionAddress][_msgSender()]);
    require(tokensToMint <= passesLeft, "Not enough passes");

    _mintPassesUsed[_collectionAddress][_msgSender()] += tokensToMint;

    for(uint256 i = 0; i < tokensToMint; i++) {
      _safeMint(_msgSender(), totalSupply());
    }

    emit TokensMinted(_msgSender(), tokensToMint);
  }


  function signatureClaim(uint256 tokensToMint, uint256 nonce, bytes calldata signature) public nonReentrant {
    if (_msgSender() != owner()) require(signatureClaimIsActive, "The mint has not started yet");
    require(tokensToMint <= MAX_PER_TRANSACTION, "You can mint max 50 tokens per transaction");
    require(totalSupply().add(tokensToMint) <= MAX_SUPPLY, "Mint more creepz that allowed");

    require(_validateSignature(signature, tokensToMint, nonce, _msgSender()), "Wrong data passed into the contract");
    require(_usedNonces[_msgSender()] < nonce, "Already claimed");
    
    _usedNonces[_msgSender()] = nonce;
    for(uint256 i = 0; i < tokensToMint; i++) {
      _safeMint(_msgSender(), totalSupply());
    }

    emit TokensMinted(_msgSender(), tokensToMint);
  }

  function _validateSignature(bytes calldata signature, uint256 tokensToMint, uint256 nonce, address caller) internal view returns (bool) {
      bytes32 dataHash = keccak256(abi.encodePacked(tokensToMint,nonce,caller));
      bytes32 message = ECDSA.toEthSignedMessageHash(dataHash);

      address receivedAddress = ECDSA.recover(message, signature);
      return (receivedAddress != address(0) && receivedAddress == signerAddress);
    }

  function emergencyMint(uint256 tokensToMint) public onlyOwner {
    require(totalSupply().add(tokensToMint) <= MAX_SUPPLY, "Mint more creepz that allowed");
    
    for(uint256 i = 0; i < tokensToMint; i++) {
      _safeMint(_msgSender(), totalSupply());
    }

    emit TokensMinted(_msgSender(), tokensToMint);
  }

    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) {
      uint256 amount = _salePrice.mul(ROYALTY_SIZE).div(ROYALTY_DENOMINATOR);
      address royaltyReceiver = _royaltyReceivers[_tokenId] != address(0) ? _royaltyReceivers[_tokenId] : royaltyAddress;
      return (royaltyReceiver, amount);
    }

    function addRoyaltyReceiverForTokenId(address receiver, uint256 tokenId) public onlyOwner {
      _royaltyReceivers[tokenId] = receiver;
    }

    function updateSaleStatus(bool status) public onlyOwner {
      saleIsActive = status;
    }

    function updateSignatureClaimStatus(bool status) public onlyOwner {
      signatureClaimIsActive = status;
    }

    function setProvenanceHash(string memory provenanceHash) public onlyOwner {
      require(bytes(PROVENANCE_HASH).length == 0, "Provenance hash has already been set");
      PROVENANCE_HASH = provenanceHash;
    }

    function setBaseURI(string memory newBaseURI) public onlyOwner {
      require(!metadataFinalised, "Metadata already revealed");

      string memory currentURI = _creepzBaseURI;
      _creepzBaseURI = newBaseURI;
      emit baseUriUpdated(currentURI, newBaseURI);
    }

    function finalizeStartingIndex() public onlyOwner returns (bytes32 requestId) {
      require(startingIndex == 0, 'startingIndex already set');

      require(LINK.balanceOf(address(this)) >= fee, "Not enough LINK - fill contract with faucet");
      return requestRandomness(keyHash, fee);
    }

    /**
     * Callback function used by VRF Coordinator
     */
    function fulfillRandomness(bytes32, uint256 randomness) internal override {
        startingIndex = (randomness % MAX_SUPPLY);
        emit startingIndexFinalized(startingIndex);
    }

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

      if (!metadataRevealed) return _creepzBaseURI;
      return string(abi.encodePacked(_creepzBaseURI, tokenId.toString()));
    }

    function revealMetadata() public onlyOwner {
      require(!metadataRevealed, "Metadata already revealed");
      metadataRevealed = true;
    }

    function finalizeMetadata() public onlyOwner {
      require(!metadataFinalised, "Metadata already finalised");
      metadataFinalised = true;
    }

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

File 2 of 19 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

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

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account but rips out the core of the gas-wasting processing that comes from OpenZeppelin.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

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

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) {
        require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds");

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

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

File 3 of 19 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 4 of 19 : VRFConsumerBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constuctor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator, _link) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.)
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBase expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomness the VRF output
   */
  function fulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    internal
    virtual;

  /**
   * @dev In order to keep backwards compatibility we have kept the user
   * seed field around. We remove the use of it because given that the blockhash
   * enters later, it overrides whatever randomness the used seed provides.
   * Given that it adds no security, and can easily lead to misunderstandings,
   * we have removed it from usage and can now provide a simpler API.
   */
  uint256 constant private USER_SEED_PLACEHOLDER = 0;

  /**
   * @notice requestRandomness initiates a request for VRF output given _seed
   *
   * @dev The fulfillRandomness method receives the output, once it's provided
   * @dev by the Oracle, and verified by the vrfCoordinator.
   *
   * @dev The _keyHash must already be registered with the VRFCoordinator, and
   * @dev the _fee must exceed the fee specified during registration of the
   * @dev _keyHash.
   *
   * @dev The _seed parameter is vestigial, and is kept only for API
   * @dev compatibility with older versions. It can't *hurt* to mix in some of
   * @dev your own randomness, here, but it's not necessary because the VRF
   * @dev oracle will mix the hash of the block containing your request into the
   * @dev VRF seed it ultimately uses.
   *
   * @param _keyHash ID of public key against which randomness is generated
   * @param _fee The amount of LINK to send with the request
   *
   * @return requestId unique ID for this request
   *
   * @dev The returned requestId can be used to distinguish responses to
   * @dev concurrent requests. It is passed as the first argument to
   * @dev fulfillRandomness.
   */
  function requestRandomness(
    bytes32 _keyHash,
    uint256 _fee
  )
    internal
    returns (
      bytes32 requestId
    )
  {
    LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER));
    // This is the seed passed to VRFCoordinator. The oracle will mix this with
    // the hash of the block containing this request to obtain the seed/input
    // which is finally passed to the VRF cryptographic machinery.
    uint256 vRFSeed  = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]);
    // nonces[_keyHash] must stay in sync with
    // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above
    // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest).
    // This provides protection against the user repeating their input seed,
    // which would result in a predictable/duplicate output, if multiple such
    // requests appeared in the same block.
    nonces[_keyHash] = nonces[_keyHash] + 1;
    return makeRequestId(_keyHash, vRFSeed);
  }

  LinkTokenInterface immutable internal LINK;
  address immutable private vrfCoordinator;

  // Nonces for each VRF key from which randomness has been requested.
  //
  // Must stay in sync with VRFCoordinator[_keyHash][this]
  mapping(bytes32 /* keyHash */ => uint256 /* nonce */) private nonces;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   * @param _link address of LINK token contract
   *
   * @dev https://docs.chain.link/docs/link-token-contracts
   */
  constructor(
    address _vrfCoordinator,
    address _link
  ) {
    vrfCoordinator = _vrfCoordinator;
    LINK = LinkTokenInterface(_link);
  }

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    external
  {
    require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill");
    fulfillRandomness(requestId, randomness);
  }
}

File 5 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

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

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

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

File 6 of 19 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 7 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 8 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 9 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 10 of 19 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 11 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

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

library Address {
    function isContract(address account) internal view returns (bool) {
        uint size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }
}

abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;
    
    string private _name;
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

    mapping(uint256 => address) private _tokenApprovals;
    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 (uint) 
    {
        require(owner != address(0), "ERC721: balance query for the zero address");

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

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

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

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

    /**
     * @dev See {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 owner nor approved for all"
        );

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(address(0), to, tokenId);
        _owners.push(to);

        emit Transfer(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);
        _owners[tokenId] = address(0);

        emit Transfer(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 of token that is not own"
        );
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        emit Transfer(from, to, tokenId);
    }

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

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

File 12 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 13 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

File 14 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 15 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 16 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 17 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 18 of 19 : LinkTokenInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface LinkTokenInterface {

  function allowance(
    address owner,
    address spender
  )
    external
    view
    returns (
      uint256 remaining
    );

  function approve(
    address spender,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function balanceOf(
    address owner
  )
    external
    view
    returns (
      uint256 balance
    );

  function decimals()
    external
    view
    returns (
      uint8 decimalPlaces
    );

  function decreaseApproval(
    address spender,
    uint256 addedValue
  )
    external
    returns (
      bool success
    );

  function increaseApproval(
    address spender,
    uint256 subtractedValue
  ) external;

  function name()
    external
    view
    returns (
      string memory tokenName
    );

  function symbol()
    external
    view
    returns (
      string memory tokenSymbol
    );

  function totalSupply()
    external
    view
    returns (
      uint256 totalTokensIssued
    );

  function transfer(
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function transferAndCall(
    address to,
    uint256 value,
    bytes calldata data
  )
    external
    returns (
      bool success
    );

  function transferFrom(
    address from,
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

}

File 19 of 19 : VRFRequestIDBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract VRFRequestIDBase {

  /**
   * @notice returns the seed which is actually input to the VRF coordinator
   *
   * @dev To prevent repetition of VRF output due to repetition of the
   * @dev user-supplied seed, that seed is combined in a hash with the
   * @dev user-specific nonce, and the address of the consuming contract. The
   * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in
   * @dev the final seed, but the nonce does protect against repetition in
   * @dev requests which are included in a single block.
   *
   * @param _userSeed VRF seed input provided by user
   * @param _requester Address of the requesting contract
   * @param _nonce User-specific nonce at the time of the request
   */
  function makeVRFInputSeed(
    bytes32 _keyHash,
    uint256 _userSeed,
    address _requester,
    uint256 _nonce
  )
    internal
    pure
    returns (
      uint256
    )
  {
    return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce)));
  }

  /**
   * @notice Returns the id for this request
   * @param _keyHash The serviceAgreement ID to be used for this request
   * @param _vRFInputSeed The seed to be passed directly to the VRF
   * @return The id for this request
   *
   * @dev Note that _vRFInputSeed is not the seed passed by the consuming
   * @dev contract, but the one generated by makeVRFInputSeed
   */
  function makeRequestId(
    bytes32 _keyHash,
    uint256 _vRFInputSeed
  )
    internal
    pure
    returns (
      bytes32
    )
  {
    return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
  }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_royaltyAddress","type":"address"},{"internalType":"address","name":"_signerAddress","type":"address"},{"internalType":"address","name":"_fxc","type":"address"},{"internalType":"address","name":"_invasionPass","type":"address"},{"internalType":"string","name":"_baseURI","type":"string"}],"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":"mintedBy","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokensNumber","type":"uint256"}],"name":"TokensMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"oldBaseUri","type":"string"},{"indexed":false,"internalType":"string","name":"newBaseUri","type":"string"}],"name":"baseUriUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"startingIndex","type":"uint256"}],"name":"startingIndexFinalized","type":"event"},{"inputs":[],"name":"FloorXCreepz","outputs":[{"internalType":"contract IERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"InvasionPass","outputs":[{"internalType":"contract IERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_TRANSACTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"_mintPassesUsed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_usedNonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"addRoyaltyReceiverForTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensToMint","type":"uint256"}],"name":"emergencyMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalizeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalizeStartingIndex","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataFinalised","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_collectionAddress","type":"address"},{"internalType":"uint256","name":"tokensToMint","type":"uint256"}],"name":"mintPassPurchase","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":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensToMint","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"signatureClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signatureClaimIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"bool","name":"status","type":"bool"}],"name":"updateSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"updateSignatureClaimStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526102ee600e55612710600f553480156200001d57600080fd5b50604051620037db380380620037db8339810160408190526200004091620002d7565b604080518082018252601381527f436f6c6420426c6f6f6465642043726565707a0000000000000000000000000060208083019182528351808501909452600384526243424360e81b90840152815173f0d54349addcf704f77ae15b96510dea15cb79529373514910771af9ca656af840dff83e8264ecf986ca93929091620000cc9160009162000214565b508051620000e290600190602084019062000214565b5050506001600160601b0319606092831b811660a052911b16608052620001106200010a3390565b620001c2565b6001600755600d80546001600160a01b03199081166001600160a01b0388811691909117909255600c8054600160201b600160c01b03191664010000000088851602179055601180548216868416179055601280549091169184169190911790557faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445601555671bc16d674ec800006016558051620001b690600a90602084019062000214565b50505050505062000454565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002229062000401565b90600052602060002090601f01602090048101928262000246576000855562000291565b82601f106200026157805160ff191683800117855562000291565b8280016001018555821562000291579182015b828111156200029157825182559160200191906001019062000274565b506200029f929150620002a3565b5090565b5b808211156200029f5760008155600101620002a4565b80516001600160a01b0381168114620002d257600080fd5b919050565b600080600080600060a08688031215620002f057600080fd5b620002fb86620002ba565b945060206200030c818801620002ba565b94506200031c60408801620002ba565b93506200032c60608801620002ba565b60808801519093506001600160401b03808211156200034a57600080fd5b818901915089601f8301126200035f57600080fd5b8151818111156200037457620003746200043e565b604051601f8201601f19908116603f011681019083821181831017156200039f576200039f6200043e565b816040528281528c86848701011115620003b857600080fd5b600093505b82841015620003dc5784840186015181850187015292850192620003bd565b82841115620003ee5760008684830101525b8096505050505050509295509295909350565b600181811c908216806200041657607f821691505b602082108114156200043857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c61334d6200048e600039600081816113c601526121a40152600081816112320152612175015261334d6000f3fe608060405234801561001057600080fd5b50600436106102bb5760003560e01c806374df39c911610182578063c87b56dd116100e9578063e985e9c5116100a2578063f2fde38b1161007c578063f2fde38b1461064e578063f4a560a514610661578063ff1b655614610669578063ffcc66dc1461067157600080fd5b8063e985e9c5146105f2578063eb8d24441461062e578063f0cb639b1461063b57600080fd5b8063c87b56dd1461059f578063cb14eb87146105b2578063cb774d47146105ba578063cd6a3ea5146105c3578063dcc7ba24146105d6578063df173dba146105e957600080fd5b806394985ddd1161013b57806394985ddd1461052b57806395d89b411461053e578063a22cb46514610546578063ad2f852a14610559578063afd0f7691461056c578063b88d4fde1461058c57600080fd5b806374df39c9146104b857806377d02d9a146104c05780637c86bcb8146104eb5780637fcf6e0b146104ff5780638da5cb5b146105125780639182a9df1461052357600080fd5b80632a55205a1161022657806355f804b3116101df57806355f804b3146104495780635b7633d01461045c5780636352211e1461047757806366b5543e1461048a57806370a082311461049d578063715018a6146104b057600080fd5b80632a55205a146103cd5780632f745c59146103ff57806332cb6b0c146104125780633ccfd60b1461041b57806342842e0e146104235780634f6ccce71461043657600080fd5b80630a088949116102785780630a088949146103675780630a3a7ebc1461037a578063109695231461038c57806318160ddd1461039f5780632137924a146103a757806323b872dd146103ba57600080fd5b806301ffc9a7146102c057806306fdde03146102e8578063081812fc146102fd578063095ea7b3146103285780630969dc621461033d578063099becfb14610350575b600080fd5b6102d36102ce366004612d29565b610684565b60405190151581526020015b60405180910390f35b6102f06106af565b6040516102df9190612fb1565b61031061030b366004612dac565b610741565b6040516001600160a01b0390911681526020016102df565b61033b610336366004612ca3565b6107ce565b005b61033b61034b366004612ccd565b6108e4565b610359600e5481565b6040519081526020016102df565b61033b610375366004612ccd565b610928565b600c546102d390610100900460ff1681565b61033b61039a366004612d63565b610965565b600254610359565b601254610310906001600160a01b031681565b61033b6103c8366004612bb4565b610a0e565b6103e06103db366004612d07565b610a3f565b604080516001600160a01b0390931683526020830191909152016102df565b61035961040d366004612ca3565b610abd565b610359612b6781565b61033b610b70565b61033b610431366004612bb4565b610be5565b610359610444366004612dac565b610c00565b61033b610457366004612d63565b610c6d565b600c546103109064010000000090046001600160a01b031681565b610310610485366004612dac565b610dcf565b61033b610498366004612dde565b610e5b565b6103596104ab366004612b66565b611099565b61033b611167565b61035961119d565b6103596104ce366004612b81565b601360209081526000928352604080842090915290825290205481565b600c546102d3906301000000900460ff1681565b601154610310906001600160a01b031681565b6006546001600160a01b0316610310565b61033b611329565b61033b610539366004612d07565b6113bb565b6102f061143d565b61033b610554366004612c6c565b61144c565b600d54610310906001600160a01b031681565b61035961057a366004612b66565b60146020526000908152604090205481565b61033b61059a366004612bf0565b611511565b6102f06105ad366004612dac565b611549565b610359603281565b610359600b5481565b61033b6105d1366004612ca3565b61168c565b600c546102d39062010000900460ff1681565b610359600f5481565b6102d3610600366004612b81565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b600c546102d39060ff1681565b61033b610649366004612ca3565b6116e4565b61033b61065c366004612b66565b6119f5565b61033b611a90565b6102f0611b29565b61033b61067f366004612dac565b611bb7565b60006001600160e01b0319821663780e9d6360e01b14806106a957506106a982611c66565b92915050565b6060600080546106be9061321b565b80601f01602080910402602001604051908101604052809291908181526020018280546106ea9061321b565b80156107375780601f1061070c57610100808354040283529160200191610737565b820191906000526020600020905b81548152906001019060200180831161071a57829003601f168201915b5050505050905090565b600061074c82611cb6565b6107b25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b60006107d982610dcf565b9050806001600160a01b0316836001600160a01b031614156108475760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107a9565b336001600160a01b038216148061086357506108638133610600565b6108d55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107a9565b6108df8383611d00565b505050565b6006546001600160a01b0316331461090e5760405162461bcd60e51b81526004016107a9906130d0565b600c80549115156101000261ff0019909216919091179055565b6006546001600160a01b031633146109525760405162461bcd60e51b81526004016107a9906130d0565b600c805460ff1916911515919091179055565b6006546001600160a01b0316331461098f5760405162461bcd60e51b81526004016107a9906130d0565b6009805461099c9061321b565b1590506109f75760405162461bcd60e51b8152602060048201526024808201527f50726f76656e616e636520686173682068617320616c7265616479206265656e604482015263081cd95d60e21b60648201526084016107a9565b8051610a0a906009906020840190612a44565b5050565b610a183382611d6e565b610a345760405162461bcd60e51b81526004016107a990613105565b6108df838383611e58565b6000806000610a65600f54610a5f600e5487611fae90919063ffffffff16565b90611fc1565b600086815260106020526040812054919250906001600160a01b0316610a9657600d546001600160a01b0316610aaf565b6000868152601060205260409020546001600160a01b03165b9350909150505b9250929050565b6000610ac883611099565b8210610ae65760405162461bcd60e51b81526004016107a990613033565b6000805b600254811015610b575760028181548110610b0757610b076132c7565b6000918252602090912001546001600160a01b0386811691161415610b455783821415610b375791506106a99050565b81610b4181613256565b9250505b80610b4f81613256565b915050610aea565b5060405162461bcd60e51b81526004016107a990613033565b6006546001600160a01b03163314610b9a5760405162461bcd60e51b81526004016107a9906130d0565b47610bad6006546001600160a01b031690565b6001600160a01b03166108fc829081150290604051600060405180830381858888f19350505050158015610a0a573d6000803e3d6000fd5b6108df83838360405180602001604052806000815250611511565b6002546000908210610c695760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107a9565b5090565b6006546001600160a01b03163314610c975760405162461bcd60e51b81526004016107a9906130d0565b600c546301000000900460ff1615610ced5760405162461bcd60e51b815260206004820152601960248201527813595d1859185d1848185b1c9958591e481c995d99585b1959603a1b60448201526064016107a9565b6000600a8054610cfc9061321b565b80601f0160208091040260200160405190810160405280929190818152602001828054610d289061321b565b8015610d755780601f10610d4a57610100808354040283529160200191610d75565b820191906000526020600020905b815481529060010190602001808311610d5857829003601f168201915b50508551939450610d9193600a93506020870192509050612a44565b507f9f02bf4cb60375a0a74d238c76d002df33d30d2b85e9e677f03455a22d96c14d8183604051610dc3929190612fc4565b60405180910390a15050565b60008060028381548110610de557610de56132c7565b6000918252602090912001546001600160a01b03169050806106a95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107a9565b60026007541415610eae5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107a9565b60026007556006546001600160a01b03163314610f1c57600c54610100900460ff16610f1c5760405162461bcd60e51b815260206004820152601c60248201527f546865206d696e7420686173206e6f742073746172746564207965740000000060448201526064016107a9565b6032841115610f3d5760405162461bcd60e51b81526004016107a990612fe9565b612b67610f5385610f4d60025490565b90611fcd565b1115610f715760405162461bcd60e51b81526004016107a990613156565b610f7e8282868633611fd9565b610fd65760405162461bcd60e51b815260206004820152602360248201527f57726f6e6720646174612070617373656420696e746f2074686520636f6e74726044820152621858dd60ea1b60648201526084016107a9565b3360009081526014602052604090205483116110265760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016107a9565b3360009081526014602052604081208490555b848110156110605761104e335b600254612105565b8061105881613256565b915050611039565b50604051849033907f3f2c9d57c068687834f0de942a9babb9e5acab57d516d3480a3c16ee165a427390600090a3505060016007555050565b60006001600160a01b0382166111045760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107a9565b6000805b6002548110156111605760028181548110611125576111256132c7565b6000918252602090912001546001600160a01b03858116911614156111505761114d82613256565b91505b61115981613256565b9050611108565b5092915050565b6006546001600160a01b031633146111915760405162461bcd60e51b81526004016107a9906130d0565b61119b600061211f565b565b6006546000906001600160a01b031633146111ca5760405162461bcd60e51b81526004016107a9906130d0565b600b541561121a5760405162461bcd60e51b815260206004820152601960248201527f7374617274696e67496e64657820616c7265616479207365740000000000000060448201526064016107a9565b6016546040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561127c57600080fd5b505afa158015611290573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b49190612dc5565b10156113165760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060448201526a1dda5d1a0819985d58d95d60aa1b60648201526084016107a9565b611324601554601654612171565b905090565b6006546001600160a01b031633146113535760405162461bcd60e51b81526004016107a9906130d0565b600c5462010000900460ff16156113a85760405162461bcd60e51b815260206004820152601960248201527813595d1859185d1848185b1c9958591e481c995d99585b1959603a1b60448201526064016107a9565b600c805462ff0000191662010000179055565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114335760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c0060448201526064016107a9565b610a0a82826122fc565b6060600180546106be9061321b565b6001600160a01b0382163314156114a55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107a9565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61151b3383611d6e565b6115375760405162461bcd60e51b81526004016107a990613105565b6115438484848461233a565b50505050565b606061155482611cb6565b6115b85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107a9565b600c5462010000900460ff1661165a57600a80546115d59061321b565b80601f01602080910402602001604051908101604052809291908181526020018280546116019061321b565b801561164e5780601f106116235761010080835404028352916020019161164e565b820191906000526020600020905b81548152906001019060200180831161163157829003601f168201915b50505050509050919050565b600a6116658361236d565b604051602001611676929190612ea6565b6040516020818303038152906040529050919050565b6006546001600160a01b031633146116b65760405162461bcd60e51b81526004016107a9906130d0565b600090815260106020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b600260075414156117375760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107a9565b60026007556011546001600160a01b038381169116148061176557506012546001600160a01b038381169116145b6117b15760405162461bcd60e51b815260206004820152601860248201527f556e6b6e6f776e20616464726573732070726f7669646564000000000000000060448201526064016107a9565b6006546001600160a01b0316331461181557600c5460ff166118155760405162461bcd60e51b815260206004820152601c60248201527f546865206d696e7420686173206e6f742073746172746564207965740000000060448201526064016107a9565b60328111156118365760405162461bcd60e51b81526004016107a990612fe9565b612b6761184682610f4d60025490565b11156118645760405162461bcd60e51b81526004016107a990613156565b6001600160a01b03821660008181526013602090815260408083203380855292528220549192611918929162fdd58e906040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526000602482015260440160206040518083038186803b1580156118da57600080fd5b505afa1580156118ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119129190612dc5565b9061246b565b90508082111561195e5760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f7567682070617373657360781b60448201526064016107a9565b6001600160a01b03831660009081526013602090815260408083203384529091528120805484929061199190849061318d565b90915550600090505b828110156119bd576119ab33611046565b806119b581613256565b91505061199a565b50604051829033907f3f2c9d57c068687834f0de942a9babb9e5acab57d516d3480a3c16ee165a427390600090a35050600160075550565b6006546001600160a01b03163314611a1f5760405162461bcd60e51b81526004016107a9906130d0565b6001600160a01b038116611a845760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107a9565b611a8d8161211f565b50565b6006546001600160a01b03163314611aba5760405162461bcd60e51b81526004016107a9906130d0565b600c546301000000900460ff1615611b145760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120616c72656164792066696e616c6973656400000000000060448201526064016107a9565b600c805463ff00000019166301000000179055565b60098054611b369061321b565b80601f0160208091040260200160405190810160405280929190818152602001828054611b629061321b565b8015611baf5780601f10611b8457610100808354040283529160200191611baf565b820191906000526020600020905b815481529060010190602001808311611b9257829003601f168201915b505050505081565b6006546001600160a01b03163314611be15760405162461bcd60e51b81526004016107a9906130d0565b612b67611bf182610f4d60025490565b1115611c0f5760405162461bcd60e51b81526004016107a990613156565b60005b81811015611c3557611c2333611046565b80611c2d81613256565b915050611c12565b50604051819033907f3f2c9d57c068687834f0de942a9babb9e5acab57d516d3480a3c16ee165a427390600090a350565b60006001600160e01b031982166380ac58cd60e01b1480611c9757506001600160e01b03198216635b5e139f60e01b145b806106a957506301ffc9a760e01b6001600160e01b03198316146106a9565b600254600090821080156106a9575060006001600160a01b031660028381548110611ce357611ce36132c7565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d3582610dcf565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d7982611cb6565b611dda5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107a9565b6000611de583610dcf565b9050806001600160a01b0316846001600160a01b03161480611e205750836001600160a01b0316611e1584610741565b6001600160a01b0316145b80611e5057506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611e6b82610dcf565b6001600160a01b031614611ed35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107a9565b6001600160a01b038216611f355760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107a9565b611f40600082611d00565b8160028281548110611f5457611f546132c7565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6000611fba82846131b9565b9392505050565b6000611fba82846131a5565b6000611fba828461318d565b60008084848460405160200161201493929190928352602083019190915260601b6bffffffffffffffffffffffff1916604082015260540190565b6040516020818303038152906040528051906020012090506000612085826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b905060006120c9828a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061247792505050565b90506001600160a01b038116158015906120f85750600c546001600160a01b0382811664010000000090920416145b9998505050505050505050565b610a0a82826040518060200160405280600081525061249b565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f0000000000000000000000000000000000000000000000000000000000000000848660006040516020016121e1929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161220e93929190612f8a565b602060405180830381600087803b15801561222857600080fd5b505af115801561223c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122609190612cea565b50600083815260056020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a0909101909252815191830191909120938790529190526122bc90600161318d565b600085815260056020526040902055611e508482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b612308612b6782613271565b600b8190556040517fd738450068ceb43722c6da761380091d49fa4203f48516f781c16eeb9a42c31690600090a25050565b612345848484611e58565b612351848484846124ce565b6115435760405162461bcd60e51b81526004016107a99061307e565b6060816123915750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123bb57806123a581613256565b91506123b49050600a836131a5565b9150612395565b60008167ffffffffffffffff8111156123d6576123d66132dd565b6040519080825280601f01601f191660200182016040528015612400576020820181803683370190505b5090505b8415611e50576124156001836131d8565b9150612422600a86613271565b61242d90603061318d565b60f81b818381518110612442576124426132c7565b60200101906001600160f81b031916908160001a905350612464600a866131a5565b9450612404565b6000611fba82846131d8565b600080600061248685856125d8565b9150915061249381612645565b509392505050565b6124a58383612800565b6124b260008484846124ce565b6108df5760405162461bcd60e51b81526004016107a99061307e565b60006001600160a01b0384163b156125d057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612512903390899088908890600401612f4d565b602060405180830381600087803b15801561252c57600080fd5b505af192505050801561255c575060408051601f3d908101601f1916820190925261255991810190612d46565b60015b6125b6573d80801561258a576040519150601f19603f3d011682016040523d82523d6000602084013e61258f565b606091505b5080516125ae5760405162461bcd60e51b81526004016107a99061307e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e50565b506001611e50565b60008082516041141561260f5760208301516040840151606085015160001a61260387828585612928565b94509450505050610ab6565b825160401415612639576020830151604084015161262e868383612a15565b935093505050610ab6565b50600090506002610ab6565b6000816004811115612659576126596132b1565b14156126625750565b6001816004811115612676576126766132b1565b14156126c45760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107a9565b60028160048111156126d8576126d86132b1565b14156127265760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016107a9565b600381600481111561273a5761273a6132b1565b14156127935760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016107a9565b60048160048111156127a7576127a76132b1565b1415611a8d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016107a9565b6001600160a01b0382166128565760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107a9565b61285f81611cb6565b156128ac5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107a9565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561295f5750600090506003612a0c565b8460ff16601b1415801561297757508460ff16601c14155b156129885750600090506004612a0c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156129dc573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a0557600060019250925050612a0c565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612a3687828885612928565b935093505050935093915050565b828054612a509061321b565b90600052602060002090601f016020900481019282612a725760008555612ab8565b82601f10612a8b57805160ff1916838001178555612ab8565b82800160010185558215612ab8579182015b82811115612ab8578251825591602001919060010190612a9d565b50610c699291505b80821115610c695760008155600101612ac0565b600067ffffffffffffffff80841115612aef57612aef6132dd565b604051601f8501601f19908116603f01168101908282118183101715612b1757612b176132dd565b81604052809350858152868686011115612b3057600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612b6157600080fd5b919050565b600060208284031215612b7857600080fd5b611fba82612b4a565b60008060408385031215612b9457600080fd5b612b9d83612b4a565b9150612bab60208401612b4a565b90509250929050565b600080600060608486031215612bc957600080fd5b612bd284612b4a565b9250612be060208501612b4a565b9150604084013590509250925092565b60008060008060808587031215612c0657600080fd5b612c0f85612b4a565b9350612c1d60208601612b4a565b925060408501359150606085013567ffffffffffffffff811115612c4057600080fd5b8501601f81018713612c5157600080fd5b612c6087823560208401612ad4565b91505092959194509250565b60008060408385031215612c7f57600080fd5b612c8883612b4a565b91506020830135612c98816132f3565b809150509250929050565b60008060408385031215612cb657600080fd5b612cbf83612b4a565b946020939093013593505050565b600060208284031215612cdf57600080fd5b8135611fba816132f3565b600060208284031215612cfc57600080fd5b8151611fba816132f3565b60008060408385031215612d1a57600080fd5b50508035926020909101359150565b600060208284031215612d3b57600080fd5b8135611fba81613301565b600060208284031215612d5857600080fd5b8151611fba81613301565b600060208284031215612d7557600080fd5b813567ffffffffffffffff811115612d8c57600080fd5b8201601f81018413612d9d57600080fd5b611e5084823560208401612ad4565b600060208284031215612dbe57600080fd5b5035919050565b600060208284031215612dd757600080fd5b5051919050565b60008060008060608587031215612df457600080fd5b8435935060208501359250604085013567ffffffffffffffff80821115612e1a57600080fd5b818701915087601f830112612e2e57600080fd5b813581811115612e3d57600080fd5b886020828501011115612e4f57600080fd5b95989497505060200194505050565b60008151808452612e768160208601602086016131ef565b601f01601f19169290920160200192915050565b60008151612e9c8185602086016131ef565b9290920192915050565b600080845481600182811c915080831680612ec257607f831692505b6020808410821415612ee257634e487b7160e01b86526022600452602486fd5b818015612ef65760018114612f0757612f34565b60ff19861689528489019650612f34565b60008b81526020902060005b86811015612f2c5781548b820152908501908301612f13565b505084890196505b505050505050612f448185612e8a565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612f8090830184612e5e565b9695505050505050565b60018060a01b0384168152826020820152606060408201526000612f446060830184612e5e565b602081526000611fba6020830184612e5e565b604081526000612fd76040830185612e5e565b8281036020840152612f448185612e5e565b6020808252602a908201527f596f752063616e206d696e74206d617820353020746f6b656e732070657220746040820152693930b739b0b1ba34b7b760b11b606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601d908201527f4d696e74206d6f72652063726565707a207468617420616c6c6f776564000000604082015260600190565b600082198211156131a0576131a0613285565b500190565b6000826131b4576131b461329b565b500490565b60008160001904831182151516156131d3576131d3613285565b500290565b6000828210156131ea576131ea613285565b500390565b60005b8381101561320a5781810151838201526020016131f2565b838111156115435750506000910152565b600181811c9082168061322f57607f821691505b6020821081141561325057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561326a5761326a613285565b5060010190565b6000826132805761328061329b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114611a8d57600080fd5b6001600160e01b031981168114611a8d57600080fdfea2646970667358221220e961e60bebf8add472a6b8657822ce9e4b29596d391a847ba60ee965cc8e12c564736f6c63430008070033000000000000000000000000d6d095bb8aa4634ccaa61145ad0e5338856540ab0000000000000000000000003f2c152b91d1ca6ab86a94f113e778aa2ee8dffc0000000000000000000000009940bf08f6457b6e484249e2a9d965e81ff10434000000000000000000000000f3ec2d6394fc899a5dc1823a205670ebb30939cc00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d6369455150544c39397a515732644c4b4d59334d557169576e444c46314265564869346668467553554a57510000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102bb5760003560e01c806374df39c911610182578063c87b56dd116100e9578063e985e9c5116100a2578063f2fde38b1161007c578063f2fde38b1461064e578063f4a560a514610661578063ff1b655614610669578063ffcc66dc1461067157600080fd5b8063e985e9c5146105f2578063eb8d24441461062e578063f0cb639b1461063b57600080fd5b8063c87b56dd1461059f578063cb14eb87146105b2578063cb774d47146105ba578063cd6a3ea5146105c3578063dcc7ba24146105d6578063df173dba146105e957600080fd5b806394985ddd1161013b57806394985ddd1461052b57806395d89b411461053e578063a22cb46514610546578063ad2f852a14610559578063afd0f7691461056c578063b88d4fde1461058c57600080fd5b806374df39c9146104b857806377d02d9a146104c05780637c86bcb8146104eb5780637fcf6e0b146104ff5780638da5cb5b146105125780639182a9df1461052357600080fd5b80632a55205a1161022657806355f804b3116101df57806355f804b3146104495780635b7633d01461045c5780636352211e1461047757806366b5543e1461048a57806370a082311461049d578063715018a6146104b057600080fd5b80632a55205a146103cd5780632f745c59146103ff57806332cb6b0c146104125780633ccfd60b1461041b57806342842e0e146104235780634f6ccce71461043657600080fd5b80630a088949116102785780630a088949146103675780630a3a7ebc1461037a578063109695231461038c57806318160ddd1461039f5780632137924a146103a757806323b872dd146103ba57600080fd5b806301ffc9a7146102c057806306fdde03146102e8578063081812fc146102fd578063095ea7b3146103285780630969dc621461033d578063099becfb14610350575b600080fd5b6102d36102ce366004612d29565b610684565b60405190151581526020015b60405180910390f35b6102f06106af565b6040516102df9190612fb1565b61031061030b366004612dac565b610741565b6040516001600160a01b0390911681526020016102df565b61033b610336366004612ca3565b6107ce565b005b61033b61034b366004612ccd565b6108e4565b610359600e5481565b6040519081526020016102df565b61033b610375366004612ccd565b610928565b600c546102d390610100900460ff1681565b61033b61039a366004612d63565b610965565b600254610359565b601254610310906001600160a01b031681565b61033b6103c8366004612bb4565b610a0e565b6103e06103db366004612d07565b610a3f565b604080516001600160a01b0390931683526020830191909152016102df565b61035961040d366004612ca3565b610abd565b610359612b6781565b61033b610b70565b61033b610431366004612bb4565b610be5565b610359610444366004612dac565b610c00565b61033b610457366004612d63565b610c6d565b600c546103109064010000000090046001600160a01b031681565b610310610485366004612dac565b610dcf565b61033b610498366004612dde565b610e5b565b6103596104ab366004612b66565b611099565b61033b611167565b61035961119d565b6103596104ce366004612b81565b601360209081526000928352604080842090915290825290205481565b600c546102d3906301000000900460ff1681565b601154610310906001600160a01b031681565b6006546001600160a01b0316610310565b61033b611329565b61033b610539366004612d07565b6113bb565b6102f061143d565b61033b610554366004612c6c565b61144c565b600d54610310906001600160a01b031681565b61035961057a366004612b66565b60146020526000908152604090205481565b61033b61059a366004612bf0565b611511565b6102f06105ad366004612dac565b611549565b610359603281565b610359600b5481565b61033b6105d1366004612ca3565b61168c565b600c546102d39062010000900460ff1681565b610359600f5481565b6102d3610600366004612b81565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b600c546102d39060ff1681565b61033b610649366004612ca3565b6116e4565b61033b61065c366004612b66565b6119f5565b61033b611a90565b6102f0611b29565b61033b61067f366004612dac565b611bb7565b60006001600160e01b0319821663780e9d6360e01b14806106a957506106a982611c66565b92915050565b6060600080546106be9061321b565b80601f01602080910402602001604051908101604052809291908181526020018280546106ea9061321b565b80156107375780601f1061070c57610100808354040283529160200191610737565b820191906000526020600020905b81548152906001019060200180831161071a57829003601f168201915b5050505050905090565b600061074c82611cb6565b6107b25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b60006107d982610dcf565b9050806001600160a01b0316836001600160a01b031614156108475760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107a9565b336001600160a01b038216148061086357506108638133610600565b6108d55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107a9565b6108df8383611d00565b505050565b6006546001600160a01b0316331461090e5760405162461bcd60e51b81526004016107a9906130d0565b600c80549115156101000261ff0019909216919091179055565b6006546001600160a01b031633146109525760405162461bcd60e51b81526004016107a9906130d0565b600c805460ff1916911515919091179055565b6006546001600160a01b0316331461098f5760405162461bcd60e51b81526004016107a9906130d0565b6009805461099c9061321b565b1590506109f75760405162461bcd60e51b8152602060048201526024808201527f50726f76656e616e636520686173682068617320616c7265616479206265656e604482015263081cd95d60e21b60648201526084016107a9565b8051610a0a906009906020840190612a44565b5050565b610a183382611d6e565b610a345760405162461bcd60e51b81526004016107a990613105565b6108df838383611e58565b6000806000610a65600f54610a5f600e5487611fae90919063ffffffff16565b90611fc1565b600086815260106020526040812054919250906001600160a01b0316610a9657600d546001600160a01b0316610aaf565b6000868152601060205260409020546001600160a01b03165b9350909150505b9250929050565b6000610ac883611099565b8210610ae65760405162461bcd60e51b81526004016107a990613033565b6000805b600254811015610b575760028181548110610b0757610b076132c7565b6000918252602090912001546001600160a01b0386811691161415610b455783821415610b375791506106a99050565b81610b4181613256565b9250505b80610b4f81613256565b915050610aea565b5060405162461bcd60e51b81526004016107a990613033565b6006546001600160a01b03163314610b9a5760405162461bcd60e51b81526004016107a9906130d0565b47610bad6006546001600160a01b031690565b6001600160a01b03166108fc829081150290604051600060405180830381858888f19350505050158015610a0a573d6000803e3d6000fd5b6108df83838360405180602001604052806000815250611511565b6002546000908210610c695760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107a9565b5090565b6006546001600160a01b03163314610c975760405162461bcd60e51b81526004016107a9906130d0565b600c546301000000900460ff1615610ced5760405162461bcd60e51b815260206004820152601960248201527813595d1859185d1848185b1c9958591e481c995d99585b1959603a1b60448201526064016107a9565b6000600a8054610cfc9061321b565b80601f0160208091040260200160405190810160405280929190818152602001828054610d289061321b565b8015610d755780601f10610d4a57610100808354040283529160200191610d75565b820191906000526020600020905b815481529060010190602001808311610d5857829003601f168201915b50508551939450610d9193600a93506020870192509050612a44565b507f9f02bf4cb60375a0a74d238c76d002df33d30d2b85e9e677f03455a22d96c14d8183604051610dc3929190612fc4565b60405180910390a15050565b60008060028381548110610de557610de56132c7565b6000918252602090912001546001600160a01b03169050806106a95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107a9565b60026007541415610eae5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107a9565b60026007556006546001600160a01b03163314610f1c57600c54610100900460ff16610f1c5760405162461bcd60e51b815260206004820152601c60248201527f546865206d696e7420686173206e6f742073746172746564207965740000000060448201526064016107a9565b6032841115610f3d5760405162461bcd60e51b81526004016107a990612fe9565b612b67610f5385610f4d60025490565b90611fcd565b1115610f715760405162461bcd60e51b81526004016107a990613156565b610f7e8282868633611fd9565b610fd65760405162461bcd60e51b815260206004820152602360248201527f57726f6e6720646174612070617373656420696e746f2074686520636f6e74726044820152621858dd60ea1b60648201526084016107a9565b3360009081526014602052604090205483116110265760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016107a9565b3360009081526014602052604081208490555b848110156110605761104e335b600254612105565b8061105881613256565b915050611039565b50604051849033907f3f2c9d57c068687834f0de942a9babb9e5acab57d516d3480a3c16ee165a427390600090a3505060016007555050565b60006001600160a01b0382166111045760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107a9565b6000805b6002548110156111605760028181548110611125576111256132c7565b6000918252602090912001546001600160a01b03858116911614156111505761114d82613256565b91505b61115981613256565b9050611108565b5092915050565b6006546001600160a01b031633146111915760405162461bcd60e51b81526004016107a9906130d0565b61119b600061211f565b565b6006546000906001600160a01b031633146111ca5760405162461bcd60e51b81526004016107a9906130d0565b600b541561121a5760405162461bcd60e51b815260206004820152601960248201527f7374617274696e67496e64657820616c7265616479207365740000000000000060448201526064016107a9565b6016546040516370a0823160e01b81523060048201527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b15801561127c57600080fd5b505afa158015611290573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b49190612dc5565b10156113165760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060448201526a1dda5d1a0819985d58d95d60aa1b60648201526084016107a9565b611324601554601654612171565b905090565b6006546001600160a01b031633146113535760405162461bcd60e51b81526004016107a9906130d0565b600c5462010000900460ff16156113a85760405162461bcd60e51b815260206004820152601960248201527813595d1859185d1848185b1c9958591e481c995d99585b1959603a1b60448201526064016107a9565b600c805462ff0000191662010000179055565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146114335760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c0060448201526064016107a9565b610a0a82826122fc565b6060600180546106be9061321b565b6001600160a01b0382163314156114a55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107a9565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61151b3383611d6e565b6115375760405162461bcd60e51b81526004016107a990613105565b6115438484848461233a565b50505050565b606061155482611cb6565b6115b85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107a9565b600c5462010000900460ff1661165a57600a80546115d59061321b565b80601f01602080910402602001604051908101604052809291908181526020018280546116019061321b565b801561164e5780601f106116235761010080835404028352916020019161164e565b820191906000526020600020905b81548152906001019060200180831161163157829003601f168201915b50505050509050919050565b600a6116658361236d565b604051602001611676929190612ea6565b6040516020818303038152906040529050919050565b6006546001600160a01b031633146116b65760405162461bcd60e51b81526004016107a9906130d0565b600090815260106020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b600260075414156117375760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107a9565b60026007556011546001600160a01b038381169116148061176557506012546001600160a01b038381169116145b6117b15760405162461bcd60e51b815260206004820152601860248201527f556e6b6e6f776e20616464726573732070726f7669646564000000000000000060448201526064016107a9565b6006546001600160a01b0316331461181557600c5460ff166118155760405162461bcd60e51b815260206004820152601c60248201527f546865206d696e7420686173206e6f742073746172746564207965740000000060448201526064016107a9565b60328111156118365760405162461bcd60e51b81526004016107a990612fe9565b612b6761184682610f4d60025490565b11156118645760405162461bcd60e51b81526004016107a990613156565b6001600160a01b03821660008181526013602090815260408083203380855292528220549192611918929162fdd58e906040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526000602482015260440160206040518083038186803b1580156118da57600080fd5b505afa1580156118ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119129190612dc5565b9061246b565b90508082111561195e5760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f7567682070617373657360781b60448201526064016107a9565b6001600160a01b03831660009081526013602090815260408083203384529091528120805484929061199190849061318d565b90915550600090505b828110156119bd576119ab33611046565b806119b581613256565b91505061199a565b50604051829033907f3f2c9d57c068687834f0de942a9babb9e5acab57d516d3480a3c16ee165a427390600090a35050600160075550565b6006546001600160a01b03163314611a1f5760405162461bcd60e51b81526004016107a9906130d0565b6001600160a01b038116611a845760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107a9565b611a8d8161211f565b50565b6006546001600160a01b03163314611aba5760405162461bcd60e51b81526004016107a9906130d0565b600c546301000000900460ff1615611b145760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120616c72656164792066696e616c6973656400000000000060448201526064016107a9565b600c805463ff00000019166301000000179055565b60098054611b369061321b565b80601f0160208091040260200160405190810160405280929190818152602001828054611b629061321b565b8015611baf5780601f10611b8457610100808354040283529160200191611baf565b820191906000526020600020905b815481529060010190602001808311611b9257829003601f168201915b505050505081565b6006546001600160a01b03163314611be15760405162461bcd60e51b81526004016107a9906130d0565b612b67611bf182610f4d60025490565b1115611c0f5760405162461bcd60e51b81526004016107a990613156565b60005b81811015611c3557611c2333611046565b80611c2d81613256565b915050611c12565b50604051819033907f3f2c9d57c068687834f0de942a9babb9e5acab57d516d3480a3c16ee165a427390600090a350565b60006001600160e01b031982166380ac58cd60e01b1480611c9757506001600160e01b03198216635b5e139f60e01b145b806106a957506301ffc9a760e01b6001600160e01b03198316146106a9565b600254600090821080156106a9575060006001600160a01b031660028381548110611ce357611ce36132c7565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d3582610dcf565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d7982611cb6565b611dda5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107a9565b6000611de583610dcf565b9050806001600160a01b0316846001600160a01b03161480611e205750836001600160a01b0316611e1584610741565b6001600160a01b0316145b80611e5057506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611e6b82610dcf565b6001600160a01b031614611ed35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107a9565b6001600160a01b038216611f355760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107a9565b611f40600082611d00565b8160028281548110611f5457611f546132c7565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6000611fba82846131b9565b9392505050565b6000611fba82846131a5565b6000611fba828461318d565b60008084848460405160200161201493929190928352602083019190915260601b6bffffffffffffffffffffffff1916604082015260540190565b6040516020818303038152906040528051906020012090506000612085826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b905060006120c9828a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061247792505050565b90506001600160a01b038116158015906120f85750600c546001600160a01b0382811664010000000090920416145b9998505050505050505050565b610a0a82826040518060200160405280600081525061249b565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952848660006040516020016121e1929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161220e93929190612f8a565b602060405180830381600087803b15801561222857600080fd5b505af115801561223c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122609190612cea565b50600083815260056020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a0909101909252815191830191909120938790529190526122bc90600161318d565b600085815260056020526040902055611e508482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b612308612b6782613271565b600b8190556040517fd738450068ceb43722c6da761380091d49fa4203f48516f781c16eeb9a42c31690600090a25050565b612345848484611e58565b612351848484846124ce565b6115435760405162461bcd60e51b81526004016107a99061307e565b6060816123915750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123bb57806123a581613256565b91506123b49050600a836131a5565b9150612395565b60008167ffffffffffffffff8111156123d6576123d66132dd565b6040519080825280601f01601f191660200182016040528015612400576020820181803683370190505b5090505b8415611e50576124156001836131d8565b9150612422600a86613271565b61242d90603061318d565b60f81b818381518110612442576124426132c7565b60200101906001600160f81b031916908160001a905350612464600a866131a5565b9450612404565b6000611fba82846131d8565b600080600061248685856125d8565b9150915061249381612645565b509392505050565b6124a58383612800565b6124b260008484846124ce565b6108df5760405162461bcd60e51b81526004016107a99061307e565b60006001600160a01b0384163b156125d057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612512903390899088908890600401612f4d565b602060405180830381600087803b15801561252c57600080fd5b505af192505050801561255c575060408051601f3d908101601f1916820190925261255991810190612d46565b60015b6125b6573d80801561258a576040519150601f19603f3d011682016040523d82523d6000602084013e61258f565b606091505b5080516125ae5760405162461bcd60e51b81526004016107a99061307e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e50565b506001611e50565b60008082516041141561260f5760208301516040840151606085015160001a61260387828585612928565b94509450505050610ab6565b825160401415612639576020830151604084015161262e868383612a15565b935093505050610ab6565b50600090506002610ab6565b6000816004811115612659576126596132b1565b14156126625750565b6001816004811115612676576126766132b1565b14156126c45760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107a9565b60028160048111156126d8576126d86132b1565b14156127265760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016107a9565b600381600481111561273a5761273a6132b1565b14156127935760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016107a9565b60048160048111156127a7576127a76132b1565b1415611a8d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016107a9565b6001600160a01b0382166128565760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107a9565b61285f81611cb6565b156128ac5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107a9565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561295f5750600090506003612a0c565b8460ff16601b1415801561297757508460ff16601c14155b156129885750600090506004612a0c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156129dc573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a0557600060019250925050612a0c565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612a3687828885612928565b935093505050935093915050565b828054612a509061321b565b90600052602060002090601f016020900481019282612a725760008555612ab8565b82601f10612a8b57805160ff1916838001178555612ab8565b82800160010185558215612ab8579182015b82811115612ab8578251825591602001919060010190612a9d565b50610c699291505b80821115610c695760008155600101612ac0565b600067ffffffffffffffff80841115612aef57612aef6132dd565b604051601f8501601f19908116603f01168101908282118183101715612b1757612b176132dd565b81604052809350858152868686011115612b3057600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612b6157600080fd5b919050565b600060208284031215612b7857600080fd5b611fba82612b4a565b60008060408385031215612b9457600080fd5b612b9d83612b4a565b9150612bab60208401612b4a565b90509250929050565b600080600060608486031215612bc957600080fd5b612bd284612b4a565b9250612be060208501612b4a565b9150604084013590509250925092565b60008060008060808587031215612c0657600080fd5b612c0f85612b4a565b9350612c1d60208601612b4a565b925060408501359150606085013567ffffffffffffffff811115612c4057600080fd5b8501601f81018713612c5157600080fd5b612c6087823560208401612ad4565b91505092959194509250565b60008060408385031215612c7f57600080fd5b612c8883612b4a565b91506020830135612c98816132f3565b809150509250929050565b60008060408385031215612cb657600080fd5b612cbf83612b4a565b946020939093013593505050565b600060208284031215612cdf57600080fd5b8135611fba816132f3565b600060208284031215612cfc57600080fd5b8151611fba816132f3565b60008060408385031215612d1a57600080fd5b50508035926020909101359150565b600060208284031215612d3b57600080fd5b8135611fba81613301565b600060208284031215612d5857600080fd5b8151611fba81613301565b600060208284031215612d7557600080fd5b813567ffffffffffffffff811115612d8c57600080fd5b8201601f81018413612d9d57600080fd5b611e5084823560208401612ad4565b600060208284031215612dbe57600080fd5b5035919050565b600060208284031215612dd757600080fd5b5051919050565b60008060008060608587031215612df457600080fd5b8435935060208501359250604085013567ffffffffffffffff80821115612e1a57600080fd5b818701915087601f830112612e2e57600080fd5b813581811115612e3d57600080fd5b886020828501011115612e4f57600080fd5b95989497505060200194505050565b60008151808452612e768160208601602086016131ef565b601f01601f19169290920160200192915050565b60008151612e9c8185602086016131ef565b9290920192915050565b600080845481600182811c915080831680612ec257607f831692505b6020808410821415612ee257634e487b7160e01b86526022600452602486fd5b818015612ef65760018114612f0757612f34565b60ff19861689528489019650612f34565b60008b81526020902060005b86811015612f2c5781548b820152908501908301612f13565b505084890196505b505050505050612f448185612e8a565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612f8090830184612e5e565b9695505050505050565b60018060a01b0384168152826020820152606060408201526000612f446060830184612e5e565b602081526000611fba6020830184612e5e565b604081526000612fd76040830185612e5e565b8281036020840152612f448185612e5e565b6020808252602a908201527f596f752063616e206d696e74206d617820353020746f6b656e732070657220746040820152693930b739b0b1ba34b7b760b11b606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601d908201527f4d696e74206d6f72652063726565707a207468617420616c6c6f776564000000604082015260600190565b600082198211156131a0576131a0613285565b500190565b6000826131b4576131b461329b565b500490565b60008160001904831182151516156131d3576131d3613285565b500290565b6000828210156131ea576131ea613285565b500390565b60005b8381101561320a5781810151838201526020016131f2565b838111156115435750506000910152565b600181811c9082168061322f57607f821691505b6020821081141561325057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561326a5761326a613285565b5060010190565b6000826132805761328061329b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114611a8d57600080fd5b6001600160e01b031981168114611a8d57600080fdfea2646970667358221220e961e60bebf8add472a6b8657822ce9e4b29596d391a847ba60ee965cc8e12c564736f6c63430008070033

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

000000000000000000000000d6d095bb8aa4634ccaa61145ad0e5338856540ab0000000000000000000000003f2c152b91d1ca6ab86a94f113e778aa2ee8dffc0000000000000000000000009940bf08f6457b6e484249e2a9d965e81ff10434000000000000000000000000f3ec2d6394fc899a5dc1823a205670ebb30939cc00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d6369455150544c39397a515732644c4b4d59334d557169576e444c46314265564869346668467553554a57510000000000000000000000

-----Decoded View---------------
Arg [0] : _royaltyAddress (address): 0xD6d095bb8aa4634cCaA61145aD0e5338856540AB
Arg [1] : _signerAddress (address): 0x3F2C152B91D1CA6Ab86a94f113e778Aa2eE8DFFc
Arg [2] : _fxc (address): 0x9940bF08F6457b6e484249e2A9D965e81ff10434
Arg [3] : _invasionPass (address): 0xf3Ec2d6394Fc899A5Dc1823a205670EBB30939cc
Arg [4] : _baseURI (string): ipfs://QmciEQPTL99zQW2dLKMY3MUqiWnDLF1BeVHi4fhFuSUJWQ

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000d6d095bb8aa4634ccaa61145ad0e5338856540ab
Arg [1] : 0000000000000000000000003f2c152b91d1ca6ab86a94f113e778aa2ee8dffc
Arg [2] : 0000000000000000000000009940bf08f6457b6e484249e2a9d965e81ff10434
Arg [3] : 000000000000000000000000f3ec2d6394fc899a5dc1823a205670ebb30939cc
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [6] : 697066733a2f2f516d6369455150544c39397a515732644c4b4d59334d557169
Arg [7] : 576e444c46314265564869346668467553554a57510000000000000000000000


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.