ETH Price: $2,546.77 (+3.43%)

Token

Perks (for Adventurers) (PERKS)
 

Overview

Max Total Supply

43 PERKS

Holders

26

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
PerksForAdventurers

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 17 : perks.sol
/**
 *Submitted for verification at Etherscan.io on 2021-08-27
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./Base64.sol";

interface LootInterface {
    function ownerOf(uint256 tokenId) external view returns (address owner);
}

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

contract PerksForAdventurers is ERC721Enumerable, ReentrancyGuard, Ownable {
    
    using Counters for Counters.Counter;
    
    uint256 public price = 20000000000000000; //0.02 ETH
    // address public multisigAddress = 0x31AB89af718f141D63cEE3b51f50DB8f375d2d0B; //testnet
    address public multisigAddress = 0xDb9E7c04378299048DD1882F6c9Cf21d709f9319; //mainnet

    uint256 public constant MAX_SYNTHETIC_ITEMS = 2000;
    Counters.Counter private _syntheticItemsTracker;
    Counters.Counter private _originItemsTracker;

    //Loot Contract
    address public lootAddress;
    LootInterface lootContract;

    // address proxyRegistryAddress = 0xF57B2c51dED3A29e6891aba85459d600256Cf317; //testnet
    address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1; //mainnet
           
    event CreatePerk(uint256 indexed id);
		
    string[] private traits = [
        'Lightning Reflexes',
        'Eagle-eyes',
        'Excellent Judgement',
        'Heightened Senses',
        'Awareness',
        'Faster Healing',
        'Night Vision',
        'Toughness',
        'Educated',
        'Silent Running',
        'Strong Back',
        'Camouflage',
        'Heightened Smell',
        'Heightened Taste',
        'Heightened Hearing',
        'Computer Expert',
        'Stealth',
        'Swimmer',
        'Vehicle Mastery',
        'Rock Climbing',
        'Communicator',
        'Leadership',
        'Collaborator',
        'Military General',
        'Strategic Planner',
        'X-Ray Vision'
    ];
    
    string[] private traits2 = [
        'Speed',
        'Strength',
        'Stamina',
        'Intelligence',
        'Dexterity',
        'Agility'
    ];

    string[] private fightingPerks = [
'Samurai Master',
'Sniping Accuracy',
'Quick Draw Weapons',
'Nunchuk Practioner',
'Karate',
'Brazilian Jiu-Jitsu',
'Archery',
'Throwing Weapons Practioner',
'Dagger Proficiency',
'Explosives Proficiency',
'Swordsman',
'Axe Proficiency',
'Vampire Teeth',
'Venom Glands',
'Quick Dash',
'Trap Proficiency',
'Horse Riding',
'Dual-Wielding',
'Firearms Proficiency'
    ];
    
    string[] private defensePerks = [
'Earth Resistance',
'Flame Resistance',
'Water Resistance',
'Storm Resistance',
'Air Resistance',
'Animal Resistance',
'Monster Resistance',
'Magic Resistance',
'Poison Immunity',
'Elemental Absorption',
'Death Ward',
'Magic Armour',
'Mirror Image',
'Physical Barrier',
'Magic Barrier',
'Diamond Skin'
    ];
    

    string[] private magicPerks = [
'Teleportation',
'Mind reading',
'Earth Touched',
'Flame Touched',
'Water Touched',
'Storm Touched',
'Air Touched',
'Healing',
'Astral Projection',
'Invisibility',
'Shapeshifting',
'Forcefield',
'Phasing',
'Time Dilation',
'Time Travel',
'Size Enhancement',
'Size Reduction',
'Laser Beams',
'Health Regeneration ',
'Invulnerability',
'Telepathy',
'Telekinesis',
'Spirit Walker',
'Levitation'
    ];

    					

    string[] private survivalPerks = [
'Firestarter',
'Medic',
'Fishing',
'Wood Cutter',
'Attraction',
'Acrobat',
'Animal Handler',
'Persuasion',
'Intimidation',
'Stealth',
'Retreat',
'Camoflague',
'Furious Charge',
'Smoke Screen',
'Strafe',
'Death Dodger'
    ];

			 	

    string[] private craftingPerks = [
'Potion Brewer',
'Elixer Brewer',
'Alchemist',
'Chef',
'Leathersmith',
'Blacksmith',
'Craftsman',
'Hunter',
'Fisherman',
'Weaver',
'Greenskeeper',
'Goldsmith',
'Miner',
'Slingshot Crafter',
'Farmer',
'Mechanic',
'Trench Digger',
'Trap Builder',
'Firearms Crafter',
'Bow Crafter',
'House Builder'
    ];
    
    			

    string[] private flawedPerks = [
'Panicked',
'Fearful',
'Addict',
'Cursed',
'Glutton',
'Gulilible',
'Illiterate',
'Lazy',
'Murderer',
'Pacifist',
'Ugly',
'Unlucky',
'Bloodlust',
'Coward',
'Greedy',
'Sickly',
'Follower',
'Rebellious',
'Vanity',
'Vengeful',
'Overconfident',
'Superstitious',
'Spoiled'
    ];
    
    string[] private traitPrefixes = [
       "Minor Boost of",
       "Greater Boost of",
       "Superior Boost of",
       "Supreme Boost of"
    ];	

    string[] private perkPrefixes = [
       "Novice",
       "Intermediate",
       "Expert",
       "Mastered"
    ];

    string[] private perkSkillPrefixes = [
       "Novice",
       "Intermediate",
       "Advanced",
       "Ultimate"
    ];
    
    function random(string memory input) internal pure returns (uint256) {
        return uint256(keccak256(abi.encodePacked(input)));
    }
    
    function getTrait1(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "TRAIT", traits);
    }
    
    function getTrait2(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "TRAIT 2", traits2);
    }
    
    function getFightingPerk(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "FIGHTING", fightingPerks);
    }
    
    function getDefensePerk(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "DEFENSE", defensePerks);
    }
    
    function getMagicPerk(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "MAGIC", magicPerks);
    }

    function getSurvivalPerk(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "SURVIVAL", survivalPerks);
    }
    
    function getCraftingPerk(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "CRAFTING", craftingPerks);
    }
    
    function getFlawedPerk(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "FLAW", flawedPerks);
    }
    
    function pluck(uint256 tokenId, string memory keyPrefix, string[] memory sourceArray) internal view returns (string memory) {
        uint256 rand = random(string(abi.encodePacked(keyPrefix, toString(tokenId))));
        uint256 rarity = rand % 101;
        string memory traitRarity = "";
        string memory perkRarity = "";
        string memory output = sourceArray[rand % sourceArray.length];
        string[] memory prefix = perkSkillPrefixes;
        
        if (keccak256(abi.encodePacked(keyPrefix)) == keccak256(abi.encodePacked("TRAIT")) ){
            output = string(abi.encodePacked(output));
        } else if(keccak256(abi.encodePacked(keyPrefix)) == keccak256(abi.encodePacked("TRAIT 2")) ) {
            if (0 < rarity && rarity <= 60){
                traitRarity = traitPrefixes[0];
            } else if (60 < rarity && rarity <= 90 ){
                traitRarity = traitPrefixes[1];
            } else if (90 < rarity && rarity <= 98 ){
                traitRarity = traitPrefixes[2];
            } else {
                traitRarity = traitPrefixes[3];
            }
            output = string(abi.encodePacked(traitRarity, " ", output));
        } else if(keccak256(abi.encodePacked(keyPrefix)) != keccak256(abi.encodePacked("FLAW")) ) {
            
            if(keccak256(abi.encodePacked(keyPrefix)) == keccak256(abi.encodePacked("FIGHTING")) || 
            keccak256(abi.encodePacked(keyPrefix)) == keccak256(abi.encodePacked("CRAFTING")) ) {
                prefix = perkPrefixes;
            }
            
            if (0 < rarity && rarity <= 60 ){
                perkRarity = prefix[0];
            } else if (60 < rarity && rarity <= 90 ){
                perkRarity = prefix[1];
            } else if (90 < rarity && rarity <= 98 ){
                perkRarity = prefix[2];
            } else {
                perkRarity = prefix[3];
            }
            output = string(abi.encodePacked(perkRarity, " ", output));
        }
        
        return output;
    }

    function tokenURI(uint256 tokenId) override public view returns (string memory) {
        string[17] 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] = getTrait1(tokenId);

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

        parts[3] = getTrait2(tokenId);

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

        parts[5] = getFightingPerk(tokenId);

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

        parts[7] = getDefensePerk(tokenId);

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

        parts[9] = getMagicPerk(tokenId);

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

        parts[11] = getSurvivalPerk(tokenId);

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

        parts[13] = getCraftingPerk(tokenId);

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

        parts[15] = getFlawedPerk(tokenId);

        parts[16] = '</text></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]));
        
        string memory json = string(abi.encodePacked('{',
            '"name": "Perk Bag #', toString(tokenId), '", ',
            '"description": "Loot is randomized adventurer gear generated and stored on chain. Stats, images, and other functionality are intentionally omitted for others to interpret. Feel free to use Loot in any way you want.", ',
            '"image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '",'));
            
        string memory attributes = string(abi.encodePacked('"attributes": [',
            '{"trait_type": "Raw Trait", "value": "', parts[1], '" },',
            '{"trait_type": "Raw Trait 2", "value": "', parts[3], '" },',
            '{"trait_type": "Fighting", "value": "', parts[5], '" },',
            '{"trait_type": "Defense", "value": "', parts[7], '" },'));
        
        attributes = string(abi.encodePacked(attributes,
            '{"trait_type": "Magic", "value": "', parts[9], '" },',
            '{"trait_type": "Survival", "value": "', parts[11], '" },',
            '{"trait_type": "Crafting", "value": "', parts[13], '" },',
            '{"trait_type": "Flawed", "value": "', parts[15], '" }]'));
            
        string memory json_end = string(abi.encodePacked('}'));
        json = string(abi.encodePacked(json, attributes, json_end));
        output = string(abi.encodePacked('data:application/json;base64,', Base64.encode(bytes(json))));

        return output;
    }

    function _totalSyntheticSupply() internal view returns (uint) {
        return _syntheticItemsTracker.current();
    }
    
    function totalSyntheticSupply() public view returns (uint256) {
        return _totalSyntheticSupply();
    } 
    
    function _totalOriginSupply() internal view returns (uint) {
        return _originItemsTracker.current();
    }
    
    function totalOriginSupply() public view returns (uint256) {
        return _totalOriginSupply();
    } 
    
   function mint(uint256 tokenId) public payable nonReentrant {
        require(!_exists(tokenId), "This token has already been minted");
        require(tokenId > 0 && tokenId <= 10000, "Invalid token id");
        bool isLootOrigin = tokenId > 0 && tokenId <= 8000;
        if(isLootOrigin) {
            require(lootContract.ownerOf(tokenId) == _msgSender(), "Not the owner of this loot");
            _originItemsTracker.increment();
        } else {
            require(price <= msg.value, "Ether value sent is not correct");
            uint256 total = _totalSyntheticSupply();
            require(total + 1 <= MAX_SYNTHETIC_ITEMS, "Max limit");
            _syntheticItemsTracker.increment();
        }
        _safeMint(_msgSender(), tokenId);
        emit CreatePerk(tokenId);
    }
 
    function mintOwner(uint256 tokenId) public nonReentrant onlyOwner {
        _safeMint(multisigAddress, tokenId);
    }

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

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

    function withdraw() public onlyOwner{
        (bool success, ) = payable(multisigAddress).call{ value: (address(this).balance), gas: 100000 }("");
        require(success, "Failed to send Ether");
    }
    
    function setMultiSigAddress(address multisig) public onlyOwner {
        multisigAddress = multisig;
    }
    
    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator)
        override
        public
        view
        returns (bool)
    {
        // Whitelist OpenSea proxy contract for easy trading.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }
    
    constructor(address loot) ERC721("Perks (for Adventurers)", "PERKS") {
        lootAddress = loot;
        lootContract = LootInterface(loot);
    }
}

File 2 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 3 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 4 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 5 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 6 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 7 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 8 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 9 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 10 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 11 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 12 of 17 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 13 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 14 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 15 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 16 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 17 of 17 : Base64.sol
/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"loot","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"CreatePerk","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SYNTHETIC_ITEMS","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getCraftingPerk","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getDefensePerk","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFightingPerk","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFlawedPerk","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMagicPerk","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSurvivalPerk","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTrait1","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTrait2","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"lootAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"multisigAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"multisig","type":"address"}],"name":"setMultiSigAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalOriginSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSyntheticSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

66470de4df820000600c908155600d80546001600160a01b031990811673db9e7c04378299048dd1882f6c9cf21d709f93191782556012805490911673a5409ec958c83c3f309868babaca7c86dcb077c11781556103c0818152714c696768746e696e67205265666c6578657360701b6103e0526080908152600a610400818152694561676c652d6579657360b01b6104205260a05260136104408181527f457863656c6c656e74204a756467656d656e74000000000000000000000000006104605260c052601161048081815270486569676874656e65642053656e73657360781b6104a05260e05260096104c08181526841776172656e65737360b81b6104e05261010052600e6105008181526d466173746572204865616c696e6760901b61052052610120526105408981526b2734b3b43a102b34b9b4b7b760a11b610560526101405261058091825268546f7567686e65737360b81b6105a0526101609190915260086105c09081526711591d58d85d195960c21b6105e052610180526106009081526d53696c656e742052756e6e696e6760901b610620526101a052600b6106409081526a5374726f6e67204261636b60a81b610660526101c0526106808381526943616d6f75666c61676560b01b6106a0526101e05260106106c08181526f12195a59da1d195b99590814db595b1b60821b6106e052610200526107008181526f486569676874656e656420546173746560801b610720526102205261074095865271486569676874656e65642048656172696e6760701b6107605261024095909552600f6107808181526e10dbdb5c1d5d195c88115e1c195c9d608a1b6107a0526102605260076107c0818152660a6e8cac2d8e8d60cb1b6107e052610280526108009081526629bbb4b6b6b2b960c91b610820526102a0526108409081526e56656869636c65204d61737465727960881b610860526102c0526108809586526c526f636b20436c696d62696e6760981b6108a0526102e0959095526108c08681526b21b7b6b6bab734b1b0ba37b960a11b6108e052610300526109009182526904c6561646572736869760b41b61092052610320919091526109408581526b21b7b63630b137b930ba37b960a11b61096052610340526109809283526f135a5b1a5d185c9e4811d95b995c985b60821b6109a052610360929092526109c09283527029ba3930ba32b3b4b190283630b73732b960791b6109e05261038092909252610a40604052610a009283526b2c16a930bc902b34b9b4b7b760a11b610a20526103a092909252620003bd9190601a62001a13565b506040805161010081018252600560c082019081526414dc19595960da1b60e083015281528151808301835260088152670a6e8e4cadccee8d60c31b60208281019190915280830191909152825180840184526007808252665374616d696e6160c81b828401528385019190915283518085018552600c81526b496e74656c6c6967656e636560a01b81840152606084015283518085018552600981526844657874657269747960b81b81840152608084015283518085019094528352664167696c69747960c81b9083015260a0810191909152620004a190601490600662001a77565b50604080516102a081018252600e61026082019081526d29b0b6bab930b49026b0b9ba32b960911b61028083015281528151808301835260108082526f536e6970696e6720416363757261637960801b6020838101919091528084019290925283518085018552601280825271517569636b204472617720576561706f6e7360701b82850152848601919091528451808601865281815271273ab731b43ab590283930b1ba34b7b732b960711b8185015260608501528451808601865260068152654b617261746560d01b8185015260808501528451808601865260138082527f4272617a696c69616e204a69752d4a69747375000000000000000000000000008286015260a08601919091528551808701875260078152664172636865727960c81b8186015260c086015285518087018752601b81527f5468726f77696e6720576561706f6e73205072616374696f6e657200000000008186015260e086015285518087018752918252714461676765722050726f66696369656e637960701b8285015261010085019190915284518086018652601681527f4578706c6f73697665732050726f66696369656e6379000000000000000000008185015261012085015284518086018652600981526829bbb7b93239b6b0b760b91b8185015261014085015284518086018652600f81526e4178652050726f66696369656e637960881b8185015261016085015284518086018652600d8082526c0acc2dae0d2e4ca40a8cacae8d609b1b8286015261018086019190915285518087018752600c8082526b56656e6f6d20476c616e647360a01b828701526101a087019190915286518088018852600a8152690a2ead2c6d64088c2e6d60b31b818701526101c0870152865180880188529384526f547261702050726f66696369656e637960801b848601526101e0860193909352855180870187529283526b486f72736520526964696e6760a01b83850152610200850192909252845180860186529182526c4475616c2d5769656c64696e6760981b828401526102208401919091528351808501909452601484527f4669726561726d732050726f66696369656e637900000000000000000000000091840191909152610240820192909252620007eb916015919062001ac9565b506040805161024081018252601061020082018181526f456172746820526573697374616e636560801b6102208401528252825180840184528181526f466c616d6520526573697374616e636560801b60208281019190915280840191909152835180850185528281526f576174657220526573697374616e636560801b8183015283850152835180850185528281526f53746f726d20526573697374616e636560801b81830152606084015283518085018552600e81526d41697220526573697374616e636560901b818301526080840152835180850185526011815270416e696d616c20526573697374616e636560781b8183015260a08401528351808501855260128152714d6f6e7374657220526573697374616e636560701b8183015260c0840152835180850185528281526f4d6167696320526573697374616e636560801b8183015260e084015283518085018552600f81526e506f69736f6e20496d6d756e69747960881b8183015261010084015283518085018552601481527f456c656d656e74616c204162736f727074696f6e0000000000000000000000008183015261012084015283518085018552600a8152691119585d1a0815d85c9960b21b8183015261014084015283518085018552600c8082526b26b0b3b4b19020b936b7bab960a11b82840152610160850191909152845180860186528181526b4d6972726f7220496d61676560a01b81840152610180850152845180860186528381526f28343cb9b4b1b0b6102130b93934b2b960811b818401526101a085015284518086018652600d81526c26b0b3b4b1902130b93934b2b960991b818401526101c0850152845180860190955284526b2234b0b6b7b7321029b5b4b760a11b908401526101e082019290925262000a8a916016919062001b1b565b506040805161034081018252600d61030082018181526c2a32b632b837b93a30ba34b7b760991b610320840152825282518084018452600c8082526b4d696e642072656164696e6760a01b60208381019190915280850192909252845180860186528381526c11585c9d1a08151bdd58da1959609a1b8184015284860152845180860186528381526c119b185b5948151bdd58da1959609a1b818401526060850152845180860186528381526c15d85d195c88151bdd58da1959609a1b818401526080850152845180860186528381526c14dd1bdc9b48151bdd58da1959609a1b8184015260a085015284518086018652600b8082526a105a5c88151bdd58da195960aa1b8285015260c0860191909152855180870187526007808252664865616c696e6760c81b8286015260e087019190915286518088018852601181527020b9ba3930b610283937b532b1ba34b7b760791b81860152610100870152865180880188529283526b496e7669736962696c69747960a01b83850152610120860192909252855180870187528481526c53686170657368696674696e6760981b8185015261014086015285518087018752600a80825269119bdc98d9599a595b1960b21b82860152610160870191909152865180880188529283526650686173696e6760c81b83850152610180860192909252855180870187528481526c2a34b6b2902234b630ba34b7b760991b818501526101a0860152855180870187528181526a151a5b5948151c985d995b60aa1b818501526101c086015285518087018752601081526f14da5e9948115b9a185b98d95b595b9d60821b818501526101e086015285518087018752600e81526d29b4bd32902932b23ab1ba34b7b760911b81850152610200860152855180870187528181526a4c61736572204265616d7360a81b8185015261022086015285518087018752601481527f4865616c746820526567656e65726174696f6e200000000000000000000000008185015261024086015285518087018752600f81526e496e76756c6e65726162696c69747960881b8185015261026086015285518087018752600981526854656c65706174687960b81b81850152610280860152855180870187529081526a54656c656b696e6573697360a81b818401526102a0850152845180860186529283526c29b834b934ba102bb0b635b2b960991b838301526102c08401929092528351808501909452908352692632bb34ba30ba34b7b760b11b908301526102e081019190915262000e3990601790601862001b6d565b506040805161024081018252600b61020082018181526a2334b932b9ba30b93a32b960a91b61022084015282528251808401845260058152644d6564696360d81b602082810191909152808401919091528351808501855260078082526646697368696e6760c81b8284015284860191909152845180860186529283526a2bb7b7b21021baba3a32b960a91b83830152606084019290925283518085018552600a8082526920ba3a3930b1ba34b7b760b11b82840152608085019190915284518086018652838152661058dc9bd8985d60ca1b8184015260a085015284518086018652600e8082526d20b734b6b0b6102430b7323632b960911b8285015260c086019190915285518087018752828152692832b939bab0b9b4b7b760b11b8185015260e086015285518087018752600c8082526b24b73a34b6b4b230ba34b7b760a11b8286015261010087019190915286518088018852858152660a6e8cac2d8e8d60cb1b81860152610120870152865180880188529485526614995d1c99585d60ca1b85850152610140860194909452855180870187529182526943616d6f666c6167756560b01b82840152610160850191909152845180860186529081526d467572696f75732043686172676560901b81830152610180840152835180850185528281526b29b6b7b5b29029b1b932b2b760a11b818301526101a084015283518085018552600681526553747261666560d01b818301526101c084015283518085019094529083526b2232b0ba34102237b233b2b960a11b908301526101e08101919091526200109090601890601062001b1b565b50604080516102e081018252600d6102a082018181526c2837ba34b7b710213932bbb2b960991b6102c08401528252825180840184528181526c22b634bc32b910213932bbb2b960991b6020828101919091528084019190915283518085018552600980825268105b18da195b5a5cdd60ba1b828401528486019190915284518086018652600481526321b432b360e11b81840152606085015284518086018652600c8082526b098cac2e8d0cae4e6dad2e8d60a31b82850152608086019190915285518087018752600a815269084d8c2c6d6e6dad2e8d60b31b8185015260a0860152855180870187528281526821b930b33a39b6b0b760b91b8185015260c086015285518087018752600680825265243ab73a32b960d11b8286015260e087019190915286518088018852838152682334b9b432b936b0b760b91b8186015261010087015286518088018852818152652bb2b0bb32b960d11b81860152610120870152865180880188528281526b23b932b2b739b5b2b2b832b960a11b81860152610140870152865180880188529283526808eded8c8e6dad2e8d60bb1b8385015261016086019290925285518087018752600581526426b4b732b960d91b8185015261018086015285518087018752601181527029b634b733b9b437ba1021b930b33a32b960791b818501526101a086015285518087018752918252652330b936b2b960d11b828401526101c08501919091528451808601865260088152674d656368616e696360c01b818401526101e0850152845180860186528381526c2a3932b731b4102234b3b3b2b960991b81840152610200850152845180860186529081526b2a3930b810213ab4b63232b960a11b8183015261022084015283518085018552601081526f2334b932b0b936b99021b930b33a32b960811b8183015261024084015283518085018552600b81526a2137bb9021b930b33a32b960a91b8183015261026084015283518085019094529083526c2437bab9b290213ab4b63232b960991b908301526102808101919091526200139690601990601562001bbf565b50604080516103208101825260086102e082018181526714185b9a58dad95960c21b6103008401528252825180840184526007808252661199585c999d5b60ca1b60208381019190915280850192909252845180860186526006808252651059191a58dd60d21b8285015285870191909152855180870187528181526510dd5c9cd95960d21b818501526060860152855180870187528281526623b63aba3a37b760c91b8185015260808601528551808701875260098082526847756c696c69626c6560b81b8286015260a087019190915286518088018852600a80825269496c6c6974657261746560b01b8287015260c0880191909152875180890189526004808252634c617a7960e01b8288015260e08901919091528851808a018a528781526726bab93232b932b960c11b818801526101008901528851808a018a5287815267141858da599a5cdd60c21b818801526101208901528851808a018a529081526355676c7960e01b818701526101408801528751808901895284815266556e6c75636b7960c81b818701526101608801528751808901895291825268109b1bdbd91b1d5cdd60ba1b82860152610180870191909152865180880188528281526510dbddd85c9960d21b818601526101a0870152865180880188528281526547726565647960d01b818601526101c087015286518088018852828152655369636b6c7960d01b818601526101e087015286518088018852858152672337b63637bbb2b960c11b818601526102008701528651808801885290815269526562656c6c696f757360b01b81850152610220860152855180870187529081526556616e69747960d01b81840152610240850152845180860186529283526715995b99d9599d5b60c21b8383015261026084019290925283518085018552600d8082526c13dd995c98dbdb999a59195b9d609a1b82840152610280850191909152845180860186529081526c537570657273746974696f757360981b818301526102a084015283518085019094529083526614dc1bda5b195960ca1b908301526102c0810191909152620016ac90601a90601762001c11565b506040805160c081018252600e608082019081526d26b4b737b9102137b7b9ba1037b360911b60a083015281528151808301835260108082526f23b932b0ba32b9102137b7b9ba1037b360811b6020838101919091528084019290925283518085018552601181527029bab832b934b7b9102137b7b9ba1037b360791b8184015283850152835180850190945283526f29bab83932b6b2902137b7b9ba1037b360811b9083015260608101919091526200176b90601b90600462001c63565b506040518060800160405280604051806040016040528060068152602001654e6f7669636560d01b81525081526020016040518060400160405280600c81526020016b496e7465726d65646961746560a01b815250815260200160405180604001604052806006815260200165115e1c195c9d60d21b81525081526020016040518060400160405280600881526020016713585cdd195c995960c21b815250815250601c9060046200181f92919062001c63565b506040518060800160405280604051806040016040528060068152602001654e6f7669636560d01b81525081526020016040518060400160405280600c81526020016b496e7465726d65646961746560a01b81525081526020016040518060400160405280600881526020016710591d985b98d95960c21b815250815260200160405180604001604052806008815260200167556c74696d61746560c01b815250815250601d906004620018d592919062001c63565b50348015620018e357600080fd5b506040516200664738038062006647833981016040819052620019069162001dba565b604080518082018252601781527f5065726b732028666f7220416476656e747572657273290000000000000000006020808301918252835180850190945260058452645045524b5360d81b908401528151919291620019689160009162001cb5565b5080516200197e90600190602084019062001cb5565b50506001600a55506200199133620019c1565b601080546001600160a01b039092166001600160a01b031992831681179091556011805490921617905562001e29565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562001a65579160200282015b8281111562001a65578251805162001a5491849160209091019062001cb5565b509160200191906001019062001a34565b5062001a7392915062001d40565b5090565b82805482825590600052602060002090810192821562001a65579160200282015b8281111562001a65578251805162001ab891849160209091019062001cb5565b509160200191906001019062001a98565b82805482825590600052602060002090810192821562001a65579160200282015b8281111562001a65578251805162001b0a91849160209091019062001cb5565b509160200191906001019062001aea565b82805482825590600052602060002090810192821562001a65579160200282015b8281111562001a65578251805162001b5c91849160209091019062001cb5565b509160200191906001019062001b3c565b82805482825590600052602060002090810192821562001a65579160200282015b8281111562001a65578251805162001bae91849160209091019062001cb5565b509160200191906001019062001b8e565b82805482825590600052602060002090810192821562001a65579160200282015b8281111562001a65578251805162001c0091849160209091019062001cb5565b509160200191906001019062001be0565b82805482825590600052602060002090810192821562001a65579160200282015b8281111562001a65578251805162001c5291849160209091019062001cb5565b509160200191906001019062001c32565b82805482825590600052602060002090810192821562001a65579160200282015b8281111562001a65578251805162001ca491849160209091019062001cb5565b509160200191906001019062001c84565b82805462001cc39062001dec565b90600052602060002090601f01602090048101928262001ce7576000855562001d32565b82601f1062001d0257805160ff191683800117855562001d32565b8280016001018555821562001d32579182015b8281111562001d3257825182559160200191906001019062001d15565b5062001a7392915062001d61565b8082111562001a7357600062001d57828262001d78565b5060010162001d40565b5b8082111562001a73576000815560010162001d62565b50805462001d869062001dec565b6000825580601f1062001d97575050565b601f01602090049060005260206000209081019062001db7919062001d61565b50565b60006020828403121562001dcd57600080fd5b81516001600160a01b038116811462001de557600080fd5b9392505050565b600181811c9082168062001e0157607f821691505b6020821081141562001e2357634e487b7160e01b600052602260045260246000fd5b50919050565b61480e8062001e396000396000f3fe60806040526004361061026a5760003560e01c806362a79c2811610153578063a22cb465116100cb578063d866e1521161007f578063e985e9c511610064578063e985e9c514610698578063f141938a146106b8578063f2fde38b146106cd57600080fd5b8063d866e15214610663578063dd5fa96d1461068357600080fd5b8063c87b56dd116100b0578063c87b56dd14610603578063c8af172914610623578063cf8d4c221461064357600080fd5b8063a22cb465146105c3578063b88d4fde146105e357600080fd5b80638da5cb5b11610122578063a035b1fe11610107578063a035b1fe1461057a578063a0712d6814610590578063a0d06bae146105a357600080fd5b80638da5cb5b1461054757806395d89b411461056557600080fd5b806362a79c28146104d25780636352211e146104f257806370a0823114610512578063715018a61461053257600080fd5b806323b872dd116101e65780633ccfd60b116101b5578063476a19ed1161019a578063476a19ed146104725780634f6ccce7146104925780635462870d146104b257600080fd5b80633ccfd60b1461043d57806342842e0e1461045257600080fd5b806323b872dd146103bd5780632eba8a9a146103dd5780632f745c59146103fd57806333f88d221461041d57600080fd5b8063081812fc1161023d5780630e439326116102225780630e43932614610364578063156b324c1461038457806318160ddd146103a857600080fd5b8063081812fc1461030c578063095ea7b31461034457600080fd5b80630135ce841461026f57806301ffc9a7146102a557806306fdde03146102d5578063077f2cfc146102ea575b600080fd5b34801561027b57600080fd5b5061028f61028a366004613a72565b6106ed565b60405161029c91906142f1565b60405180910390f35b3480156102b157600080fd5b506102c56102c0366004613a38565b610806565b604051901515815260200161029c565b3480156102e157600080fd5b5061028f61085c565b3480156102f657600080fd5b5061030a61030536600461383e565b6108ee565b005b34801561031857600080fd5b5061032c610327366004613a72565b610987565b6040516001600160a01b03909116815260200161029c565b34801561035057600080fd5b5061030a61035f366004613a0c565b610a2d565b34801561037057600080fd5b5060105461032c906001600160a01b031681565b34801561039057600080fd5b5061039a6107d081565b60405190815260200161029c565b3480156103b457600080fd5b5060085461039a565b3480156103c957600080fd5b5061030a6103d83660046138b8565b610b5f565b3480156103e957600080fd5b5061028f6103f8366004613a72565b610be6565b34801561040957600080fd5b5061039a610418366004613a0c565b610cf0565b34801561042957600080fd5b5061030a610438366004613a72565b610d98565b34801561044957600080fd5b5061030a610e68565b34801561045e57600080fd5b5061030a61046d3660046138b8565b610f6e565b34801561047e57600080fd5b5061028f61048d366004613a72565b610f89565b34801561049e57600080fd5b5061039a6104ad366004613a72565b611093565b3480156104be57600080fd5b50600d5461032c906001600160a01b031681565b3480156104de57600080fd5b5061028f6104ed366004613a72565b611137565b3480156104fe57600080fd5b5061032c61050d366004613a72565b611241565b34801561051e57600080fd5b5061039a61052d36600461383e565b6112cc565b34801561053e57600080fd5b5061030a611366565b34801561055357600080fd5b50600b546001600160a01b031661032c565b34801561057157600080fd5b5061028f6113cc565b34801561058657600080fd5b5061039a600c5481565b61030a61059e366004613a72565b6113db565b3480156105af57600080fd5b5061028f6105be366004613a72565b61174b565b3480156105cf57600080fd5b5061030a6105de3660046139d9565b611855565b3480156105ef57600080fd5b5061030a6105fe3660046138f9565b611938565b34801561060f57600080fd5b5061028f61061e366004613a72565b6119c6565b34801561062f57600080fd5b5061028f61063e366004613a72565b611d53565b34801561064f57600080fd5b5061028f61065e366004613a72565b611e5d565b34801561066f57600080fd5b5061028f61067e366004613a72565b611f67565b34801561068f57600080fd5b5061039a612071565b3480156106a457600080fd5b506102c56106b336600461387f565b612080565b3480156106c457600080fd5b5061039a612169565b3480156106d957600080fd5b5061030a6106e836600461383e565b612173565b6060610800826040518060400160405280600481526020017f464c415700000000000000000000000000000000000000000000000000000000815250601a805480602002602001604051908101604052809291908181526020016000905b828210156107f757838290600052602060002001805461076a906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054610796906143b0565b80156107e35780601f106107b8576101008083540402835291602001916107e3565b820191906000526020600020905b8154815290600101906020018083116107c657829003601f168201915b50505050508152602001906001019061074b565b50505050612252565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610800575061080082612996565b60606000805461086b906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054610897906143b0565b80156108e45780601f106108b9576101008083540402835291602001916108e4565b820191906000526020600020905b8154815290600101906020018083116108c757829003601f168201915b5050505050905090565b600b546001600160a01b0316331461094d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000818152600260205260408120546001600160a01b0316610a115760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610944565b506000908152600460205260409020546001600160a01b031690565b6000610a3882611241565b9050806001600160a01b0316836001600160a01b03161415610ac25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610944565b336001600160a01b0382161480610ade5750610ade8133612080565b610b505760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610944565b610b5a8383612a79565b505050565b610b693382612aff565b610bdb5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610944565b610b5a838383612bdf565b6060610800826040518060400160405280600581526020017f54524149540000000000000000000000000000000000000000000000000000008152506013805480602002602001604051908101604052809291908181526020016000905b828210156107f7578382906000526020600020018054610c63906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8f906143b0565b8015610cdc5780601f10610cb157610100808354040283529160200191610cdc565b820191906000526020600020905b815481529060010190602001808311610cbf57829003601f168201915b505050505081526020019060010190610c44565b6000610cfb836112cc565b8210610d6f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610944565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600a541415610deb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610944565b6002600a55600b546001600160a01b03163314610e4a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610944565b600d54610e60906001600160a01b031682612dcf565b506001600a55565b600b546001600160a01b03163314610ec25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610944565b600d546040516000916001600160a01b031690620186a090479084818181858888f193505050503d8060008114610f15576040519150601f19603f3d011682016040523d82523d6000602084013e610f1a565b606091505b5050905080610f6b5760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e642045746865720000000000000000000000006044820152606401610944565b50565b610b5a83838360405180602001604052806000815250611938565b6060610800826040518060400160405280600881526020017f4352414654494e470000000000000000000000000000000000000000000000008152506019805480602002602001604051908101604052809291908181526020016000905b828210156107f7578382906000526020600020018054611006906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054611032906143b0565b801561107f5780601f106110545761010080835404028352916020019161107f565b820191906000526020600020905b81548152906001019060200180831161106257829003601f168201915b505050505081526020019060010190610fe7565b600061109e60085490565b82106111125760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610944565b60088281548110611125576111256144de565b90600052602060002001549050919050565b6060610800826040518060400160405280600781526020017f444546454e5345000000000000000000000000000000000000000000000000008152506016805480602002602001604051908101604052809291908181526020016000905b828210156107f75783829060005260206000200180546111b4906143b0565b80601f01602080910402602001604051908101604052809291908181526020018280546111e0906143b0565b801561122d5780601f106112025761010080835404028352916020019161122d565b820191906000526020600020905b81548152906001019060200180831161121057829003601f168201915b505050505081526020019060010190611195565b6000818152600260205260408120546001600160a01b0316806108005760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610944565b60006001600160a01b03821661134a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610944565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b031633146113c05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610944565b6113ca6000612ded565b565b60606001805461086b906143b0565b6002600a54141561142e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610944565b6002600a55611454816000908152600260205260409020546001600160a01b0316151590565b156114c75760405162461bcd60e51b815260206004820152602260248201527f5468697320746f6b656e2068617320616c7265616479206265656e206d696e7460448201527f65640000000000000000000000000000000000000000000000000000000000006064820152608401610944565b6000811180156114d957506127108111155b6115255760405162461bcd60e51b815260206004820152601060248201527f496e76616c696420746f6b656e206964000000000000000000000000000000006044820152606401610944565b600080821180156115385750611f408211155b9050801561164357336011546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b039283169290911690636352211e9060240160206040518083038186803b1580156115a257600080fd5b505afa1580156115b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115da9190613862565b6001600160a01b0316146116305760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420746865206f776e6572206f662074686973206c6f6f740000000000006044820152606401610944565b61163e600f80546001019055565b61170d565b34600c5411156116955760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610944565b600061169f612e57565b90506107d06116af826001614304565b11156116fd5760405162461bcd60e51b815260206004820152600960248201527f4d6178206c696d697400000000000000000000000000000000000000000000006044820152606401610944565b61170b600e80546001019055565b505b6117173383612dcf565b60405182907f6a1e850523f2732ede037187fbac486223d9c6f9e662c6c028495cced5f8ba2790600090a250506001600a55565b6060610800826040518060400160405280600581526020017f4d414749430000000000000000000000000000000000000000000000000000008152506017805480602002602001604051908101604052809291908181526020016000905b828210156107f75783829060005260206000200180546117c8906143b0565b80601f01602080910402602001604051908101604052809291908181526020018280546117f4906143b0565b80156118415780601f1061181657610100808354040283529160200191611841565b820191906000526020600020905b81548152906001019060200180831161182457829003601f168201915b5050505050815260200190600101906117a9565b6001600160a01b0382163314156118ae5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610944565b3360008181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6119423383612aff565b6119b45760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610944565b6119c084848484612e62565b50505050565b60606119d0613816565b60405180610120016040528060fd815260200161464b60fd913981526119f583610be6565b81600160200201819052506040518060600160405280602881526020016147b1602891396040820152611a2783611f67565b606080830191909152604080519182019052602880825261458060208301396080820152611a5483611d53565b60a0820152604080516060810190915260288082526145fa602083013960c0820152611a7f83611137565b60e0820152604080516060810190915260298082526146226020830139610100820152611aab8361174b565b610120820152604080516060810190915260298082526145d16020830139610140820152611ad883611e5d565b610160820152604080516060810190915260298082526147486020830139610180820152611b0583610f89565b6101a0820152604080516060810190915260298082526145a860208301396101c0820152611b32836106ed565b6101e0820152604080518082018252600d81527f3c2f746578743e3c2f7376673e00000000000000000000000000000000000000602080830191909152610200840191909152825181840151838501516060860151608087015160a088015160c089015160e08a01516101008b0151995160009a611bb29a909101613b61565b60408051808303601f19018152908290526101208401516101408501516101608601516101808701516101a08801516101c08901516101e08a01516102008b0151979950611c05988a9890602001613b61565b60405160208183030381529060405290506000611c2185612eeb565b611c2a8361301d565b604051602001611c3b929190613e7c565b60408051808303601f1901815290829052602080860151606087015160a088015160e0890151949650600095611c77959394929391920161409c565b60408051808303601f19018152908290526101208601516101608701516101a08801516101e0890151939550611cb294869490602001613c22565b60408051808303601f190181528282527f7d0000000000000000000000000000000000000000000000000000000000000060208401528151600181850301815260218401909252925090611d0e90849084908490604101613b1e565b6040516020818303038152906040529250611d288361301d565b604051602001611d389190614270565b60408051601f19818403018152919052979650505050505050565b6060610800826040518060400160405280600881526020017f4649474854494e470000000000000000000000000000000000000000000000008152506015805480602002602001604051908101604052809291908181526020016000905b828210156107f7578382906000526020600020018054611dd0906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054611dfc906143b0565b8015611e495780601f10611e1e57610100808354040283529160200191611e49565b820191906000526020600020905b815481529060010190602001808311611e2c57829003601f168201915b505050505081526020019060010190611db1565b6060610800826040518060400160405280600881526020017f535552564956414c0000000000000000000000000000000000000000000000008152506018805480602002602001604051908101604052809291908181526020016000905b828210156107f7578382906000526020600020018054611eda906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054611f06906143b0565b8015611f535780601f10611f2857610100808354040283529160200191611f53565b820191906000526020600020905b815481529060010190602001808311611f3657829003601f168201915b505050505081526020019060010190611ebb565b6060610800826040518060400160405280600781526020017f54524149542032000000000000000000000000000000000000000000000000008152506014805480602002602001604051908101604052809291908181526020016000905b828210156107f7578382906000526020600020018054611fe4906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054612010906143b0565b801561205d5780601f106120325761010080835404028352916020019161205d565b820191906000526020600020905b81548152906001019060200180831161204057829003601f168201915b505050505081526020019060010190611fc5565b600061207b6131f6565b905090565b6012546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b1580156120e657600080fd5b505afa1580156120fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211e9190613862565b6001600160a01b03161415612137576001915050610800565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600061207b612e57565b600b546001600160a01b031633146121cd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610944565b6001600160a01b0381166122495760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610944565b610f6b81612ded565b606060006122888461226387612eeb565b604051602001612274929190613aef565b604051602081830303815290604052613201565b9050600061229760658361443d565b6040805160208082018352600080835283519182019093528281528751939450909290919087906122c8908761443d565b815181106122d8576122d86144de565b602002602001015190506000601d805480602002602001604051908101604052809291908181526020016000905b828210156123b2578382906000526020600020018054612325906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054612351906143b0565b801561239e5780601f106123735761010080835404028352916020019161239e565b820191906000526020600020905b81548152906001019060200180831161238157829003601f168201915b505050505081526020019060010190612306565b5050505090506040516020016123eb907f5452414954000000000000000000000000000000000000000000000000000000815260050190565b60405160208183030381529060405280519060200120896040516020016124129190613ad3565b604051602081830303815290604052805190602001201415612455578160405160200161243f9190613ad3565b6040516020818303038152906040529150612989565b6040517f5452414954203200000000000000000000000000000000000000000000000000602082015260270160405160208183030381529060405280519060200120896040516020016124a89190613ad3565b604051602081830303815290604052805190602001201415612699578460001080156124d55750603c8511155b1561258857601b6000815481106124ee576124ee6144de565b906000526020600020018054612503906143b0565b80601f016020809104026020016040519081016040528092919081815260200182805461252f906143b0565b801561257c5780601f106125515761010080835404028352916020019161257c565b820191906000526020600020905b81548152906001019060200180831161255f57829003601f168201915b50505050509350612686565b84603c1080156125995750605a8511155b156125b257601b6001815481106124ee576124ee6144de565b84605a1080156125c3575060628511155b156125dc57601b6002815481106124ee576124ee6144de565b601b6003815481106125f0576125f06144de565b906000526020600020018054612605906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054612631906143b0565b801561267e5780601f106126535761010080835404028352916020019161267e565b820191906000526020600020905b81548152906001019060200180831161266157829003601f168201915b505050505093505b838260405160200161243f929190613e24565b6040517f464c415700000000000000000000000000000000000000000000000000000000602082015260240160405160208183030381529060405280519060200120896040516020016126ec9190613ad3565b6040516020818303038152906040528051906020012014612989576040517f4649474854494e470000000000000000000000000000000000000000000000006020820152602801604051602081830303815290604052805190602001208960405160200161275a9190613ad3565b6040516020818303038152906040528051906020012014806127e257506040517f4352414654494e47000000000000000000000000000000000000000000000000602082015260280160405160208183030381529060405280519060200120896040516020016127ca9190613ad3565b60405160208183030381529060405280519060200120145b156128bc57601c805480602002602001604051908101604052809291908181526020016000905b828210156128b5578382906000526020600020018054612828906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054612854906143b0565b80156128a15780601f10612876576101008083540402835291602001916128a1565b820191906000526020600020905b81548152906001019060200180831161288457829003601f168201915b505050505081526020019060010190612809565b5050505090505b8460001080156128cd5750603c8511155b156128f457806000815181106128e5576128e56144de565b60200260200101519250612964565b84603c1080156129055750605a8511155b1561291d57806001815181106128e5576128e56144de565b84605a10801561292e575060628511155b1561294657806002815181106128e5576128e56144de565b80600381518110612959576129596144de565b602002602001015192505b8282604051602001612977929190613e24565b60405160208183030381529060405291505b5098975050505050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612a2957507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061080057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610800565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190612ac682611241565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612b895760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610944565b6000612b9483611241565b9050806001600160a01b0316846001600160a01b03161480612bcf5750836001600160a01b0316612bc484610987565b6001600160a01b0316145b8061216157506121618185612080565b826001600160a01b0316612bf282611241565b6001600160a01b031614612c6e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610944565b6001600160a01b038216612ce95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610944565b612cf4838383613232565b612cff600082612a79565b6001600160a01b0383166000908152600360205260408120805460019290612d2890849061436d565b90915550506001600160a01b0382166000908152600360205260408120805460019290612d56908490614304565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612de98282604051806020016040528060008152506132ea565b5050565b600b80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061207b600e5490565b612e6d848484612bdf565b612e7984848484613373565b6119c05760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610944565b606081612f2b57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612f555780612f3f81614404565b9150612f4e9050600a8361431c565b9150612f2f565b60008167ffffffffffffffff811115612f7057612f7061450d565b6040519080825280601f01601f191660200182016040528015612f9a576020820181803683370190505b5090505b841561216157612faf60018361436d565b9150612fbc600a8661443d565b612fc7906030614304565b60f81b818381518110612fdc57612fdc6144de565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613016600a8661431c565b9450612f9e565b80516060908061303d575050604080516020810190915260008152919050565b6000600361304c836002614304565b613056919061431c565b613061906004614330565b90506000613070826020614304565b67ffffffffffffffff8111156130885761308861450d565b6040519080825280601f01601f1916602001820160405280156130b2576020820181803683370190505b5090506000604051806060016040528060408152602001614771604091399050600181016020830160005b8681101561313e576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016130dd565b50600386066001811461315857600281146131a2576131e8565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe8301526131e8565b7f3d000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301525b505050918152949350505050565b600061207b600f5490565b6000816040516020016132149190613ad3565b60408051601f19818403018152919052805160209091012092915050565b6001600160a01b03831661328d5761328881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6132b0565b816001600160a01b0316836001600160a01b0316146132b0576132b08382613520565b6001600160a01b0382166132c757610b5a816135bd565b826001600160a01b0316826001600160a01b031614610b5a57610b5a828261366c565b6132f483836136b0565b6133016000848484613373565b610b5a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610944565b60006001600160a01b0384163b15613515576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906133d09033908990889088906004016142b5565b602060405180830381600087803b1580156133ea57600080fd5b505af192505050801561341a575060408051601f3d908101601f1916820190925261341791810190613a55565b60015b6134ca573d808015613448576040519150601f19603f3d011682016040523d82523d6000602084013e61344d565b606091505b5080516134c25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610944565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612161565b506001949350505050565b6000600161352d846112cc565b613537919061436d565b60008381526007602052604090205490915080821461358a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906135cf9060019061436d565b600083815260096020526040812054600880549394509092849081106135f7576135f76144de565b906000526020600020015490508060088381548110613618576136186144de565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613650576136506144af565b6001900381819060005260206000200160009055905550505050565b6000613677836112cc565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166137065760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610944565b6000818152600260205260409020546001600160a01b03161561376b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610944565b61377760008383613232565b6001600160a01b03821660009081526003602052604081208054600192906137a0908490614304565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040518061022001604052806011905b60608152602001906001900390816138265790505090565b60006020828403121561385057600080fd5b813561385b8161453c565b9392505050565b60006020828403121561387457600080fd5b815161385b8161453c565b6000806040838503121561389257600080fd5b823561389d8161453c565b915060208301356138ad8161453c565b809150509250929050565b6000806000606084860312156138cd57600080fd5b83356138d88161453c565b925060208401356138e88161453c565b929592945050506040919091013590565b6000806000806080858703121561390f57600080fd5b843561391a8161453c565b9350602085013561392a8161453c565b925060408501359150606085013567ffffffffffffffff8082111561394e57600080fd5b818701915087601f83011261396257600080fd5b8135818111156139745761397461450d565b604051601f8201601f19908116603f0116810190838211818310171561399c5761399c61450d565b816040528281528a60208487010111156139b557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156139ec57600080fd5b82356139f78161453c565b9150602083013580151581146138ad57600080fd5b60008060408385031215613a1f57600080fd5b8235613a2a8161453c565b946020939093013593505050565b600060208284031215613a4a57600080fd5b813561385b81614551565b600060208284031215613a6757600080fd5b815161385b81614551565b600060208284031215613a8457600080fd5b5035919050565b60008151808452613aa3816020860160208601614384565b601f01601f19169290920160200192915050565b60008151613ac9818560208601614384565b9290920192915050565b60008251613ae5818460208701614384565b9190910192915050565b60008351613b01818460208801614384565b835190830190613b15818360208801614384565b01949350505050565b60008451613b30818460208901614384565b845190830190613b44818360208901614384565b8451910190613b57818360208801614384565b0195945050505050565b60008a51613b73818460208f01614384565b8a51613b858183860160208f01614384565b8a519184010190613b9a818360208e01614384565b8951613bac8183850160208e01614384565b8951929091010190613bc2818360208c01614384565b8751613bd48183850160208c01614384565b8751929091010190613bea818360208a01614384565b8551613bfc8183850160208a01614384565b8551929091010190613c12818360208801614384565b019b9a5050505050505050505050565b60008651613c34818460208b01614384565b80830190507f7b2274726169745f74797065223a20224d61676963222c202276616c7565223a81527f202200000000000000000000000000000000000000000000000000000000000060208201528651613c95816022840160208b01614384565b8082019150507f22207d2c000000000000000000000000000000000000000000000000000000008060228301527f7b2274726169745f74797065223a2022537572766976616c222c202276616c7560268301527f65223a20220000000000000000000000000000000000000000000000000000008060468401528751613d2281604b860160208c01614384565b604b9301928301919091527f7b2274726169745f74797065223a20224372616674696e67222c202276616c75604f830152606f820152613e18613def613de9613d9a613d71607486018a613ab7565b7f22207d2c00000000000000000000000000000000000000000000000000000000815260040190565b7f7b2274726169745f74797065223a2022466c61776564222c202276616c75652281527f3a20220000000000000000000000000000000000000000000000000000000000602082015260230190565b86613ab7565b7f22207d5d00000000000000000000000000000000000000000000000000000000815260040190565b98975050505050505050565b60008351613e36818460208801614384565b7f20000000000000000000000000000000000000000000000000000000000000009083019081528351613e70816001840160208801614384565b01600101949350505050565b7f7b0000000000000000000000000000000000000000000000000000000000000081527f226e616d65223a20225065726b20426167202300000000000000000000000000600182015260008351613eda816014850160208801614384565b7f222c2000000000000000000000000000000000000000000000000000000000006014918401918201527f226465736372697074696f6e223a20224c6f6f742069732072616e646f6d697a60178201527f656420616476656e747572657220676561722067656e65726174656420616e6460378201527f2073746f726564206f6e20636861696e2e2053746174732c20696d616765732c60578201527f20616e64206f746865722066756e6374696f6e616c6974792061726520696e7460778201527f656e74696f6e616c6c79206f6d697474656420666f72206f746865727320746f60978201527f20696e746572707265742e204665656c206672656520746f20757365204c6f6f60b78201527f7420696e20616e792077617920796f752077616e742e222c200000000000000060d782015261409361406a613de960f084017f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b62617381527f6536342c00000000000000000000000000000000000000000000000000000000602082015260240190565b7f222c000000000000000000000000000000000000000000000000000000000000815260020190565b95945050505050565b7f2261747472696275746573223a205b000000000000000000000000000000000081527f7b2274726169745f74797065223a2022526177205472616974222c202276616c600f8201527f7565223a20220000000000000000000000000000000000000000000000000000602f82015260008551614120816035850160208a01614384565b80830190507f22207d2c000000000000000000000000000000000000000000000000000000008060358301527f7b2274726169745f74797065223a20225261772054726169742032222c20227660398301527f616c7565223a2022000000000000000000000000000000000000000000000000605983015286516141ab816061850160208b01614384565b60619201918201527f7b2274726169745f74797065223a20224669676874696e67222c202276616c7560658201527f65223a20220000000000000000000000000000000000000000000000000000006085820152614265613d71613de961421682608a86018a613ab7565b7f7b2274726169745f74797065223a2022446566656e7365222c202276616c756581527f223a202200000000000000000000000000000000000000000000000000000000602082015260240190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516142a881601d850160208701614384565b91909101601d0192915050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526142e76080830184613a8b565b9695505050505050565b60208152600061385b6020830184613a8b565b6000821982111561431757614317614451565b500190565b60008261432b5761432b614480565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561436857614368614451565b500290565b60008282101561437f5761437f614451565b500390565b60005b8381101561439f578181015183820152602001614387565b838111156119c05750506000910152565b600181811c908216806143c457607f821691505b602082108114156143fe577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561443657614436614451565b5060010190565b60008261444c5761444c614480565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b0381168114610f6b57600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610f6b57600080fdfe3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223136302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d2238302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173733d2262617365223e3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223134302220636c6173733d2262617365223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d2262617365223ea2646970667358221220e17eba1186810bdb786bfcdc368698283edb2176dc49145c6edb652e49bf1bbb64736f6c63430008070033000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d7

Deployed Bytecode

0x60806040526004361061026a5760003560e01c806362a79c2811610153578063a22cb465116100cb578063d866e1521161007f578063e985e9c511610064578063e985e9c514610698578063f141938a146106b8578063f2fde38b146106cd57600080fd5b8063d866e15214610663578063dd5fa96d1461068357600080fd5b8063c87b56dd116100b0578063c87b56dd14610603578063c8af172914610623578063cf8d4c221461064357600080fd5b8063a22cb465146105c3578063b88d4fde146105e357600080fd5b80638da5cb5b11610122578063a035b1fe11610107578063a035b1fe1461057a578063a0712d6814610590578063a0d06bae146105a357600080fd5b80638da5cb5b1461054757806395d89b411461056557600080fd5b806362a79c28146104d25780636352211e146104f257806370a0823114610512578063715018a61461053257600080fd5b806323b872dd116101e65780633ccfd60b116101b5578063476a19ed1161019a578063476a19ed146104725780634f6ccce7146104925780635462870d146104b257600080fd5b80633ccfd60b1461043d57806342842e0e1461045257600080fd5b806323b872dd146103bd5780632eba8a9a146103dd5780632f745c59146103fd57806333f88d221461041d57600080fd5b8063081812fc1161023d5780630e439326116102225780630e43932614610364578063156b324c1461038457806318160ddd146103a857600080fd5b8063081812fc1461030c578063095ea7b31461034457600080fd5b80630135ce841461026f57806301ffc9a7146102a557806306fdde03146102d5578063077f2cfc146102ea575b600080fd5b34801561027b57600080fd5b5061028f61028a366004613a72565b6106ed565b60405161029c91906142f1565b60405180910390f35b3480156102b157600080fd5b506102c56102c0366004613a38565b610806565b604051901515815260200161029c565b3480156102e157600080fd5b5061028f61085c565b3480156102f657600080fd5b5061030a61030536600461383e565b6108ee565b005b34801561031857600080fd5b5061032c610327366004613a72565b610987565b6040516001600160a01b03909116815260200161029c565b34801561035057600080fd5b5061030a61035f366004613a0c565b610a2d565b34801561037057600080fd5b5060105461032c906001600160a01b031681565b34801561039057600080fd5b5061039a6107d081565b60405190815260200161029c565b3480156103b457600080fd5b5060085461039a565b3480156103c957600080fd5b5061030a6103d83660046138b8565b610b5f565b3480156103e957600080fd5b5061028f6103f8366004613a72565b610be6565b34801561040957600080fd5b5061039a610418366004613a0c565b610cf0565b34801561042957600080fd5b5061030a610438366004613a72565b610d98565b34801561044957600080fd5b5061030a610e68565b34801561045e57600080fd5b5061030a61046d3660046138b8565b610f6e565b34801561047e57600080fd5b5061028f61048d366004613a72565b610f89565b34801561049e57600080fd5b5061039a6104ad366004613a72565b611093565b3480156104be57600080fd5b50600d5461032c906001600160a01b031681565b3480156104de57600080fd5b5061028f6104ed366004613a72565b611137565b3480156104fe57600080fd5b5061032c61050d366004613a72565b611241565b34801561051e57600080fd5b5061039a61052d36600461383e565b6112cc565b34801561053e57600080fd5b5061030a611366565b34801561055357600080fd5b50600b546001600160a01b031661032c565b34801561057157600080fd5b5061028f6113cc565b34801561058657600080fd5b5061039a600c5481565b61030a61059e366004613a72565b6113db565b3480156105af57600080fd5b5061028f6105be366004613a72565b61174b565b3480156105cf57600080fd5b5061030a6105de3660046139d9565b611855565b3480156105ef57600080fd5b5061030a6105fe3660046138f9565b611938565b34801561060f57600080fd5b5061028f61061e366004613a72565b6119c6565b34801561062f57600080fd5b5061028f61063e366004613a72565b611d53565b34801561064f57600080fd5b5061028f61065e366004613a72565b611e5d565b34801561066f57600080fd5b5061028f61067e366004613a72565b611f67565b34801561068f57600080fd5b5061039a612071565b3480156106a457600080fd5b506102c56106b336600461387f565b612080565b3480156106c457600080fd5b5061039a612169565b3480156106d957600080fd5b5061030a6106e836600461383e565b612173565b6060610800826040518060400160405280600481526020017f464c415700000000000000000000000000000000000000000000000000000000815250601a805480602002602001604051908101604052809291908181526020016000905b828210156107f757838290600052602060002001805461076a906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054610796906143b0565b80156107e35780601f106107b8576101008083540402835291602001916107e3565b820191906000526020600020905b8154815290600101906020018083116107c657829003601f168201915b50505050508152602001906001019061074b565b50505050612252565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610800575061080082612996565b60606000805461086b906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054610897906143b0565b80156108e45780601f106108b9576101008083540402835291602001916108e4565b820191906000526020600020905b8154815290600101906020018083116108c757829003601f168201915b5050505050905090565b600b546001600160a01b0316331461094d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000818152600260205260408120546001600160a01b0316610a115760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610944565b506000908152600460205260409020546001600160a01b031690565b6000610a3882611241565b9050806001600160a01b0316836001600160a01b03161415610ac25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610944565b336001600160a01b0382161480610ade5750610ade8133612080565b610b505760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610944565b610b5a8383612a79565b505050565b610b693382612aff565b610bdb5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610944565b610b5a838383612bdf565b6060610800826040518060400160405280600581526020017f54524149540000000000000000000000000000000000000000000000000000008152506013805480602002602001604051908101604052809291908181526020016000905b828210156107f7578382906000526020600020018054610c63906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8f906143b0565b8015610cdc5780601f10610cb157610100808354040283529160200191610cdc565b820191906000526020600020905b815481529060010190602001808311610cbf57829003601f168201915b505050505081526020019060010190610c44565b6000610cfb836112cc565b8210610d6f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610944565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600a541415610deb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610944565b6002600a55600b546001600160a01b03163314610e4a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610944565b600d54610e60906001600160a01b031682612dcf565b506001600a55565b600b546001600160a01b03163314610ec25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610944565b600d546040516000916001600160a01b031690620186a090479084818181858888f193505050503d8060008114610f15576040519150601f19603f3d011682016040523d82523d6000602084013e610f1a565b606091505b5050905080610f6b5760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e642045746865720000000000000000000000006044820152606401610944565b50565b610b5a83838360405180602001604052806000815250611938565b6060610800826040518060400160405280600881526020017f4352414654494e470000000000000000000000000000000000000000000000008152506019805480602002602001604051908101604052809291908181526020016000905b828210156107f7578382906000526020600020018054611006906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054611032906143b0565b801561107f5780601f106110545761010080835404028352916020019161107f565b820191906000526020600020905b81548152906001019060200180831161106257829003601f168201915b505050505081526020019060010190610fe7565b600061109e60085490565b82106111125760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610944565b60088281548110611125576111256144de565b90600052602060002001549050919050565b6060610800826040518060400160405280600781526020017f444546454e5345000000000000000000000000000000000000000000000000008152506016805480602002602001604051908101604052809291908181526020016000905b828210156107f75783829060005260206000200180546111b4906143b0565b80601f01602080910402602001604051908101604052809291908181526020018280546111e0906143b0565b801561122d5780601f106112025761010080835404028352916020019161122d565b820191906000526020600020905b81548152906001019060200180831161121057829003601f168201915b505050505081526020019060010190611195565b6000818152600260205260408120546001600160a01b0316806108005760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610944565b60006001600160a01b03821661134a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610944565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b031633146113c05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610944565b6113ca6000612ded565b565b60606001805461086b906143b0565b6002600a54141561142e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610944565b6002600a55611454816000908152600260205260409020546001600160a01b0316151590565b156114c75760405162461bcd60e51b815260206004820152602260248201527f5468697320746f6b656e2068617320616c7265616479206265656e206d696e7460448201527f65640000000000000000000000000000000000000000000000000000000000006064820152608401610944565b6000811180156114d957506127108111155b6115255760405162461bcd60e51b815260206004820152601060248201527f496e76616c696420746f6b656e206964000000000000000000000000000000006044820152606401610944565b600080821180156115385750611f408211155b9050801561164357336011546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b039283169290911690636352211e9060240160206040518083038186803b1580156115a257600080fd5b505afa1580156115b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115da9190613862565b6001600160a01b0316146116305760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420746865206f776e6572206f662074686973206c6f6f740000000000006044820152606401610944565b61163e600f80546001019055565b61170d565b34600c5411156116955760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610944565b600061169f612e57565b90506107d06116af826001614304565b11156116fd5760405162461bcd60e51b815260206004820152600960248201527f4d6178206c696d697400000000000000000000000000000000000000000000006044820152606401610944565b61170b600e80546001019055565b505b6117173383612dcf565b60405182907f6a1e850523f2732ede037187fbac486223d9c6f9e662c6c028495cced5f8ba2790600090a250506001600a55565b6060610800826040518060400160405280600581526020017f4d414749430000000000000000000000000000000000000000000000000000008152506017805480602002602001604051908101604052809291908181526020016000905b828210156107f75783829060005260206000200180546117c8906143b0565b80601f01602080910402602001604051908101604052809291908181526020018280546117f4906143b0565b80156118415780601f1061181657610100808354040283529160200191611841565b820191906000526020600020905b81548152906001019060200180831161182457829003601f168201915b5050505050815260200190600101906117a9565b6001600160a01b0382163314156118ae5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610944565b3360008181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6119423383612aff565b6119b45760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610944565b6119c084848484612e62565b50505050565b60606119d0613816565b60405180610120016040528060fd815260200161464b60fd913981526119f583610be6565b81600160200201819052506040518060600160405280602881526020016147b1602891396040820152611a2783611f67565b606080830191909152604080519182019052602880825261458060208301396080820152611a5483611d53565b60a0820152604080516060810190915260288082526145fa602083013960c0820152611a7f83611137565b60e0820152604080516060810190915260298082526146226020830139610100820152611aab8361174b565b610120820152604080516060810190915260298082526145d16020830139610140820152611ad883611e5d565b610160820152604080516060810190915260298082526147486020830139610180820152611b0583610f89565b6101a0820152604080516060810190915260298082526145a860208301396101c0820152611b32836106ed565b6101e0820152604080518082018252600d81527f3c2f746578743e3c2f7376673e00000000000000000000000000000000000000602080830191909152610200840191909152825181840151838501516060860151608087015160a088015160c089015160e08a01516101008b0151995160009a611bb29a909101613b61565b60408051808303601f19018152908290526101208401516101408501516101608601516101808701516101a08801516101c08901516101e08a01516102008b0151979950611c05988a9890602001613b61565b60405160208183030381529060405290506000611c2185612eeb565b611c2a8361301d565b604051602001611c3b929190613e7c565b60408051808303601f1901815290829052602080860151606087015160a088015160e0890151949650600095611c77959394929391920161409c565b60408051808303601f19018152908290526101208601516101608701516101a08801516101e0890151939550611cb294869490602001613c22565b60408051808303601f190181528282527f7d0000000000000000000000000000000000000000000000000000000000000060208401528151600181850301815260218401909252925090611d0e90849084908490604101613b1e565b6040516020818303038152906040529250611d288361301d565b604051602001611d389190614270565b60408051601f19818403018152919052979650505050505050565b6060610800826040518060400160405280600881526020017f4649474854494e470000000000000000000000000000000000000000000000008152506015805480602002602001604051908101604052809291908181526020016000905b828210156107f7578382906000526020600020018054611dd0906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054611dfc906143b0565b8015611e495780601f10611e1e57610100808354040283529160200191611e49565b820191906000526020600020905b815481529060010190602001808311611e2c57829003601f168201915b505050505081526020019060010190611db1565b6060610800826040518060400160405280600881526020017f535552564956414c0000000000000000000000000000000000000000000000008152506018805480602002602001604051908101604052809291908181526020016000905b828210156107f7578382906000526020600020018054611eda906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054611f06906143b0565b8015611f535780601f10611f2857610100808354040283529160200191611f53565b820191906000526020600020905b815481529060010190602001808311611f3657829003601f168201915b505050505081526020019060010190611ebb565b6060610800826040518060400160405280600781526020017f54524149542032000000000000000000000000000000000000000000000000008152506014805480602002602001604051908101604052809291908181526020016000905b828210156107f7578382906000526020600020018054611fe4906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054612010906143b0565b801561205d5780601f106120325761010080835404028352916020019161205d565b820191906000526020600020905b81548152906001019060200180831161204057829003601f168201915b505050505081526020019060010190611fc5565b600061207b6131f6565b905090565b6012546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b1580156120e657600080fd5b505afa1580156120fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211e9190613862565b6001600160a01b03161415612137576001915050610800565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600061207b612e57565b600b546001600160a01b031633146121cd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610944565b6001600160a01b0381166122495760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610944565b610f6b81612ded565b606060006122888461226387612eeb565b604051602001612274929190613aef565b604051602081830303815290604052613201565b9050600061229760658361443d565b6040805160208082018352600080835283519182019093528281528751939450909290919087906122c8908761443d565b815181106122d8576122d86144de565b602002602001015190506000601d805480602002602001604051908101604052809291908181526020016000905b828210156123b2578382906000526020600020018054612325906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054612351906143b0565b801561239e5780601f106123735761010080835404028352916020019161239e565b820191906000526020600020905b81548152906001019060200180831161238157829003601f168201915b505050505081526020019060010190612306565b5050505090506040516020016123eb907f5452414954000000000000000000000000000000000000000000000000000000815260050190565b60405160208183030381529060405280519060200120896040516020016124129190613ad3565b604051602081830303815290604052805190602001201415612455578160405160200161243f9190613ad3565b6040516020818303038152906040529150612989565b6040517f5452414954203200000000000000000000000000000000000000000000000000602082015260270160405160208183030381529060405280519060200120896040516020016124a89190613ad3565b604051602081830303815290604052805190602001201415612699578460001080156124d55750603c8511155b1561258857601b6000815481106124ee576124ee6144de565b906000526020600020018054612503906143b0565b80601f016020809104026020016040519081016040528092919081815260200182805461252f906143b0565b801561257c5780601f106125515761010080835404028352916020019161257c565b820191906000526020600020905b81548152906001019060200180831161255f57829003601f168201915b50505050509350612686565b84603c1080156125995750605a8511155b156125b257601b6001815481106124ee576124ee6144de565b84605a1080156125c3575060628511155b156125dc57601b6002815481106124ee576124ee6144de565b601b6003815481106125f0576125f06144de565b906000526020600020018054612605906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054612631906143b0565b801561267e5780601f106126535761010080835404028352916020019161267e565b820191906000526020600020905b81548152906001019060200180831161266157829003601f168201915b505050505093505b838260405160200161243f929190613e24565b6040517f464c415700000000000000000000000000000000000000000000000000000000602082015260240160405160208183030381529060405280519060200120896040516020016126ec9190613ad3565b6040516020818303038152906040528051906020012014612989576040517f4649474854494e470000000000000000000000000000000000000000000000006020820152602801604051602081830303815290604052805190602001208960405160200161275a9190613ad3565b6040516020818303038152906040528051906020012014806127e257506040517f4352414654494e47000000000000000000000000000000000000000000000000602082015260280160405160208183030381529060405280519060200120896040516020016127ca9190613ad3565b60405160208183030381529060405280519060200120145b156128bc57601c805480602002602001604051908101604052809291908181526020016000905b828210156128b5578382906000526020600020018054612828906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054612854906143b0565b80156128a15780601f10612876576101008083540402835291602001916128a1565b820191906000526020600020905b81548152906001019060200180831161288457829003601f168201915b505050505081526020019060010190612809565b5050505090505b8460001080156128cd5750603c8511155b156128f457806000815181106128e5576128e56144de565b60200260200101519250612964565b84603c1080156129055750605a8511155b1561291d57806001815181106128e5576128e56144de565b84605a10801561292e575060628511155b1561294657806002815181106128e5576128e56144de565b80600381518110612959576129596144de565b602002602001015192505b8282604051602001612977929190613e24565b60405160208183030381529060405291505b5098975050505050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612a2957507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061080057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610800565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190612ac682611241565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612b895760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610944565b6000612b9483611241565b9050806001600160a01b0316846001600160a01b03161480612bcf5750836001600160a01b0316612bc484610987565b6001600160a01b0316145b8061216157506121618185612080565b826001600160a01b0316612bf282611241565b6001600160a01b031614612c6e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610944565b6001600160a01b038216612ce95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610944565b612cf4838383613232565b612cff600082612a79565b6001600160a01b0383166000908152600360205260408120805460019290612d2890849061436d565b90915550506001600160a01b0382166000908152600360205260408120805460019290612d56908490614304565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612de98282604051806020016040528060008152506132ea565b5050565b600b80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061207b600e5490565b612e6d848484612bdf565b612e7984848484613373565b6119c05760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610944565b606081612f2b57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612f555780612f3f81614404565b9150612f4e9050600a8361431c565b9150612f2f565b60008167ffffffffffffffff811115612f7057612f7061450d565b6040519080825280601f01601f191660200182016040528015612f9a576020820181803683370190505b5090505b841561216157612faf60018361436d565b9150612fbc600a8661443d565b612fc7906030614304565b60f81b818381518110612fdc57612fdc6144de565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613016600a8661431c565b9450612f9e565b80516060908061303d575050604080516020810190915260008152919050565b6000600361304c836002614304565b613056919061431c565b613061906004614330565b90506000613070826020614304565b67ffffffffffffffff8111156130885761308861450d565b6040519080825280601f01601f1916602001820160405280156130b2576020820181803683370190505b5090506000604051806060016040528060408152602001614771604091399050600181016020830160005b8681101561313e576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016130dd565b50600386066001811461315857600281146131a2576131e8565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe8301526131e8565b7f3d000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301525b505050918152949350505050565b600061207b600f5490565b6000816040516020016132149190613ad3565b60408051601f19818403018152919052805160209091012092915050565b6001600160a01b03831661328d5761328881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6132b0565b816001600160a01b0316836001600160a01b0316146132b0576132b08382613520565b6001600160a01b0382166132c757610b5a816135bd565b826001600160a01b0316826001600160a01b031614610b5a57610b5a828261366c565b6132f483836136b0565b6133016000848484613373565b610b5a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610944565b60006001600160a01b0384163b15613515576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906133d09033908990889088906004016142b5565b602060405180830381600087803b1580156133ea57600080fd5b505af192505050801561341a575060408051601f3d908101601f1916820190925261341791810190613a55565b60015b6134ca573d808015613448576040519150601f19603f3d011682016040523d82523d6000602084013e61344d565b606091505b5080516134c25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610944565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612161565b506001949350505050565b6000600161352d846112cc565b613537919061436d565b60008381526007602052604090205490915080821461358a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906135cf9060019061436d565b600083815260096020526040812054600880549394509092849081106135f7576135f76144de565b906000526020600020015490508060088381548110613618576136186144de565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613650576136506144af565b6001900381819060005260206000200160009055905550505050565b6000613677836112cc565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166137065760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610944565b6000818152600260205260409020546001600160a01b03161561376b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610944565b61377760008383613232565b6001600160a01b03821660009081526003602052604081208054600192906137a0908490614304565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040518061022001604052806011905b60608152602001906001900390816138265790505090565b60006020828403121561385057600080fd5b813561385b8161453c565b9392505050565b60006020828403121561387457600080fd5b815161385b8161453c565b6000806040838503121561389257600080fd5b823561389d8161453c565b915060208301356138ad8161453c565b809150509250929050565b6000806000606084860312156138cd57600080fd5b83356138d88161453c565b925060208401356138e88161453c565b929592945050506040919091013590565b6000806000806080858703121561390f57600080fd5b843561391a8161453c565b9350602085013561392a8161453c565b925060408501359150606085013567ffffffffffffffff8082111561394e57600080fd5b818701915087601f83011261396257600080fd5b8135818111156139745761397461450d565b604051601f8201601f19908116603f0116810190838211818310171561399c5761399c61450d565b816040528281528a60208487010111156139b557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156139ec57600080fd5b82356139f78161453c565b9150602083013580151581146138ad57600080fd5b60008060408385031215613a1f57600080fd5b8235613a2a8161453c565b946020939093013593505050565b600060208284031215613a4a57600080fd5b813561385b81614551565b600060208284031215613a6757600080fd5b815161385b81614551565b600060208284031215613a8457600080fd5b5035919050565b60008151808452613aa3816020860160208601614384565b601f01601f19169290920160200192915050565b60008151613ac9818560208601614384565b9290920192915050565b60008251613ae5818460208701614384565b9190910192915050565b60008351613b01818460208801614384565b835190830190613b15818360208801614384565b01949350505050565b60008451613b30818460208901614384565b845190830190613b44818360208901614384565b8451910190613b57818360208801614384565b0195945050505050565b60008a51613b73818460208f01614384565b8a51613b858183860160208f01614384565b8a519184010190613b9a818360208e01614384565b8951613bac8183850160208e01614384565b8951929091010190613bc2818360208c01614384565b8751613bd48183850160208c01614384565b8751929091010190613bea818360208a01614384565b8551613bfc8183850160208a01614384565b8551929091010190613c12818360208801614384565b019b9a5050505050505050505050565b60008651613c34818460208b01614384565b80830190507f7b2274726169745f74797065223a20224d61676963222c202276616c7565223a81527f202200000000000000000000000000000000000000000000000000000000000060208201528651613c95816022840160208b01614384565b8082019150507f22207d2c000000000000000000000000000000000000000000000000000000008060228301527f7b2274726169745f74797065223a2022537572766976616c222c202276616c7560268301527f65223a20220000000000000000000000000000000000000000000000000000008060468401528751613d2281604b860160208c01614384565b604b9301928301919091527f7b2274726169745f74797065223a20224372616674696e67222c202276616c75604f830152606f820152613e18613def613de9613d9a613d71607486018a613ab7565b7f22207d2c00000000000000000000000000000000000000000000000000000000815260040190565b7f7b2274726169745f74797065223a2022466c61776564222c202276616c75652281527f3a20220000000000000000000000000000000000000000000000000000000000602082015260230190565b86613ab7565b7f22207d5d00000000000000000000000000000000000000000000000000000000815260040190565b98975050505050505050565b60008351613e36818460208801614384565b7f20000000000000000000000000000000000000000000000000000000000000009083019081528351613e70816001840160208801614384565b01600101949350505050565b7f7b0000000000000000000000000000000000000000000000000000000000000081527f226e616d65223a20225065726b20426167202300000000000000000000000000600182015260008351613eda816014850160208801614384565b7f222c2000000000000000000000000000000000000000000000000000000000006014918401918201527f226465736372697074696f6e223a20224c6f6f742069732072616e646f6d697a60178201527f656420616476656e747572657220676561722067656e65726174656420616e6460378201527f2073746f726564206f6e20636861696e2e2053746174732c20696d616765732c60578201527f20616e64206f746865722066756e6374696f6e616c6974792061726520696e7460778201527f656e74696f6e616c6c79206f6d697474656420666f72206f746865727320746f60978201527f20696e746572707265742e204665656c206672656520746f20757365204c6f6f60b78201527f7420696e20616e792077617920796f752077616e742e222c200000000000000060d782015261409361406a613de960f084017f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b62617381527f6536342c00000000000000000000000000000000000000000000000000000000602082015260240190565b7f222c000000000000000000000000000000000000000000000000000000000000815260020190565b95945050505050565b7f2261747472696275746573223a205b000000000000000000000000000000000081527f7b2274726169745f74797065223a2022526177205472616974222c202276616c600f8201527f7565223a20220000000000000000000000000000000000000000000000000000602f82015260008551614120816035850160208a01614384565b80830190507f22207d2c000000000000000000000000000000000000000000000000000000008060358301527f7b2274726169745f74797065223a20225261772054726169742032222c20227660398301527f616c7565223a2022000000000000000000000000000000000000000000000000605983015286516141ab816061850160208b01614384565b60619201918201527f7b2274726169745f74797065223a20224669676874696e67222c202276616c7560658201527f65223a20220000000000000000000000000000000000000000000000000000006085820152614265613d71613de961421682608a86018a613ab7565b7f7b2274726169745f74797065223a2022446566656e7365222c202276616c756581527f223a202200000000000000000000000000000000000000000000000000000000602082015260240190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516142a881601d850160208701614384565b91909101601d0192915050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526142e76080830184613a8b565b9695505050505050565b60208152600061385b6020830184613a8b565b6000821982111561431757614317614451565b500190565b60008261432b5761432b614480565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561436857614368614451565b500290565b60008282101561437f5761437f614451565b500390565b60005b8381101561439f578181015183820152602001614387565b838111156119c05750506000910152565b600181811c908216806143c457607f821691505b602082108114156143fe577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561443657614436614451565b5060010190565b60008261444c5761444c614480565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b0381168114610f6b57600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610f6b57600080fdfe3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223136302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d2238302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173733d2262617365223e3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223134302220636c6173733d2262617365223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d2262617365223ea2646970667358221220e17eba1186810bdb786bfcdc368698283edb2176dc49145c6edb652e49bf1bbb64736f6c63430008070033

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

000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d7

-----Decoded View---------------
Arg [0] : loot (address): 0xFF9C1b15B16263C61d017ee9F65C50e4AE0113D7

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d7


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

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