ETH Price: $3,414.79 (-6.85%)

Token

CryptoHoots Steampunk Parliament (HOOTS)
 

Overview

Max Total Supply

2,500 HOOTS

Holders

841

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
brogee.eth
Balance
3 HOOTS
0x8d0f3988d864757bb429b08df92b93c185bcc2ea
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

CryptoHoots are a rowdy crowd of steampunk owls who think the 20th century was a mistake. They live in an alternate timeline in the metaverse where gear-driven gadgets and steam-powered machinery rules the roost.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CryptoHoots

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 16 : CryptoHoots.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";

/**
  CryptoHoots: Steampunk Parliament
  2021.09.28
 */
contract CryptoHoots is ERC721URIStorage, Ownable, VRFConsumerBase {
  using Counters for Counters.Counter;
  Counters.Counter private _tokenIds;

  bool private saleStarted = false;
  uint256 public constant MAX_HOOT = 2500;
  uint256 public price = 0.03 ether;
  string public baseURI;
  string public baseContractURI;
  address public payoutAccountAddress;
  uint256 public randomNumber = 112251241738492409971660691241763937113569996400635104450295902338183133602780; // default random
  mapping(uint256 => uint256) public tokenIdToDNA;

  event Hatched(uint256 indexed tokenId, uint256 dna, address indexed owner);
  event RequestedRandomNumber(bytes32 indexed requestId);
  event FulfilledRandomNumber(bytes32 indexed requestId, uint256 randomNumber);

  constructor(string memory _baseURI_, string memory _contractURI_, address _accountAddress_, address _VRFCoordinator_, address _LinkToken_)
  VRFConsumerBase(_VRFCoordinator_, _LinkToken_)
  ERC721("CryptoHoots Steampunk Parliament", "HOOTS") {
    setBaseURI(_baseURI_);
    payoutAccountAddress = _accountAddress_;
    baseContractURI = _contractURI_;
  }

  function contractURI() public view returns (string memory) {
    return baseContractURI;
  }

  function hatch(uint256 quantity) public payable {
    require(saleStarted, "Sale has not started yet.");
    require(quantity > 0, "Quantity cannot be zero");
    require(quantity <= 10, "Exceeds 10, the max qty per mint.");
    require(totalSupply() + quantity <= MAX_HOOT, "Quantity requested exceeds max supply.");
    require(msg.value >= price * quantity, "Ether value sent is below the price");

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

    for (uint256 i = 0; i < quantity; i++) {
      // initialize tokenId
      uint256 mintIndex = _tokenIds.current();
      
      // mint
      _safeMint(msg.sender, mintIndex);

      // init dna for hoot
      tokenIdToDNA[mintIndex] = uint256(keccak256(abi.encode(randomNumber, mintIndex + block.number)));

      // increment id counter
      _tokenIds.increment();
      emit Hatched(mintIndex, tokenIdToDNA[mintIndex], msg.sender);
    }
  }

  function getDNAForHoot(uint256 hootId) public view returns (uint256) {
    return tokenIdToDNA[hootId];
  }

  function setBaseURI(string memory uri) public onlyOwner {
    baseURI = uri;
  }

  function setSaleStarted(bool started) public onlyOwner {
    saleStarted = started;
  }

  function hasSaleStarted() public view returns (bool) {
    return saleStarted;
  }

  function setContractURI(string memory uri) public onlyOwner {
    baseContractURI = uri;
  }

  function setPrice(uint256 _price) public onlyOwner {
    price = _price;
  }

  function hasSoldOut() public view returns (bool) {
    if (totalSupply() >= MAX_HOOT) {
      return true;
    } else {
      return false;
    }
  }

  function requestRandomNumber(bytes32 keyhash, uint256 fee) public returns (bytes32) {
    bytes32 requestId = requestRandomness(keyhash, fee);
    emit RequestedRandomNumber(requestId);
    return requestId;
  }

  function fulfillRandomness(bytes32 requestId, uint256 _randomNumber) internal override {
    randomNumber = _randomNumber;
    emit FulfilledRandomNumber(requestId, _randomNumber);
  }

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

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

File 2 of 16 : 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 3 of 16 : 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));
  }
}

File 4 of 16 : 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 5 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 6 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = 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 _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);

        _balances[to] += 1;
        _owners[tokenId] = 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);

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

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _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 7 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT

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 8 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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 9 of 16 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 10 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 11 of 16 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 16 : Context.sol
// SPDX-License-Identifier: MIT

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 13 of 16 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 14 of 16 : Strings.sol
// SPDX-License-Identifier: MIT

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 15 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT

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 16 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseURI_","type":"string"},{"internalType":"string","name":"_contractURI_","type":"string"},{"internalType":"address","name":"_accountAddress_","type":"address"},{"internalType":"address","name":"_VRFCoordinator_","type":"address"},{"internalType":"address","name":"_LinkToken_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"requestId","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"randomNumber","type":"uint256"}],"name":"FulfilledRandomNumber","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dna","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"Hatched","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":"bytes32","name":"requestId","type":"bytes32"}],"name":"RequestedRandomNumber","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_HOOT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseContractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"hootId","type":"uint256"}],"name":"getDNAForHoot","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasSoldOut","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"hatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payoutAccountAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"bytes32","name":"keyhash","type":"bytes32"},{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"requestRandomNumber","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"started","type":"bool"}],"name":"setSaleStarted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToDNA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052600a805460ff19169055666a94d74f430000600b557ff82bf38ac983bd36d54613655b1cd621d4dfb230c259bdc3f416243c126f23dc600f553480156200004a57600080fd5b5060405162002917380380620029178339810160408190526200006d91620003b2565b81816040518060400160405280602081526020017f43727970746f486f6f747320537465616d70756e6b205061726c69616d656e7481525060405180604001604052806005815260200164484f4f545360d81b8152508160009080519060200190620000db9291906200023c565b508051620000f19060019060208401906200023c565b5050506200010e620001086200016e60201b60201c565b62000172565b6001600160601b0319606092831b811660a052911b166080526200013285620001c4565b600e80546001600160a01b0319166001600160a01b03851617905583516200016290600d9060208701906200023c565b505050505050620004a4565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6007546001600160a01b03163314620002235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b80516200023890600c9060208401906200023c565b5050565b8280546200024a9062000451565b90600052602060002090601f0160209004810192826200026e5760008555620002b9565b82601f106200028957805160ff1916838001178555620002b9565b82800160010185558215620002b9579182015b82811115620002b95782518255916020019190600101906200029c565b50620002c7929150620002cb565b5090565b5b80821115620002c75760008155600101620002cc565b80516001600160a01b0381168114620002fa57600080fd5b919050565b600082601f83011262000310578081fd5b81516001600160401b03808211156200032d576200032d6200048e565b604051601f8301601f19908116603f011681019082821181831017156200035857620003586200048e565b8160405283815260209250868385880101111562000374578485fd5b8491505b8382101562000397578582018301518183018401529082019062000378565b83821115620003a857848385830101525b9695505050505050565b600080600080600060a08688031215620003ca578081fd5b85516001600160401b0380821115620003e1578283fd5b620003ef89838a01620002ff565b9650602088015191508082111562000405578283fd5b506200041488828901620002ff565b9450506200042560408701620002e2565b92506200043560608701620002e2565b91506200044560808701620002e2565b90509295509295909350565b600181811c908216806200046657607f821691505b602082108114156200048857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c612440620004d760003960008181610c4001526114350152600061140601526124406000f3fe6080604052600436106102045760003560e01c806380f2152e11610118578063a854ffba116100a0578063ccbac9f51161006f578063ccbac9f5146105bf578063d2083a25146105d5578063e8a3d485146105eb578063e985e9c514610600578063f2fde38b1461064957600080fd5b8063a854ffba1461054c578063b88d4fde1461056c578063c87b56dd1461058c578063c8c18842146105ac57600080fd5b8063938e3d7b116100e7578063938e3d7b146104c157806394985ddd146104e157806395d89b4114610501578063a035b1fe14610516578063a22cb4651461052c57600080fd5b806380f2152e1461044e5780638837f0c2146104635780638da5cb5b1461048357806391b7f5ed146104a157600080fd5b80631c8b232d1161019b5780636352211e1161016a5780636352211e146103b75780636c0360eb146103d75780636e5ed979146103ec57806370a0823114610419578063715018a61461043957600080fd5b80631c8b232d1461033f57806323b872dd1461035757806342842e0e1461037757806355f804b31461039757600080fd5b8063095ea7b3116101d7578063095ea7b3146102ad5780630abead0b146102cf57806311791312146102fd57806318160ddd1461032a57600080fd5b806301ffc9a71461020957806303824f761461023e57806306fdde0314610253578063081812fc14610275575b600080fd5b34801561021557600080fd5b50610229610224366004612063565b610669565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b506102296106bb565b34801561025f57600080fd5b506102686106d9565b60405161023591906121c1565b34801561028157600080fd5b506102956102903660046120e1565b61076b565b6040516001600160a01b039091168152602001610235565b3480156102b957600080fd5b506102cd6102c8366004611fe1565b610805565b005b3480156102db57600080fd5b506102ef6102ea366004612042565b61091b565b604051908152602001610235565b34801561030957600080fd5b506102ef6103183660046120e1565b60009081526010602052604090205490565b34801561033657600080fd5b506102ef61095d565b34801561034b57600080fd5b50600a5460ff16610229565b34801561036357600080fd5b506102cd610372366004611ef7565b61096d565b34801561038357600080fd5b506102cd610392366004611ef7565b61099e565b3480156103a357600080fd5b506102cd6103b236600461209b565b6109b9565b3480156103c357600080fd5b506102956103d23660046120e1565b6109fa565b3480156103e357600080fd5b50610268610a71565b3480156103f857600080fd5b506102ef6104073660046120e1565b60106020526000908152604090205481565b34801561042557600080fd5b506102ef610434366004611eab565b610aff565b34801561044557600080fd5b506102cd610b86565b34801561045a57600080fd5b50610268610bbc565b34801561046f57600080fd5b50600e54610295906001600160a01b031681565b34801561048f57600080fd5b506007546001600160a01b0316610295565b3480156104ad57600080fd5b506102cd6104bc3660046120e1565b610bc9565b3480156104cd57600080fd5b506102cd6104dc36600461209b565b610bf8565b3480156104ed57600080fd5b506102cd6104fc366004612042565b610c35565b34801561050d57600080fd5b50610268610cb7565b34801561052257600080fd5b506102ef600b5481565b34801561053857600080fd5b506102cd610547366004611fab565b610cc6565b34801561055857600080fd5b506102cd61056736600461200a565b610d8b565b34801561057857600080fd5b506102cd610587366004611f32565b610dc8565b34801561059857600080fd5b506102686105a73660046120e1565b610e00565b6102cd6105ba3660046120e1565b610f7a565b3480156105cb57600080fd5b506102ef600f5481565b3480156105e157600080fd5b506102ef6109c481565b3480156105f757600080fd5b506102686112ea565b34801561060c57600080fd5b5061022961061b366004611ec5565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561065557600080fd5b506102cd610664366004611eab565b6112f9565b60006001600160e01b031982166380ac58cd60e01b148061069a57506001600160e01b03198216635b5e139f60e01b145b806106b557506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006109c46106c861095d565b106106d35750600190565b50600090565b6060600080546106e89061233a565b80601f01602080910402602001604051908101604052809291908181526020018280546107149061233a565b80156107615780601f1061073657610100808354040283529160200191610761565b820191906000526020600020905b81548152906001019060200180831161074457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107e95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610810826109fa565b9050806001600160a01b0316836001600160a01b0316141561087e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107e0565b336001600160a01b038216148061089a575061089a813361061b565b61090c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107e0565b6109168383611394565b505050565b6000806109288484611402565b60405190915081907fc620a79baed7e5f06637aa5ab699c2b03ee40b2ae3ba4a91ed1eb0bd00b8ea3b90600090a29392505050565b600061096860095490565b905090565b610977338261158d565b6109935760405162461bcd60e51b81526004016107e09061225b565b610916838383611680565b61091683838360405180602001604052806000815250610dc8565b6007546001600160a01b031633146109e35760405162461bcd60e51b81526004016107e090612226565b80516109f690600c906020840190611d80565b5050565b6000818152600260205260408120546001600160a01b0316806106b55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107e0565b600c8054610a7e9061233a565b80601f0160208091040260200160405190810160405280929190818152602001828054610aaa9061233a565b8015610af75780601f10610acc57610100808354040283529160200191610af7565b820191906000526020600020905b815481529060010190602001808311610ada57829003601f168201915b505050505081565b60006001600160a01b038216610b6a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107e0565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314610bb05760405162461bcd60e51b81526004016107e090612226565b610bba6000611820565b565b600d8054610a7e9061233a565b6007546001600160a01b03163314610bf35760405162461bcd60e51b81526004016107e090612226565b600b55565b6007546001600160a01b03163314610c225760405162461bcd60e51b81526004016107e090612226565b80516109f690600d906020840190611d80565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610cad5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c0060448201526064016107e0565b6109f68282611872565b6060600180546106e89061233a565b6001600160a01b038216331415610d1f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107e0565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6007546001600160a01b03163314610db55760405162461bcd60e51b81526004016107e090612226565b600a805460ff1916911515919091179055565b610dd2338361158d565b610dee5760405162461bcd60e51b81526004016107e09061225b565b610dfa848484846118b0565b50505050565b6000818152600260205260409020546060906001600160a01b0316610e815760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b60648201526084016107e0565b60008281526006602052604081208054610e9a9061233a565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec69061233a565b8015610f135780601f10610ee857610100808354040283529160200191610f13565b820191906000526020600020905b815481529060010190602001808311610ef657829003601f168201915b505050505090506000610f246118e3565b9050805160001415610f37575092915050565b815115610f69578082604051602001610f51929190612125565b60405160208183030381529060405292505050919050565b610f72846118f2565b949350505050565b600a5460ff16610fcc5760405162461bcd60e51b815260206004820152601960248201527f53616c6520686173206e6f742073746172746564207965742e0000000000000060448201526064016107e0565b6000811161101c5760405162461bcd60e51b815260206004820152601760248201527f5175616e746974792063616e6e6f74206265207a65726f00000000000000000060448201526064016107e0565b600a8111156110775760405162461bcd60e51b815260206004820152602160248201527f457863656564732031302c20746865206d61782071747920706572206d696e746044820152601760f91b60648201526084016107e0565b6109c48161108361095d565b61108d91906122ac565b11156110ea5760405162461bcd60e51b815260206004820152602660248201527f5175616e74697479207265717565737465642065786365656473206d617820736044820152653ab838363c9760d11b60648201526084016107e0565b80600b546110f891906122d8565b3410156111535760405162461bcd60e51b815260206004820152602360248201527f45746865722076616c75652073656e742069732062656c6f772074686520707260448201526269636560e81b60648201526084016107e0565b600e546040516000916001600160a01b03169034908381818185875af1925050503d80600081146111a0576040519150601f19603f3d011682016040523d82523d6000602084013e6111a5565b606091505b505090508061121c5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016107e0565b60005b8281101561091657600061123260095490565b905061123e33826119cd565b600f5461124b43836122ac565b60408051602081019390935282015260600160408051601f19818403018152918152815160209283012060008481526010909352912055611290600980546001019055565b600081815260106020908152604091829020549151918252339183917f6cd9c6ef9acd0d2ee3d508620a929ac346b2f59037d23472190086cde949cf92910160405180910390a350806112e281612375565b91505061121f565b6060600d80546106e89061233a565b6007546001600160a01b031633146113235760405162461bcd60e51b81526004016107e090612226565b6001600160a01b0381166113885760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107e0565b61139181611820565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906113c9826109fa565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001611472929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161149f93929190612191565b602060405180830381600087803b1580156114b957600080fd5b505af11580156114cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f19190612026565b50600083815260086020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a09091019092528151918301919091209387905291905261154d9060016122ac565b600085815260086020526040902055610f728482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6000818152600260205260408120546001600160a01b03166116065760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107e0565b6000611611836109fa565b9050806001600160a01b0316846001600160a01b0316148061164c5750836001600160a01b03166116418461076b565b6001600160a01b0316145b80610f7257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16610f72565b826001600160a01b0316611693826109fa565b6001600160a01b0316146116fb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107e0565b6001600160a01b03821661175d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107e0565b611768600082611394565b6001600160a01b03831660009081526003602052604081208054600192906117919084906122f7565b90915550506001600160a01b03821660009081526003602052604081208054600192906117bf9084906122ac565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600f81905560405181815282907f06befaa0704abddc846a6dddef96953f7694bc9d2f49bb96b7ede59fb5f198f59060200160405180910390a25050565b6118bb848484611680565b6118c7848484846119e7565b610dfa5760405162461bcd60e51b81526004016107e0906121d4565b6060600c80546106e89061233a565b6000818152600260205260409020546060906001600160a01b03166119715760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107e0565b600061197b6118e3565b9050600081511161199b57604051806020016040528060008152506119c6565b806119a584611af1565b6040516020016119b6929190612125565b6040516020818303038152906040525b9392505050565b6109f6828260405180602001604052806000815250611c0b565b60006001600160a01b0384163b15611ae957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611a2b903390899088908890600401612154565b602060405180830381600087803b158015611a4557600080fd5b505af1925050508015611a75575060408051601f3d908101601f19168201909252611a729181019061207f565b60015b611acf573d808015611aa3576040519150601f19603f3d011682016040523d82523d6000602084013e611aa8565b606091505b508051611ac75760405162461bcd60e51b81526004016107e0906121d4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610f72565b506001610f72565b606081611b155750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b3f5780611b2981612375565b9150611b389050600a836122c4565b9150611b19565b60008167ffffffffffffffff811115611b6857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b92576020820181803683370190505b5090505b8415610f7257611ba76001836122f7565b9150611bb4600a86612390565b611bbf9060306122ac565b60f81b818381518110611be257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611c04600a866122c4565b9450611b96565b611c158383611c3e565b611c2260008484846119e7565b6109165760405162461bcd60e51b81526004016107e0906121d4565b6001600160a01b038216611c945760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107e0565b6000818152600260205260409020546001600160a01b031615611cf95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107e0565b6001600160a01b0382166000908152600360205260408120805460019290611d229084906122ac565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611d8c9061233a565b90600052602060002090601f016020900481019282611dae5760008555611df4565b82601f10611dc757805160ff1916838001178555611df4565b82800160010185558215611df4579182015b82811115611df4578251825591602001919060010190611dd9565b50611e00929150611e04565b5090565b5b80821115611e005760008155600101611e05565b600067ffffffffffffffff80841115611e3457611e346123d0565b604051601f8501601f19908116603f01168101908282118183101715611e5c57611e5c6123d0565b81604052809350858152868686011115611e7557600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611ea657600080fd5b919050565b600060208284031215611ebc578081fd5b6119c682611e8f565b60008060408385031215611ed7578081fd5b611ee083611e8f565b9150611eee60208401611e8f565b90509250929050565b600080600060608486031215611f0b578081fd5b611f1484611e8f565b9250611f2260208501611e8f565b9150604084013590509250925092565b60008060008060808587031215611f47578081fd5b611f5085611e8f565b9350611f5e60208601611e8f565b925060408501359150606085013567ffffffffffffffff811115611f80578182fd5b8501601f81018713611f90578182fd5b611f9f87823560208401611e19565b91505092959194509250565b60008060408385031215611fbd578182fd5b611fc683611e8f565b91506020830135611fd6816123e6565b809150509250929050565b60008060408385031215611ff3578182fd5b611ffc83611e8f565b946020939093013593505050565b60006020828403121561201b578081fd5b81356119c6816123e6565b600060208284031215612037578081fd5b81516119c6816123e6565b60008060408385031215612054578182fd5b50508035926020909101359150565b600060208284031215612074578081fd5b81356119c6816123f4565b600060208284031215612090578081fd5b81516119c6816123f4565b6000602082840312156120ac578081fd5b813567ffffffffffffffff8111156120c2578182fd5b8201601f810184136120d2578182fd5b610f7284823560208401611e19565b6000602082840312156120f2578081fd5b5035919050565b6000815180845261211181602086016020860161230e565b601f01601f19169290920160200192915050565b6000835161213781846020880161230e565b83519083019061214b81836020880161230e565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612187908301846120f9565b9695505050505050565b60018060a01b03841681528260208201526060604082015260006121b860608301846120f9565b95945050505050565b6020815260006119c660208301846120f9565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156122bf576122bf6123a4565b500190565b6000826122d3576122d36123ba565b500490565b60008160001904831182151516156122f2576122f26123a4565b500290565b600082821015612309576123096123a4565b500390565b60005b83811015612329578181015183820152602001612311565b83811115610dfa5750506000910152565b600181811c9082168061234e57607f821691505b6020821081141561236f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612389576123896123a4565b5060010190565b60008261239f5761239f6123ba565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461139157600080fd5b6001600160e01b03198116811461139157600080fdfea264697066735822122020d998eba893760039f84453277f946c85d76388433666a5012e47c8e64fdc6664736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000c79108a7151814a77e1916e61e0d88d5ea935c84000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f7777772e63727970746f686f6f74732e636f6d2f6170692f686f6f74732f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f7777772e63727970746f686f6f74732e636f6d2f6170692f686f6f74732f636f6e7472616374000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102045760003560e01c806380f2152e11610118578063a854ffba116100a0578063ccbac9f51161006f578063ccbac9f5146105bf578063d2083a25146105d5578063e8a3d485146105eb578063e985e9c514610600578063f2fde38b1461064957600080fd5b8063a854ffba1461054c578063b88d4fde1461056c578063c87b56dd1461058c578063c8c18842146105ac57600080fd5b8063938e3d7b116100e7578063938e3d7b146104c157806394985ddd146104e157806395d89b4114610501578063a035b1fe14610516578063a22cb4651461052c57600080fd5b806380f2152e1461044e5780638837f0c2146104635780638da5cb5b1461048357806391b7f5ed146104a157600080fd5b80631c8b232d1161019b5780636352211e1161016a5780636352211e146103b75780636c0360eb146103d75780636e5ed979146103ec57806370a0823114610419578063715018a61461043957600080fd5b80631c8b232d1461033f57806323b872dd1461035757806342842e0e1461037757806355f804b31461039757600080fd5b8063095ea7b3116101d7578063095ea7b3146102ad5780630abead0b146102cf57806311791312146102fd57806318160ddd1461032a57600080fd5b806301ffc9a71461020957806303824f761461023e57806306fdde0314610253578063081812fc14610275575b600080fd5b34801561021557600080fd5b50610229610224366004612063565b610669565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b506102296106bb565b34801561025f57600080fd5b506102686106d9565b60405161023591906121c1565b34801561028157600080fd5b506102956102903660046120e1565b61076b565b6040516001600160a01b039091168152602001610235565b3480156102b957600080fd5b506102cd6102c8366004611fe1565b610805565b005b3480156102db57600080fd5b506102ef6102ea366004612042565b61091b565b604051908152602001610235565b34801561030957600080fd5b506102ef6103183660046120e1565b60009081526010602052604090205490565b34801561033657600080fd5b506102ef61095d565b34801561034b57600080fd5b50600a5460ff16610229565b34801561036357600080fd5b506102cd610372366004611ef7565b61096d565b34801561038357600080fd5b506102cd610392366004611ef7565b61099e565b3480156103a357600080fd5b506102cd6103b236600461209b565b6109b9565b3480156103c357600080fd5b506102956103d23660046120e1565b6109fa565b3480156103e357600080fd5b50610268610a71565b3480156103f857600080fd5b506102ef6104073660046120e1565b60106020526000908152604090205481565b34801561042557600080fd5b506102ef610434366004611eab565b610aff565b34801561044557600080fd5b506102cd610b86565b34801561045a57600080fd5b50610268610bbc565b34801561046f57600080fd5b50600e54610295906001600160a01b031681565b34801561048f57600080fd5b506007546001600160a01b0316610295565b3480156104ad57600080fd5b506102cd6104bc3660046120e1565b610bc9565b3480156104cd57600080fd5b506102cd6104dc36600461209b565b610bf8565b3480156104ed57600080fd5b506102cd6104fc366004612042565b610c35565b34801561050d57600080fd5b50610268610cb7565b34801561052257600080fd5b506102ef600b5481565b34801561053857600080fd5b506102cd610547366004611fab565b610cc6565b34801561055857600080fd5b506102cd61056736600461200a565b610d8b565b34801561057857600080fd5b506102cd610587366004611f32565b610dc8565b34801561059857600080fd5b506102686105a73660046120e1565b610e00565b6102cd6105ba3660046120e1565b610f7a565b3480156105cb57600080fd5b506102ef600f5481565b3480156105e157600080fd5b506102ef6109c481565b3480156105f757600080fd5b506102686112ea565b34801561060c57600080fd5b5061022961061b366004611ec5565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561065557600080fd5b506102cd610664366004611eab565b6112f9565b60006001600160e01b031982166380ac58cd60e01b148061069a57506001600160e01b03198216635b5e139f60e01b145b806106b557506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006109c46106c861095d565b106106d35750600190565b50600090565b6060600080546106e89061233a565b80601f01602080910402602001604051908101604052809291908181526020018280546107149061233a565b80156107615780601f1061073657610100808354040283529160200191610761565b820191906000526020600020905b81548152906001019060200180831161074457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107e95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610810826109fa565b9050806001600160a01b0316836001600160a01b0316141561087e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107e0565b336001600160a01b038216148061089a575061089a813361061b565b61090c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107e0565b6109168383611394565b505050565b6000806109288484611402565b60405190915081907fc620a79baed7e5f06637aa5ab699c2b03ee40b2ae3ba4a91ed1eb0bd00b8ea3b90600090a29392505050565b600061096860095490565b905090565b610977338261158d565b6109935760405162461bcd60e51b81526004016107e09061225b565b610916838383611680565b61091683838360405180602001604052806000815250610dc8565b6007546001600160a01b031633146109e35760405162461bcd60e51b81526004016107e090612226565b80516109f690600c906020840190611d80565b5050565b6000818152600260205260408120546001600160a01b0316806106b55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107e0565b600c8054610a7e9061233a565b80601f0160208091040260200160405190810160405280929190818152602001828054610aaa9061233a565b8015610af75780601f10610acc57610100808354040283529160200191610af7565b820191906000526020600020905b815481529060010190602001808311610ada57829003601f168201915b505050505081565b60006001600160a01b038216610b6a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107e0565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314610bb05760405162461bcd60e51b81526004016107e090612226565b610bba6000611820565b565b600d8054610a7e9061233a565b6007546001600160a01b03163314610bf35760405162461bcd60e51b81526004016107e090612226565b600b55565b6007546001600160a01b03163314610c225760405162461bcd60e51b81526004016107e090612226565b80516109f690600d906020840190611d80565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79521614610cad5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c0060448201526064016107e0565b6109f68282611872565b6060600180546106e89061233a565b6001600160a01b038216331415610d1f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107e0565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6007546001600160a01b03163314610db55760405162461bcd60e51b81526004016107e090612226565b600a805460ff1916911515919091179055565b610dd2338361158d565b610dee5760405162461bcd60e51b81526004016107e09061225b565b610dfa848484846118b0565b50505050565b6000818152600260205260409020546060906001600160a01b0316610e815760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b60648201526084016107e0565b60008281526006602052604081208054610e9a9061233a565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec69061233a565b8015610f135780601f10610ee857610100808354040283529160200191610f13565b820191906000526020600020905b815481529060010190602001808311610ef657829003601f168201915b505050505090506000610f246118e3565b9050805160001415610f37575092915050565b815115610f69578082604051602001610f51929190612125565b60405160208183030381529060405292505050919050565b610f72846118f2565b949350505050565b600a5460ff16610fcc5760405162461bcd60e51b815260206004820152601960248201527f53616c6520686173206e6f742073746172746564207965742e0000000000000060448201526064016107e0565b6000811161101c5760405162461bcd60e51b815260206004820152601760248201527f5175616e746974792063616e6e6f74206265207a65726f00000000000000000060448201526064016107e0565b600a8111156110775760405162461bcd60e51b815260206004820152602160248201527f457863656564732031302c20746865206d61782071747920706572206d696e746044820152601760f91b60648201526084016107e0565b6109c48161108361095d565b61108d91906122ac565b11156110ea5760405162461bcd60e51b815260206004820152602660248201527f5175616e74697479207265717565737465642065786365656473206d617820736044820152653ab838363c9760d11b60648201526084016107e0565b80600b546110f891906122d8565b3410156111535760405162461bcd60e51b815260206004820152602360248201527f45746865722076616c75652073656e742069732062656c6f772074686520707260448201526269636560e81b60648201526084016107e0565b600e546040516000916001600160a01b03169034908381818185875af1925050503d80600081146111a0576040519150601f19603f3d011682016040523d82523d6000602084013e6111a5565b606091505b505090508061121c5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016107e0565b60005b8281101561091657600061123260095490565b905061123e33826119cd565b600f5461124b43836122ac565b60408051602081019390935282015260600160408051601f19818403018152918152815160209283012060008481526010909352912055611290600980546001019055565b600081815260106020908152604091829020549151918252339183917f6cd9c6ef9acd0d2ee3d508620a929ac346b2f59037d23472190086cde949cf92910160405180910390a350806112e281612375565b91505061121f565b6060600d80546106e89061233a565b6007546001600160a01b031633146113235760405162461bcd60e51b81526004016107e090612226565b6001600160a01b0381166113885760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107e0565b61139181611820565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906113c9826109fa565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001611472929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161149f93929190612191565b602060405180830381600087803b1580156114b957600080fd5b505af11580156114cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f19190612026565b50600083815260086020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a09091019092528151918301919091209387905291905261154d9060016122ac565b600085815260086020526040902055610f728482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6000818152600260205260408120546001600160a01b03166116065760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107e0565b6000611611836109fa565b9050806001600160a01b0316846001600160a01b0316148061164c5750836001600160a01b03166116418461076b565b6001600160a01b0316145b80610f7257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16610f72565b826001600160a01b0316611693826109fa565b6001600160a01b0316146116fb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107e0565b6001600160a01b03821661175d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107e0565b611768600082611394565b6001600160a01b03831660009081526003602052604081208054600192906117919084906122f7565b90915550506001600160a01b03821660009081526003602052604081208054600192906117bf9084906122ac565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600f81905560405181815282907f06befaa0704abddc846a6dddef96953f7694bc9d2f49bb96b7ede59fb5f198f59060200160405180910390a25050565b6118bb848484611680565b6118c7848484846119e7565b610dfa5760405162461bcd60e51b81526004016107e0906121d4565b6060600c80546106e89061233a565b6000818152600260205260409020546060906001600160a01b03166119715760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107e0565b600061197b6118e3565b9050600081511161199b57604051806020016040528060008152506119c6565b806119a584611af1565b6040516020016119b6929190612125565b6040516020818303038152906040525b9392505050565b6109f6828260405180602001604052806000815250611c0b565b60006001600160a01b0384163b15611ae957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611a2b903390899088908890600401612154565b602060405180830381600087803b158015611a4557600080fd5b505af1925050508015611a75575060408051601f3d908101601f19168201909252611a729181019061207f565b60015b611acf573d808015611aa3576040519150601f19603f3d011682016040523d82523d6000602084013e611aa8565b606091505b508051611ac75760405162461bcd60e51b81526004016107e0906121d4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610f72565b506001610f72565b606081611b155750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b3f5780611b2981612375565b9150611b389050600a836122c4565b9150611b19565b60008167ffffffffffffffff811115611b6857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b92576020820181803683370190505b5090505b8415610f7257611ba76001836122f7565b9150611bb4600a86612390565b611bbf9060306122ac565b60f81b818381518110611be257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611c04600a866122c4565b9450611b96565b611c158383611c3e565b611c2260008484846119e7565b6109165760405162461bcd60e51b81526004016107e0906121d4565b6001600160a01b038216611c945760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107e0565b6000818152600260205260409020546001600160a01b031615611cf95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107e0565b6001600160a01b0382166000908152600360205260408120805460019290611d229084906122ac565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611d8c9061233a565b90600052602060002090601f016020900481019282611dae5760008555611df4565b82601f10611dc757805160ff1916838001178555611df4565b82800160010185558215611df4579182015b82811115611df4578251825591602001919060010190611dd9565b50611e00929150611e04565b5090565b5b80821115611e005760008155600101611e05565b600067ffffffffffffffff80841115611e3457611e346123d0565b604051601f8501601f19908116603f01168101908282118183101715611e5c57611e5c6123d0565b81604052809350858152868686011115611e7557600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611ea657600080fd5b919050565b600060208284031215611ebc578081fd5b6119c682611e8f565b60008060408385031215611ed7578081fd5b611ee083611e8f565b9150611eee60208401611e8f565b90509250929050565b600080600060608486031215611f0b578081fd5b611f1484611e8f565b9250611f2260208501611e8f565b9150604084013590509250925092565b60008060008060808587031215611f47578081fd5b611f5085611e8f565b9350611f5e60208601611e8f565b925060408501359150606085013567ffffffffffffffff811115611f80578182fd5b8501601f81018713611f90578182fd5b611f9f87823560208401611e19565b91505092959194509250565b60008060408385031215611fbd578182fd5b611fc683611e8f565b91506020830135611fd6816123e6565b809150509250929050565b60008060408385031215611ff3578182fd5b611ffc83611e8f565b946020939093013593505050565b60006020828403121561201b578081fd5b81356119c6816123e6565b600060208284031215612037578081fd5b81516119c6816123e6565b60008060408385031215612054578182fd5b50508035926020909101359150565b600060208284031215612074578081fd5b81356119c6816123f4565b600060208284031215612090578081fd5b81516119c6816123f4565b6000602082840312156120ac578081fd5b813567ffffffffffffffff8111156120c2578182fd5b8201601f810184136120d2578182fd5b610f7284823560208401611e19565b6000602082840312156120f2578081fd5b5035919050565b6000815180845261211181602086016020860161230e565b601f01601f19169290920160200192915050565b6000835161213781846020880161230e565b83519083019061214b81836020880161230e565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612187908301846120f9565b9695505050505050565b60018060a01b03841681528260208201526060604082015260006121b860608301846120f9565b95945050505050565b6020815260006119c660208301846120f9565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156122bf576122bf6123a4565b500190565b6000826122d3576122d36123ba565b500490565b60008160001904831182151516156122f2576122f26123a4565b500290565b600082821015612309576123096123a4565b500390565b60005b83811015612329578181015183820152602001612311565b83811115610dfa5750506000910152565b600181811c9082168061234e57607f821691505b6020821081141561236f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612389576123896123a4565b5060010190565b60008261239f5761239f6123ba565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461139157600080fd5b6001600160e01b03198116811461139157600080fdfea264697066735822122020d998eba893760039f84453277f946c85d76388433666a5012e47c8e64fdc6664736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000c79108a7151814a77e1916e61e0d88d5ea935c84000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f7777772e63727970746f686f6f74732e636f6d2f6170692f686f6f74732f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f7777772e63727970746f686f6f74732e636f6d2f6170692f686f6f74732f636f6e7472616374000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _baseURI_ (string): https://www.cryptohoots.com/api/hoots/
Arg [1] : _contractURI_ (string): https://www.cryptohoots.com/api/hoots/contract
Arg [2] : _accountAddress_ (address): 0xC79108A7151814A77e1916E61e0d88D5EA935c84
Arg [3] : _VRFCoordinator_ (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [4] : _LinkToken_ (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 000000000000000000000000c79108a7151814a77e1916e61e0d88d5ea935c84
Arg [3] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [4] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000026
Arg [6] : 68747470733a2f2f7777772e63727970746f686f6f74732e636f6d2f6170692f
Arg [7] : 686f6f74732f0000000000000000000000000000000000000000000000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [9] : 68747470733a2f2f7777772e63727970746f686f6f74732e636f6d2f6170692f
Arg [10] : 686f6f74732f636f6e7472616374000000000000000000000000000000000000


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.