ETH Price: $2,633.66 (+7.95%)
 

Overview

Max Total Supply

546 HnD

Holders

102

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 HnD
0x28c55ccf0efad47820368e1951f9352ae087076a
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:
HND

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 500 runs

Other Settings:
default evmVersion
File 1 of 18 : HND.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "./interfaces/IHND.sol";
import "./interfaces/IKingdom.sol";
import "./interfaces/ITraits.sol";
import "./interfaces/IEXP.sol";

contract HND is IHND, ERC721Enumerable, Ownable, Pausable {

    struct LastWrite {
        uint64 time;
        uint64 blockNum;
    }

    event HeroMinted(uint256 indexed tokenId);
    event DemonMinted(uint256 indexed tokenId);
    event heroStolen(uint256 indexed tokenId);
    event DemonStolen(uint256 indexed tokenId);
    event HeroBurned(uint256 indexed tokenId);
    event DemonBurned(uint256 indexed tokenId);

    // max number of tokens that can be minted: 60000 in production
    uint256 public maxTokens;
    // number of tokens that can be claimed for a fee: 15,000
    uint256 public PAID_TOKENS;
    // number of tokens have been minted so far
    uint16 public override minted;

    // mapping from tokenId to a struct containing the token's traits
    mapping(uint256 => HeroDemon) private tokenTraits;
    // mapping from hashed(tokenTrait) to the tokenId it's associated with
    // used to ensure there are no duplicates
    mapping(uint256 => uint256) public existingCombinations;
    // Tracks the last block and timestamp that a caller has written to state.
    // Disallow some access to functions if they occur while a change is being written.
    mapping(address => LastWrite) private lastWriteAddress;
    mapping(uint256 => LastWrite) private lastWriteToken;

    // list of probabilities for each trait type
    // 0 - 10 are associated with Hero, 11 - 17 are associated with Demons
    uint8[][18] public rarities;
    // list of aliases for Walker's Alias algorithm
    // 0 - 10 are associated with Hero, 11 - 17 are associated with Demons
    uint8[][18] public aliases;

    // reference to the Kingdom contract to allow transfers to it without approval
    IKingdom public kingdom;
    // reference to Traits
    ITraits public traits;


    // address => allowedToCallFunctions
    mapping(address => bool) private admins;

    constructor(uint256 _maxTokens) ERC721("Heroes & Demons Game", "HnD") {
        maxTokens = _maxTokens;
        PAID_TOKENS = _maxTokens / 5;
        _pause();

        // A.J. Walker's Alias Algorithm
        // HEROES
        // body
        aliases[0] = [0];
        rarities[0] = [255];

        // face - male
        aliases[1] = [1, 0, 0, 1, 3, 4, 5, 6, 7, 8, 7, 7, 14, 14, 9];
        rarities[1] = [66, 44, 42, 55, 67, 65, 63, 63, 49, 78, 4, 35, 21, 43, 55];

        // face - female
        aliases[2] = [1, 1, 4, 1, 3];
        rarities[2] = [151, 173, 103, 153, 170];

        // headpiece - male
        aliases[3]= [1, 0, 1, 2, 2, 3, 5, 6, 7, 8, 9, 10, 2, 3, 5, 7, 8, 9, 11];
        rarities[3] = [45, 56, 84, 51, 18, 59, 45, 65, 46, 56, 48, 49, 27, 25, 22, 19, 19, 10, 6];

        // headpiece - female
        aliases[4] = [1, 0, 0, 1, 1, 3];
        rarities[4] = [194, 156, 48, 195, 93, 64];

        //armor-male
        aliases[5] = [1, 2, 0, 4, 2, 4, 9, 5, 9, 7];
        rarities[5] = [111, 41, 110, 21, 105, 98, 19, 107, 43, 95];

        //armor-female
        aliases[6] = [1, 0, 1, 0, 2];
        rarities[6] = [231, 197, 164, 126, 32];

        //gloves
        aliases[7] = [1, 0, 1, 2, 0, 3, 2, 5, 5, 5];
        rarities[7] = [108, 88, 79, 82, 64, 139, 40, 44, 78, 28];

        //shoes
        aliases[8] = [1, 2, 0, 2, 3, 3, 7, 3, 1, 7];
        rarities[8] = [112, 38, 107, 114, 26, 72, 27, 142, 74, 38];

        //weapon
        aliases[9] = [1, 0, 3, 0, 3, 3, 3, 6, 6, 6, 6, 9, 9, 9, 12];
        rarities[9] = [130, 18, 9, 84, 41, 38, 114, 21, 38, 91, 41, 17, 58, 15, 35];
        
        //shield
        aliases[10]= [1, 2, 0, 2, 5, 2];
        rarities[10] = [199, 56, 242, 97, 16, 140];

        // DEMONS
     
        //demon-body
        aliases[11] = [1, 2, 0, 4, 2, 6, 4, 8, 6, 8];
        rarities[11] = [128, 54, 173, 19, 170, 65, 151, 40, 134, 66];

        //demon-eyes
        aliases[12] = [1, 5, 6, 1, 9, 0, 5, 9, 6, 8];
        rarities[12] = [180, 22, 29, 98, 10, 147, 129, 19, 165, 201];

        // demon-horns
        aliases[13] = [1, 0, 1, 8, 10, 12, 14, 14, 2, 14, 8, 10, 11, 14, 12];
        rarities[13] = [64, 64, 101, 5, 45, 18, 75, 69, 100, 39, 105, 69, 94, 53, 99];

        // demon-tailflame
        aliases[14] = [1, 2, 0, 4, 2, 4, 5];
        rarities[14] = [236, 33, 192, 96, 170, 180, 93];

        // demon-armor
        aliases[15] = [1, 1, 5, 6, 1, 4, 5];
        rarities[15] = [151, 182, 16, 54, 131, 254, 196, 1];

        //demon-weapon
        aliases[16] = [1, 0, 0, 4, 2, 4, 4, 4, 6, 6, 9, 9, 11, 9, 12];
        rarities[16] = [120, 28, 70, 18, 189, 37, 133, 11, 24, 119, 12, 71, 79, 58, 31];

        // demon-rank
        rarities[17] = [14, 155, 80, 255];
        aliases[17] = [2, 3, 3, 3];
    }

    /** CRITICAL TO SETUP / MODIFIERS */

    modifier requireContractsSet() {
        require(address(traits) != address(0) && address(kingdom) != address(0), "Contracts not set");
        _;
    }

    modifier blockIfChangingAddress() {
        // frens can always call whenever they want :)
        require(admins[_msgSender()] || lastWriteAddress[tx.origin].blockNum < block.number, "hmmmm what doing?");
        _;
    }

    modifier blockIfChangingToken(uint256 tokenId) {
        // frens can always call whenever they want :)
        require(admins[_msgSender()] || lastWriteToken[tokenId].blockNum < block.number, "hmmmm what doing?");
        _;
    }

    function setContracts(address _traits, address _kingdom) external onlyOwner {
        traits = ITraits(_traits);
        kingdom = IKingdom(_kingdom);
    }

    /** EXTERNAL */

    function getTokenWriteBlock(uint256 tokenId) external view override returns(uint64) {
        require(admins[_msgSender()], "Only admins can call this");
        return lastWriteToken[tokenId].blockNum;
    }

    /** 
    * Mint a token - any payment / game logic should be handled in the game contract. 
    * This will just generate random traits and mint a token to a designated address.
    */
    function mint(address recipient, uint256 seed) external override whenNotPaused {
        require(admins[_msgSender()], "Only admins can call this");
        require(minted + 1 <= maxTokens, "All tokens minted");
        minted++;
        generate(minted, seed, lastWriteAddress[tx.origin]);
        if(tx.origin != recipient && recipient != address(kingdom)) {
            // Stolen!
            if(tokenTraits[minted].isHero) {
                emit heroStolen(minted);
            }
            else {
                emit DemonStolen(minted);
            }
        }
        _safeMint(recipient, minted);
    }

    /** 
    * Burn a token - any game logic should be handled before this function.
    */
    function burn(uint256 tokenId) external override whenNotPaused {
        require(admins[_msgSender()], "Only admins can call this");
        require(ownerOf(tokenId) == tx.origin, "Oops you don't own that");
        if(tokenTraits[tokenId].isHero) {
            emit HeroBurned(tokenId);
        }
        else {
            emit DemonBurned(tokenId);
        }
        _burn(tokenId);
    }

    function updateOriginAccess(uint16[] memory tokenIds) external override {
        require(admins[_msgSender()], "Only admins can call this");
        uint64 blockNum = uint64(block.number);
        uint64 time = uint64(block.timestamp);
        lastWriteAddress[tx.origin] = LastWrite(time, blockNum);
        for (uint256 i = 0; i < tokenIds.length; i++) {
            lastWriteToken[tokenIds[i]] = LastWrite(time, blockNum);
        }
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) {
        // allow admin contracts to be send without approval
        if(!admins[_msgSender()]) {
            require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        }
        _transfer(from, to, tokenId);
    }

    /** INTERNAL */

    /**
    * generates traits for a specific token, checking to make sure it's unique
    * @param tokenId the id of the token to generate traits for
    * @param seed a pseudorandom 256 bit number to derive traits from
    * @return t - a struct of traits for the given token ID
    */
    function generate(uint256 tokenId, uint256 seed, LastWrite memory lw) internal returns (HeroDemon memory t) {
        t = selectTraits(seed);
        if (existingCombinations[structToHash(t)] == 0) {
            tokenTraits[tokenId] = t;
            existingCombinations[structToHash(t)] = tokenId;
            if(t.isHero) {
                emit HeroMinted(tokenId);
            }
            else {
                emit DemonMinted(tokenId);
            }
            return t;
        }

        // if not random, hash the seed and try again
        return generate(tokenId, uint256(keccak256(abi.encode(seed))), lw);
    }

    /**
    * uses A.J. Walker's Alias algorithm for O(1) rarity table lookup
    * ensuring O(1) instead of O(n) reduces mint cost by more than 50%
    * probability & alias tables are generated off-chain beforehand
    * @param seed portion of the 256 bit seed to remove trait correlation
    * @param traitType the trait type to select a trait for 
    * @return the ID of the randomly selected trait
    */
    function selectTrait(uint16 seed, uint8 traitType) internal view returns (uint8) {
        uint8 trait = uint8(seed) % uint8(rarities[traitType].length);
        // If a selected random trait probability is selected (biased coin) return that trait
        if (seed >> 8 < rarities[traitType][trait]) return trait;
        return aliases[traitType][trait];
    }

    /**
    * selects the species and all of its traits based on the seed value
    * @param seed a pseudorandom 256 bit number to derive traits from
    * @return t -  a struct of randomly selected traits
    */

    function selectTraits(uint256 seed) internal view returns (HeroDemon memory t) {    
        t.isHero = (seed & 0xFFFF) % 10 != 0; // 90% chance it's a hero

        t.isFemale = (seed & 0xFFFF) % 10 <= 3; // 30% chance for female

        // t.isFemale is cast as 0/1 for false/true
        uint8 isFemale;
        if (t.isFemale) {
            isFemale = 1;
        }
        
        t.body = t.isHero ? 0 : selectTrait(uint16(seed & 0xFFFF), 11);
        seed >>= 16;
        
        t.weapon = selectTrait(uint16(seed & 0xFFFF), t.isHero ? 9 : 16);
        seed >>= 16;

        t.armor = selectTrait(uint16(seed & 0xFFFF), t.isHero ? 5 + isFemale : 15);
        seed >>= 16;

        t.headpiecehorns = selectTrait(uint16(seed & 0xFFFF), t.isHero ? 3 + isFemale : 13);
        seed >>= 16;   
           

        if (t.isHero) {   
            // body is shared

            t.face = selectTrait(uint16(seed & 0xFFFF), 1 + isFemale);
            seed >>= 16;

            // headpiecehorns is shared

            // armor is shared

            t.gloves = selectTrait(uint16(seed & 0xFFFF), 7);
            seed >>= 16;
            
            t.shoes = selectTrait(uint16(seed & 0xFFFF), 8);
            seed >>= 16;   
            
            // weapon is "shared"
            
            t.shield = selectTrait(uint16(seed & 0xFFFF), 10);
            seed >>= 16;
        } else {
            t.eyes = selectTrait(uint16(seed & 0xFFFF), 12);
            seed >>= 16;
            
            // headpiecehorns is shared

            // armor is shared
            
            t.tailflame = selectTrait(uint16(seed & 0xFFFF), 14);
            seed >>= 16;            
            
            t.rankIndex = selectTrait(uint16(seed & 0xFFFF), 17);
            seed >>= 16;
        }
 
    }

    /**
    * converts a struct to a 256 bit hash to check for uniqueness
    * @param s the struct to pack into a hash
    * @return the 256 bit hash of the struct
    */
    function structToHash(HeroDemon memory s) internal pure returns (uint256) {
        return uint256(keccak256(
            abi.encodePacked(
                s.isHero,
                s.isFemale,
                s.body,
                s.face,
                s.headpiecehorns,
                s.gloves,
                s.armor,
                s.weapon,
                s.shield,
                s.shoes,
                s.tailflame,
                s.rankIndex
            )
        ));
    }

    /** READ */

    /**
    * checks if a token is a heroes
    * @param tokenId the ID of the token to check
    * @return wizard - whether or not a token is a heroes
    */
    function isHero(uint256 tokenId) external view override blockIfChangingToken(tokenId) returns (bool) {
        // Sneaky dragons will be slain if they try to peep this after mint. Nice try.
        IHND.HeroDemon memory s = tokenTraits[tokenId];
        return s.isHero;
    }

    function getMaxTokens() external view override returns (uint256) {
        return maxTokens;
    }

    function getPaidTokens() external view override returns (uint256) {
        return PAID_TOKENS;
    }

    /** ADMIN */

    /**
    * updates the number of tokens for sale
    */
    function setPaidTokens(uint256 _paidTokens) external onlyOwner {
        PAID_TOKENS = uint16(_paidTokens);
    }

    /**
    */
    function setPaused(bool _paused) external requireContractsSet onlyOwner {
        if (_paused) _pause();
        else _unpause();
    }

    /**
    * enables an address to mint / burn
    * @param addr the address to enable
    */
    function addAdmin(address addr) external onlyOwner {
        admins[addr] = true;
    }

    /**
    * disables an address from minting / burning
    * @param addr the address to disbale
    */
    function removeAdmin(address addr) external onlyOwner {
        admins[addr] = false;
    }

    /** Traits */

    function getTokenTraits(uint256 tokenId) external view override blockIfChangingAddress blockIfChangingToken(tokenId) returns (HeroDemon memory) {
        return tokenTraits[tokenId];
    }

    function tokenURI(uint256 tokenId) public view override blockIfChangingAddress blockIfChangingToken(tokenId) returns (string memory) {
        require(_exists(tokenId), "Token ID does not exist");
        return traits.tokenURI(tokenId);
    }

    /** OVERRIDES FOR SAFETY */

    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override(ERC721Enumerable, IERC721Enumerable) blockIfChangingAddress returns (uint256) {
        // Y U checking on this address in the same block it's being modified... hmmmm
        require(admins[_msgSender()] || lastWriteAddress[owner].blockNum < block.number, "hmmmm what doing?");
        uint256 tokenId = super.tokenOfOwnerByIndex(owner, index);
        require(admins[_msgSender()] || lastWriteToken[tokenId].blockNum < block.number, "hmmmm what doing?");
        return tokenId;
    }
    
    function balanceOf(address owner) public view virtual override(ERC721, IERC721) blockIfChangingAddress returns (uint256) {
        // Y U checking on this address in the same block it's being modified... hmmmm
        require(admins[_msgSender()] || lastWriteAddress[owner].blockNum < block.number, "hmmmm what doing?");
        return super.balanceOf(owner);
    }

    function ownerOf(uint256 tokenId) public view virtual override(ERC721, IERC721) blockIfChangingAddress blockIfChangingToken(tokenId) returns (address) {
        address addr = super.ownerOf(tokenId);
        // Y U checking on this address in the same block it's being modified... hmmmm
        require(admins[_msgSender()] || lastWriteAddress[addr].blockNum < block.number, "hmmmm what doing?");
        return addr;
    }

    function tokenByIndex(uint256 index) public view virtual override(ERC721Enumerable, IERC721Enumerable) returns (uint256) {
        uint256 tokenId = super.tokenByIndex(index);
        // NICE TRY TOAD DRAGON
        require(admins[_msgSender()] || lastWriteToken[tokenId].blockNum < block.number, "hmmmm what doing?");
        return tokenId;
    }

    function approve(address to, uint256 tokenId) public virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) {
        super.approve(to, tokenId);
    }

    function getApproved(uint256 tokenId) public view virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) returns (address) {
        return super.getApproved(tokenId);
    }

    function setApprovalForAll(address operator, bool approved) public virtual override(ERC721, IERC721) blockIfChangingAddress {
        super.setApprovalForAll(operator, approved);
    }

    function isApprovedForAll(address owner, address operator) public view virtual override(ERC721, IERC721) blockIfChangingAddress returns (bool) {
        return super.isApprovedForAll(owner, operator);
    }
    
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) {
        super.safeTransferFrom(from, to, tokenId, _data);
    }

}

File 2 of 18 : IEXP.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

interface IEXP {
    function mint(address to, uint256 amount) external;
    function burn(address from, uint256 amount) external;
    function updateOriginAccess() external;
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
}

File 3 of 18 : ITraits.sol
// SPDX-License-Identifier: MIT LICENSE 

pragma solidity ^0.8.0;

interface ITraits {
  function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 4 of 18 : IKingdom.sol
// SPDX-License-Identifier: MIT LICENSE 

pragma solidity ^0.8.0;

interface IKingdom {
  function addManyToKingdom(address account, uint16[] calldata tokenIds) external;
  function randomDemonOwner(uint256 seed) external view returns (address);
  function recycleExp(uint256 amount) external;
}

File 5 of 18 : IHND.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

interface IHND is IERC721Enumerable {

    // game data storage
    struct HeroDemon {
        bool isHero;
        bool isFemale;
        uint8 body;
        uint8 face;
        uint8 eyes;
        uint8 headpiecehorns;
        uint8 gloves;
        uint8 armor;
        uint8 weapon;
        uint8 shield;
        uint8 shoes;
        uint8 tailflame;
        uint8 rankIndex;
    }

    function minted() external returns (uint16);
    function updateOriginAccess(uint16[] memory tokenIds) external;
    function mint(address recipient, uint256 seed) external;
    function burn(uint256 tokenId) external;
    function getMaxTokens() external view returns (uint256);
    function getPaidTokens() external view returns (uint256);
    function getTokenTraits(uint256 tokenId) external view returns (HeroDemon memory);
    function getTokenWriteBlock(uint256 tokenId) external view returns(uint64);
    function isHero(uint256 tokenId) external view returns(bool);
  
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_maxTokens","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"DemonBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"DemonMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"DemonStolen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"HeroBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"HeroMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"heroStolen","type":"event"},{"inputs":[],"name":"PAID_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"aliases","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"existingCombinations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPaidTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenTraits","outputs":[{"components":[{"internalType":"bool","name":"isHero","type":"bool"},{"internalType":"bool","name":"isFemale","type":"bool"},{"internalType":"uint8","name":"body","type":"uint8"},{"internalType":"uint8","name":"face","type":"uint8"},{"internalType":"uint8","name":"eyes","type":"uint8"},{"internalType":"uint8","name":"headpiecehorns","type":"uint8"},{"internalType":"uint8","name":"gloves","type":"uint8"},{"internalType":"uint8","name":"armor","type":"uint8"},{"internalType":"uint8","name":"weapon","type":"uint8"},{"internalType":"uint8","name":"shield","type":"uint8"},{"internalType":"uint8","name":"shoes","type":"uint8"},{"internalType":"uint8","name":"tailflame","type":"uint8"},{"internalType":"uint8","name":"rankIndex","type":"uint8"}],"internalType":"struct IHND.HeroDemon","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenWriteBlock","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isHero","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kingdom","outputs":[{"internalType":"contract IKingdom","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"rarities","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_traits","type":"address"},{"internalType":"address","name":"_kingdom","type":"address"}],"name":"setContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_paidTokens","type":"uint256"}],"name":"setPaidTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"traits","outputs":[{"internalType":"contract ITraits","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"updateOriginAccess","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162004f4638038062004f46833981016040819052620000349162001108565b604080518082018252601481527f4865726f657320262044656d6f6e732047616d65000000000000000000000000602080830191825283518085019094526003845262121b9160ea1b908401528151919291620000949160009162000fbf565b508051620000aa90600190602084019062000fbf565b505050620000c7620000c162000eb760201b60201c565b62000ebb565b600a805460ff60a01b19169055600b819055620000e660058262001122565b600c55620000f362000f0d565b604080516020810190915260008152620001129060249060016200104e565b50604080516020810190915260ff8152620001329060129060016200104e565b50604080516101e081018252600180825260006020830181905292820192909252606081019190915260036080820152600460a0820152600560c0820152600660e08201526007610100820181905260086101208301526101408201819052610160820152600e61018082018190526101a082015260096101c0820152620001bf90602590600f6200104e565b50604080516101e08101825260428152602c6020820152602a9181019190915260376060820181905260436080830152604160a0830152603f60c0830181905260e08301526031610100830152604e610120830152600461014083015260236101608301526015610180830152602b6101a08301526101c08201526200024a90601390600f6200104e565b506040805160a081018252600180825260208201819052600492820192909252606081019190915260036080820152620002899060269060056200104e565b506040805160a0810182526097815260ad60208201526067918101919091526099606082015260aa6080820152620002c69060149060056200104e565b5060408051610260810182526001808252600060208301529181019190915260026060820181905260808201819052600360a08301819052600560c08401819052600660e0850152600761010085018190526008610120860181905260096101408701819052600a6101608801526101808701959095526101a08601939093526101c08501919091526101e0840152610200830152610220820152600b610240820152620003799060279060136200104e565b506040805161026081018252602d8082526038602083018190526054938301939093526033606083015260126080830152603b60a083015260c0820152604160e0820152602e61010082015261012081019190915260306101408201526031610160820152601b61018082015260196101a082015260166101c082015260136101e082018190526102008201819052600a610220830152600661024083015262000426916015916200104e565b506040805160c081018252600180825260006020830181905292820192909252606081018290526080810191909152600360a08201526200046c9060289060066200104e565b506040805160c08101825260c28152609c602082015260308183015260c36060820152605d608082015260a0810191909152620004ae9060169060066200104e565b50604080516101408101825260018152600260208201819052600092820192909252600460608201819052608082019290925260a0810191909152600960c08201819052600560e083015261010082015260076101208201526200051790602990600a6200104e565b506040805161014081018252606f815260296020820152606e918101919091526015606082015260696080820152606260a0820152601360c0820152606b60e0820152602b610100820152605f6101208201526200057a90601790600a6200104e565b506040805160a081018252600180825260006020830181905292820152606081019190915260026080820152620005b690602a9060056200104e565b506040805160a08101825260e7815260c560208083019190915260a492820192909252607e60608201526080810191909152620005f89060189060056200104e565b5060408051610140810182526001808252600060208301819052928201526002606082018190526080820192909252600360a082015260c0810191909152600560e0820181905261010082018190526101208201526200065d90602b90600a6200104e565b506040805161014081018252606c815260586020820152604f81830152605260608201526080810191909152608b60a0820152602860c0820152602c60e0820152604e610100820152601c610120820152620006be90601990600a6200104e565b5060408051610140810182526001808252600260208301819052600093830193909352606082019290925260036080820181905260a08201819052600760c0830181905260e08301919091526101008201929092526101208101919091526200072c90602c90600a6200104e565b50604080516101408101825260708152602660208201819052606b9282019290925260726060820152601a60808201819052604860a0830152601b60c0830152608e60e0830152604a610100830152610120820192909252620007929190600a6200104e565b50604080516101e08101825260018152600060208201819052600392820183905260608201526080810182905260a0810182905260c0810191909152600660e08201819052610100820181905261012082018190526101408201526009610160820181905261018082018190526101a0820152600c6101c08201526200081d90602d90600f6200104e565b50604080516101e081018252608281526012602082015260099181019190915260546060820152602960808201819052602660a08301819052607260c0840152601560e0840152610100830152605b6101208301526101408201526011610160820152603a610180820152600f6101a0820181905260236101c0830152620008a891601b916200104e565b506040805160c08101825260018152600260208201819052600092820192909252606081018290526005608082015260a0810191909152620008ef90602e9060066200104e565b506040805160c08101825260c781526038602082015260f2918101919091526061606082015260106080820152608c60a08201526200093390601c9060066200104e565b506040805161014081018252600181526002602082018190526000928201929092526004606082018190526080820192909252600660a0820181905260c0820192909252600860e08201819052610100820192909252610120810191909152620009a290602f90600a6200104e565b50604080516101408101825260808082526036602083015260ad928201929092526013606082015260aa91810191909152604160a0820152609760c0820152602860e08201526086610100820152604261012082015262000a0890601d90600a6200104e565b506040805161014081018252600180825260056020830181905260069383018490526060830191909152600960808301819052600060a084015260c083019190915260e0820152610100810191909152600861012082015262000a7090603090600a6200104e565b50604080516101408101825260b4815260166020820152601d9181019190915260626060820152600a60808201819052609360a0830152608160c0830152601360e083015260a561010083015260c961012083015262000ad391601e916200104e565b50604080516101e08101825260018082526000602083015291810191909152600860608201819052600a60808301819052600c60a08401819052600e60c0850181905260e0850181905260026101008601526101208501819052610140850193909352610160840191909152600b6101808401526101a08301919091526101c082015262000b6690603190600f6200104e565b50604080516101e0810182528181526020810182905260659181019190915260056060820152602d6080820152601260a0820152604b60c0820152604560e08201819052606461010083015260276101208301526069610140830152610160820152605e61018082015260356101a082015260636101c082015262000bf090601f90600f6200104e565b506040805160e08101825260018152600260208201819052600092820192909252600460608201819052608082019290925260a0810191909152600560c082015262000c419060329060076200104e565b506040805160e08101825260ec81526021602082015260c091810182905260608082015260aa608082015260b460a0820152605d918101919091526012600e62000c909291019060076200104e565b506040805160e0810182526001808252602082018190526005928201839052600660608301526080820152600460a082015260c081019190915262000cda9060339060076200104e565b5060408051610100810182526097815260b66020820152601091810191909152603660608201526083608082015260fe60a082015260c460c0820152600160e082015262000d2d9060219060086200104e565b50604080516101e08101825260018152600060208201819052918101919091526004606082018190526002608083015260a0820181905260c0820181905260e082015260066101008201819052610120820152600961014082018190526101608201819052600b6101808301526101a0820152600c6101c082015262000db890603490600f6200104e565b50604080516101e08101825260788152601c60208201526046918101919091526012606082015260bd6080820152602560a0820152608560c0820152600b60e082015260186101008201526077610120820152600c6101408201526047610160820152604f610180820152603a6101a0820152601f6101c082015262000e4390602290600f6200104e565b5060408051608081018252600e8152609b602082015260509181019190915260ff606082015262000e799060239060046200104e565b506040805160808101825260028152600360208201819052918101829052606081019190915262000eaf9060359060046200104e565b505062001182565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000f21600a54600160a01b900460ff1690565b1562000f665760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25862000fa23390565b6040516001600160a01b03909116815260200160405180910390a1565b82805462000fcd9062001145565b90600052602060002090601f01602090048101928262000ff157600085556200103c565b82601f106200100c57805160ff19168380011785556200103c565b828001600101855582156200103c579182015b828111156200103c5782518255916020019190600101906200101f565b506200104a929150620010f1565b5090565b82805482825590600052602060002090601f016020900481019282156200103c5791602002820160005b83821115620010b857835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030262001078565b8015620010e75782816101000a81549060ff0219169055600101602081600001049283019260010302620010b8565b50506200104a9291505b5b808211156200104a5760008155600101620010f2565b6000602082840312156200111b57600080fd5b5051919050565b6000826200114057634e487b7160e01b600052601260045260246000fd5b500490565b600181811c908216806200115a57607f821691505b602082108114156200117c57634e487b7160e01b600052602260045260246000fd5b50919050565b613db480620011926000396000f3fe608060405234801561001057600080fd5b50600436106102635760003560e01c80635c975abb11610156578063a1b8f374116100d3578063d8952a4911610097578063e985e9c511610071578063e985e9c514610561578063ebd1736814610574578063f2fde38b1461059f57600080fd5b8063d8952a4914610532578063e1fc334f14610545578063e83157421461055857600080fd5b8063a1b8f374146104d0578063a22cb465146104f0578063b88d4fde14610503578063c084f54014610516578063c87b56dd1461051f57600080fd5b8063715018a61161011a578063715018a61461047c57806375e7a1e6146104845780638da5cb5b1461049757806394e56847146104a857806395d89b41146104c857600080fd5b80635c975abb146104295780636352211e1461043b5780636abcded11461044e578063704802751461045657806370a082311461046957600080fd5b80633431a753116101e457806340c10f19116101a857806340c10f19146103bc57806342842e0e146103cf57806342966c68146103e25780634f02c420146103f55780634f6ccce71461041657600080fd5b80633431a7531461036857806335ca838b1461037b578063368383911461038e57806336a54b90146103a15780634018b1f8146103b457600080fd5b80631785f53c1161022b5780631785f53c146102f857806318160ddd1461030b57806323b872dd1461031d5780632f745c591461033057806333df4b2c1461034357600080fd5b806301ffc9a71461026857806306fdde0314610290578063081812fc146102a5578063095ea7b3146102d057806316c38b3c146102e5575b600080fd5b61027b6102763660046137af565b6105b2565b60405190151581526020015b60405180910390f35b6102986105dd565b6040516102879190613a18565b6102b86102b336600461385f565b61066f565b6040516001600160a01b039091168152602001610287565b6102e36102de3660046136ac565b6106fe565b005b6102e36102f3366004613794565b610785565b6102e361030636600461354e565b610856565b6008545b604051908152602001610287565b6102e361032b36600461359c565b6108bf565b61030f61033e3660046136ac565b6109d0565b610356610351366004613878565b610b53565b60405160ff9091168152602001610287565b6102e361037636600461385f565b610b99565b6102e36103893660046136d6565b610bea565b61035661039c366004613878565b610d5a565b61027b6103af36600461385f565b610d6a565b600c5461030f565b6102e36103ca3660046136ac565b610ed9565b6102e36103dd36600461359c565b61112c565b6102e36103f036600461385f565b6111af565b600d546104039061ffff1681565b60405161ffff9091168152602001610287565b61030f61042436600461385f565b611333565b600a54600160a01b900460ff1661027b565b6102b861044936600461385f565b6113b8565b600b5461030f565b6102e361046436600461354e565b611535565b61030f61047736600461354e565b6115a1565b6102e36116a6565b6036546102b8906001600160a01b031681565b600a546001600160a01b03166102b8565b6104bb6104b636600461385f565b6116fa565b6040516102879190613a2b565b6102986118e7565b61030f6104de36600461385f565b600f6020526000908152604090205481565b6102e36104fe366004613682565b6118f6565b6102e36105113660046135d8565b611977565b61030f600c5481565b61029861052d36600461385f565b611a02565b6102e3610540366004613569565b611bd8565b6037546102b8906001600160a01b031681565b61030f600b5481565b61027b61056f366004613569565b611c4e565b61058761058236600461385f565b611cf3565b6040516001600160401b039091168152602001610287565b6102e36105ad36600461354e565b611d71565b60006001600160e01b0319821663780e9d6360e01b14806105d757506105d782611e27565b92915050565b6060600080546105ec90613c12565b80601f016020809104026020016040519081016040528092919081815260200182805461061890613c12565b80156106655780601f1061063a57610100808354040283529160200191610665565b820191906000526020600020905b81548152906001019060200180831161064857829003601f168201915b5050505050905090565b33600090815260386020526040812054829060ff16806106ad575060008181526011602052604090205443600160401b9091046001600160401b0316105b6106ec5760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064015b60405180910390fd5b6106f583611e77565b91505b50919050565b33600090815260386020526040902054819060ff168061073c575060008181526011602052604090205443600160401b9091046001600160401b0316105b6107765760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b6107808383611f0c565b505050565b6037546001600160a01b0316158015906107a957506036546001600160a01b031615155b6107f55760405162461bcd60e51b815260206004820152601160248201527f436f6e747261637473206e6f742073657400000000000000000000000000000060448201526064016106e3565b600a546001600160a01b0316331461083d5760405162461bcd60e51b81526020600482018190526024820152600080516020613d3f83398151915260448201526064016106e3565b801561084e5761084b61201d565b50565b61084b6120c2565b600a546001600160a01b0316331461089e5760405162461bcd60e51b81526020600482018190526024820152600080516020613d3f83398151915260448201526064016106e3565b6001600160a01b03166000908152603860205260409020805460ff19169055565b33600090815260386020526040902054819060ff16806108fd575060008181526011602052604090205443600160401b9091046001600160401b0316105b6109375760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b3360009081526038602052604090205460ff166109bf57610959335b8361214f565b6109bf5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60648201526084016106e3565b6109ca848484612226565b50505050565b3360009081526038602052604081205460ff1680610a0d57503260009081526010602052604090205443600160401b9091046001600160401b0316105b610a475760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b3360009081526038602052604090205460ff1680610a8d57506001600160a01b03831660009081526010602052604090205443600160401b9091046001600160401b0316105b610ac75760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b6000610ad384846123d1565b3360009081526038602052604090205490915060ff1680610b12575060008181526011602052604090205443600160401b9091046001600160401b0316105b610b4c5760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b9392505050565b60128260128110610b6357600080fd5b018181548110610b7257600080fd5b9060005260206000209060209182820401919006915091509054906101000a900460ff1681565b600a546001600160a01b03163314610be15760405162461bcd60e51b81526020600482018190526024820152600080516020613d3f83398151915260448201526064016106e3565b61ffff16600c55565b3360009081526038602052604090205460ff16610c455760405162461bcd60e51b81526020600482015260196024820152784f6e6c792061646d696e732063616e2063616c6c207468697360381b60448201526064016106e3565b6040805180820182526001600160401b0342818116835243828116602080860191825232600090815260109091529586209451855491518516600160401b026fffffffffffffffffffffffffffffffff1990921694169390931792909217909255915b83518110156109ca576040518060400160405280836001600160401b03168152602001846001600160401b031681525060116000868481518110610cee57610cee613cfc565b60209081029190910181015161ffff168252818101929092526040016000208251815493909201516001600160401b03908116600160401b026fffffffffffffffffffffffffffffffff1990941692169190911791909117905580610d5281613c69565b915050610ca8565b60248260128110610b6357600080fd5b33600090815260386020526040812054829060ff1680610da8575060008181526011602052604090205443600160401b9091046001600160401b0316105b610de25760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b50506000908152600e602090815260409182902082516101a081018452905460ff808216151580845261010080840483161515958501959095526201000083048216958401959095526301000000820481166060840152640100000000820481166080840152650100000000008204811660a084015266010000000000008204811660c08401526701000000000000008204811660e0840152600160401b82048116938301939093526901000000000000000000810483166101208301526a010000000000000000000081048316610140830152600160581b81048316610160830152600160601b90049091166101809091015290565b600a54600160a01b900460ff1615610f265760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016106e3565b3360009081526038602052604090205460ff16610f815760405162461bcd60e51b81526020600482015260196024820152784f6e6c792061646d696e732063616e2063616c6c207468697360381b60448201526064016106e3565b600b54600d54610f969061ffff166001613b6c565b61ffff161115610fe85760405162461bcd60e51b815260206004820152601160248201527f416c6c20746f6b656e73206d696e74656400000000000000000000000000000060448201526064016106e3565b600d805461ffff16906000610ffc83613c47565b82546101009290920a61ffff818102199093169183160217909155600d54326000908152601060209081526040918290208251808401909352546001600160401b038082168452600160401b909104169082015261105f93509116908390612467565b50326001600160a01b0383161480159061108757506036546001600160a01b03838116911614155b1561111657600d5461ffff166000908152600e602052604090205460ff16156110e257600d5460405161ffff909116907fe29418457691d1512b6901d18639581f1cc9e1b7aec04a268df6066e59ce784390600090a2611116565b600d5460405161ffff909116907f2d01eeb873c49eb04dcb8041bc17419306f74e7a3a2b6119389408ec9e529a3790600090a25b600d5461112890839061ffff16612721565b5050565b33600090815260386020526040902054819060ff168061116a575060008181526011602052604090205443600160401b9091046001600160401b0316105b6111a45760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b6109ca84848461273b565b600a54600160a01b900460ff16156111fc5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016106e3565b3360009081526038602052604090205460ff166112575760405162461bcd60e51b81526020600482015260196024820152784f6e6c792061646d696e732063616e2063616c6c207468697360381b60448201526064016106e3565b32611261826113b8565b6001600160a01b0316146112b75760405162461bcd60e51b815260206004820152601760248201527f4f6f707320796f7520646f6e2774206f776e207468617400000000000000000060448201526064016106e3565b6000818152600e602052604090205460ff16156112fe5760405181907f76126f33d318abe88f8b82c5136b7e5a52091ab897679a40f612d7590adfc99790600090a261132a565b60405181907f31b140e38e2471293211a1bf10df4eb7f429e7c02f58e84b8c6fcee0c6fcd85790600090a25b61084b81612756565b60008061133f836127fd565b3360009081526038602052604090205490915060ff168061137e575060008181526011602052604090205443600160401b9091046001600160401b0316105b6105d75760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b3360009081526038602052604081205460ff16806113f557503260009081526010602052604090205443600160401b9091046001600160401b0316105b61142f5760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b33600090815260386020526040902054829060ff168061146d575060008181526011602052604090205443600160401b9091046001600160401b0316105b6114a75760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b60006114b284612890565b3360009081526038602052604090205490915060ff16806114fb57506001600160a01b03811660009081526010602052604090205443600160401b9091046001600160401b0316105b6106f55760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b600a546001600160a01b0316331461157d5760405162461bcd60e51b81526020600482018190526024820152600080516020613d3f83398151915260448201526064016106e3565b6001600160a01b03166000908152603860205260409020805460ff19166001179055565b3360009081526038602052604081205460ff16806115de57503260009081526010602052604090205443600160401b9091046001600160401b0316105b6116185760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b3360009081526038602052604090205460ff168061165e57506001600160a01b03821660009081526010602052604090205443600160401b9091046001600160401b0316105b6116985760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b6105d782612907565b919050565b600a546001600160a01b031633146116ee5760405162461bcd60e51b81526020600482018190526024820152600080516020613d3f83398151915260448201526064016106e3565b6116f8600061298e565b565b6117026134bb565b3360009081526038602052604090205460ff168061173f57503260009081526010602052604090205443600160401b9091046001600160401b0316105b6117795760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b33600090815260386020526040902054829060ff16806117b7575060008181526011602052604090205443600160401b9091046001600160401b0316105b6117f15760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b50506000908152600e602090815260409182902082516101a081018452905460ff8082161515835261010080830482161515948401949094526201000082048116948301949094526301000000810484166060830152640100000000810484166080830152650100000000008104841660a083015266010000000000008104841660c08301526701000000000000008104841660e0830152600160401b81048416928201929092526901000000000000000000820483166101208201526a010000000000000000000082048316610140820152600160581b82048316610160820152600160601b90910490911661018082015290565b6060600180546105ec90613c12565b3360009081526038602052604090205460ff168061193357503260009081526010602052604090205443600160401b9091046001600160401b0316105b61196d5760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b61112882826129e0565b33600090815260386020526040902054829060ff16806119b5575060008181526011602052604090205443600160401b9091046001600160401b0316105b6119ef5760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b6119fb858585856129eb565b5050505050565b3360009081526038602052604090205460609060ff1680611a4257503260009081526010602052604090205443600160401b9091046001600160401b0316105b611a7c5760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b33600090815260386020526040902054829060ff1680611aba575060008181526011602052604090205443600160401b9091046001600160401b0316105b611af45760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b6000838152600260205260409020546001600160a01b0316611b585760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20494420646f6573206e6f7420657869737400000000000000000060448201526064016106e3565b60375460405163c87b56dd60e01b8152600481018590526001600160a01b039091169063c87b56dd9060240160006040518083038186803b158015611b9c57600080fd5b505afa158015611bb0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106f591908101906137e9565b600a546001600160a01b03163314611c205760405162461bcd60e51b81526020600482018190526024820152600080516020613d3f83398151915260448201526064016106e3565b603780546001600160a01b039384166001600160a01b03199182161790915560368054929093169116179055565b3360009081526038602052604081205460ff1680611c8b57503260009081526010602052604090205443600160401b9091046001600160401b0316105b611cc55760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff16610b4c565b3360009081526038602052604081205460ff16611d4e5760405162461bcd60e51b81526020600482015260196024820152784f6e6c792061646d696e732063616e2063616c6c207468697360381b60448201526064016106e3565b50600090815260116020526040902054600160401b90046001600160401b031690565b600a546001600160a01b03163314611db95760405162461bcd60e51b81526020600482018190526024820152600080516020613d3f83398151915260448201526064016106e3565b6001600160a01b038116611e1e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106e3565b61084b8161298e565b60006001600160e01b031982166380ac58cd60e01b1480611e5857506001600160e01b03198216635b5e139f60e01b145b806105d757506301ffc9a760e01b6001600160e01b03198316146105d7565b6000818152600260205260408120546001600160a01b0316611ef05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106e3565b506000908152600460205260409020546001600160a01b031690565b6000611f1782612890565b9050806001600160a01b0316836001600160a01b03161415611f855760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106e3565b336001600160a01b0382161480611fa15750611fa18133611c4e565b6120135760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106e3565b6107808383612a66565b600a54600160a01b900460ff161561206a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016106e3565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120a53390565b6040516001600160a01b03909116815260200160405180910390a1565b600a54600160a01b900460ff1661211b5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016106e3565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336120a5565b6000818152600260205260408120546001600160a01b03166121c85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106e3565b60006121d383612890565b9050806001600160a01b0316846001600160a01b0316148061220e5750836001600160a01b03166122038461066f565b6001600160a01b0316145b8061221e575061221e8185611c4e565b949350505050565b826001600160a01b031661223982612890565b6001600160a01b0316146122a15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106e3565b6001600160a01b0382166123035760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106e3565b61230e838383612ad4565b612319600082612a66565b6001600160a01b0383166000908152600360205260408120805460019290612342908490613bcf565b90915550506001600160a01b0382166000908152600360205260408120805460019290612370908490613b92565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006123dc83612907565b821061243e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016106e3565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61246f6134bb565b61247883612b8c565b9050600f600061248783612d6d565b815260200190815260200160002054600014156126eb5780600e600086815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548160ff021916908360ff16021790555060608201518160000160036101000a81548160ff021916908360ff16021790555060808201518160000160046101000a81548160ff021916908360ff16021790555060a08201518160000160056101000a81548160ff021916908360ff16021790555060c08201518160000160066101000a81548160ff021916908360ff16021790555060e08201518160000160076101000a81548160ff021916908360ff1602179055506101008201518160000160086101000a81548160ff021916908360ff1602179055506101208201518160000160096101000a81548160ff021916908360ff16021790555061014082015181600001600a6101000a81548160ff021916908360ff16021790555061016082015181600001600b6101000a81548160ff021916908360ff16021790555061018082015181600001600c6101000a81548160ff021916908360ff16021790555090505083600f600061267384612d6d565b81526020810191909152604001600020558051156126bb5760405184907f137a90ac9032bb52a13f83c0ac1598bbf4eb39c8cacd438d83089f198173dbc090600090a2610b4c565b60405184907fcc9bc27bff58e9890a94e417777967d544385a9820babf74df9db672e38905ab90600090a2610b4c565b61221e848460405160200161270291815260200190565b6040516020818303038152906040528051906020012060001c84612467565b611128828260405180602001604052806000815250612dde565b61078083838360405180602001604052806000815250611977565b600061276182612890565b905061276f81600084612ad4565b61277a600083612a66565b6001600160a01b03811660009081526003602052604081208054600192906127a3908490613bcf565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600061280860085490565b821061286b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016106e3565b6008828154811061287e5761287e613cfc565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105d75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106e3565b60006001600160a01b0382166129725760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106e3565b506001600160a01b031660009081526003602052604090205490565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611128338383612e5c565b6129f433610953565b612a5a5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60648201526084016106e3565b6109ca84848484612f2b565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a9b82612890565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038316612b2f57612b2a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612b52565b816001600160a01b0316836001600160a01b031614612b5257612b528382612fa9565b6001600160a01b038216612b695761078081613046565b826001600160a01b0316826001600160a01b0316146107805761078082826130f5565b612b946134bb565b612ba3600a61ffff8416613c84565b151581526003612bb8600a61ffff8516613c84565b1180156020830152600090612bcb575060015b8151612be557612be08361ffff16600b613139565b612be8565b60005b60ff166040830152815160109390931c92612c169061ffff851690612c0e576010613139565b60095b613139565b60ff16610100830152815160109390931c92612c489061ffff851690612c3d57600f613139565b612c11836005613baa565b60ff1660e0830152815160109390931c92612c799061ffff851690612c6e57600d613139565b612c11836003613baa565b60ff1660a0830152815160109390931c9215612d1257612ca261ffff8416612c11836001613baa565b60ff16606083015260109290921c91612cc061ffff84166007613139565b60ff1660c083015260109290921c91612cde61ffff84166008613139565b60ff1661014083015260109290921c91612cfd61ffff8416600a613139565b60ff1661012083015260109290921c916106f8565b612d218361ffff16600c613139565b60ff16608083015260109290921c91612d3f61ffff8416600e613139565b60ff1661016083015260109290921c91612d5e61ffff84166011613139565b60ff1661018083015250919050565b8051602080830151604080850151606086015160a087015160c088015160e08901516101008a01516101208b01516101408c01516101608d01516101808e0151995160009d612dc09d909c9b91016138c6565b60408051601f19818403018152919052805160209091012092915050565b612de88383613215565b612df56000848484613363565b6107805760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016106e3565b816001600160a01b0316836001600160a01b03161415612ebe5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106e3565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612f36848484612226565b612f4284848484613363565b6109ca5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016106e3565b60006001612fb684612907565b612fc09190613bcf565b600083815260076020526040902054909150808214613013576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061305890600190613bcf565b6000838152600960205260408120546008805493945090928490811061308057613080613cfc565b9060005260206000200154905080600883815481106130a1576130a1613cfc565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806130d9576130d9613ce6565b6001900381819060005260206000200160009055905550505050565b600061310083612907565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60008060128360ff166012811061315257613152613cfc565b015461315e9085613c98565b905060128360ff166012811061317657613176613cfc565b018160ff168154811061318b5761318b613cfc565b60009182526020918290209181049091015460ff601f9092166101000a90048116600886901c90911610156131c15790506105d7565b60248360ff16601281106131d7576131d7613cfc565b018160ff16815481106131ec576131ec613cfc565b90600052602060002090602091828204019190069054906101000a900460ff1691505092915050565b6001600160a01b03821661326b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106e3565b6000818152600260205260409020546001600160a01b0316156132d05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106e3565b6132dc60008383612ad4565b6001600160a01b0382166000908152600360205260408120805460019290613305908490613b92565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156134b057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906133a79033908990889088906004016139dc565b602060405180830381600087803b1580156133c157600080fd5b505af19250505080156133f1575060408051601f3d908101601f191682019092526133ee918101906137cc565b60015b613496573d80801561341f576040519150601f19603f3d011682016040523d82523d6000602084013e613424565b606091505b50805161348e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016106e3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061221e565b506001949350505050565b604080516101a081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081019190915290565b80356001600160a01b03811681146116a157600080fd5b803580151581146116a157600080fd5b60006020828403121561356057600080fd5b610b4c82613527565b6000806040838503121561357c57600080fd5b61358583613527565b915061359360208401613527565b90509250929050565b6000806000606084860312156135b157600080fd5b6135ba84613527565b92506135c860208501613527565b9150604084013590509250925092565b600080600080608085870312156135ee57600080fd5b6135f785613527565b935061360560208601613527565b92506040850135915060608501356001600160401b0381111561362757600080fd5b8501601f8101871361363857600080fd5b803561364b61364682613b45565b613b15565b81815288602083850101111561366057600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b6000806040838503121561369557600080fd5b61369e83613527565b91506135936020840161353e565b600080604083850312156136bf57600080fd5b6136c883613527565b946020939093013593505050565b600060208083850312156136e957600080fd5b82356001600160401b038082111561370057600080fd5b818501915085601f83011261371457600080fd5b81358181111561372657613726613d12565b8060051b9150613737848301613b15565b8181528481019084860184860187018a101561375257600080fd5b600095508594505b8385101561378757803561ffff81168114613773578687fd5b83526001949094019391860191860161375a565b5098975050505050505050565b6000602082840312156137a657600080fd5b610b4c8261353e565b6000602082840312156137c157600080fd5b8135610b4c81613d28565b6000602082840312156137de57600080fd5b8151610b4c81613d28565b6000602082840312156137fb57600080fd5b81516001600160401b0381111561381157600080fd5b8201601f8101841361382257600080fd5b805161383061364682613b45565b81815285602083850101111561384557600080fd5b613856826020830160208601613be6565b95945050505050565b60006020828403121561387157600080fd5b5035919050565b6000806040838503121561388b57600080fd5b50508035926020909101359150565b600081518084526138b2816020860160208601613be6565b601f01601f19169290920160200192915050565b8c151560f81b81528b151560f81b600182015260ff60f81b8b60f81b166002820152613901600382018b60f81b6001600160f81b0319169052565b61391a600482018a60f81b6001600160f81b0319169052565b613933600582018960f81b6001600160f81b0319169052565b61394c600682018860f81b6001600160f81b0319169052565b613965600782018760f81b6001600160f81b0319169052565b61397e600882018660f81b6001600160f81b0319169052565b613997600982018560f81b6001600160f81b0319169052565b6139b0600a82018460f81b6001600160f81b0319169052565b6139c9600b82018360f81b6001600160f81b0319169052565b600c019c9b505050505050505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613a0e608083018461389a565b9695505050505050565b602081526000610b4c602083018461389a565b8151151581526101a081016020830151613a49602084018215159052565b506040830151613a5e604084018260ff169052565b506060830151613a73606084018260ff169052565b506080830151613a88608084018260ff169052565b5060a0830151613a9d60a084018260ff169052565b5060c0830151613ab260c084018260ff169052565b5060e0830151613ac760e084018260ff169052565b506101008381015160ff908116918401919091526101208085015182169084015261014080850151821690840152610160808501518216908401526101809384015116929091019190915290565b604051601f8201601f191681016001600160401b0381118282101715613b3d57613b3d613d12565b604052919050565b60006001600160401b03821115613b5e57613b5e613d12565b50601f01601f191660200190565b600061ffff808316818516808303821115613b8957613b89613cba565b01949350505050565b60008219821115613ba557613ba5613cba565b500190565b600060ff821660ff84168060ff03821115613bc757613bc7613cba565b019392505050565b600082821015613be157613be1613cba565b500390565b60005b83811015613c01578181015183820152602001613be9565b838111156109ca5750506000910152565b600181811c90821680613c2657607f821691505b602082108114156106f857634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415613c5f57613c5f613cba565b6001019392505050565b6000600019821415613c7d57613c7d613cba565b5060010190565b600082613c9357613c93613cd0565b500690565b600060ff831680613cab57613cab613cd0565b8060ff84160691505092915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461084b57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572686d6d6d6d207768617420646f696e673f000000000000000000000000000000a2646970667358221220d216624c603dc3fa7b6d1be28ba81de4cea70b5665b4c60bf5644a91ac92c33964736f6c63430008070033000000000000000000000000000000000000000000000000000000000000c350

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102635760003560e01c80635c975abb11610156578063a1b8f374116100d3578063d8952a4911610097578063e985e9c511610071578063e985e9c514610561578063ebd1736814610574578063f2fde38b1461059f57600080fd5b8063d8952a4914610532578063e1fc334f14610545578063e83157421461055857600080fd5b8063a1b8f374146104d0578063a22cb465146104f0578063b88d4fde14610503578063c084f54014610516578063c87b56dd1461051f57600080fd5b8063715018a61161011a578063715018a61461047c57806375e7a1e6146104845780638da5cb5b1461049757806394e56847146104a857806395d89b41146104c857600080fd5b80635c975abb146104295780636352211e1461043b5780636abcded11461044e578063704802751461045657806370a082311461046957600080fd5b80633431a753116101e457806340c10f19116101a857806340c10f19146103bc57806342842e0e146103cf57806342966c68146103e25780634f02c420146103f55780634f6ccce71461041657600080fd5b80633431a7531461036857806335ca838b1461037b578063368383911461038e57806336a54b90146103a15780634018b1f8146103b457600080fd5b80631785f53c1161022b5780631785f53c146102f857806318160ddd1461030b57806323b872dd1461031d5780632f745c591461033057806333df4b2c1461034357600080fd5b806301ffc9a71461026857806306fdde0314610290578063081812fc146102a5578063095ea7b3146102d057806316c38b3c146102e5575b600080fd5b61027b6102763660046137af565b6105b2565b60405190151581526020015b60405180910390f35b6102986105dd565b6040516102879190613a18565b6102b86102b336600461385f565b61066f565b6040516001600160a01b039091168152602001610287565b6102e36102de3660046136ac565b6106fe565b005b6102e36102f3366004613794565b610785565b6102e361030636600461354e565b610856565b6008545b604051908152602001610287565b6102e361032b36600461359c565b6108bf565b61030f61033e3660046136ac565b6109d0565b610356610351366004613878565b610b53565b60405160ff9091168152602001610287565b6102e361037636600461385f565b610b99565b6102e36103893660046136d6565b610bea565b61035661039c366004613878565b610d5a565b61027b6103af36600461385f565b610d6a565b600c5461030f565b6102e36103ca3660046136ac565b610ed9565b6102e36103dd36600461359c565b61112c565b6102e36103f036600461385f565b6111af565b600d546104039061ffff1681565b60405161ffff9091168152602001610287565b61030f61042436600461385f565b611333565b600a54600160a01b900460ff1661027b565b6102b861044936600461385f565b6113b8565b600b5461030f565b6102e361046436600461354e565b611535565b61030f61047736600461354e565b6115a1565b6102e36116a6565b6036546102b8906001600160a01b031681565b600a546001600160a01b03166102b8565b6104bb6104b636600461385f565b6116fa565b6040516102879190613a2b565b6102986118e7565b61030f6104de36600461385f565b600f6020526000908152604090205481565b6102e36104fe366004613682565b6118f6565b6102e36105113660046135d8565b611977565b61030f600c5481565b61029861052d36600461385f565b611a02565b6102e3610540366004613569565b611bd8565b6037546102b8906001600160a01b031681565b61030f600b5481565b61027b61056f366004613569565b611c4e565b61058761058236600461385f565b611cf3565b6040516001600160401b039091168152602001610287565b6102e36105ad36600461354e565b611d71565b60006001600160e01b0319821663780e9d6360e01b14806105d757506105d782611e27565b92915050565b6060600080546105ec90613c12565b80601f016020809104026020016040519081016040528092919081815260200182805461061890613c12565b80156106655780601f1061063a57610100808354040283529160200191610665565b820191906000526020600020905b81548152906001019060200180831161064857829003601f168201915b5050505050905090565b33600090815260386020526040812054829060ff16806106ad575060008181526011602052604090205443600160401b9091046001600160401b0316105b6106ec5760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064015b60405180910390fd5b6106f583611e77565b91505b50919050565b33600090815260386020526040902054819060ff168061073c575060008181526011602052604090205443600160401b9091046001600160401b0316105b6107765760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b6107808383611f0c565b505050565b6037546001600160a01b0316158015906107a957506036546001600160a01b031615155b6107f55760405162461bcd60e51b815260206004820152601160248201527f436f6e747261637473206e6f742073657400000000000000000000000000000060448201526064016106e3565b600a546001600160a01b0316331461083d5760405162461bcd60e51b81526020600482018190526024820152600080516020613d3f83398151915260448201526064016106e3565b801561084e5761084b61201d565b50565b61084b6120c2565b600a546001600160a01b0316331461089e5760405162461bcd60e51b81526020600482018190526024820152600080516020613d3f83398151915260448201526064016106e3565b6001600160a01b03166000908152603860205260409020805460ff19169055565b33600090815260386020526040902054819060ff16806108fd575060008181526011602052604090205443600160401b9091046001600160401b0316105b6109375760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b3360009081526038602052604090205460ff166109bf57610959335b8361214f565b6109bf5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60648201526084016106e3565b6109ca848484612226565b50505050565b3360009081526038602052604081205460ff1680610a0d57503260009081526010602052604090205443600160401b9091046001600160401b0316105b610a475760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b3360009081526038602052604090205460ff1680610a8d57506001600160a01b03831660009081526010602052604090205443600160401b9091046001600160401b0316105b610ac75760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b6000610ad384846123d1565b3360009081526038602052604090205490915060ff1680610b12575060008181526011602052604090205443600160401b9091046001600160401b0316105b610b4c5760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b9392505050565b60128260128110610b6357600080fd5b018181548110610b7257600080fd5b9060005260206000209060209182820401919006915091509054906101000a900460ff1681565b600a546001600160a01b03163314610be15760405162461bcd60e51b81526020600482018190526024820152600080516020613d3f83398151915260448201526064016106e3565b61ffff16600c55565b3360009081526038602052604090205460ff16610c455760405162461bcd60e51b81526020600482015260196024820152784f6e6c792061646d696e732063616e2063616c6c207468697360381b60448201526064016106e3565b6040805180820182526001600160401b0342818116835243828116602080860191825232600090815260109091529586209451855491518516600160401b026fffffffffffffffffffffffffffffffff1990921694169390931792909217909255915b83518110156109ca576040518060400160405280836001600160401b03168152602001846001600160401b031681525060116000868481518110610cee57610cee613cfc565b60209081029190910181015161ffff168252818101929092526040016000208251815493909201516001600160401b03908116600160401b026fffffffffffffffffffffffffffffffff1990941692169190911791909117905580610d5281613c69565b915050610ca8565b60248260128110610b6357600080fd5b33600090815260386020526040812054829060ff1680610da8575060008181526011602052604090205443600160401b9091046001600160401b0316105b610de25760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b50506000908152600e602090815260409182902082516101a081018452905460ff808216151580845261010080840483161515958501959095526201000083048216958401959095526301000000820481166060840152640100000000820481166080840152650100000000008204811660a084015266010000000000008204811660c08401526701000000000000008204811660e0840152600160401b82048116938301939093526901000000000000000000810483166101208301526a010000000000000000000081048316610140830152600160581b81048316610160830152600160601b90049091166101809091015290565b600a54600160a01b900460ff1615610f265760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016106e3565b3360009081526038602052604090205460ff16610f815760405162461bcd60e51b81526020600482015260196024820152784f6e6c792061646d696e732063616e2063616c6c207468697360381b60448201526064016106e3565b600b54600d54610f969061ffff166001613b6c565b61ffff161115610fe85760405162461bcd60e51b815260206004820152601160248201527f416c6c20746f6b656e73206d696e74656400000000000000000000000000000060448201526064016106e3565b600d805461ffff16906000610ffc83613c47565b82546101009290920a61ffff818102199093169183160217909155600d54326000908152601060209081526040918290208251808401909352546001600160401b038082168452600160401b909104169082015261105f93509116908390612467565b50326001600160a01b0383161480159061108757506036546001600160a01b03838116911614155b1561111657600d5461ffff166000908152600e602052604090205460ff16156110e257600d5460405161ffff909116907fe29418457691d1512b6901d18639581f1cc9e1b7aec04a268df6066e59ce784390600090a2611116565b600d5460405161ffff909116907f2d01eeb873c49eb04dcb8041bc17419306f74e7a3a2b6119389408ec9e529a3790600090a25b600d5461112890839061ffff16612721565b5050565b33600090815260386020526040902054819060ff168061116a575060008181526011602052604090205443600160401b9091046001600160401b0316105b6111a45760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b6109ca84848461273b565b600a54600160a01b900460ff16156111fc5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016106e3565b3360009081526038602052604090205460ff166112575760405162461bcd60e51b81526020600482015260196024820152784f6e6c792061646d696e732063616e2063616c6c207468697360381b60448201526064016106e3565b32611261826113b8565b6001600160a01b0316146112b75760405162461bcd60e51b815260206004820152601760248201527f4f6f707320796f7520646f6e2774206f776e207468617400000000000000000060448201526064016106e3565b6000818152600e602052604090205460ff16156112fe5760405181907f76126f33d318abe88f8b82c5136b7e5a52091ab897679a40f612d7590adfc99790600090a261132a565b60405181907f31b140e38e2471293211a1bf10df4eb7f429e7c02f58e84b8c6fcee0c6fcd85790600090a25b61084b81612756565b60008061133f836127fd565b3360009081526038602052604090205490915060ff168061137e575060008181526011602052604090205443600160401b9091046001600160401b0316105b6105d75760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b3360009081526038602052604081205460ff16806113f557503260009081526010602052604090205443600160401b9091046001600160401b0316105b61142f5760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b33600090815260386020526040902054829060ff168061146d575060008181526011602052604090205443600160401b9091046001600160401b0316105b6114a75760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b60006114b284612890565b3360009081526038602052604090205490915060ff16806114fb57506001600160a01b03811660009081526010602052604090205443600160401b9091046001600160401b0316105b6106f55760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b600a546001600160a01b0316331461157d5760405162461bcd60e51b81526020600482018190526024820152600080516020613d3f83398151915260448201526064016106e3565b6001600160a01b03166000908152603860205260409020805460ff19166001179055565b3360009081526038602052604081205460ff16806115de57503260009081526010602052604090205443600160401b9091046001600160401b0316105b6116185760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b3360009081526038602052604090205460ff168061165e57506001600160a01b03821660009081526010602052604090205443600160401b9091046001600160401b0316105b6116985760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b6105d782612907565b919050565b600a546001600160a01b031633146116ee5760405162461bcd60e51b81526020600482018190526024820152600080516020613d3f83398151915260448201526064016106e3565b6116f8600061298e565b565b6117026134bb565b3360009081526038602052604090205460ff168061173f57503260009081526010602052604090205443600160401b9091046001600160401b0316105b6117795760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b33600090815260386020526040902054829060ff16806117b7575060008181526011602052604090205443600160401b9091046001600160401b0316105b6117f15760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b50506000908152600e602090815260409182902082516101a081018452905460ff8082161515835261010080830482161515948401949094526201000082048116948301949094526301000000810484166060830152640100000000810484166080830152650100000000008104841660a083015266010000000000008104841660c08301526701000000000000008104841660e0830152600160401b81048416928201929092526901000000000000000000820483166101208201526a010000000000000000000082048316610140820152600160581b82048316610160820152600160601b90910490911661018082015290565b6060600180546105ec90613c12565b3360009081526038602052604090205460ff168061193357503260009081526010602052604090205443600160401b9091046001600160401b0316105b61196d5760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b61112882826129e0565b33600090815260386020526040902054829060ff16806119b5575060008181526011602052604090205443600160401b9091046001600160401b0316105b6119ef5760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b6119fb858585856129eb565b5050505050565b3360009081526038602052604090205460609060ff1680611a4257503260009081526010602052604090205443600160401b9091046001600160401b0316105b611a7c5760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b33600090815260386020526040902054829060ff1680611aba575060008181526011602052604090205443600160401b9091046001600160401b0316105b611af45760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b6000838152600260205260409020546001600160a01b0316611b585760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20494420646f6573206e6f7420657869737400000000000000000060448201526064016106e3565b60375460405163c87b56dd60e01b8152600481018590526001600160a01b039091169063c87b56dd9060240160006040518083038186803b158015611b9c57600080fd5b505afa158015611bb0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106f591908101906137e9565b600a546001600160a01b03163314611c205760405162461bcd60e51b81526020600482018190526024820152600080516020613d3f83398151915260448201526064016106e3565b603780546001600160a01b039384166001600160a01b03199182161790915560368054929093169116179055565b3360009081526038602052604081205460ff1680611c8b57503260009081526010602052604090205443600160401b9091046001600160401b0316105b611cc55760405162461bcd60e51b81526020600482015260116024820152600080516020613d5f83398151915260448201526064016106e3565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff16610b4c565b3360009081526038602052604081205460ff16611d4e5760405162461bcd60e51b81526020600482015260196024820152784f6e6c792061646d696e732063616e2063616c6c207468697360381b60448201526064016106e3565b50600090815260116020526040902054600160401b90046001600160401b031690565b600a546001600160a01b03163314611db95760405162461bcd60e51b81526020600482018190526024820152600080516020613d3f83398151915260448201526064016106e3565b6001600160a01b038116611e1e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106e3565b61084b8161298e565b60006001600160e01b031982166380ac58cd60e01b1480611e5857506001600160e01b03198216635b5e139f60e01b145b806105d757506301ffc9a760e01b6001600160e01b03198316146105d7565b6000818152600260205260408120546001600160a01b0316611ef05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106e3565b506000908152600460205260409020546001600160a01b031690565b6000611f1782612890565b9050806001600160a01b0316836001600160a01b03161415611f855760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106e3565b336001600160a01b0382161480611fa15750611fa18133611c4e565b6120135760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106e3565b6107808383612a66565b600a54600160a01b900460ff161561206a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016106e3565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120a53390565b6040516001600160a01b03909116815260200160405180910390a1565b600a54600160a01b900460ff1661211b5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016106e3565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336120a5565b6000818152600260205260408120546001600160a01b03166121c85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106e3565b60006121d383612890565b9050806001600160a01b0316846001600160a01b0316148061220e5750836001600160a01b03166122038461066f565b6001600160a01b0316145b8061221e575061221e8185611c4e565b949350505050565b826001600160a01b031661223982612890565b6001600160a01b0316146122a15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106e3565b6001600160a01b0382166123035760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106e3565b61230e838383612ad4565b612319600082612a66565b6001600160a01b0383166000908152600360205260408120805460019290612342908490613bcf565b90915550506001600160a01b0382166000908152600360205260408120805460019290612370908490613b92565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006123dc83612907565b821061243e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016106e3565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61246f6134bb565b61247883612b8c565b9050600f600061248783612d6d565b815260200190815260200160002054600014156126eb5780600e600086815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548160ff021916908360ff16021790555060608201518160000160036101000a81548160ff021916908360ff16021790555060808201518160000160046101000a81548160ff021916908360ff16021790555060a08201518160000160056101000a81548160ff021916908360ff16021790555060c08201518160000160066101000a81548160ff021916908360ff16021790555060e08201518160000160076101000a81548160ff021916908360ff1602179055506101008201518160000160086101000a81548160ff021916908360ff1602179055506101208201518160000160096101000a81548160ff021916908360ff16021790555061014082015181600001600a6101000a81548160ff021916908360ff16021790555061016082015181600001600b6101000a81548160ff021916908360ff16021790555061018082015181600001600c6101000a81548160ff021916908360ff16021790555090505083600f600061267384612d6d565b81526020810191909152604001600020558051156126bb5760405184907f137a90ac9032bb52a13f83c0ac1598bbf4eb39c8cacd438d83089f198173dbc090600090a2610b4c565b60405184907fcc9bc27bff58e9890a94e417777967d544385a9820babf74df9db672e38905ab90600090a2610b4c565b61221e848460405160200161270291815260200190565b6040516020818303038152906040528051906020012060001c84612467565b611128828260405180602001604052806000815250612dde565b61078083838360405180602001604052806000815250611977565b600061276182612890565b905061276f81600084612ad4565b61277a600083612a66565b6001600160a01b03811660009081526003602052604081208054600192906127a3908490613bcf565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600061280860085490565b821061286b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016106e3565b6008828154811061287e5761287e613cfc565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105d75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106e3565b60006001600160a01b0382166129725760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106e3565b506001600160a01b031660009081526003602052604090205490565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611128338383612e5c565b6129f433610953565b612a5a5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60648201526084016106e3565b6109ca84848484612f2b565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a9b82612890565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038316612b2f57612b2a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612b52565b816001600160a01b0316836001600160a01b031614612b5257612b528382612fa9565b6001600160a01b038216612b695761078081613046565b826001600160a01b0316826001600160a01b0316146107805761078082826130f5565b612b946134bb565b612ba3600a61ffff8416613c84565b151581526003612bb8600a61ffff8516613c84565b1180156020830152600090612bcb575060015b8151612be557612be08361ffff16600b613139565b612be8565b60005b60ff166040830152815160109390931c92612c169061ffff851690612c0e576010613139565b60095b613139565b60ff16610100830152815160109390931c92612c489061ffff851690612c3d57600f613139565b612c11836005613baa565b60ff1660e0830152815160109390931c92612c799061ffff851690612c6e57600d613139565b612c11836003613baa565b60ff1660a0830152815160109390931c9215612d1257612ca261ffff8416612c11836001613baa565b60ff16606083015260109290921c91612cc061ffff84166007613139565b60ff1660c083015260109290921c91612cde61ffff84166008613139565b60ff1661014083015260109290921c91612cfd61ffff8416600a613139565b60ff1661012083015260109290921c916106f8565b612d218361ffff16600c613139565b60ff16608083015260109290921c91612d3f61ffff8416600e613139565b60ff1661016083015260109290921c91612d5e61ffff84166011613139565b60ff1661018083015250919050565b8051602080830151604080850151606086015160a087015160c088015160e08901516101008a01516101208b01516101408c01516101608d01516101808e0151995160009d612dc09d909c9b91016138c6565b60408051601f19818403018152919052805160209091012092915050565b612de88383613215565b612df56000848484613363565b6107805760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016106e3565b816001600160a01b0316836001600160a01b03161415612ebe5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106e3565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612f36848484612226565b612f4284848484613363565b6109ca5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016106e3565b60006001612fb684612907565b612fc09190613bcf565b600083815260076020526040902054909150808214613013576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061305890600190613bcf565b6000838152600960205260408120546008805493945090928490811061308057613080613cfc565b9060005260206000200154905080600883815481106130a1576130a1613cfc565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806130d9576130d9613ce6565b6001900381819060005260206000200160009055905550505050565b600061310083612907565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60008060128360ff166012811061315257613152613cfc565b015461315e9085613c98565b905060128360ff166012811061317657613176613cfc565b018160ff168154811061318b5761318b613cfc565b60009182526020918290209181049091015460ff601f9092166101000a90048116600886901c90911610156131c15790506105d7565b60248360ff16601281106131d7576131d7613cfc565b018160ff16815481106131ec576131ec613cfc565b90600052602060002090602091828204019190069054906101000a900460ff1691505092915050565b6001600160a01b03821661326b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106e3565b6000818152600260205260409020546001600160a01b0316156132d05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106e3565b6132dc60008383612ad4565b6001600160a01b0382166000908152600360205260408120805460019290613305908490613b92565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156134b057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906133a79033908990889088906004016139dc565b602060405180830381600087803b1580156133c157600080fd5b505af19250505080156133f1575060408051601f3d908101601f191682019092526133ee918101906137cc565b60015b613496573d80801561341f576040519150601f19603f3d011682016040523d82523d6000602084013e613424565b606091505b50805161348e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016106e3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061221e565b506001949350505050565b604080516101a081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081019190915290565b80356001600160a01b03811681146116a157600080fd5b803580151581146116a157600080fd5b60006020828403121561356057600080fd5b610b4c82613527565b6000806040838503121561357c57600080fd5b61358583613527565b915061359360208401613527565b90509250929050565b6000806000606084860312156135b157600080fd5b6135ba84613527565b92506135c860208501613527565b9150604084013590509250925092565b600080600080608085870312156135ee57600080fd5b6135f785613527565b935061360560208601613527565b92506040850135915060608501356001600160401b0381111561362757600080fd5b8501601f8101871361363857600080fd5b803561364b61364682613b45565b613b15565b81815288602083850101111561366057600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b6000806040838503121561369557600080fd5b61369e83613527565b91506135936020840161353e565b600080604083850312156136bf57600080fd5b6136c883613527565b946020939093013593505050565b600060208083850312156136e957600080fd5b82356001600160401b038082111561370057600080fd5b818501915085601f83011261371457600080fd5b81358181111561372657613726613d12565b8060051b9150613737848301613b15565b8181528481019084860184860187018a101561375257600080fd5b600095508594505b8385101561378757803561ffff81168114613773578687fd5b83526001949094019391860191860161375a565b5098975050505050505050565b6000602082840312156137a657600080fd5b610b4c8261353e565b6000602082840312156137c157600080fd5b8135610b4c81613d28565b6000602082840312156137de57600080fd5b8151610b4c81613d28565b6000602082840312156137fb57600080fd5b81516001600160401b0381111561381157600080fd5b8201601f8101841361382257600080fd5b805161383061364682613b45565b81815285602083850101111561384557600080fd5b613856826020830160208601613be6565b95945050505050565b60006020828403121561387157600080fd5b5035919050565b6000806040838503121561388b57600080fd5b50508035926020909101359150565b600081518084526138b2816020860160208601613be6565b601f01601f19169290920160200192915050565b8c151560f81b81528b151560f81b600182015260ff60f81b8b60f81b166002820152613901600382018b60f81b6001600160f81b0319169052565b61391a600482018a60f81b6001600160f81b0319169052565b613933600582018960f81b6001600160f81b0319169052565b61394c600682018860f81b6001600160f81b0319169052565b613965600782018760f81b6001600160f81b0319169052565b61397e600882018660f81b6001600160f81b0319169052565b613997600982018560f81b6001600160f81b0319169052565b6139b0600a82018460f81b6001600160f81b0319169052565b6139c9600b82018360f81b6001600160f81b0319169052565b600c019c9b505050505050505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613a0e608083018461389a565b9695505050505050565b602081526000610b4c602083018461389a565b8151151581526101a081016020830151613a49602084018215159052565b506040830151613a5e604084018260ff169052565b506060830151613a73606084018260ff169052565b506080830151613a88608084018260ff169052565b5060a0830151613a9d60a084018260ff169052565b5060c0830151613ab260c084018260ff169052565b5060e0830151613ac760e084018260ff169052565b506101008381015160ff908116918401919091526101208085015182169084015261014080850151821690840152610160808501518216908401526101809384015116929091019190915290565b604051601f8201601f191681016001600160401b0381118282101715613b3d57613b3d613d12565b604052919050565b60006001600160401b03821115613b5e57613b5e613d12565b50601f01601f191660200190565b600061ffff808316818516808303821115613b8957613b89613cba565b01949350505050565b60008219821115613ba557613ba5613cba565b500190565b600060ff821660ff84168060ff03821115613bc757613bc7613cba565b019392505050565b600082821015613be157613be1613cba565b500390565b60005b83811015613c01578181015183820152602001613be9565b838111156109ca5750506000910152565b600181811c90821680613c2657607f821691505b602082108114156106f857634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415613c5f57613c5f613cba565b6001019392505050565b6000600019821415613c7d57613c7d613cba565b5060010190565b600082613c9357613c93613cd0565b500690565b600060ff831680613cab57613cab613cd0565b8060ff84160691505092915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461084b57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572686d6d6d6d207768617420646f696e673f000000000000000000000000000000a2646970667358221220d216624c603dc3fa7b6d1be28ba81de4cea70b5665b4c60bf5644a91ac92c33964736f6c63430008070033

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

000000000000000000000000000000000000000000000000000000000000c350

-----Decoded View---------------
Arg [0] : _maxTokens (uint256): 50000

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000c350


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.