Contract 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f07

 
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0x66172e50dcee02538cd3405fc0b7dc333c5429eea5c68733c52575547962fa92Trade Slot Piece362243382022-11-29 19:11:4467 days 21 hrs ago0x70385629f8845fad1c8cd83ed43868004e8e63ed IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070.1 MATIC0.006343489709 86.225036495
0x13c7592920a5155a83ccf33d8ce6dc1e35c9ea8b5678c78d1536bea18724369fSet Slot Prices362242562022-11-29 19:08:5667 days 21 hrs ago0x70385629f8845fad1c8cd83ed43868004e8e63ed IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070 MATIC0.019187916046 86.225036495
0x0a8d19eb8cabd4dbfe7503c94a0e48b48b6680096a9007927e16cdc7a3ff22beMint362242012022-11-29 19:07:0267 days 21 hrs ago0x70385629f8845fad1c8cd83ed43868004e8e63ed IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070.001 MATIC0.072548969681 86.225036495
0xcb619d73db85abdc69e25bc4c85e6e80e12bda979bc8fea2c0189d94d05cbbd1Trade Slot Piece359867232022-11-24 0:12:0173 days 16 hrs ago0x70385629f8845fad1c8cd83ed43868004e8e63ed IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070.1 MATIC0.006515077532 86.225036495
0x96a088f6c194b4bcd9320a97ac6db7ba8596b6c1ba273e420d7701154a1aacfaSet Slot Prices359866942022-11-24 0:11:0373 days 16 hrs ago0x70385629f8845fad1c8cd83ed43868004e8e63ed IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070 MATIC0.010603006512 86.225036495
0x40a97fd024e9bcbdd0148bcffe8ce1468a67457aa65f851c292d72bde3aca1c2Mint359866612022-11-24 0:09:5373 days 16 hrs ago0x70385629f8845fad1c8cd83ed43868004e8e63ed IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070.001 MATIC0.072805058039 86.225036495
0x2d07a1bbbf97de216c62fb3ae11f77dd932ef26f4f665253732a49c753a9f5d2Get Random Numbe...359801822022-11-23 20:26:2973 days 20 hrs ago0xfd388d16c9f7ee01977a94c7deec67583829b835 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070 MATIC0.003592470011 30.000000097
0xb64ae33ece1908566a0f135fa87af3a67f2e54e006a1d64b820d76a7e9d806d7Trade Slot Piece359794702022-11-23 20:01:5473 days 20 hrs ago0xfd388d16c9f7ee01977a94c7deec67583829b835 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070.1 MATIC0.006299514941 86.225036495
0x26fce028bc410dba24250cb644c4f1d6b2115d1c516b8dc6fe123edca73e9b26Trade Slot Piece359794642022-11-23 20:01:4273 days 20 hrs ago0x70385629f8845fad1c8cd83ed43868004e8e63ed IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070.1 MATIC0.006343489709 86.225036495
0xf12383555504f7e5317a8d8c7a84df3f78ec159157a3255b1fb68df7f2cef405Set Slot Prices359793952022-11-23 19:59:2073 days 20 hrs ago0x70385629f8845fad1c8cd83ed43868004e8e63ed IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070 MATIC0.007824577161 86.225036495
0x37e4d46f494916b6201877fb281a953d4c35d9940168266bb149eda3a6539343Set Slot Prices359793902022-11-23 19:59:0673 days 20 hrs ago0xfd388d16c9f7ee01977a94c7deec67583829b835 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070 MATIC0.005097969057 86.225036495
0x1efeb52099baab01fa9e98bed915f63379fe00a10e74c5a79a921e7ecdaf9712Trade Slot Piece359751182022-11-23 17:32:1173 days 22 hrs ago0xfd388d16c9f7ee01977a94c7deec67583829b835 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070.1 MATIC0.006299514941 86.225036495
0x9abd11fcf6d7545a8d09296e0d1dcffbaf7c276f30ea3a48619dd9c1fbeaf0dcMint359748862022-11-23 17:24:1173 days 23 hrs ago0x70385629f8845fad1c8cd83ed43868004e8e63ed IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070.001 MATIC0.077277464457 86.225036495
0x4263f30445c5d3a264ff23cbd8fdb560b7c513a50619205354028de3ad89bc17Set Slot Prices359746542022-11-23 17:16:1173 days 23 hrs ago0xfd388d16c9f7ee01977a94c7deec67583829b835 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070 MATIC0.00509201953 86.225036495
0x30ae4eeb736611c269cdc6e3053410f5c44b171476df731a37cca8035d110111Mint359745632022-11-23 17:13:0573 days 23 hrs ago0xfd388d16c9f7ee01977a94c7deec67583829b835 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070.001 MATIC0.072553194708 86.225036495
0xb9f500d5f9585242b5465dfffab1a45f74500bf624bbb7929ddc36b505552424Set Mint Cost359745402022-11-23 17:12:1973 days 23 hrs ago0xfd388d16c9f7ee01977a94c7deec67583829b835 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070 MATIC0.001079957098 37.548052934
0xbbf9ff16e1582f6d4d8a4368eb3e71b46788614ebfaff42610c3057158d834d6Trade Slot Piece359731582022-11-23 16:24:3874 days 4 mins ago0xbb03bd82891931d2a91e4cb9ca354ef3f5bbf907 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f071 MATIC0.006515077532 86.225036495
0x4f07e24879da45e4b84696487ff4925b8cc3e671100458f2f93ffcf3fa9976d3Set Slot Prices359731242022-11-23 16:23:3074 days 5 mins ago0xbb03bd82891931d2a91e4cb9ca354ef3f5bbf907 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070 MATIC0.00509201953 86.225036495
0x1e1922e5d2ded939c44e8078a3f2cbc9cc78eec95b00e7c0bbab110ee38736ddMint359730372022-11-23 16:20:2874 days 8 mins ago0xbb03bd82891931d2a91e4cb9ca354ef3f5bbf907 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f071 MATIC0.07701094287 86.225036495
0xe38fc661681adbca32208598abeb66963a8ca126f772914e1211bf4d141611dfMint359723092022-11-23 15:55:2874 days 33 mins ago0xbb03bd82891931d2a91e4cb9ca354ef3f5bbf907 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f071 MATIC0.052428771992 66.225036495
0x699ce3d1516035d1d2a27a3e0de5f120e55d4c043f11e236b067b64aa4d95780Set Mint Cost359722482022-11-23 15:53:2274 days 35 mins ago0xfd388d16c9f7ee01977a94c7deec67583829b835 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070 MATIC0.002962065231 102.985370666
0x356b5a37730c6009dce09a270ce5cd390621d74b005d439898358f0e423d3a43Set Mint Cost359721462022-11-23 15:47:4274 days 41 mins ago0xfd388d16c9f7ee01977a94c7deec67583829b835 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070 MATIC0.001706754841 59.464665922
0x264b6f3bc1cea2c29347c61f2911ad2d88627f43371dd065ba473526e33db9aaSet Mint Cost359720642022-11-23 15:44:5474 days 44 mins ago0xfd388d16c9f7ee01977a94c7deec67583829b835 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070 MATIC0.001746955399 60.73831443
0x9268dd9ad7c3efc18b9d403a432d91fd44610a2c5730e3aa82ca1c273607d9f8Set Approval For...278511622022-05-02 22:32:36278 days 17 hrs ago0x79df44bee25fb0914b34d0f2177171ace7990bb0 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070 MATIC0.001511812677 32.741644151
0x4f3f0eed78546524e84c95d5cf537da8fdeeed49181096123794a9bf139b1d46Withdraw272231552022-04-16 23:20:43294 days 17 hrs ago0xfd388d16c9f7ee01977a94c7deec67583829b835 IN  0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070 MATIC0.000932252561 30.365543858
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x66172e50dcee02538cd3405fc0b7dc333c5429eea5c68733c52575547962fa92362243382022-11-29 19:11:4467 days 21 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070x7d7aca5de060c461c189931450368dd4480ed5c80.095 MATIC
0x66172e50dcee02538cd3405fc0b7dc333c5429eea5c68733c52575547962fa92362243382022-11-29 19:11:4467 days 21 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xfd388d16c9f7ee01977a94c7deec67583829b8350.005 MATIC
0xcb619d73db85abdc69e25bc4c85e6e80e12bda979bc8fea2c0189d94d05cbbd1359867232022-11-24 0:12:0173 days 16 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070x7d7aca5de060c461c189931450368dd4480ed5c80.095 MATIC
0xcb619d73db85abdc69e25bc4c85e6e80e12bda979bc8fea2c0189d94d05cbbd1359867232022-11-24 0:12:0173 days 16 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xfd388d16c9f7ee01977a94c7deec67583829b8350.005 MATIC
0xb64ae33ece1908566a0f135fa87af3a67f2e54e006a1d64b820d76a7e9d806d7359794702022-11-23 20:01:5473 days 20 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xac5fbfd0d5663f2e7f426b1936bdaef7853c2de80.095 MATIC
0xb64ae33ece1908566a0f135fa87af3a67f2e54e006a1d64b820d76a7e9d806d7359794702022-11-23 20:01:5473 days 20 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xfd388d16c9f7ee01977a94c7deec67583829b8350.005 MATIC
0x26fce028bc410dba24250cb644c4f1d6b2115d1c516b8dc6fe123edca73e9b26359794642022-11-23 20:01:4273 days 20 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xac5fbfd0d5663f2e7f426b1936bdaef7853c2de80.095 MATIC
0x26fce028bc410dba24250cb644c4f1d6b2115d1c516b8dc6fe123edca73e9b26359794642022-11-23 20:01:4273 days 20 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xfd388d16c9f7ee01977a94c7deec67583829b8350.005 MATIC
0x1efeb52099baab01fa9e98bed915f63379fe00a10e74c5a79a921e7ecdaf9712359751182022-11-23 17:32:1173 days 22 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xac5fbfd0d5663f2e7f426b1936bdaef7853c2de80.095 MATIC
0x1efeb52099baab01fa9e98bed915f63379fe00a10e74c5a79a921e7ecdaf9712359751182022-11-23 17:32:1173 days 22 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xfd388d16c9f7ee01977a94c7deec67583829b8350.005 MATIC
0xbbf9ff16e1582f6d4d8a4368eb3e71b46788614ebfaff42610c3057158d834d6359731582022-11-23 16:24:3874 days 4 mins ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xac5fbfd0d5663f2e7f426b1936bdaef7853c2de80.95 MATIC
0xbbf9ff16e1582f6d4d8a4368eb3e71b46788614ebfaff42610c3057158d834d6359731582022-11-23 16:24:3874 days 4 mins ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xfd388d16c9f7ee01977a94c7deec67583829b8350.05 MATIC
0x4f3f0eed78546524e84c95d5cf537da8fdeeed49181096123794a9bf139b1d46272231552022-04-16 23:20:43294 days 17 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xfd388d16c9f7ee01977a94c7deec67583829b83520 MATIC
0xe47825e6efe7b3b5eff85e8f02f34aa5ad898dee5d48523f0b3f725cf83e359b270776472022-04-13 6:27:00298 days 10 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xfd388d16c9f7ee01977a94c7deec67583829b83510 MATIC
0x474d8d628f1653282acdcad364d7a194ab874c48f0992a18da4c81b5cced61bb270438632022-04-12 10:06:35299 days 6 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xbb03bd82891931d2a91e4cb9ca354ef3f5bbf9072.85 MATIC
0x474d8d628f1653282acdcad364d7a194ab874c48f0992a18da4c81b5cced61bb270438632022-04-12 10:06:35299 days 6 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xfd388d16c9f7ee01977a94c7deec67583829b8350.15 MATIC
0xd2ba53b778c2fe3b6e99d0b0a9159efeafb3ec75b7885b915ad518c6bf28a727248760172022-02-13 2:28:01357 days 14 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xfd388d16c9f7ee01977a94c7deec67583829b8352.2 MATIC
0x33fe41b46dd7ea3fd076463214d4be1ec13b5c96614f4b4e838a26b9c325eebe234919442022-01-08 20:14:54392 days 20 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xfd388d16c9f7ee01977a94c7deec67583829b83534.8 MATIC
0xf4070e2a853cb73a0879f8fe7b16b05774b36de9a5eeed22af9ccc26ee78f98f229226162021-12-24 22:43:25407 days 17 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xac5fbfd0d5663f2e7f426b1936bdaef7853c2de80.285 MATIC
0xf4070e2a853cb73a0879f8fe7b16b05774b36de9a5eeed22af9ccc26ee78f98f229226162021-12-24 22:43:25407 days 17 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xfd388d16c9f7ee01977a94c7deec67583829b8350.015 MATIC
0x711930f6a6f2418ebdec2628c4601a4b30f30e147595a97a74fd83b8608452c3224881562021-12-13 21:14:15418 days 19 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xac5fbfd0d5663f2e7f426b1936bdaef7853c2de80.285 MATIC
0x711930f6a6f2418ebdec2628c4601a4b30f30e147595a97a74fd83b8608452c3224881562021-12-13 21:14:15418 days 19 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xfd388d16c9f7ee01977a94c7deec67583829b8350.015 MATIC
0x724e680ae2385d9c172cc3775e2db6dc5ffabd0d966c448721ee9d5646abf47e224572102021-12-13 1:08:03419 days 15 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070x7d7aca5de060c461c189931450368dd4480ed5c83.8 MATIC
0x724e680ae2385d9c172cc3775e2db6dc5ffabd0d966c448721ee9d5646abf47e224572102021-12-13 1:08:03419 days 15 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xfd388d16c9f7ee01977a94c7deec67583829b8350.2 MATIC
0x25416f3a0cad0b1e795c0f7138ef75eaf814471fb2293c94d662f1fab21d0ce7224570092021-12-13 1:01:09419 days 15 hrs ago 0xd6ee1050e7919ac46c75295baf64db4d4a2c9f070xac5fbfd0d5663f2e7f426b1936bdaef7853c2de80.095 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GearSlots

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
constantinople EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 17 : GearSlots.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.0;

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

interface IERC20 {
    function transfer(address _to, uint256 _amount) external returns (bool);
}

contract GearSlots is ERC721Enumerable, Ownable, VRFConsumerBase {
    using Strings for uint256;

    bool public _paused = false;
    bytes32 internal keyHash;
    uint256 internal fee;
    uint256 public _limitPerAddress = 10;
    uint256 public cost = 1.0 ether;
    uint256 private maxMintAmount = 10;
    uint256 private maxSupply = 50000;
    uint256 private minSlotPrice = 0.00001 ether;
    uint256 private _currentRandom;

    mapping(uint256 => mapping(uint256 => SlotItem)) public _bags;
    mapping(uint256 => uint256) public _setPricesPerSlot;
    mapping(uint256 => uint256) public _bagRandomValuesMapping;

    struct SlotItem {
        string itemText;
        uint256 price;
    }

    struct SlotPriceDetail {
        uint256 tokenId;
        uint256 slotId;
        uint256 price;
        string slotItem;
    }

    event slotPriceSet(
        address from,
        uint256 tokenId,
        uint256 slotId,
        uint256 amount
    );
    event slotTraded(
        address from,
        uint256 sourceTokenId,
        uint256 targetTokenId,
        uint256 slotId,
        uint256 amount
    );

    // https://docs.chain.link/docs/vrf-contracts/
    constructor(
        string memory _name, 
        string memory _symbol)
        ERC721(_name, _symbol)
        VRFConsumerBase(
            0x3d2341ADb2D31f1c5530cDC622016af293177AE0, // VRF Coordinator
            0xb0897686c545045aFc77CF20eC7A532E3120E0F1 // LINK token
        )
    {
        keyHash = 0xf86195cf7690c55907b2b611ebb7343a6f649bff128701cc542f0569e2c549da;
        fee = 0.0001 * 10 ** 18; // 0.0001 LINK (Varies by network)
    }

    /** 
     * Requests randomness 
     */
    function getRandomNumber() public onlyOwner returns (bytes32 requestId) {
        require(LINK.balanceOf(address(this)) >= fee);
        return requestRandomness(keyHash, fee);
    }

    /**
     * Callback function used by VRF Coordinator
     */
    function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
        _currentRandom = randomness;
    }

    function getSlotPrices(uint256 slotId)
        public
        view
        returns (SlotPriceDetail[] memory slotPriceDetail)
    {
        uint256 supply = totalSupply();
        SlotPriceDetail[] memory slotPriceDetails = new SlotPriceDetail[](
            _setPricesPerSlot[slotId]
        );

        uint256 j = 0;
        for (uint256 i = 1; i <= supply; i++) {
            if (_bags[i][slotId].price > 0) {
                slotPriceDetails[j] = SlotPriceDetail(
                    i,
                    slotId,
                    _bags[i][slotId].price,
                    _bags[i][slotId].itemText
                );
                j++;
            }
        }

        return (slotPriceDetails);
    }

    function setSlotMapping(uint256 tokenId) private {
        _bags[tokenId][0] = SlotItem(pluck(tokenId, "WEAPON", weapons), 0);

        _bags[tokenId][1] = SlotItem(pluck(tokenId, "CHEST", chestArmor), 0);

        _bags[tokenId][2] = SlotItem(pluck(tokenId, "HEAD", headArmor), 0);

        _bags[tokenId][3] = SlotItem(pluck(tokenId, "WAIST", waistArmor), 0);

        _bags[tokenId][4] = SlotItem(pluck(tokenId, "FOOT", footArmor), 0);

        _bags[tokenId][5] = SlotItem(pluck(tokenId, "HAND", handArmor), 0);

        _bags[tokenId][6] = SlotItem(pluck(tokenId, "NECK", necklaces), 0);

        _bags[tokenId][7] = SlotItem(pluck(tokenId, "RING", rings), 0);

        _bags[tokenId][8] = SlotItem(pluck(tokenId, "SHIELD", shields), 0);

    }

    function mint(address _to, uint256 _mintAmount) public payable {
        uint256 supply = totalSupply();
        uint256 addressBalance = balanceOf(_to);
        require(_mintAmount > 0, "Mint quantity too low.");
        require(_mintAmount <= maxMintAmount, "Mint quantity too high.");
        require(msg.value >= cost * _mintAmount, "Insufficient funds.");
        require(supply + _mintAmount <= maxSupply, "Mint request exceeds supply.");
        require(addressBalance + _mintAmount <= _limitPerAddress, "Mint request exceeds address limit.");
        require(_paused == false, "Minting currently disabled.");

        uint256 tokenId = supply + 1;
        for (uint256 i = 0; i < _mintAmount; i++) {
            require(tokenId <= maxSupply);

            _safeMint(_to, tokenId);

            _bagRandomValuesMapping[tokenId] = uint256(keccak256(abi.encode(_currentRandom, tokenId, block.timestamp)));
            setSlotMapping(tokenId);

            tokenId = tokenId + 1;
        }

        _currentRandom = uint256(keccak256(abi.encode(_currentRandom, block.timestamp)));
    }

    function getMintCost() public view returns (uint256) {
        return cost;
    }

    function setSlotPrices(
        uint256 tokenId,
        uint256[] memory slotIds,
        uint256[] memory prices
    ) public {
        require(_exists(tokenId));
        require(ownerOf(tokenId) == msg.sender);
        require(slotIds.length == prices.length);
        require(getMax(slotIds) < 9);
        require(!containsDuplicates(slotIds));
        require(getMin(prices) > minSlotPrice);

        for (uint256 i = 0; i < slotIds.length; i++) {
            _bags[tokenId][slotIds[i]].price = prices[i];
            _setPricesPerSlot[slotIds[i]] = _setPricesPerSlot[slotIds[i]] + 1;
            emit slotPriceSet(msg.sender, tokenId, slotIds[i], prices[i]);
        }
    }

    function tradeSlotPiece(
        uint256 sourceTokenId,
        uint256 targetTokenId,
        uint256 slotId
    ) public payable {
        require(_exists(sourceTokenId));
        require(_exists(targetTokenId));
        require(ownerOf(targetTokenId) == msg.sender);
        require(_bags[sourceTokenId][slotId].price > 0);
        require(msg.value >= _bags[sourceTokenId][slotId].price);

        (bool sendOne, bytes memory dataOne) = owner().call{
            value: msg.value / 20
        }("");
        require(sendOne);

        (bool sendTwo, bytes memory dataTwo) = ownerOf(sourceTokenId).call{
            value: (msg.value / 20) * 19
        }("");
        require(sendTwo);

        string memory swap = _bags[sourceTokenId][slotId].itemText;
        _bags[sourceTokenId][slotId].itemText = _bags[targetTokenId][slotId]
            .itemText;
        _bags[targetTokenId][slotId].itemText = swap;

        if (_bags[targetTokenId][slotId].price > 0) {
            _setPricesPerSlot[slotId] = _setPricesPerSlot[slotId] - 2;
        } else {
            _setPricesPerSlot[slotId] = _setPricesPerSlot[slotId] - 1;
        }

        _bags[targetTokenId][slotId].price = 0;
        _bags[sourceTokenId][slotId].price = 0;

        emit slotTraded(
            msg.sender,
            sourceTokenId,
            targetTokenId,
            slotId,
            msg.value
        );
    }

    function getMinSlotPrice() public view returns (uint256) {
        return minSlotPrice;
    }

    function walletOfOwner(address _owner)
        public
        view
        returns (uint256[] memory)
    {
        uint256 ownerTokenCount = balanceOf(_owner);
        uint256[] memory tokenIds = new uint256[](ownerTokenCount);
        for (uint256 i; i < ownerTokenCount; i++) {
            tokenIds[i] = tokenOfOwnerByIndex(_owner, i);
        }
        return tokenIds;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(_exists(tokenId));
        string[22] memory parts;
        parts[
            0
        ] = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"><style>.base { fill: white; font-family: serif; font-size: 14px; }</style><rect width="100%" height="100%" fill="black" /><text x="10" y="20" class="base">';

        parts[1] = getWeapon(tokenId);

        parts[2] = '</text><text x="10" y="40" class="base">';

        parts[3] = getShield(tokenId);

        parts[4] = '</text><text x="10" y="60" class="base">';

        parts[5] = getChest(tokenId);

        parts[6] = '</text><text x="10" y="80" class="base">';

        parts[7] = getHead(tokenId);

        parts[8] = '</text><text x="10" y="100" class="base">';

        parts[9] = getWaist(tokenId);

        parts[10] = '</text><text x="10" y="120" class="base">';

        parts[11] = getFoot(tokenId);

        parts[12] = '</text><text x="10" y="140" class="base">';

        parts[13] = getHand(tokenId);

        parts[14] = '</text><text x="10" y="160" class="base">';

        parts[15] = getNeck(tokenId);

        parts[16] = '</text><text x="10" y="180" class="base">';

        parts[17] = getRing(tokenId);

        parts[
            18
        ] = '</text><svg x="272" y="235" width="20mm" height="40mm" viewBox="0 0 82 82" xmlns="http://www.w3.org/2000/svg">';

        parts[
            19
        ] = '<path d="m41 1c-2.7392 0-5.4152 0.28719-8 0.8125v6.1875c-3.4748 0.83887-6.7198 2.1846-9.6875 4l-4.375-4.375c-2.2426 1.4861-4.2923 3.2298-6.1875 5.125-1.8953 1.8952-3.6389 3.9449-5.125 6.1875l4.375 4.375c-1.8154 2.9677-3.1611 6.2126-4 9.6875h-6.1875c-0.5253 2.5848-0.8125 5.2608-0.8125 8s0.2872 5.4152 0.8125 8h6.1875c0.83887 3.4748 2.1846 6.7198 4 9.6875l-4.375 4.375c1.4861 2.2426 3.2297 4.2923 5.125 6.1875 1.8952 1.8952 3.9449 3.6389 6.1875 5.125l4.375-4.375c2.9677 1.8154 6.2126 3.1611 9.6875 4v6.1875c2.5848 0.5253 5.2608 0.8125 8 0.8125 2.7391 0 5.4151-0.2872 8-0.8125v-6.1875c3.4748-0.83888 6.7198-2.1846 9.6875-4l4.375 4.375c2.2426-1.4861 4.2922-3.2298 6.1875-5.125 1.8952-1.8952 3.6389-3.9449 5.125-6.1875l-4.375-4.375c1.8154-2.9677 3.1611-6.2126 4-9.6875h6.1875c0.5253-2.5848 0.8125-5.2608 0.8125-8s-0.2872-5.4152-0.8125-8h-6.1875c-0.8389-3.4748-2.1846-6.7198-4-9.6875l4.375-4.375c-1.4861-2.2426-3.2298-4.2923-5.125-6.1875-1.8953-1.8952-3.9449-3.6389-6.1875-5.125l-4.375 4.375c-2.9677-1.8154-6.2127-3.1611-9.6875-4v-6.1875c-2.5849-0.52531-5.2609-0.8125-8-0.8125zm0 20c11.04 0 20 8.96 20 20s-8.96 20-20 20-20-8.96-20-20 8.96-20 20-20z" fill="white" stroke="white" stroke-dashoffset="162" stroke-linecap="round" stroke-linejoin="round" stroke-width="1">';

        parts[
            20
        ] = '<animateTransform attributeType="xml" attributeName="transform" type="rotate" from="360 41 41" to="0 41 41" dur="10s" additive="sum" repeatCount="indefinite" />';

        parts[21] = "</path></svg></svg>";

        string memory output = string(
            abi.encodePacked(
                parts[0],
                parts[1],
                parts[2],
                parts[3],
                parts[4],
                parts[5],
                parts[6],
                parts[7],
                parts[8]
            )
        );
        output = string(
            abi.encodePacked(
                output,
                parts[9],
                parts[10],
                parts[11],
                parts[12],
                parts[13],
                parts[14],
                parts[15],
                parts[16]
            )
        );
        output = string(abi.encodePacked(output, parts[17], parts[18]));
        output = string(abi.encodePacked(output, parts[19]));
        output = string(abi.encodePacked(output, parts[20], parts[21]));

        string memory json = string(
            abi.encodePacked(
                '{"name": "Bag #',
                toString(tokenId),
                '", "description": "Gear Slots is a collection of randomized RPG bags, full of gear, stored on-chain. Each piece of gear can be traded individually, without trading the entire bag of gear.", "image": "data:image/svg+xml;base64,',
                Base64.encode(bytes(output)),
                '",'
            )
        );
        json = string(
            abi.encodePacked(
                json,
                '"attributes": [{"trait_type": "Weapon", "value": "',
                getWeapon(tokenId),
                '"}, {"trait_type": "Chest", "value": "',
                getChest(tokenId),
                '"}, {"trait_type": "Head", "value": "',
                getHead(tokenId),
                '"}, {"trait_type": "Waist", "value": "',
                getWaist(tokenId),
                '"}, {"trait_type": "Foot", "value": "',
                getFoot(tokenId),
                '"}, {"trait_type": "Hand",'
            )
        );
        json = Base64.encode(
            bytes(
                string(
                    abi.encodePacked(
                        json,
                        '"value": "',
                        getHand(tokenId),
                        '"}, {"trait_type": "Neck", "value": "',
                        getNeck(tokenId),
                        '"}, {"trait_type": "Ring", "value": "',
                        getRing(tokenId),
                        '"}, {"trait_type": "Shield", "value": "',
                        getShield(tokenId),
                        '"}]}'
                    )
                )
            )
        );
        output = string(
            abi.encodePacked("data:application/json;base64,", json)
        );

        return output;
    }

    function setMinSlotPrice(uint256 newMinSlotPrice) public onlyOwner {
        minSlotPrice = newMinSlotPrice;
    }

    function withdraw(uint256 amount) public onlyOwner {
        payable(owner()).transfer(amount);
    }

    function withdrawToken(address _tokenContract, uint256 _amount) public onlyOwner {
        IERC20 tokenContract = IERC20(_tokenContract);
        tokenContract.transfer(msg.sender, _amount);
    }    

    function togglePaused() public onlyOwner {
        _paused = !_paused;
    }

    function setLimitPerAddress(uint256 limitPerAddress) public onlyOwner {
        _limitPerAddress = limitPerAddress;
    }

    function setMintCost(uint256 newMintCost) public onlyOwner {
        cost = newMintCost;
    }

    string[] private weapons = [
        "Holy Avenger",
        "Master Sword",
        "Crystal Sword",
        "War Scepter",
        "War Sword",
        "War Hammer",
        "Battle Axe",
        "Heavy Mace",
        "Long Sword",
        "Double Axe",
        "Double Flail",
        "Heavy Scepter",
        "Heavy Club",
        "Short Sword",
        "Axe",
        "Flail",
        "Mace",
        "Scepter",
        "Club"
    ];

    string[] private shields = [
        "Blessed Shield",
        "Enchanted Shield",
        "Templar Shield",
        "Ornate Shield",
        "Mirror Shield",
        "War Shield",
        "Crystal Shield",
        "Spiked Shield",
        "Gothic Shield",
        "Tower Shield",
        "Heavy Shield",
        "Thick Shield",
        "Kite Shield",
        "Round Shield",
        "Small Shield",
        "Buckler"
    ];

    string[] private chestArmor = [
        "Templar Armor",
        "Ornate Armor",
        "Gothic Armor",
        "Plate Armor",
        "Bone Armor",
        "Chain Armor",
        "Scale Armor",
        "Ring Armor",
        "Demon Armor",
        "Shark Armor",
        "Studded Armor",
        "Leather Armor",
        "Blue Tunic",
        "Red Tunic",
        "Tunic"
    ];

    string[] private headArmor = [
        "Templar Helm",
        "Ornate Circlet",
        "Gothic Crown",
        "Plate Helm",
        "Bone Helm",
        "Chain Coif",
        "Scale Coif",
        "Ring Coif",
        "Demon Hood",
        "Shark Hat",
        "Studded Hood",
        "Blue Hood",
        "Red Hood",
        "Hood",
        "Cap"
    ];

    string[] private waistArmor = [
        "Templar Belt",
        "Ornate Belt",
        "Gothic Belt",
        "Plate Belt",
        "Bone Belt",
        "Chain Belt",
        "Scale Belt",
        "Ring Belt",
        "Demon Belt",
        "Shark Belt",
        "Studded Belt",
        "Leather Belt",
        "Quilted Belt",
        "Heavy Belt",
        "Belt"
    ];

    string[] private footArmor = [
        "Templar Boots",
        "Ornate Greaves",
        "Gothic Boots",
        "Plate Greaves",
        "Bone Greaves",
        "Chain Boots",
        "Scale Boots",
        "Ring Boots",
        "Demon Boots",
        "Shark Boots",
        "Studded Boots",
        "Blue Boots",
        "Red Boots",
        "Boots",
        "Slippers"
    ];

    string[] private handArmor = [
        "Templar Gauntlets",
        "Ornate Gauntlets",
        "Gothic Gauntlets",
        "Plate Gauntlets",
        "Bone Gauntlets",
        "Chain Gloves",
        "Scale Gloves",
        "Ring Gloves",
        "Demon Gloves",
        "Shark Gloves",
        "Studded Gloves",
        "Blue Gloves",
        "Red Gloves",
        "Leather Gloves",
        "Gloves"
    ];

    string[] private necklaces = ["Amulet", "Pendant", "Beads"];

    string[] private rings = [
        "Diamond Ring",
        "Gold Ring",
        "Silver Ring",
        "Copper Ring",
        "Ring"
    ];

    string[] private suffixes = [
        "of Victory",
        "of Valor",
        "of War",
        "of Wrath",
        "of Battle",
        "of Honor",
        "of Victory",
        "of Command",
        "of Man",
        "of Might",
        "of Power",
        "of Greed",
        "of Skill",
        "of Force",
        "of Pride",
        "of Plague"
    ];

    string[] private namePrefixes = [
        "Death's",
        "Heaven's",
        "Hell's",
        "Keeper's",
        "Believer's",
        "Zealot's",
        "Brigadier's",
        "Heroes",
        "Emperor's",
        "King's",
        "Juggernaut's",
        "Guardian's",
        "Titan's",
        "Giant's",
        "Templar's",
        "Slayer's",
        "Commander's",
        "Grandmaster's",
        "Blademaster's",
        "Vanquisher's",
        "Vindicator's",
        "Knight's",
        "Squire's",
        "Master's",
        "Captain's",
        "Berserker's",
        "Valkyrie's",
        "Crusader's",
        "Paladin's",
        "Swordsman's",
        "Protector's",
        "Victor's",
        "Subjugator's",
        "Conqueror's",
        "Cavalier's",
        "Devotee's",
        "Bishop's",
        "Cavalryman's",
        "Horseman's",
        "Commando's",
        "Warrior's",
        "Noble's",
        "Enthusiast's",
        "Soldier's",
        "Lord's",
        "Nobleman's",
        "Challenger's",
        "Champion's",
        "Balrog's",
        "Dragon's",
        "Wyrm's",
        "Drake's",
        "Griffon's",
        "Officer's",
        "Lieutenant's",
        "Sergeant's",
        "Corporal's",
        "Marshal's",
        "Warden's",
        "Recruit's",
        "Keeper's",
        "Veteran's",
        "Militant's",
        "Partisan's",
        "Hierophant's",
        "Ideologue's",
        "Priest's",
        "Monk's",
        "Fanatic's",
        "Expert's",
        "Hunter's"
    ];

    string[] private nameSuffixes = [
        "Wrath",
        "Faith",
        "Anger",
        "Might",
        "Pride",
        "Lust",
        "Truth",
        "Sin",
        "Revenge",
        "Grudge",
        "Fury",
        "Glory",
        "Temper",
        "Justice",
        "Envy",
        "Prayer",
        "Virtue",
        "Desire",
        "Skill",
        "Ready"
    ];

    function getWeapon(uint256 tokenId) private view returns (string memory) {
        return _bags[tokenId][0].itemText;
    }

    function getShield(uint256 tokenId) private view returns (string memory) {
        return _bags[tokenId][8].itemText;
    }

    function getChest(uint256 tokenId) private view returns (string memory) {
        return _bags[tokenId][1].itemText;
    }

    function getHead(uint256 tokenId) private view returns (string memory) {
        return _bags[tokenId][2].itemText;
    }

    function getWaist(uint256 tokenId) private view returns (string memory) {
        return _bags[tokenId][3].itemText;
    }

    function getFoot(uint256 tokenId) private view returns (string memory) {
        return _bags[tokenId][4].itemText;
    }

    function getHand(uint256 tokenId) private view returns (string memory) {
        return _bags[tokenId][5].itemText;
    }

    function getNeck(uint256 tokenId) private view returns (string memory) {
        return _bags[tokenId][6].itemText;
    }

    function getRing(uint256 tokenId) private view returns (string memory) {
        return _bags[tokenId][7].itemText;
    }

    function toString(uint256 value) private pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT license
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

    function pluck(
        uint256 tokenId,
        string memory keyPrefix,
        string[] memory sourceArray
    ) private view returns (string memory) {

        uint256 rand = uint256(keccak256(abi.encode(_bagRandomValuesMapping[tokenId], keyPrefix, tokenId)));

        string memory output = sourceArray[rand % sourceArray.length];

        uint256 greatness = rand % 100;
        if (greatness > 66) {
            output = string(
                abi.encodePacked(output, " ", suffixes[rand % suffixes.length])
            );
        }
        if (greatness >= 85) {
            string[2] memory name;
            name[0] = namePrefixes[rand % namePrefixes.length];
            name[1] = nameSuffixes[rand % nameSuffixes.length];
            if (greatness >= 95) {
                output = string(
                    abi.encodePacked(
                        unicode"●",
                        " ",
                        name[0],
                        " ",
                        name[1],
                        " ",
                        unicode"●",
                        " ",
                        output,
                        " +1"
                    )
                );
            } else {
                output = string(
                    abi.encodePacked(
                        unicode"●",
                        " ",
                        name[0],
                        " ",
                        name[1],
                        " ",
                        unicode"●",
                        " ",
                        output
                    )
                );
            }
        }
        return output;
    }

    function getMax(uint256[] memory values) private pure returns (uint256) {
        require(values.length > 0);
        uint256 largest = 0;
        for (uint256 i = 0; i < values.length; i++) {
            if (values[i] > largest) {
                largest = values[i];
            }
        }
        return largest;
    }

    function getMin(uint256[] memory values) private pure returns (uint256) {
        require(values.length > 0);
        uint256 smallest = 999999 ether;
        for (uint256 i = 0; i < values.length; i++) {
            if (values[i] < smallest) {
                smallest = values[i];
            }
        }
        return smallest;
    }

    function containsDuplicates(uint256[] memory values)
        private
        pure
        returns (bool)
    {
        for (uint256 i = 0; i < values.length; i++) {
            for (uint256 j = 0; j < values.length; j++) {
                if (i != j) {
                    if (values[i] == values[j]) {
                        return true;
                    }
                }
            }
        }
        return false;
    }
}

/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
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 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 4 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 5 of 17 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 17 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 7 of 17 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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 10 of 17 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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

pragma solidity ^0.8.0;

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

File 12 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

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

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 14 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

interface LinkTokenInterface {

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

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

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

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

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

  function increaseApproval(
    address spender,
    uint256 subtractedValue
  ) external;

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

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

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

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

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

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

}

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

contract VRFRequestIDBase {

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

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

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

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

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

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

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

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

  LinkTokenInterface immutable internal LINK;
  address immutable private vrfCoordinator;

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"slotId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"slotPriceSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"sourceTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"targetTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"slotId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"slotTraded","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_bagRandomValuesMapping","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"_bags","outputs":[{"internalType":"string","name":"itemText","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_limitPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_setPricesPerSlot","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinSlotPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRandomNumber","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"slotId","type":"uint256"}],"name":"getSlotPrices","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"slotId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"string","name":"slotItem","type":"string"}],"internalType":"struct GearSlots.SlotPriceDetail[]","name":"slotPriceDetail","type":"tuple[]"}],"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":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"uint256","name":"limitPerAddress","type":"uint256"}],"name":"setLimitPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinSlotPrice","type":"uint256"}],"name":"setMinSlotPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintCost","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256[]","name":"slotIds","type":"uint256[]"},{"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"name":"setSlotPrices","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":[],"name":"togglePaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"sourceTokenId","type":"uint256"},{"internalType":"uint256","name":"targetTokenId","type":"uint256"},{"internalType":"uint256","name":"slotId","type":"uint256"}],"name":"tradeSlotPiece","outputs":[],"stateMutability":"payable","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":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600c805460ff19168155600a600f819055670de0b6b3a7640000601055601181905561c3506012556509184e72a00060139081556103208381527f486f6c79204176656e67657200000000000000000000000000000000000000006103405260c09081526103608481527f4d61737465722053776f726400000000000000000000000000000000000000006103805260e052600d6103a08181527f4372797374616c2053776f7264000000000000000000000000000000000000006103c05261010052600b6103e08181527f5761722053636570746572000000000000000000000000000000000000000000610400526101205260096104209081527f5761722053776f7264000000000000000000000000000000000000000000000061044052610140526104608581527f5761722048616d6d65720000000000000000000000000000000000000000000061048052610160526104a08581527f426174746c6520417865000000000000000000000000000000000000000000006104c052610180526104e08581527f4865617679204d61636500000000000000000000000000000000000000000000610500526101a0526105208581527f4c6f6e672053776f726400000000000000000000000000000000000000000000610540526101c0526105608581527f446f75626c652041786500000000000000000000000000000000000000000000610580526101e0526105a09586527f446f75626c6520466c61696c00000000000000000000000000000000000000006105c052610200959095526105e09081527f486561767920536365707465720000000000000000000000000000000000000061060052610220526106209283527f486561767920436c75620000000000000000000000000000000000000000000061064052610240929092526106609283527f53686f72742053776f7264000000000000000000000000000000000000000000610680526102609290925260036106a09081527f41786500000000000000000000000000000000000000000000000000000000006106c0526102805260056106e09081527f466c61696c000000000000000000000000000000000000000000000000000000610700526102a05260046107208181527f4d61636500000000000000000000000000000000000000000000000000000000610740526102c05260076107609081527f5363657074657200000000000000000000000000000000000000000000000000610780526102e0526107e06040526107a09081527f436c7562000000000000000000000000000000000000000000000000000000006107c05261030052620003dc9160189190620031dd565b506040805161024081018252600e61020082018181527f426c657373656420536869656c6400000000000000000000000000000000000061022084015282528251808401845260108082527f456e6368616e74656420536869656c640000000000000000000000000000000060208381019190915280850192909252845180860186528381527f54656d706c617220536869656c64000000000000000000000000000000000000818401528486015284518086018652600d8082527f4f726e61746520536869656c6400000000000000000000000000000000000000828501526060860191909152855180870187528181527f4d6972726f7220536869656c640000000000000000000000000000000000000081850152608086015285518087018752600a81527f57617220536869656c64000000000000000000000000000000000000000000008185015260a0860152855180870187529384527f4372797374616c20536869656c640000000000000000000000000000000000008484015260c0850193909352845180860186528381527f5370696b656420536869656c64000000000000000000000000000000000000008184015260e0850152845180860186529283527f476f7468696320536869656c64000000000000000000000000000000000000008383015261010084019290925283518085018552600c8082527f546f77657220536869656c64000000000000000000000000000000000000000082840152610120850191909152845180860186528181527f486561767920536869656c64000000000000000000000000000000000000000081840152610140850152845180860186528181527f546869636b20536869656c6400000000000000000000000000000000000000008184015261016085015284518086018652600b81527f4b69746520536869656c6400000000000000000000000000000000000000000081840152610180850152845180860186528181527f526f756e6420536869656c640000000000000000000000000000000000000000818401526101a0850152845180860186529081527f536d616c6c20536869656c640000000000000000000000000000000000000000818301526101c08401528351808501909452600784527f4275636b6c657200000000000000000000000000000000000000000000000000908401526101e08201929092526200075d916019919062003241565b506040805161022081018252600d6101e082018181527f54656d706c61722041726d6f7200000000000000000000000000000000000000610200840152825282518084018452600c8082527f4f726e6174652041726d6f72000000000000000000000000000000000000000060208381019190915280850192909252845180860186529081527f476f746869632041726d6f720000000000000000000000000000000000000000818301528385015283518085018552600b8082527f506c6174652041726d6f7200000000000000000000000000000000000000000082840152606085019190915284518086018652600a8082527f426f6e652041726d6f7200000000000000000000000000000000000000000000828501526080860191909152855180870187528281527f436861696e2041726d6f720000000000000000000000000000000000000000008185015260a0860152855180870187528281527f5363616c652041726d6f720000000000000000000000000000000000000000008185015260c0860152855180870187528181527f52696e672041726d6f72000000000000000000000000000000000000000000008185015260e0860152855180870187528281527f44656d6f6e2041726d6f7200000000000000000000000000000000000000000081850152610100860152855180870187529182527f536861726b2041726d6f7200000000000000000000000000000000000000000082840152610120850191909152845180860186528381527f537475646465642041726d6f720000000000000000000000000000000000000081840152610140850152845180860186529283527f4c6561746865722041726d6f720000000000000000000000000000000000000083830152610160840192909252835180850185529182527f426c75652054756e6963000000000000000000000000000000000000000000008282015261018083019190915282518084018452600981527f5265642054756e69630000000000000000000000000000000000000000000000818301526101a08301528251808401909352600583527f54756e6963000000000000000000000000000000000000000000000000000000908301526101c081019190915262000aac90601a90600f62003293565b506040805161022081018252600c6101e082018181527f54656d706c61722048656c6d0000000000000000000000000000000000000000610200840152825282518084018452600e81527f4f726e61746520436972636c657400000000000000000000000000000000000060208281019190915280840191909152835180850185528281527f476f746869632043726f776e0000000000000000000000000000000000000000818301528385015283518085018552600a8082527f506c6174652048656c6d000000000000000000000000000000000000000000008284015260608501919091528451808601865260098082527f426f6e652048656c6d0000000000000000000000000000000000000000000000828501526080860191909152855180870187528281527f436861696e20436f6966000000000000000000000000000000000000000000008185015260a0860152855180870187528281527f5363616c6520436f6966000000000000000000000000000000000000000000008185015260c0860152855180870187528181527f52696e6720436f696600000000000000000000000000000000000000000000008185015260e0860152855180870187529182527f44656d6f6e20486f6f640000000000000000000000000000000000000000000082840152610100850191909152845180860186528181527f536861726b20486174000000000000000000000000000000000000000000000081840152610120850152845180860186529283527f5374756464656420486f6f64000000000000000000000000000000000000000083830152610140840192909252835180850185529182527f426c756520486f6f6400000000000000000000000000000000000000000000008282015261016083019190915282518084018452600881527f52656420486f6f640000000000000000000000000000000000000000000000008183015261018083015282518084018452600481527f486f6f6400000000000000000000000000000000000000000000000000000000818301526101a08301528251808401909352600383527f4361700000000000000000000000000000000000000000000000000000000000908301526101c081019190915262000dfb90601b90600f62003293565b506040805161022081018252600c6101e082018181527f54656d706c61722042656c740000000000000000000000000000000000000000610200840152825282518084018452600b8082527f4f726e6174652042656c7400000000000000000000000000000000000000000060208381019190915280850192909252845180860186529081527f476f746869632042656c74000000000000000000000000000000000000000000818301528385015283518085018552600a8082527f506c6174652042656c74000000000000000000000000000000000000000000008284015260608501919091528451808601865260098082527f426f6e652042656c740000000000000000000000000000000000000000000000828501526080860191909152855180870187528281527f436861696e2042656c74000000000000000000000000000000000000000000008185015260a0860152855180870187528281527f5363616c652042656c74000000000000000000000000000000000000000000008185015260c0860152855180870187529081527f52696e672042656c7400000000000000000000000000000000000000000000008184015260e0850152845180860186528181527f44656d6f6e2042656c740000000000000000000000000000000000000000000081840152610100850152845180860186528181527f536861726b2042656c740000000000000000000000000000000000000000000081840152610120850152845180860186528381527f537475646465642042656c74000000000000000000000000000000000000000081840152610140850152845180860186528381527f4c6561746865722042656c74000000000000000000000000000000000000000081840152610160850152845180860186529283527f5175696c7465642042656c74000000000000000000000000000000000000000083830152610180840192909252835180850185529182527f48656176792042656c7400000000000000000000000000000000000000000000828201526101a08301919091528251808401909352600483527f42656c7400000000000000000000000000000000000000000000000000000000908301526101c08101919091526200114690601c90600f62003293565b506040805161022081018252600d6101e082018181527f54656d706c617220426f6f747300000000000000000000000000000000000000610200840152825282518084018452600e81527f4f726e61746520477265617665730000000000000000000000000000000000006020828101919091528084019190915283518085018552600c8082527f476f7468696320426f6f747300000000000000000000000000000000000000008284015284860191909152845180860186528381527f506c617465204772656176657300000000000000000000000000000000000000818401526060850152845180860186529081527f426f6e652047726561766573000000000000000000000000000000000000000081830152608084015283518085018552600b8082527f436861696e20426f6f74730000000000000000000000000000000000000000008284015260a0850191909152845180860186528181527f5363616c6520426f6f74730000000000000000000000000000000000000000008184015260c085015284518086018652600a8082527f52696e6720426f6f7473000000000000000000000000000000000000000000008285015260e0860191909152855180870187528281527f44656d6f6e20426f6f747300000000000000000000000000000000000000000081850152610100860152855180870187529182527f536861726b20426f6f747300000000000000000000000000000000000000000082840152610120850191909152845180860186529283527f5374756464656420426f6f74730000000000000000000000000000000000000083830152610140840192909252835180850185529182527f426c756520426f6f7473000000000000000000000000000000000000000000008282015261016083019190915282518084018452600981527f52656420426f6f747300000000000000000000000000000000000000000000008183015261018083015282518084018452600581527f426f6f7473000000000000000000000000000000000000000000000000000000818301526101a08301528251808401909352600883527f536c697070657273000000000000000000000000000000000000000000000000908301526101c08101919091526200149a90601d90600f62003293565b50604080516102208101825260116101e082019081527f54656d706c6172204761756e746c65747300000000000000000000000000000061020083015281528151808301835260108082527f4f726e617465204761756e746c6574730000000000000000000000000000000060208381019190915280840192909252835180850185529081527f476f74686963204761756e746c65747300000000000000000000000000000000818301528284015282518084018452600f8082527f506c617465204761756e746c657473000000000000000000000000000000000082840152606084019190915283518085018552600e8082527f426f6e65204761756e746c65747300000000000000000000000000000000000082850152608085019190915284518086018652600c8082527f436861696e20476c6f76657300000000000000000000000000000000000000008286015260a0860191909152855180870187528181527f5363616c6520476c6f76657300000000000000000000000000000000000000008186015260c086015285518087018752600b8082527f52696e6720476c6f7665730000000000000000000000000000000000000000008287015260e0870191909152865180880188528281527f44656d6f6e20476c6f766573000000000000000000000000000000000000000081870152610100870152865180880188529182527f536861726b20476c6f766573000000000000000000000000000000000000000082860152610120860191909152855180870187528281527f5374756464656420476c6f76657300000000000000000000000000000000000081860152610140860152855180870187529081527f426c756520476c6f7665730000000000000000000000000000000000000000008185015261016085015284518086018652600a81527f52656420476c6f7665730000000000000000000000000000000000000000000081850152610180850152845180860186529081527f4c65617468657220476c6f766573000000000000000000000000000000000000818401526101a08401528351808501909452600684527f476c6f7665730000000000000000000000000000000000000000000000000000918401919091526101c0820192909252620017ef91601e919062003293565b5060405180606001604052806040518060400160405280600681526020017f416d756c6574000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f50656e64616e740000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f4265616473000000000000000000000000000000000000000000000000000000815250815250601f906003620018bc929190620032e5565b506040805160e081018252600c60a082019081527f4469616d6f6e642052696e67000000000000000000000000000000000000000060c0830152815281518083018352600981527f476f6c642052696e6700000000000000000000000000000000000000000000006020828101919091528083019190915282518084018452600b8082527f53696c7665722052696e670000000000000000000000000000000000000000008284015283850191909152835180850185529081527f436f707065722052696e670000000000000000000000000000000000000000008183015260608301528251808401909352600483527f52696e6700000000000000000000000000000000000000000000000000000000838201526080820192909252620019e79190600562003337565b506040805161024081018252600a61020082018181527f6f6620566963746f72790000000000000000000000000000000000000000000061022084018190529083528351808501855260088082527f6f662056616c6f72000000000000000000000000000000000000000000000000602083810191909152808601929092528551808701875260068082527f6f662057617200000000000000000000000000000000000000000000000000008285015286880191909152865180880188528281527f6f662057726174680000000000000000000000000000000000000000000000008185015260608701528651808801885260098082527f6f6620426174746c650000000000000000000000000000000000000000000000828601526080880191909152875180890189528381527f6f6620486f6e6f720000000000000000000000000000000000000000000000008186015260a0880152875180890189528681528085019590955260c0870194909452865180880188529485527f6f6620436f6d6d616e64000000000000000000000000000000000000000000008584015260e0860194909452855180870187529384527f6f66204d616e000000000000000000000000000000000000000000000000000084830152610100850193909352845180860186528381527f6f66204d6967687400000000000000000000000000000000000000000000000081830152610120850152845180860186528381527f6f6620506f77657200000000000000000000000000000000000000000000000081830152610140850152845180860186528381527f6f6620477265656400000000000000000000000000000000000000000000000081830152610160850152845180860186528381527f6f6620536b696c6c00000000000000000000000000000000000000000000000081830152610180850152845180860186528381527f6f6620466f726365000000000000000000000000000000000000000000000000818301526101a0850152845180860186529283527f6f66205072696465000000000000000000000000000000000000000000000000838201526101c0840192909252835180850190945283527f6f6620506c616775650000000000000000000000000000000000000000000000908301526101e081019190915262001d5090602190601062003241565b50604080516109208101825260076108e082018181527f446561746827730000000000000000000000000000000000000000000000000061090084015282528251808401845260088082527f48656176656e2773000000000000000000000000000000000000000000000000602083810191909152808501929092528451808601865260068082527f48656c6c277300000000000000000000000000000000000000000000000000008285015285870191909152855180870187528281527f4b65657065722773000000000000000000000000000000000000000000000000818501819052606087019190915286518088018852600a8082527f42656c6965766572277300000000000000000000000000000000000000000000828701526080880191909152875180890189528481527f5a65616c6f7427730000000000000000000000000000000000000000000000008187015260a088015287518089018952600b8082527f42726967616469657227730000000000000000000000000000000000000000008288015260c08901919091528851808a018a528481527f4865726f657300000000000000000000000000000000000000000000000000008188015260e08901528851808a018a5260098082527f456d7065726f7227730000000000000000000000000000000000000000000000828901526101008a01919091528951808b018b528581527f4b696e6727730000000000000000000000000000000000000000000000000000818901526101208a01528951808b018b52600c8082527f4a75676765726e61757427730000000000000000000000000000000000000000828a01526101408b01919091528a51808c018c528481527f477561726469616e277300000000000000000000000000000000000000000000818a01526101608b01528a51808c018c528981527f546974616e277300000000000000000000000000000000000000000000000000818a01526101808b01528a51808c018c528981527f4769616e74277300000000000000000000000000000000000000000000000000818a01526101a08b01528a51808c018c528281527f54656d706c617227730000000000000000000000000000000000000000000000818a01526101c08b01528a51808c018c528781527f536c617965722773000000000000000000000000000000000000000000000000818a01526101e08b01528a51808c018c528381527f436f6d6d616e6465722773000000000000000000000000000000000000000000818a01526102008b01528a51808c018c52600d8082527f4772616e646d6173746572277300000000000000000000000000000000000000828b01526102208c01919091528b51808d018d529081527f426c6164656d6173746572277300000000000000000000000000000000000000818a01526102408b01528a51808c018c528181527f56616e7175697368657227730000000000000000000000000000000000000000818a01526102608b01528a51808c018c528181527f56696e64696361746f7227730000000000000000000000000000000000000000818a01526102808b01528a51808c018c528781527f4b6e696768742773000000000000000000000000000000000000000000000000818a01526102a08b01528a51808c018c528781527f5371756972652773000000000000000000000000000000000000000000000000818a01526102c08b01528a51808c018c528781527f4d61737465722773000000000000000000000000000000000000000000000000818a01526102e08b01528a51808c018c528281527f4361707461696e27730000000000000000000000000000000000000000000000818a01526103008b01528a51808c018c528381527f4265727365726b65722773000000000000000000000000000000000000000000818a01526103208b01528a51808c018c528481527f56616c6b79726965277300000000000000000000000000000000000000000000818a01526103408b01528a51808c018c528481527f4372757361646572277300000000000000000000000000000000000000000000818a01526103608b01528a51808c018c528281527f50616c6164696e27730000000000000000000000000000000000000000000000818a01526103808b01528a51808c018c528381527f53776f7264736d616e2773000000000000000000000000000000000000000000818a01526103a08b01528a51808c018c528381527f50726f746563746f722773000000000000000000000000000000000000000000818a01526103c08b01528a51808c018c528781527f566963746f722773000000000000000000000000000000000000000000000000818a01526103e08b01528a51808c018c528181527f5375626a756761746f7227730000000000000000000000000000000000000000818a01526104008b01528a51808c018c528381527f436f6e717565726f722773000000000000000000000000000000000000000000818a01526104208b01528a51808c018c528481527f436176616c696572277300000000000000000000000000000000000000000000818a01526104408b01528a51808c018c528281527f4465766f74656527730000000000000000000000000000000000000000000000818a01526104608b01528a51808c018c528781527f426973686f702773000000000000000000000000000000000000000000000000818a01526104808b01528a51808c018c528181527f436176616c72796d616e27730000000000000000000000000000000000000000818a01526104a08b01528a51808c018c528481527f486f7273656d616e277300000000000000000000000000000000000000000000818a01526104c08b01528a51808c018c528481527f436f6d6d616e646f277300000000000000000000000000000000000000000000818a01526104e08b01528a51808c018c528281527f57617272696f7227730000000000000000000000000000000000000000000000818a01526105008b01528a51808c018c528981527f4e6f626c65277300000000000000000000000000000000000000000000000000818a01526105208b01528a51808c018c528181527f456e746875736961737427730000000000000000000000000000000000000000818a01526105408b01528a51808c018c528281527f536f6c6469657227730000000000000000000000000000000000000000000000818a01526105608b01528a51808c018c528681527f4c6f726427730000000000000000000000000000000000000000000000000000818a01526105808b01528a51808c018c528481527f4e6f626c656d616e277300000000000000000000000000000000000000000000818a01526105a08b01528a51808c018c528181527f4368616c6c656e67657227730000000000000000000000000000000000000000818a01526105c08b01528a51808c018c528481527f4368616d70696f6e277300000000000000000000000000000000000000000000818a01526105e08b01528a51808c018c528781527f42616c726f672773000000000000000000000000000000000000000000000000818a01526106008b01528a51808c018c528781527f447261676f6e2773000000000000000000000000000000000000000000000000818a01526106208b01528a51808c018c528681527f5779726d27730000000000000000000000000000000000000000000000000000818a01526106408b01528a51808c018c529889527f4472616b65277300000000000000000000000000000000000000000000000000898901526106608a01989098528951808b018b528181527f47726966666f6e27730000000000000000000000000000000000000000000000818901526106808a01528951808b018b528181527f4f66666963657227730000000000000000000000000000000000000000000000818901526106a08a01528951808b018b528881527f4c69657574656e616e7427730000000000000000000000000000000000000000818901526106c08a01528951808b018b528381527f5365726765616e74277300000000000000000000000000000000000000000000818901526106e08a01528951808b018b528381527f436f72706f72616c277300000000000000000000000000000000000000000000818901526107008a01528951808b018b528181527f4d61727368616c27730000000000000000000000000000000000000000000000818901526107208a01528951808b018b528681527f57617264656e2773000000000000000000000000000000000000000000000000818901526107408a01528951808b018b528181527f5265637275697427730000000000000000000000000000000000000000000000818901526107608a01528951808b018b52868152808801949094526107808901939093528851808a018a528381527f5665746572616e27730000000000000000000000000000000000000000000000818801526107a08901528851808a018a528281527f4d696c6974616e74277300000000000000000000000000000000000000000000818801526107c08901528851808a018a529182527f506172746973616e277300000000000000000000000000000000000000000000828701526107e0880191909152875180890189529586527f486965726f7068616e742773000000000000000000000000000000000000000086860152610800870195909552865180880188529485527f4964656f6c6f677565277300000000000000000000000000000000000000000085850152610820860194909452855180870187528281527f507269657374277300000000000000000000000000000000000000000000000081850152610840860152855180870187529081527f4d6f6e6b2773000000000000000000000000000000000000000000000000000081840152610860850152845180860186529283527f46616e617469632773000000000000000000000000000000000000000000000083830152610880840192909252835180850185528281527f4578706572742773000000000000000000000000000000000000000000000000818301526108a084015283518085019094529083527f48756e7465722773000000000000000000000000000000000000000000000000908301526108c081019190915262002c3990602290604762003389565b50604080516102c081018252600561028082018181527f57726174680000000000000000000000000000000000000000000000000000006102a08401528252825180840184528181527f466169746800000000000000000000000000000000000000000000000000000060208281019190915280840191909152835180850185528281527f416e6765720000000000000000000000000000000000000000000000000000008183015283850152835180850185528281527f4d69676874000000000000000000000000000000000000000000000000000000818301526060840152835180850185528281527f50726964650000000000000000000000000000000000000000000000000000008183015260808401528351808501855260048082527f4c757374000000000000000000000000000000000000000000000000000000008284015260a0850191909152845180860186528381527f54727574680000000000000000000000000000000000000000000000000000008184015260c085015284518086018652600381527f53696e00000000000000000000000000000000000000000000000000000000008184015260e08501528451808601865260078082527f526576656e676500000000000000000000000000000000000000000000000000828501526101008601919091528551808701875260068082527f477275646765000000000000000000000000000000000000000000000000000082860152610120870191909152865180880188528381527f467572790000000000000000000000000000000000000000000000000000000081860152610140870152865180880188528581527f476c6f727900000000000000000000000000000000000000000000000000000081860152610160870152865180880188528181527f54656d706572000000000000000000000000000000000000000000000000000081860152610180870152865180880188529182527f4a75737469636500000000000000000000000000000000000000000000000000828501526101a0860191909152855180870187529182527f456e767900000000000000000000000000000000000000000000000000000000828401526101c0850191909152845180860186528181527f5072617965720000000000000000000000000000000000000000000000000000818401526101e0850152845180860186528181527f566972747565000000000000000000000000000000000000000000000000000081840152610200850152845180860186529081527f446573697265000000000000000000000000000000000000000000000000000081830152610220840152835180850185528281527f536b696c6c0000000000000000000000000000000000000000000000000000008183015261024084015283518085019094529083527f52656164790000000000000000000000000000000000000000000000000000009083015261026081019190915262003090906023906014620033db565b503480156200309e57600080fd5b506040516200904038038062009040833981016040819052620030c191620035e9565b733d2341adb2d31f1c5530cdc622016af293177ae073b0897686c545045afc77cf20ec7a532e3120e0f183838160009080519060200190620031059291906200342d565b5080516200311b9060019060208401906200342d565b50505062003138620031326200318760201b60201c565b6200318b565b6001600160601b0319606092831b811660a052911b1660805250507ff86195cf7690c55907b2b611ebb7343a6f649bff128701cc542f0569e2c549da600d55655af3107a4000600e55620036d8565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280548282559060005260206000209081019282156200322f579160200282015b828111156200322f57825180516200321e9184916020909101906200342d565b5091602001919060010190620031fe565b506200323d929150620034b8565b5090565b8280548282559060005260206000209081019282156200322f579160200282015b828111156200322f5782518051620032829184916020909101906200342d565b509160200191906001019062003262565b8280548282559060005260206000209081019282156200322f579160200282015b828111156200322f5782518051620032d49184916020909101906200342d565b5091602001919060010190620032b4565b8280548282559060005260206000209081019282156200322f579160200282015b828111156200322f5782518051620033269184916020909101906200342d565b509160200191906001019062003306565b8280548282559060005260206000209081019282156200322f579160200282015b828111156200322f5782518051620033789184916020909101906200342d565b509160200191906001019062003358565b8280548282559060005260206000209081019282156200322f579160200282015b828111156200322f5782518051620033ca9184916020909101906200342d565b5091602001919060010190620033aa565b8280548282559060005260206000209081019282156200322f579160200282015b828111156200322f57825180516200341c9184916020909101906200342d565b5091602001919060010190620033fc565b8280546200343b9062003653565b90600052602060002090601f0160209004810192826200345f5760008555620034aa565b82601f106200347a57805160ff1916838001178555620034aa565b82800160010185558215620034aa579182015b82811115620034aa5782518255916020019190600101906200348d565b506200323d929150620034d9565b808211156200323d576000620034cf8282620034f0565b50600101620034b8565b5b808211156200323d5760008155600101620034da565b508054620034fe9062003653565b6000825580601f106200350f575050565b601f0160209004906000526020600020908101906200352f9190620034d9565b50565b600082601f8301126200354457600080fd5b81516001600160401b0380821115620035615762003561620036a9565b604051601f8301601f19908116603f011681019082821181831017156200358c576200358c620036a9565b81604052838152602092508683858801011115620035a957600080fd5b600091505b83821015620035cd5785820183015181830184015290820190620035ae565b83821115620035df5760008385830101525b9695505050505050565b60008060408385031215620035fd57600080fd5b82516001600160401b03808211156200361557600080fd5b620036238683870162003532565b935060208501519150808211156200363a57600080fd5b50620036498582860162003532565b9150509250929050565b600181811c908216806200366857607f821691505b60208210811415620036a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60805160601c60a05160601c61592e620037126000396000818161132c015261366201526000818161202e0152613633015261592e6000f3fe60806040526004361061023b5760003560e01c80636352211e1161012e578063a22cb465116100ab578063c87b56dd1161006f578063c87b56dd146106b0578063dbdff2c1146106d0578063dcd5396c146106e5578063e985e9c5146106fa578063f2fde38b1461074357600080fd5b8063a22cb46514610602578063a2ef6a3614610622578063ae784fb214610635578063b88d4fde14610663578063bbc1a8cc1461068357600080fd5b80638da5cb5b116100f25780638da5cb5b1461057957806394985ddd1461059757806395d89b41146105b757806395fb3a5a146105cc5780639e281a98146105e257600080fd5b80636352211e146104e457806370a0823114610504578063715018a61461052457806381c0b1f0146105395780638545f4ea1461055957600080fd5b80632e1a7d4d116101bc57806340c10f191161018057806340c10f191461043757806342842e0e1461044a578063438b63001461046a5780634f6ccce714610497578063512164f2146104b757600080fd5b80632e1a7d4d146103a25780632f745c59146103c257806336566f06146103e25780633a99d77d146103f75780633f39f7c11461041757600080fd5b806313faede61161020357806313faede61461031057806316c61ccc1461032657806318160ddd146103405780631d058bad1461035557806323b872dd1461038257600080fd5b806301ffc9a71461024057806306fdde0314610275578063081812fc14610297578063095ea7b3146102cf57806313c738f0146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b36600461434b565b610763565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a61078e565b60405161026c9190614d8a565b3480156102a357600080fd5b506102b76102b2366004614385565b610820565b6040516001600160a01b03909116815260200161026c565b3480156102db57600080fd5b506102ef6102ea3660046142e2565b6108ad565b005b3480156102fd57600080fd5b506010545b60405190815260200161026c565b34801561031c57600080fd5b5061030260105481565b34801561033257600080fd5b50600c546102609060ff1681565b34801561034c57600080fd5b50600854610302565b34801561036157600080fd5b50610302610370366004614385565b60176020526000908152604090205481565b34801561038e57600080fd5b506102ef61039d3660046141af565b6109c3565b3480156103ae57600080fd5b506102ef6103bd366004614385565b6109f4565b3480156103ce57600080fd5b506103026103dd3660046142e2565b610a5c565b3480156103ee57600080fd5b506102ef610af2565b34801561040357600080fd5b506102ef6104123660046143b7565b610b30565b34801561042357600080fd5b506102ef610432366004614385565b610d1c565b6102ef6104453660046142e2565b610d4b565b34801561045657600080fd5b506102ef6104653660046141af565b61103f565b34801561047657600080fd5b5061048a61048536600461415a565b61105a565b60405161026c9190614d46565b3480156104a357600080fd5b506103026104b2366004614385565b6110fc565b3480156104c357600080fd5b506103026104d2366004614385565b60166020526000908152604090205481565b3480156104f057600080fd5b506102b76104ff366004614385565b61118f565b34801561051057600080fd5b5061030261051f36600461415a565b611206565b34801561053057600080fd5b506102ef61128d565b34801561054557600080fd5b506102ef610554366004614385565b6112c3565b34801561056557600080fd5b506102ef610574366004614385565b6112f2565b34801561058557600080fd5b50600a546001600160a01b03166102b7565b3480156105a357600080fd5b506102ef6105b2366004614329565b611321565b3480156105c357600080fd5b5061028a61139f565b3480156105d857600080fd5b50610302600f5481565b3480156105ee57600080fd5b506102ef6105fd3660046142e2565b6113ae565b34801561060e57600080fd5b506102ef61061d3660046142ab565b61145a565b6102ef610630366004614424565b61151f565b34801561064157600080fd5b50610655610650366004614329565b6118be565b60405161026c929190614d9d565b34801561066f57600080fd5b506102ef61067e3660046141eb565b61196d565b34801561068f57600080fd5b506106a361069e366004614385565b61199f565b60405161026c9190614cbb565b3480156106bc57600080fd5b5061028a6106cb366004614385565b611b7b565b3480156106dc57600080fd5b50610302611fe9565b3480156106f157600080fd5b50601354610302565b34801561070657600080fd5b5061026061071536600461417c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561074f57600080fd5b506102ef61075e36600461415a565b6120ce565b60006001600160e01b0319821663780e9d6360e01b1480610788575061078882612169565b92915050565b60606000805461079d90614f7f565b80601f01602080910402602001604051908101604052809291908181526020018280546107c990614f7f565b80156108165780601f106107eb57610100808354040283529160200191610816565b820191906000526020600020905b8154815290600101906020018083116107f957829003601f168201915b5050505050905090565b600061082b826121b9565b6108915760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108b88261118f565b9050806001600160a01b0316836001600160a01b031614156109265760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610888565b336001600160a01b038216148061094257506109428133610715565b6109b45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610888565b6109be83836121d6565b505050565b6109cd3382612244565b6109e95760405162461bcd60e51b815260040161088890614e46565b6109be83838361232e565b600a546001600160a01b03163314610a1e5760405162461bcd60e51b815260040161088890614e11565b600a546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610a58573d6000803e3d6000fd5b5050565b6000610a6783611206565b8210610ac95760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610888565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610b1c5760405162461bcd60e51b815260040161088890614e11565b600c805460ff19811660ff90911615179055565b610b39836121b9565b610b4257600080fd5b33610b4c8461118f565b6001600160a01b031614610b5f57600080fd5b8051825114610b6d57600080fd5b6009610b78836124d9565b10610b8257600080fd5b610b8b8261254c565b15610b9557600080fd5b601354610ba1826125de565b11610bab57600080fd5b60005b8251811015610d1657818181518110610bc957610bc961502b565b6020026020010151601560008681526020019081526020016000206000858481518110610bf857610bf861502b565b602002602001015181526020019081526020016000206001018190555060166000848381518110610c2b57610c2b61502b565b60200260200101518152602001908152602001600020546001610c4e9190614ef1565b60166000858481518110610c6457610c6461502b565b60200260200101518152602001908152602001600020819055507f984b2df26d014d41b0a8e1dab7a7f3a871b443d79dfc2da9ce1cf645c256854a3385858481518110610cb357610cb361502b565b6020026020010151858581518110610ccd57610ccd61502b565b602090810291909101810151604080516001600160a01b03909616865291850193909352830152606082015260800160405180910390a180610d0e81614fba565b915050610bae565b50505050565b600a546001600160a01b03163314610d465760405162461bcd60e51b815260040161088890614e11565b601355565b6000610d5660085490565b90506000610d6384611206565b905060008311610dae5760405162461bcd60e51b815260206004820152601660248201527526b4b73a1038bab0b73a34ba3c903a37b7903637bb9760511b6044820152606401610888565b601154831115610e005760405162461bcd60e51b815260206004820152601760248201527f4d696e74207175616e7469747920746f6f20686967682e0000000000000000006044820152606401610888565b82601054610e0e9190614f1d565b341015610e535760405162461bcd60e51b815260206004820152601360248201527224b739bab33334b1b4b2b73a10333ab732399760691b6044820152606401610888565b601254610e608484614ef1565b1115610eae5760405162461bcd60e51b815260206004820152601c60248201527f4d696e742072657175657374206578636565647320737570706c792e000000006044820152606401610888565b600f54610ebb8483614ef1565b1115610f155760405162461bcd60e51b815260206004820152602360248201527f4d696e74207265717565737420657863656564732061646472657373206c696d60448201526234ba1760e91b6064820152608401610888565b600c5460ff1615610f685760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e672063757272656e746c792064697361626c65642e00000000006044820152606401610888565b6000610f75836001614ef1565b905060005b8481101561100557601254821115610f9157600080fd5b610f9b8683612654565b601454604080516020810192909252810183905242606082015260800160408051601f19818403018152918152815160209283012060008581526017909352912055610fe68261266e565b610ff1826001614ef1565b915080610ffd81614fba565b915050610f7a565b50601454604080516020810192909252429082015260600160408051601f1981840301815291905280516020909101206014555050505050565b6109be8383836040518060200160405280600081525061196d565b6060600061106783611206565b905060008167ffffffffffffffff81111561108457611084615041565b6040519080825280602002602001820160405280156110ad578160200160208202803683370190505b50905060005b828110156110f4576110c58582610a5c565b8282815181106110d7576110d761502b565b6020908102919091010152806110ec81614fba565b9150506110b3565b509392505050565b600061110760085490565b821061116a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610888565b6008828154811061117d5761117d61502b565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806107885760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610888565b60006001600160a01b0382166112715760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610888565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146112b75760405162461bcd60e51b815260040161088890614e11565b6112c16000613151565b565b600a546001600160a01b031633146112ed5760405162461bcd60e51b815260040161088890614e11565b600f55565b600a546001600160a01b0316331461131c5760405162461bcd60e51b815260040161088890614e11565b601055565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146113995760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610888565b60145550565b60606001805461079d90614f7f565b600a546001600160a01b031633146113d85760405162461bcd60e51b815260040161088890614e11565b60405163a9059cbb60e01b81523360048201526024810182905282906001600160a01b0382169063a9059cbb90604401602060405180830381600087803b15801561142257600080fd5b505af1158015611436573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d16919061430c565b6001600160a01b0382163314156114b35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610888565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611528836121b9565b61153157600080fd5b61153a826121b9565b61154357600080fd5b3361154d8361118f565b6001600160a01b03161461156057600080fd5b600083815260156020908152604080832084845290915290206001015461158657600080fd5b60008381526015602090815260408083208484529091529020600101543410156115af57600080fd5b6000806115c4600a546001600160a01b031690565b6001600160a01b03166115d8601434614f09565b604051600081818185875af1925050503d8060008114611614576040519150601f19603f3d011682016040523d82523d6000602084013e611619565b606091505b50915091508161162857600080fd5b6000806116348761118f565b6001600160a01b0316611648601434614f09565b611653906013614f1d565b604051600081818185875af1925050503d806000811461168f576040519150601f19603f3d011682016040523d82523d6000602084013e611694565b606091505b5091509150816116a357600080fd5b6000878152601560209081526040808320888452909152812080546116c790614f7f565b80601f01602080910402602001604051908101604052809291908181526020018280546116f390614f7f565b80156117405780601f1061171557610100808354040283529160200191611740565b820191906000526020600020905b81548152906001019060200180831161172357829003601f168201915b50505060008a81526015602081815260408084208d855282528084208f85529282528084208d85529091529091208154949550939092506117819150614f7f565b61178c929190613f63565b506000878152601560209081526040808320898452825290912082516117b492840190613fee565b50600087815260156020908152604080832089845290915290206001015415611806576000868152601660205260409020546117f290600290614f3c565b600087815260166020526040902055611831565b60008681526016602052604090205461182190600190614f3c565b6000878152601660205260409020555b60008781526015602081815260408084208a8552825280842060019081018590558c85529282528084208a855282528084209092019290925580513381529182018a90528101889052606081018790523460808201527f20de4f077863e1a13e28486d22ce6f675af9c449b2d72aa2a04cc25c855d0e709060a00160405180910390a15050505050505050565b60156020908152600092835260408084209091529082529020805481906118e490614f7f565b80601f016020809104026020016040519081016040528092919081815260200182805461191090614f7f565b801561195d5780601f106119325761010080835404028352916020019161195d565b820191906000526020600020905b81548152906001019060200180831161194057829003601f168201915b5050505050908060010154905082565b6119773383612244565b6119935760405162461bcd60e51b815260040161088890614e46565b610d16848484846131a3565b606060006119ac60085490565b6000848152601660205260408120549192509067ffffffffffffffff8111156119d7576119d7615041565b604051908082528060200260200182016040528015611a3357816020015b611a206040518060800160405280600081526020016000815260200160008152602001606081525090565b8152602001906001900390816119f55790505b509050600060015b838111611b7157600081815260156020908152604080832089845290915290206001015415611b5f576040805160808101825282815260208082018990526000848152601582528381208a8252808352848220600181015495850195909552908a90529052815490916060830191611ab290614f7f565b80601f0160208091040260200160405190810160405280929190818152602001828054611ade90614f7f565b8015611b2b5780601f10611b0057610100808354040283529160200191611b2b565b820191906000526020600020905b815481529060010190602001808311611b0e57829003601f168201915b5050505050815250838381518110611b4557611b4561502b565b60200260200101819052508180611b5b90614fba565b9250505b80611b6981614fba565b915050611a3b565b5090949350505050565b6060611b86826121b9565b611b8f57600080fd5b611b97614062565b60405180610120016040528060fd81526020016151e760fd91398152611bbc836131d6565b81600160200201819052506040518060600160405280602881526020016158a8602891396040820152611bee83613283565b606080830191909152604080519182019052602880825261507c60208301396080820152611c1b836132ac565b60a082015260408051606081019091526028808252615196602083013960c0820152611c46836132d5565b60e0820152604080516060810190915260298082526151be6020830139610100820152611c72836132fe565b6101208201526040805160608101909152602980825261516d6020830139610140820152611c9f83613327565b610160820152604080516060810190915260298082526152e46020830139610180820152611ccc83613350565b6101a08201526040805160608101909152602980825261514460208301396101c0820152611cf983613379565b6101e0820152604080516060810190915260298082526158d06020830139610200820152611d26836133a2565b6102208201526040805160a08101909152606e80825261534d60208301396102408201526040805161052081019091526104ed8082526153bb60208301396102608201526040805160c0810190915260a08082526150a4602083013961028082015260408051808201825260138152721e17b830ba341f1e17b9bb339f1e17b9bb339f60691b6020808301919091526102a0840191909152825181840151838501516060860151608087015160a088015160c089015160e08a01516101008b0151995160009a611df89a90910161450a565b60408051808303601f19018152908290526101208401516101408501516101608601516101808701516101a08801516101c08901516101e08a01516102008b0151979950611e4b988a989060200161450a565b60408051808303601f1901815290829052610220840151610240850151919350611e7a928492906020016144c7565b60408051808303601f1901815290829052610260840151909250611ea391839190602001614498565b60408051808303601f19018152908290526102808401516102a0850151919350611ed2928492906020016144c7565b60405160208183030381529060405290506000611eee856133cb565b611ef7836134c9565b604051602001611f08929190614a9b565b604051602081830303815290604052905080611f23866131d6565b611f2c876132ac565b611f35886132d5565b611f3e896132fe565b611f478a613327565b604051602001611f5c969594939291906145ca565b6040516020818303038152906040529050611fbd81611f7a87613350565b611f8388613379565b611f8c896133a2565b611f958a613283565b604051602001611fa9959493929190614852565b6040516020818303038152906040526134c9565b905080604051602001611fd09190614c13565b60408051601f1981840301815291905295945050505050565b600a546000906001600160a01b031633146120165760405162461bcd60e51b815260040161088890614e11565b600e546040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561207857600080fd5b505afa15801561208c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120b0919061439e565b10156120bb57600080fd5b6120c9600d54600e5461362f565b905090565b600a546001600160a01b031633146120f85760405162461bcd60e51b815260040161088890614e11565b6001600160a01b03811661215d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610888565b61216681613151565b50565b60006001600160e01b031982166380ac58cd60e01b148061219a57506001600160e01b03198216635b5e139f60e01b145b8061078857506301ffc9a760e01b6001600160e01b0319831614610788565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061220b8261118f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061224f826121b9565b6122b05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610888565b60006122bb8361118f565b9050806001600160a01b0316846001600160a01b031614806122f65750836001600160a01b03166122eb84610820565b6001600160a01b0316145b8061232657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166123418261118f565b6001600160a01b0316146123a95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610888565b6001600160a01b03821661240b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610888565b6124168383836137ba565b6124216000826121d6565b6001600160a01b038316600090815260036020526040812080546001929061244a908490614f3c565b90915550506001600160a01b0382166000908152600360205260408120805460019290612478908490614ef1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000808251116124e857600080fd5b6000805b835181101561254557818482815181106125085761250861502b565b60200260200101511115612533578381815181106125285761252861502b565b602002602001015191505b8061253d81614fba565b9150506124ec565b5092915050565b6000805b82518110156125d55760005b83518110156125c2578082146125b05783818151811061257e5761257e61502b565b60200260200101518483815181106125985761259861502b565b602002602001015114156125b0575060019392505050565b806125ba81614fba565b91505061255c565b50806125cd81614fba565b915050612550565b50600092915050565b6000808251116125ed57600080fd5b69d3c20dee1639f99c000060005b835181101561254557818482815181106126175761261761502b565b60200260200101511015612642578381815181106126375761263761502b565b602002602001015191505b8061264c81614fba565b9150506125fb565b610a58828260405180602001604052806000815250613872565b604051806040016040528061277383604051806040016040528060068152602001652ba2a0a827a760d11b8152506018805480602002602001604051908101604052809291908181526020016000905b8282101561276a5783829060005260206000200180546126dd90614f7f565b80601f016020809104026020016040519081016040528092919081815260200182805461270990614f7f565b80156127565780601f1061272b57610100808354040283529160200191612756565b820191906000526020600020905b81548152906001019060200180831161273957829003601f168201915b5050505050815260200190600101906126be565b505050506138a5565b815260006020918201819052838152601582526040808220828052835290208251805191926127a792849290910190613fee565b506020918201516001909101556040805160808101825260058183019081526410d21154d560da1b6060830152601a8054845181870281018701909552808552929485946128a694889493919260009084015b8282101561276a57838290600052602060002001805461281990614f7f565b80601f016020809104026020016040519081016040528092919081815260200182805461284590614f7f565b80156128925780601f1061286757610100808354040283529160200191612892565b820191906000526020600020905b81548152906001019060200180831161287557829003601f168201915b5050505050815260200190600101906127fa565b81526000602091820181905283815260158252604080822060018352835290208251805191926128db92849290910190613fee565b50602091820151600190910155604080516080810182526004818301908152631211505160e21b6060830152601b8054845181870281018701909552808552929485946129d994889493919260009084015b8282101561276a57838290600052602060002001805461294c90614f7f565b80601f016020809104026020016040519081016040528092919081815260200182805461297890614f7f565b80156129c55780601f1061299a576101008083540402835291602001916129c5565b820191906000526020600020905b8154815290600101906020018083116129a857829003601f168201915b50505050508152602001906001019061292d565b8152600060209182018190528381526015825260408082206002835283529020825180519192612a0e92849290910190613fee565b506020918201516001909101556040805160808101825260058183019081526415d05254d560da1b6060830152601c805484518187028101870190955280855292948594612b0d94889493919260009084015b8282101561276a578382906000526020600020018054612a8090614f7f565b80601f0160208091040260200160405190810160405280929190818152602001828054612aac90614f7f565b8015612af95780601f10612ace57610100808354040283529160200191612af9565b820191906000526020600020905b815481529060010190602001808311612adc57829003601f168201915b505050505081526020019060010190612a61565b8152600060209182018190528381526015825260408082206003835283529020825180519192612b4292849290910190613fee565b50602091820151600190910155604080516080810182526004818301908152631193d3d560e21b6060830152601d805484518187028101870190955280855292948594612c4094889493919260009084015b8282101561276a578382906000526020600020018054612bb390614f7f565b80601f0160208091040260200160405190810160405280929190818152602001828054612bdf90614f7f565b8015612c2c5780601f10612c0157610100808354040283529160200191612c2c565b820191906000526020600020905b815481529060010190602001808311612c0f57829003601f168201915b505050505081526020019060010190612b94565b8152600060209182018190528381526015825260408082206004835283529020825180519192612c7592849290910190613fee565b50602091820151600190910155604080516080810182526004818301908152631210539160e21b6060830152601e805484518187028101870190955280855292948594612d7394889493919260009084015b8282101561276a578382906000526020600020018054612ce690614f7f565b80601f0160208091040260200160405190810160405280929190818152602001828054612d1290614f7f565b8015612d5f5780601f10612d3457610100808354040283529160200191612d5f565b820191906000526020600020905b815481529060010190602001808311612d4257829003601f168201915b505050505081526020019060010190612cc7565b8152600060209182018190528381526015825260408082206005835283529020825180519192612da892849290910190613fee565b50602091820151600190910155604080516080810182526004818301908152634e45434b60e01b6060830152601f805484518187028101870190955280855292948594612ea694889493919260009084015b8282101561276a578382906000526020600020018054612e1990614f7f565b80601f0160208091040260200160405190810160405280929190818152602001828054612e4590614f7f565b8015612e925780601f10612e6757610100808354040283529160200191612e92565b820191906000526020600020905b815481529060010190602001808311612e7557829003601f168201915b505050505081526020019060010190612dfa565b8152600060209182018190528381526015825260408082206006835283529020825180519192612edb92849290910190613fee565b506020918201516001909101556040805160808101825260048183019081526352494e4760e01b6060830152835483518186028101860190945280845291938493612fd6938793929060008383015b8282101561276a578382906000526020600020018054612f4990614f7f565b80601f0160208091040260200160405190810160405280929190818152602001828054612f7590614f7f565b8015612fc25780601f10612f9757610100808354040283529160200191612fc2565b820191906000526020600020905b815481529060010190602001808311612fa557829003601f168201915b505050505081526020019060010190612f2a565b815260006020918201819052838152601582526040808220600783528352902082518051919261300b92849290910190613fee565b506020918201516001909101556040805160808101825260068183019081526514d21251531160d21b6060830152601980548451818702810187019095528085529294859461310b94889493919260009084015b8282101561276a57838290600052602060002001805461307e90614f7f565b80601f01602080910402602001604051908101604052809291908181526020018280546130aa90614f7f565b80156130f75780601f106130cc576101008083540402835291602001916130f7565b820191906000526020600020905b8154815290600101906020018083116130da57829003601f168201915b50505050508152602001906001019061305f565b815260006020918201819052838152601582526040808220600883528352902082518051919261314092849290910190613fee565b506020820151816001015590505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6131ae84848461232e565b6131ba84848484613b87565b610d165760405162461bcd60e51b815260040161088890614dbf565b600081815260156020908152604080832083805290915290208054606091906131fe90614f7f565b80601f016020809104026020016040519081016040528092919081815260200182805461322a90614f7f565b80156132775780601f1061324c57610100808354040283529160200191613277565b820191906000526020600020905b81548152906001019060200180831161325a57829003601f168201915b50505050509050919050565b60008181526015602090815260408083206008845290915290208054606091906131fe90614f7f565b60008181526015602090815260408083206001845290915290208054606091906131fe90614f7f565b60008181526015602090815260408083206002845290915290208054606091906131fe90614f7f565b60008181526015602090815260408083206003845290915290208054606091906131fe90614f7f565b60008181526015602090815260408083206004845290915290208054606091906131fe90614f7f565b60008181526015602090815260408083206005845290915290208054606091906131fe90614f7f565b60008181526015602090815260408083206006845290915290208054606091906131fe90614f7f565b60008181526015602090815260408083206007845290915290208054606091906131fe90614f7f565b6060816133ef5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613419578061340381614fba565b91506134129050600a83614f09565b91506133f3565b60008167ffffffffffffffff81111561343457613434615041565b6040519080825280601f01601f19166020018201604052801561345e576020820181803683370190505b5090505b841561232657613473600183614f3c565b9150613480600a86614fd5565b61348b906030614ef1565b60f81b8183815181106134a0576134a061502b565b60200101906001600160f81b031916908160001a9053506134c2600a86614f09565b9450613462565b8051606090806134e9575050604080516020810190915260008152919050565b600060036134f8836002614ef1565b6135029190614f09565b61350d906004614f1d565b9050600061351c826020614ef1565b67ffffffffffffffff81111561353457613534615041565b6040519080825280601f01601f19166020018201604052801561355e576020820181803683370190505b509050600060405180606001604052806040815260200161530d604091399050600181016020830160005b868110156135ea576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101613589565b506003860660018114613604576002811461361557613621565b613d3d60f01b600119830152613621565b603d60f81b6000198301525b505050918152949350505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f00000000000000000000000000000000000000000000000000000000000000008486600060405160200161369f929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016136cc93929190614c8b565b602060405180830381600087803b1580156136e657600080fd5b505af11580156136fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061371e919061430c565b506000838152600b6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a09091019092528151918301919091209387905291905261377a906001614ef1565b6000858152600b60205260409020556123268482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6001600160a01b0383166138155761381081600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613838565b816001600160a01b0316836001600160a01b031614613838576138388382613c94565b6001600160a01b03821661384f576109be81613d31565b826001600160a01b0316826001600160a01b0316146109be576109be8282613de0565b61387c8383613e24565b6138896000848484613b87565b6109be5760405162461bcd60e51b815260040161088890614dbf565b6000838152601760209081526040808320549051606093926138cc92918791899101614e97565b6040516020818303038152906040528051906020012060001c90506000838451836138f79190614fd5565b815181106139075761390761502b565b6020026020010151905060006064836139209190614fd5565b90506042811115613979576021805483919061393c9086614fd5565b8154811061394c5761394c61502b565b90600052602060002001604051602001613967929190614792565b60405160208183030381529060405291505b60558110613b7d5761398961408a565b602280546139979086614fd5565b815481106139a7576139a761502b565b9060005260206000200180546139bc90614f7f565b80601f01602080910402602001604051908101604052809291908181526020018280546139e890614f7f565b8015613a355780601f10613a0a57610100808354040283529160200191613a35565b820191906000526020600020905b815481529060010190602001808311613a1857829003601f168201915b505050505081600060028110613a4d57613a4d61502b565b602002015260238054613a609086614fd5565b81548110613a7057613a7061502b565b906000526020600020018054613a8590614f7f565b80601f0160208091040260200160405190810160405280929190818152602001828054613ab190614f7f565b8015613afe5780601f10613ad357610100808354040283529160200191613afe565b820191906000526020600020905b815481529060010190602001808311613ae157829003601f168201915b505050505081600160028110613b1657613b1661502b565b6020020152605f8210613b51578051602080830151604051613b3b9392879101614a08565b6040516020818303038152906040529250613b7b565b8051602080830151604051613b699392879101614983565b60405160208183030381529060405292505b505b5095945050505050565b60006001600160a01b0384163b15613c8957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613bcb903390899088908890600401614c58565b602060405180830381600087803b158015613be557600080fd5b505af1925050508015613c15575060408051601f3d908101601f19168201909252613c1291810190614368565b60015b613c6f573d808015613c43576040519150601f19603f3d011682016040523d82523d6000602084013e613c48565b606091505b508051613c675760405162461bcd60e51b815260040161088890614dbf565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612326565b506001949350505050565b60006001613ca184611206565b613cab9190614f3c565b600083815260076020526040902054909150808214613cfe576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613d4390600190614f3c565b60008381526009602052604081205460088054939450909284908110613d6b57613d6b61502b565b906000526020600020015490508060088381548110613d8c57613d8c61502b565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613dc457613dc4615015565b6001900381819060005260206000200160009055905550505050565b6000613deb83611206565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216613e7a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610888565b613e83816121b9565b15613ed05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610888565b613edc600083836137ba565b6001600160a01b0382166000908152600360205260408120805460019290613f05908490614ef1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054613f6f90614f7f565b90600052602060002090601f016020900481019282613f915760008555613fde565b82601f10613fa25780548555613fde565b82800160010185558215613fde57600052602060002091601f016020900482015b82811115613fde578254825591600101919060010190613fc3565b50613fea9291506140a3565b5090565b828054613ffa90614f7f565b90600052602060002090601f01602090048101928261401c5760008555613fde565b82601f1061403557805160ff1916838001178555613fde565b82800160010185558215613fde579182015b82811115613fde578251825591602001919060010190614047565b604051806102c001604052806016905b60608152602001906001900390816140725790505090565b6040805180820190915260608152600160208201614072565b5b80821115613fea57600081556001016140a4565b80356001600160a01b03811681146140cf57600080fd5b919050565b600082601f8301126140e557600080fd5b8135602067ffffffffffffffff82111561410157614101615041565b8160051b614110828201614ec0565b83815282810190868401838801850189101561412b57600080fd5b600093505b8584101561414e578035835260019390930192918401918401614130565b50979650505050505050565b60006020828403121561416c57600080fd5b614175826140b8565b9392505050565b6000806040838503121561418f57600080fd5b614198836140b8565b91506141a6602084016140b8565b90509250929050565b6000806000606084860312156141c457600080fd5b6141cd846140b8565b92506141db602085016140b8565b9150604084013590509250925092565b6000806000806080858703121561420157600080fd5b61420a856140b8565b935060206142198187016140b8565b935060408601359250606086013567ffffffffffffffff8082111561423d57600080fd5b818801915088601f83011261425157600080fd5b81358181111561426357614263615041565b614275601f8201601f19168501614ec0565b9150808252898482850101111561428b57600080fd5b808484018584013760008482840101525080935050505092959194509250565b600080604083850312156142be57600080fd5b6142c7836140b8565b915060208301356142d781615057565b809150509250929050565b600080604083850312156142f557600080fd5b6142fe836140b8565b946020939093013593505050565b60006020828403121561431e57600080fd5b815161417581615057565b6000806040838503121561433c57600080fd5b50508035926020909101359150565b60006020828403121561435d57600080fd5b813561417581615065565b60006020828403121561437a57600080fd5b815161417581615065565b60006020828403121561439757600080fd5b5035919050565b6000602082840312156143b057600080fd5b5051919050565b6000806000606084860312156143cc57600080fd5b83359250602084013567ffffffffffffffff808211156143eb57600080fd5b6143f7878388016140d4565b9350604086013591508082111561440d57600080fd5b5061441a868287016140d4565b9150509250925092565b60008060006060848603121561443957600080fd5b505081359360208301359350604090920135919050565b60008151808452614468816020860160208601614f53565b601f01601f19169290920160200192915050565b6000815161448e818560208601614f53565b9290920192915050565b600083516144aa818460208801614f53565b8351908301906144be818360208801614f53565b01949350505050565b600084516144d9818460208901614f53565b8451908301906144ed818360208901614f53565b8451910190614500818360208801614f53565b0195945050505050565b60008a5161451c818460208f01614f53565b8a5161452e8183860160208f01614f53565b8a519184010190614543818360208e01614f53565b8951910190614556818360208d01614f53565b88516145688183850160208d01614f53565b885192909101019061457e818360208b01614f53565b86516145908183850160208b01614f53565b86519290910101906145a6818360208901614f53565b84516145b88183850160208901614f53565b9101019b9a5050505050505050505050565b600087516145dc818460208c01614f53565b80830190507f2261747472696275746573223a205b7b2274726169745f74797065223a20225781527132b0b837b7111610113b30b63ab2911d101160711b60208201528751614632816032840160208c01614f53565b7f227d2c207b2274726169745f74797065223a20224368657374222c202276616c60329290910191820152653ab2911d101160d11b6052820152865161467f816058840160208b01614f53565b7f227d2c207b2274726169745f74797065223a202248656164222c202276616c75605892909101918201526432911d101160d91b607882015285516146cb81607d840160208a01614f53565b61478461475b61475561471e614718607d868801017f227d2c207b2274726169745f74797065223a20225761697374222c202276616c8152653ab2911d101160d11b602082015260260190565b8a61447c565b7f227d2c207b2274726169745f74797065223a2022466f6f74222c202276616c7581526432911d101160d91b602082015260250190565b8761447c565b7f227d2c207b2274726169745f74797065223a202248616e64222c0000000000008152601a0190565b9a9950505050505050505050565b6000835160206147a58285838901614f53565b600160fd1b918401918252845460019060009080831c818416806147ca57607f821691505b8582108114156147e857634e487b7160e01b84526022600452602484fd5b8080156147fc576001811461481157614842565b60ff1984168887015282880186019450614842565b60008b81526020902060005b848110156148385781548a820189015290870190880161481d565b5050858389010194505b50929a9950505050505050505050565b60008651614864818460208b01614f53565b69113b30b63ab2911d101160b11b908301908152865161488b81600a840160208b01614f53565b7f227d2c207b2274726169745f74797065223a20224e65636b222c202276616c75600a92909101918201526432911d101160d91b602a820181905286516148d981602f850160208b01614f53565b7f227d2c207b2274726169745f74797065223a202252696e67222c202276616c75602f9390910192830152604f820152845161491c816054840160208901614f53565b7f227d2c207b2274726169745f74797065223a2022536869656c64222c202276616054929091019182015266363ab2911d101160c91b6074820152614977614967607b83018661447c565b63227d5d7d60e01b815260040190565b98975050505050505050565b600062e2978f60e81b808352600160fd1b80600385015286516149ad816004870160208b01614f53565b808501905081600482015286516149cb816005840160208b01614f53565b808201915050816005820152826006820152816009820152855192506149f883600a830160208901614f53565b909101600a019695505050505050565b600062e2978f60e81b808352600160fd1b8060038501528651614a32816004870160208b01614f53565b80850190508160048201528651614a50816005840160208b01614f53565b80820191505081600582015282600682015281600982015285519250614a7d83600a830160208901614f53565b62202b3160e81b9201600a81019290925250600d0195945050505050565b6e7b226e616d65223a2022426167202360881b81528251600090614ac681600f850160208801614f53565b7f222c20226465736372697074696f6e223a20224765617220536c6f7473206973600f918401918201527f206120636f6c6c656374696f6e206f662072616e646f6d697a65642052504720602f8201527f626167732c2066756c6c206f6620676561722c2073746f726564206f6e2d6368604f8201527f61696e2e2045616368207069656365206f6620676561722063616e2062652074606f8201527f726164656420696e646976696475616c6c792c20776974686f75742074726164608f8201527f696e672074686520656e7469726520626167206f6620676561722e222c20226960af8201527f6d616765223a2022646174613a696d6167652f7376672b786d6c3b626173653660cf820152610d0b60f21b60ef8201528351614bf28160f1840160208801614f53565b614c0960f18284010161088b60f21b815260020190565b9695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251614c4b81601d850160208701614f53565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614c0990830184614450565b60018060a01b0384168152826020820152606060408201526000614cb26060830184614450565b95945050505050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b83811015614d3857888303603f1901855281518051845287810151888501528681015187850152606090810151608091850182905290614d2481860183614450565b968901969450505090860190600101614ce2565b509098975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614d7e57835183529284019291840191600101614d62565b50909695505050505050565b6020815260006141756020830184614450565b604081526000614db06040830185614450565b90508260208301529392505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b838152606060208201526000614eb06060830185614450565b9050826040830152949350505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715614ee957614ee9615041565b604052919050565b60008219821115614f0457614f04614fe9565b500190565b600082614f1857614f18614fff565b500490565b6000816000190483118215151615614f3757614f37614fe9565b500290565b600082821015614f4e57614f4e614fe9565b500390565b60005b83811015614f6e578181015183820152602001614f56565b83811115610d165750506000910152565b600181811c90821680614f9357607f821691505b60208210811415614fb457634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614fce57614fce614fe9565b5060010190565b600082614fe457614fe4614fff565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461216657600080fd5b6001600160e01b03198116811461216657600080fdfe3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d2262617365223e3c616e696d6174655472616e73666f726d20617474726962757465547970653d22786d6c22206174747269627574654e616d653d227472616e73666f726d2220747970653d22726f74617465222066726f6d3d223336302034312034312220746f3d223020343120343122206475723d22313073222061646469746976653d2273756d2220726570656174436f756e743d22696e646566696e69746522202f3e3c2f746578743e3c7465787420783d2231302220793d223136302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d2238302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173733d2262617365223e3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223134302220636c6173733d2262617365223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f746578743e3c73766720783d223237322220793d22323335222077696474683d2232306d6d22206865696768743d2234306d6d222076696577426f783d223020302038322038322220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e3c7061746820643d226d34312031632d322e3733393220302d352e3431353220302e32383731392d3820302e3831323576362e31383735632d332e3437343820302e38333838372d362e3731393820322e313834362d392e3638373520346c2d342e3337352d342e333735632d322e3234323620312e343836312d342e3239323320332e323239382d362e3138373520352e3132352d312e3839353320312e383935322d332e3633383920332e393434392d352e31323520362e313837356c342e33373520342e333735632d312e3831353420322e393637372d332e3136313120362e323132362d3420392e36383735682d362e31383735632d302e3532353320322e353834382d302e3831323520352e323630382d302e38313235203873302e3238373220352e3431353220302e38313235203868362e3138373563302e383338383720332e3437343820322e3138343620362e37313938203420392e363837356c2d342e33373520342e33373563312e3438363120322e3234323620332e3232393720342e3239323320352e31323520362e3138373520312e3839353220312e3839353220332e3934343920332e3633383920362e3138373520352e3132356c342e3337352d342e33373563322e3936373720312e3831353420362e3231323620332e3136313120392e36383735203476362e3138373563322e3538343820302e3532353320352e3236303820302e38313235203820302e3831323520322e37333931203020352e343135312d302e3238373220382d302e38313235762d362e3138373563332e343734382d302e383338383820362e373139382d322e3138343620392e363837352d346c342e33373520342e33373563322e323432362d312e3438363120342e323932322d332e3232393820362e313837352d352e31323520312e383935322d312e3839353220332e363338392d332e3934343920352e3132352d362e313837356c2d342e3337352d342e33373563312e383135342d322e3936373720332e313631312d362e3231323620342d392e3638373568362e3138373563302e353235332d322e3538343820302e383132352d352e3236303820302e383132352d38732d302e323837322d352e343135322d302e383132352d38682d362e31383735632d302e383338392d332e343734382d322e313834362d362e373139382d342d392e363837356c342e3337352d342e333735632d312e343836312d322e323432362d332e323239382d342e323932332d352e3132352d362e313837352d312e383935332d312e383935322d332e393434392d332e363338392d362e313837352d352e3132356c2d342e33373520342e333735632d322e393637372d312e383135342d362e323132372d332e313631312d392e363837352d34762d362e31383735632d322e353834392d302e35323533312d352e323630392d302e383132352d382d302e383132357a6d302032306331312e3034203020323020382e3936203230203230732d382e39362032302d32302032302d32302d382e39362d32302d323020382e39362d32302032302d32307a222066696c6c3d22776869746522207374726f6b653d22776869746522207374726f6b652d646173686f66667365743d2231363222207374726f6b652d6c696e656361703d22726f756e6422207374726f6b652d6c696e656a6f696e3d22726f756e6422207374726f6b652d77696474683d2231223e3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223138302220636c6173733d2262617365223ea2646970667358221220fd419971cc95c596ff7acb57f41ced88fe660789639f7bc4b4e534fc13aafba664736f6c63430008070033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002a30783732303437373662376464634635364634303732313242393863373944663135303666634237364400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000947656172536c6f74730000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002a30783732303437373662376464634635364634303732313242393863373944663135303666634237364400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000947656172536c6f74730000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): 0x7204776b7ddcF56F407212B98c79Df1506fcB76D
Arg [1] : _symbol (string): GearSlots

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000000000000000000000000000000000000000002a
Arg [3] : 3078373230343737366237646463463536463430373231324239386337394466
Arg [4] : 3135303666634237364400000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [6] : 47656172536c6f74730000000000000000000000000000000000000000000000


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