Contract 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec 9

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x54ccce7135e6fa837a8fca9a367327de6aadc9e2da5ea31547a72e220d7e2396Set Approval For...1828866142024-02-21 4:20:243 days 16 hrs ago0x6490333e9d195aeaae4ac6ce138854e59a44db42 IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00007346 0.1
0x53f09f8ae49865ca18fc9168fcebeb51724dd56050b34b03e83e49e8aa2d5bebSet Approval For...1816271912024-02-17 9:37:347 days 10 hrs ago0x445c9da83c4211fa8829672785599dd8180ade7c IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00004141 0.1
0x1355df4c872f6b9028bfdf8e1d137fee8e2df379a93aa79002d99844e8061529Set Approval For...1816067842024-02-17 8:10:317 days 12 hrs ago0x89c94e9bf61dff3f31e78874d3954ea7fdd570a9 IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00003361 0.1
0xe29ab32f683d32438b46dc94f8a1f0f067aabc8ee0d6abefaa5a21cbfb61aac8Quest1808193442024-02-14 23:40:319 days 20 hrs ago0x877b37d3e5467b4aae7687dd3480a46c8d3e16be IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.000037 0.1
0xc8a194e7e3bec1ccfc975f8f08005f8c0dabf3304a6a814bd72a82c75d9ac789Quest1808192842024-02-14 23:40:159 days 20 hrs ago0x877b37d3e5467b4aae7687dd3480a46c8d3e16be IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00003706 0.1
0xa58d787ffa7b9534f72dc77bddb55a27a5304fdf81bdf72f733d2d04dd3f0b6eQuest1808191492024-02-14 23:39:389 days 20 hrs ago0x877b37d3e5467b4aae7687dd3480a46c8d3e16be IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00003706 0.1
0xaddd6d634894a33cb7fa72a4c9991f9e42a47481cee409375428fa39c2c4b5d3Set Approval For...1804438712024-02-13 20:44:2910 days 23 hrs ago0x225b748ae62a41018089b241d158e8d6a722ad1e IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.0000652 0.1
0xffb34c7c23cc5974843d7e0d4d8ce5b3079626a83d1bea212c00d896e859ab43Quest1787787582024-02-08 20:01:1716 days 33 mins ago0x877b37d3e5467b4aae7687dd3480a46c8d3e16be IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00008466 0.1
0xdba1b907af97e06f61f1d1caf1c7aec33a442efc5439d2fd82a39578fa798b10Quest1787787262024-02-08 20:01:0916 days 33 mins ago0x877b37d3e5467b4aae7687dd3480a46c8d3e16be IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00008418 0.1
0x741f71db0c8ef7b73adacc7508a31216d8870bf3f6796bb529ec36b38702699cQuest1787787012024-02-08 20:01:0316 days 33 mins ago0x877b37d3e5467b4aae7687dd3480a46c8d3e16be IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00008472 0.1
0x0b23ae2938cb911067728d76ec286a5265d81df9714b9daa60287d91cdd44478Set Approval For...1783741372024-02-07 14:48:2617 days 5 hrs ago0xf4d9c88c924079422e5ad77ee64b967ce4efd828 IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00012079 0.1
0xdb02ec2347d8a9f24278b370a9e5fe8aa0c4b6b0ee5bfa71ce93256c7fa423e6Quest1734225992024-01-23 17:14:5832 days 3 hrs ago0x877b37d3e5467b4aae7687dd3480a46c8d3e16be IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00003436 0.1
0xe2c2f5f2d72aef2a45d9e5f541676bdef542412c51f15b7d5e850e981bda8457Quest1734225532024-01-23 17:14:4532 days 3 hrs ago0x877b37d3e5467b4aae7687dd3480a46c8d3e16be IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00003442 0.1
0xf21d3019f2a6e4a170f65b81e9bf0ec852e91ea6b27dc99ffcd741e92ba6b62dQuest1734224622024-01-23 17:14:2132 days 3 hrs ago0x877b37d3e5467b4aae7687dd3480a46c8d3e16be IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00003442 0.1
0x3262c8e9a659f352a26c61175e3f873313da55c8331fcfe7de5504e365307914Set Approval For...1733048852024-01-23 9:03:0032 days 11 hrs ago0x1aacd142f181601e98b0f6aaeb017f9a59ac43eb IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.000034870.1
0x99d0a595b77d0f0ff0447dafba3100ff6f038450343fb0e7176bf14a85127000Set Approval For...1733002232024-01-23 8:43:4132 days 11 hrs ago0xefff619436dacb3ab53ea271500d6b7849955e2f IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.000030150.1
0x12fe18cb36436e0a02287a961081db2434d2e9ba127b2b26696b2368883e177eSet Approval For...1729593142024-01-22 8:42:3933 days 11 hrs ago0x8956167050873ac88d51041c16d6ffe7df9622d8 IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00012484 0.1
0xf1e4b3391edbd2111f3d8893e61f5a8e166fbd5753d99c4cf4460b5d01b1ec77Set Approval For...1724566802024-01-20 20:18:3235 days 16 mins ago0x75784b13b289b8773218940a6dee6162d53e07d3 IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.000030830.1
0x890ec2e383842aecfaef0e37d945bd17dec1e096fabe032089b888051a027b59Set Approval For...1724565952024-01-20 20:18:0935 days 16 mins ago0x75784b13b289b8773218940a6dee6162d53e07d3 IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.000030630.1
0xdb35d69cb081d47640ff7a71fd4795aab426a9de0b3357825869f2b15eb55b11Quest1715218592024-01-18 1:09:4837 days 19 hrs ago0x877b37d3e5467b4aae7687dd3480a46c8d3e16be IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00006998 0.1
0x32439ecafd4151d1cd254769baa72b73a18b3b41876a06484dff06bbba3679a5Quest1715218382024-01-18 1:09:4337 days 19 hrs ago0x877b37d3e5467b4aae7687dd3480a46c8d3e16be IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00006998 0.1
0xef2d8b7f5eb2ab4deae71fc79438c3de6885c5e931ef92cd14d223c4c467a073Quest1715217912024-01-18 1:09:3237 days 19 hrs ago0x877b37d3e5467b4aae7687dd3480a46c8d3e16be IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00006992 0.1
0x2a6264c18a8bb12822318c8f5bbaa1813f554bb774b3fb1c21624ef22648c030Set Approval For...1714803062024-01-17 22:01:1237 days 22 hrs ago0x81f0401aabe958b62a46cd84fee445a90f1c58b2 IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00008471 0.1
0x3fb766be5ba4927ef41553a503d558a616ddb0dcd68ab12771c61d1962919b5eQuest1705615632024-01-15 2:47:1340 days 17 hrs ago0x877b37d3e5467b4aae7687dd3480a46c8d3e16be IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00003761 0.1
0x9cb10888e10a3e746fcded95c6380e68d3b5e367fb24f50fb368e4d8f0c94327Level Up1705615242024-01-15 2:47:0340 days 17 hrs ago0x877b37d3e5467b4aae7687dd3480a46c8d3e16be IN  0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH0.00004188 0.1
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xa817634cd77f7f87ae686b2f11517f784a9fb1886f2a65ab014009a89158e057717185852023-03-20 8:48:49341 days 11 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0xa817634cd77f7f87ae686b2f11517f784a9fb1886f2a65ab014009a89158e057717185852023-03-20 8:48:49341 days 11 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0x735490ce0b8a009e42d78fac15efc27bd6b44bdf38896ca2c8416e74c51866b2717013422023-03-20 7:37:43341 days 12 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0x735490ce0b8a009e42d78fac15efc27bd6b44bdf38896ca2c8416e74c51866b2717013422023-03-20 7:37:43341 days 12 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0xf476ba327d4a20c84f0d9c47b85a1af648629302c09590535c2836899e05f988716066912023-03-20 0:57:05341 days 19 hrs ago tofuNFT: Market 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0x282292561cf621a9526a6f310d1c1805c06ff2ba1fea1d9b928f8ce97b530d8b715658412023-03-19 22:03:35341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0x282292561cf621a9526a6f310d1c1805c06ff2ba1fea1d9b928f8ce97b530d8b715658412023-03-19 22:03:35341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0xf2cac227121aae9031f141d48d3da1812ebd0f0a9a27db24b3d035eb903e2f70715657762023-03-19 22:03:19341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0xf2cac227121aae9031f141d48d3da1812ebd0f0a9a27db24b3d035eb903e2f70715657762023-03-19 22:03:19341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0x22e09432c0095b72bbcd15ba01b0dbf1fabfb7276512d290ea0e462cb4daddc3715657532023-03-19 22:03:12341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0x22e09432c0095b72bbcd15ba01b0dbf1fabfb7276512d290ea0e462cb4daddc3715657532023-03-19 22:03:12341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0x6e4fb2e436238b2b5fb19f544b407871fec936dc4b7894eb59595a7e1e8c9bd8715657212023-03-19 22:03:04341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0x6e4fb2e436238b2b5fb19f544b407871fec936dc4b7894eb59595a7e1e8c9bd8715657212023-03-19 22:03:04341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0xf5d5a3de471a767cedbcd1194b7d6890cdb16618ae7e5b82c2280551e28b6066715656882023-03-19 22:02:55341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0xf5d5a3de471a767cedbcd1194b7d6890cdb16618ae7e5b82c2280551e28b6066715656882023-03-19 22:02:55341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0xd945a8eb7f787b81cac18b87c21678cfcd8aa41964aded5e2c5267ff71e1cd17715656592023-03-19 22:02:48341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0xd945a8eb7f787b81cac18b87c21678cfcd8aa41964aded5e2c5267ff71e1cd17715656592023-03-19 22:02:48341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0x8ee377f18e4169321da79443b11541d67405d04dde4f64d03a889d5d1b7717a6715656112023-03-19 22:02:36341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0x8ee377f18e4169321da79443b11541d67405d04dde4f64d03a889d5d1b7717a6715656112023-03-19 22:02:36341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0xf51d85c3f453c797081320c5a3c912b3ca44fb0b67e1676380defb237fed6da9715655662023-03-19 22:02:24341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0xf51d85c3f453c797081320c5a3c912b3ca44fb0b67e1676380defb237fed6da9715655662023-03-19 22:02:24341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0x53cc719271173768c9d82000893b9402b43babdc92bc882329c3eadf309a4c5c715655022023-03-19 22:02:16341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0x53cc719271173768c9d82000893b9402b43babdc92bc882329c3eadf309a4c5c715655022023-03-19 22:02:16341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0x5d655e70d40f1b038f17fd5ded447bf19922a1ab23a273b753fbaf7a49ce0f17715654802023-03-19 22:02:10341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
0x5d655e70d40f1b038f17fd5ded447bf19922a1ab23a273b753fbaf7a49ce0f17715654802023-03-19 22:02:10341 days 22 hrs ago Treasure DAO: Trove Marketplace 0x8ec75bc963181489d7fc1d892f687b8b0987d9ec0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DefiHeroes

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : DefiHeroes.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
/* 

      _____________________________________
     |                                     |
     |                  The                |
     |               Defi Heroes           |
     |______________by CastleDAO___________|
     

*/

contract DefiHeroes is
  ERC721,
  ERC721Enumerable,
  Pausable,
  Ownable,
  ReentrancyGuard,
  AccessControl
{
  using Counters for Counters.Counter;

  // Create a new role identifier for the game role
  bytes32 public constant GAME_ROLE = keccak256("GAME_ROLE");

  uint256 public price = 0; //0 ETH :)
  uint256 public priceMultiple = 10000000000000000; // 0.01 ETH
  uint256 private _maxSupply = 4000;
  uint256 private _maxMintAmount = 5;
  bool public whiteListActive = false;
  bytes32 public merkleRoot;

  Counters.Counter private _tokenIdCounter;

  struct warrior {
    uint256 speed;
    uint256 intelligence;
    uint256 strength;
    uint256 abilityPower;
    uint256 defense;
    uint256 agility;
    uint256 magicResistance;
    uint256 constitution;
    uint256 level;
    uint256 createdAt;
  }

  mapping(uint256 => warrior) public warriors;
  mapping(uint256 => uint256) public experience;
  mapping(uint256 => uint256) public warriorsQuestLog;
  mapping(address => bool) public freeclaimed;


  uint256 public xpPerQuest = 100;
  uint256 public maxLevelWarriors = 10;
  uint256 constant DAY = 1 days;

  // Events
  event WarriorCreated(uint256 tokenId, warrior warriorCreated);

  event LeveledUp(address indexed leveler, uint256 tokenId, uint256 level);
  event ExperienceSpent(uint256 tokenId, uint256 xpSpent, uint256 xpRemaining);
  event ExperienceGained(
    uint256 tokenId,
    uint256 xpGained,
    uint256 xpRemaining
  );

  event Quest(uint256 tokenId, uint256 xpGained, uint256 xpTotal);

  event NFTCreated(uint256 indexed tokenId);

  constructor(string memory newBaseURI, uint256 newMaxSupply)
    ERC721("DefiHeroes", "DEFIHEROES")
  {
    setBaseURI(newBaseURI);
    setMaxSupply(newMaxSupply);

    // Increment tokenIdCounter so it starts at one
    _tokenIdCounter.increment();
  }


  function getCurrentTokenId() public view returns (uint256) {
    return _tokenIdCounter.current();
  }

  function setWhiteListActive(bool _active) public onlyOwner {
    whiteListActive = _active;
  }

  function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
    merkleRoot = _merkleRoot;
  }

  function setPublicPrice(uint256 newPrice) public onlyOwner {
    price = newPrice;
  }

  function setMaxSupply(uint256 _newMaxSupply) public onlyOwner {
    _maxSupply = _newMaxSupply;
  }

  function ownerWithdraw() external onlyOwner {
    payable(owner()).transfer(address(this).balance);
  }

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

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

  // Create warriors
  function _createWarrior(uint256 _tokenId) internal {
    warriors[_tokenId].speed = randomFromString(
      string(abi.encodePacked("speed", toString(_tokenId))),
      12
    );

    warriors[_tokenId].intelligence = randomFromString(
      string(abi.encodePacked("intelligence", toString(_tokenId))),
      12
    );

    warriors[_tokenId].strength = randomFromString(
      string(abi.encodePacked("strength", toString(_tokenId))),
      12
    );

    warriors[_tokenId].abilityPower = randomFromString(
      string(abi.encodePacked("abilityPower", toString(_tokenId))),
      12
    );

    warriors[_tokenId].defense = randomFromString(
      string(abi.encodePacked("defense", toString(_tokenId))),
      12
    );

    warriors[_tokenId].agility = randomFromString(
      string(abi.encodePacked("agility", toString(_tokenId))),
      12
    );

    warriors[_tokenId].magicResistance = randomFromString(
      string(abi.encodePacked("magicResistance", toString(_tokenId))),
      12
    );

    warriors[_tokenId].constitution = randomFromString(
      string(abi.encodePacked("constitution", toString(_tokenId))),
      11
    ) + 1;
    warriors[_tokenId].level = 1;
    experience[_tokenId] = 0;

    emit WarriorCreated(_tokenId, warriors[_tokenId]);
  }

  /**
   * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden
   * in child contracts.
   */
  string private baseURI = "";

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

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

  // Mint
  modifier tokenMintable(uint256 tokenId) {
    require(tokenId > 0 && tokenId <= _maxSupply, "Token ID invalid");
    require(price <= msg.value, "Ether value sent is not correct");
    _;
  }

  function _internalMint(address _address) internal returns (uint256) {
    // minting logic
    uint256 current = _tokenIdCounter.current();
    require(current <= _maxSupply, "Max token reached");

    _createWarrior(current);
    _safeMint(_address, current);
    emit NFTCreated(current);
    _tokenIdCounter.increment();

    return current;
  }

  function whiteListMint(bytes32[] calldata _merkleProof)
    public
    payable
    nonReentrant
  {
    require(whiteListActive, "WhiteList mint is not active");
    address to = _msgSender();
    require(!freeclaimed[to], "Address already claimed");

    bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
    require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "Invalid proof");

    uint256 supply = totalSupply();
    // Mint 2 for free on whitelist
    require(supply + 2 <= _maxSupply, "Exceeds maximum supply");

    _internalMint(to);
    _internalMint(to);

    freeclaimed[to] = true;
  }

  function mint()
    public
    payable
    nonReentrant
    tokenMintable(_tokenIdCounter.current())
  {
    require(!whiteListActive, "Whitelist mint is active");

    address to = _msgSender();
    require(!freeclaimed[to], "Address already claimed");
    _internalMint(to);
    freeclaimed[to] = true;
  }

  function mintMultiple(uint256 _num) public payable {
    require(!whiteListActive, "Whitelist mint is active");

    uint256 supply = totalSupply();
    address to = _msgSender();
    require(_num > 0, "The minimum is one token");
    require(_num <= _maxMintAmount, "You can mint a max of 5 tokens");
    require(supply + _num <= _maxSupply, "Exceeds maximum supply");
    require(msg.value >= priceMultiple * _num, "Ether sent is not enough");

    for (uint256 i; i < _num; i++) {
      _internalMint(to);
    }
  }

  function ownerMint(uint256 amount, address _address)
    public
    nonReentrant
    onlyOwner
  {
    uint256 supply = totalSupply();
    require(amount > 0, "The minimum is one token");

    require(supply + amount <= _maxSupply, "Exceeds maximum supply");

    for (uint256 i = 1; i <= amount; i++) {
      _internalMint(_address);
    }
  }

  // Quests and levels

  function setMaxLevels(uint256 _newMaxLevels) public onlyOwner {
    maxLevelWarriors = _newMaxLevels;
  }

  function setXPPerQuest(uint256 _newXPPerQuest) public onlyOwner {
    xpPerQuest = _newXPPerQuest;
  }

  function spendExperience(uint256 _tokenId, uint256 _experience) public {
    require(
      _isApprovedOrOwner(msg.sender, _tokenId) ||
        hasRole(GAME_ROLE, msg.sender),
      "Does not have permission"
    );
    require(_experience <= experience[_tokenId], "Not enough experience");

    experience[_tokenId] -= _experience;

    emit ExperienceSpent(_tokenId, _experience, experience[_tokenId]);
  }

  function addExperience(uint256 _tokenId, uint256 _experience)
    public
    onlyOwner
  {
    require(hasRole(GAME_ROLE, msg.sender), "Does not have Game role");

    experience[_tokenId] += _experience;
    emit ExperienceGained(_tokenId, _experience, experience[_tokenId]);
  }

  function quest(uint256 _tokenId) external {
    require(_isApprovedOrOwner(msg.sender, _tokenId));
    require(
      block.timestamp > warriorsQuestLog[_tokenId],
      "Too early to do a new quest"
    );

    uint256 xpGained = randomFromString(
      string(abi.encodePacked("quest", toString(_tokenId))),
      xpPerQuest
    ) + xpPerQuest;

    warriorsQuestLog[_tokenId] = block.timestamp + DAY;
    experience[_tokenId] += xpGained;
    emit Quest(_tokenId, xpGained, experience[_tokenId]);
    emit ExperienceGained(_tokenId, xpGained, experience[_tokenId]);
  }

  function levelUp(uint256 _tokenId) external {
    require(
      _isApprovedOrOwner(msg.sender, _tokenId) ||
        hasRole(GAME_ROLE, msg.sender),
      "Does not have permission"
    );
    uint256 _level = warriors[_tokenId].level;
    require(_level <= maxLevelWarriors, "Max level reached");
    uint256 _xpRequired = experienceRequired(_level, 100);
    spendExperience(_tokenId, _xpRequired);

    warriors[_tokenId].level += 1;

    warriors[_tokenId].defense += 1;
    warriors[_tokenId].strength += 1;
    warriors[_tokenId].intelligence += 1;
    warriors[_tokenId].agility += 1;
    warriors[_tokenId].abilityPower += 1;
    warriors[_tokenId].magicResistance += 1;
    warriors[_tokenId].constitution += 1;
    warriors[_tokenId].speed += 1;

    emit LeveledUp(msg.sender, _tokenId, _level + 1);
  }

  // Increase the difficulty of leveling up
  // 100, 220, 360, 520, 700, 900
  function experienceRequired(uint256 _level, uint256 _xpPerLevel)
    public
    pure
    returns (uint256 xp_to_next_level)
  {
    xp_to_next_level = _level * _xpPerLevel;
    for (uint256 i = 1; i < _level; i++) {
      xp_to_next_level += _level * (_xpPerLevel / 10);
    }
  }

  // The following functions are overrides required by Solidity.

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

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 tokenId
  ) internal override(ERC721, ERC721Enumerable) whenNotPaused {
    super._beforeTokenTransfer(from, to, tokenId);
  }

  // Utilities
  // Returns a random item from the list, always the same for the same token ID
  function pluck(
    uint256 tokenId,
    string memory keyPrefix,
    string[] memory sourceArray
  ) internal view returns (string memory) {
    uint256 rand = randomFromString(
      string(abi.encodePacked(keyPrefix, toString(tokenId))),
      sourceArray.length
    );

    return sourceArray[rand];
  }

  function randomFromString(string memory _salt, uint256 _limit)
    internal
    view
    returns (uint256)
  {
    return
      uint256(
        keccak256(abi.encodePacked(block.number, block.timestamp, _salt))
      ) % _limit;
  }

  function toString(uint256 value) internal pure returns (string memory) {
    // Inspired by OraclizeAPI's implementation - MIT license
    // 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);
  }
}

File 2 of 19 : 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 3 of 19 : 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 4 of 19 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

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

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

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

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 5 of 19 : 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 6 of 19 : 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 7 of 19 : 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 8 of 19 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 9 of 19 : 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 10 of 19 : 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 11 of 19 : 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 12 of 19 : 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 13 of 19 : 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 19 : 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 15 of 19 : 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 16 of 19 : 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 17 of 19 : 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);
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 19 of 19 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

Contract ABI

[{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"},{"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"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":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xpGained","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xpRemaining","type":"uint256"}],"name":"ExperienceGained","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xpSpent","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xpRemaining","type":"uint256"}],"name":"ExperienceSpent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"leveler","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"level","type":"uint256"}],"name":"LeveledUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"NFTCreated","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":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xpGained","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xpTotal","type":"uint256"}],"name":"Quest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"uint256","name":"speed","type":"uint256"},{"internalType":"uint256","name":"intelligence","type":"uint256"},{"internalType":"uint256","name":"strength","type":"uint256"},{"internalType":"uint256","name":"abilityPower","type":"uint256"},{"internalType":"uint256","name":"defense","type":"uint256"},{"internalType":"uint256","name":"agility","type":"uint256"},{"internalType":"uint256","name":"magicResistance","type":"uint256"},{"internalType":"uint256","name":"constitution","type":"uint256"},{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"createdAt","type":"uint256"}],"indexed":false,"internalType":"struct DefiHeroes.warrior","name":"warriorCreated","type":"tuple"}],"name":"WarriorCreated","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GAME_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_experience","type":"uint256"}],"name":"addExperience","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"experience","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_level","type":"uint256"},{"internalType":"uint256","name":"_xpPerLevel","type":"uint256"}],"name":"experienceRequired","outputs":[{"internalType":"uint256","name":"xp_to_next_level","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeclaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"levelUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxLevelWarriors","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_num","type":"uint256"}],"name":"mintMultiple","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceMultiple","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"quest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxLevels","type":"uint256"}],"name":"setMaxLevels","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"setWhiteListActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newXPPerQuest","type":"uint256"}],"name":"setXPPerQuest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_experience","type":"uint256"}],"name":"spendExperience","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"warriors","outputs":[{"internalType":"uint256","name":"speed","type":"uint256"},{"internalType":"uint256","name":"intelligence","type":"uint256"},{"internalType":"uint256","name":"strength","type":"uint256"},{"internalType":"uint256","name":"abilityPower","type":"uint256"},{"internalType":"uint256","name":"defense","type":"uint256"},{"internalType":"uint256","name":"agility","type":"uint256"},{"internalType":"uint256","name":"magicResistance","type":"uint256"},{"internalType":"uint256","name":"constitution","type":"uint256"},{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"createdAt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"warriorsQuestLog","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whiteListActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whiteListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"xpPerQuest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6000600d819055662386f26fc10000600e55610fa0600f5560056010556011805460ff191690556064601855600a60195560a0604081905260808290526200004b91601a919062000269565b503480156200005957600080fd5b50604051620045a4380380620045a48339810160408190526200007c916200030f565b6040518060400160405280600a815260200169446566694865726f657360b01b8152506040518060400160405280600a815260200169444546494845524f455360b01b8152508160009080519060200190620000da92919062000269565b508051620000f090600190602084019062000269565b5050600a805460ff1916905550620001083362000142565b6001600b5562000118826200019c565b62000123816200020a565b6200013a60136200026060201b620022761760201c565b505062000441565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a546001600160a01b03610100909104163314620001f15760405162461bcd60e51b815260206004820181905260248201526000805160206200458483398151915260448201526064015b60405180910390fd5b80516200020690601a90602084019062000269565b5050565b600a546001600160a01b036101009091041633146200025b5760405162461bcd60e51b81526020600482018190526024820152600080516020620045848339815191526044820152606401620001e8565b600f55565b80546001019055565b8280546200027790620003ee565b90600052602060002090601f0160209004810192826200029b5760008555620002e6565b82601f10620002b657805160ff1916838001178555620002e6565b82800160010185558215620002e6579182015b82811115620002e6578251825591602001919060010190620002c9565b50620002f4929150620002f8565b5090565b5b80821115620002f45760008155600101620002f9565b6000806040838503121562000322578182fd5b82516001600160401b038082111562000339578384fd5b818501915085601f8301126200034d578384fd5b8151818111156200036257620003626200042b565b604051601f8201601f19908116603f011681019083821181831017156200038d576200038d6200042b565b81604052828152602093508884848701011115620003a9578687fd5b8691505b82821015620003cc5784820184015181830185015290830190620003ad565b82821115620003dd57868484830101525b969092015195979596505050505050565b600181811c908216806200040357607f821691505b602082108114156200042557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61413380620004516000396000f3fe6080604052600436106103765760003560e01c806370a08231116101d1578063a22cb46511610102578063d3e97165116100a0578063e24b3cea1161006f578063e24b3cea14610a68578063e985e9c514610a88578063eceb7d5214610ad1578063f2fde38b14610af157600080fd5b8063d3e97165146109e5578063d52c57e014610a12578063d547741f14610a32578063dcc70d5214610a5257600080fd5b8063b88d4fde116100dc578063b88d4fde1461096f578063c62752551461098f578063c87b56dd146109af578063c9a0112d146109cf57600080fd5b8063a22cb4651461091a578063ab4007061461093a578063abbb5a551461095c57600080fd5b806394f42da91161016f578063a035b1fe11610149578063a035b1fe146108a2578063a1ff7e90146108b8578063a20ab8ef146108d8578063a217fddf1461090557600080fd5b806394f42da91461084a57806395d89b411461087a57806397254e551461088f57600080fd5b80637cb64759116101ab5780637cb64759146107d25780638456cb59146107f25780638da5cb5b1461080757806391d148541461082a57600080fd5b806370a082311461077d578063715018a61461079d57806376ef6ac7146107b257600080fd5b80632f2ff15d116102ab57806355f804b3116102495780635d240c58116102235780635d240c58146106fd5780635e4887461461071d5780636352211e1461073d5780636f8b44b01461075d57600080fd5b806355f804b3146106b057806356189236146106d05780635c975abb146106e557600080fd5b80633f4ba83a116102855780633f4ba83a1461064657806342842e0e1461065b5780634311de8f1461067b5780634f6ccce71461069057600080fd5b80632f2ff15d146105e65780632f745c591461060657806336568abe1461062657600080fd5b806318160ddd1161031857806323b872dd116102f257806323b872dd14610566578063248a9ca3146105865780632e4355cd146105b65780632eb4a7ab146105d057600080fd5b806318160ddd146104785780631a1707121461048d5780631eb899a31461054657600080fd5b8063095ea7b311610354578063095ea7b31461040a5780630c174f611461042c5780630ce90ec2146104505780631249c58b1461047057600080fd5b806301ffc9a71461037b57806306fdde03146103b0578063081812fc146103d2575b600080fd5b34801561038757600080fd5b5061039b610396366004613ac4565b610b11565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103c5610b22565b6040516103a79190613e24565b3480156103de57600080fd5b506103f26103ed366004613a8a565b610bb4565b6040516001600160a01b0390911681526020016103a7565b34801561041657600080fd5b5061042a6104253660046139d7565b610c4e565b005b34801561043857600080fd5b5061044260195481565b6040519081526020016103a7565b34801561045c57600080fd5b5061042a61046b366004613a8a565b610d64565b61042a610fee565b34801561048457600080fd5b50600854610442565b34801561049957600080fd5b506104fc6104a8366004613a8a565b6014602052806000526040600020600091509050806000015490806001015490806002015490806003015490806004015490806005015490806006015490806007015490806008015490806009015490508a565b604080519a8b5260208b0199909952978901969096526060880194909452608087019290925260a086015260c085015260e0840152610100830152610120820152610140016103a7565b34801561055257600080fd5b5061042a610561366004613b42565b611199565b34801561057257600080fd5b5061042a6105813660046138fa565b6112d8565b34801561059257600080fd5b506104426105a1366004613a8a565b6000908152600c602052604090206001015490565b3480156105c257600080fd5b5060115461039b9060ff1681565b3480156105dc57600080fd5b5061044260125481565b3480156105f257600080fd5b5061042a610601366004613aa2565b611309565b34801561061257600080fd5b506104426106213660046139d7565b61132f565b34801561063257600080fd5b5061042a610641366004613aa2565b6113c5565b34801561065257600080fd5b5061042a611443565b34801561066757600080fd5b5061042a6106763660046138fa565b61147d565b34801561068757600080fd5b5061042a611498565b34801561069c57600080fd5b506104426106ab366004613a8a565b61150b565b3480156106bc57600080fd5b5061042a6106cb366004613afc565b6115ac565b3480156106dc57600080fd5b506104426115ef565b3480156106f157600080fd5b50600a5460ff1661039b565b34801561070957600080fd5b5061042a610718366004613b42565b6115ff565b34801561072957600080fd5b50610442610738366004613b42565b611705565b34801561074957600080fd5b506103f2610758366004613a8a565b611758565b34801561076957600080fd5b5061042a610778366004613a8a565b6117cf565b34801561078957600080fd5b506104426107983660046138ae565b611804565b3480156107a957600080fd5b5061042a61188b565b3480156107be57600080fd5b5061042a6107cd366004613a8a565b6118c5565b3480156107de57600080fd5b5061042a6107ed366004613a8a565b6118fa565b3480156107fe57600080fd5b5061042a61192f565b34801561081357600080fd5b50600a5461010090046001600160a01b03166103f2565b34801561083657600080fd5b5061039b610845366004613aa2565b611967565b34801561085657600080fd5b5061039b6108653660046138ae565b60176020526000908152604090205460ff1681565b34801561088657600080fd5b506103c5611992565b61042a61089d366004613a00565b6119a1565b3480156108ae57600080fd5b50610442600d5481565b3480156108c457600080fd5b5061042a6108d3366004613a8a565b611ba7565b3480156108e457600080fd5b506104426108f3366004613a8a565b60166020526000908152604090205481565b34801561091157600080fd5b50610442600081565b34801561092657600080fd5b5061042a6109353660046139ae565b611bdc565b34801561094657600080fd5b506104426000805160206140de83398151915281565b61042a61096a366004613a8a565b611be7565b34801561097b57600080fd5b5061042a61098a366004613935565b611d92565b34801561099b57600080fd5b5061042a6109aa366004613a8a565b611dc4565b3480156109bb57600080fd5b506103c56109ca366004613a8a565b611df9565b3480156109db57600080fd5b5061044260185481565b3480156109f157600080fd5b50610442610a00366004613a8a565b60156020526000908152604090205481565b348015610a1e57600080fd5b5061042a610a2d366004613aa2565b611ed4565b348015610a3e57600080fd5b5061042a610a4d366004613aa2565b611fe0565b348015610a5e57600080fd5b50610442600e5481565b348015610a7457600080fd5b5061042a610a83366004613a8a565b612006565b348015610a9457600080fd5b5061039b610aa33660046138c8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610add57600080fd5b5061042a610aec366004613a70565b612195565b348015610afd57600080fd5b5061042a610b0c3660046138ae565b6121d8565b6000610b1c8261227f565b92915050565b606060008054610b319061401b565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5d9061401b565b8015610baa5780601f10610b7f57610100808354040283529160200191610baa565b820191906000526020600020905b815481529060010190602001808311610b8d57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c325760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c5982611758565b9050806001600160a01b0316836001600160a01b03161415610cc75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c29565b336001600160a01b0382161480610ce35750610ce38133610aa3565b610d555760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c29565b610d5f83836122a4565b505050565b610d6e3382612312565b80610d8c5750610d8c6000805160206140de83398151915233611967565b610dd35760405162461bcd60e51b81526020600482015260186024820152772237b2b9903737ba103430bb32903832b936b4b9b9b4b7b760411b6044820152606401610c29565b600081815260146020526040902060080154601954811115610e2b5760405162461bcd60e51b815260206004820152601160248201527013585e081b195d995b081c995858da1959607a1b6044820152606401610c29565b6000610e38826064611705565b9050610e448382611199565b6000838152601460205260408120600801805460019290610e66908490613f76565b90915550506000838152601460205260408120600401805460019290610e8d908490613f76565b90915550506000838152601460205260408120600201805460019290610eb4908490613f76565b909155505060008381526014602052604081206001908101805491929091610edd908490613f76565b90915550506000838152601460205260408120600501805460019290610f04908490613f76565b90915550506000838152601460205260408120600301805460019290610f2b908490613f76565b90915550506000838152601460205260408120600601805460019290610f52908490613f76565b90915550506000838152601460205260408120600701805460019290610f79908490613f76565b90915550506000838152601460205260408120805460019290610f9d908490613f76565b909155503390507f42d71c3c3506451c8a59971b26eef130138b9c48475f9856954ccf4b222a0c4584610fd1856001613f76565b6040805192835260208301919091520160405180910390a2505050565b6002600b5414156110115760405162461bcd60e51b8152600401610c2990613f3f565b6002600b5560135460008111801561102b5750600f548111155b61106a5760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881251081a5b9d985b1a5960821b6044820152606401610c29565b34600d5411156110bc5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610c29565b60115460ff161561110a5760405162461bcd60e51b815260206004820152601860248201527757686974656c697374206d696e742069732061637469766560401b6044820152606401610c29565b3360008181526017602052604090205460ff16156111645760405162461bcd60e51b81526020600482015260176024820152761059191c995cdcc8185b1c9958591e4818db185a5b5959604a1b6044820152606401610c29565b61116d81612409565b506001600160a01b03166000908152601760205260409020805460ff19166001908117909155600b5550565b6111a33383612312565b806111c157506111c16000805160206140de83398151915233611967565b6112085760405162461bcd60e51b81526020600482015260186024820152772237b2b9903737ba103430bb32903832b936b4b9b9b4b7b760411b6044820152606401610c29565b60008281526015602052604090205481111561125e5760405162461bcd60e51b81526020600482015260156024820152744e6f7420656e6f75676820657870657269656e636560581b6044820152606401610c29565b6000828152601560205260408120805483929061127c908490613fc1565b9091555050600082815260156020908152604091829020548251858152918201849052918101919091527f58a842f288c183ee29a4170fe1a30324d133624e7047f14ed989db42809966ce906060015b60405180910390a15050565b6112e23382612312565b6112fe5760405162461bcd60e51b8152600401610c2990613eee565b610d5f8383836124a9565b6000828152600c60205260409020600101546113258133612654565b610d5f83836126b8565b600061133a83611804565b821061139c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c29565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b03811633146114355760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610c29565b61143f828261273e565b5050565b600a546001600160a01b036101009091041633146114735760405162461bcd60e51b8152600401610c2990613e89565b61147b6127a5565b565b610d5f83838360405180602001604052806000815250611d92565b600a546001600160a01b036101009091041633146114c85760405162461bcd60e51b8152600401610c2990613e89565b600a546040516001600160a01b0361010090920491909116904780156108fc02916000818181858888f19350505050158015611508573d6000803e3d6000fd5b50565b600061151660085490565b82106115795760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c29565b6008828154811061159a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b036101009091041633146115dc5760405162461bcd60e51b8152600401610c2990613e89565b805161143f90601a906020840190613773565b60006115fa60135490565b905090565b600a546001600160a01b0361010090910416331461162f5760405162461bcd60e51b8152600401610c2990613e89565b6116476000805160206140de83398151915233611967565b6116935760405162461bcd60e51b815260206004820152601760248201527f446f6573206e6f7420686176652047616d6520726f6c650000000000000000006044820152606401610c29565b600082815260156020526040812080548392906116b1908490613f76565b9091555050600082815260156020908152604091829020548251858152918201849052918101919091527fcaa434a316026b149e054a690120ac0358d069c9ffa5eda08124eb17c0f8dbdd906060016112cc565b60006117118284613fa2565b905060015b8381101561175157611729600a84613f8e565b6117339085613fa2565b61173d9083613f76565b91508061174981614056565b915050611716565b5092915050565b6000818152600260205260408120546001600160a01b031680610b1c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c29565b600a546001600160a01b036101009091041633146117ff5760405162461bcd60e51b8152600401610c2990613e89565b600f55565b60006001600160a01b03821661186f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c29565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b036101009091041633146118bb5760405162461bcd60e51b8152600401610c2990613e89565b61147b6000612838565b600a546001600160a01b036101009091041633146118f55760405162461bcd60e51b8152600401610c2990613e89565b601955565b600a546001600160a01b0361010090910416331461192a5760405162461bcd60e51b8152600401610c2990613e89565b601255565b600a546001600160a01b0361010090910416331461195f5760405162461bcd60e51b8152600401610c2990613e89565b61147b612892565b6000918252600c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610b319061401b565b6002600b5414156119c45760405162461bcd60e51b8152600401610c2990613f3f565b6002600b5560115460ff16611a1b5760405162461bcd60e51b815260206004820152601c60248201527f57686974654c697374206d696e74206973206e6f7420616374697665000000006044820152606401610c29565b3360008181526017602052604090205460ff1615611a755760405162461bcd60e51b81526020600482015260176024820152761059191c995cdcc8185b1c9958591e4818db185a5b5959604a1b6044820152606401610c29565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611aef84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601254915084905061290d565b611b2b5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610c29565b6000611b3660085490565b600f54909150611b47826002613f76565b1115611b655760405162461bcd60e51b8152600401610c2990613ebe565b611b6e83612409565b50611b7883612409565b5050506001600160a01b03166000908152601760205260409020805460ff19166001908117909155600b555050565b600a546001600160a01b03610100909104163314611bd75760405162461bcd60e51b8152600401610c2990613e89565b601855565b61143f338383612923565b60115460ff1615611c355760405162461bcd60e51b815260206004820152601860248201527757686974656c697374206d696e742069732061637469766560401b6044820152606401610c29565b6000611c4060085490565b90503382611c8b5760405162461bcd60e51b81526020600482015260186024820152772a34329036b4b734b6bab69034b99037b732903a37b5b2b760411b6044820152606401610c29565b601054831115611cdd5760405162461bcd60e51b815260206004820152601e60248201527f596f752063616e206d696e742061206d6178206f66203520746f6b656e7300006044820152606401610c29565b600f54611cea8484613f76565b1115611d085760405162461bcd60e51b8152600401610c2990613ebe565b82600e54611d169190613fa2565b341015611d655760405162461bcd60e51b815260206004820152601860248201527f45746865722073656e74206973206e6f7420656e6f75676800000000000000006044820152606401610c29565b60005b83811015611d8c57611d7982612409565b5080611d8481614056565b915050611d68565b50505050565b611d9c3383612312565b611db85760405162461bcd60e51b8152600401610c2990613eee565b611d8c848484846129f2565b600a546001600160a01b03610100909104163314611df45760405162461bcd60e51b8152600401610c2990613e89565b600d55565b6000818152600260205260409020546060906001600160a01b0316611e785760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c29565b6000611e82612a25565b90506000815111611ea25760405180602001604052806000815250611ecd565b80611eac84612a34565b604051602001611ebd929190613b8f565b6040516020818303038152906040525b9392505050565b6002600b541415611ef75760405162461bcd60e51b8152600401610c2990613f3f565b6002600b55600a546001600160a01b03610100909104163314611f2c5760405162461bcd60e51b8152600401610c2990613e89565b6000611f3760085490565b905060008311611f845760405162461bcd60e51b81526020600482015260186024820152772a34329036b4b734b6bab69034b99037b732903a37b5b2b760411b6044820152606401610c29565b600f54611f918483613f76565b1115611faf5760405162461bcd60e51b8152600401610c2990613ebe565b60015b838111611fd557611fc283612409565b5080611fcd81614056565b915050611fb2565b50506001600b555050565b6000828152600c6020526040902060010154611ffc8133612654565b610d5f838361273e565b6120103382612312565b61201957600080fd5b60008181526016602052604090205442116120765760405162461bcd60e51b815260206004820152601b60248201527f546f6f206561726c7920746f20646f2061206e657720717565737400000000006044820152606401610c29565b60006018546120ae61208784612b4e565b6040516020016120979190613cd4565b604051602081830303815290604052601854612c68565b6120b89190613f76565b90506120c76201518042613f76565b6000838152601660209081526040808320939093556015905290812080548392906120f3908490613f76565b90915550506000828152601560209081526040918290205482518581529182018490528183015290517f6ef8e037dea69cb21b5f0d846daf55ea4d12a1d0569ec8117acd54b240bb384a9181900360600190a1600082815260156020908152604091829020548251858152918201849052918101919091527fcaa434a316026b149e054a690120ac0358d069c9ffa5eda08124eb17c0f8dbdd906060016112cc565b600a546001600160a01b036101009091041633146121c55760405162461bcd60e51b8152600401610c2990613e89565b6011805460ff1916911515919091179055565b600a546001600160a01b036101009091041633146122085760405162461bcd60e51b8152600401610c2990613e89565b6001600160a01b03811661226d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c29565b61150881612838565b80546001019055565b60006001600160e01b03198216637965db0b60e01b1480610b1c5750610b1c82612ca3565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906122d982611758565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661238b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c29565b600061239683611758565b9050806001600160a01b0316846001600160a01b031614806123d15750836001600160a01b03166123c684610bb4565b6001600160a01b0316145b8061240157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b60008061241560135490565b9050600f5481111561245d5760405162461bcd60e51b815260206004820152601160248201527013585e081d1bdad95b881c995858da1959607a1b6044820152606401610c29565b61246681612cc8565b6124708382612f1c565b60405181907fdb6b58dc67f2abe3f234d78a4504456862f5403a87f22cd3b7945005b71edac390600090a2610b1c601380546001019055565b826001600160a01b03166124bc82611758565b6001600160a01b0316146125245760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c29565b6001600160a01b0382166125865760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c29565b612591838383612f36565b61259c6000826122a4565b6001600160a01b03831660009081526003602052604081208054600192906125c5908490613fc1565b90915550506001600160a01b03821660009081526003602052604081208054600192906125f3908490613f76565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61265e8282611967565b61143f57612676816001600160a01b03166014612f87565b612681836020612f87565b604051602001612692929190613d45565b60408051601f198184030181529082905262461bcd60e51b8252610c2991600401613e24565b6126c28282611967565b61143f576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff191660011790556126fa3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6127488282611967565b1561143f576000828152600c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600a5460ff166127ee5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610c29565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a5460ff16156128d85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610c29565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861281b3390565b60008261291a8584613169565b14949350505050565b816001600160a01b0316836001600160a01b031614156129855760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c29565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6129fd8484846124a9565b612a0984848484613223565b611d8c5760405162461bcd60e51b8152600401610c2990613e37565b6060601a8054610b319061401b565b606081612a585750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a825780612a6c81614056565b9150612a7b9050600a83613f8e565b9150612a5c565b60008167ffffffffffffffff811115612aab57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ad5576020820181803683370190505b5090505b841561240157612aea600183613fc1565b9150612af7600a86614071565b612b02906030613f76565b60f81b818381518110612b2557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612b47600a86613f8e565b9450612ad9565b606081612b725750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b9c5780612b8681614056565b9150612b959050600a83613f8e565b9150612b76565b60008167ffffffffffffffff811115612bc557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612bef576020820181803683370190505b5090505b841561240157612c04600183613fc1565b9150612c11600a86614071565b612c1c906030613f76565b60f81b818381518110612c3f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612c61600a86613f8e565b9450612bf3565b600081434285604051602001612c8093929190613dba565b6040516020818303038152906040528051906020012060001c611ecd9190614071565b60006001600160e01b0319821663780e9d6360e01b1480610b1c5750610b1c82613330565b612cfa612cd482612b4e565b604051602001612ce49190613bbe565b604051602081830303815290604052600c612c68565b600082815260146020526040902055612d25612d1582612b4e565b604051602001612ce49190613c4f565b600082815260146020526040902060010155612d53612d4382612b4e565b604051602001612ce49190613c1f565b600082815260146020526040902060020155612d81612d7182612b4e565b604051602001612ce49190613cad565b600082815260146020526040902060030155612daf612d9f82612b4e565b604051602001612ce49190613cf4565b600082815260146020526040902060040155612ddd612dcd82612b4e565b604051602001612ce49190613d23565b600082815260146020526040902060050155612e0b612dfb82612b4e565b604051602001612ce49190613c76565b600082815260146020526040902060060155612e4f612e2982612b4e565b604051602001612e399190613beb565b604051602081830303815290604052600b612c68565b612e5a906001613f76565b6000828152601460208181526040808420600781019586556001600882018181556015855283872096909655938352815187815281549381019390935292830154908201526002820154606082015260038201546080820152600482015460a0820152600582015460c0820152600682015460e082015292546101008401529054610120830152600901546101408201527fd47a8ff22290a9065a62f53bcf6afbd1fcdeb1cbeffb35f6b8eb77def8588001906101600160405180910390a150565b61143f828260405180602001604052806000815250613380565b600a5460ff1615612f7c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610c29565b610d5f8383836133b3565b60606000612f96836002613fa2565b612fa1906002613f76565b67ffffffffffffffff811115612fc757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ff1576020820181803683370190505b509050600360fc1b8160008151811061301a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061305757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061307b846002613fa2565b613086906001613f76565b90505b600181111561311a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106130c857634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106130ec57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361311381614004565b9050613089565b508315611ecd5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c29565b600081815b845181101561321b57600085828151811061319957634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116131db576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250613208565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061321381614056565b91505061316e565b509392505050565b60006001600160a01b0384163b1561332557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613267903390899088908890600401613de7565b602060405180830381600087803b15801561328157600080fd5b505af19250505080156132b1575060408051601f3d908101601f191682019092526132ae91810190613ae0565b60015b61330b573d8080156132df576040519150601f19603f3d011682016040523d82523d6000602084013e6132e4565b606091505b5080516133035760405162461bcd60e51b8152600401610c2990613e37565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612401565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061336157506001600160e01b03198216635b5e139f60e01b145b80610b1c57506301ffc9a760e01b6001600160e01b0319831614610b1c565b61338a838361346b565b6133976000848484613223565b610d5f5760405162461bcd60e51b8152600401610c2990613e37565b6001600160a01b03831661340e5761340981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613431565b816001600160a01b0316836001600160a01b0316146134315761343183826135b9565b6001600160a01b03821661344857610d5f81613656565b826001600160a01b0316826001600160a01b031614610d5f57610d5f828261372f565b6001600160a01b0382166134c15760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c29565b6000818152600260205260409020546001600160a01b0316156135265760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c29565b61353260008383612f36565b6001600160a01b038216600090815260036020526040812080546001929061355b908490613f76565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016135c684611804565b6135d09190613fc1565b600083815260076020526040902054909150808214613623576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061366890600190613fc1565b6000838152600960205260408120546008805493945090928490811061369e57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106136cd57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061371357634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061373a83611804565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461377f9061401b565b90600052602060002090601f0160209004810192826137a157600085556137e7565b82601f106137ba57805160ff19168380011785556137e7565b828001600101855582156137e7579182015b828111156137e75782518255916020019190600101906137cc565b506137f39291506137f7565b5090565b5b808211156137f357600081556001016137f8565b600067ffffffffffffffff80841115613827576138276140b1565b604051601f8501601f19908116603f0116810190828211818310171561384f5761384f6140b1565b8160405280935085815286868601111561386857600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461389957600080fd5b919050565b8035801515811461389957600080fd5b6000602082840312156138bf578081fd5b611ecd82613882565b600080604083850312156138da578081fd5b6138e383613882565b91506138f160208401613882565b90509250929050565b60008060006060848603121561390e578081fd5b61391784613882565b925061392560208501613882565b9150604084013590509250925092565b6000806000806080858703121561394a578081fd5b61395385613882565b935061396160208601613882565b925060408501359150606085013567ffffffffffffffff811115613983578182fd5b8501601f81018713613993578182fd5b6139a28782356020840161380c565b91505092959194509250565b600080604083850312156139c0578182fd5b6139c983613882565b91506138f16020840161389e565b600080604083850312156139e9578182fd5b6139f283613882565b946020939093013593505050565b60008060208385031215613a12578182fd5b823567ffffffffffffffff80821115613a29578384fd5b818501915085601f830112613a3c578384fd5b813581811115613a4a578485fd5b8660208260051b8501011115613a5e578485fd5b60209290920196919550909350505050565b600060208284031215613a81578081fd5b611ecd8261389e565b600060208284031215613a9b578081fd5b5035919050565b60008060408385031215613ab4578182fd5b823591506138f160208401613882565b600060208284031215613ad5578081fd5b8135611ecd816140c7565b600060208284031215613af1578081fd5b8151611ecd816140c7565b600060208284031215613b0d578081fd5b813567ffffffffffffffff811115613b23578182fd5b8201601f81018413613b33578182fd5b6124018482356020840161380c565b60008060408385031215613b54578182fd5b50508035926020909101359150565b60008151808452613b7b816020860160208601613fd8565b601f01601f19169290920160200192915050565b60008351613ba1818460208801613fd8565b835190830190613bb5818360208801613fd8565b01949350505050565b641cdc19595960da1b815260008251613bde816005850160208701613fd8565b9190910160050192915050565b6b31b7b739ba34ba3aba34b7b760a11b815260008251613c1281600c850160208701613fd8565b91909101600c0192915050565b670e6e8e4cadccee8d60c31b815260008251613c42816008850160208701613fd8565b9190910160080192915050565b6b696e74656c6c6967656e636560a01b815260008251613c1281600c850160208701613fd8565b6e6d61676963526573697374616e636560881b815260008251613ca081600f850160208701613fd8565b91909101600f0192915050565b6b30b134b634ba3ca837bbb2b960a11b815260008251613c1281600c850160208701613fd8565b641c5d595cdd60da1b815260008251613bde816005850160208701613fd8565b66646566656e736560c81b815260008251613d16816007850160208701613fd8565b9190910160070192915050565b666167696c69747960c81b815260008251613d16816007850160208701613fd8565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613d7d816017850160208801613fd8565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613dae816028840160208801613fd8565b01602801949350505050565b83815282602082015260008251613dd8816040850160208701613fd8565b91909101604001949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e1a90830184613b63565b9695505050505050565b602081526000611ecd6020830184613b63565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526016908201527545786365656473206d6178696d756d20737570706c7960501b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115613f8957613f89614085565b500190565b600082613f9d57613f9d61409b565b500490565b6000816000190483118215151615613fbc57613fbc614085565b500290565b600082821015613fd357613fd3614085565b500390565b60005b83811015613ff3578181015183820152602001613fdb565b83811115611d8c5750506000910152565b60008161401357614013614085565b506000190190565b600181811c9082168061402f57607f821691505b6020821081141561405057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561406a5761406a614085565b5060010190565b6000826140805761408061409b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461150857600080fdfe6a64baf327d646d1bca72653e2a075d15fd6ac6d8cbd7f6ee03fc55875e0fa88a264697066735822122009c0cebe1ddcea53f6ff37bfdab8a465e8cc9c827c6b3e8ea69b7cbc73f752df64736f6c634300080400334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000fa0000000000000000000000000000000000000000000000000000000000000001068747470733a2f2f626173655572692f00000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103765760003560e01c806370a08231116101d1578063a22cb46511610102578063d3e97165116100a0578063e24b3cea1161006f578063e24b3cea14610a68578063e985e9c514610a88578063eceb7d5214610ad1578063f2fde38b14610af157600080fd5b8063d3e97165146109e5578063d52c57e014610a12578063d547741f14610a32578063dcc70d5214610a5257600080fd5b8063b88d4fde116100dc578063b88d4fde1461096f578063c62752551461098f578063c87b56dd146109af578063c9a0112d146109cf57600080fd5b8063a22cb4651461091a578063ab4007061461093a578063abbb5a551461095c57600080fd5b806394f42da91161016f578063a035b1fe11610149578063a035b1fe146108a2578063a1ff7e90146108b8578063a20ab8ef146108d8578063a217fddf1461090557600080fd5b806394f42da91461084a57806395d89b411461087a57806397254e551461088f57600080fd5b80637cb64759116101ab5780637cb64759146107d25780638456cb59146107f25780638da5cb5b1461080757806391d148541461082a57600080fd5b806370a082311461077d578063715018a61461079d57806376ef6ac7146107b257600080fd5b80632f2ff15d116102ab57806355f804b3116102495780635d240c58116102235780635d240c58146106fd5780635e4887461461071d5780636352211e1461073d5780636f8b44b01461075d57600080fd5b806355f804b3146106b057806356189236146106d05780635c975abb146106e557600080fd5b80633f4ba83a116102855780633f4ba83a1461064657806342842e0e1461065b5780634311de8f1461067b5780634f6ccce71461069057600080fd5b80632f2ff15d146105e65780632f745c591461060657806336568abe1461062657600080fd5b806318160ddd1161031857806323b872dd116102f257806323b872dd14610566578063248a9ca3146105865780632e4355cd146105b65780632eb4a7ab146105d057600080fd5b806318160ddd146104785780631a1707121461048d5780631eb899a31461054657600080fd5b8063095ea7b311610354578063095ea7b31461040a5780630c174f611461042c5780630ce90ec2146104505780631249c58b1461047057600080fd5b806301ffc9a71461037b57806306fdde03146103b0578063081812fc146103d2575b600080fd5b34801561038757600080fd5b5061039b610396366004613ac4565b610b11565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103c5610b22565b6040516103a79190613e24565b3480156103de57600080fd5b506103f26103ed366004613a8a565b610bb4565b6040516001600160a01b0390911681526020016103a7565b34801561041657600080fd5b5061042a6104253660046139d7565b610c4e565b005b34801561043857600080fd5b5061044260195481565b6040519081526020016103a7565b34801561045c57600080fd5b5061042a61046b366004613a8a565b610d64565b61042a610fee565b34801561048457600080fd5b50600854610442565b34801561049957600080fd5b506104fc6104a8366004613a8a565b6014602052806000526040600020600091509050806000015490806001015490806002015490806003015490806004015490806005015490806006015490806007015490806008015490806009015490508a565b604080519a8b5260208b0199909952978901969096526060880194909452608087019290925260a086015260c085015260e0840152610100830152610120820152610140016103a7565b34801561055257600080fd5b5061042a610561366004613b42565b611199565b34801561057257600080fd5b5061042a6105813660046138fa565b6112d8565b34801561059257600080fd5b506104426105a1366004613a8a565b6000908152600c602052604090206001015490565b3480156105c257600080fd5b5060115461039b9060ff1681565b3480156105dc57600080fd5b5061044260125481565b3480156105f257600080fd5b5061042a610601366004613aa2565b611309565b34801561061257600080fd5b506104426106213660046139d7565b61132f565b34801561063257600080fd5b5061042a610641366004613aa2565b6113c5565b34801561065257600080fd5b5061042a611443565b34801561066757600080fd5b5061042a6106763660046138fa565b61147d565b34801561068757600080fd5b5061042a611498565b34801561069c57600080fd5b506104426106ab366004613a8a565b61150b565b3480156106bc57600080fd5b5061042a6106cb366004613afc565b6115ac565b3480156106dc57600080fd5b506104426115ef565b3480156106f157600080fd5b50600a5460ff1661039b565b34801561070957600080fd5b5061042a610718366004613b42565b6115ff565b34801561072957600080fd5b50610442610738366004613b42565b611705565b34801561074957600080fd5b506103f2610758366004613a8a565b611758565b34801561076957600080fd5b5061042a610778366004613a8a565b6117cf565b34801561078957600080fd5b506104426107983660046138ae565b611804565b3480156107a957600080fd5b5061042a61188b565b3480156107be57600080fd5b5061042a6107cd366004613a8a565b6118c5565b3480156107de57600080fd5b5061042a6107ed366004613a8a565b6118fa565b3480156107fe57600080fd5b5061042a61192f565b34801561081357600080fd5b50600a5461010090046001600160a01b03166103f2565b34801561083657600080fd5b5061039b610845366004613aa2565b611967565b34801561085657600080fd5b5061039b6108653660046138ae565b60176020526000908152604090205460ff1681565b34801561088657600080fd5b506103c5611992565b61042a61089d366004613a00565b6119a1565b3480156108ae57600080fd5b50610442600d5481565b3480156108c457600080fd5b5061042a6108d3366004613a8a565b611ba7565b3480156108e457600080fd5b506104426108f3366004613a8a565b60166020526000908152604090205481565b34801561091157600080fd5b50610442600081565b34801561092657600080fd5b5061042a6109353660046139ae565b611bdc565b34801561094657600080fd5b506104426000805160206140de83398151915281565b61042a61096a366004613a8a565b611be7565b34801561097b57600080fd5b5061042a61098a366004613935565b611d92565b34801561099b57600080fd5b5061042a6109aa366004613a8a565b611dc4565b3480156109bb57600080fd5b506103c56109ca366004613a8a565b611df9565b3480156109db57600080fd5b5061044260185481565b3480156109f157600080fd5b50610442610a00366004613a8a565b60156020526000908152604090205481565b348015610a1e57600080fd5b5061042a610a2d366004613aa2565b611ed4565b348015610a3e57600080fd5b5061042a610a4d366004613aa2565b611fe0565b348015610a5e57600080fd5b50610442600e5481565b348015610a7457600080fd5b5061042a610a83366004613a8a565b612006565b348015610a9457600080fd5b5061039b610aa33660046138c8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610add57600080fd5b5061042a610aec366004613a70565b612195565b348015610afd57600080fd5b5061042a610b0c3660046138ae565b6121d8565b6000610b1c8261227f565b92915050565b606060008054610b319061401b565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5d9061401b565b8015610baa5780601f10610b7f57610100808354040283529160200191610baa565b820191906000526020600020905b815481529060010190602001808311610b8d57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c325760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c5982611758565b9050806001600160a01b0316836001600160a01b03161415610cc75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c29565b336001600160a01b0382161480610ce35750610ce38133610aa3565b610d555760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c29565b610d5f83836122a4565b505050565b610d6e3382612312565b80610d8c5750610d8c6000805160206140de83398151915233611967565b610dd35760405162461bcd60e51b81526020600482015260186024820152772237b2b9903737ba103430bb32903832b936b4b9b9b4b7b760411b6044820152606401610c29565b600081815260146020526040902060080154601954811115610e2b5760405162461bcd60e51b815260206004820152601160248201527013585e081b195d995b081c995858da1959607a1b6044820152606401610c29565b6000610e38826064611705565b9050610e448382611199565b6000838152601460205260408120600801805460019290610e66908490613f76565b90915550506000838152601460205260408120600401805460019290610e8d908490613f76565b90915550506000838152601460205260408120600201805460019290610eb4908490613f76565b909155505060008381526014602052604081206001908101805491929091610edd908490613f76565b90915550506000838152601460205260408120600501805460019290610f04908490613f76565b90915550506000838152601460205260408120600301805460019290610f2b908490613f76565b90915550506000838152601460205260408120600601805460019290610f52908490613f76565b90915550506000838152601460205260408120600701805460019290610f79908490613f76565b90915550506000838152601460205260408120805460019290610f9d908490613f76565b909155503390507f42d71c3c3506451c8a59971b26eef130138b9c48475f9856954ccf4b222a0c4584610fd1856001613f76565b6040805192835260208301919091520160405180910390a2505050565b6002600b5414156110115760405162461bcd60e51b8152600401610c2990613f3f565b6002600b5560135460008111801561102b5750600f548111155b61106a5760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881251081a5b9d985b1a5960821b6044820152606401610c29565b34600d5411156110bc5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610c29565b60115460ff161561110a5760405162461bcd60e51b815260206004820152601860248201527757686974656c697374206d696e742069732061637469766560401b6044820152606401610c29565b3360008181526017602052604090205460ff16156111645760405162461bcd60e51b81526020600482015260176024820152761059191c995cdcc8185b1c9958591e4818db185a5b5959604a1b6044820152606401610c29565b61116d81612409565b506001600160a01b03166000908152601760205260409020805460ff19166001908117909155600b5550565b6111a33383612312565b806111c157506111c16000805160206140de83398151915233611967565b6112085760405162461bcd60e51b81526020600482015260186024820152772237b2b9903737ba103430bb32903832b936b4b9b9b4b7b760411b6044820152606401610c29565b60008281526015602052604090205481111561125e5760405162461bcd60e51b81526020600482015260156024820152744e6f7420656e6f75676820657870657269656e636560581b6044820152606401610c29565b6000828152601560205260408120805483929061127c908490613fc1565b9091555050600082815260156020908152604091829020548251858152918201849052918101919091527f58a842f288c183ee29a4170fe1a30324d133624e7047f14ed989db42809966ce906060015b60405180910390a15050565b6112e23382612312565b6112fe5760405162461bcd60e51b8152600401610c2990613eee565b610d5f8383836124a9565b6000828152600c60205260409020600101546113258133612654565b610d5f83836126b8565b600061133a83611804565b821061139c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c29565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b03811633146114355760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610c29565b61143f828261273e565b5050565b600a546001600160a01b036101009091041633146114735760405162461bcd60e51b8152600401610c2990613e89565b61147b6127a5565b565b610d5f83838360405180602001604052806000815250611d92565b600a546001600160a01b036101009091041633146114c85760405162461bcd60e51b8152600401610c2990613e89565b600a546040516001600160a01b0361010090920491909116904780156108fc02916000818181858888f19350505050158015611508573d6000803e3d6000fd5b50565b600061151660085490565b82106115795760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c29565b6008828154811061159a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b036101009091041633146115dc5760405162461bcd60e51b8152600401610c2990613e89565b805161143f90601a906020840190613773565b60006115fa60135490565b905090565b600a546001600160a01b0361010090910416331461162f5760405162461bcd60e51b8152600401610c2990613e89565b6116476000805160206140de83398151915233611967565b6116935760405162461bcd60e51b815260206004820152601760248201527f446f6573206e6f7420686176652047616d6520726f6c650000000000000000006044820152606401610c29565b600082815260156020526040812080548392906116b1908490613f76565b9091555050600082815260156020908152604091829020548251858152918201849052918101919091527fcaa434a316026b149e054a690120ac0358d069c9ffa5eda08124eb17c0f8dbdd906060016112cc565b60006117118284613fa2565b905060015b8381101561175157611729600a84613f8e565b6117339085613fa2565b61173d9083613f76565b91508061174981614056565b915050611716565b5092915050565b6000818152600260205260408120546001600160a01b031680610b1c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c29565b600a546001600160a01b036101009091041633146117ff5760405162461bcd60e51b8152600401610c2990613e89565b600f55565b60006001600160a01b03821661186f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c29565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b036101009091041633146118bb5760405162461bcd60e51b8152600401610c2990613e89565b61147b6000612838565b600a546001600160a01b036101009091041633146118f55760405162461bcd60e51b8152600401610c2990613e89565b601955565b600a546001600160a01b0361010090910416331461192a5760405162461bcd60e51b8152600401610c2990613e89565b601255565b600a546001600160a01b0361010090910416331461195f5760405162461bcd60e51b8152600401610c2990613e89565b61147b612892565b6000918252600c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610b319061401b565b6002600b5414156119c45760405162461bcd60e51b8152600401610c2990613f3f565b6002600b5560115460ff16611a1b5760405162461bcd60e51b815260206004820152601c60248201527f57686974654c697374206d696e74206973206e6f7420616374697665000000006044820152606401610c29565b3360008181526017602052604090205460ff1615611a755760405162461bcd60e51b81526020600482015260176024820152761059191c995cdcc8185b1c9958591e4818db185a5b5959604a1b6044820152606401610c29565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611aef84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601254915084905061290d565b611b2b5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610c29565b6000611b3660085490565b600f54909150611b47826002613f76565b1115611b655760405162461bcd60e51b8152600401610c2990613ebe565b611b6e83612409565b50611b7883612409565b5050506001600160a01b03166000908152601760205260409020805460ff19166001908117909155600b555050565b600a546001600160a01b03610100909104163314611bd75760405162461bcd60e51b8152600401610c2990613e89565b601855565b61143f338383612923565b60115460ff1615611c355760405162461bcd60e51b815260206004820152601860248201527757686974656c697374206d696e742069732061637469766560401b6044820152606401610c29565b6000611c4060085490565b90503382611c8b5760405162461bcd60e51b81526020600482015260186024820152772a34329036b4b734b6bab69034b99037b732903a37b5b2b760411b6044820152606401610c29565b601054831115611cdd5760405162461bcd60e51b815260206004820152601e60248201527f596f752063616e206d696e742061206d6178206f66203520746f6b656e7300006044820152606401610c29565b600f54611cea8484613f76565b1115611d085760405162461bcd60e51b8152600401610c2990613ebe565b82600e54611d169190613fa2565b341015611d655760405162461bcd60e51b815260206004820152601860248201527f45746865722073656e74206973206e6f7420656e6f75676800000000000000006044820152606401610c29565b60005b83811015611d8c57611d7982612409565b5080611d8481614056565b915050611d68565b50505050565b611d9c3383612312565b611db85760405162461bcd60e51b8152600401610c2990613eee565b611d8c848484846129f2565b600a546001600160a01b03610100909104163314611df45760405162461bcd60e51b8152600401610c2990613e89565b600d55565b6000818152600260205260409020546060906001600160a01b0316611e785760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c29565b6000611e82612a25565b90506000815111611ea25760405180602001604052806000815250611ecd565b80611eac84612a34565b604051602001611ebd929190613b8f565b6040516020818303038152906040525b9392505050565b6002600b541415611ef75760405162461bcd60e51b8152600401610c2990613f3f565b6002600b55600a546001600160a01b03610100909104163314611f2c5760405162461bcd60e51b8152600401610c2990613e89565b6000611f3760085490565b905060008311611f845760405162461bcd60e51b81526020600482015260186024820152772a34329036b4b734b6bab69034b99037b732903a37b5b2b760411b6044820152606401610c29565b600f54611f918483613f76565b1115611faf5760405162461bcd60e51b8152600401610c2990613ebe565b60015b838111611fd557611fc283612409565b5080611fcd81614056565b915050611fb2565b50506001600b555050565b6000828152600c6020526040902060010154611ffc8133612654565b610d5f838361273e565b6120103382612312565b61201957600080fd5b60008181526016602052604090205442116120765760405162461bcd60e51b815260206004820152601b60248201527f546f6f206561726c7920746f20646f2061206e657720717565737400000000006044820152606401610c29565b60006018546120ae61208784612b4e565b6040516020016120979190613cd4565b604051602081830303815290604052601854612c68565b6120b89190613f76565b90506120c76201518042613f76565b6000838152601660209081526040808320939093556015905290812080548392906120f3908490613f76565b90915550506000828152601560209081526040918290205482518581529182018490528183015290517f6ef8e037dea69cb21b5f0d846daf55ea4d12a1d0569ec8117acd54b240bb384a9181900360600190a1600082815260156020908152604091829020548251858152918201849052918101919091527fcaa434a316026b149e054a690120ac0358d069c9ffa5eda08124eb17c0f8dbdd906060016112cc565b600a546001600160a01b036101009091041633146121c55760405162461bcd60e51b8152600401610c2990613e89565b6011805460ff1916911515919091179055565b600a546001600160a01b036101009091041633146122085760405162461bcd60e51b8152600401610c2990613e89565b6001600160a01b03811661226d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c29565b61150881612838565b80546001019055565b60006001600160e01b03198216637965db0b60e01b1480610b1c5750610b1c82612ca3565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906122d982611758565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661238b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c29565b600061239683611758565b9050806001600160a01b0316846001600160a01b031614806123d15750836001600160a01b03166123c684610bb4565b6001600160a01b0316145b8061240157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b60008061241560135490565b9050600f5481111561245d5760405162461bcd60e51b815260206004820152601160248201527013585e081d1bdad95b881c995858da1959607a1b6044820152606401610c29565b61246681612cc8565b6124708382612f1c565b60405181907fdb6b58dc67f2abe3f234d78a4504456862f5403a87f22cd3b7945005b71edac390600090a2610b1c601380546001019055565b826001600160a01b03166124bc82611758565b6001600160a01b0316146125245760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c29565b6001600160a01b0382166125865760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c29565b612591838383612f36565b61259c6000826122a4565b6001600160a01b03831660009081526003602052604081208054600192906125c5908490613fc1565b90915550506001600160a01b03821660009081526003602052604081208054600192906125f3908490613f76565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61265e8282611967565b61143f57612676816001600160a01b03166014612f87565b612681836020612f87565b604051602001612692929190613d45565b60408051601f198184030181529082905262461bcd60e51b8252610c2991600401613e24565b6126c28282611967565b61143f576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff191660011790556126fa3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6127488282611967565b1561143f576000828152600c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600a5460ff166127ee5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610c29565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a5460ff16156128d85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610c29565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861281b3390565b60008261291a8584613169565b14949350505050565b816001600160a01b0316836001600160a01b031614156129855760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c29565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6129fd8484846124a9565b612a0984848484613223565b611d8c5760405162461bcd60e51b8152600401610c2990613e37565b6060601a8054610b319061401b565b606081612a585750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a825780612a6c81614056565b9150612a7b9050600a83613f8e565b9150612a5c565b60008167ffffffffffffffff811115612aab57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ad5576020820181803683370190505b5090505b841561240157612aea600183613fc1565b9150612af7600a86614071565b612b02906030613f76565b60f81b818381518110612b2557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612b47600a86613f8e565b9450612ad9565b606081612b725750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b9c5780612b8681614056565b9150612b959050600a83613f8e565b9150612b76565b60008167ffffffffffffffff811115612bc557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612bef576020820181803683370190505b5090505b841561240157612c04600183613fc1565b9150612c11600a86614071565b612c1c906030613f76565b60f81b818381518110612c3f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612c61600a86613f8e565b9450612bf3565b600081434285604051602001612c8093929190613dba565b6040516020818303038152906040528051906020012060001c611ecd9190614071565b60006001600160e01b0319821663780e9d6360e01b1480610b1c5750610b1c82613330565b612cfa612cd482612b4e565b604051602001612ce49190613bbe565b604051602081830303815290604052600c612c68565b600082815260146020526040902055612d25612d1582612b4e565b604051602001612ce49190613c4f565b600082815260146020526040902060010155612d53612d4382612b4e565b604051602001612ce49190613c1f565b600082815260146020526040902060020155612d81612d7182612b4e565b604051602001612ce49190613cad565b600082815260146020526040902060030155612daf612d9f82612b4e565b604051602001612ce49190613cf4565b600082815260146020526040902060040155612ddd612dcd82612b4e565b604051602001612ce49190613d23565b600082815260146020526040902060050155612e0b612dfb82612b4e565b604051602001612ce49190613c76565b600082815260146020526040902060060155612e4f612e2982612b4e565b604051602001612e399190613beb565b604051602081830303815290604052600b612c68565b612e5a906001613f76565b6000828152601460208181526040808420600781019586556001600882018181556015855283872096909655938352815187815281549381019390935292830154908201526002820154606082015260038201546080820152600482015460a0820152600582015460c0820152600682015460e082015292546101008401529054610120830152600901546101408201527fd47a8ff22290a9065a62f53bcf6afbd1fcdeb1cbeffb35f6b8eb77def8588001906101600160405180910390a150565b61143f828260405180602001604052806000815250613380565b600a5460ff1615612f7c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610c29565b610d5f8383836133b3565b60606000612f96836002613fa2565b612fa1906002613f76565b67ffffffffffffffff811115612fc757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ff1576020820181803683370190505b509050600360fc1b8160008151811061301a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061305757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061307b846002613fa2565b613086906001613f76565b90505b600181111561311a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106130c857634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106130ec57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361311381614004565b9050613089565b508315611ecd5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c29565b600081815b845181101561321b57600085828151811061319957634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116131db576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250613208565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061321381614056565b91505061316e565b509392505050565b60006001600160a01b0384163b1561332557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613267903390899088908890600401613de7565b602060405180830381600087803b15801561328157600080fd5b505af19250505080156132b1575060408051601f3d908101601f191682019092526132ae91810190613ae0565b60015b61330b573d8080156132df576040519150601f19603f3d011682016040523d82523d6000602084013e6132e4565b606091505b5080516133035760405162461bcd60e51b8152600401610c2990613e37565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612401565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061336157506001600160e01b03198216635b5e139f60e01b145b80610b1c57506301ffc9a760e01b6001600160e01b0319831614610b1c565b61338a838361346b565b6133976000848484613223565b610d5f5760405162461bcd60e51b8152600401610c2990613e37565b6001600160a01b03831661340e5761340981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613431565b816001600160a01b0316836001600160a01b0316146134315761343183826135b9565b6001600160a01b03821661344857610d5f81613656565b826001600160a01b0316826001600160a01b031614610d5f57610d5f828261372f565b6001600160a01b0382166134c15760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c29565b6000818152600260205260409020546001600160a01b0316156135265760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c29565b61353260008383612f36565b6001600160a01b038216600090815260036020526040812080546001929061355b908490613f76565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016135c684611804565b6135d09190613fc1565b600083815260076020526040902054909150808214613623576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061366890600190613fc1565b6000838152600960205260408120546008805493945090928490811061369e57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106136cd57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061371357634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061373a83611804565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461377f9061401b565b90600052602060002090601f0160209004810192826137a157600085556137e7565b82601f106137ba57805160ff19168380011785556137e7565b828001600101855582156137e7579182015b828111156137e75782518255916020019190600101906137cc565b506137f39291506137f7565b5090565b5b808211156137f357600081556001016137f8565b600067ffffffffffffffff80841115613827576138276140b1565b604051601f8501601f19908116603f0116810190828211818310171561384f5761384f6140b1565b8160405280935085815286868601111561386857600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461389957600080fd5b919050565b8035801515811461389957600080fd5b6000602082840312156138bf578081fd5b611ecd82613882565b600080604083850312156138da578081fd5b6138e383613882565b91506138f160208401613882565b90509250929050565b60008060006060848603121561390e578081fd5b61391784613882565b925061392560208501613882565b9150604084013590509250925092565b6000806000806080858703121561394a578081fd5b61395385613882565b935061396160208601613882565b925060408501359150606085013567ffffffffffffffff811115613983578182fd5b8501601f81018713613993578182fd5b6139a28782356020840161380c565b91505092959194509250565b600080604083850312156139c0578182fd5b6139c983613882565b91506138f16020840161389e565b600080604083850312156139e9578182fd5b6139f283613882565b946020939093013593505050565b60008060208385031215613a12578182fd5b823567ffffffffffffffff80821115613a29578384fd5b818501915085601f830112613a3c578384fd5b813581811115613a4a578485fd5b8660208260051b8501011115613a5e578485fd5b60209290920196919550909350505050565b600060208284031215613a81578081fd5b611ecd8261389e565b600060208284031215613a9b578081fd5b5035919050565b60008060408385031215613ab4578182fd5b823591506138f160208401613882565b600060208284031215613ad5578081fd5b8135611ecd816140c7565b600060208284031215613af1578081fd5b8151611ecd816140c7565b600060208284031215613b0d578081fd5b813567ffffffffffffffff811115613b23578182fd5b8201601f81018413613b33578182fd5b6124018482356020840161380c565b60008060408385031215613b54578182fd5b50508035926020909101359150565b60008151808452613b7b816020860160208601613fd8565b601f01601f19169290920160200192915050565b60008351613ba1818460208801613fd8565b835190830190613bb5818360208801613fd8565b01949350505050565b641cdc19595960da1b815260008251613bde816005850160208701613fd8565b9190910160050192915050565b6b31b7b739ba34ba3aba34b7b760a11b815260008251613c1281600c850160208701613fd8565b91909101600c0192915050565b670e6e8e4cadccee8d60c31b815260008251613c42816008850160208701613fd8565b9190910160080192915050565b6b696e74656c6c6967656e636560a01b815260008251613c1281600c850160208701613fd8565b6e6d61676963526573697374616e636560881b815260008251613ca081600f850160208701613fd8565b91909101600f0192915050565b6b30b134b634ba3ca837bbb2b960a11b815260008251613c1281600c850160208701613fd8565b641c5d595cdd60da1b815260008251613bde816005850160208701613fd8565b66646566656e736560c81b815260008251613d16816007850160208701613fd8565b9190910160070192915050565b666167696c69747960c81b815260008251613d16816007850160208701613fd8565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613d7d816017850160208801613fd8565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613dae816028840160208801613fd8565b01602801949350505050565b83815282602082015260008251613dd8816040850160208701613fd8565b91909101604001949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e1a90830184613b63565b9695505050505050565b602081526000611ecd6020830184613b63565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526016908201527545786365656473206d6178696d756d20737570706c7960501b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115613f8957613f89614085565b500190565b600082613f9d57613f9d61409b565b500490565b6000816000190483118215151615613fbc57613fbc614085565b500290565b600082821015613fd357613fd3614085565b500390565b60005b83811015613ff3578181015183820152602001613fdb565b83811115611d8c5750506000910152565b60008161401357614013614085565b506000190190565b600181811c9082168061402f57607f821691505b6020821081141561405057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561406a5761406a614085565b5060010190565b6000826140805761408061409b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461150857600080fdfe6a64baf327d646d1bca72653e2a075d15fd6ac6d8cbd7f6ee03fc55875e0fa88a264697066735822122009c0cebe1ddcea53f6ff37bfdab8a465e8cc9c827c6b3e8ea69b7cbc73f752df64736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000fa0000000000000000000000000000000000000000000000000000000000000001068747470733a2f2f626173655572692f00000000000000000000000000000000

-----Decoded View---------------
Arg [0] : newBaseURI (string): https://baseUri/
Arg [1] : newMaxSupply (uint256): 4000

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000fa0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [3] : 68747470733a2f2f626173655572692f00000000000000000000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.