ETH Price: $4,009.46 (+3.77%)

Token

Heroes (HERO)
 

Overview

Max Total Supply

3,334 HERO

Holders

794

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
oeon.eth
Balance
2 HERO
0xd28bfaea8c886ff6424141278a928f3cde2741f1
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

A prophecy foretold... 3,333 heroes would come forth to fight for the soul of humankind against an abhorrent evil. Heroes are dynamically created on-chain. Traits and stats are stored in the smart contract and can be accessed by other smart contracts.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Heroes

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : Heroes.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./Traits.sol";
import "./Traits2.sol";

contract Heroes is ERC721Enumerable, Ownable, ReentrancyGuard {
  using ECDSA for bytes32;

  uint256 PRICE_PER_TOKEN = 0.08 ether;
  uint256 MAX_SUPPLY = 3333;
  address SIGNER;
  uint256 currentId;
  string BASE_URI;

  mapping(uint256 => uint256) public tokenIdToSeed;

  HeroTraits traitStorage;
  HeroTraits2 traitStorage2;

  constructor(
    string memory baseUri,
    string memory name,
    address traits,
    address traits2
  ) ERC721(name, "HERO") {
    BASE_URI = baseUri;
    traitStorage = HeroTraits(traits);
    traitStorage2 = HeroTraits2(traits2);
  }

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

  struct Traits {
    uint256 race;
    uint256 pants;
    uint256 weapon;
    uint256 shield;
    uint256 clothes;
    uint256 head;
    uint256 shoes;
    uint256 hair;
    uint256 bg;
    uint256 magic;
    uint256 strength;
    uint256 intelligence;
    uint256 stamina;
    uint256 dexterity;
    uint256 creativity;
  }

  function getSeed(uint256 tokenId) public view returns (uint256) {
    return tokenIdToSeed[tokenId];
  }

  // get trait modulo 10 and then have a percentage
  function _getRandomMod(uint256 rand, uint256 chance)
    internal
    pure
    returns (bool)
  {
    return ((rand % 1000) + 1) <= chance;
  }

  function genTraits(uint256 tokenId) public view returns (Traits memory) {
    uint256 seed = getSeed(tokenId);

    Traits memory traits = Traits({
      race: uint256(keccak256(abi.encode(seed, 1))),
      pants: uint256(keccak256(abi.encode(seed, 2))),
      weapon: uint256(keccak256(abi.encode(seed, 3))),
      shield: uint256(keccak256(abi.encode(seed, 4))),
      clothes: uint256(keccak256(abi.encode(seed, 5))),
      head: uint256(keccak256(abi.encode(seed, 6))),
      shoes: uint256(keccak256(abi.encode(seed, 7))),
      hair: uint256(keccak256(abi.encode(seed, 8))),
      bg: uint256(keccak256(abi.encode(seed, 9))),
      magic: uint256(keccak256(abi.encode(seed, 10))),
      strength: uint256(keccak256(abi.encode(seed, 11))),
      intelligence: uint256(keccak256(abi.encode(seed, 12))),
      stamina: uint256(keccak256(abi.encode(seed, 13))),
      dexterity: uint256(keccak256(abi.encode(seed, 14))),
      creativity: uint256(keccak256(abi.encode(seed, 15)))
    });

    uint256 head = _getRandomMod(traits.head, 500)
      ? traits.head % traitStorage.getHeadLength()
      : 0;

    bool isHood = head >= 1 && head <= 5;

    // default is human1
    uint256 race = 0;
    bool isHuman1 = _getRandomMod(traits.race, 500);
    bool isHuman2 = _getRandomMod(traits.race, 340);
    bool isHuman3 = _getRandomMod(traits.race, 180);
    bool isZombie = _getRandomMod(traits.race, 600);
    bool isSkeleton = _getRandomMod(traits.race, 700);
    bool isWizard = _getRandomMod(traits.race, 800);
    bool isGhost = _getRandomMod(traits.race, 900);
    bool isFrog = _getRandomMod(traits.race, 960);
    bool isPizza = _getRandomMod(traits.race, 970);

    if (isHuman3) {
      race = 2;
    } else if (isHuman2) {
      race = 1;
    } else if (isHuman1) {
      race = 0;
    } else if (isZombie) {
      race = 3;
    } else if (isSkeleton) {
      race = 4;
    } else if (isWizard) {
      race = 5;
    } else if (isGhost) {
      race = 6;
    } else if (isFrog) {
      race = 7;
    } else if (isPizza) {
      race = 8;
      // monkies
    } else if (_getRandomMod(traits.race, 972)) {
      race = 9;
    } else if (_getRandomMod(traits.race, 974)) {
      race = 10;
    } else if (_getRandomMod(traits.race, 976)) {
      race = 11;
    } else if (_getRandomMod(traits.race, 978)) {
      race = 12;
    } else if (_getRandomMod(traits.race, 980)) {
      race = 13;
    } else if (_getRandomMod(traits.race, 982)) {
      race = 14;
    } else if (_getRandomMod(traits.race, 984)) {
      race = 15;
    } else if (_getRandomMod(traits.race, 986)) {
      race = 16;
    } else if (_getRandomMod(traits.race, 988)) {
      race = 17;
    } else if (_getRandomMod(traits.race, 990)) {
      race = 18;
    } else if (_getRandomMod(traits.race, 993)) {
      race = 19;
    } else if (_getRandomMod(traits.race, 997)) {
      race = 20;
    } else if (_getRandomMod(traits.race, 1000)) {
      race = 21;
    }

    return
      Traits({
        race: race,
        weapon: _getRandomMod(traits.weapon, 800)
          ? traits.weapon % traitStorage.getWeaponsLength()
          : 0,
        clothes: traits.clothes % traitStorage.getClothesLength(),
        shield: _getRandomMod(traits.shield, 100)
          ? traits.shield % traitStorage.getShieldsLength()
          : 0,
        head: head,
        pants: traits.pants % traitStorage.getPantsLength(),
        bg: traits.bg % traitStorage.getBgLength(),
        hair: isHood ? 0 : _getRandomMod(traits.weapon, 950)
          ? traits.hair % traitStorage2.getHairLength()
          : 0,
        shoes: traits.shoes % traitStorage.getShoesLength(),
        magic: (traits.magic % 1000) + 1,
        strength: (traits.strength % 1000) + 1,
        intelligence: (traits.intelligence % 1000) + 1,
        stamina: (traits.stamina % 1000) + 1,
        dexterity: (traits.dexterity % 1000) + 1,
        creativity: (traits.creativity % 1000) + 1
      });
  }

  function genSvg(uint256 tokenId) public view returns (string memory) {
    require(_exists(tokenId), "Token ID does not exist");

    Traits memory traits = genTraits(tokenId);

    string[9] memory parts;

    // bg
    // shadow
    // base
    // shoes
    // pants
    // clothes
    // hair
    // hats
    // shield
    // weapons

    // bg, shadow
    parts[0] = string(
      abi.encodePacked(
        '<rect width="100%" height="100%" fill="',
        traitStorage.getBg()[traits.bg],
        '" />',
        '<image width="100%" height="100%" href="',
        _baseURI(),
        traitStorage.getShadow(),
        '" />'
      )
    );

    // race
    parts[1] = string(
      abi.encodePacked(
        '<g transform=""><image width="100%" height="100%" href="',
        _baseURI(),
        traitStorage.getRace()[traits.race][1],
        '" />'
      )
    );

    // shoes
    parts[2] = traits.shoes == 0
      ? ""
      : string(
        abi.encodePacked(
          '<image width="100%" height="100%" href="',
          _baseURI(),
          traitStorage.getShoes()[traits.shoes][1],
          '" />'
        )
      );

    // pants
    parts[3] = string(
      abi.encodePacked(
        '<image width="100%" height="100%" href="',
        _baseURI(),
        traitStorage.getPants()[traits.pants][1],
        '" />'
      )
    );

    // clothes
    parts[4] = traits.clothes == 0
      ? ""
      : string(
        abi.encodePacked(
          '<image width="100%" height="100%" href="',
          _baseURI(),
          traitStorage.getClothes()[traits.clothes][1],
          '" />'
        )
      );

    parts[5] = traits.hair == 0
      ? ""
      : string(
        abi.encodePacked(
          '<image width="100%" height="100%" href="',
          _baseURI(),
          traitStorage2.getHair()[traits.hair][1],
          '" />'
        )
      );

    // hats
    parts[6] = traits.head == 0
      ? ""
      : string(
        abi.encodePacked(
          '<image width="100%" height="100%" href="',
          _baseURI(),
          traitStorage.getHead()[traits.head][1],
          '" />'
        )
      );

    // shield
    parts[7] = traits.shield == 0
      ? ""
      : string(
        abi.encodePacked(
          '<image width="100%" height="100%" href="',
          _baseURI(),
          traitStorage.getShields()[traits.shield][1],
          '" />'
        )
      );

    // weapon
    parts[8] = traits.weapon == 0
      ? ""
      : string(
        abi.encodePacked(
          '<image width="100%" height="100%" href="',
          _baseURI(),
          traitStorage.getWeapons()[traits.weapon][1],
          '" />'
        )
      );

    string memory svg = string(
      abi.encodePacked(
        '<svg version="1.1" viewBox="0 0 800 800" width="800" height="800" xmlns="http://www.w3.org/2000/svg">',
        parts[0],
        parts[1],
        parts[2],
        parts[3],
        parts[4],
        parts[5],
        parts[6],
        parts[7],
        parts[8],
        "</g></svg>"
      )
    );

    return svg;
  }

  function getSeedPart(uint256 tokenId, uint256 num)
    public
    view
    returns (uint16)
  {
    return uint16(getSeed(tokenId) >> num);
  }

  function setBaseUri(string memory baseUri) public onlyOwner {
    BASE_URI = baseUri;
  }

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

  string DESCRIPTION;

  function updateDescription(string memory d) public onlyOwner {
    DESCRIPTION = d;
  }

  function uintToStr(uint256 _i)
    internal
    pure
    returns (string memory _uintAsString)
  {
    if (_i == 0) {
      return "0";
    }
    uint256 j = _i;
    uint256 len;
    while (j != 0) {
      len++;
      j /= 10;
    }
    bytes memory bstr = new bytes(len);
    uint256 k = len;
    while (_i != 0) {
      k = k - 1;
      uint8 temp = (48 + uint8(_i - (_i / 10) * 10));
      bytes1 b1 = bytes1(temp);
      bstr[k] = b1;
      _i /= 10;
    }
    return string(bstr);
  }

  function updateSigner(address signer) public onlyOwner {
    SIGNER = signer;
  }

  function _genOptionalTraits(Traits memory traits)
    internal
    view
    returns (string memory)
  {
    // 0 weapon
    // 1 shield
    // 2 head
    // 3 hair
    // 4 clothes
    // 5 shoes
    string[6] memory parts;

    if (traits.weapon != 0) {
      parts[0] = string(
        abi.encodePacked(
          ',{"trait_type":"Weapon","value":"',
          traitStorage.getWeapons()[traits.weapon][0],
          '"}'
        )
      );
    }

    if (traits.shield != 0) {
      parts[1] = string(
        abi.encodePacked(
          ',{"trait_type":"Shield","value":"',
          traitStorage.getShields()[traits.shield][0],
          '"}'
        )
      );
    }

    if (traits.head != 0) {
      parts[2] = string(
        abi.encodePacked(
          ',{"trait_type":"Head","value":"',
          traitStorage.getHead()[traits.head][0],
          '"}'
        )
      );
    }

    if (traits.hair != 0) {
      parts[3] = string(
        abi.encodePacked(
          ',{"trait_type":"Hair","value":"',
          traitStorage2.getHair()[traits.hair][0],
          '"}'
        )
      );
    }

    if (traits.clothes != 0) {
      parts[4] = string(
        abi.encodePacked(
          ',{"trait_type":"Clothes","value":"',
          traitStorage.getClothes()[traits.clothes][0],
          '"}'
        )
      );
    }

    if (traits.shoes != 0) {
      parts[5] = string(
        abi.encodePacked(
          ',{"trait_type":"Shoes","value":"',
          traitStorage.getShoes()[traits.shoes][0],
          '"}'
        )
      );
    }

    return
      string(
        abi.encodePacked(
          parts[0],
          parts[1],
          parts[2],
          parts[3],
          parts[4],
          parts[5]
        )
      );
  }

  function _genTraitString(uint256 tokenId)
    internal
    view
    returns (string memory)
  {
    Traits memory traits = genTraits(tokenId);

    return
      string(
        abi.encodePacked(
          '"attributes": [',
          '{"trait_type":"Race","value":"',
          traitStorage.getRace()[traits.race][0],
          '"},',
          '{"trait_type":"Pants","value":"',
          traitStorage.getPants()[traits.pants][0],
          '"}',
          _genOptionalTraits(traits)
        )
      );
  }

  function _genStatsString(uint256 tokenId)
    internal
    view
    returns (string memory)
  {
    Traits memory traits = genTraits(tokenId);
    string[8] memory parts;
    parts[0] = ',{"trait_type":"Magic","value":';
    parts[1] = uintToStr(traits.magic);
    parts[2] = '},{"trait_type":"Strength","value":';
    parts[3] = uintToStr(traits.strength);

    parts[4] = '},{"trait_type":"Intelligence","value":';
    parts[5] = uintToStr(traits.intelligence);
    parts[6] = '},{"trait_type":"Stamina","value":';
    parts[7] = string(
      abi.encodePacked(
        uintToStr(traits.stamina),
        '},{"trait_type":"Dexterity","value":',
        uintToStr(traits.dexterity),
        '},{"trait_type":"Creativity","value":',
        uintToStr(traits.creativity),
        "}"
      )
    );

    return
      string(
        abi.encodePacked(
          parts[0],
          parts[1],
          parts[2],
          parts[3],
          parts[4],
          parts[5],
          parts[6],
          parts[7]
        )
      );
  }

  bool public CDN_ENABLED = false;
  string public CDN_PREFIX = "";

  // Smart contract creates inline SVG, however due to browser security
  // protocols SVGs may not show up in NFT marketplaces. CDN is a back up
  // Smart contract is source of truth for all traits and stats.
  function enableCdn(bool value, string memory prefix) public onlyOwner {
    CDN_ENABLED = value;
    CDN_PREFIX = prefix;
  }

  function getJsonString(uint256 tokenId) public view returns (string memory) {
    return
      string(
        abi.encodePacked(
          '{"name": "Hero #',
          uintToStr(tokenId),
          '", "description": "',
          DESCRIPTION,
          '",',
          '"image": "data:image/svg+xml;base64,',
          Base64.encode(bytes(genSvg(tokenId))),
          '",',
          _genTraitString(tokenId),
          _genStatsString(tokenId),
          "]}"
        )
      );
  }

  function tokenURI(uint256 tokenId)
    public
    view
    override
    returns (string memory)
  {
    require(_exists(tokenId), "Token ID does not exist");

    if (CDN_ENABLED) {
      return string(abi.encodePacked(CDN_PREFIX, uintToStr(tokenId)));
    }

    if (tokenId >= 10000) {
      return string(abi.encodePacked(_baseURI(), customs[tokenId].uriHash));
    }

    return
      string(
        abi.encodePacked(
          "data:application/json;base64,",
          Base64.encode(bytes(getJsonString(tokenId)))
        )
      );
  }

  function _mint(uint256 amount) internal {
    for (uint256 i = 0; i < amount; i++) {
      uint256 tokenId = ++currentId;
      _safeMint(msg.sender, tokenId);
      tokenIdToSeed[tokenId] = uint256(
        keccak256(
          abi.encodePacked(tokenId, blockhash(block.number - 1), msg.sender)
        )
      );
    }
  }

  function mint(uint256 amount) public payable nonReentrant {
    require(amount <= 10, "Can only mint up to 10");
    require(currentId + amount <= MAX_SUPPLY, "Not allowed");
    require(currentId < MAX_SUPPLY, "All minted");
    require(amount * PRICE_PER_TOKEN == msg.value, "Invalid value");
    _mint(amount);
  }

  uint256 merlinMinted = 0;

  function merlinMint(uint256 amount) public payable onlyOwner {
    require(merlinMinted + amount <= 100, "Merlin can only summon 100 heroes");
    require(currentId < MAX_SUPPLY, "All minted");
    merlinMinted += amount;
    _mint(amount);
  }

  uint256 customMintId = 10000;
  struct Custom {
    bool exists;
    string uriHash;
  }
  mapping(uint256 => Custom) customs;

  function mintCustom(string memory tokenUriHash, address to) public onlyOwner {
    customs[customMintId] = Custom({ exists: true, uriHash: tokenUriHash });
    _safeMint(to, customMintId);
    customMintId += 1;
  }
}

library Base64 {
  bytes internal constant TABLE =
    "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

  /// @notice Encodes some bytes to the base64 representation
  function encode(bytes memory data) internal pure returns (string memory) {
    uint256 len = data.length;
    if (len == 0) return "";

    // multiply by 4/3 rounded up
    uint256 encodedLen = 4 * ((len + 2) / 3);

    // Add some extra buffer at the end
    bytes memory result = new bytes(encodedLen + 32);

    bytes memory table = TABLE;

    assembly {
      let tablePtr := add(table, 1)
      let resultPtr := add(result, 32)

      for {
        let i := 0
      } lt(i, len) {

      } {
        i := add(i, 3)
        let input := and(mload(add(data, i)), 0xffffff)

        let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
        out := shl(8, out)
        out := add(
          out,
          and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)
        )
        out := shl(8, out)
        out := add(
          out,
          and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)
        )
        out := shl(8, out)
        out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
        out := shl(224, out)

        mstore(resultPtr, out)

        resultPtr := add(resultPtr, 4)
      }

      switch mod(len, 3)
      case 1 {
        mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
      }
      case 2 {
        mstore(sub(resultPtr, 1), shl(248, 0x3d))
      }

      mstore(result, encodedLen)
    }

    return string(result);
  }
}

File 2 of 17 : Traits2.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;

contract HeroTraits2 {
  function getHairLength() public pure returns (uint256) {
    return getHair().length;
  }

  function getHair() public pure returns (string[2][109] memory) {
    return [
      ["", ""],
      ["Hair 1", "QmVR4Agrosv1FUsYUL3VazA6U6iKP8TsjpnSt9i8b3rWo6"],
      ["Hair 2", "QmdzHAR6kvwzNtTFc4K7Si3JYu2HK7nMWjJHYqjGg8UGey"],
      ["Hair 3", "QmbSETVbdXvxYzfnmWqje7JhrTyzuBs78cmNtkDMjRX8UD"],
      ["Hair 4", "QmTq6YusqEtE49K2FskYhhhkYudXG3eycfuFEtX93CkQqt"],
      ["Hair 5", "QmY1MUML2xeQrjJMtGqamMaJNmbNpsYrpj7SimfgPu6kMG"],
      ["Hair 6", "QmSuu6bKH49g8PLdiKWAeUeZBcirVvp6FtVRa6a3AVGCD8"],
      ["Hair 7", "QmSfCFqsKsC5YfEfhGuvNWUfppEQtc97kEg2DaMAbk7P1T"],
      ["Hair 8", "QmbgFJyFvVoNV6GwH7JVmCBXUJRmth4sZA6eCHvGD9Ayst"],
      ["Hair 9", "QmaNm9SkL13mBbztEGEAYLhGFD9PVuVNgrNE1wEQgdnCYb"],
      ["Hair 10", "QmcSHYeCh3TDxLuUHZeL1bXpPzf3s1KP2zDkw74b55vgx9"],
      ["Hair 11", "QmVeJPSR6CxAXUyfqXxijxHxVNSVPu4bXL12C4X2tt2JpM"],
      ["Hair 12", "QmV94RyUbvYZZRRh9R5pzYgRf1Lfd5qy69J6qgSShYpfAB"],
      ["Hair 13", "QmNXikU6eU6xCkLkR3apued1gbU2r1upFk3eyWvj9jXxuZ"],
      ["Hair 14", "QmZTTegdX9hhnQy3HqTMpBfMzkWKdodm88hnzAij3ATqEq"],
      ["Hair 15", "QmaAieRfrDZVzzSUWbbNoJH4JS3hkdy2ziHQqH5LYyUrWk"],
      ["Hair 16", "QmQPvYaQfVZv8NJgUyyVRejeab6GAwdVzQEgznDejvsWGS"],
      ["Hair 17", "QmYMB68YQtgUptCuUZFUjkY8z3ACVXQLbYQ3EtjnGF9EWQ"],
      ["Hair 18", "QmR6HC7R3VKK9o6FUMsGDdH4QW2XRXijZxDRtt2eDQ4cfq"],
      ["Hair 19", "QmNT4AyAo3Wo5EnToCqGdMqeEEY27YWY2945K5LW8FyCUV"],
      ["Hair 20", "Qmb8skGpSyiu8qMstcpz1t58a437en8UKEysiFpqmRanCC"],
      ["Hair 21", "QmeGczhaEDt4XGJPU85yEqpQTu6P6uXzZ3nYkF4W9bxsxp"],
      ["Hair 22", "Qma3aqjuJFiezXRcJV7DmJJ4Lqx17TGuXrEu6ceRgKfs8W"],
      ["Hair 23", "QmTowaiJ9TYSomNVd5En1UCQfmtbMW9zxbkxi8JXHAizGu"],
      ["Hair 24", "QmZahpiQvGR9z5VvNtTVe8htiGPRdyiRBJs5btoMattmMx"],
      ["Hair 25", "QmTifJ8MF1bA1BCoSkCcWNkVEgs5rTzgcHEVJVJgN2f63q"],
      ["Hair 26", "QmYbqFoGv8g3CTnvYJiL9vUZCki1XjkRt1NGND1DZse9XP"],
      ["Hair 27", "QmUwuPGpuSqiGFz5S4SmEKNs7BVB4eUFtCbapu7UZqWMVb"],
      ["Hair 28", "QmegmyWNx6jxD7Hubrsyt7s8yPBavPSp9DoV87tmZUw8oM"],
      ["Hair 29", "QmShV3vwUjgxViYMbL8tAsei4QXE9oCT55hNeYHJPN46Hv"],
      ["Hair 30", "QmR8NbJzAmM4idNC63se3iz5ovCW3xQ8Qr7io86hHKEDbd"],
      ["Hair 31", "QmRgqEYE8KKkvbVW6L9xtZM4BTWkQqoyArQrN5PKWbj4fC"],
      ["Hair 32", "QmTohKmQXEYp3EGBX9ux7nJhGnm1ceUhJCFajMfSqUvUF5"],
      ["Hair 33", "QmWJvgkV5kGAWqoeUAwt6cuMiSdi3R52k7bs53vXnEHVNW"],
      ["Hair 34", "QmbLHLXW6BwnSoWdrHqLGwR9kqLSQBQLDp9cJMdyM8T7Ti"],
      ["Hair 35", "QmNVxTU8MpPE4xzx4DS3rBMcQ4dn65Ya1CVL7GL17HmB45"],
      ["Hair 36", "QmarD1Z6brfx1ABbQdejCK844D6sdCx9TV5K3sfJZVea8x"],
      ["Hair 37", "Qme3QWm2Z2LDorfFQ129mHfHFjhdw8HPpKphdDowmmW1t7"],
      ["Hair 38", "QmZGsagUe78rk3AiryQ5qoS8rH3jiEGQnQc5iSuEjCd1Ud"],
      ["Hair 39", "QmSfVDqsHqbQtHPUk7U7iKmybHia4dp2vxCNfjroWhkXqw"],
      ["Hair 40", "QmdjShCw7LiKEDpYUPW3FHpNiuepiZEAFb7otR9SCorFX5"],
      ["Hair 41", "QmTPv8esjqKb17fPTf3kpdEbbXcH591wzTeVFBXeKVqJCd"],
      ["Hair 42", "Qmd43EPyY6g6pXXDpCAxyMjtR5VHbrK7zLarTyPjd4K6Cw"],
      ["Hair 43", "QmYD2WyJGqe7SKwKxe5drmGhzxN6741NfGgQhX8ASBG7We"],
      ["Hair 44", "QmeXappknixDZ95Bw64ifeTuKYAdmLrEtu6cdsVJ395Lps"],
      ["Hair 45", "QmNQcRV79PHPAEue75PcjE6DuQLUeoNTEbdkKMhdvgNmT6"],
      ["Hair 46", "QmfKHZecgh4JsY3N7q6qf3r3C4Wj9xNYT3xRPohbX7idY5"],
      ["Hair 47", "QmaDTiRVmqusHowbg4ij4Yw82EVdjUe5EbFe1UDc55eEfz"],
      ["Hair 48", "QmWNcABFm7xRVzzbpQhfYGUbSz4mfaQkJjfaBpUnPVX9NX"],
      ["Hair 49", "Qmcqmq4FMXedKRZ1DmC8TBNh5nS32m3mXvXhw4pukLCrdE"],
      ["Hair 50", "QmaQ2LBn9feY8vzxUDXZK44cMb5mn3cxAunoFfZ6R4ANrL"],
      ["Hair 51", "QmfR5C4hxMDNLgySiGYnLxMfrdzunbhzfyxUGmfTr6ZqTy"],
      ["Hair 52", "QmUmCDgFYnm3y1xyhJg5GSeQtXqqzC11vAhgfVb5kBj4P5"],
      ["Hair 53", "QmdAD2f1nTuAtY4z5XzVE3xP1unRQjf1M55u4FNkv8ERWo"],
      ["Hair 54", "QmajUPh1zkNDy919LHi1bLaVZTbzHXv4JGZ7Try2QmhNSx"],
      ["Hair 55", "QmeNCwHvqrNH81gcsvSeD335iZga1fR6SCZ2avSGBfLe2N"],
      ["Hair 56", "QmfXU1KCRCuBf5NBAZVV9xxKndQxaGsbhfQR443XUb6VYE"],
      ["Hair 57", "QmZrkxM7Wc2STa3tdk4nfBq2o2JG4nvMdEnxyEUvhb2xGg"],
      ["Hair 58", "Qmcqes6SnpLP228UzQbEigJNVHXZzwEwkXHbrVSBXvpwZp"],
      ["Hair 59", "QmSgPWVS7HqhUGonuw4uxBXjP6mRKMH4SpoWbDTf5Nogre"],
      ["Hair 60", "QmfP9FWjgJzeivFhknACVMTyCU8Mtse7VsMZYDR6P6dmLE"],
      ["Hair 61", "QmPwcmqrDMHHt73MZ4Aga1EGg5KCduo7wcMRC7Hms5nyfh"],
      ["Hair 62", "QmbbVkDt7Y6K3pnt6m79obn61MwsoeW1NHqYgW2poAYWvz"],
      ["Hair 63", "QmcKATVT8NUpWRwBhuLJgFhQX1yxUeGyRhsfJtzkPGFR6W"],
      ["Hair 64", "QmRB2Np8aih7LfvfLFGbPu7R2X3nCerJvJgBiYzECUFguT"],
      ["Hair 65", "QmUAyjR8TzV53Uatwgja2WBkVqaCQ36ZMwW45Wfv7vyTKB"],
      ["Hair 66", "QmTcaK9nghZV6LuMBruaa7nq9WXic6W5hiC5Ech755Myx4"],
      ["Hair 67", "QmbipeCH6nLmqSrx12UM9FMXVjRbrVicveJbGtoqFrCQPi"],
      ["Hair 68", "QmTPvtSd7kykCVVd7zMy5wTKBPMWXW4a1sivzaCrG4L3yy"],
      ["Hair 69", "QmQ4bfdYJqiCRjK7xqZB1Jmnhr7h5ghnR11MTAUtiwcr6G"],
      ["Hair 70", "QmV3Wi2N78DQDXcVTBYeYwfUp8ijWe7Ce43e4JEbSSHPLV"],
      ["Hair 71", "QmcaFf4MN3NJ1jDFcH9n7czPSCcnQ5L86Me5FvRZxBs59E"],
      ["Hair 72", "QmQdTwNiEqnebVdYh5Bcepr4WwgZDLmZEVRnGLPXtexgzH"],
      ["Hair 73", "QmaSM75ikFySmNyA5ZGVWPjfScLycRjioTaRne8WKibBsc"],
      ["Hair 74", "QmNWmpyciad8YtR3KKtLssPpM1mDQYGUaA5wF5XZ3dturg"],
      ["Hair 75", "QmW5rJbTHRS8K1RcYDGXsMfrTwMqvbx8pVX75ZeLSWKJ5G"],
      ["Hair 76", "QmU2oooeZUnAUCcPUTqDLL6WeGLoGBq77Sari2kDsxfV24"],
      ["Hair 77", "QmTgfbD9NAfppAXGwod4XQmaD5Wc63mVSL3UXxSJrBDRU9"],
      ["Hair 78", "QmaimS11NaXAb3wvKtCs3BZZryvCcswAHCe6kTPD2fva87"],
      ["Hair 79", "QmVD1ekc7gfUuYaJ7yiEFpGRcVAD1nbBpvYQbv5wRPcuWR"],
      ["Hair 80", "QmSTrw4zyrRjt8kdpaPRHV5qeyvm6qDAtZz7qqBD8Cxi1v"],
      ["Hair 81", "QmfZ7LkgjARn6H7JV5pS4iPTjXcxwP5NmmWviCq4oMpXfk"],
      ["Hair 82", "QmbFu7FMm9u3ic7nZQp2SDRUALFnKudLZyXk3hjsTiRtCL"],
      ["Hair 83", "QmbAF7TdKvoWYkNQsL1TKxmih3yArVUH4ubyEiCCvcJaWr"],
      ["Hair 84", "QmR9n4981fVdQ4K7m8HJbB9pdxP2q8PmoWABDpe684grP3"],
      ["Hair 85", "QmTPbfaPAgyTdX1ppo8frxGBN4CQrs5WjFuLtMVKTsYZ84"],
      ["Hair 86", "QmYcyYG2TeHbDGGK5PMPyV61ye5SbnaMoAkvfqNBc9GCox"],
      ["Hair 87", "QmP4ZXYa7g9ZmHuVh5w9iQWp7m9Vm2uVsni1VZNmva16ca"],
      ["Hair 88", "QmedG9KE12FePh4TGbFEecCws3PubmoWDqVVW7GeyP439B"],
      ["Hair 89", "Qmb8KJnrfM3SFZyXd7ZXCZVrcweohcXLpRmomZgQ7uxvx4"],
      ["Hair 90", "Qmc1593Mkjhs9dxYw8Z4bH63QZ1jXEtmsuj4ugxnP2DKS2"],
      ["Hair 91", "QmeQ7HfbfQRFManSHa49AvXyVFv8Z4uRwN3n85FedbbKiF"],
      ["Hair 92", "QmTBbq66ufbjo4RQ5kM18AHkjK9fbXnX1UcAwFijUSGHYn"],
      ["Hair 93", "QmRocj4DoqMzdaGFrosD8Gjf42oH227GZgpCQFFyubQCRL"],
      ["Hair 94", "QmUoEZdnsm8tDHmEMrE2TzoNbkbsMX5JpXx9mVNLupz5hv"],
      ["Hair 95", "QmRBST9zT92eDLCY9qDWrFquRoY3gjPKs1vqcZA9u6xCKq"],
      ["Hair 96", "QmZEoxDe67kN34LxWQnHKBhHDkXuWj3ZCoPugLwXjqyyJo"],
      ["Hair 97", "QmWf1fL3uuFPAGTjy6uyKUjt88yFBLZvMwapXwcGi39bJR"],
      ["Hair 98", "QmTUeMeKB8HFRc7QhUq1sWb851H7Ru3c614M31XuUDzr9Y"],
      ["Hair 99", "QmTfXVdNcWwFBL6dzzgH6APpaUD8L7P5fFkHRWtJaVJRad"],
      ["Hair 100", "QmNxdDQ8oQ3kiFwmkY5zx1j14MmuGr4KrN9UoCH8PM227q"],
      ["Hair 101", "QmVP865PD44yX6NjRXtMLqmWP634fzgWYdDRRU4mrPvFHn"],
      ["Hair 102", "QmVi8pzkHqjgYXgkkvL3qXjNvP1BmH7UTyP1CAt2P5PP1N"],
      ["Hair 103", "QmPPGbaDeetLKc1QFXRNXP8WVSazyniSMZM2Dyhqp9mZgK"],
      ["Hair 104", "QmY5iQcSzG8cChzVbVNWPRzcK1ETXbP7heSSfwEdHmn3CX"],
      ["Hair 105", "QmddMPzse52GK7wh3BWAkpA5BmXxVA2rkzBV27RNAqRLQ5"],
      ["Hair 106", "QmP1KfmDzDaSFkQ7Pw4ZkWLhjmgzN4w8W5SznP3SC4WgFb"],
      ["Hair 107", "QmVd8UUu2ApmjxeTkt672nf5vdoojTfjmJw77rfgXF9moh"],
      ["Hair 108", "QmdDtkeqd2dMLFtwFAK6Yq4johr8SyY1MLc61VhD9FwduJ"]
    ];
  }
}

File 3 of 17 : Traits.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;

contract HeroTraits {
  function getPantsLength() public pure returns (uint256) {
    return getPants().length;
  }

  function getPants() public pure returns (string[2][5] memory) {
    return [
      ["White Pants", "QmS1ugwVyGemvvcu8xhvYPLJcM9XiCzev19hL5S4118mvY"],
      ["Red Pants", "QmQRw479rzessc1ms2kcnKQCvCs2aQ1Ep25vK7xgo9cEJt"],
      ["Blue Pants", "QmePEJz87mRjQt9BmYib14Fcxn8j13Xkdj6MfYoUZbQi79"],
      ["Green Pants", "QmZ6sjTg936aJCM67NPsPcCjMphAYEWoyQXHNHduKzLyf7"],
      ["Purple Pants", "QmPP9edeKhcJAM2YKxVfJhLaFHmLxJLm3WGcwWBvNvGXkZ"]
    ];
  }

  function getWeaponsLength() public pure returns (uint256) {
    return getWeapons().length;
  }

  function getWeapons() public pure returns (string[2][19] memory) {
    return [
      ["", ""],
      ["Boomerang of Wood", "QmeZpiK4w2G4nQnEsm9m83h1oZXSaxX5P9tg1ai7cEzCvc"],
      ["Bow of Focus", "QmNSq5KzbDhRJNuFkUmLc3MZBe5fcVKbvQcNSfThsG4KXw"],
      ["Mythal Short Sword", "Qmbbz8kkycoEK4r3oMUyw3aqrTQbCfdTno9i9eCKfFTCmz"],
      ["Bow of Honor", "QmNMApPhGawYMQtCsVNbkD2tSsyA7wfHeNuspw8jSrFaBL"],
      ["Axe of Honor", "QmeLEVz3Jy2FhWRBrQqN8szyUhYtjFxDPGVHxnTJY1xd2h"],
      ["Wood Long Sword", "QmXnwjgest5CZVz5ZhUyNnLo1diWFhkKhBck98xY4cpvRP"],
      ["Boomerang of Flight", "QmPeNnTj25uXJz67mFrJr4ro1zxENYXAGX6kfSxAC9GBxs"],
      ["Axe of Wonder", "QmT32TRmyg1xJCA9n7oFBRcuRW5vbb5TboXh5LygyLTXbi"],
      ["Bow of Mystery", "QmbQLEKE1QbGnqNjKeBLLVwcDEoQNB98fsoEQgUbVgrPJk"],
      ["Axe of Strength", "QmRfhpxsSQHCmsxGPbSDAD7rTKAjVfqgHVBfdoVZBALWFC"],
      [
        "Elvish Staff of the Forest",
        "QmZTTFEmaGu54yj9kUwH3xL4mZrfXJXp8RtzqYMHMYww6p"
      ],
      ["Staff of the Sea", "QmUsxTdawFhmWPEbBwqRUi9SGpNBeUN8RwxUUQczxVP8TX"],
      ["Universe Staff", "Qmab3zQ2n1ZPYpTEgkivDHuryM6A5P1sTjCQoWN5N9ADWE"],
      ["Mythal Long Sword", "QmSx6MiY29hFoYV2pnehEdbmuFipwupz2y2DJZyCN54jdZ"],
      ["Wood Short Sword", "QmWFFLygzSa9UXNJAtthRAurazVXjhfZ1ZsDAAsFrKWSQm"],
      ["Boomerang of Focus", "QmXPDw8pxgnsFsGoz4bw7cWA2G1ZK1MDXArNKHr1VPv3GQ"],
      ["Iron Short Sword", "QmTqDh8schE195bh6HSsoPfYLVYZLRrXaRen92nJfZcFDC"],
      ["Iron Long Sword", "QmfYEHBEReGSDKWZuRUBMRiHGhiBo1jTFwpWnVaAG11saw"]
    ];
  }

  function getBgLength() public pure returns (uint256) {
    return getBg().length;
  }

  function getBg() public pure returns (string[26] memory) {
    return [
      "#FEDD00",
      "#74D1EA",
      "#9DE7D7",
      "#9E978E",
      "#84754E",
      "#00B08B",
      "#222223",
      "#6B4C4C",
      "#ff2424",
      "#FF808B",
      "#DF1995",
      "#C1A7E2",
      "#685BC7",
      "#DDDAE8",
      "#1B365D",
      "#A4BCC2",
      "#407EC9",
      "#009CDE",
      "#003865",
      "#40C1AC",
      "#279989",
      "#00BFB3",
      "#006F62",
      "#ADDC91",
      "#007041",
      "#58eb34"
    ];
  }

  function getRaceLength() public pure returns (uint256) {
    return getRace().length;
  }

  function getRace() public pure returns (string[2][22] memory) {
    return [
      ["Human", "QmbVrpTTEciNQPxb8TjntcmpQMDLrzgEsJxYrpGanCmH88"],
      ["Human", "QmWTzCYevtrCY9Yu9HZ1RudJ5DZ3ySMbbb6V8j1GMoFd2W"],
      ["Human", "QmYhchiEeh4iJPYSksxoUAoy9SZCCEU21UQzEyeFxWBcBj"],
      ["Undead", "QmTtNfnd3HZ7moKrzaJaYyUM5idGbKy2sgHE14fpeyU9UL"],
      ["Skeleton", "QmcMDNnc8SNjwvPBpcb6hXG3yjz9WSiQ5qzbJTZre7N2uB"],
      ["Wizard", "QmYotarEMJ98MHfZGDKhsgCcZU54EzTRPCuS88vG9PBUtd"],
      ["Ghost", "QmTuv44nHYMAix3L36HuBkPV5sQ6NPiGhxSFGSTnAHipJk"],
      ["Frogling", "QmPXTBPcjrxrjwAaH9VaLzV8uZVpHuy2VnytHT1LWsYWuX"],
      ["Pizza", "QmaJFAM6iV473UUcEQUPP7hCtP1Zh5jspvMHb9sJYiyutJ"],
      ["Slate Monkey", "QmNZezfUXKEQZkrXfobHsudcqqAECt97yYZQRUV12jkNbj"],
      ["Emerald Monkey", "Qmdy1tBPBa85TeDMYb9KVPHanU7Wor39yLEpAJwEUDfgK8"],
      ["Red Monkey", "Qmb23Pp17Xg5nBQJnfkzQ4rMWPKYnNNWqJcYDaDoJJnwSN"],
      ["Gold Slate Monkey", "QmNn3agjVqz4WFNvcm3Srzg2EuKJoJi2W2t32E1aDVhAwg"],
      ["White Monkey", "QmTH9fLyHLzbP6KXUFdJKCKYZqPUHEv7vrYeP95s8AZ57B"],
      ["Emerald Red Monkey", "QmZJQQE2QS9kMHhUe1PbCNnG1QvGH7hiW6sPETZtqpeEZK"],
      ["Yellow Monkey", "QmRdNLRMzuTmEuQZVtJAXj9ydxs3Ztb1EdCcF8eqRFQBBe"],
      ["Honey Monkey", "QmbgrRnunnkJSS9L945bvbP9gd54nRJ8D6YMi1jECvHhei"],
      ["Red Furred Monkey", "QmdHwSAhmthUbTUfSTqD7EMFWcZ13LLZbvoNTYgKjJb5Vj"],
      ["Snow Monkey", "QmYvjKEGeSZH2dMhSvgooPt5AatSZzQm2UvMBNhoKvUvER"],
      ["Brown Monkey", "QmehwhevsQdDyAoG2maHFA7Pip4x6KLVRU1KVfmV4pfDmu"],
      ["Gold Monkey", "QmTsvwBm7MTRgZBhLmV2GFtC7FzBggwcNNWDmk5iNyk2oP"],
      ["Tree Monkey", "QmYJBTHYE8WjNFV2udVre3yXTy9Y5xwScBW4bgHvaoPL5r"]
    ];
  }

  function getClothesLength() public pure returns (uint256) {
    return getClothes().length;
  }

  function getClothes() public pure returns (string[2][25] memory) {
    return [
      ["", ""],
      ["Robe of Fire", "QmUH91Yysb2SsDNKZSrkUMevUcoSU3dmcvpcozWAuEvr18"],
      ["Shirt of Mystery", "QmXRYw9yfgDYAU27KMQafT41hKQFVGJZBqwjs3nkWEUpAp"],
      ["Vest of Fire", "QmZDeqtzajKwxV9YgfzcZ8Wfap1zARUicUWjTJmJBMdQdw"],
      ["Tunic of Wonder", "QmaS95LAjXoF3EWxPowwbybBvhG7NtqAA6KeWLYpAzKUVZ"],
      ["Tunic of Mystery", "QmYJ1xzvptgSVakpUGQgaXjF4w8nnZyNCoDz9v9TJKEcpz"],
      ["Shirt of Fire", "QmQc1ThSSgbdC6z5nwLDyMyPYqrUC6JBDhfu7WWkyyx9QP"],
      ["Vest of White", "QmYXx2ihhkFWbjHGkyyfSsQf5jnHPojmo1cWBS9RNjLo8R"],
      ["Tunic of Fire", "QmcfVUUiFDNoJnZP8W8eSHPq11WRj99oeK4LLaJQtQ1fb8"],
      ["Robe of Mystery", "QmW9xSXtHfikeScmhpB56kWHdNSDPJaA2F4DRiRdS1gt96"],
      ["Robe of White", "QmRdTAV3jspvFCdWuTL1wYvz34BS1BXhUY9ctsouy11vfR"],
      ["Shirt of Emerald", "QmU3i6M3JgPUSFMzfwCjgAkcFtwtmEvwgdSvTEN9gBQ2Ld"],
      ["Vest of Mystery", "Qme5ZavY4PMvt5bSmrLJErrnDyUckaNH9FrgT5aYqdnnBf"],
      ["Robe of Emerald", "QmZynRUwPjL6Du9LsGyPA3u1fYabmKuefjRnyTgAm99S8D"],
      ["Vest of Wishing", "QmUWNR2XF8dAgPXyakxUmpbr5SWz3kytzu49dAhRBo3gLZ"],
      ["Gown of Magic", "QmQBvcfZ1tsue32nerkpRCsYzDJfNpy466zAhwZ7jWENLw"],
      ["Robe of Wonder", "Qmbidcgmae5LJqcQKoVwF1832maJ7nMdScNr79hkvMtkkd"],
      [
        "Gown of the Universe",
        "Qmehwi2m5aqrZcqUxBjeJbXRcfWjErxywu3HbwXKPZXa2p"
      ],
      ["Tunic of Light", "QmQvhTVqSFRo4zm8uye1f6tYUSUoNvksdgrDzKychyDTKR"],
      ["Snow Gown", "QmZRoMDJFGr7umyFhH6KBporsrqG7mS1d65xMtzcTHipLj"],
      ["Blue Vest", "QmXnYYxyexqF7qcYkPDhzrrzbLkwSTeHEDfwobQLvwMd75"],
      ["Gown of Flowers", "QmaG7srwBaMSUBsExqhUuAUtQbKG12qjcmT1KKoihk7n34"],
      ["White Shirt", "Qmb7iqzgFA3NcJJQutWYFgT946bcy5JwfGHevzc9TFFXt1"],
      ["Blue Shirt", "QmQosecPGEQ8qhP1AvPNrphzrga8f3jkpNvB7HPku49cej"],
      ["Tunic of Emerald", "Qmb6yH7Ss23kL75LfrJTGZXb4oNTXx8A9Uhdr18txKFbqQ"]
    ];
  }

  function getHeadLength() public pure returns (uint256) {
    return getHead().length;
  }

  function getHead() public pure returns (string[2][24] memory) {
    return [
      ["", ""],
      ["Dark Hood", "QmecUFzdxqbhzQGQzpoxqWViFXybMA4amKC9vcwddEzj3y"],
      ["Emerald Hood", "QmQR7CLWNY66kicK51cPjzpf7tcZVEVjZm8PhMtHjBJthi"],
      ["Blue Hood", "QmUEhNvJQ5PmPWvJfABNJ5mwZg9s9uANgeFh8wBfwnftk1"],
      ["White Hood", "QmSNTEq8GsBkzRq19T3Rh9jdULr46KCtKJxVEKTgUQajAo"],
      ["Red Hood", "Qmc4VPaLnV1JPUvpzsYxsKaYofaCbrhgKK3TaDcnf6tW3L"],
      ["Helmet 1", "QmcuWWeEsqWMh6ESKEi4BpbicnoqpQt5WQcLhqC9kggj2M"],
      ["Phrygian Cap", "QmRYZTTanct9LqJw6Mr4EjuTN5iGvySnbgB3GAviy9QAaX"],
      ["Reddish Hat", "QmemYuaZ6ti3f9hZB6sMnCZ9CyHnPRsBCTsSBrTGp7jgFS"],
      ["Hat of Luck", "Qmed5Ebw2HqfeDBn845Sb6UJdSFeedZvwcF2eDeDVTt5Q8"],
      ["Purple Hat", "QmTaet5S2Q8tRa6fa4REPQ3USdn7G6Ptemm4nMb3BpLhZ5"],
      ["Wizard Hat", "QmTAoe4qpfHsER7swyzbGj1zSR6GuRTsMfBaWdWQtsVUAu"],
      ["Helmet 2", "QmQd9zjzVbCEG3HTsnLSjfj4D8g2YbVAwJD9jLnf6x3SqH"],
      ["Helmet of Nebulous", "QmWEvHZyBXuezBcAFKvM55MdVWDnqQCXQXL4xDUzPCVYY6"],
      ["Helmet of Valoria", "QmZX3jJVEhJNTtQM5mTJNkfCSZxqfULsZ88bHg1ekELiGT"],
      ["Hat of White", "Qma6pcKWCwCbLdQfbLqYA8vNr8jr74uTM2dNiK5Ga6GSQL"],
      ["Helmet of Thulium", "QmWWFXsfSuSNRTN4qVdjPH9cf6bccZ3mUbJz8MXXY7Ky8n"],
      ["Helmet of Wonder", "QmNQQ9rZUscy6fLHdhqndmDm43dSe1xo45JBqkiKNN95qz"],
      ["Helmet of Valoria 2", "Qmd1Xza7bLMXNdHmpCP2Dt2Fo7YkyECnQxnsbNgPPEkipK"],
      ["Beep Bop", "QmaPxQGtBVHp7HWDmc7hjnHXCWbubNHFb3dctqetfT5S8S"],
      ["Helmet of Power", "Qmaqi98rt2oFwzjwJxbWmVgdbrjQshCPt5cCpmLUHsM9Cn"],
      ["Beep Bop 2", "QmTNiTTa7BZdAHNni9AgVdcQ86GNkDrDcmreLRRCVHnE4V"],
      ["Beep Bop 3", "QmXnP7hifqudavHmH92o9eDATz8qvpZef7CtGZDdgi5Hoz"],
      ["Helmet of the Sea", "QmXQBQtsdaM5CNC84r3LvjqsQPcBWnmsKvP2U1SdnGdHph"]
    ];
  }

  function getShoesLength() public pure returns (uint256) {
    return getShoes().length;
  }

  function getShoes() public pure returns (string[2][5] memory) {
    return [
      ["", ""],
      ["Shoes", "QmZuWKcMRRRP28eCFq7oZ19VHp5fKsHfKeLPvRh9AhQw3G"],
      ["Golden Runners", "QmSBkmnuG4N8GXMRhAMyYEqoajApFwHymt1aPcDaQXoiX8"],
      ["Blue Shoes", "QmXrspeWB4J3kSYovtuGCz6FqAs5KgxpZs13obSUoSBW3D"],
      ["Blue Boots", "QmZVtB16f6Z8MgEzkv2XCE9ayFe34tTRwouRPKbVZiNjF1"]
    ];
  }

  function getShieldsLength() public pure returns (uint256) {
    return getShields().length;
  }

  function getShadow() public pure returns (string memory) {
    return "QmcRNVeYU1CeMe2yD1HKpg5bvBQCfcW5xZp67HYSstAzSZ";
  }

  function getShields() public pure returns (string[2][11] memory) {
    return [
      ["", ""],
      [
        "Shield of the Forest 1",
        "QmVSwjgTzn7w9jYFvmzadBmFYDaTFi5H9JK8hUW5EJ6Uq3"
      ],
      ["Shield of Iron 1", "QmZWnaVywirur14yBBGfBJdQiqit6rQwB5NUAzkdJzqnPS"],
      ["Mythal Shield 2", "QmebyDHQq24xgLEjoN33aSSQUCFX3vTpf9koRo62GCB6bM"],
      ["Mythal Shield 3", "QmbVKssPYZS1V9bZmkDfpU1EqKyFSKkVLunqQasiipQCkD"],
      ["Shield of Iron 2", "QmYpmqDQZvPPQoNsiH4jDUksozTgWiK13KfWT24YorFsY7"],
      ["Mythal Shield 1", "QmT21FSftCYKcSvjK262vyw79zqQpzxuPCvPNKY23CbNzn"],
      ["Shield of Absolute", "QmPGtk89gzqK93hV8v1noqJthoB3QAccxZGVw9TZUKrKmZ"],
      [
        "Shield of the Forest 2",
        "QmcDwGHTrcdFusDAagX3632cDjAczawoWL6uChv4Y68gF2"
      ],
      ["Shield of Iron 3", "QmPvccz4cMBh3589fht4hCdwRJYyNAHMRggy4YUwKzGKv4"],
      [
        "Shield of the Forest 3",
        "QmRPvKjbSQafzLcxwU4CFBKuemNRxGBS8U3ra8rGFJRRGy"
      ]
    ];
  }
}

File 4 of 17 : 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 5 of 17 : 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 6 of 17 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseUri","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"traits","type":"address"},{"internalType":"address","name":"traits2","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"CDN_ENABLED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CDN_PREFIX","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"},{"internalType":"string","name":"prefix","type":"string"}],"name":"enableCdn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"genSvg","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"genTraits","outputs":[{"components":[{"internalType":"uint256","name":"race","type":"uint256"},{"internalType":"uint256","name":"pants","type":"uint256"},{"internalType":"uint256","name":"weapon","type":"uint256"},{"internalType":"uint256","name":"shield","type":"uint256"},{"internalType":"uint256","name":"clothes","type":"uint256"},{"internalType":"uint256","name":"head","type":"uint256"},{"internalType":"uint256","name":"shoes","type":"uint256"},{"internalType":"uint256","name":"hair","type":"uint256"},{"internalType":"uint256","name":"bg","type":"uint256"},{"internalType":"uint256","name":"magic","type":"uint256"},{"internalType":"uint256","name":"strength","type":"uint256"},{"internalType":"uint256","name":"intelligence","type":"uint256"},{"internalType":"uint256","name":"stamina","type":"uint256"},{"internalType":"uint256","name":"dexterity","type":"uint256"},{"internalType":"uint256","name":"creativity","type":"uint256"}],"internalType":"struct Heroes.Traits","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getJsonString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"num","type":"uint256"}],"name":"getSeedPart","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"amount","type":"uint256"}],"name":"merlinMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"tokenUriHash","type":"string"},{"internalType":"address","name":"to","type":"address"}],"name":"mintCustom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"baseUri","type":"string"}],"name":"setBaseUri","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":"uint256","name":"","type":"uint256"}],"name":"tokenIdToSeed","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":[{"internalType":"string","name":"d","type":"string"}],"name":"updateDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"updateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sendTo","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

67011c37937e080000600c55610d05600d556015805460ff1916905560a0604081905260006080819052620000379160169162000182565b5060006017556127106018553480156200005057600080fd5b50604051620059b3380380620059b3833981016040819052620000739162000312565b82604051806040016040528060048152602001634845524f60e01b8152508160009080519060200190620000a992919062000182565b508051620000bf90600190602084019062000182565b505050620000dc620000d66200012c60201b60201c565b62000130565b6001600b558351620000f690601090602087019062000182565b50601280546001600160a01b039384166001600160a01b0319918216179091556013805492909316911617905550620003de9050565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200019090620003a1565b90600052602060002090601f016020900481019282620001b45760008555620001ff565b82601f10620001cf57805160ff1916838001178555620001ff565b82800160010185558215620001ff579182015b82811115620001ff578251825591602001919060010190620001e2565b506200020d92915062000211565b5090565b5b808211156200020d576000815560010162000212565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200025057600080fd5b81516001600160401b03808211156200026d576200026d62000228565b604051601f8301601f19908116603f0116810190828211818310171562000298576200029862000228565b81604052838152602092508683858801011115620002b557600080fd5b600091505b83821015620002d95785820183015181830184015290820190620002ba565b83821115620002eb5760008385830101525b9695505050505050565b80516001600160a01b03811681146200030d57600080fd5b919050565b600080600080608085870312156200032957600080fd5b84516001600160401b03808211156200034157600080fd5b6200034f888389016200023e565b955060208701519150808211156200036657600080fd5b5062000375878288016200023e565b9350506200038660408601620002f5565b91506200039660608601620002f5565b905092959194509250565b600181811c90821680620003b657607f821691505b60208210811415620003d857634e487b7160e01b600052602260045260246000fd5b50919050565b6155c580620003ee6000396000f3fe6080604052600436106102045760003560e01c80638da5cb5b11610118578063c05702cb116100a0578063e539e01e1161006f578063e539e01e1461069c578063e735b48a146106bc578063e985e9c5146106dc578063f2fde38b14610725578063f423f01c1461074557600080fd5b8063c05702cb14610573578063c87b56dd1461063c578063e0d4ea371461065c578063e3a31ab61461068957600080fd5b8063a0bcfc7f116100e7578063a0bcfc7f146104d3578063a22cb465146104f3578063a7ecd37e14610513578063abfa2d4614610533578063b88d4fde1461055357600080fd5b80638da5cb5b146104785780638e39c75a1461049657806395d89b41146104ab578063a0712d68146104c057600080fd5b806342842e0e1161019b5780636352211e1161016a5780636352211e146103b357806370a08231146103d3578063715018a6146103f357806375e91691146104085780637cd072831461043557600080fd5b806342842e0e146103395780634f6ccce714610359578063500a53711461037957806351cff8d91461039357600080fd5b806318160ddd116101d757806318160ddd146102ba57806323b872dd146102d95780632e4292bc146102f95780632f745c591461031957600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b50610229610224366004613e15565b610765565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b50610253610790565b6040516102359190613e91565b34801561026c57600080fd5b5061028061027b366004613ea4565b610822565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004613ed9565b6108bc565b005b3480156102c657600080fd5b506008545b604051908152602001610235565b3480156102e557600080fd5b506102b86102f4366004613f03565b6109d2565b34801561030557600080fd5b506102b8610314366004614137565b610a03565b34801561032557600080fd5b506102cb610334366004613ed9565b610a4e565b34801561034557600080fd5b506102b8610354366004613f03565b610ae4565b34801561036557600080fd5b506102cb610374366004613ea4565b610aff565b34801561038557600080fd5b506015546102299060ff1681565b34801561039f57600080fd5b506102b86103ae366004614184565b610b92565b3480156103bf57600080fd5b506102806103ce366004613ea4565b610bf4565b3480156103df57600080fd5b506102cb6103ee366004614184565b610c6b565b3480156103ff57600080fd5b506102b8610cf2565b34801561041457600080fd5b506102cb610423366004613ea4565b60116020526000908152604090205481565b34801561044157600080fd5b5061046561045036600461419f565b60009182526011602052604090912054901c90565b60405161ffff9091168152602001610235565b34801561048457600080fd5b50600a546001600160a01b0316610280565b3480156104a257600080fd5b50610253610d28565b3480156104b757600080fd5b50610253610db6565b6102b86104ce366004613ea4565b610dc5565b3480156104df57600080fd5b506102b86104ee3660046141c1565b610f51565b3480156104ff57600080fd5b506102b861050e3660046141f5565b610f92565b34801561051f57600080fd5b506102b861052e366004614184565b610f9d565b34801561053f57600080fd5b5061025361054e366004613ea4565b610fe9565b34801561055f57600080fd5b506102b861056e366004614228565b611043565b34801561057f57600080fd5b5061059361058e366004613ea4565b61107b565b6040516102359190815181526020808301519082015260408083015190820152606080830151908201526080808301519082015260a0808301519082015260c0808301519082015260e08083015190820152610100808301519082015261012080830151908201526101408083015190820152610160808301519082015261018080830151908201526101a080830151908201526101c091820151918101919091526101e00190565b34801561064857600080fd5b50610253610657366004613ea4565b611bd7565b34801561066857600080fd5b506102cb610677366004613ea4565b60009081526011602052604090205490565b6102b8610697366004613ea4565b611caf565b3480156106a857600080fd5b506102536106b7366004613ea4565b611da5565b3480156106c857600080fd5b506102b86106d73660046141c1565b6126c2565b3480156106e857600080fd5b506102296106f73660046142a3565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561073157600080fd5b506102b8610740366004614184565b6126ff565b34801561075157600080fd5b506102b86107603660046142cd565b612797565b60006001600160e01b0319821663780e9d6360e01b148061078a575061078a82612839565b92915050565b60606000805461079f90614311565b80601f01602080910402602001604051908101604052809291908181526020018280546107cb90614311565b80156108185780601f106107ed57610100808354040283529160200191610818565b820191906000526020600020905b8154815290600101906020018083116107fb57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108a05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108c782610bf4565b9050806001600160a01b0316836001600160a01b031614156109355760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610897565b336001600160a01b0382161480610951575061095181336106f7565b6109c35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610897565b6109cd8383612889565b505050565b6109dc33826128f7565b6109f85760405162461bcd60e51b81526004016108979061434c565b6109cd8383836129ee565b600a546001600160a01b03163314610a2d5760405162461bcd60e51b81526004016108979061439d565b6015805460ff191683151517905580516109cd906016906020840190613d09565b6000610a5983610c6b565b8210610abb5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610897565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6109cd83838360405180602001604052806000815250611043565b6000610b0a60085490565b8210610b6d5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610897565b60088281548110610b8057610b806143d2565b90600052602060002001549050919050565b600a546001600160a01b03163314610bbc5760405162461bcd60e51b81526004016108979061439d565b60405147906001600160a01b0383169082156108fc029083906000818181858888f193505050501580156109cd573d6000803e3d6000fd5b6000818152600260205260408120546001600160a01b03168061078a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610897565b60006001600160a01b038216610cd65760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610897565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610d1c5760405162461bcd60e51b81526004016108979061439d565b610d266000612b99565b565b60168054610d3590614311565b80601f0160208091040260200160405190810160405280929190818152602001828054610d6190614311565b8015610dae5780601f10610d8357610100808354040283529160200191610dae565b820191906000526020600020905b815481529060010190602001808311610d9157829003601f168201915b505050505081565b60606001805461079f90614311565b6002600b541415610e185760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610897565b6002600b55600a811115610e675760405162461bcd60e51b8152602060048201526016602482015275043616e206f6e6c79206d696e7420757020746f2031360541b6044820152606401610897565b600d5481600f54610e7891906143fe565b1115610eb45760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610897565b600d54600f5410610ef45760405162461bcd60e51b815260206004820152600a602482015269105b1b081b5a5b9d195960b21b6044820152606401610897565b34600c5482610f039190614416565b14610f405760405162461bcd60e51b815260206004820152600d60248201526c496e76616c69642076616c756560981b6044820152606401610897565b610f4981612beb565b506001600b55565b600a546001600160a01b03163314610f7b5760405162461bcd60e51b81526004016108979061439d565b8051610f8e906010906020840190613d09565b5050565b610f8e338383612c93565b600a546001600160a01b03163314610fc75760405162461bcd60e51b81526004016108979061439d565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6060610ff482612d62565b601461100761100285611da5565b612e8a565b61101085612fef565b61101986613150565b60405160200161102d9594939291906144eb565b6040516020818303038152906040529050919050565b61104d33836128f7565b6110695760405162461bcd60e51b81526004016108979061434c565b611075848484846132dd565b50505050565b6110f4604051806101e001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b60008281526011602090815260408083205481516101e08101835261020081018290526001610220808301919091528351808303909101815261024082018452805190850120815282518085018390526002818501528351808203850181526060918201855280519086012082860152835180860184905260038186015284518082038601815290820185528051908601208285015283518086018490526004818601528451808203860181529082018552805190860120818301528351808601849052600581860152845180820386018152908201855280519086012060808301528351808601849052600681860152845180820386018152908201855280519086012060a083019081528451808701859052600781870152855180820387018152908301865280519087012060c08401528451808701859052600881870152855180820387018152908301865280519087012060e0840152845180870185905260098187015285518082038701815290830186528051908701206101008401528451808701859052600a8187015285518082038701815290830186528051908701206101208401528451808701859052600b8187015285518082038701815290830186528051908701206101408401528451808701859052600c8187015285518082038701815290830186528051908701206101608401528451808701859052600d8187015285518082038701815290830186528051908701206101808401528451808701859052600e8187015285518082038701815290830186528051908701206101a08401528451808701859052600f81870152855180820387018152920190945280519401939093206101c08401529051909290611379906101f4613310565b61138457600061140a565b601260009054906101000a90046001600160a01b03166001600160a01b0316630114ebf76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113fb91906145ea565b8260a0015161140a9190614619565b9050600060018210158015611420575060058211155b905060008061143585600001516101f4613310565b905060006114498660000151610154613310565b9050600061145c876000015160b4613310565b905060006114708860000151610258613310565b9050600061148489600001516102bc613310565b905060006114988a60000151610320613310565b905060006114ac8b60000151610384613310565b905060006114c08c600001516103c0613310565b905060006114d48d600001516103ca613310565b905086156114e557600299506116c5565b87156114f457600199506116c5565b881561150357600099506116c5565b851561151257600399506116c5565b841561152157600499506116c5565b831561153057600599506116c5565b821561153f57600699506116c5565b811561154e57600799506116c5565b801561155d57600899506116c5565b8c5161156b906103cc613310565b1561157957600999506116c5565b8c51611587906103ce613310565b1561159557600a99506116c5565b8c516115a3906103d0613310565b156115b157600b99506116c5565b8c516115bf906103d2613310565b156115cd57600c99506116c5565b8c516115db906103d4613310565b156115e957600d99506116c5565b8c516115f7906103d6613310565b1561160557600e99506116c5565b8c51611613906103d8613310565b1561162157600f99506116c5565b8c5161162f906103da613310565b1561163d57601099506116c5565b8c5161164b906103dc613310565b1561165957601199506116c5565b8c51611667906103de613310565b1561167557601299506116c5565b8c51611683906103e1613310565b1561169157601399506116c5565b8c5161169f906103e5613310565b156116ad57601499506116c5565b8c516116bb906103e8613310565b156116c557601599505b604051806101e001604052808b8152602001601260009054906101000a90046001600160a01b03166001600160a01b0316635758a4e26040518163ffffffff1660e01b8152600401602060405180830381865afa15801561172a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174e91906145ea565b8f6020015161175d9190614619565b81526020016117728f60400151610320613310565b61177d576000611803565b601260009054906101000a90046001600160a01b03166001600160a01b031663da3494df6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f491906145ea565b8f604001516118039190614619565b81526020016118178f606001516064613310565b6118225760006118a8565b601260009054906101000a90046001600160a01b03166001600160a01b0316637d0ad3b26040518163ffffffff1660e01b8152600401602060405180830381865afa158015611875573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189991906145ea565b8f606001516118a89190614619565b81526012546040805163de6c706360e01b815290516020938401936001600160a01b039093169263de6c706392600480820193918290030181865afa1580156118f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191991906145ea565b8f608001516119289190614619565b81526020018d8152602001601260009054906101000a90046001600160a01b03166001600160a01b031663212b03cc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611986573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119aa91906145ea565b8f60c001516119b99190614619565b81526020018c611a69576119d38f604001516103b6613310565b6119de576000611a6c565b601360009054906101000a90046001600160a01b03166001600160a01b0316638b2501d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a5591906145ea565b8f60e00151611a649190614619565b611a6c565b60005b81526012546040805163e7790c5160e01b815290516020938401936001600160a01b039093169263e7790c5192600480820193918290030181865afa158015611ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611add91906145ea565b8f6101000151611aed9190614619565b81526020016103e88f6101200151611b059190614619565b611b109060016143fe565b81526020016103e88f6101400151611b289190614619565b611b339060016143fe565b81526020016103e88f6101600151611b4b9190614619565b611b569060016143fe565b81526020016103e88f6101800151611b6e9190614619565b611b799060016143fe565b81526020016103e88f6101a00151611b919190614619565b611b9c9060016143fe565b81526020016103e88f6101c00151611bb49190614619565b611bbf9060016143fe565b8152509e505050505050505050505050505050919050565b6000818152600260205260409020546060906001600160a01b0316611c385760405162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b6044820152606401610897565b60155460ff1615611c5f576016611c4e83612d62565b60405160200161102d92919061462d565b6127108210611c9357611c70613333565b600083815260196020908152604091829020915161102d93926001019101614652565b611c9f61100283610fe9565b60405160200161102d9190614679565b600a546001600160a01b03163314611cd95760405162461bcd60e51b81526004016108979061439d565b606481601754611ce991906143fe565b1115611d415760405162461bcd60e51b815260206004820152602160248201527f4d65726c696e2063616e206f6e6c792073756d6d6f6e20313030206865726f656044820152607360f81b6064820152608401610897565b600d54600f5410611d815760405162461bcd60e51b815260206004820152600a602482015269105b1b081b5a5b9d195960b21b6044820152606401610897565b8060176000828254611d9391906143fe565b90915550611da2905081612beb565b50565b6000818152600260205260409020546060906001600160a01b0316611e065760405162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b6044820152606401610897565b6000611e118361107b565b9050611e1b613d8d565b601260009054906101000a90046001600160a01b03166001600160a01b03166397459ffc6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611e6e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e969190810190614703565b826101000151601a8110611eac57611eac6143d2565b6020020151611eb9613333565b601260009054906101000a90046001600160a01b03166001600160a01b031663c9aa067f6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611f0c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611f34919081019061479e565b604051602001611f469392919061480c565b60408051808303601f190181529190528152611f60613333565b601260009054906101000a90046001600160a01b03166001600160a01b0316631ce71c386040518163ffffffff1660e01b8152600401600060405180830381865afa158015611fb3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611fdb9190810190614936565b835160168110611fed57611fed6143d2565b60200201516001602002015160405160200161200a9291906149c3565b60408051808303601f19018152919052602082015260c0820151156120f257612031613333565b601260009054906101000a90046001600160a01b03166001600160a01b0316637e15068a6040518163ffffffff1660e01b8152600401600060405180830381865afa158015612084573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120ac9190810190614a55565b8360c00151600581106120c1576120c16143d2565b6020020151600160200201516040516020016120de929190614ae1565b604051602081830303815290604052612103565b604051806020016040528060008152505b6040820152612110613333565b601260009054906101000a90046001600160a01b03166001600160a01b031663bdee78376040518163ffffffff1660e01b8152600401600060405180830381865afa158015612163573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261218b9190810190614a55565b8360200151600581106121a0576121a06143d2565b6020020151600160200201516040516020016121bd929190614ae1565b60408051808303601f1901815291905260608201526080820151156122a5576121e4613333565b601260009054906101000a90046001600160a01b03166001600160a01b031663f82f99e46040518163ffffffff1660e01b8152600401600060405180830381865afa158015612237573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261225f9190810190614b27565b836080015160198110612274576122746143d2565b602002015160016020020151604051602001612291929190614ae1565b6040516020818303038152906040526122b6565b604051806020016040528060008152505b608082015260e08201511561238e576122cd613333565b601360009054906101000a90046001600160a01b03166001600160a01b03166330445d526040518163ffffffff1660e01b8152600401600060405180830381865afa158015612320573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526123489190810190614bb4565b8360e00151606d811061235d5761235d6143d2565b60200201516001602002015160405160200161237a929190614ae1565b60405160208183030381529060405261239f565b604051806020016040528060008152505b816005602002015260a08201511561247a576123b9613333565b601260009054906101000a90046001600160a01b03166001600160a01b031663dc281aff6040518163ffffffff1660e01b8152600401600060405180830381865afa15801561240c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124349190810190614c41565b8360a0015160188110612449576124496143d2565b602002015160016020020151604051602001612466929190614ae1565b60405160208183030381529060405261248b565b604051806020016040528060008152505b60c0820152606082015115612563576124a2613333565b601260009054906101000a90046001600160a01b03166001600160a01b03166308abe9576040518163ffffffff1660e01b8152600401600060405180830381865afa1580156124f5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261251d9190810190614cce565b8360600151600b8110612532576125326143d2565b60200201516001602002015160405160200161254f929190614ae1565b604051602081830303815290604052612574565b604051806020016040528060008152505b60e082015260408201511561264c5761258b613333565b601260009054906101000a90046001600160a01b03166001600160a01b031663f563d3486040518163ffffffff1660e01b8152600401600060405180830381865afa1580156125de573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526126069190810190614d5b565b83604001516013811061261b5761261b6143d2565b602002015160016020020151604051602001612638929190614ae1565b60405160208183030381529060405261265d565b604051806020016040528060008152505b610100820181905281516020808401516040808601516060870151608088015160a089015160c08a015160e08b0151955160009a6126a99a999697959694959394929392909101614de8565b60408051601f1981840301815291905295945050505050565b600a546001600160a01b031633146126ec5760405162461bcd60e51b81526004016108979061439d565b8051610f8e906014906020840190613d09565b600a546001600160a01b031633146127295760405162461bcd60e51b81526004016108979061439d565b6001600160a01b03811661278e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610897565b611da281612b99565b600a546001600160a01b031633146127c15760405162461bcd60e51b81526004016108979061439d565b60408051808201825260018082526020808301868152601854600090815260198352949094208351815460ff19169015151781559351805193949361280d938501929190910190613d09565b5090505061281d81601854613342565b60016018600082825461283091906143fe565b90915550505050565b60006001600160e01b031982166380ac58cd60e01b148061286a57506001600160e01b03198216635b5e139f60e01b145b8061078a57506301ffc9a760e01b6001600160e01b031983161461078a565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906128be82610bf4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166129705760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610897565b600061297b83610bf4565b9050806001600160a01b0316846001600160a01b031614806129b65750836001600160a01b03166129ab84610822565b6001600160a01b0316145b806129e657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612a0182610bf4565b6001600160a01b031614612a695760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610897565b6001600160a01b038216612acb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610897565b612ad683838361335c565b612ae1600082612889565b6001600160a01b0383166000908152600360205260408120805460019290612b0a908490614f34565b90915550506001600160a01b0382166000908152600360205260408120805460019290612b389084906143fe565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b81811015610f8e576000600f60008154612c0790614f4b565b91829055509050612c183382613342565b80612c24600143614f34565b4033604051602001612c5b93929190928352602083019190915260601b6bffffffffffffffffffffffff1916604082015260540190565b60408051601f198184030181529181528151602092830120600093845260119092529091205580612c8b81614f4b565b915050612bee565b816001600160a01b0316836001600160a01b03161415612cf55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610897565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b606081612d865750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612db05780612d9a81614f4b565b9150612da99050600a83614f66565b9150612d8a565b6000816001600160401b03811115612dca57612dca613f4f565b6040519080825280601f01601f191660200182016040528015612df4576020820181803683370190505b509050815b8515612e8157612e0a600182614f34565b90506000612e19600a88614f66565b612e2490600a614416565b612e2e9088614f34565b612e39906030614f7a565b905060008160f81b905080848481518110612e5657612e566143d2565b60200101906001600160f81b031916908160001a905350612e78600a89614f66565b97505050612df9565b50949350505050565b805160609080612eaa575050604080516020810190915260008152919050565b60006003612eb98360026143fe565b612ec39190614f66565b612ece906004614416565b90506000612edd8260206143fe565b6001600160401b03811115612ef457612ef4613f4f565b6040519080825280601f01601f191660200182016040528015612f1e576020820181803683370190505b50905060006040518060600160405280604081526020016154e4604091399050600181016020830160005b86811015612faa576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612f49565b506003860660018114612fc45760028114612fd557612fe1565b613d3d60f01b600119830152612fe1565b603d60f81b6000198301525b505050918152949350505050565b60606000612ffc8361107b565b9050601260009054906101000a90046001600160a01b03166001600160a01b0316631ce71c386040518163ffffffff1660e01b8152600401600060405180830381865afa158015613051573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526130799190810190614936565b81516016811061308b5761308b6143d2565b6020020151516012546040805163bdee783760e01b815290516001600160a01b039092169163bdee7837916004808201926000929091908290030181865afa1580156130db573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131039190810190614a55565b826020015160058110613118576131186143d2565b60200201515161312783613414565b60405160200161313993929190614f9f565b604051602081830303815290604052915050919050565b6060600061315d8361107b565b9050613167613db5565b60408051808201909152601f81527f2c7b2274726169745f74797065223a224d61676963222c2276616c7565223a00602082015281526101208201516131ac90612d62565b816001602002018190525060405180606001604052806023815260200161556d6023913960408201526101408201516131e490612d62565b60608083019190915260408051918201905260278082526155246020830139608082015261016082015161321790612d62565b60a08201526040805160608101909152602280825261554b602083013960c082015261018082015161324890612d62565b613256836101a00151612d62565b613264846101c00151612d62565b60405160200161327693929190615069565b60408051808303601f1901815291815260e083018290528251602080850151858401516060870151608088015160a089015160c08a015197516132c5999798959794969395929491930161512a565b60405160208183030381529060405292505050919050565b6132e88484846129ee565b6132f4848484846138fa565b6110755760405162461bcd60e51b8152600401610897906151cf565b60008161331f6103e885614619565b61332a9060016143fe565b11159392505050565b60606010805461079f90614311565b610f8e8282604051806020016040528060008152506139f8565b6001600160a01b0383166133b7576133b281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6133da565b816001600160a01b0316836001600160a01b0316146133da576133da8382613a2b565b6001600160a01b0382166133f1576109cd81613ac8565b826001600160a01b0316826001600160a01b0316146109cd576109cd8282613b77565b606061341e613dd0565b6040830151156134e357601260009054906101000a90046001600160a01b03166001600160a01b031663f563d3486040518163ffffffff1660e01b8152600401600060405180830381865afa15801561347b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526134a39190810190614d5b565b8360400151601381106134b8576134b86143d2565b60209081029190910151516040516134d09201615221565b60408051808303601f1901815291905281525b6060830151156135ab57601260009054906101000a90046001600160a01b03166001600160a01b03166308abe9576040518163ffffffff1660e01b8152600401600060405180830381865afa158015613540573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526135689190810190614cce565b8360600151600b811061357d5761357d6143d2565b6020908102919091015151604051613595920161527c565b60408051808303601f1901815291905260208201525b60a08301511561367157601260009054906101000a90046001600160a01b03166001600160a01b031663dc281aff6040518163ffffffff1660e01b8152600401600060405180830381865afa158015613608573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526136309190810190614c41565b8360a0015160188110613645576136456143d2565b602090810291909101515160405161365d92016152be565b60408051808303601f190181529181528201525b60e08301511561373957601360009054906101000a90046001600160a01b03166001600160a01b03166330445d526040518163ffffffff1660e01b8152600401600060405180830381865afa1580156136ce573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526136f69190810190614bb4565b8360e00151606d811061370b5761370b6143d2565b6020908102919091015151604051613723920161530f565b60408051808303601f1901815291905260608201525b60808301511561380157601260009054906101000a90046001600160a01b03166001600160a01b031663f82f99e46040518163ffffffff1660e01b8152600401600060405180830381865afa158015613796573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526137be9190810190614b27565b8360800151601981106137d3576137d36143d2565b60209081029190910151516040516137eb9201615347565b60408051808303601f1901815291905260808201525b60c0830151156138c957601260009054906101000a90046001600160a01b03166001600160a01b0316637e15068a6040518163ffffffff1660e01b8152600401600060405180830381865afa15801561385e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526138869190810190614a55565b8360c001516005811061389b5761389b6143d2565b60209081029190910151516040516138b392016153a3565b60408051808303601f1901815291905260a08201525b80516020808301516040808501516060860151608087015160a08801519351613139979693949293919291016153f4565b60006001600160a01b0384163b156139ed57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061393e903390899088908890600401615473565b6020604051808303816000875af1925050508015613979575060408051601f3d908101601f19168201909252613976918101906154b0565b60015b6139d3573d8080156139a7576040519150601f19603f3d011682016040523d82523d6000602084013e6139ac565b606091505b5080516139cb5760405162461bcd60e51b8152600401610897906151cf565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506129e6565b506001949350505050565b613a028383613bbb565b613a0f60008484846138fa565b6109cd5760405162461bcd60e51b8152600401610897906151cf565b60006001613a3884610c6b565b613a429190614f34565b600083815260076020526040902054909150808214613a95576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613ada90600190614f34565b60008381526009602052604081205460088054939450909284908110613b0257613b026143d2565b906000526020600020015490508060088381548110613b2357613b236143d2565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613b5b57613b5b6154cd565b6001900381819060005260206000200160009055905550505050565b6000613b8283610c6b565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216613c115760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610897565b6000818152600260205260409020546001600160a01b031615613c765760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610897565b613c826000838361335c565b6001600160a01b0382166000908152600360205260408120805460019290613cab9084906143fe565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054613d1590614311565b90600052602060002090601f016020900481019282613d375760008555613d7d565b82601f10613d5057805160ff1916838001178555613d7d565b82800160010185558215613d7d579182015b82811115613d7d578251825591602001919060010190613d62565b50613d89929150613dea565b5090565b6040518061012001604052806009905b6060815260200190600190039081613d9d5790505090565b60408051610100810190915260608152600760208201613d9d565b6040805160c0810190915260608152600560208201613d9d565b5b80821115613d895760008155600101613deb565b6001600160e01b031981168114611da257600080fd5b600060208284031215613e2757600080fd5b8135613e3281613dff565b9392505050565b60005b83811015613e54578181015183820152602001613e3c565b838111156110755750506000910152565b60008151808452613e7d816020860160208601613e39565b601f01601f19169290920160200192915050565b602081526000613e326020830184613e65565b600060208284031215613eb657600080fd5b5035919050565b80356001600160a01b0381168114613ed457600080fd5b919050565b60008060408385031215613eec57600080fd5b613ef583613ebd565b946020939093013593505050565b600080600060608486031215613f1857600080fd5b613f2184613ebd565b9250613f2f60208501613ebd565b9150604084013590509250925092565b80358015158114613ed457600080fd5b634e487b7160e01b600052604160045260246000fd5b60405161034081016001600160401b0381118282101715613f8857613f88613f4f565b60405290565b6040516102c081016001600160401b0381118282101715613f8857613f88613f4f565b60405160a081016001600160401b0381118282101715613f8857613f88613f4f565b60405161032081016001600160401b0381118282101715613f8857613f88613f4f565b604051610da081016001600160401b0381118282101715613f8857613f88613f4f565b60405161030081016001600160401b0381118282101715613f8857613f88613f4f565b60405161016081016001600160401b0381118282101715613f8857613f88613f4f565b60405161026081016001600160401b0381118282101715613f8857613f88613f4f565b604051601f8201601f191681016001600160401b03811182821017156140aa576140aa613f4f565b604052919050565b60006001600160401b038211156140cb576140cb613f4f565b50601f01601f191660200190565b60006140ec6140e7846140b2565b614082565b905082815283838301111561410057600080fd5b828260208301376000602084830101529392505050565b600082601f83011261412857600080fd5b613e32838335602085016140d9565b6000806040838503121561414a57600080fd5b61415383613f3f565b915060208301356001600160401b0381111561416e57600080fd5b61417a85828601614117565b9150509250929050565b60006020828403121561419657600080fd5b613e3282613ebd565b600080604083850312156141b257600080fd5b50508035926020909101359150565b6000602082840312156141d357600080fd5b81356001600160401b038111156141e957600080fd5b6129e684828501614117565b6000806040838503121561420857600080fd5b61421183613ebd565b915061421f60208401613f3f565b90509250929050565b6000806000806080858703121561423e57600080fd5b61424785613ebd565b935061425560208601613ebd565b92506040850135915060608501356001600160401b0381111561427757600080fd5b8501601f8101871361428857600080fd5b614297878235602084016140d9565b91505092959194509250565b600080604083850312156142b657600080fd5b6142bf83613ebd565b915061421f60208401613ebd565b600080604083850312156142e057600080fd5b82356001600160401b038111156142f657600080fd5b61430285828601614117565b92505061421f60208401613ebd565b600181811c9082168061432557607f821691505b6020821081141561434657634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115614411576144116143e8565b500190565b6000816000190483118215151615614430576144306143e8565b500290565b60008151614447818560208601613e39565b9290920192915050565b8054600090600181811c908083168061446b57607f831692505b602080841082141561448d57634e487b7160e01b600052602260045260246000fd5b8180156144a157600181146144b2576144df565b60ff198616895284890196506144df565b60008881526020902060005b868110156144d75781548b8201529085019083016144be565b505084890196505b50505050505092915050565b6f7b226e616d65223a20224865726f202360801b81528551600090614517816010850160208b01613e39565b72111610113232b9b1b934b83a34b7b7111d101160691b6010918401918201526145446023820188614451565b905061088b60f21b8082527f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b626173600283015263194d8d0b60e21b60228301528651614595816026850160208b01613e39565b602692019182015284516145b0816028840160208901613e39565b84519101906145c6816028840160208801613e39565b6145dd602882840101615d7d60f01b815260020190565b9998505050505050505050565b6000602082840312156145fc57600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b60008261462857614628614603565b500690565b60006146398285614451565b8351614649818360208801613e39565b01949350505050565b60008351614664818460208801613e39565b61467081840185614451565b95945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516146b181601d850160208701613e39565b91909101601d0192915050565b600082601f8301126146cf57600080fd5b81516146dd6140e7826140b2565b8181528460208386010111156146f257600080fd5b6129e6826020830160208701613e39565b6000602080838503121561471657600080fd5b82516001600160401b038082111561472d57600080fd5b818501915085601f83011261474157600080fd5b614749613f65565b8061034084018881111561475c57600080fd5b845b81811015614790578051858111156147765760008081fd5b6147828b8289016146be565b85525092860192860161475e565b509098975050505050505050565b6000602082840312156147b057600080fd5b81516001600160401b038111156147c657600080fd5b6129e6848285016146be565b7f3c696d6167652077696474683d223130302522206865696768743d22313030258152671110343932b31e9160c11b602082015260280190565b7f3c726563742077696474683d223130302522206865696768743d223130302522815266103334b6361e9160c91b602082015260008451614854816027850160208901613e39565b631110179f60e11b6027918401918201819052614873602b83016147d2565b91508551614885818460208a01613e39565b8551920191614898818460208901613e39565b9190910190815260040195945050505050565b600082601f8301126148bc57600080fd5b604051604081016001600160401b0382821081831117156148df576148df613f4f565b604091825282918501868111156148f557600080fd5b855b8181101561492a5780518381111561490f5760008081fd5b61491b89828a016146be565b855250602093840193016148f7565b50929695505050505050565b6000602080838503121561494957600080fd5b82516001600160401b038082111561496057600080fd5b818501915085601f83011261497457600080fd5b61497c613f8e565b806102c084018881111561498f57600080fd5b845b81811015614790578051858111156149a95760008081fd5b6149b58b8289016148ab565b855250928601928601614991565b7f3c67207472616e73666f726d3d22223e3c696d6167652077696474683d22313081527f302522206865696768743d22313030252220687265663d220000000000000000602082015260008351614a21816038850160208801613e39565b835190830190614a38816038840160208801613e39565b631110179f60e11b60389290910191820152603c01949350505050565b60006020808385031215614a6857600080fd5b82516001600160401b0380821115614a7f57600080fd5b818501915085601f830112614a9357600080fd5b614a9b613fb1565b8060a0840188811115614aad57600080fd5b845b8181101561479057805185811115614ac75760008081fd5b614ad38b8289016148ab565b855250928601928601614aaf565b6000614aec826147d2565b8451614afc818360208901613e39565b8451910190614b0f818360208801613e39565b631110179f60e11b9101908152600401949350505050565b60006020808385031215614b3a57600080fd5b82516001600160401b0380821115614b5157600080fd5b818501915085601f830112614b6557600080fd5b614b6d613fd3565b80610320840188811115614b8057600080fd5b845b8181101561479057805185811115614b9a5760008081fd5b614ba68b8289016148ab565b855250928601928601614b82565b60006020808385031215614bc757600080fd5b82516001600160401b0380821115614bde57600080fd5b818501915085601f830112614bf257600080fd5b614bfa613ff6565b80610da0840188811115614c0d57600080fd5b845b8181101561479057805185811115614c275760008081fd5b614c338b8289016148ab565b855250928601928601614c0f565b60006020808385031215614c5457600080fd5b82516001600160401b0380821115614c6b57600080fd5b818501915085601f830112614c7f57600080fd5b614c87614019565b80610300840188811115614c9a57600080fd5b845b8181101561479057805185811115614cb45760008081fd5b614cc08b8289016148ab565b855250928601928601614c9c565b60006020808385031215614ce157600080fd5b82516001600160401b0380821115614cf857600080fd5b818501915085601f830112614d0c57600080fd5b614d1461403c565b80610160840188811115614d2757600080fd5b845b8181101561479057805185811115614d415760008081fd5b614d4d8b8289016148ab565b855250928601928601614d29565b60006020808385031215614d6e57600080fd5b82516001600160401b0380821115614d8557600080fd5b818501915085601f830112614d9957600080fd5b614da161405f565b80610260840188811115614db457600080fd5b845b8181101561479057805185811115614dce5760008081fd5b614dda8b8289016148ab565b855250928601928601614db6565b7f3c7376672076657273696f6e3d22312e31222076696577426f783d223020302081527f38303020383030222077696474683d2238303022206865696768743d2238303060208201527f2220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f60408201526439bb33911f60d91b606082015260008a51614e7a816065850160208f01613e39565b8a5190830190614e91816065840160208f01613e39565b8a51910190614ea7816065840160208e01613e39565b8951910190614ebd816065840160208d01613e39565b8851910190614ed3816065840160208c01613e39565b8751910190614ee9816065840160208b01613e39565b614f23614f0d614f07614f016065858701018b614435565b89614435565b87614435565b691e17b39f1e17b9bb339f60b11b8152600a0190565b9d9c50505050505050505050505050565b600082821015614f4657614f466143e8565b500390565b6000600019821415614f5f57614f5f6143e8565b5060010190565b600082614f7557614f75614603565b500490565b600060ff821660ff84168060ff03821115614f9757614f976143e8565b019392505050565b6e2261747472696275746573223a205b60881b81527f7b2274726169745f74797065223a2252616365222c2276616c7565223a220000600f8201528351600090614ff081602d850160208901613e39565b62089f4b60ea1b602d918401918201527f7b2274726169745f74797065223a2250616e7473222c2276616c7565223a22006030820152845161503981604f840160208901613e39565b61227d60f01b604f9290910191820152835161505c816051840160208801613e39565b0160510195945050505050565b6000845161507b818460208901613e39565b80830190507f7d2c7b2274726169745f74797065223a22446578746572697479222c2276616c8152633ab2911d60e11b602082015284516150c3816024840160208901613e39565b7f7d2c7b2274726169745f74797065223a2243726561746976697479222c2276616024929091019182015264363ab2911d60d91b6044820152835161510f816049840160208801613e39565b607d60f81b60499290910191820152604a0195945050505050565b60008951602061513d8285838f01613e39565b8a51918401916151508184848f01613e39565b8a519201916151628184848e01613e39565b89519201916151748184848d01613e39565b88519201916151868184848c01613e39565b87519201916151988184848b01613e39565b86519201916151aa8184848a01613e39565b85519201916151bc8184848901613e39565b919091019b9a5050505050505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f2c7b2274726169745f74797065223a22576561706f6e222c2276616c7565223a8152601160f91b602082015260008251615263816021850160208701613e39565b61227d60f01b6021939091019283015250602301919050565b7f2c7b2274726169745f74797065223a22536869656c64222c2276616c7565223a8152601160f91b602082015260008251615263816021850160208701613e39565b7f2c7b2274726169745f74797065223a2248656164222c2276616c7565223a22008152600082516152f681601f850160208701613e39565b61227d60f01b601f939091019283015250602101919050565b7f2c7b2274726169745f74797065223a2248616972222c2276616c7565223a22008152600082516152f681601f850160208701613e39565b7f2c7b2274726169745f74797065223a22436c6f74686573222c2276616c7565228152611d1160f11b60208201526000825161538a816022850160208701613e39565b61227d60f01b6022939091019283015250602401919050565b7f2c7b2274726169745f74797065223a2253686f6573222c2276616c7565223a228152600082516153db816020850160208701613e39565b61227d60f01b6020939091019283015250602201919050565b6000875160206154078285838d01613e39565b88519184019161541a8184848d01613e39565b885192019161542c8184848c01613e39565b875192019161543e8184848b01613e39565b86519201916154508184848a01613e39565b85519201916154628184848901613e39565b919091019998505050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906154a690830184613e65565b9695505050505050565b6000602082840312156154c257600080fd5b8151613e3281613dff565b634e487b7160e01b600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f7d2c7b2274726169745f74797065223a22496e74656c6c6967656e6365222c2276616c7565223a7d2c7b2274726169745f74797065223a225374616d696e61222c2276616c7565223a7d2c7b2274726169745f74797065223a22537472656e677468222c2276616c7565223aa264697066735822122044f6144845e8575f6944b9658c39c51cf2487713ee7edaed047005564f59be1a64736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000008c86326090e16c461c971dde1fd75f522f179e3c0000000000000000000000002ffc4ef58a8ba17bcdd1b751f277a369c84b8503000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f6865726f65732e6d7970696e6174612e636c6f75642f697066732f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064865726f65730000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102045760003560e01c80638da5cb5b11610118578063c05702cb116100a0578063e539e01e1161006f578063e539e01e1461069c578063e735b48a146106bc578063e985e9c5146106dc578063f2fde38b14610725578063f423f01c1461074557600080fd5b8063c05702cb14610573578063c87b56dd1461063c578063e0d4ea371461065c578063e3a31ab61461068957600080fd5b8063a0bcfc7f116100e7578063a0bcfc7f146104d3578063a22cb465146104f3578063a7ecd37e14610513578063abfa2d4614610533578063b88d4fde1461055357600080fd5b80638da5cb5b146104785780638e39c75a1461049657806395d89b41146104ab578063a0712d68146104c057600080fd5b806342842e0e1161019b5780636352211e1161016a5780636352211e146103b357806370a08231146103d3578063715018a6146103f357806375e91691146104085780637cd072831461043557600080fd5b806342842e0e146103395780634f6ccce714610359578063500a53711461037957806351cff8d91461039357600080fd5b806318160ddd116101d757806318160ddd146102ba57806323b872dd146102d95780632e4292bc146102f95780632f745c591461031957600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b50610229610224366004613e15565b610765565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b50610253610790565b6040516102359190613e91565b34801561026c57600080fd5b5061028061027b366004613ea4565b610822565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004613ed9565b6108bc565b005b3480156102c657600080fd5b506008545b604051908152602001610235565b3480156102e557600080fd5b506102b86102f4366004613f03565b6109d2565b34801561030557600080fd5b506102b8610314366004614137565b610a03565b34801561032557600080fd5b506102cb610334366004613ed9565b610a4e565b34801561034557600080fd5b506102b8610354366004613f03565b610ae4565b34801561036557600080fd5b506102cb610374366004613ea4565b610aff565b34801561038557600080fd5b506015546102299060ff1681565b34801561039f57600080fd5b506102b86103ae366004614184565b610b92565b3480156103bf57600080fd5b506102806103ce366004613ea4565b610bf4565b3480156103df57600080fd5b506102cb6103ee366004614184565b610c6b565b3480156103ff57600080fd5b506102b8610cf2565b34801561041457600080fd5b506102cb610423366004613ea4565b60116020526000908152604090205481565b34801561044157600080fd5b5061046561045036600461419f565b60009182526011602052604090912054901c90565b60405161ffff9091168152602001610235565b34801561048457600080fd5b50600a546001600160a01b0316610280565b3480156104a257600080fd5b50610253610d28565b3480156104b757600080fd5b50610253610db6565b6102b86104ce366004613ea4565b610dc5565b3480156104df57600080fd5b506102b86104ee3660046141c1565b610f51565b3480156104ff57600080fd5b506102b861050e3660046141f5565b610f92565b34801561051f57600080fd5b506102b861052e366004614184565b610f9d565b34801561053f57600080fd5b5061025361054e366004613ea4565b610fe9565b34801561055f57600080fd5b506102b861056e366004614228565b611043565b34801561057f57600080fd5b5061059361058e366004613ea4565b61107b565b6040516102359190815181526020808301519082015260408083015190820152606080830151908201526080808301519082015260a0808301519082015260c0808301519082015260e08083015190820152610100808301519082015261012080830151908201526101408083015190820152610160808301519082015261018080830151908201526101a080830151908201526101c091820151918101919091526101e00190565b34801561064857600080fd5b50610253610657366004613ea4565b611bd7565b34801561066857600080fd5b506102cb610677366004613ea4565b60009081526011602052604090205490565b6102b8610697366004613ea4565b611caf565b3480156106a857600080fd5b506102536106b7366004613ea4565b611da5565b3480156106c857600080fd5b506102b86106d73660046141c1565b6126c2565b3480156106e857600080fd5b506102296106f73660046142a3565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561073157600080fd5b506102b8610740366004614184565b6126ff565b34801561075157600080fd5b506102b86107603660046142cd565b612797565b60006001600160e01b0319821663780e9d6360e01b148061078a575061078a82612839565b92915050565b60606000805461079f90614311565b80601f01602080910402602001604051908101604052809291908181526020018280546107cb90614311565b80156108185780601f106107ed57610100808354040283529160200191610818565b820191906000526020600020905b8154815290600101906020018083116107fb57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108a05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108c782610bf4565b9050806001600160a01b0316836001600160a01b031614156109355760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610897565b336001600160a01b0382161480610951575061095181336106f7565b6109c35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610897565b6109cd8383612889565b505050565b6109dc33826128f7565b6109f85760405162461bcd60e51b81526004016108979061434c565b6109cd8383836129ee565b600a546001600160a01b03163314610a2d5760405162461bcd60e51b81526004016108979061439d565b6015805460ff191683151517905580516109cd906016906020840190613d09565b6000610a5983610c6b565b8210610abb5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610897565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6109cd83838360405180602001604052806000815250611043565b6000610b0a60085490565b8210610b6d5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610897565b60088281548110610b8057610b806143d2565b90600052602060002001549050919050565b600a546001600160a01b03163314610bbc5760405162461bcd60e51b81526004016108979061439d565b60405147906001600160a01b0383169082156108fc029083906000818181858888f193505050501580156109cd573d6000803e3d6000fd5b6000818152600260205260408120546001600160a01b03168061078a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610897565b60006001600160a01b038216610cd65760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610897565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610d1c5760405162461bcd60e51b81526004016108979061439d565b610d266000612b99565b565b60168054610d3590614311565b80601f0160208091040260200160405190810160405280929190818152602001828054610d6190614311565b8015610dae5780601f10610d8357610100808354040283529160200191610dae565b820191906000526020600020905b815481529060010190602001808311610d9157829003601f168201915b505050505081565b60606001805461079f90614311565b6002600b541415610e185760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610897565b6002600b55600a811115610e675760405162461bcd60e51b8152602060048201526016602482015275043616e206f6e6c79206d696e7420757020746f2031360541b6044820152606401610897565b600d5481600f54610e7891906143fe565b1115610eb45760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610897565b600d54600f5410610ef45760405162461bcd60e51b815260206004820152600a602482015269105b1b081b5a5b9d195960b21b6044820152606401610897565b34600c5482610f039190614416565b14610f405760405162461bcd60e51b815260206004820152600d60248201526c496e76616c69642076616c756560981b6044820152606401610897565b610f4981612beb565b506001600b55565b600a546001600160a01b03163314610f7b5760405162461bcd60e51b81526004016108979061439d565b8051610f8e906010906020840190613d09565b5050565b610f8e338383612c93565b600a546001600160a01b03163314610fc75760405162461bcd60e51b81526004016108979061439d565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6060610ff482612d62565b601461100761100285611da5565b612e8a565b61101085612fef565b61101986613150565b60405160200161102d9594939291906144eb565b6040516020818303038152906040529050919050565b61104d33836128f7565b6110695760405162461bcd60e51b81526004016108979061434c565b611075848484846132dd565b50505050565b6110f4604051806101e001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b60008281526011602090815260408083205481516101e08101835261020081018290526001610220808301919091528351808303909101815261024082018452805190850120815282518085018390526002818501528351808203850181526060918201855280519086012082860152835180860184905260038186015284518082038601815290820185528051908601208285015283518086018490526004818601528451808203860181529082018552805190860120818301528351808601849052600581860152845180820386018152908201855280519086012060808301528351808601849052600681860152845180820386018152908201855280519086012060a083019081528451808701859052600781870152855180820387018152908301865280519087012060c08401528451808701859052600881870152855180820387018152908301865280519087012060e0840152845180870185905260098187015285518082038701815290830186528051908701206101008401528451808701859052600a8187015285518082038701815290830186528051908701206101208401528451808701859052600b8187015285518082038701815290830186528051908701206101408401528451808701859052600c8187015285518082038701815290830186528051908701206101608401528451808701859052600d8187015285518082038701815290830186528051908701206101808401528451808701859052600e8187015285518082038701815290830186528051908701206101a08401528451808701859052600f81870152855180820387018152920190945280519401939093206101c08401529051909290611379906101f4613310565b61138457600061140a565b601260009054906101000a90046001600160a01b03166001600160a01b0316630114ebf76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113fb91906145ea565b8260a0015161140a9190614619565b9050600060018210158015611420575060058211155b905060008061143585600001516101f4613310565b905060006114498660000151610154613310565b9050600061145c876000015160b4613310565b905060006114708860000151610258613310565b9050600061148489600001516102bc613310565b905060006114988a60000151610320613310565b905060006114ac8b60000151610384613310565b905060006114c08c600001516103c0613310565b905060006114d48d600001516103ca613310565b905086156114e557600299506116c5565b87156114f457600199506116c5565b881561150357600099506116c5565b851561151257600399506116c5565b841561152157600499506116c5565b831561153057600599506116c5565b821561153f57600699506116c5565b811561154e57600799506116c5565b801561155d57600899506116c5565b8c5161156b906103cc613310565b1561157957600999506116c5565b8c51611587906103ce613310565b1561159557600a99506116c5565b8c516115a3906103d0613310565b156115b157600b99506116c5565b8c516115bf906103d2613310565b156115cd57600c99506116c5565b8c516115db906103d4613310565b156115e957600d99506116c5565b8c516115f7906103d6613310565b1561160557600e99506116c5565b8c51611613906103d8613310565b1561162157600f99506116c5565b8c5161162f906103da613310565b1561163d57601099506116c5565b8c5161164b906103dc613310565b1561165957601199506116c5565b8c51611667906103de613310565b1561167557601299506116c5565b8c51611683906103e1613310565b1561169157601399506116c5565b8c5161169f906103e5613310565b156116ad57601499506116c5565b8c516116bb906103e8613310565b156116c557601599505b604051806101e001604052808b8152602001601260009054906101000a90046001600160a01b03166001600160a01b0316635758a4e26040518163ffffffff1660e01b8152600401602060405180830381865afa15801561172a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174e91906145ea565b8f6020015161175d9190614619565b81526020016117728f60400151610320613310565b61177d576000611803565b601260009054906101000a90046001600160a01b03166001600160a01b031663da3494df6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f491906145ea565b8f604001516118039190614619565b81526020016118178f606001516064613310565b6118225760006118a8565b601260009054906101000a90046001600160a01b03166001600160a01b0316637d0ad3b26040518163ffffffff1660e01b8152600401602060405180830381865afa158015611875573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189991906145ea565b8f606001516118a89190614619565b81526012546040805163de6c706360e01b815290516020938401936001600160a01b039093169263de6c706392600480820193918290030181865afa1580156118f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191991906145ea565b8f608001516119289190614619565b81526020018d8152602001601260009054906101000a90046001600160a01b03166001600160a01b031663212b03cc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611986573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119aa91906145ea565b8f60c001516119b99190614619565b81526020018c611a69576119d38f604001516103b6613310565b6119de576000611a6c565b601360009054906101000a90046001600160a01b03166001600160a01b0316638b2501d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a5591906145ea565b8f60e00151611a649190614619565b611a6c565b60005b81526012546040805163e7790c5160e01b815290516020938401936001600160a01b039093169263e7790c5192600480820193918290030181865afa158015611ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611add91906145ea565b8f6101000151611aed9190614619565b81526020016103e88f6101200151611b059190614619565b611b109060016143fe565b81526020016103e88f6101400151611b289190614619565b611b339060016143fe565b81526020016103e88f6101600151611b4b9190614619565b611b569060016143fe565b81526020016103e88f6101800151611b6e9190614619565b611b799060016143fe565b81526020016103e88f6101a00151611b919190614619565b611b9c9060016143fe565b81526020016103e88f6101c00151611bb49190614619565b611bbf9060016143fe565b8152509e505050505050505050505050505050919050565b6000818152600260205260409020546060906001600160a01b0316611c385760405162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b6044820152606401610897565b60155460ff1615611c5f576016611c4e83612d62565b60405160200161102d92919061462d565b6127108210611c9357611c70613333565b600083815260196020908152604091829020915161102d93926001019101614652565b611c9f61100283610fe9565b60405160200161102d9190614679565b600a546001600160a01b03163314611cd95760405162461bcd60e51b81526004016108979061439d565b606481601754611ce991906143fe565b1115611d415760405162461bcd60e51b815260206004820152602160248201527f4d65726c696e2063616e206f6e6c792073756d6d6f6e20313030206865726f656044820152607360f81b6064820152608401610897565b600d54600f5410611d815760405162461bcd60e51b815260206004820152600a602482015269105b1b081b5a5b9d195960b21b6044820152606401610897565b8060176000828254611d9391906143fe565b90915550611da2905081612beb565b50565b6000818152600260205260409020546060906001600160a01b0316611e065760405162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b6044820152606401610897565b6000611e118361107b565b9050611e1b613d8d565b601260009054906101000a90046001600160a01b03166001600160a01b03166397459ffc6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611e6e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e969190810190614703565b826101000151601a8110611eac57611eac6143d2565b6020020151611eb9613333565b601260009054906101000a90046001600160a01b03166001600160a01b031663c9aa067f6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611f0c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611f34919081019061479e565b604051602001611f469392919061480c565b60408051808303601f190181529190528152611f60613333565b601260009054906101000a90046001600160a01b03166001600160a01b0316631ce71c386040518163ffffffff1660e01b8152600401600060405180830381865afa158015611fb3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611fdb9190810190614936565b835160168110611fed57611fed6143d2565b60200201516001602002015160405160200161200a9291906149c3565b60408051808303601f19018152919052602082015260c0820151156120f257612031613333565b601260009054906101000a90046001600160a01b03166001600160a01b0316637e15068a6040518163ffffffff1660e01b8152600401600060405180830381865afa158015612084573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120ac9190810190614a55565b8360c00151600581106120c1576120c16143d2565b6020020151600160200201516040516020016120de929190614ae1565b604051602081830303815290604052612103565b604051806020016040528060008152505b6040820152612110613333565b601260009054906101000a90046001600160a01b03166001600160a01b031663bdee78376040518163ffffffff1660e01b8152600401600060405180830381865afa158015612163573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261218b9190810190614a55565b8360200151600581106121a0576121a06143d2565b6020020151600160200201516040516020016121bd929190614ae1565b60408051808303601f1901815291905260608201526080820151156122a5576121e4613333565b601260009054906101000a90046001600160a01b03166001600160a01b031663f82f99e46040518163ffffffff1660e01b8152600401600060405180830381865afa158015612237573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261225f9190810190614b27565b836080015160198110612274576122746143d2565b602002015160016020020151604051602001612291929190614ae1565b6040516020818303038152906040526122b6565b604051806020016040528060008152505b608082015260e08201511561238e576122cd613333565b601360009054906101000a90046001600160a01b03166001600160a01b03166330445d526040518163ffffffff1660e01b8152600401600060405180830381865afa158015612320573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526123489190810190614bb4565b8360e00151606d811061235d5761235d6143d2565b60200201516001602002015160405160200161237a929190614ae1565b60405160208183030381529060405261239f565b604051806020016040528060008152505b816005602002015260a08201511561247a576123b9613333565b601260009054906101000a90046001600160a01b03166001600160a01b031663dc281aff6040518163ffffffff1660e01b8152600401600060405180830381865afa15801561240c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124349190810190614c41565b8360a0015160188110612449576124496143d2565b602002015160016020020151604051602001612466929190614ae1565b60405160208183030381529060405261248b565b604051806020016040528060008152505b60c0820152606082015115612563576124a2613333565b601260009054906101000a90046001600160a01b03166001600160a01b03166308abe9576040518163ffffffff1660e01b8152600401600060405180830381865afa1580156124f5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261251d9190810190614cce565b8360600151600b8110612532576125326143d2565b60200201516001602002015160405160200161254f929190614ae1565b604051602081830303815290604052612574565b604051806020016040528060008152505b60e082015260408201511561264c5761258b613333565b601260009054906101000a90046001600160a01b03166001600160a01b031663f563d3486040518163ffffffff1660e01b8152600401600060405180830381865afa1580156125de573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526126069190810190614d5b565b83604001516013811061261b5761261b6143d2565b602002015160016020020151604051602001612638929190614ae1565b60405160208183030381529060405261265d565b604051806020016040528060008152505b610100820181905281516020808401516040808601516060870151608088015160a089015160c08a015160e08b0151955160009a6126a99a999697959694959394929392909101614de8565b60408051601f1981840301815291905295945050505050565b600a546001600160a01b031633146126ec5760405162461bcd60e51b81526004016108979061439d565b8051610f8e906014906020840190613d09565b600a546001600160a01b031633146127295760405162461bcd60e51b81526004016108979061439d565b6001600160a01b03811661278e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610897565b611da281612b99565b600a546001600160a01b031633146127c15760405162461bcd60e51b81526004016108979061439d565b60408051808201825260018082526020808301868152601854600090815260198352949094208351815460ff19169015151781559351805193949361280d938501929190910190613d09565b5090505061281d81601854613342565b60016018600082825461283091906143fe565b90915550505050565b60006001600160e01b031982166380ac58cd60e01b148061286a57506001600160e01b03198216635b5e139f60e01b145b8061078a57506301ffc9a760e01b6001600160e01b031983161461078a565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906128be82610bf4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166129705760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610897565b600061297b83610bf4565b9050806001600160a01b0316846001600160a01b031614806129b65750836001600160a01b03166129ab84610822565b6001600160a01b0316145b806129e657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612a0182610bf4565b6001600160a01b031614612a695760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610897565b6001600160a01b038216612acb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610897565b612ad683838361335c565b612ae1600082612889565b6001600160a01b0383166000908152600360205260408120805460019290612b0a908490614f34565b90915550506001600160a01b0382166000908152600360205260408120805460019290612b389084906143fe565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b81811015610f8e576000600f60008154612c0790614f4b565b91829055509050612c183382613342565b80612c24600143614f34565b4033604051602001612c5b93929190928352602083019190915260601b6bffffffffffffffffffffffff1916604082015260540190565b60408051601f198184030181529181528151602092830120600093845260119092529091205580612c8b81614f4b565b915050612bee565b816001600160a01b0316836001600160a01b03161415612cf55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610897565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b606081612d865750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612db05780612d9a81614f4b565b9150612da99050600a83614f66565b9150612d8a565b6000816001600160401b03811115612dca57612dca613f4f565b6040519080825280601f01601f191660200182016040528015612df4576020820181803683370190505b509050815b8515612e8157612e0a600182614f34565b90506000612e19600a88614f66565b612e2490600a614416565b612e2e9088614f34565b612e39906030614f7a565b905060008160f81b905080848481518110612e5657612e566143d2565b60200101906001600160f81b031916908160001a905350612e78600a89614f66565b97505050612df9565b50949350505050565b805160609080612eaa575050604080516020810190915260008152919050565b60006003612eb98360026143fe565b612ec39190614f66565b612ece906004614416565b90506000612edd8260206143fe565b6001600160401b03811115612ef457612ef4613f4f565b6040519080825280601f01601f191660200182016040528015612f1e576020820181803683370190505b50905060006040518060600160405280604081526020016154e4604091399050600181016020830160005b86811015612faa576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612f49565b506003860660018114612fc45760028114612fd557612fe1565b613d3d60f01b600119830152612fe1565b603d60f81b6000198301525b505050918152949350505050565b60606000612ffc8361107b565b9050601260009054906101000a90046001600160a01b03166001600160a01b0316631ce71c386040518163ffffffff1660e01b8152600401600060405180830381865afa158015613051573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526130799190810190614936565b81516016811061308b5761308b6143d2565b6020020151516012546040805163bdee783760e01b815290516001600160a01b039092169163bdee7837916004808201926000929091908290030181865afa1580156130db573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131039190810190614a55565b826020015160058110613118576131186143d2565b60200201515161312783613414565b60405160200161313993929190614f9f565b604051602081830303815290604052915050919050565b6060600061315d8361107b565b9050613167613db5565b60408051808201909152601f81527f2c7b2274726169745f74797065223a224d61676963222c2276616c7565223a00602082015281526101208201516131ac90612d62565b816001602002018190525060405180606001604052806023815260200161556d6023913960408201526101408201516131e490612d62565b60608083019190915260408051918201905260278082526155246020830139608082015261016082015161321790612d62565b60a08201526040805160608101909152602280825261554b602083013960c082015261018082015161324890612d62565b613256836101a00151612d62565b613264846101c00151612d62565b60405160200161327693929190615069565b60408051808303601f1901815291815260e083018290528251602080850151858401516060870151608088015160a089015160c08a015197516132c5999798959794969395929491930161512a565b60405160208183030381529060405292505050919050565b6132e88484846129ee565b6132f4848484846138fa565b6110755760405162461bcd60e51b8152600401610897906151cf565b60008161331f6103e885614619565b61332a9060016143fe565b11159392505050565b60606010805461079f90614311565b610f8e8282604051806020016040528060008152506139f8565b6001600160a01b0383166133b7576133b281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6133da565b816001600160a01b0316836001600160a01b0316146133da576133da8382613a2b565b6001600160a01b0382166133f1576109cd81613ac8565b826001600160a01b0316826001600160a01b0316146109cd576109cd8282613b77565b606061341e613dd0565b6040830151156134e357601260009054906101000a90046001600160a01b03166001600160a01b031663f563d3486040518163ffffffff1660e01b8152600401600060405180830381865afa15801561347b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526134a39190810190614d5b565b8360400151601381106134b8576134b86143d2565b60209081029190910151516040516134d09201615221565b60408051808303601f1901815291905281525b6060830151156135ab57601260009054906101000a90046001600160a01b03166001600160a01b03166308abe9576040518163ffffffff1660e01b8152600401600060405180830381865afa158015613540573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526135689190810190614cce565b8360600151600b811061357d5761357d6143d2565b6020908102919091015151604051613595920161527c565b60408051808303601f1901815291905260208201525b60a08301511561367157601260009054906101000a90046001600160a01b03166001600160a01b031663dc281aff6040518163ffffffff1660e01b8152600401600060405180830381865afa158015613608573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526136309190810190614c41565b8360a0015160188110613645576136456143d2565b602090810291909101515160405161365d92016152be565b60408051808303601f190181529181528201525b60e08301511561373957601360009054906101000a90046001600160a01b03166001600160a01b03166330445d526040518163ffffffff1660e01b8152600401600060405180830381865afa1580156136ce573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526136f69190810190614bb4565b8360e00151606d811061370b5761370b6143d2565b6020908102919091015151604051613723920161530f565b60408051808303601f1901815291905260608201525b60808301511561380157601260009054906101000a90046001600160a01b03166001600160a01b031663f82f99e46040518163ffffffff1660e01b8152600401600060405180830381865afa158015613796573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526137be9190810190614b27565b8360800151601981106137d3576137d36143d2565b60209081029190910151516040516137eb9201615347565b60408051808303601f1901815291905260808201525b60c0830151156138c957601260009054906101000a90046001600160a01b03166001600160a01b0316637e15068a6040518163ffffffff1660e01b8152600401600060405180830381865afa15801561385e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526138869190810190614a55565b8360c001516005811061389b5761389b6143d2565b60209081029190910151516040516138b392016153a3565b60408051808303601f1901815291905260a08201525b80516020808301516040808501516060860151608087015160a08801519351613139979693949293919291016153f4565b60006001600160a01b0384163b156139ed57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061393e903390899088908890600401615473565b6020604051808303816000875af1925050508015613979575060408051601f3d908101601f19168201909252613976918101906154b0565b60015b6139d3573d8080156139a7576040519150601f19603f3d011682016040523d82523d6000602084013e6139ac565b606091505b5080516139cb5760405162461bcd60e51b8152600401610897906151cf565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506129e6565b506001949350505050565b613a028383613bbb565b613a0f60008484846138fa565b6109cd5760405162461bcd60e51b8152600401610897906151cf565b60006001613a3884610c6b565b613a429190614f34565b600083815260076020526040902054909150808214613a95576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613ada90600190614f34565b60008381526009602052604081205460088054939450909284908110613b0257613b026143d2565b906000526020600020015490508060088381548110613b2357613b236143d2565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613b5b57613b5b6154cd565b6001900381819060005260206000200160009055905550505050565b6000613b8283610c6b565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216613c115760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610897565b6000818152600260205260409020546001600160a01b031615613c765760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610897565b613c826000838361335c565b6001600160a01b0382166000908152600360205260408120805460019290613cab9084906143fe565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054613d1590614311565b90600052602060002090601f016020900481019282613d375760008555613d7d565b82601f10613d5057805160ff1916838001178555613d7d565b82800160010185558215613d7d579182015b82811115613d7d578251825591602001919060010190613d62565b50613d89929150613dea565b5090565b6040518061012001604052806009905b6060815260200190600190039081613d9d5790505090565b60408051610100810190915260608152600760208201613d9d565b6040805160c0810190915260608152600560208201613d9d565b5b80821115613d895760008155600101613deb565b6001600160e01b031981168114611da257600080fd5b600060208284031215613e2757600080fd5b8135613e3281613dff565b9392505050565b60005b83811015613e54578181015183820152602001613e3c565b838111156110755750506000910152565b60008151808452613e7d816020860160208601613e39565b601f01601f19169290920160200192915050565b602081526000613e326020830184613e65565b600060208284031215613eb657600080fd5b5035919050565b80356001600160a01b0381168114613ed457600080fd5b919050565b60008060408385031215613eec57600080fd5b613ef583613ebd565b946020939093013593505050565b600080600060608486031215613f1857600080fd5b613f2184613ebd565b9250613f2f60208501613ebd565b9150604084013590509250925092565b80358015158114613ed457600080fd5b634e487b7160e01b600052604160045260246000fd5b60405161034081016001600160401b0381118282101715613f8857613f88613f4f565b60405290565b6040516102c081016001600160401b0381118282101715613f8857613f88613f4f565b60405160a081016001600160401b0381118282101715613f8857613f88613f4f565b60405161032081016001600160401b0381118282101715613f8857613f88613f4f565b604051610da081016001600160401b0381118282101715613f8857613f88613f4f565b60405161030081016001600160401b0381118282101715613f8857613f88613f4f565b60405161016081016001600160401b0381118282101715613f8857613f88613f4f565b60405161026081016001600160401b0381118282101715613f8857613f88613f4f565b604051601f8201601f191681016001600160401b03811182821017156140aa576140aa613f4f565b604052919050565b60006001600160401b038211156140cb576140cb613f4f565b50601f01601f191660200190565b60006140ec6140e7846140b2565b614082565b905082815283838301111561410057600080fd5b828260208301376000602084830101529392505050565b600082601f83011261412857600080fd5b613e32838335602085016140d9565b6000806040838503121561414a57600080fd5b61415383613f3f565b915060208301356001600160401b0381111561416e57600080fd5b61417a85828601614117565b9150509250929050565b60006020828403121561419657600080fd5b613e3282613ebd565b600080604083850312156141b257600080fd5b50508035926020909101359150565b6000602082840312156141d357600080fd5b81356001600160401b038111156141e957600080fd5b6129e684828501614117565b6000806040838503121561420857600080fd5b61421183613ebd565b915061421f60208401613f3f565b90509250929050565b6000806000806080858703121561423e57600080fd5b61424785613ebd565b935061425560208601613ebd565b92506040850135915060608501356001600160401b0381111561427757600080fd5b8501601f8101871361428857600080fd5b614297878235602084016140d9565b91505092959194509250565b600080604083850312156142b657600080fd5b6142bf83613ebd565b915061421f60208401613ebd565b600080604083850312156142e057600080fd5b82356001600160401b038111156142f657600080fd5b61430285828601614117565b92505061421f60208401613ebd565b600181811c9082168061432557607f821691505b6020821081141561434657634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115614411576144116143e8565b500190565b6000816000190483118215151615614430576144306143e8565b500290565b60008151614447818560208601613e39565b9290920192915050565b8054600090600181811c908083168061446b57607f831692505b602080841082141561448d57634e487b7160e01b600052602260045260246000fd5b8180156144a157600181146144b2576144df565b60ff198616895284890196506144df565b60008881526020902060005b868110156144d75781548b8201529085019083016144be565b505084890196505b50505050505092915050565b6f7b226e616d65223a20224865726f202360801b81528551600090614517816010850160208b01613e39565b72111610113232b9b1b934b83a34b7b7111d101160691b6010918401918201526145446023820188614451565b905061088b60f21b8082527f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b626173600283015263194d8d0b60e21b60228301528651614595816026850160208b01613e39565b602692019182015284516145b0816028840160208901613e39565b84519101906145c6816028840160208801613e39565b6145dd602882840101615d7d60f01b815260020190565b9998505050505050505050565b6000602082840312156145fc57600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b60008261462857614628614603565b500690565b60006146398285614451565b8351614649818360208801613e39565b01949350505050565b60008351614664818460208801613e39565b61467081840185614451565b95945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516146b181601d850160208701613e39565b91909101601d0192915050565b600082601f8301126146cf57600080fd5b81516146dd6140e7826140b2565b8181528460208386010111156146f257600080fd5b6129e6826020830160208701613e39565b6000602080838503121561471657600080fd5b82516001600160401b038082111561472d57600080fd5b818501915085601f83011261474157600080fd5b614749613f65565b8061034084018881111561475c57600080fd5b845b81811015614790578051858111156147765760008081fd5b6147828b8289016146be565b85525092860192860161475e565b509098975050505050505050565b6000602082840312156147b057600080fd5b81516001600160401b038111156147c657600080fd5b6129e6848285016146be565b7f3c696d6167652077696474683d223130302522206865696768743d22313030258152671110343932b31e9160c11b602082015260280190565b7f3c726563742077696474683d223130302522206865696768743d223130302522815266103334b6361e9160c91b602082015260008451614854816027850160208901613e39565b631110179f60e11b6027918401918201819052614873602b83016147d2565b91508551614885818460208a01613e39565b8551920191614898818460208901613e39565b9190910190815260040195945050505050565b600082601f8301126148bc57600080fd5b604051604081016001600160401b0382821081831117156148df576148df613f4f565b604091825282918501868111156148f557600080fd5b855b8181101561492a5780518381111561490f5760008081fd5b61491b89828a016146be565b855250602093840193016148f7565b50929695505050505050565b6000602080838503121561494957600080fd5b82516001600160401b038082111561496057600080fd5b818501915085601f83011261497457600080fd5b61497c613f8e565b806102c084018881111561498f57600080fd5b845b81811015614790578051858111156149a95760008081fd5b6149b58b8289016148ab565b855250928601928601614991565b7f3c67207472616e73666f726d3d22223e3c696d6167652077696474683d22313081527f302522206865696768743d22313030252220687265663d220000000000000000602082015260008351614a21816038850160208801613e39565b835190830190614a38816038840160208801613e39565b631110179f60e11b60389290910191820152603c01949350505050565b60006020808385031215614a6857600080fd5b82516001600160401b0380821115614a7f57600080fd5b818501915085601f830112614a9357600080fd5b614a9b613fb1565b8060a0840188811115614aad57600080fd5b845b8181101561479057805185811115614ac75760008081fd5b614ad38b8289016148ab565b855250928601928601614aaf565b6000614aec826147d2565b8451614afc818360208901613e39565b8451910190614b0f818360208801613e39565b631110179f60e11b9101908152600401949350505050565b60006020808385031215614b3a57600080fd5b82516001600160401b0380821115614b5157600080fd5b818501915085601f830112614b6557600080fd5b614b6d613fd3565b80610320840188811115614b8057600080fd5b845b8181101561479057805185811115614b9a5760008081fd5b614ba68b8289016148ab565b855250928601928601614b82565b60006020808385031215614bc757600080fd5b82516001600160401b0380821115614bde57600080fd5b818501915085601f830112614bf257600080fd5b614bfa613ff6565b80610da0840188811115614c0d57600080fd5b845b8181101561479057805185811115614c275760008081fd5b614c338b8289016148ab565b855250928601928601614c0f565b60006020808385031215614c5457600080fd5b82516001600160401b0380821115614c6b57600080fd5b818501915085601f830112614c7f57600080fd5b614c87614019565b80610300840188811115614c9a57600080fd5b845b8181101561479057805185811115614cb45760008081fd5b614cc08b8289016148ab565b855250928601928601614c9c565b60006020808385031215614ce157600080fd5b82516001600160401b0380821115614cf857600080fd5b818501915085601f830112614d0c57600080fd5b614d1461403c565b80610160840188811115614d2757600080fd5b845b8181101561479057805185811115614d415760008081fd5b614d4d8b8289016148ab565b855250928601928601614d29565b60006020808385031215614d6e57600080fd5b82516001600160401b0380821115614d8557600080fd5b818501915085601f830112614d9957600080fd5b614da161405f565b80610260840188811115614db457600080fd5b845b8181101561479057805185811115614dce5760008081fd5b614dda8b8289016148ab565b855250928601928601614db6565b7f3c7376672076657273696f6e3d22312e31222076696577426f783d223020302081527f38303020383030222077696474683d2238303022206865696768743d2238303060208201527f2220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f60408201526439bb33911f60d91b606082015260008a51614e7a816065850160208f01613e39565b8a5190830190614e91816065840160208f01613e39565b8a51910190614ea7816065840160208e01613e39565b8951910190614ebd816065840160208d01613e39565b8851910190614ed3816065840160208c01613e39565b8751910190614ee9816065840160208b01613e39565b614f23614f0d614f07614f016065858701018b614435565b89614435565b87614435565b691e17b39f1e17b9bb339f60b11b8152600a0190565b9d9c50505050505050505050505050565b600082821015614f4657614f466143e8565b500390565b6000600019821415614f5f57614f5f6143e8565b5060010190565b600082614f7557614f75614603565b500490565b600060ff821660ff84168060ff03821115614f9757614f976143e8565b019392505050565b6e2261747472696275746573223a205b60881b81527f7b2274726169745f74797065223a2252616365222c2276616c7565223a220000600f8201528351600090614ff081602d850160208901613e39565b62089f4b60ea1b602d918401918201527f7b2274726169745f74797065223a2250616e7473222c2276616c7565223a22006030820152845161503981604f840160208901613e39565b61227d60f01b604f9290910191820152835161505c816051840160208801613e39565b0160510195945050505050565b6000845161507b818460208901613e39565b80830190507f7d2c7b2274726169745f74797065223a22446578746572697479222c2276616c8152633ab2911d60e11b602082015284516150c3816024840160208901613e39565b7f7d2c7b2274726169745f74797065223a2243726561746976697479222c2276616024929091019182015264363ab2911d60d91b6044820152835161510f816049840160208801613e39565b607d60f81b60499290910191820152604a0195945050505050565b60008951602061513d8285838f01613e39565b8a51918401916151508184848f01613e39565b8a519201916151628184848e01613e39565b89519201916151748184848d01613e39565b88519201916151868184848c01613e39565b87519201916151988184848b01613e39565b86519201916151aa8184848a01613e39565b85519201916151bc8184848901613e39565b919091019b9a5050505050505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f2c7b2274726169745f74797065223a22576561706f6e222c2276616c7565223a8152601160f91b602082015260008251615263816021850160208701613e39565b61227d60f01b6021939091019283015250602301919050565b7f2c7b2274726169745f74797065223a22536869656c64222c2276616c7565223a8152601160f91b602082015260008251615263816021850160208701613e39565b7f2c7b2274726169745f74797065223a2248656164222c2276616c7565223a22008152600082516152f681601f850160208701613e39565b61227d60f01b601f939091019283015250602101919050565b7f2c7b2274726169745f74797065223a2248616972222c2276616c7565223a22008152600082516152f681601f850160208701613e39565b7f2c7b2274726169745f74797065223a22436c6f74686573222c2276616c7565228152611d1160f11b60208201526000825161538a816022850160208701613e39565b61227d60f01b6022939091019283015250602401919050565b7f2c7b2274726169745f74797065223a2253686f6573222c2276616c7565223a228152600082516153db816020850160208701613e39565b61227d60f01b6020939091019283015250602201919050565b6000875160206154078285838d01613e39565b88519184019161541a8184848d01613e39565b885192019161542c8184848c01613e39565b875192019161543e8184848b01613e39565b86519201916154508184848a01613e39565b85519201916154628184848901613e39565b919091019998505050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906154a690830184613e65565b9695505050505050565b6000602082840312156154c257600080fd5b8151613e3281613dff565b634e487b7160e01b600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f7d2c7b2274726169745f74797065223a22496e74656c6c6967656e6365222c2276616c7565223a7d2c7b2274726169745f74797065223a225374616d696e61222c2276616c7565223a7d2c7b2274726169745f74797065223a22537472656e677468222c2276616c7565223aa264697066735822122044f6144845e8575f6944b9658c39c51cf2487713ee7edaed047005564f59be1a64736f6c634300080b0033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000008c86326090e16c461c971dde1fd75f522f179e3c0000000000000000000000002ffc4ef58a8ba17bcdd1b751f277a369c84b8503000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f6865726f65732e6d7970696e6174612e636c6f75642f697066732f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064865726f65730000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseUri (string): https://heroes.mypinata.cloud/ipfs/
Arg [1] : name (string): Heroes
Arg [2] : traits (address): 0x8C86326090E16C461C971ddE1Fd75F522F179e3c
Arg [3] : traits2 (address): 0x2fFc4ef58A8BA17BcDd1B751F277a369C84B8503

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000008c86326090e16c461c971dde1fd75f522f179e3c
Arg [3] : 0000000000000000000000002ffc4ef58a8ba17bcdd1b751f277a369c84b8503
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [5] : 68747470733a2f2f6865726f65732e6d7970696e6174612e636c6f75642f6970
Arg [6] : 66732f0000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [8] : 4865726f65730000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.