ETH Price: $3,401.87 (-0.02%)
Gas: 22 Gwei

Token

Meta-Farmers (JC)
 

Overview

Max Total Supply

578 JC

Holders

134

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 JC
0x5432602ae97fa3b102185e547d7c8541865fad56
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
MetaFarmers

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 2 runs

Other Settings:
default evmVersion
File 1 of 20 : MetaFarmers.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

// ************************ @author: F-Society // ************************ //
/*
MMMMMMMMMMMMMMMMMMMMWWWNX0xl:,'..         ..',:lxOXNWWWMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMWX0kdl:;,....             ....,;:ldk0XWMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMN0dc'.           ..','..           .':d0NMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMWXKKNN0o,.            'lxkko;.            'lONNXKXNWMMMMMMMMMMM
MMMMMMMMMMNKxc;ckXNXd,.         .,lO00Odc,.          'oKNXOl;cd0NWMMMMMMMMM
MMMMMMMMNKx:.  .,o0NXkc.       .:xKXOxl;cl;.       .:xKN0d;.  .;d0NWMMMMMMM
MMMMMMWXx:.      .lOXXOl'     .;xXWNkl,.'cl:,.    .cOXX0o'      .;xKWMMMMMM
MMMMMNOl'         .;xXNKx,   .ckXWMNxc'  .;ol'   'o0NXkc.         .ckNMMMMM
MMMWKx:.           .,dKNXd,..:ONMMMNxc'   .:c:,',oKNKx;.           .;xKWMMM
MMW0o'.              .cOXKOxxONMMMMNxc'    .,coxkKX0l'.             .'l0NMM
MN0o'                 .:xKWWWWMMMMMNxc'     .'lOXXOl.                 'o0NM
W0o,.                  .;kNMMMMMMMMNxc'       .lOkc'                   'l0W
Xx,                    .cOWMMMMMMMMNxc'        .:cc,.                   'dK
kc.                   'o0NMMMMMMMMWXxc'         .,ll;.                  .cx
c,.                 .,oKWMMMMMMWWX0d:'.          .;cl:.                  ':
,.                 .:kXWMMMWNKkdl:,.              .,loc'.                .'
..                'ckNWNK0kdl;'.                   .':lc,.                .
..              .'okOOxo:'.                          .;lc,.               .
::;;;;;;;;;;;,,:oxOkl..                              .;oxxo:,,;;;;;;;;;;;::
KK00KKKXXXXXXXKXNNX0d;..                          ..;lkKNNNXXXXXXXXXXKK00KK
OxdoxOKWMMMMMMMMMMWWXKOko;..                   .':dO0KXNWWMMMMMMMMMWXOxodxk
c,...,l0NWMMMMMMMMWWWMMWNKkdc,.             .;oxk00koox0XWMMMMMMMWN0o,...,:
c,.   .ckXMMMMMWX0xdOXWMMMMWX0xl;'.     .,:lxKX0xl;,',:ox0XWMMMMMNkl'   .':
kc.    .:kNWWN0xl;..,oONMMMMMMWNKko:,,;:dO00Oko;...';:,..,cd0XWWNOc.    .:x
Xx'     .:dkko,.     .:kXWMMMMMMMWNXXKKK0kd:'.  .':c;'.    .,lkkd:.     'dK
W0l'      ....        .:xKWMMMMMMMMWXKOo,.     .;loc.        ....      .cOW
WKd;.                .'lOXWMMMMMMMMNko:.      .lOK0d;.                .,o0W
Nk:.              .'cx0XNWMMMMMMMMMNxc'     .,lONMWN0xc'.              .;kN
Nx,             .;okXWMMMMMMMMMMMMMNxc'    .;xKWMMMMMWXOo;.             'xX
W0o,.           'lOWMMMMMMMMMMMMMMMNxc'   'lONMMMMMMMMMW0l'.           'l0W
MWKx;.           'lOXWMMMMMMMMMMMMMNxc' .'oKWMMMMMMMMWXOl,.          .;dKNM
MMWXkl'.          .'lOXWMMMMMMMMMMWXxc,':kXWMMMMMMMWXOl'.          .'ckXWMM
MMMMWKxc;;,,..      .'lOXWMMMMMMMMWXOxdd0NMMMMMMMWXOl,.      ..,,;;:xKNMMMM
MMMMMWNXXKKKOl'.      .'ckXWWMMMMMWWNNNNWMMMMMMWXkc'.      .'lkKKKKXNWMMMMM
MMMMMMMMMMMMWX0dc'.      .;d0NWWMMMMMMMMMMMWWNKx:..     .':dOXWMMMMMMMMMMMM
MMMMMMMMMMMMMMMNKOxl;'.    .,lx0NWMMMMMMMWN0xl;.    ..;ldOKNMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMWNKkdl:;,...':d0NWMMMWNKx:'...,;:ldkKNWMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMWWNX0xl,. .;d0NMMMWKx:. .,cx0XNWWWMMMMMMMMMMMMMMMMMMMM

#     # ####### #######    #       #######    #    ######  #     # ####### ######   #####
##   ## #          #      # #      #         # #   #     # ##   ## #       #     # #     #
# # # # #          #     #   #     #        #   #  #     # # # # # #       #     # #
#  #  # #####      #    #     #    #####   #     # ######  #  #  # #####   ######   #####
#     # #          #    #######    #       ####### #   #   #     # #       #   #         #
#     # #          #    #     #    #       #     # #    #  #     # #       #    #  #     #
#     # #######    #    #     #    #       #     # #     # #     # ####### #     #  #####
*/
// *************************************************************************** //
contract MetaFarmers is
  ERC721,
  PaymentSplitter,
  Pausable,
  Ownable,
  ReentrancyGuard
{
  using Counters for Counters.Counter;
  Counters.Counter private _tokenSupply;
  uint64 public constant MAX_SUPPLY = 3999;
  uint64 public constant RAFFLE_SUPPLY = 399;
  uint64 public publicRedeemedCount;
  uint64 public raffleRedeemedCount;
  uint128 public rafflePrivateRedeemedCount;
  uint128 public whitelistRedeemedCount;
  uint256 public PRICE = 0.17 ether;
  uint256 public RAFFLE_PRICE = 0.15 ether;
  uint256 public constant PRIVATE_RAFFLE_PRICE = 0.15 ether;
  uint256 public constant WHITELIST_PRICE = 0.16 ether;

  mapping(address => uint256) public raffleRedeemed;
  mapping(address => uint256) public privateRaffleRedeemed;
  mapping(address => uint256) public privateRedeemed;
  mapping(address => uint256) public publicRedeemed;

  WorkflowStatus public workflow;

  event RaffleMint(address indexed _minter, uint256 _amount, uint256 _price);
  event PrivateRaffleMint(
    address indexed _minter,
    uint256 _amount,
    uint256 _price
  );
  event PrivateMint(address indexed _minter, uint256 _amount, uint256 _price);
  event PublicMint(address indexed _minter, uint256 _amount, uint256 _price);

  uint256[] private teamShares_ = [80,200,100,100,100, 1000, 100, 133, 133, 134];

  address[] private team_ = [
    0x118aB57514481103D54fBa63a08EdDa2eBE55309,
    0x6110b1BBb5Adb7BA07a137a86C02012F9Af88703,
    0xa5bbE2Cd62e275d4Ecaa9a752783823308ACc4d0,
    0x23C625789c391463997267BDD8b21e5E266014F6,
    0xbFb7aA27c6A7977a65b97b679A68cDDF73b89509,
    0x52f29aEED85B76C8DAc820D397E58f06CBe40Ef9,
    0x8cD6127C34B3AC7749430Ae466a0e8f9ebE0d364,
    0x7B0c2F65A7DC95b11B0b99111192bfddA2F08271,
    0x655d8A60345188b2C94d543dE4eafF58905A40fD,
    0xD7E39C749A9c34bff1Dac37b4681B9636F87Ff9A
  ];

  enum WorkflowStatus {
    Before,
    Raffle,
    PrivateRaffle,
    Presale,
    Sale,
    SoldOut,
    Reveal
  }

  bool public revealed;
  string public baseURI;
  string public notRevealedUri;

  bytes32 public raffleWhitelist;
  bytes32 public privateWhitelist;

  constructor(
    string memory _initNotRevealedUri,
    bytes32 _raffleWhitelist,
    bytes32 _privateWhitelist
  ) ERC721("Meta-Farmers", "JC") PaymentSplitter(team_, teamShares_) {
    transferOwnership(msg.sender);
    revealed = false;
    workflow = WorkflowStatus.Before;
    setNotRevealedURI(_initNotRevealedUri);
    raffleWhitelist = _raffleWhitelist;
    privateWhitelist = _privateWhitelist;
  }

  function redeemRaffle(uint64 amount, bytes32[] calldata proof)
    external
    payable
    whenNotPaused
  {
    require(workflow == WorkflowStatus.Raffle, "Raffle sale has ended");

    bool isOnWhitelist = _verifyRaffle(_leaf(msg.sender, 1), proof);
    require(
      isOnWhitelist,
      "address not verified on the raffle winners whitelist"
    );
    require(
      RAFFLE_SUPPLY >= raffleRedeemedCount + amount,
      "cannot mint tokens. will go over raffle supply limit"
    );

    uint256 price = RAFFLE_PRICE;
    uint256 max = MAX_SUPPLY;
    uint256 maxAmount = 5;
    uint256 currentSupply = _tokenSupply.current();
    uint256 alreadyRedeemed = raffleRedeemed[msg.sender];
    uint256 supply = currentSupply + amount;

    require(supply <= max, "Sold out !");
    require(
      alreadyRedeemed + amount <= maxAmount,
      "tokens minted will go over user limit"
    );
    require(price * amount <= msg.value, "Meta-Farmers: Insuficient funds");

    emit RaffleMint(msg.sender, amount, price);

    raffleRedeemed[msg.sender] = raffleRedeemed[msg.sender] + amount;
    for (uint256 i = 0; i < amount; i++) {
      raffleRedeemedCount = raffleRedeemedCount++;
      _tokenSupply.increment();
      _safeMint(msg.sender, _tokenSupply.current());
    }
  }

  function redeemPrivateRaffle(uint64 amount, bytes32[] calldata proof)
    external
    payable
    whenNotPaused
  {
    require(workflow == WorkflowStatus.PrivateRaffle, "Raffle sale has ended");

    bool isOnWhitelist = _verifyRaffle(_leaf(msg.sender, 1), proof);
    require(
      isOnWhitelist,
      "address not verified on the raffle winners whitelist"
    );

    uint256 price = RAFFLE_PRICE;
    uint256 max = MAX_SUPPLY;
    uint256 maxAmount = 5;
    uint256 alreadyRedeemed = privateRaffleRedeemed[msg.sender];
    uint256 currentSupply = _tokenSupply.current();
    uint256 supply = currentSupply + amount;

    require(supply <= max, "Sold out !");
    require(
      alreadyRedeemed + amount <= maxAmount,
      "tokens minted will go over user limit"
    );
    require(price * amount <= msg.value, "Meta-Farmers: Insuficient funds");

    emit PrivateRaffleMint(msg.sender, amount, price);

    privateRaffleRedeemed[msg.sender] =
      privateRaffleRedeemed[msg.sender] +
      amount;
    for (uint256 i = 0; i < amount; i++) {
      rafflePrivateRedeemedCount = rafflePrivateRedeemedCount++;
      _tokenSupply.increment();
      _safeMint(msg.sender, _tokenSupply.current());
    }
  }

  function redeemPrivateSale(uint64 amount, bytes32[] calldata proof)
    external
    payable
    whenNotPaused
  {
    require(amount > 0, "need to mint at least one token");
    require(workflow != WorkflowStatus.SoldOut, "Meta-Farmers: SOLD OUT!");
    require(
      workflow == WorkflowStatus.Presale,
      "Meta-Farmers: private sale is not started yet"
    );

    bool isOnWhitelist = _verifyPrivate(_leaf(msg.sender, 1), proof);
    require(
      isOnWhitelist,
      "address not verified on the private sale whitelist"
    );

    uint256 price = WHITELIST_PRICE;
    uint256 maxAmount = 5;
    uint256 alreadyRedeemed = privateRedeemed[msg.sender];
    uint256 currentSupply = _tokenSupply.current();
    uint256 supply = currentSupply + amount;

    require(
      alreadyRedeemed + amount <= maxAmount,
      "Meta-Farmers: You can't mint more than 5 tokens!"
    );
    require(supply <= MAX_SUPPLY, "Sold out !");
    require(price * amount <= msg.value, "Meta-Farmers: Insuficient funds");

    whitelistRedeemedCount = whitelistRedeemedCount + amount;
    emit PrivateMint(msg.sender, amount, price);

    uint256 initial = 1;
    uint256 condition = amount;
    if (currentSupply == MAX_SUPPLY) {
      workflow = WorkflowStatus.SoldOut;
    }
    privateRedeemed[msg.sender] = privateRedeemed[msg.sender] + condition;
    for (uint256 i = initial; i <= condition; i++) {
      _tokenSupply.increment();
      _safeMint(msg.sender, _tokenSupply.current());
    }
  }

  function publicSaleMint(uint64 amount)
    external
    payable
    nonReentrant
    whenNotPaused
  {
    require(amount > 0, "need to mint at least one token");
    require(workflow != WorkflowStatus.SoldOut, "Meta-Farmers: SOLD OUT!");
    require(
      workflow == WorkflowStatus.Sale,
      "Meta-Farmers: public sale is not started yet"
    );

    uint256 price = PRICE;
    uint256 maxAmount = 10;
    uint256 alreadyRedeemed = publicRedeemed[msg.sender];
    uint256 currentSupply = _tokenSupply.current();
    uint256 supply = currentSupply + amount;
    require(
      alreadyRedeemed + amount <= maxAmount,
      "Meta-Farmers: You can't mint more than 5 tokens!"
    );
    require(supply <= MAX_SUPPLY, "Meta-Farmers: Sold out !");
    require(price * amount <= msg.value, "Meta-Farmers: Insuficient funds");

    publicRedeemedCount = publicRedeemedCount + amount;
    emit PublicMint(msg.sender, amount, price);

    uint256 initial = 1;
    uint256 condition = amount;
    if (currentSupply + amount == MAX_SUPPLY) {
      workflow = WorkflowStatus.SoldOut;
    }
    publicRedeemed[msg.sender] = publicRedeemed[msg.sender] + condition;
    for (uint256 i = initial; i <= condition; i++) {
      _tokenSupply.increment();
      _safeMint(msg.sender, _tokenSupply.current());
    }
  }

  function gift(uint64 _mintAmount) public onlyOwner {
    require(_mintAmount > 0, "Meta-Farmers: need to mint at least 1 NFT");

    uint256 currentSupply = _tokenSupply.current();
    uint256 supply = currentSupply + _mintAmount;
    require(supply <= MAX_SUPPLY, "Meta-Farmers: Sold out !");

    uint256 condition = _mintAmount;
    if (currentSupply + _mintAmount == MAX_SUPPLY) {
      workflow = WorkflowStatus.SoldOut;
    }

    for (uint256 i = 1; i <= condition; i++) {
      _tokenSupply.increment();
      _safeMint(msg.sender, _tokenSupply.current());
    }
  }

  function giveaway(address[] memory giveawayAddressTable) public onlyOwner {
    uint256 _mintAmount = giveawayAddressTable.length;
    require(giveawayAddressTable.length > 0, "Meta-Farmers:at least 1 NFT");

    uint256 currentSupply = _tokenSupply.current();
    uint256 supply = currentSupply + _mintAmount;
    require(supply <= MAX_SUPPLY, "Meta-Farmers: Sold out !");

    if (currentSupply + _mintAmount == MAX_SUPPLY) {
      workflow = WorkflowStatus.SoldOut;
    }

    for (uint256 i = 1; i <= _mintAmount; i++) {
      _tokenSupply.increment();
      _safeMint(giveawayAddressTable[i], _tokenSupply.current());
    }
  }

  /***************************
   * Owner Protected Functions
   ***************************/

  function pause() public onlyOwner {
    _pause();
  }

  function unpause() public onlyOwner {
    _unpause();
  }

  function totalSupply() external view returns (uint256) {
    uint256 supply = _tokenSupply.current();
    return supply;
  }

  function setRaffleWhitelist(bytes32 whitelist_) public onlyOwner {
    raffleWhitelist = whitelist_;
  }

  function setprivateWhitelist(bytes32 whitelist_) public onlyOwner {
    privateWhitelist = whitelist_;
  }

  function setRaffleSaleEnabled() public onlyOwner {
    workflow = WorkflowStatus.Raffle;
  }

  function setPrivateRaffleSaleEnabled() public onlyOwner {
    workflow = WorkflowStatus.PrivateRaffle;
  }

  function setPrivateSaleEnabled() public onlyOwner {
    workflow = WorkflowStatus.Presale;
  }

  function setPublicSaleEnabled() public onlyOwner {
    workflow = WorkflowStatus.Sale;
  }

  function getWorkflowStatus() public view returns (WorkflowStatus) {
    return workflow;
  }

  function _leaf(address account, uint256 amount)
    internal
    pure
    returns (bytes32)
  {
    return keccak256(abi.encodePacked(account, amount));
  }

  function _verifyRaffle(bytes32 leaf, bytes32[] memory proof)
    internal
    view
    returns (bool)
  {
    return MerkleProof.verify(proof, raffleWhitelist, leaf);
  }

  function _verifyPrivate(bytes32 leaf, bytes32[] memory proof)
    internal
    view
    returns (bool)
  {
    return MerkleProof.verify(proof, privateWhitelist, leaf);
  }

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

  /*************************************************************
   * The following functions are overrides required by Solidity.
   *************************************************************/

  function _toString(uint256 v) internal pure returns (string memory str) {
    if (v == 0) {
      return "0";
    }
    uint256 maxlength = 100;
    bytes memory reversed = new bytes(maxlength);
    uint256 i = 0;
    while (v != 0) {
      uint256 remainder = v % 10;
      v = v / 10;
      reversed[i++] = bytes1(uint8(48 + remainder));
    }
    bytes memory s = new bytes(i);
    for (uint256 j = 0; j < i; j++) {
      s[j] = reversed[i - 1 - j];
    }
    str = string(s);
  }

  function tokenURI(uint256 tokenId)
    public
    view
    override(ERC721)
    returns (string memory)
  {
    if (revealed == false) {
      return notRevealedUri;
    }

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

  function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner {
    notRevealedUri = _notRevealedURI;
  }

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

  function setPrivatePrice(uint256 _price) public onlyOwner {
    RAFFLE_PRICE = _price;
  }

  function reveal(string memory revealedBaseURI) public onlyOwner {
    baseURI = revealedBaseURI;
    revealed = true;
  }

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

File 2 of 20 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 3 of 20 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 20 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

File 5 of 20 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(account, totalReceived, released(account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        uint256 payment = _pendingPayment(account, totalReceived, released(token, account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: 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 {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev 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 20 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 10 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

File 12 of 20 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_initNotRevealedUri","type":"string"},{"internalType":"bytes32","name":"_raffleWhitelist","type":"bytes32"},{"internalType":"bytes32","name":"_privateWhitelist","type":"bytes32"}],"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":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_price","type":"uint256"}],"name":"PrivateMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_price","type":"uint256"}],"name":"PrivateRaffleMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_price","type":"uint256"}],"name":"PublicMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_price","type":"uint256"}],"name":"RaffleMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRIVATE_RAFFLE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RAFFLE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RAFFLE_SUPPLY","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWorkflowStatus","outputs":[{"internalType":"enum MetaFarmers.WorkflowStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_mintAmount","type":"uint64"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"giveawayAddressTable","type":"address[]"}],"name":"giveaway","outputs":[],"stateMutability":"nonpayable","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":"notRevealedUri","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"privateRaffleRedeemed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"privateRedeemed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateWhitelist","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicRedeemed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicRedeemedCount","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"amount","type":"uint64"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"rafflePrivateRedeemedCount","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"raffleRedeemed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raffleRedeemedCount","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raffleWhitelist","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"amount","type":"uint64"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"redeemPrivateRaffle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint64","name":"amount","type":"uint64"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"redeemPrivateSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint64","name":"amount","type":"uint64"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"redeemRaffle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"revealedBaseURI","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrivatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPrivateRaffleSaleEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPrivateSaleEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPublicSaleEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setRaffleSaleEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"whitelist_","type":"bytes32"}],"name":"setRaffleWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"whitelist_","type":"bytes32"}],"name":"setprivateWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistRedeemedCount","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"workflow","outputs":[{"internalType":"enum MetaFarmers.WorkflowStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

67025bf6196bd10000601255670214e8348c4f00006013556101c06040526050608090815260c860a052606460c081905260e08190526101008190526103e8610120526101405260856101608190526101805260866101a0526200006890601990600a620007af565b50604080516101408101825273118ab57514481103d54fba63a08edda2ebe553098152736110b1bbb5adb7ba07a137a86c02012f9af88703602082015273a5bbe2cd62e275d4ecaa9a752783823308acc4d0918101919091527323c625789c391463997267bdd8b21e5e266014f6606082015273bfb7aa27c6a7977a65b97b679a68cddf73b8950960808201527352f29aeed85b76c8dac820d397e58f06cbe40ef960a0820152738cd6127c34b3ac7749430ae466a0e8f9ebe0d36460c0820152737b0c2f65a7dc95b11b0b99111192bfdda2f0827160e082015273655d8a60345188b2c94d543de4eaff58905a40fd61010082015273d7e39c749a9c34bff1dac37b4681b9636f87ff9a6101208201526200018990601a90600a62000805565b503480156200019757600080fd5b5060405162004d0038038062004d00833981016040819052620001ba91620008f1565b601a8054806020026020016040519081016040528092919081815260200182805480156200021257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311620001f3575b505050505060198054806020026020016040519081016040528092919081815260200182805480156200026557602002820191906000526020600020905b81548152602001906001019080831162000250575b5050604080518082018252600c81526b4d6574612d4661726d65727360a01b6020808301918252835180850190945260028452614a4360f01b908401528151919550919350620002ba9250600091906200085d565b508051620002d09060019060208401906200085d565b5050508051825114620003455760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620003985760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200033c565b60005b82518110156200040457620003ef838281518110620003be57620003be62000aa2565b6020026020010151838381518110620003db57620003db62000aa2565b60200260200101516200045d60201b60201c565b80620003fb8162000a6e565b9150506200039b565b5050600d805460ff19169055506200041c336200064b565b6001600e556200042c33620006a5565b601b805460ff199081169091556018805490911690556200044d836200074e565b601e91909155601f555062000ace565b6001600160a01b038216620004ca5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200033c565b600081116200051c5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200033c565b6001600160a01b03821660009081526008602052604090205415620005985760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200033c565b600a8054600181019091557fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b0319166001600160a01b03841690811790915560009081526008602052604090208190556006546200060290829062000a16565b600655604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b600d80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b33620006b06200079b565b6001600160a01b031614620006d95760405162461bcd60e51b81526004016200033c90620009e1565b6001600160a01b038116620007405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016200033c565b6200074b816200064b565b50565b33620007596200079b565b6001600160a01b031614620007825760405162461bcd60e51b81526004016200033c90620009e1565b80516200079790601d9060208401906200085d565b5050565b600d5461010090046001600160a01b031690565b828054828255906000526020600020908101928215620007f3579160200282015b82811115620007f3578251829061ffff16905591602001919060010190620007d0565b5062000801929150620008da565b5090565b828054828255906000526020600020908101928215620007f3579160200282015b82811115620007f357825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000826565b8280546200086b9062000a31565b90600052602060002090601f0160209004810192826200088f5760008555620007f3565b82601f10620008aa57805160ff1916838001178555620007f3565b82800160010185558215620007f3579182015b82811115620007f3578251825591602001919060010190620008bd565b5b80821115620008015760008155600101620008db565b6000806000606084860312156200090757600080fd5b83516001600160401b03808211156200091f57600080fd5b818601915086601f8301126200093457600080fd5b81518181111562000949576200094962000ab8565b604051601f8201601f19908116603f0116810190838211818310171562000974576200097462000ab8565b816040528281526020935089848487010111156200099157600080fd5b600091505b82821015620009b5578482018401518183018501529083019062000996565b82821115620009c75760008484830101525b928801516040909801519299979850919695505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111562000a2c5762000a2c62000a8c565b500190565b600181811c9082168062000a4657607f821691505b6020821081141562000a6857634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000a855762000a8562000a8c565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6142228062000ade6000396000f3fe6080604052600436106102f85760003560e01c80630189c66c1461033d57806301ffc9a71461037a57806306fdde03146103aa578063081812fc146103cc578063081c8c44146103f9578063095ea7b31461040e57806317e7f2951461043057806318160ddd1461045a578063191655871461046f57806320b31af71461048f57806323b872dd146104b657806328d46df0146104d65780632fc66c1a146104f657806332cb6b0c14610535578063378b4f271461054b57806338503a4d1461056b5780633a98ef39146105875780633f4ba83a1461059c578063406072a9146105b157806342842e0e146105d157806348b75044146105f157806349077223146106115780634c26124714610624578063518302271461064457806355e39d9b1461065e57806355f804b31461067e5780635c975abb1461069e5780636352211e146106b6578063696d4ce4146106d65780636c0360eb146106e957806370a08231146106fe578063715018a61461071e5780638456cb59146107335780638b83209b146107485780638d859f3e146107685780638da5cb5b1461077e57806391b7f5ed1461079357806395d89b41146107b35780639852595c146107c85780639939494b146107e85780639ae03e02146107fd578063a10f151e1461082a578063a22cb4651461084a578063a33441251461086a578063a65e83f814610891578063b03a2340146108a7578063b88d4fde146108d4578063c87b56dd146108f4578063cac5cb7814610914578063ce7c2ac214610929578063d17a18cd1461095f578063d2eca83414610975578063d3e46dce146109a2578063d63dd701146109cf578063d79779b2146109e2578063d82c7dcb14610a02578063dc61764a14610a15578063dc69591614610a2b578063e2298c7414610a4b578063e33b7de314610a60578063e3bba16914610a75578063e8f0165d14610a8a578063e985e9c514610aaa578063ee1e36bd14610aca578063f2c4ce1e14610ae0578063f2fde38b14610b00578063f75d64a614610b2057600080fd5b36610338577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770333460405161032e929190613b2b565b60405180910390a1005b600080fd5b34801561034957600080fd5b5060115461035d906001600160801b031681565b6040516001600160801b0390911681526020015b60405180910390f35b34801561038657600080fd5b5061039a610395366004613965565b610b38565b6040519015158152602001610371565b3480156103b657600080fd5b506103bf610b8a565b6040516103719190613ba9565b3480156103d857600080fd5b506103ec6103e736600461394c565b610c1c565b6040516103719190613b17565b34801561040557600080fd5b506103bf610ca9565b34801561041a57600080fd5b5061042e61042936600461384b565b610d37565b005b34801561043c57600080fd5b5061044c6702386f26fc10000081565b604051908152602001610371565b34801561046657600080fd5b5061044c610e48565b34801561047b57600080fd5b5061042e61048a366004613707565b610e54565b34801561049b57600080fd5b5060105461035d90600160801b90046001600160801b031681565b3480156104c257600080fd5b5061042e6104d136600461375d565b610f63565b3480156104e257600080fd5b5061042e6104f1366004613877565b610f94565b34801561050257600080fd5b5060105461051d90600160401b90046001600160401b031681565b6040516001600160401b039091168152602001610371565b34801561054157600080fd5b5061051d610f9f81565b34801561055757600080fd5b5061042e61056636600461394c565b6110ca565b34801561057757600080fd5b5061044c670214e8348c4f000081565b34801561059357600080fd5b5060065461044c565b3480156105a857600080fd5b5061042e6110fe565b3480156105bd57600080fd5b5061044c6105cc366004613724565b611137565b3480156105dd57600080fd5b5061042e6105ec36600461375d565b611162565b3480156105fd57600080fd5b5061042e61060c366004613724565b61117d565b61042e61061f366004613a1b565b611333565b34801561063057600080fd5b5061042e61063f36600461399f565b6116b1565b34801561065057600080fd5b50601b5461039a9060ff1681565b34801561066a57600080fd5b5061042e610679366004613a00565b611704565b34801561068a57600080fd5b5061042e61069936600461399f565b611846565b3480156106aa57600080fd5b50600d5460ff1661039a565b3480156106c257600080fd5b506103ec6106d136600461394c565b61188c565b61042e6106e4366004613a1b565b611903565b3480156106f557600080fd5b506103bf611baa565b34801561070a57600080fd5b5061044c610719366004613707565b611bb7565b34801561072a57600080fd5b5061042e611c3e565b34801561073f57600080fd5b5061042e611c77565b34801561075457600080fd5b506103ec61076336600461394c565b611cae565b34801561077457600080fd5b5061044c60125481565b34801561078a57600080fd5b506103ec611cde565b34801561079f57600080fd5b5061042e6107ae36600461394c565b611cf2565b3480156107bf57600080fd5b506103bf611d26565b3480156107d457600080fd5b5061044c6107e3366004613707565b611d35565b3480156107f457600080fd5b5061042e611d50565b34801561080957600080fd5b5061044c610818366004613707565b60156020526000908152604090205481565b34801561083657600080fd5b5061042e61084536600461394c565b611d95565b34801561085657600080fd5b5061042e61086536600461381d565b611dc9565b34801561087657600080fd5b506018546108849060ff1681565b6040516103719190613b81565b34801561089d57600080fd5b5061051d61018f81565b3480156108b357600080fd5b5061044c6108c2366004613707565b60176020526000908152604090205481565b3480156108e057600080fd5b5061042e6108ef36600461379e565b611dd4565b34801561090057600080fd5b506103bf61090f36600461394c565b611e0c565b34801561092057600080fd5b5061042e611f8a565b34801561093557600080fd5b5061044c610944366004613707565b6001600160a01b031660009081526008602052604090205490565b34801561096b57600080fd5b5061044c601f5481565b34801561098157600080fd5b5061044c610990366004613707565b60146020526000908152604090205481565b3480156109ae57600080fd5b5061044c6109bd366004613707565b60166020526000908152604090205481565b61042e6109dd366004613a00565b611fcd565b3480156109ee57600080fd5b5061044c6109fd366004613707565b6122f2565b61042e610a10366004613a1b565b61230d565b348015610a2157600080fd5b5061044c601e5481565b348015610a3757600080fd5b5060105461051d906001600160401b031681565b348015610a5757600080fd5b5061042e61260c565b348015610a6c57600080fd5b5060075461044c565b348015610a8157600080fd5b5061042e61264f565b348015610a9657600080fd5b5061042e610aa536600461394c565b612692565b348015610ab657600080fd5b5061039a610ac5366004613724565b6126c6565b348015610ad657600080fd5b5061044c60135481565b348015610aec57600080fd5b5061042e610afb36600461399f565b6126f4565b348015610b0c57600080fd5b5061042e610b1b366004613707565b612736565b348015610b2c57600080fd5b5060185460ff16610884565b60006001600160e01b031982166380ac58cd60e01b1480610b6957506001600160e01b03198216635b5e139f60e01b145b80610b8457506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610b9990614077565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc590614077565b8015610c125780601f10610be757610100808354040283529160200191610c12565b820191906000526020600020905b815481529060010190602001808311610bf557829003601f168201915b5050505050905090565b6000610c27826127d6565b610c8d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b601d8054610cb690614077565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce290614077565b8015610d2f5780601f10610d0457610100808354040283529160200191610d2f565b820191906000526020600020905b815481529060010190602001808311610d1257829003601f168201915b505050505081565b6000610d428261188c565b9050806001600160a01b0316836001600160a01b03161415610db05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c84565b336001600160a01b0382161480610dcc5750610dcc81336126c6565b610e395760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610c84565b610e4383836127f3565b505050565b600080610b84600f5490565b6001600160a01b038116600090815260086020526040902054610e895760405162461bcd60e51b8152600401610c8490613c0e565b6000610e9460075490565b610e9e9047613fc7565b90506000610eb58383610eb086611d35565b612861565b905080610ed45760405162461bcd60e51b8152600401610c8490613c99565b6001600160a01b03831660009081526009602052604081208054839290610efc908490613fc7565b925050819055508060076000828254610f159190613fc7565b90915550610f25905083826128a7565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568382604051610f56929190613b2b565b60405180910390a1505050565b610f6d33826129bd565b610f895760405162461bcd60e51b8152600401610c8490613ebb565b610e43838383612a7f565b33610f9d611cde565b6001600160a01b031614610fc35760405162461bcd60e51b8152600401610c8490613da8565b8051806110105760405162461bcd60e51b815260206004820152601b60248201527a13595d184b51985c9b595c9cce985d081b19585cdd080c48139195602a1b6044820152606401610c84565b600061101b600f5490565b905060006110298383613fc7565b9050610f9f81111561104d5760405162461bcd60e51b8152600401610c8490613d0e565b610f9f61105a8484613fc7565b141561106e576018805460ff191660051790555b60015b8381116110c357611086600f80546001019055565b6110b185828151811061109b5761109b614167565b60200260200101516110ac600f5490565b612c0d565b806110bb816140d9565b915050611071565b5050505050565b336110d3611cde565b6001600160a01b0316146110f95760405162461bcd60e51b8152600401610c8490613da8565b601e55565b33611107611cde565b6001600160a01b03161461112d5760405162461bcd60e51b8152600401610c8490613da8565b611135612c27565b565b6001600160a01b039182166000908152600c6020908152604080832093909416825291909152205490565b610e4383838360405180602001604052806000815250611dd4565b6001600160a01b0381166000908152600860205260409020546111b25760405162461bcd60e51b8152600401610c8490613c0e565b60006111bd836122f2565b6040516370a0823160e01b81526001600160a01b038516906370a08231906111e9903090600401613b17565b60206040518083038186803b15801561120157600080fd5b505afa158015611215573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123991906139e7565b6112439190613fc7565b905060006112568383610eb08787611137565b9050806112755760405162461bcd60e51b8152600401610c8490613c99565b6001600160a01b038085166000908152600c60209081526040808320938716835292905290812080548392906112ac908490613fc7565b90915550506001600160a01b0384166000908152600b6020526040812080548392906112d9908490613fc7565b909155506112ea9050848483612cb4565b836001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8483604051611325929190613b2b565b60405180910390a250505050565b600d5460ff16156113565760405162461bcd60e51b8152600401610c8490613ce4565b6000836001600160401b03161161137f5760405162461bcd60e51b8152600401610c8490613e84565b600560185460ff16600681111561139857611398614151565b14156113b65760405162461bcd60e51b8152600401610c8490613d77565b600360185460ff1660068111156113cf576113cf614151565b146114325760405162461bcd60e51b815260206004820152602d60248201527f4d6574612d4661726d6572733a20707269766174652073616c65206973206e6f60448201526c1d081cdd185c9d1959081e595d609a1b6064820152608401610c84565b600061147b611442336001612d0a565b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612d4c92505050565b9050806114e55760405162461bcd60e51b815260206004820152603260248201527f61646472657373206e6f74207665726966696564206f6e207468652070726976604482015271185d19481cd85b19481dda1a5d195b1a5cdd60721b6064820152608401610c84565b33600090815260166020526040812054600f546702386f26fc10000092600592919061151a6001600160401b038a1683613fc7565b9050836115306001600160401b038b1685613fc7565b111561154e5760405162461bcd60e51b8152600401610c8490613f0c565b610f9f8111156115705760405162461bcd60e51b8152600401610c8490613ddd565b346115846001600160401b038b1687614015565b11156115a25760405162461bcd60e51b8152600401610c8490613d40565b6011546115c2906001600160401b038b16906001600160801b0316613fa5565b601180546001600160801b0319166001600160801b039290921691909117905560405133907f5a9bb1a07cf4b32f75aadb39ccc14dfdc985cb16bdddd078a7959ee819258cf490611616908c908990613f5c565b60405180910390a260016001600160401b038a16610f9f841415611642576018805460ff191660051790555b3360009081526016602052604090205461165d908290613fc7565b33600090815260166020526040902055815b8181116116a357611684600f80546001019055565b611691336110ac600f5490565b8061169b816140d9565b91505061166f565b505050505050505050505050565b336116ba611cde565b6001600160a01b0316146116e05760405162461bcd60e51b8152600401610c8490613da8565b80516116f390601c9060208401906135fb565b5050601b805460ff19166001179055565b3361170d611cde565b6001600160a01b0316146117335760405162461bcd60e51b8152600401610c8490613da8565b6000816001600160401b03161161179e5760405162461bcd60e51b815260206004820152602960248201527f4d6574612d4661726d6572733a206e65656420746f206d696e74206174206c65604482015268185cdd080c4813919560ba1b6064820152608401610c84565b60006117a9600f5490565b905060006117c06001600160401b03841683613fc7565b9050610f9f8111156117e45760405162461bcd60e51b8152600401610c8490613d0e565b6001600160401b038316610f9f6117fb8285613fc7565b141561180f576018805460ff191660051790555b60015b8181116110c357611827600f80546001019055565b611834336110ac600f5490565b8061183e816140d9565b915050611812565b3361184f611cde565b6001600160a01b0316146118755760405162461bcd60e51b8152600401610c8490613da8565b805161188890601c9060208401906135fb565b5050565b6000818152600260205260408120546001600160a01b031680610b845760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c84565b600d5460ff16156119265760405162461bcd60e51b8152600401610c8490613ce4565b600260185460ff16600681111561193f5761193f614151565b1461195c5760405162461bcd60e51b8152600401610c8490613e55565b60006119a561196c336001612d0a565b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612d5b92505050565b9050806119c45760405162461bcd60e51b8152600401610c8490613e01565b60135433600090815260156020526040812054600f54610f9f9260059291906119f66001600160401b038b1683613fc7565b905084811115611a185760405162461bcd60e51b8152600401610c8490613ddd565b83611a2c6001600160401b038c1685613fc7565b1115611a4a5760405162461bcd60e51b8152600401610c8490613c54565b34611a5e6001600160401b038c1688614015565b1115611a7c5760405162461bcd60e51b8152600401610c8490613d40565b336001600160a01b03167ff6290b3a429be77d88b2f3858654b93a6528ad7807517731dd376fd03655d7588b88604051611ab7929190613f5c565b60405180910390a233600090815260156020526040902054611ae3906001600160401b038c1690613fc7565b336000908152601560205260408120919091555b8a6001600160401b0316811015611b9d5760108054600160801b90046001600160801b03169080611b27836140b2565b91906101000a8154816001600160801b0302191690836001600160801b031602179055506010806101000a8154816001600160801b0302191690836001600160801b03160217905550611b7e600f80546001019055565b611b8b336110ac600f5490565b80611b95816140d9565b915050611af7565b5050505050505050505050565b601c8054610cb690614077565b60006001600160a01b038216611c225760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c84565b506001600160a01b031660009081526003602052604090205490565b33611c47611cde565b6001600160a01b031614611c6d5760405162461bcd60e51b8152600401610c8490613da8565b6111356000612d6a565b33611c80611cde565b6001600160a01b031614611ca65760405162461bcd60e51b8152600401610c8490613da8565b611135612dc4565b6000600a8281548110611cc357611cc3614167565b6000918252602090912001546001600160a01b031692915050565b600d5461010090046001600160a01b031690565b33611cfb611cde565b6001600160a01b031614611d215760405162461bcd60e51b8152600401610c8490613da8565b601255565b606060018054610b9990614077565b6001600160a01b031660009081526009602052604090205490565b33611d59611cde565b6001600160a01b031614611d7f5760405162461bcd60e51b8152600401610c8490613da8565b601880546001919060ff191682805b0217905550565b33611d9e611cde565b6001600160a01b031614611dc45760405162461bcd60e51b8152600401610c8490613da8565b601355565b611888338383612e1c565b611dde33836129bd565b611dfa5760405162461bcd60e51b8152600401610c8490613ebb565b611e0684848484612ee7565b50505050565b601b5460609060ff16611eab57601d8054611e2690614077565b80601f0160208091040260200160405190810160405280929190818152602001828054611e5290614077565b8015611e9f5780601f10611e7457610100808354040283529160200191611e9f565b820191906000526020600020905b815481529060010190602001808311611e8257829003601f168201915b50505050509050919050565b6000601c8054611eba90614077565b80601f0160208091040260200160405190810160405280929190818152602001828054611ee690614077565b8015611f335780601f10611f0857610100808354040283529160200191611f33565b820191906000526020600020905b815481529060010190602001808311611f1657829003601f168201915b505050505090506000815111611f585760405180602001604052806000815250611f83565b80611f6284612f1a565b604051602001611f73929190613ae8565b6040516020818303038152906040525b9392505050565b33611f93611cde565b6001600160a01b031614611fb95760405162461bcd60e51b8152600401610c8490613da8565b601880546002919060ff1916600183611d8e565b6002600e5414156120205760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c84565b6002600e55600d5460ff16156120485760405162461bcd60e51b8152600401610c8490613ce4565b6000816001600160401b0316116120715760405162461bcd60e51b8152600401610c8490613e84565b600560185460ff16600681111561208a5761208a614151565b14156120a85760405162461bcd60e51b8152600401610c8490613d77565b600460185460ff1660068111156120c1576120c1614151565b146121235760405162461bcd60e51b815260206004820152602c60248201527f4d6574612d4661726d6572733a207075626c69632073616c65206973206e6f7460448201526b081cdd185c9d1959081e595d60a21b6064820152608401610c84565b60125433600090815260176020526040812054600a91612142600f5490565b905060006121596001600160401b03871683613fc7565b90508361216f6001600160401b03881685613fc7565b111561218d5760405162461bcd60e51b8152600401610c8490613f0c565b610f9f8111156121af5760405162461bcd60e51b8152600401610c8490613d0e565b346121c36001600160401b03881687614015565b11156121e15760405162461bcd60e51b8152600401610c8490613d40565b6010546121f89087906001600160401b0316613fdf565b601080546001600160401b0319166001600160401b039290921691909117905560405133907f819f7e30541f2ed7e36c92ce039f5eb2d66b7dc094b33f416910e8fde56b80dc9061224c9089908990613f5c565b60405180910390a260016001600160401b038716610f9f61226d8286613fc7565b1415612281576018805460ff191660051790555b3360009081526017602052604090205461229c908290613fc7565b33600090815260176020526040902055815b8181116122e2576122c3600f80546001019055565b6122d0336110ac600f5490565b806122da816140d9565b9150506122ae565b50506001600e5550505050505050565b6001600160a01b03166000908152600b602052604090205490565b600d5460ff16156123305760405162461bcd60e51b8152600401610c8490613ce4565b600160185460ff16600681111561234957612349614151565b146123665760405162461bcd60e51b8152600401610c8490613e55565b600061237661196c336001612d0a565b9050806123955760405162461bcd60e51b8152600401610c8490613e01565b6010546123b3908590600160401b90046001600160401b0316613fdf565b6001600160401b031661018f101561242a5760405162461bcd60e51b815260206004820152603460248201527f63616e6e6f74206d696e7420746f6b656e732e2077696c6c20676f206f766572604482015273081c9859999b19481cdd5c1c1b1e481b1a5b5a5d60621b6064820152608401610c84565b601354610f9f6005600061243d600f5490565b336000908152601460205260408120549192506124636001600160401b038b1684613fc7565b9050848111156124855760405162461bcd60e51b8152600401610c8490613ddd565b836124996001600160401b038c1684613fc7565b11156124b75760405162461bcd60e51b8152600401610c8490613c54565b346124cb6001600160401b038c1688614015565b11156124e95760405162461bcd60e51b8152600401610c8490613d40565b336001600160a01b03167fa89d90717541d28ff38ee3d6b1ac68792fc5daddd10683f72ba9f000d6812e288b88604051612524929190613f5c565b60405180910390a233600090815260146020526040902054612550906001600160401b038c1690613fc7565b336000908152601460205260408120919091555b8a6001600160401b0316811015611b9d5760108054600160401b90046001600160401b0316906008612595836140f4565b91906101000a8154816001600160401b0302191690836001600160401b03160217905550601060086101000a8154816001600160401b0302191690836001600160401b031602179055506125ed600f80546001019055565b6125fa336110ac600f5490565b80612604816140d9565b915050612564565b33612615611cde565b6001600160a01b03161461263b5760405162461bcd60e51b8152600401610c8490613da8565b601880546003919060ff1916600183611d8e565b33612658611cde565b6001600160a01b03161461267e5760405162461bcd60e51b8152600401610c8490613da8565b601880546004919060ff1916600183611d8e565b3361269b611cde565b6001600160a01b0316146126c15760405162461bcd60e51b8152600401610c8490613da8565b601f55565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b336126fd611cde565b6001600160a01b0316146127235760405162461bcd60e51b8152600401610c8490613da8565b805161188890601d9060208401906135fb565b3361273f611cde565b6001600160a01b0316146127655760405162461bcd60e51b8152600401610c8490613da8565b6001600160a01b0381166127ca5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c84565b6127d381612d6a565b50565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906128288261188c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6006546001600160a01b0384166000908152600860205260408120549091839161288b9086614015565b6128959190614001565b61289f9190614034565b949350505050565b804710156128f75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c84565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612944576040519150601f19603f3d011682016040523d82523d6000602084013e612949565b606091505b5050905080610e435760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610c84565b60006129c8826127d6565b612a295760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c84565b6000612a348361188c565b9050806001600160a01b0316846001600160a01b03161480612a6f5750836001600160a01b0316612a6484610c1c565b6001600160a01b0316145b8061289f575061289f81856126c6565b826001600160a01b0316612a928261188c565b6001600160a01b031614612afa5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c84565b6001600160a01b038216612b5c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c84565b612b676000826127f3565b6001600160a01b0383166000908152600360205260408120805460019290612b90908490614034565b90915550506001600160a01b0382166000908152600360205260408120805460019290612bbe908490613fc7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716916000805160206141cd83398151915291a4505050565b611888828260405180602001604052806000815250613097565b600d5460ff16612c705760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610c84565b600d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051612caa9190613b17565b60405180910390a1565b610e438363a9059cbb60e01b8484604051602401612cd3929190613b2b565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526130ca565b6040516001600160601b0319606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6000611f8382601f548561319c565b6000611f8382601e548561319c565b600d80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600d5460ff1615612de75760405162461bcd60e51b8152600401610c8490613ce4565b600d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c9d3390565b816001600160a01b0316836001600160a01b03161415612e7a5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610c84565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612ef2848484612a7f565b612efe848484846131b2565b611e065760405162461bcd60e51b8152600401610c8490613bbc565b606081612f3e5750506040805180820190915260018152600360fc1b602082015290565b60408051606480825260a082019092526000908260208201818036833701905050905060005b8415612fce576000612f77600a87614111565b9050612f84600a87614001565b9550612f91816030613fc7565b60f81b8383612f9f816140d9565b945081518110612fb157612fb1614167565b60200101906001600160f81b031916908160001a90535050612f64565b6000816001600160401b03811115612fe857612fe861417d565b6040519080825280601f01601f191660200182016040528015613012576020820181803683370190505b50905060005b8281101561308d57838161302d600186614034565b6130379190614034565b8151811061304757613047614167565b602001015160f81c60f81b82828151811061306457613064614167565b60200101906001600160f81b031916908160001a90535080613085816140d9565b915050613018565b5095945050505050565b6130a183836132bf565b6130ae60008484846131b2565b610e435760405162461bcd60e51b8152600401610c8490613bbc565b600061311f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166133df9092919063ffffffff16565b805190915015610e43578080602001905181019061313d919061392f565b610e435760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610c84565b6000826131a985846133ee565b14949350505050565b60006001600160a01b0384163b156132b457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131f6903390899088908890600401613b44565b602060405180830381600087803b15801561321057600080fd5b505af1925050508015613240575060408051601f3d908101601f1916820190925261323d91810190613982565b60015b61329a573d80801561326e576040519150601f19603f3d011682016040523d82523d6000602084013e613273565b606091505b5080516132925760405162461bcd60e51b8152600401610c8490613bbc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061289f565b506001949350505050565b6001600160a01b0382166133155760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c84565b61331e816127d6565b1561336a5760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610c84565b6001600160a01b0382166000908152600360205260408120805460019290613393908490613fc7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392906000805160206141cd833981519152908290a45050565b606061289f848460008561349a565b600081815b845181101561349257600085828151811061341057613410614167565b6020026020010151905080831161345257604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061347f565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061348a816140d9565b9150506133f3565b509392505050565b6060824710156134fb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610c84565b843b6135495760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c84565b600080866001600160a01b031685876040516135659190613acc565b60006040518083038185875af1925050503d80600081146135a2576040519150601f19603f3d011682016040523d82523d6000602084013e6135a7565b606091505b50915091506135b78282866135c2565b979650505050505050565b606083156135d1575081611f83565b8251156135e15782518084602001fd5b8160405162461bcd60e51b8152600401610c849190613ba9565b82805461360790614077565b90600052602060002090601f016020900481019282613629576000855561366f565b82601f1061364257805160ff191683800117855561366f565b8280016001018555821561366f579182015b8281111561366f578251825591602001919060010190613654565b5061367b92915061367f565b5090565b5b8082111561367b5760008155600101613680565b60006001600160401b038311156136ad576136ad61417d565b6136c0601f8401601f1916602001613f75565b90508281528383830111156136d457600080fd5b828260208301376000602084830101529392505050565b80356001600160401b038116811461370257600080fd5b919050565b60006020828403121561371957600080fd5b8135611f8381614193565b6000806040838503121561373757600080fd5b823561374281614193565b9150602083013561375281614193565b809150509250929050565b60008060006060848603121561377257600080fd5b833561377d81614193565b9250602084013561378d81614193565b929592945050506040919091013590565b600080600080608085870312156137b457600080fd5b84356137bf81614193565b935060208501356137cf81614193565b92506040850135915060608501356001600160401b038111156137f157600080fd5b8501601f8101871361380257600080fd5b61381187823560208401613694565b91505092959194509250565b6000806040838503121561383057600080fd5b823561383b81614193565b91506020830135613752816141a8565b6000806040838503121561385e57600080fd5b823561386981614193565b946020939093013593505050565b6000602080838503121561388a57600080fd5b82356001600160401b03808211156138a157600080fd5b818501915085601f8301126138b557600080fd5b8135818111156138c7576138c761417d565b8060051b91506138d8848301613f75565b8181528481019084860184860187018a10156138f357600080fd5b600095505b83861015613922578035945061390d85614193565b848352600195909501949186019186016138f8565b5098975050505050505050565b60006020828403121561394157600080fd5b8151611f83816141a8565b60006020828403121561395e57600080fd5b5035919050565b60006020828403121561397757600080fd5b8135611f83816141b6565b60006020828403121561399457600080fd5b8151611f83816141b6565b6000602082840312156139b157600080fd5b81356001600160401b038111156139c757600080fd5b8201601f810184136139d857600080fd5b61289f84823560208401613694565b6000602082840312156139f957600080fd5b5051919050565b600060208284031215613a1257600080fd5b611f83826136eb565b600080600060408486031215613a3057600080fd5b613a39846136eb565b925060208401356001600160401b0380821115613a5557600080fd5b818601915086601f830112613a6957600080fd5b813581811115613a7857600080fd5b8760208260051b8501011115613a8d57600080fd5b6020830194508093505050509250925092565b60008151808452613ab881602086016020860161404b565b601f01601f19169290920160200192915050565b60008251613ade81846020870161404b565b9190910192915050565b60008351613afa81846020880161404b565b835190830190613b0e81836020880161404b565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b7790830184613aa0565b9695505050505050565b6020810160078310613ba357634e487b7160e01b600052602160045260246000fd5b91905290565b602081526000611f836020830184613aa0565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b60208082526025908201527f746f6b656e73206d696e7465642077696c6c20676f206f7665722075736572206040820152641b1a5b5a5d60da1b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601890820152774d6574612d4661726d6572733a20536f6c64206f7574202160401b604082015260600190565b6020808252601f908201527f4d6574612d4661726d6572733a20496e737566696369656e742066756e647300604082015260600190565b6020808252601790820152764d6574612d4661726d6572733a20534f4c44204f55542160481b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600a9082015269536f6c64206f7574202160b01b604082015260600190565b60208082526034908201527f61646472657373206e6f74207665726966696564206f6e2074686520726166666040820152731b19481dda5b9b995c9cc81dda1a5d195b1a5cdd60621b606082015260800190565b602080825260159082015274149859999b19481cd85b19481a185cc8195b991959605a1b604082015260600190565b6020808252601f908201527f6e65656420746f206d696e74206174206c65617374206f6e6520746f6b656e00604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526030908201527f4d6574612d4661726d6572733a20596f752063616e2774206d696e74206d6f7260408201526f65207468616e203520746f6b656e732160801b606082015260800190565b6001600160401b03929092168252602082015260400190565b604051601f8201601f191681016001600160401b0381118282101715613f9d57613f9d61417d565b604052919050565b60006001600160801b03828116848216808303821115613b0e57613b0e614125565b60008219821115613fda57613fda614125565b500190565b60006001600160401b03828116848216808303821115613b0e57613b0e614125565b6000826140105761401061413b565b500490565b600081600019048311821515161561402f5761402f614125565b500290565b60008282101561404657614046614125565b500390565b60005b8381101561406657818101518382015260200161404e565b83811115611e065750506000910152565b600181811c9082168061408b57607f821691505b602082108114156140ac57634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160801b03828116808214156140cf576140cf614125565b6001019392505050565b60006000198214156140ed576140ed614125565b5060010190565b60006001600160401b03828116808214156140cf576140cf614125565b6000826141205761412061413b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146127d357600080fd5b80151581146127d357600080fd5b6001600160e01b0319811681146127d357600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220f592fe9a2e09fb011fecb16d761e7cfa866c08f18b1837907ed1fc08237c53c064736f6c634300080700330000000000000000000000000000000000000000000000000000000000000060eb75385f55ee7707a5c45b697f24667e62c3ff4bb5daec52249dc3034b42fba31e4d1f954703d73354536f43e7a0fd5629e8b47af962092bf8937b0fcc2af6df000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f697066732e696f2f697066732f6261666b726569616873716a72346b73796f75726c736a6b7673356f79366d616e3677687a746e6d72706b73626b747032356d6179367273696d7900000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102f85760003560e01c80630189c66c1461033d57806301ffc9a71461037a57806306fdde03146103aa578063081812fc146103cc578063081c8c44146103f9578063095ea7b31461040e57806317e7f2951461043057806318160ddd1461045a578063191655871461046f57806320b31af71461048f57806323b872dd146104b657806328d46df0146104d65780632fc66c1a146104f657806332cb6b0c14610535578063378b4f271461054b57806338503a4d1461056b5780633a98ef39146105875780633f4ba83a1461059c578063406072a9146105b157806342842e0e146105d157806348b75044146105f157806349077223146106115780634c26124714610624578063518302271461064457806355e39d9b1461065e57806355f804b31461067e5780635c975abb1461069e5780636352211e146106b6578063696d4ce4146106d65780636c0360eb146106e957806370a08231146106fe578063715018a61461071e5780638456cb59146107335780638b83209b146107485780638d859f3e146107685780638da5cb5b1461077e57806391b7f5ed1461079357806395d89b41146107b35780639852595c146107c85780639939494b146107e85780639ae03e02146107fd578063a10f151e1461082a578063a22cb4651461084a578063a33441251461086a578063a65e83f814610891578063b03a2340146108a7578063b88d4fde146108d4578063c87b56dd146108f4578063cac5cb7814610914578063ce7c2ac214610929578063d17a18cd1461095f578063d2eca83414610975578063d3e46dce146109a2578063d63dd701146109cf578063d79779b2146109e2578063d82c7dcb14610a02578063dc61764a14610a15578063dc69591614610a2b578063e2298c7414610a4b578063e33b7de314610a60578063e3bba16914610a75578063e8f0165d14610a8a578063e985e9c514610aaa578063ee1e36bd14610aca578063f2c4ce1e14610ae0578063f2fde38b14610b00578063f75d64a614610b2057600080fd5b36610338577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770333460405161032e929190613b2b565b60405180910390a1005b600080fd5b34801561034957600080fd5b5060115461035d906001600160801b031681565b6040516001600160801b0390911681526020015b60405180910390f35b34801561038657600080fd5b5061039a610395366004613965565b610b38565b6040519015158152602001610371565b3480156103b657600080fd5b506103bf610b8a565b6040516103719190613ba9565b3480156103d857600080fd5b506103ec6103e736600461394c565b610c1c565b6040516103719190613b17565b34801561040557600080fd5b506103bf610ca9565b34801561041a57600080fd5b5061042e61042936600461384b565b610d37565b005b34801561043c57600080fd5b5061044c6702386f26fc10000081565b604051908152602001610371565b34801561046657600080fd5b5061044c610e48565b34801561047b57600080fd5b5061042e61048a366004613707565b610e54565b34801561049b57600080fd5b5060105461035d90600160801b90046001600160801b031681565b3480156104c257600080fd5b5061042e6104d136600461375d565b610f63565b3480156104e257600080fd5b5061042e6104f1366004613877565b610f94565b34801561050257600080fd5b5060105461051d90600160401b90046001600160401b031681565b6040516001600160401b039091168152602001610371565b34801561054157600080fd5b5061051d610f9f81565b34801561055757600080fd5b5061042e61056636600461394c565b6110ca565b34801561057757600080fd5b5061044c670214e8348c4f000081565b34801561059357600080fd5b5060065461044c565b3480156105a857600080fd5b5061042e6110fe565b3480156105bd57600080fd5b5061044c6105cc366004613724565b611137565b3480156105dd57600080fd5b5061042e6105ec36600461375d565b611162565b3480156105fd57600080fd5b5061042e61060c366004613724565b61117d565b61042e61061f366004613a1b565b611333565b34801561063057600080fd5b5061042e61063f36600461399f565b6116b1565b34801561065057600080fd5b50601b5461039a9060ff1681565b34801561066a57600080fd5b5061042e610679366004613a00565b611704565b34801561068a57600080fd5b5061042e61069936600461399f565b611846565b3480156106aa57600080fd5b50600d5460ff1661039a565b3480156106c257600080fd5b506103ec6106d136600461394c565b61188c565b61042e6106e4366004613a1b565b611903565b3480156106f557600080fd5b506103bf611baa565b34801561070a57600080fd5b5061044c610719366004613707565b611bb7565b34801561072a57600080fd5b5061042e611c3e565b34801561073f57600080fd5b5061042e611c77565b34801561075457600080fd5b506103ec61076336600461394c565b611cae565b34801561077457600080fd5b5061044c60125481565b34801561078a57600080fd5b506103ec611cde565b34801561079f57600080fd5b5061042e6107ae36600461394c565b611cf2565b3480156107bf57600080fd5b506103bf611d26565b3480156107d457600080fd5b5061044c6107e3366004613707565b611d35565b3480156107f457600080fd5b5061042e611d50565b34801561080957600080fd5b5061044c610818366004613707565b60156020526000908152604090205481565b34801561083657600080fd5b5061042e61084536600461394c565b611d95565b34801561085657600080fd5b5061042e61086536600461381d565b611dc9565b34801561087657600080fd5b506018546108849060ff1681565b6040516103719190613b81565b34801561089d57600080fd5b5061051d61018f81565b3480156108b357600080fd5b5061044c6108c2366004613707565b60176020526000908152604090205481565b3480156108e057600080fd5b5061042e6108ef36600461379e565b611dd4565b34801561090057600080fd5b506103bf61090f36600461394c565b611e0c565b34801561092057600080fd5b5061042e611f8a565b34801561093557600080fd5b5061044c610944366004613707565b6001600160a01b031660009081526008602052604090205490565b34801561096b57600080fd5b5061044c601f5481565b34801561098157600080fd5b5061044c610990366004613707565b60146020526000908152604090205481565b3480156109ae57600080fd5b5061044c6109bd366004613707565b60166020526000908152604090205481565b61042e6109dd366004613a00565b611fcd565b3480156109ee57600080fd5b5061044c6109fd366004613707565b6122f2565b61042e610a10366004613a1b565b61230d565b348015610a2157600080fd5b5061044c601e5481565b348015610a3757600080fd5b5060105461051d906001600160401b031681565b348015610a5757600080fd5b5061042e61260c565b348015610a6c57600080fd5b5060075461044c565b348015610a8157600080fd5b5061042e61264f565b348015610a9657600080fd5b5061042e610aa536600461394c565b612692565b348015610ab657600080fd5b5061039a610ac5366004613724565b6126c6565b348015610ad657600080fd5b5061044c60135481565b348015610aec57600080fd5b5061042e610afb36600461399f565b6126f4565b348015610b0c57600080fd5b5061042e610b1b366004613707565b612736565b348015610b2c57600080fd5b5060185460ff16610884565b60006001600160e01b031982166380ac58cd60e01b1480610b6957506001600160e01b03198216635b5e139f60e01b145b80610b8457506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610b9990614077565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc590614077565b8015610c125780601f10610be757610100808354040283529160200191610c12565b820191906000526020600020905b815481529060010190602001808311610bf557829003601f168201915b5050505050905090565b6000610c27826127d6565b610c8d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b601d8054610cb690614077565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce290614077565b8015610d2f5780601f10610d0457610100808354040283529160200191610d2f565b820191906000526020600020905b815481529060010190602001808311610d1257829003601f168201915b505050505081565b6000610d428261188c565b9050806001600160a01b0316836001600160a01b03161415610db05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c84565b336001600160a01b0382161480610dcc5750610dcc81336126c6565b610e395760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610c84565b610e4383836127f3565b505050565b600080610b84600f5490565b6001600160a01b038116600090815260086020526040902054610e895760405162461bcd60e51b8152600401610c8490613c0e565b6000610e9460075490565b610e9e9047613fc7565b90506000610eb58383610eb086611d35565b612861565b905080610ed45760405162461bcd60e51b8152600401610c8490613c99565b6001600160a01b03831660009081526009602052604081208054839290610efc908490613fc7565b925050819055508060076000828254610f159190613fc7565b90915550610f25905083826128a7565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568382604051610f56929190613b2b565b60405180910390a1505050565b610f6d33826129bd565b610f895760405162461bcd60e51b8152600401610c8490613ebb565b610e43838383612a7f565b33610f9d611cde565b6001600160a01b031614610fc35760405162461bcd60e51b8152600401610c8490613da8565b8051806110105760405162461bcd60e51b815260206004820152601b60248201527a13595d184b51985c9b595c9cce985d081b19585cdd080c48139195602a1b6044820152606401610c84565b600061101b600f5490565b905060006110298383613fc7565b9050610f9f81111561104d5760405162461bcd60e51b8152600401610c8490613d0e565b610f9f61105a8484613fc7565b141561106e576018805460ff191660051790555b60015b8381116110c357611086600f80546001019055565b6110b185828151811061109b5761109b614167565b60200260200101516110ac600f5490565b612c0d565b806110bb816140d9565b915050611071565b5050505050565b336110d3611cde565b6001600160a01b0316146110f95760405162461bcd60e51b8152600401610c8490613da8565b601e55565b33611107611cde565b6001600160a01b03161461112d5760405162461bcd60e51b8152600401610c8490613da8565b611135612c27565b565b6001600160a01b039182166000908152600c6020908152604080832093909416825291909152205490565b610e4383838360405180602001604052806000815250611dd4565b6001600160a01b0381166000908152600860205260409020546111b25760405162461bcd60e51b8152600401610c8490613c0e565b60006111bd836122f2565b6040516370a0823160e01b81526001600160a01b038516906370a08231906111e9903090600401613b17565b60206040518083038186803b15801561120157600080fd5b505afa158015611215573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123991906139e7565b6112439190613fc7565b905060006112568383610eb08787611137565b9050806112755760405162461bcd60e51b8152600401610c8490613c99565b6001600160a01b038085166000908152600c60209081526040808320938716835292905290812080548392906112ac908490613fc7565b90915550506001600160a01b0384166000908152600b6020526040812080548392906112d9908490613fc7565b909155506112ea9050848483612cb4565b836001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8483604051611325929190613b2b565b60405180910390a250505050565b600d5460ff16156113565760405162461bcd60e51b8152600401610c8490613ce4565b6000836001600160401b03161161137f5760405162461bcd60e51b8152600401610c8490613e84565b600560185460ff16600681111561139857611398614151565b14156113b65760405162461bcd60e51b8152600401610c8490613d77565b600360185460ff1660068111156113cf576113cf614151565b146114325760405162461bcd60e51b815260206004820152602d60248201527f4d6574612d4661726d6572733a20707269766174652073616c65206973206e6f60448201526c1d081cdd185c9d1959081e595d609a1b6064820152608401610c84565b600061147b611442336001612d0a565b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612d4c92505050565b9050806114e55760405162461bcd60e51b815260206004820152603260248201527f61646472657373206e6f74207665726966696564206f6e207468652070726976604482015271185d19481cd85b19481dda1a5d195b1a5cdd60721b6064820152608401610c84565b33600090815260166020526040812054600f546702386f26fc10000092600592919061151a6001600160401b038a1683613fc7565b9050836115306001600160401b038b1685613fc7565b111561154e5760405162461bcd60e51b8152600401610c8490613f0c565b610f9f8111156115705760405162461bcd60e51b8152600401610c8490613ddd565b346115846001600160401b038b1687614015565b11156115a25760405162461bcd60e51b8152600401610c8490613d40565b6011546115c2906001600160401b038b16906001600160801b0316613fa5565b601180546001600160801b0319166001600160801b039290921691909117905560405133907f5a9bb1a07cf4b32f75aadb39ccc14dfdc985cb16bdddd078a7959ee819258cf490611616908c908990613f5c565b60405180910390a260016001600160401b038a16610f9f841415611642576018805460ff191660051790555b3360009081526016602052604090205461165d908290613fc7565b33600090815260166020526040902055815b8181116116a357611684600f80546001019055565b611691336110ac600f5490565b8061169b816140d9565b91505061166f565b505050505050505050505050565b336116ba611cde565b6001600160a01b0316146116e05760405162461bcd60e51b8152600401610c8490613da8565b80516116f390601c9060208401906135fb565b5050601b805460ff19166001179055565b3361170d611cde565b6001600160a01b0316146117335760405162461bcd60e51b8152600401610c8490613da8565b6000816001600160401b03161161179e5760405162461bcd60e51b815260206004820152602960248201527f4d6574612d4661726d6572733a206e65656420746f206d696e74206174206c65604482015268185cdd080c4813919560ba1b6064820152608401610c84565b60006117a9600f5490565b905060006117c06001600160401b03841683613fc7565b9050610f9f8111156117e45760405162461bcd60e51b8152600401610c8490613d0e565b6001600160401b038316610f9f6117fb8285613fc7565b141561180f576018805460ff191660051790555b60015b8181116110c357611827600f80546001019055565b611834336110ac600f5490565b8061183e816140d9565b915050611812565b3361184f611cde565b6001600160a01b0316146118755760405162461bcd60e51b8152600401610c8490613da8565b805161188890601c9060208401906135fb565b5050565b6000818152600260205260408120546001600160a01b031680610b845760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c84565b600d5460ff16156119265760405162461bcd60e51b8152600401610c8490613ce4565b600260185460ff16600681111561193f5761193f614151565b1461195c5760405162461bcd60e51b8152600401610c8490613e55565b60006119a561196c336001612d0a565b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612d5b92505050565b9050806119c45760405162461bcd60e51b8152600401610c8490613e01565b60135433600090815260156020526040812054600f54610f9f9260059291906119f66001600160401b038b1683613fc7565b905084811115611a185760405162461bcd60e51b8152600401610c8490613ddd565b83611a2c6001600160401b038c1685613fc7565b1115611a4a5760405162461bcd60e51b8152600401610c8490613c54565b34611a5e6001600160401b038c1688614015565b1115611a7c5760405162461bcd60e51b8152600401610c8490613d40565b336001600160a01b03167ff6290b3a429be77d88b2f3858654b93a6528ad7807517731dd376fd03655d7588b88604051611ab7929190613f5c565b60405180910390a233600090815260156020526040902054611ae3906001600160401b038c1690613fc7565b336000908152601560205260408120919091555b8a6001600160401b0316811015611b9d5760108054600160801b90046001600160801b03169080611b27836140b2565b91906101000a8154816001600160801b0302191690836001600160801b031602179055506010806101000a8154816001600160801b0302191690836001600160801b03160217905550611b7e600f80546001019055565b611b8b336110ac600f5490565b80611b95816140d9565b915050611af7565b5050505050505050505050565b601c8054610cb690614077565b60006001600160a01b038216611c225760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c84565b506001600160a01b031660009081526003602052604090205490565b33611c47611cde565b6001600160a01b031614611c6d5760405162461bcd60e51b8152600401610c8490613da8565b6111356000612d6a565b33611c80611cde565b6001600160a01b031614611ca65760405162461bcd60e51b8152600401610c8490613da8565b611135612dc4565b6000600a8281548110611cc357611cc3614167565b6000918252602090912001546001600160a01b031692915050565b600d5461010090046001600160a01b031690565b33611cfb611cde565b6001600160a01b031614611d215760405162461bcd60e51b8152600401610c8490613da8565b601255565b606060018054610b9990614077565b6001600160a01b031660009081526009602052604090205490565b33611d59611cde565b6001600160a01b031614611d7f5760405162461bcd60e51b8152600401610c8490613da8565b601880546001919060ff191682805b0217905550565b33611d9e611cde565b6001600160a01b031614611dc45760405162461bcd60e51b8152600401610c8490613da8565b601355565b611888338383612e1c565b611dde33836129bd565b611dfa5760405162461bcd60e51b8152600401610c8490613ebb565b611e0684848484612ee7565b50505050565b601b5460609060ff16611eab57601d8054611e2690614077565b80601f0160208091040260200160405190810160405280929190818152602001828054611e5290614077565b8015611e9f5780601f10611e7457610100808354040283529160200191611e9f565b820191906000526020600020905b815481529060010190602001808311611e8257829003601f168201915b50505050509050919050565b6000601c8054611eba90614077565b80601f0160208091040260200160405190810160405280929190818152602001828054611ee690614077565b8015611f335780601f10611f0857610100808354040283529160200191611f33565b820191906000526020600020905b815481529060010190602001808311611f1657829003601f168201915b505050505090506000815111611f585760405180602001604052806000815250611f83565b80611f6284612f1a565b604051602001611f73929190613ae8565b6040516020818303038152906040525b9392505050565b33611f93611cde565b6001600160a01b031614611fb95760405162461bcd60e51b8152600401610c8490613da8565b601880546002919060ff1916600183611d8e565b6002600e5414156120205760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c84565b6002600e55600d5460ff16156120485760405162461bcd60e51b8152600401610c8490613ce4565b6000816001600160401b0316116120715760405162461bcd60e51b8152600401610c8490613e84565b600560185460ff16600681111561208a5761208a614151565b14156120a85760405162461bcd60e51b8152600401610c8490613d77565b600460185460ff1660068111156120c1576120c1614151565b146121235760405162461bcd60e51b815260206004820152602c60248201527f4d6574612d4661726d6572733a207075626c69632073616c65206973206e6f7460448201526b081cdd185c9d1959081e595d60a21b6064820152608401610c84565b60125433600090815260176020526040812054600a91612142600f5490565b905060006121596001600160401b03871683613fc7565b90508361216f6001600160401b03881685613fc7565b111561218d5760405162461bcd60e51b8152600401610c8490613f0c565b610f9f8111156121af5760405162461bcd60e51b8152600401610c8490613d0e565b346121c36001600160401b03881687614015565b11156121e15760405162461bcd60e51b8152600401610c8490613d40565b6010546121f89087906001600160401b0316613fdf565b601080546001600160401b0319166001600160401b039290921691909117905560405133907f819f7e30541f2ed7e36c92ce039f5eb2d66b7dc094b33f416910e8fde56b80dc9061224c9089908990613f5c565b60405180910390a260016001600160401b038716610f9f61226d8286613fc7565b1415612281576018805460ff191660051790555b3360009081526017602052604090205461229c908290613fc7565b33600090815260176020526040902055815b8181116122e2576122c3600f80546001019055565b6122d0336110ac600f5490565b806122da816140d9565b9150506122ae565b50506001600e5550505050505050565b6001600160a01b03166000908152600b602052604090205490565b600d5460ff16156123305760405162461bcd60e51b8152600401610c8490613ce4565b600160185460ff16600681111561234957612349614151565b146123665760405162461bcd60e51b8152600401610c8490613e55565b600061237661196c336001612d0a565b9050806123955760405162461bcd60e51b8152600401610c8490613e01565b6010546123b3908590600160401b90046001600160401b0316613fdf565b6001600160401b031661018f101561242a5760405162461bcd60e51b815260206004820152603460248201527f63616e6e6f74206d696e7420746f6b656e732e2077696c6c20676f206f766572604482015273081c9859999b19481cdd5c1c1b1e481b1a5b5a5d60621b6064820152608401610c84565b601354610f9f6005600061243d600f5490565b336000908152601460205260408120549192506124636001600160401b038b1684613fc7565b9050848111156124855760405162461bcd60e51b8152600401610c8490613ddd565b836124996001600160401b038c1684613fc7565b11156124b75760405162461bcd60e51b8152600401610c8490613c54565b346124cb6001600160401b038c1688614015565b11156124e95760405162461bcd60e51b8152600401610c8490613d40565b336001600160a01b03167fa89d90717541d28ff38ee3d6b1ac68792fc5daddd10683f72ba9f000d6812e288b88604051612524929190613f5c565b60405180910390a233600090815260146020526040902054612550906001600160401b038c1690613fc7565b336000908152601460205260408120919091555b8a6001600160401b0316811015611b9d5760108054600160401b90046001600160401b0316906008612595836140f4565b91906101000a8154816001600160401b0302191690836001600160401b03160217905550601060086101000a8154816001600160401b0302191690836001600160401b031602179055506125ed600f80546001019055565b6125fa336110ac600f5490565b80612604816140d9565b915050612564565b33612615611cde565b6001600160a01b03161461263b5760405162461bcd60e51b8152600401610c8490613da8565b601880546003919060ff1916600183611d8e565b33612658611cde565b6001600160a01b03161461267e5760405162461bcd60e51b8152600401610c8490613da8565b601880546004919060ff1916600183611d8e565b3361269b611cde565b6001600160a01b0316146126c15760405162461bcd60e51b8152600401610c8490613da8565b601f55565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b336126fd611cde565b6001600160a01b0316146127235760405162461bcd60e51b8152600401610c8490613da8565b805161188890601d9060208401906135fb565b3361273f611cde565b6001600160a01b0316146127655760405162461bcd60e51b8152600401610c8490613da8565b6001600160a01b0381166127ca5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c84565b6127d381612d6a565b50565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906128288261188c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6006546001600160a01b0384166000908152600860205260408120549091839161288b9086614015565b6128959190614001565b61289f9190614034565b949350505050565b804710156128f75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c84565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612944576040519150601f19603f3d011682016040523d82523d6000602084013e612949565b606091505b5050905080610e435760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610c84565b60006129c8826127d6565b612a295760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c84565b6000612a348361188c565b9050806001600160a01b0316846001600160a01b03161480612a6f5750836001600160a01b0316612a6484610c1c565b6001600160a01b0316145b8061289f575061289f81856126c6565b826001600160a01b0316612a928261188c565b6001600160a01b031614612afa5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c84565b6001600160a01b038216612b5c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c84565b612b676000826127f3565b6001600160a01b0383166000908152600360205260408120805460019290612b90908490614034565b90915550506001600160a01b0382166000908152600360205260408120805460019290612bbe908490613fc7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716916000805160206141cd83398151915291a4505050565b611888828260405180602001604052806000815250613097565b600d5460ff16612c705760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610c84565b600d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051612caa9190613b17565b60405180910390a1565b610e438363a9059cbb60e01b8484604051602401612cd3929190613b2b565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526130ca565b6040516001600160601b0319606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6000611f8382601f548561319c565b6000611f8382601e548561319c565b600d80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600d5460ff1615612de75760405162461bcd60e51b8152600401610c8490613ce4565b600d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c9d3390565b816001600160a01b0316836001600160a01b03161415612e7a5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610c84565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612ef2848484612a7f565b612efe848484846131b2565b611e065760405162461bcd60e51b8152600401610c8490613bbc565b606081612f3e5750506040805180820190915260018152600360fc1b602082015290565b60408051606480825260a082019092526000908260208201818036833701905050905060005b8415612fce576000612f77600a87614111565b9050612f84600a87614001565b9550612f91816030613fc7565b60f81b8383612f9f816140d9565b945081518110612fb157612fb1614167565b60200101906001600160f81b031916908160001a90535050612f64565b6000816001600160401b03811115612fe857612fe861417d565b6040519080825280601f01601f191660200182016040528015613012576020820181803683370190505b50905060005b8281101561308d57838161302d600186614034565b6130379190614034565b8151811061304757613047614167565b602001015160f81c60f81b82828151811061306457613064614167565b60200101906001600160f81b031916908160001a90535080613085816140d9565b915050613018565b5095945050505050565b6130a183836132bf565b6130ae60008484846131b2565b610e435760405162461bcd60e51b8152600401610c8490613bbc565b600061311f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166133df9092919063ffffffff16565b805190915015610e43578080602001905181019061313d919061392f565b610e435760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610c84565b6000826131a985846133ee565b14949350505050565b60006001600160a01b0384163b156132b457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131f6903390899088908890600401613b44565b602060405180830381600087803b15801561321057600080fd5b505af1925050508015613240575060408051601f3d908101601f1916820190925261323d91810190613982565b60015b61329a573d80801561326e576040519150601f19603f3d011682016040523d82523d6000602084013e613273565b606091505b5080516132925760405162461bcd60e51b8152600401610c8490613bbc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061289f565b506001949350505050565b6001600160a01b0382166133155760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c84565b61331e816127d6565b1561336a5760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610c84565b6001600160a01b0382166000908152600360205260408120805460019290613393908490613fc7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392906000805160206141cd833981519152908290a45050565b606061289f848460008561349a565b600081815b845181101561349257600085828151811061341057613410614167565b6020026020010151905080831161345257604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061347f565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061348a816140d9565b9150506133f3565b509392505050565b6060824710156134fb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610c84565b843b6135495760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c84565b600080866001600160a01b031685876040516135659190613acc565b60006040518083038185875af1925050503d80600081146135a2576040519150601f19603f3d011682016040523d82523d6000602084013e6135a7565b606091505b50915091506135b78282866135c2565b979650505050505050565b606083156135d1575081611f83565b8251156135e15782518084602001fd5b8160405162461bcd60e51b8152600401610c849190613ba9565b82805461360790614077565b90600052602060002090601f016020900481019282613629576000855561366f565b82601f1061364257805160ff191683800117855561366f565b8280016001018555821561366f579182015b8281111561366f578251825591602001919060010190613654565b5061367b92915061367f565b5090565b5b8082111561367b5760008155600101613680565b60006001600160401b038311156136ad576136ad61417d565b6136c0601f8401601f1916602001613f75565b90508281528383830111156136d457600080fd5b828260208301376000602084830101529392505050565b80356001600160401b038116811461370257600080fd5b919050565b60006020828403121561371957600080fd5b8135611f8381614193565b6000806040838503121561373757600080fd5b823561374281614193565b9150602083013561375281614193565b809150509250929050565b60008060006060848603121561377257600080fd5b833561377d81614193565b9250602084013561378d81614193565b929592945050506040919091013590565b600080600080608085870312156137b457600080fd5b84356137bf81614193565b935060208501356137cf81614193565b92506040850135915060608501356001600160401b038111156137f157600080fd5b8501601f8101871361380257600080fd5b61381187823560208401613694565b91505092959194509250565b6000806040838503121561383057600080fd5b823561383b81614193565b91506020830135613752816141a8565b6000806040838503121561385e57600080fd5b823561386981614193565b946020939093013593505050565b6000602080838503121561388a57600080fd5b82356001600160401b03808211156138a157600080fd5b818501915085601f8301126138b557600080fd5b8135818111156138c7576138c761417d565b8060051b91506138d8848301613f75565b8181528481019084860184860187018a10156138f357600080fd5b600095505b83861015613922578035945061390d85614193565b848352600195909501949186019186016138f8565b5098975050505050505050565b60006020828403121561394157600080fd5b8151611f83816141a8565b60006020828403121561395e57600080fd5b5035919050565b60006020828403121561397757600080fd5b8135611f83816141b6565b60006020828403121561399457600080fd5b8151611f83816141b6565b6000602082840312156139b157600080fd5b81356001600160401b038111156139c757600080fd5b8201601f810184136139d857600080fd5b61289f84823560208401613694565b6000602082840312156139f957600080fd5b5051919050565b600060208284031215613a1257600080fd5b611f83826136eb565b600080600060408486031215613a3057600080fd5b613a39846136eb565b925060208401356001600160401b0380821115613a5557600080fd5b818601915086601f830112613a6957600080fd5b813581811115613a7857600080fd5b8760208260051b8501011115613a8d57600080fd5b6020830194508093505050509250925092565b60008151808452613ab881602086016020860161404b565b601f01601f19169290920160200192915050565b60008251613ade81846020870161404b565b9190910192915050565b60008351613afa81846020880161404b565b835190830190613b0e81836020880161404b565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b7790830184613aa0565b9695505050505050565b6020810160078310613ba357634e487b7160e01b600052602160045260246000fd5b91905290565b602081526000611f836020830184613aa0565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b60208082526025908201527f746f6b656e73206d696e7465642077696c6c20676f206f7665722075736572206040820152641b1a5b5a5d60da1b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601890820152774d6574612d4661726d6572733a20536f6c64206f7574202160401b604082015260600190565b6020808252601f908201527f4d6574612d4661726d6572733a20496e737566696369656e742066756e647300604082015260600190565b6020808252601790820152764d6574612d4661726d6572733a20534f4c44204f55542160481b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600a9082015269536f6c64206f7574202160b01b604082015260600190565b60208082526034908201527f61646472657373206e6f74207665726966696564206f6e2074686520726166666040820152731b19481dda5b9b995c9cc81dda1a5d195b1a5cdd60621b606082015260800190565b602080825260159082015274149859999b19481cd85b19481a185cc8195b991959605a1b604082015260600190565b6020808252601f908201527f6e65656420746f206d696e74206174206c65617374206f6e6520746f6b656e00604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526030908201527f4d6574612d4661726d6572733a20596f752063616e2774206d696e74206d6f7260408201526f65207468616e203520746f6b656e732160801b606082015260800190565b6001600160401b03929092168252602082015260400190565b604051601f8201601f191681016001600160401b0381118282101715613f9d57613f9d61417d565b604052919050565b60006001600160801b03828116848216808303821115613b0e57613b0e614125565b60008219821115613fda57613fda614125565b500190565b60006001600160401b03828116848216808303821115613b0e57613b0e614125565b6000826140105761401061413b565b500490565b600081600019048311821515161561402f5761402f614125565b500290565b60008282101561404657614046614125565b500390565b60005b8381101561406657818101518382015260200161404e565b83811115611e065750506000910152565b600181811c9082168061408b57607f821691505b602082108114156140ac57634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160801b03828116808214156140cf576140cf614125565b6001019392505050565b60006000198214156140ed576140ed614125565b5060010190565b60006001600160401b03828116808214156140cf576140cf614125565b6000826141205761412061413b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146127d357600080fd5b80151581146127d357600080fd5b6001600160e01b0319811681146127d357600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220f592fe9a2e09fb011fecb16d761e7cfa866c08f18b1837907ed1fc08237c53c064736f6c63430008070033

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

0000000000000000000000000000000000000000000000000000000000000060eb75385f55ee7707a5c45b697f24667e62c3ff4bb5daec52249dc3034b42fba31e4d1f954703d73354536f43e7a0fd5629e8b47af962092bf8937b0fcc2af6df000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f697066732e696f2f697066732f6261666b726569616873716a72346b73796f75726c736a6b7673356f79366d616e3677687a746e6d72706b73626b747032356d6179367273696d7900000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _initNotRevealedUri (string): https://ipfs.io/ipfs/bafkreiahsqjr4ksyourlsjkvs5oy6man6whztnmrpksbktp25may6rsimy
Arg [1] : _raffleWhitelist (bytes32): 0xeb75385f55ee7707a5c45b697f24667e62c3ff4bb5daec52249dc3034b42fba3
Arg [2] : _privateWhitelist (bytes32): 0x1e4d1f954703d73354536f43e7a0fd5629e8b47af962092bf8937b0fcc2af6df

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : eb75385f55ee7707a5c45b697f24667e62c3ff4bb5daec52249dc3034b42fba3
Arg [2] : 1e4d1f954703d73354536f43e7a0fd5629e8b47af962092bf8937b0fcc2af6df
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [4] : 68747470733a2f2f697066732e696f2f697066732f6261666b72656961687371
Arg [5] : 6a72346b73796f75726c736a6b7673356f79366d616e3677687a746e6d72706b
Arg [6] : 73626b747032356d6179367273696d7900000000000000000000000000000000


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.