ETH Price: $2,426.71 (+0.07%)

Token

PIXELFROG (PFRG)
 

Overview

Max Total Supply

600 PFRG

Holders

294

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
3 PFRG
0x6497a1c9ae628b309a3a29ea15aff3a953a59076
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:
PIXELFROG

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : CryptoFrogFrens.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";


contract PIXELFROG is ERC721, ERC721Enumerable, Ownable {
    bool public mainSaleActive = false;
    bool public picsRevealed = false;

    bool public whitelistSaleActive = false;

    bool public finalized = false;

    mapping(address => uint) public whitelist;
    mapping(address => uint) public whitelist_og;
    mapping(address => uint) public claimed;
    mapping(address => uint) public claimed_og;
    mapping(uint => string) public traits;
    mapping(uint => string) public texts;
    mapping(uint => uint256) public xdone;
    mapping(uint => string) public gif;

    using Counters for Counters.Counter;

    Counters.Counter private _tokenIdCounter;
    uint private constant maxTokensPerTransaction = 10;
    uint256 private tokenPrice = 90000000000000000; //0.09 ETH
    uint256 private tokenPriceWhite = 70000000000000000; //0.07 ETH
    uint256 private constant nftsNumber = 10802;

    
    constructor() ERC721("PIXELFROG", "PFRG") {
        _tokenIdCounter.increment();
    }
     

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

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
    
    function random(string memory input) internal pure returns (uint256) {
        return uint256(keccak256(abi.encodePacked(input)));
    }
    
    
    function toString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }


    function getSuperGIF(uint256 num) public view returns (string memory) {
        uint256 index;
        index = (num >> 10) % 23;
        return string(abi.encodePacked(
                    'data:application/json;base64,', 
                    Base64.encode(bytes(string(abi.encodePacked('{"name": "Crypto Frog Frens", "description": "Crypto Frog Frens", "image": "ipfs://',gif[index],'"}'))))
                    ));
    }



    function getSuperSVG(uint256 num) public view returns (string memory) {
        uint256 index;
        string memory res;
        index = 1000 + (num >> 5) % 55;
    
        res = '<?xml version="1.0" encoding="utf-8"?> <svg id="fr" xmlns="http://www.w3.org/2000/svg"  x="0px" y="0px" width="1000px" height="1000px" xmlns:xlink="http://www.w3.org/1999/xlink">';
            res = string(abi.encodePacked(
                    res, 
                    '<image x="1" y="1" width="1000" height="1000" image-rendering="pixelated" preserveAspectRatio="xMidYMid" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABk',
                    traits[index],
                    '"/>'
                ));
        
        res =  string(abi.encodePacked(res, '<style>#fr{shape-rendering: crispedges; image-rendering: -webkit-crisp-edges; image-rendering: -moz-crisp-edges; image-rendering: crisp-edges; image-rendering: pixelated; -ms-interpolation-mode: nearest-neighbor;}</style></svg>'));
    
        res = Base64.encode(bytes(res));
        string memory json = Base64.encode(
            bytes(string(abi.encodePacked(
                '{"name": "Crypto Frog Frens", "description": "Crypto Frog Frens - beautiful frogs, completely generated OnChain","attributes":', 
                '[{ "trait_type": "Super", "value": texts[index]}]', 
                ', "image": "data:image/svg+xml;base64,', 
                res, 
                '"}'
                ))));
       return string(abi.encodePacked('data:application/json;base64,', json));
       }


    function getSVG(uint256 num) public view returns (string memory) {
        uint256 i;
        uint256 chance;
        uint256 start;
        uint256 amount;
        string[7]memory tname = [
            'Body',
            'Miscellaneous',
            'Clothes',
            'Mouth',
            'Headwear',
            'Eyes',
            'Accessory'
        ];
        string[20]memory backs =[
            'e5bf1f',
            '89ccb6',
            '8f61ff',
            'cdf0f1',
            '8addda',
            'da5e66',
            'cddf6c',
            'ffe1c6',
            'ff9fd9',
            'c4bceb',
            '7ee799',
            'fd7c90',
            'e69488',
            '699392',
            '4d9186',
            'ba8ca8',
            'b2ba90',
            '008080',
            '5671f4',
            'ffae1a'
                ];


        string memory res;
        string memory traits_str;
        i=num;
        res = '<?xml version="1.0" encoding="utf-8"?> <svg id="fr" xmlns="http://www.w3.org/2000/svg"  x="0px" y="0px" width="1000px" height="1000px" xmlns:xlink="http://www.w3.org/1999/xlink">';
        res = string(abi.encodePacked(
                res, 
               '<rect x="1" y="1" width="1000" height="1000" fill="#',
                backs[(num >> 20)%20],
                '" />'
            ));

        traits_str = string(abi.encodePacked(
            '{ "trait_type": " Background", "value": "',
                texts[2000+(num >> 20)%20],
            '"}'
        ));
        
        for(i = 0; i<7;i++) {
            chance = i==0?100:(i==1?19:(i==2?100:(i==3?100:(i==4?100:(i==5?100:19)))));
            amount = i==0?17:(i==1?6:(i==2?87:(i==3?89:(i==4?115:(i==5?58:8)))));
		    if (((num >> (i*7))%100) <= chance) {
                res = string(abi.encodePacked(
                    res, 
                    '<image x="1" y="1" width="1000" height="1000" image-rendering="pixelated" preserveAspectRatio="xMidYMid" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABk',
                    traits[start + (num>>i)%amount],
                    '"/>'
                ));

                traits_str = string(abi.encodePacked(
                        traits_str,
                        ',{ "trait_type": "',
                        tname[i]
                        ,'", "value": "',
                        texts[start + (num>>i)%amount]
                        ,'"}'


                ));


            }
            start += amount;
        }
        
        res =  string(abi.encodePacked(res, '<style>#fr{shape-rendering: crispedges; image-rendering: -webkit-crisp-edges; image-rendering: -moz-crisp-edges; image-rendering: crisp-edges; image-rendering: pixelated; -ms-interpolation-mode: nearest-neighbor;}</style></svg>'));
    
        res = Base64.encode(bytes(res));
        string memory json = Base64.encode(
            bytes(string(abi.encodePacked(
                '{"name": "Crypto Frog Frens", "description": "Crypto Frog Frens - beautiful frogs, completely generated OnChain","attributes":', 
                '[',traits_str,']', 
                ', "image": "data:image/svg+xml;base64,', 
                res, 
                '"}'
                ))));
       return string(abi.encodePacked('data:application/json;base64,', json));
    }
    
    
    function tokenURI(uint256 tokenId) public view override(ERC721)  returns (string memory) {
        if (!picsRevealed || (xdone[tokenId] == 0 || xdone[tokenId+10] == 0 || xdone[tokenId+20]==0)) {
                return string(abi.encodePacked(
                    'data:application/json;base64,', 
                    Base64.encode(bytes(string(abi.encodePacked('{"name": "Crypto Frog Frens", "description": "Crypto Frog Frens", "image": "ipfs://QmPg79RqdyQzfD52N67L1V4cEAvPPaeyEmT81S2pREGvk8"}'))))
                    ));
        }

        uint256 rand = (xdone[tokenId] ^ xdone[tokenId+10]) ^ xdone[tokenId+20];
        uint rarity = (rand >> 10) % 1000;
        string memory output;

        if (rarity < 2) {
            output = getSuperGIF(rand);
        } else if (rarity < 10) {
            output = getSuperSVG(rand);
        } else {
            output = getSVG(rand);
        }

       
        return output;
    }
    
    function flipWhitelistSale() public onlyOwner {
        whitelistSaleActive = !whitelistSaleActive;
    }
    
    function flipMainSale() public onlyOwner {
        mainSaleActive = !mainSaleActive;
    }
    
    function revealAll() public onlyOwner {
        picsRevealed = true;
    }

    function finalizeAll() public onlyOwner {
        finalized = true;
    }

    function setXDone(uint num) private  {
        xdone[num] = uint(keccak256(abi.encodePacked(num, block.difficulty, block.timestamp, block.coinbase)));
    }

    function withdraw() public onlyOwner {
        uint balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    function addToWhitelist(address[] memory _address, uint32[] memory _amount)public onlyOwner {
        for (uint i = 0; i < _address.length; i++) {
            whitelist[_address[i]] = _amount[i];
        }
    }

    function addToWhitelistOG(address[] memory _address, uint32[] memory _amount)public onlyOwner {
        for (uint i = 0; i < _address.length; i++) {
            whitelist_og[_address[i]] = _amount[i];
        }
    }

    function setTraits(uint32[] memory _num, string[] memory _base) public onlyOwner {
        for (uint i = 0; i < _base.length; i++) {
            traits[_num[i]] = _base[i];
        }
    }

    function setTexts(uint32[] memory _num, string[] memory _txt) public onlyOwner {
        for (uint i = 0; i < _txt.length; i++) {
            texts[_num[i]] = _txt[i];
        }
    }

    function setGifs(uint32[] memory _num, string[] memory _file) public onlyOwner {
        for (uint i = 0; i < _num.length; i++) {
            gif[_num[i]] = _file[i];
        }
    }

    function buyFrogs(uint tokensNumber) public payable {
        require(tokensNumber > 0, "Wrong amount");
        require(!finalized, "Finalized!");
        require(mainSaleActive, "Sale must be active to mint tokens");
        require(tokensNumber <= maxTokensPerTransaction, "Max tokens per transaction number exceeded");
        require(_tokenIdCounter.current() + tokensNumber <= nftsNumber, "Tokens number to mint exceeds number of public tokens");
        require(tokenPrice*tokensNumber <= msg.value, "Ether value sent is too low");
        for (uint i = 0; i < tokensNumber; i++) {
            _safeMint(msg.sender, _tokenIdCounter.current());
            setXDone(_tokenIdCounter.current());
            _tokenIdCounter.increment();
        }

    }

    function buyWhite(uint tokensNumber) public payable {
        require(tokensNumber > 0, "Wrong amount");
        require(!finalized, "Finalized!");

        require(_tokenIdCounter.current() + tokensNumber <= nftsNumber, "Tokens number to mint exceeds number of public tokens");
        require(tokenPriceWhite * tokensNumber <= msg.value, "Ether value sent is too low");
        
        require(whitelistSaleActive, "Maybe later");
        require(tokensNumber <= whitelist[msg.sender], "You can't claim more than your allotment");

        for (uint i = 0; i < tokensNumber; i++) {
            require(whitelist[msg.sender] >= 1, "You don't have any more to claim");
            require(tokensNumber - i <= whitelist[msg.sender], "You can't claim more than your allotment");
            require(_tokenIdCounter.current()<= nftsNumber + 1, "Sry I dont have enough left ;(");
            claimed[msg.sender] += 1;
            whitelist[msg.sender] =whitelist[msg.sender] - 1;
            _safeMint(msg.sender, _tokenIdCounter.current());
            setXDone(_tokenIdCounter.current());
            _tokenIdCounter.increment();
        }
        
    }

    function freeClaim(uint tokensNumber) public {
        require(tokensNumber > 0, "Wrong amount");
        require(!finalized, "Finalized!");

        require(_tokenIdCounter.current() + tokensNumber <= nftsNumber, "Tokens number to mint exceeds number of public tokens");
        
        require(whitelistSaleActive, "Maybe later");
        require(tokensNumber <= whitelist_og[msg.sender], "You can't claim more than your allotment");

        for (uint i = 0; i < tokensNumber; i++) {
            require(whitelist_og[msg.sender] >= 1, "You don't have any more to claim");
            require(tokensNumber - i <= whitelist_og[msg.sender], "You can't claim more than your allotment");
            require(_tokenIdCounter.current()<= nftsNumber + 1, "Sry I dont have enough left ;(");
            claimed_og[msg.sender] += 1;
            whitelist_og[msg.sender] =whitelist_og[msg.sender] - 1;
            _safeMint(msg.sender, _tokenIdCounter.current());
            setXDone(_tokenIdCounter.current());
            _tokenIdCounter.increment();
        }
        
    }
   
    function mintMany(uint tokensNumber) public onlyOwner {
        require(tokensNumber > 0, "Wrong amount");
        require(!finalized, "Finalized!");

        for (uint i = 0; i < tokensNumber; i++) {
            _safeMint(msg.sender, _tokenIdCounter.current());
            setXDone(_tokenIdCounter.current());
            _tokenIdCounter.increment();
        }
    }

        
    function directMint(address to) public onlyOwner {
        require(!finalized, "Finalized!");
        _safeMint(to, _tokenIdCounter.current());
        setXDone(_tokenIdCounter.current());
        _tokenIdCounter.increment();
    }
}




/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

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

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

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

        bytes memory table = TABLE;

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

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

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

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

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

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

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 14 : 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 6 of 14 : 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 7 of 14 : 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 8 of 14 : 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 9 of 14 : 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 10 of 14 : 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 11 of 14 : 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 12 of 14 : 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 13 of 14 : 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 14 of 14 : 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": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"_address","type":"address[]"},{"internalType":"uint32[]","name":"_amount","type":"uint32[]"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_address","type":"address[]"},{"internalType":"uint32[]","name":"_amount","type":"uint32[]"}],"name":"addToWhitelistOG","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensNumber","type":"uint256"}],"name":"buyFrogs","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensNumber","type":"uint256"}],"name":"buyWhite","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed_og","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"directMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalizeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipMainSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipWhitelistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensNumber","type":"uint256"}],"name":"freeClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"getSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"getSuperGIF","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"getSuperSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"gif","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mainSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensNumber","type":"uint256"}],"name":"mintMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"picsRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealAll","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":"uint32[]","name":"_num","type":"uint32[]"},{"internalType":"string[]","name":"_file","type":"string[]"}],"name":"setGifs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32[]","name":"_num","type":"uint32[]"},{"internalType":"string[]","name":"_txt","type":"string[]"}],"name":"setTexts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32[]","name":"_num","type":"uint32[]"},{"internalType":"string[]","name":"_base","type":"string[]"}],"name":"setTraits","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":"","type":"uint256"}],"name":"texts","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"traits","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist_og","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"xdone","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052600a805463ffffffff60a01b1916905567013fbe85edc9000060145566f8b0a10e4700006015553480156200003857600080fd5b506040805180820182526009815268504958454c46524f4760b81b6020808301918252835180850190945260048452635046524760e01b908401528151919291620000869160009162000135565b5080516200009c90600190602084019062000135565b505050620000b9620000b3620000d660201b60201c565b620000da565b620000d060136200012c60201b620026f51760201c565b62000218565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b8280546200014390620001db565b90600052602060002090601f016020900481019282620001675760008555620001b2565b82601f106200018257805160ff1916838001178555620001b2565b82800160010185558215620001b2579182015b82811115620001b257825182559160200191906001019062000195565b50620001c0929150620001c4565b5090565b5b80821115620001c05760008155600101620001c5565b600181811c90821680620001f057607f821691505b602082108114156200021257634e487b7160e01b600052602260045260246000fd5b50919050565b61431180620002286000396000f3fe6080604052600436106102ae5760003560e01c806370a0823111610175578063b775b4f3116100dc578063de4b09ef11610095578063f31d7c6c1161006f578063f31d7c6c14610899578063f972c9c1146108b9578063fc1c73cb146108cc578063fef861b4146108ec57600080fd5b8063de4b09ef14610810578063e985e9c514610830578063f2fde38b1461087957600080fd5b8063b775b4f31461074e578063b88d4fde14610763578063be985ac914610783578063c2f1b031146107a3578063c87b56dd146107c3578063c884ef83146107e357600080fd5b80638da5cb5b1161012e5780638da5cb5b1461068d57806395d89b41146106ab5780639b19251a146106c0578063a22cb465146106ed578063a74af87a1461070d578063b3f05b971461072d57600080fd5b806370a08231146105d8578063715018a6146105f857806371e977781461060d5780637287461a1461063a5780637492d87c1461065a578063828ad0dd1461067a57600080fd5b80632a7854701161021957806342d0e74e116101d257806342d0e74e1461052e5780634f6ccce7146105435780635a566136146105635780635c121972146105835780636025d3e5146105a35780636352211e146105b857600080fd5b80632a785470146104775780632d72225b146104985780632f745c59146104b85780633ad7f56c146104d85780633ccfd60b146104f957806342842e0e1461050e57600080fd5b80630eb77b5c1161026b5780630eb77b5c146103bf5780630f5d66ad146103df57806318160ddd146103f457806320a45c221461040957806323b872dd1461043657806325e892831461045657600080fd5b806301ffc9a7146102b3578063059513a6146102e857806306fdde031461030a578063081812fc1461032c578063095ea7b31461036457806309ae78a014610384575b600080fd5b3480156102bf57600080fd5b506102d36102ce3660046136ee565b61090c565b60405190151581526020015b60405180910390f35b3480156102f457600080fd5b50610308610303366004613728565b61091d565b005b34801561031657600080fd5b5061031f610a46565b6040516102df9190613e46565b34801561033857600080fd5b5061034c610347366004613728565b610ad8565b6040516001600160a01b0390911681526020016102df565b34801561037057600080fd5b5061030861037f36600461350f565b610b6d565b34801561039057600080fd5b506103b161039f3660046133c6565b600c6020526000908152604090205481565b6040519081526020016102df565b3480156103cb57600080fd5b506103086103da366004613600565b610c83565b3480156103eb57600080fd5b50610308610d2b565b34801561040057600080fd5b506008546103b1565b34801561041557600080fd5b506103b1610424366004613728565b60116020526000908152604090205481565b34801561044257600080fd5b5061030861045136600461341b565b610d76565b34801561046257600080fd5b50600a546102d390600160a01b900460ff1681565b34801561048357600080fd5b50600a546102d390600160a81b900460ff1681565b3480156104a457600080fd5b5061031f6104b3366004613728565b610da7565b3480156104c457600080fd5b506103b16104d336600461350f565b610e41565b3480156104e457600080fd5b50600a546102d390600160b01b900460ff1681565b34801561050557600080fd5b50610308610ed7565b34801561051a57600080fd5b5061030861052936600461341b565b610f30565b34801561053a57600080fd5b50610308610f4b565b34801561054f57600080fd5b506103b161055e366004613728565b610f8a565b34801561056f57600080fd5b5061030861057e3660046133c6565b61101d565b34801561058f57600080fd5b5061031f61059e366004613728565b61109b565b3480156105af57600080fd5b506103086110b4565b3480156105c457600080fd5b5061034c6105d3366004613728565b6110f3565b3480156105e457600080fd5b506103b16105f33660046133c6565b61116a565b34801561060457600080fd5b506103086111f1565b34801561061957600080fd5b506103b16106283660046133c6565b600e6020526000908152604090205481565b34801561064657600080fd5b50610308610655366004613600565b611227565b34801561066657600080fd5b5061031f610675366004613728565b6112cf565b610308610688366004613728565b6112e8565b34801561069957600080fd5b50600a546001600160a01b031661034c565b3480156106b757600080fd5b5061031f6114d0565b3480156106cc57600080fd5b506103b16106db3660046133c6565b600b6020526000908152604090205481565b3480156106f957600080fd5b506103086107083660046134d3565b6114df565b34801561071957600080fd5b50610308610728366004613728565b6114ea565b34801561073957600080fd5b50600a546102d390600160b81b900460ff1681565b34801561075a57600080fd5b5061030861176d565b34801561076f57600080fd5b5061030861077e366004613457565b6117b8565b34801561078f57600080fd5b5061031f61079e366004613728565b6117f0565b3480156107af57600080fd5b5061031f6107be366004613728565b611e37565b3480156107cf57600080fd5b5061031f6107de366004613728565b611f19565b3480156107ef57600080fd5b506103b16107fe3660046133c6565b600d6020526000908152604090205481565b34801561081c57600080fd5b5061030861082b366004613600565b61211d565b34801561083c57600080fd5b506102d361084b3660046133e8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561088557600080fd5b506103086108943660046133c6565b6121c5565b3480156108a557600080fd5b506103086108b4366004613539565b61225d565b6103086108c7366004613728565b612308565b3480156108d857600080fd5b5061031f6108e7366004613728565b6125e8565b3480156108f857600080fd5b50610308610907366004613539565b61264a565b6000610917826126fe565b92915050565b600a546001600160a01b031633146109505760405162461bcd60e51b815260040161094790613f6c565b60405180910390fd5b600081116109705760405162461bcd60e51b815260040161094790613ff2565b600a54600160b81b900460ff161561099a5760405162461bcd60e51b815260040161094790613f48565b60005b81811015610a42576109b7336109b260135490565b612723565b610a226109c360135490565b604080516020810183905244918101919091524260608083019190915241901b6bffffffffffffffffffffffff1916608082015260940160408051601f1981840301815291815281516020928301206000938452601190925290912055565b610a30601380546001019055565b80610a3a81614136565b91505061099d565b5050565b606060008054610a55906140fb565b80601f0160208091040260200160405190810160405280929190818152602001828054610a81906140fb565b8015610ace5780601f10610aa357610100808354040283529160200191610ace565b820191906000526020600020905b815481529060010190602001808311610ab157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b515760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610947565b506000908152600460205260409020546001600160a01b031690565b6000610b78826110f3565b9050806001600160a01b0316836001600160a01b03161415610be65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610947565b336001600160a01b0382161480610c025750610c02813361084b565b610c745760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610947565b610c7e838361273d565b505050565b600a546001600160a01b03163314610cad5760405162461bcd60e51b815260040161094790613f6c565b60005b8151811015610c7e57818181518110610ccb57610ccb6141a7565b602002602001015160106000858481518110610ce957610ce96141a7565b602002602001015163ffffffff1681526020019081526020016000209080519060200190610d18929190613234565b5080610d2381614136565b915050610cb0565b600a546001600160a01b03163314610d555760405162461bcd60e51b815260040161094790613f6c565b600a805460ff60b01b198116600160b01b9182900460ff1615909102179055565b610d8033826127ab565b610d9c5760405162461bcd60e51b815260040161094790613fa1565b610c7e83838361289e565b600f6020526000908152604090208054610dc0906140fb565b80601f0160208091040260200160405190810160405280929190818152602001828054610dec906140fb565b8015610e395780601f10610e0e57610100808354040283529160200191610e39565b820191906000526020600020905b815481529060010190602001808311610e1c57829003601f168201915b505050505081565b6000610e4c8361116a565b8210610eae5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610947565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610f015760405162461bcd60e51b815260040161094790613f6c565b6040514790339082156108fc029083906000818181858888f19350505050158015610a42573d6000803e3d6000fd5b610c7e838383604051806020016040528060008152506117b8565b600a546001600160a01b03163314610f755760405162461bcd60e51b815260040161094790613f6c565b600a805460ff60a81b1916600160a81b179055565b6000610f9560085490565b8210610ff85760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610947565b6008828154811061100b5761100b6141a7565b90600052602060002001549050919050565b600a546001600160a01b031633146110475760405162461bcd60e51b815260040161094790613f6c565b600a54600160b81b900460ff16156110715760405162461bcd60e51b815260040161094790613f48565b61107e816109b260135490565b61108a6109c360135490565b611098601380546001019055565b50565b60106020526000908152604090208054610dc0906140fb565b600a546001600160a01b031633146110de5760405162461bcd60e51b815260040161094790613f6c565b600a805460ff60b81b1916600160b81b179055565b6000818152600260205260408120546001600160a01b0316806109175760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610947565b60006001600160a01b0382166111d55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610947565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331461121b5760405162461bcd60e51b815260040161094790613f6c565b6112256000612a49565b565b600a546001600160a01b031633146112515760405162461bcd60e51b815260040161094790613f6c565b60005b8151811015610c7e5781818151811061126f5761126f6141a7565b6020026020010151600f600085848151811061128d5761128d6141a7565b602002602001015163ffffffff16815260200190815260200160002090805190602001906112bc929190613234565b50806112c781614136565b915050611254565b60126020526000908152604090208054610dc0906140fb565b600081116113085760405162461bcd60e51b815260040161094790613ff2565b600a54600160b81b900460ff16156113325760405162461bcd60e51b815260040161094790613f48565b600a54600160a01b900460ff166113965760405162461bcd60e51b815260206004820152602260248201527f53616c65206d7573742062652061637469766520746f206d696e7420746f6b656044820152616e7360f01b6064820152608401610947565b600a8111156113fa5760405162461bcd60e51b815260206004820152602a60248201527f4d617820746f6b656e7320706572207472616e73616374696f6e206e756d62656044820152691c88195e18d95959195960b21b6064820152608401610947565b612a328161140760135490565b611411919061406d565b111561142f5760405162461bcd60e51b815260040161094790613ef3565b348160145461143e9190614099565b111561148c5760405162461bcd60e51b815260206004820152601b60248201527f45746865722076616c75652073656e7420697320746f6f206c6f7700000000006044820152606401610947565b60005b81811015610a42576114a4336109b260135490565b6114b06109c360135490565b6114be601380546001019055565b806114c881614136565b91505061148f565b606060018054610a55906140fb565b610a42338383612a9b565b6000811161150a5760405162461bcd60e51b815260040161094790613ff2565b600a54600160b81b900460ff16156115345760405162461bcd60e51b815260040161094790613f48565b612a328161154160135490565b61154b919061406d565b11156115695760405162461bcd60e51b815260040161094790613ef3565b600a54600160b01b900460ff166115b05760405162461bcd60e51b815260206004820152600b60248201526a26b0bcb132903630ba32b960a91b6044820152606401610947565b336000908152600c60205260409020548111156115df5760405162461bcd60e51b815260040161094790613e59565b60005b81811015610a4257336000908152600c60205260409020546001111561164a5760405162461bcd60e51b815260206004820181905260248201527f596f7520646f6e2774206861766520616e79206d6f726520746f20636c61696d6044820152606401610947565b336000908152600c602052604090205461166482846140b8565b11156116825760405162461bcd60e51b815260040161094790613e59565b61168f612a32600161406d565b60135411156116e05760405162461bcd60e51b815260206004820152601e60248201527f537279204920646f6e74206861766520656e6f756768206c656674203b2800006044820152606401610947565b336000908152600e6020526040812080546001929061170090849061406d565b9091555050336000908152600c6020526040902054611721906001906140b8565b336000818152600c6020526040902091909155611741906109b260135490565b61174d6109c360135490565b61175b601380546001019055565b8061176581614136565b9150506115e2565b600a546001600160a01b031633146117975760405162461bcd60e51b815260040161094790613f6c565b600a805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6117c233836127ab565b6117de5760405162461bcd60e51b815260040161094790613fa1565b6117ea84848484612b6a565b50505050565b604080516101208082018352600460e080840182815263426f647960e01b6101008087019190915290855285518087018752600d81526c4d697363656c6c616e656f757360981b60208281019190915280870191909152865180880188526007815266436c6f7468657360c81b818301528688015286518088018852600581526409adeeae8d60db1b818301526060878101919091528751808901895260088152672432b0b23bb2b0b960c11b818401526080808901919091528851808a018a52958652634579657360e01b8684015260a0808901969096528851808a018a5260098152684163636573736f727960b81b8185015260c0808a019190915289516102c081018b526006610280820181815265329ab13318b360d11b6102a084015282528b51808d018d52818152651c1cb1b1b11b60d11b81880152828701528b51808d018d52818152651c331b18b33360d11b81880152828d01528b51808d018d528181526563646630663160d01b81880152828601528b51808d018d528181526538616464646160d01b81880152938201939093528a51808c018c528381526532309ab29b1b60d11b81870152978101979097528951808b018b528281526563646466366360d01b81860152908701528851808a018a528181526533333298b19b60d11b81850152868601528851808a018a528181526566663966643960d01b81850152938601939093528751808901895283815265319a3131b2b160d11b8184015295850195909552865180880188528281526537656537393960d01b81830152610140850152865180880188528281526506664376339360d41b8183015261016085015286518088018852828152650ca6c726870760d31b8183015261018085015286518088018852828152651b1c9c999c9960d11b818301526101a085015286518088018852828152651a321c989c1b60d11b818301526101c085015286518088018852828152650c4c270c6c2760d31b818301526101e0850152865180880188528281526506232626139360d41b81830152610200850152865180880188528281526503030383038360d41b8183015261022085015286518088018852828152650d4d8dcc598d60d21b81830152610240850152865180880188529182526566666165316160d01b82820152610260840191909152855191820190955260b2808252929486946000948594859492939092899283926141ea9083013991508183611b8260148d811c614151565b60148110611b9257611b926141a7565b6020020151604051602001611ba8929190613958565b60408051601f19818403018152919052915060106000611bcb60148d811c614151565b611bd7906107d061406d565b8152602001908152602001600020604051602001611bf59190613c9d565b6040516020818303038152906040529050600097505b6007881015611dac578715611c575787600114611c505787600214611c495787600314611c495787600414611c495787600514611c49576013611c5a565b6064611c5a565b6013611c5a565b60645b60ff1696508715611cb75787600114611cb05787600214611ca95787600314611ca25787600414611c9b5787600514611c94576008611cba565b603a611cba565b6073611cba565b6059611cba565b6057611cba565b6006611cba565b60115b60ff169450866064611ccd8a6007614099565b8c901c611cda9190614151565b11611d8e5781600f6000611cf0888e8d1c614151565b611cfa908a61406d565b8152602001908152602001600020604051602001611d19929190613b10565b604051602081830303815290604052915080848960078110611d3d57611d3d6141a7565b602002015160106000611d52898f8e1c614151565b611d5c908b61406d565b8152602001908152602001600020604051602001611d7c939291906138da565b60405160208183030381529060405290505b611d98858761406d565b955087611da481614136565b985050611c0b565b81604051602001611dbd91906139df565b6040516020818303038152906040529150611dd782612b9d565b91506000611e058284604051602001611df1929190613ce1565b604051602081830303815290604052612b9d565b905080604051602001611e189190613dc4565b6040516020818303038152906040529950505050505050505050919050565b6060600081611e4b6037600586901c614151565b611e57906103e861406d565b91506040518060e0016040528060b281526020016141ea60b29139905080600f6000848152602001908152602001600020604051602001611e99929190613b10565b604051602081830303815290604052905080604051602001611ebb91906139df565b6040516020818303038152906040529050611ed581612b9d565b90506000611eed82604051602001611df19190613d49565b905080604051602001611f009190613dc4565b6040516020818303038152906040529350505050919050565b600a54606090600160a81b900460ff161580611f9057506000828152601160205260409020541580611f68575060116000611f5584600a61406d565b8152602001908152602001600020546000145b80611f90575060116000611f7d84601461406d565b8152602001908152602001600020546000145b1561206f57612049604051602001611df1907f7b226e616d65223a202243727970746f2046726f67204672656e73222c20226481527f65736372697074696f6e223a202243727970746f2046726f67204672656e732260208201527f2c2022696d616765223a2022697066733a2f2f516d5067373952716479517a6660408201527f4435324e36374c315634634541765050616579456d543831533270524547766b60608201526238227d60e81b608082015260830190565b6040516020016120599190613dc4565b6040516020818303038152906040529050919050565b600060118161207f85601461406d565b8152602001908152602001600020546011600085600a61209f919061406d565b81526020019081526020016000205460116000868152602001908152602001600020541818905060006103e8600a83901c6120da9190614151565b9050606060028210156120f7576120f0836125e8565b9050612115565b600a821015612109576120f083611e37565b612112836117f0565b90505b949350505050565b600a546001600160a01b031633146121475760405162461bcd60e51b815260040161094790613f6c565b60005b8251811015610c7e57818181518110612165576121656141a7565b602002602001015160126000858481518110612183576121836141a7565b602002602001015163ffffffff16815260200190815260200160002090805190602001906121b2929190613234565b50806121bd81614136565b91505061214a565b600a546001600160a01b031633146121ef5760405162461bcd60e51b815260040161094790613f6c565b6001600160a01b0381166122545760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610947565b61109881612a49565b600a546001600160a01b031633146122875760405162461bcd60e51b815260040161094790613f6c565b60005b8251811015610c7e578181815181106122a5576122a56141a7565b602002602001015163ffffffff16600b60008584815181106122c9576122c96141a7565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550808061230090614136565b91505061228a565b600081116123285760405162461bcd60e51b815260040161094790613ff2565b600a54600160b81b900460ff16156123525760405162461bcd60e51b815260040161094790613f48565b612a328161235f60135490565b612369919061406d565b11156123875760405162461bcd60e51b815260040161094790613ef3565b34816015546123969190614099565b11156123e45760405162461bcd60e51b815260206004820152601b60248201527f45746865722076616c75652073656e7420697320746f6f206c6f7700000000006044820152606401610947565b600a54600160b01b900460ff1661242b5760405162461bcd60e51b815260206004820152600b60248201526a26b0bcb132903630ba32b960a91b6044820152606401610947565b336000908152600b602052604090205481111561245a5760405162461bcd60e51b815260040161094790613e59565b60005b81811015610a4257336000908152600b6020526040902054600111156124c55760405162461bcd60e51b815260206004820181905260248201527f596f7520646f6e2774206861766520616e79206d6f726520746f20636c61696d6044820152606401610947565b336000908152600b60205260409020546124df82846140b8565b11156124fd5760405162461bcd60e51b815260040161094790613e59565b61250a612a32600161406d565b601354111561255b5760405162461bcd60e51b815260206004820152601e60248201527f537279204920646f6e74206861766520656e6f756768206c656674203b2800006044820152606401610947565b336000908152600d6020526040812080546001929061257b90849061406d565b9091555050336000908152600b602052604090205461259c906001906140b8565b336000818152600b60205260409020919091556125bc906109b260135490565b6125c86109c360135490565b6125d6601380546001019055565b806125e081614136565b91505061245d565b606060006125fb6017600a85901c614151565b905061262360126000838152602001908152602001600020604051602001611df19190613c17565b6040516020016126339190613dc4565b604051602081830303815290604052915050919050565b600a546001600160a01b031633146126745760405162461bcd60e51b815260040161094790613f6c565b60005b8251811015610c7e57818181518110612692576126926141a7565b602002602001015163ffffffff16600c60008584815181106126b6576126b66141a7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555080806126ed90614136565b915050612677565b80546001019055565b60006001600160e01b0319821663780e9d6360e01b1480610917575061091782612d03565b610a42828260405180602001604052806000815250612d53565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612772826110f3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166128245760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610947565b600061282f836110f3565b9050806001600160a01b0316846001600160a01b0316148061286a5750836001600160a01b031661285f84610ad8565b6001600160a01b0316145b8061211557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16612115565b826001600160a01b03166128b1826110f3565b6001600160a01b0316146129195760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610947565b6001600160a01b03821661297b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610947565b612986838383612d86565b61299160008261273d565b6001600160a01b03831660009081526003602052604081208054600192906129ba9084906140b8565b90915550506001600160a01b03821660009081526003602052604081208054600192906129e890849061406d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612afd5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610947565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612b7584848461289e565b612b8184848484612d91565b6117ea5760405162461bcd60e51b815260040161094790613ea1565b805160609080612bbd575050604080516020810190915260008152919050565b60006003612bcc83600261406d565b612bd69190614085565b612be1906004614099565b90506000612bf082602061406d565b67ffffffffffffffff811115612c0857612c086141bd565b6040519080825280601f01601f191660200182016040528015612c32576020820181803683370190505b509050600060405180606001604052806040815260200161429c604091399050600181016020830160005b86811015612cbe576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612c5d565b506003860660018114612cd85760028114612ce957612cf5565b613d3d60f01b600119830152612cf5565b603d60f81b6000198301525b505050918152949350505050565b60006001600160e01b031982166380ac58cd60e01b1480612d3457506001600160e01b03198216635b5e139f60e01b145b8061091757506301ffc9a760e01b6001600160e01b0319831614610917565b612d5d8383612e9e565b612d6a6000848484612d91565b610c7e5760405162461bcd60e51b815260040161094790613ea1565b610c7e838383612fec565b60006001600160a01b0384163b15612e9357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612dd5903390899088908890600401613e09565b602060405180830381600087803b158015612def57600080fd5b505af1925050508015612e1f575060408051601f3d908101601f19168201909252612e1c9181019061370b565b60015b612e79573d808015612e4d576040519150601f19603f3d011682016040523d82523d6000602084013e612e52565b606091505b508051612e715760405162461bcd60e51b815260040161094790613ea1565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612115565b506001949350505050565b6001600160a01b038216612ef45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610947565b6000818152600260205260409020546001600160a01b031615612f595760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610947565b612f6560008383612d86565b6001600160a01b0382166000908152600360205260408120805460019290612f8e90849061406d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166130475761304281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61306a565b816001600160a01b0316836001600160a01b03161461306a5761306a83826130a4565b6001600160a01b03821661308157610c7e81613141565b826001600160a01b0316826001600160a01b031614610c7e57610c7e82826131f0565b600060016130b18461116a565b6130bb91906140b8565b60008381526007602052604090205490915080821461310e576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613153906001906140b8565b6000838152600960205260408120546008805493945090928490811061317b5761317b6141a7565b90600052602060002001549050806008838154811061319c5761319c6141a7565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806131d4576131d4614191565b6001900381819060005260206000200160009055905550505050565b60006131fb8361116a565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613240906140fb565b90600052602060002090601f01602090048101928261326257600085556132a8565b82601f1061327b57805160ff19168380011785556132a8565b828001600101855582156132a8579182015b828111156132a857825182559160200191906001019061328d565b506132b49291506132b8565b5090565b5b808211156132b457600081556001016132b9565b600067ffffffffffffffff8311156132e7576132e76141bd565b6132fa601f8401601f1916602001614018565b905082815283838301111561330e57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461333c57600080fd5b919050565b600082601f83011261335257600080fd5b8135602061336761336283614049565b614018565b80838252828201915082860187848660051b890101111561338757600080fd5b6000805b868110156133b857823563ffffffff811681146133a6578283fd5b8552938501939185019160010161338b565b509198975050505050505050565b6000602082840312156133d857600080fd5b6133e182613325565b9392505050565b600080604083850312156133fb57600080fd5b61340483613325565b915061341260208401613325565b90509250929050565b60008060006060848603121561343057600080fd5b61343984613325565b925061344760208501613325565b9150604084013590509250925092565b6000806000806080858703121561346d57600080fd5b61347685613325565b935061348460208601613325565b925060408501359150606085013567ffffffffffffffff8111156134a757600080fd5b8501601f810187136134b857600080fd5b6134c7878235602084016132cd565b91505092959194509250565b600080604083850312156134e657600080fd5b6134ef83613325565b91506020830135801515811461350457600080fd5b809150509250929050565b6000806040838503121561352257600080fd5b61352b83613325565b946020939093013593505050565b6000806040838503121561354c57600080fd5b823567ffffffffffffffff8082111561356457600080fd5b818501915085601f83011261357857600080fd5b8135602061358861336283614049565b8083825282820191508286018a848660051b89010111156135a857600080fd5b600096505b848710156135d2576135be81613325565b8352600196909601959183019183016135ad565b50965050860135925050808211156135e957600080fd5b506135f685828601613341565b9150509250929050565b600080604080848603121561361457600080fd5b833567ffffffffffffffff8082111561362c57600080fd5b61363887838801613341565b945060209150818601358181111561364f57600080fd5b8601601f8101881361366057600080fd5b803561366e61336282614049565b8082825285820191508584018b878560051b870101111561368e57600080fd5b60005b848110156136dc578135878111156136a857600080fd5b8601603f81018e136136b957600080fd5b6136c98e8a8301358c84016132cd565b8552509287019290870190600101613691565b50989b909a5098505050505050505050565b60006020828403121561370057600080fd5b81356133e1816141d3565b60006020828403121561371d57600080fd5b81516133e1816141d3565b60006020828403121561373a57600080fd5b5035919050565b600081518084526137598160208601602086016140cf565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061378757607f831692505b60208084108214156137a957634e487b7160e01b600052602260045260246000fd5b8180156137bd57600181146137ce576137fb565b60ff198616895284890196506137fb565b60008881526020902060005b868110156137f35781548b8201529085019083016137da565b505084890196505b50505050505092915050565b7f7b226e616d65223a202243727970746f2046726f67204672656e73222c20226481527f65736372697074696f6e223a202243727970746f2046726f67204672656e732060208201527f2d2062656175746966756c2066726f67732c20636f6d706c6574656c7920676560408201527f6e657261746564204f6e436861696e222c2261747472696275746573223a00006060820152607e0190565b7f2c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b62815265185cd94d8d0b60d21b602082015260260190565b600084516138ec8184602089016140cf565b71163d90113a3930b4ba2fba3cb832911d101160711b908301908152845161391b8160128401602089016140cf565b6c111610113b30b63ab2911d101160991b60129290910191820152613943601f82018561376d565b61227d60f01b81526002019695505050505050565b6000835161396a8184602088016140cf565b80830190507f3c7265637420783d22312220793d2231222077696474683d223130303022206881527365696768743d2231303030222066696c6c3d222360601b602082015283516139c28160348401602088016140cf565b631110179f60e11b60349290910191820152603801949350505050565b600082516139f18184602087016140cf565b7f3c7374796c653e2366727b73686170652d72656e646572696e673a20637269739201918252507f7065646765733b20696d6167652d72656e646572696e673a202d7765626b697460208201527f2d63726973702d65646765733b20696d6167652d72656e646572696e673a202d60408201527f6d6f7a2d63726973702d65646765733b20696d6167652d72656e646572696e6760608201527f3a2063726973702d65646765733b20696d6167652d72656e646572696e673a2060808201527f706978656c617465643b202d6d732d696e746572706f6c6174696f6e2d6d6f6460a08201527f653a206e6561726573742d6e65696768626f723b7d3c2f7374796c653e3c2f7360c0820152623b339f60e91b60e082015260e301919050565b60008351613b228184602088016140cf565b7f3c696d61676520783d22312220793d2231222077696474683d223130303022209083019081527f6865696768743d22313030302220696d6167652d72656e646572696e673d227060208201527f6978656c6174656422207072657365727665417370656374526174696f3d227860408201527f4d6964594d69642220786c696e6b3a687265663d22646174613a696d6167652f60608201527f706e673b6261736536342c6956424f5277304b47676f414141414e535568455560808201526a674141414751414141426b60a81b60a0820152613c0260ab82018561376d565b6211179f60e91b815260030195945050505050565b7f7b226e616d65223a202243727970746f2046726f67204672656e73222c20226481527f65736372697074696f6e223a202243727970746f2046726f67204672656e73226020820152722c2022696d616765223a2022697066733a2f2f60681b60408201526000613c8b605383018461376d565b61227d60f01b81526002019392505050565b7f7b202274726169745f74797065223a2022204261636b67726f756e64222c20228152683b30b63ab2911d101160b91b60208201526000613c8b602983018461376d565b6000613cec82613807565b605b60f81b81528451613d068160018401602089016140cf565b605d60f81b60019290910191820152613d21600282016138a2565b90508351613d338183602088016140cf565b61227d60f01b9101908152600201949350505050565b6000613d5482613807565b7f5b7b202274726169745f74797065223a20225375706572222c202276616c7565815270223a2074657874735b696e6465785d7d5d60781b6020820152613d9d603182016138a2565b90508351613daf8183602088016140cf565b61227d60f01b91019081526002019392505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613dfc81601d8501602087016140cf565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e3c90830184613741565b9695505050505050565b6020815260006133e16020830184613741565b60208082526028908201527f596f752063616e277420636c61696d206d6f7265207468616e20796f757220616040820152671b1b1bdd1b595b9d60c21b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526035908201527f546f6b656e73206e756d62657220746f206d696e742065786365656473206e756040820152746d626572206f66207075626c696320746f6b656e7360581b606082015260800190565b6020808252600a908201526946696e616c697a65642160b01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600c908201526b15dc9bdb99c8185b5bdd5b9d60a21b604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715614041576140416141bd565b604052919050565b600067ffffffffffffffff821115614063576140636141bd565b5060051b60200190565b6000821982111561408057614080614165565b500190565b6000826140945761409461417b565b500490565b60008160001904831182151516156140b3576140b3614165565b500290565b6000828210156140ca576140ca614165565b500390565b60005b838110156140ea5781810151838201526020016140d2565b838111156117ea5750506000910152565b600181811c9082168061410f57607f821691505b6020821081141561413057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561414a5761414a614165565b5060010190565b6000826141605761416061417b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461109857600080fdfe3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d227574662d38223f3e203c7376672069643d2266722220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222020783d223070782220793d22307078222077696474683d2231303030707822206865696768743d223130303070782220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e77332e6f72672f313939392f786c696e6b223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220638a383320ef96539d7d26d2857e431e506a9f6890d777a586b5ca32d4e854af64736f6c63430008070033

Deployed Bytecode

0x6080604052600436106102ae5760003560e01c806370a0823111610175578063b775b4f3116100dc578063de4b09ef11610095578063f31d7c6c1161006f578063f31d7c6c14610899578063f972c9c1146108b9578063fc1c73cb146108cc578063fef861b4146108ec57600080fd5b8063de4b09ef14610810578063e985e9c514610830578063f2fde38b1461087957600080fd5b8063b775b4f31461074e578063b88d4fde14610763578063be985ac914610783578063c2f1b031146107a3578063c87b56dd146107c3578063c884ef83146107e357600080fd5b80638da5cb5b1161012e5780638da5cb5b1461068d57806395d89b41146106ab5780639b19251a146106c0578063a22cb465146106ed578063a74af87a1461070d578063b3f05b971461072d57600080fd5b806370a08231146105d8578063715018a6146105f857806371e977781461060d5780637287461a1461063a5780637492d87c1461065a578063828ad0dd1461067a57600080fd5b80632a7854701161021957806342d0e74e116101d257806342d0e74e1461052e5780634f6ccce7146105435780635a566136146105635780635c121972146105835780636025d3e5146105a35780636352211e146105b857600080fd5b80632a785470146104775780632d72225b146104985780632f745c59146104b85780633ad7f56c146104d85780633ccfd60b146104f957806342842e0e1461050e57600080fd5b80630eb77b5c1161026b5780630eb77b5c146103bf5780630f5d66ad146103df57806318160ddd146103f457806320a45c221461040957806323b872dd1461043657806325e892831461045657600080fd5b806301ffc9a7146102b3578063059513a6146102e857806306fdde031461030a578063081812fc1461032c578063095ea7b31461036457806309ae78a014610384575b600080fd5b3480156102bf57600080fd5b506102d36102ce3660046136ee565b61090c565b60405190151581526020015b60405180910390f35b3480156102f457600080fd5b50610308610303366004613728565b61091d565b005b34801561031657600080fd5b5061031f610a46565b6040516102df9190613e46565b34801561033857600080fd5b5061034c610347366004613728565b610ad8565b6040516001600160a01b0390911681526020016102df565b34801561037057600080fd5b5061030861037f36600461350f565b610b6d565b34801561039057600080fd5b506103b161039f3660046133c6565b600c6020526000908152604090205481565b6040519081526020016102df565b3480156103cb57600080fd5b506103086103da366004613600565b610c83565b3480156103eb57600080fd5b50610308610d2b565b34801561040057600080fd5b506008546103b1565b34801561041557600080fd5b506103b1610424366004613728565b60116020526000908152604090205481565b34801561044257600080fd5b5061030861045136600461341b565b610d76565b34801561046257600080fd5b50600a546102d390600160a01b900460ff1681565b34801561048357600080fd5b50600a546102d390600160a81b900460ff1681565b3480156104a457600080fd5b5061031f6104b3366004613728565b610da7565b3480156104c457600080fd5b506103b16104d336600461350f565b610e41565b3480156104e457600080fd5b50600a546102d390600160b01b900460ff1681565b34801561050557600080fd5b50610308610ed7565b34801561051a57600080fd5b5061030861052936600461341b565b610f30565b34801561053a57600080fd5b50610308610f4b565b34801561054f57600080fd5b506103b161055e366004613728565b610f8a565b34801561056f57600080fd5b5061030861057e3660046133c6565b61101d565b34801561058f57600080fd5b5061031f61059e366004613728565b61109b565b3480156105af57600080fd5b506103086110b4565b3480156105c457600080fd5b5061034c6105d3366004613728565b6110f3565b3480156105e457600080fd5b506103b16105f33660046133c6565b61116a565b34801561060457600080fd5b506103086111f1565b34801561061957600080fd5b506103b16106283660046133c6565b600e6020526000908152604090205481565b34801561064657600080fd5b50610308610655366004613600565b611227565b34801561066657600080fd5b5061031f610675366004613728565b6112cf565b610308610688366004613728565b6112e8565b34801561069957600080fd5b50600a546001600160a01b031661034c565b3480156106b757600080fd5b5061031f6114d0565b3480156106cc57600080fd5b506103b16106db3660046133c6565b600b6020526000908152604090205481565b3480156106f957600080fd5b506103086107083660046134d3565b6114df565b34801561071957600080fd5b50610308610728366004613728565b6114ea565b34801561073957600080fd5b50600a546102d390600160b81b900460ff1681565b34801561075a57600080fd5b5061030861176d565b34801561076f57600080fd5b5061030861077e366004613457565b6117b8565b34801561078f57600080fd5b5061031f61079e366004613728565b6117f0565b3480156107af57600080fd5b5061031f6107be366004613728565b611e37565b3480156107cf57600080fd5b5061031f6107de366004613728565b611f19565b3480156107ef57600080fd5b506103b16107fe3660046133c6565b600d6020526000908152604090205481565b34801561081c57600080fd5b5061030861082b366004613600565b61211d565b34801561083c57600080fd5b506102d361084b3660046133e8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561088557600080fd5b506103086108943660046133c6565b6121c5565b3480156108a557600080fd5b506103086108b4366004613539565b61225d565b6103086108c7366004613728565b612308565b3480156108d857600080fd5b5061031f6108e7366004613728565b6125e8565b3480156108f857600080fd5b50610308610907366004613539565b61264a565b6000610917826126fe565b92915050565b600a546001600160a01b031633146109505760405162461bcd60e51b815260040161094790613f6c565b60405180910390fd5b600081116109705760405162461bcd60e51b815260040161094790613ff2565b600a54600160b81b900460ff161561099a5760405162461bcd60e51b815260040161094790613f48565b60005b81811015610a42576109b7336109b260135490565b612723565b610a226109c360135490565b604080516020810183905244918101919091524260608083019190915241901b6bffffffffffffffffffffffff1916608082015260940160408051601f1981840301815291815281516020928301206000938452601190925290912055565b610a30601380546001019055565b80610a3a81614136565b91505061099d565b5050565b606060008054610a55906140fb565b80601f0160208091040260200160405190810160405280929190818152602001828054610a81906140fb565b8015610ace5780601f10610aa357610100808354040283529160200191610ace565b820191906000526020600020905b815481529060010190602001808311610ab157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b515760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610947565b506000908152600460205260409020546001600160a01b031690565b6000610b78826110f3565b9050806001600160a01b0316836001600160a01b03161415610be65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610947565b336001600160a01b0382161480610c025750610c02813361084b565b610c745760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610947565b610c7e838361273d565b505050565b600a546001600160a01b03163314610cad5760405162461bcd60e51b815260040161094790613f6c565b60005b8151811015610c7e57818181518110610ccb57610ccb6141a7565b602002602001015160106000858481518110610ce957610ce96141a7565b602002602001015163ffffffff1681526020019081526020016000209080519060200190610d18929190613234565b5080610d2381614136565b915050610cb0565b600a546001600160a01b03163314610d555760405162461bcd60e51b815260040161094790613f6c565b600a805460ff60b01b198116600160b01b9182900460ff1615909102179055565b610d8033826127ab565b610d9c5760405162461bcd60e51b815260040161094790613fa1565b610c7e83838361289e565b600f6020526000908152604090208054610dc0906140fb565b80601f0160208091040260200160405190810160405280929190818152602001828054610dec906140fb565b8015610e395780601f10610e0e57610100808354040283529160200191610e39565b820191906000526020600020905b815481529060010190602001808311610e1c57829003601f168201915b505050505081565b6000610e4c8361116a565b8210610eae5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610947565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610f015760405162461bcd60e51b815260040161094790613f6c565b6040514790339082156108fc029083906000818181858888f19350505050158015610a42573d6000803e3d6000fd5b610c7e838383604051806020016040528060008152506117b8565b600a546001600160a01b03163314610f755760405162461bcd60e51b815260040161094790613f6c565b600a805460ff60a81b1916600160a81b179055565b6000610f9560085490565b8210610ff85760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610947565b6008828154811061100b5761100b6141a7565b90600052602060002001549050919050565b600a546001600160a01b031633146110475760405162461bcd60e51b815260040161094790613f6c565b600a54600160b81b900460ff16156110715760405162461bcd60e51b815260040161094790613f48565b61107e816109b260135490565b61108a6109c360135490565b611098601380546001019055565b50565b60106020526000908152604090208054610dc0906140fb565b600a546001600160a01b031633146110de5760405162461bcd60e51b815260040161094790613f6c565b600a805460ff60b81b1916600160b81b179055565b6000818152600260205260408120546001600160a01b0316806109175760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610947565b60006001600160a01b0382166111d55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610947565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331461121b5760405162461bcd60e51b815260040161094790613f6c565b6112256000612a49565b565b600a546001600160a01b031633146112515760405162461bcd60e51b815260040161094790613f6c565b60005b8151811015610c7e5781818151811061126f5761126f6141a7565b6020026020010151600f600085848151811061128d5761128d6141a7565b602002602001015163ffffffff16815260200190815260200160002090805190602001906112bc929190613234565b50806112c781614136565b915050611254565b60126020526000908152604090208054610dc0906140fb565b600081116113085760405162461bcd60e51b815260040161094790613ff2565b600a54600160b81b900460ff16156113325760405162461bcd60e51b815260040161094790613f48565b600a54600160a01b900460ff166113965760405162461bcd60e51b815260206004820152602260248201527f53616c65206d7573742062652061637469766520746f206d696e7420746f6b656044820152616e7360f01b6064820152608401610947565b600a8111156113fa5760405162461bcd60e51b815260206004820152602a60248201527f4d617820746f6b656e7320706572207472616e73616374696f6e206e756d62656044820152691c88195e18d95959195960b21b6064820152608401610947565b612a328161140760135490565b611411919061406d565b111561142f5760405162461bcd60e51b815260040161094790613ef3565b348160145461143e9190614099565b111561148c5760405162461bcd60e51b815260206004820152601b60248201527f45746865722076616c75652073656e7420697320746f6f206c6f7700000000006044820152606401610947565b60005b81811015610a42576114a4336109b260135490565b6114b06109c360135490565b6114be601380546001019055565b806114c881614136565b91505061148f565b606060018054610a55906140fb565b610a42338383612a9b565b6000811161150a5760405162461bcd60e51b815260040161094790613ff2565b600a54600160b81b900460ff16156115345760405162461bcd60e51b815260040161094790613f48565b612a328161154160135490565b61154b919061406d565b11156115695760405162461bcd60e51b815260040161094790613ef3565b600a54600160b01b900460ff166115b05760405162461bcd60e51b815260206004820152600b60248201526a26b0bcb132903630ba32b960a91b6044820152606401610947565b336000908152600c60205260409020548111156115df5760405162461bcd60e51b815260040161094790613e59565b60005b81811015610a4257336000908152600c60205260409020546001111561164a5760405162461bcd60e51b815260206004820181905260248201527f596f7520646f6e2774206861766520616e79206d6f726520746f20636c61696d6044820152606401610947565b336000908152600c602052604090205461166482846140b8565b11156116825760405162461bcd60e51b815260040161094790613e59565b61168f612a32600161406d565b60135411156116e05760405162461bcd60e51b815260206004820152601e60248201527f537279204920646f6e74206861766520656e6f756768206c656674203b2800006044820152606401610947565b336000908152600e6020526040812080546001929061170090849061406d565b9091555050336000908152600c6020526040902054611721906001906140b8565b336000818152600c6020526040902091909155611741906109b260135490565b61174d6109c360135490565b61175b601380546001019055565b8061176581614136565b9150506115e2565b600a546001600160a01b031633146117975760405162461bcd60e51b815260040161094790613f6c565b600a805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6117c233836127ab565b6117de5760405162461bcd60e51b815260040161094790613fa1565b6117ea84848484612b6a565b50505050565b604080516101208082018352600460e080840182815263426f647960e01b6101008087019190915290855285518087018752600d81526c4d697363656c6c616e656f757360981b60208281019190915280870191909152865180880188526007815266436c6f7468657360c81b818301528688015286518088018852600581526409adeeae8d60db1b818301526060878101919091528751808901895260088152672432b0b23bb2b0b960c11b818401526080808901919091528851808a018a52958652634579657360e01b8684015260a0808901969096528851808a018a5260098152684163636573736f727960b81b8185015260c0808a019190915289516102c081018b526006610280820181815265329ab13318b360d11b6102a084015282528b51808d018d52818152651c1cb1b1b11b60d11b81880152828701528b51808d018d52818152651c331b18b33360d11b81880152828d01528b51808d018d528181526563646630663160d01b81880152828601528b51808d018d528181526538616464646160d01b81880152938201939093528a51808c018c528381526532309ab29b1b60d11b81870152978101979097528951808b018b528281526563646466366360d01b81860152908701528851808a018a528181526533333298b19b60d11b81850152868601528851808a018a528181526566663966643960d01b81850152938601939093528751808901895283815265319a3131b2b160d11b8184015295850195909552865180880188528281526537656537393960d01b81830152610140850152865180880188528281526506664376339360d41b8183015261016085015286518088018852828152650ca6c726870760d31b8183015261018085015286518088018852828152651b1c9c999c9960d11b818301526101a085015286518088018852828152651a321c989c1b60d11b818301526101c085015286518088018852828152650c4c270c6c2760d31b818301526101e0850152865180880188528281526506232626139360d41b81830152610200850152865180880188528281526503030383038360d41b8183015261022085015286518088018852828152650d4d8dcc598d60d21b81830152610240850152865180880188529182526566666165316160d01b82820152610260840191909152855191820190955260b2808252929486946000948594859492939092899283926141ea9083013991508183611b8260148d811c614151565b60148110611b9257611b926141a7565b6020020151604051602001611ba8929190613958565b60408051601f19818403018152919052915060106000611bcb60148d811c614151565b611bd7906107d061406d565b8152602001908152602001600020604051602001611bf59190613c9d565b6040516020818303038152906040529050600097505b6007881015611dac578715611c575787600114611c505787600214611c495787600314611c495787600414611c495787600514611c49576013611c5a565b6064611c5a565b6013611c5a565b60645b60ff1696508715611cb75787600114611cb05787600214611ca95787600314611ca25787600414611c9b5787600514611c94576008611cba565b603a611cba565b6073611cba565b6059611cba565b6057611cba565b6006611cba565b60115b60ff169450866064611ccd8a6007614099565b8c901c611cda9190614151565b11611d8e5781600f6000611cf0888e8d1c614151565b611cfa908a61406d565b8152602001908152602001600020604051602001611d19929190613b10565b604051602081830303815290604052915080848960078110611d3d57611d3d6141a7565b602002015160106000611d52898f8e1c614151565b611d5c908b61406d565b8152602001908152602001600020604051602001611d7c939291906138da565b60405160208183030381529060405290505b611d98858761406d565b955087611da481614136565b985050611c0b565b81604051602001611dbd91906139df565b6040516020818303038152906040529150611dd782612b9d565b91506000611e058284604051602001611df1929190613ce1565b604051602081830303815290604052612b9d565b905080604051602001611e189190613dc4565b6040516020818303038152906040529950505050505050505050919050565b6060600081611e4b6037600586901c614151565b611e57906103e861406d565b91506040518060e0016040528060b281526020016141ea60b29139905080600f6000848152602001908152602001600020604051602001611e99929190613b10565b604051602081830303815290604052905080604051602001611ebb91906139df565b6040516020818303038152906040529050611ed581612b9d565b90506000611eed82604051602001611df19190613d49565b905080604051602001611f009190613dc4565b6040516020818303038152906040529350505050919050565b600a54606090600160a81b900460ff161580611f9057506000828152601160205260409020541580611f68575060116000611f5584600a61406d565b8152602001908152602001600020546000145b80611f90575060116000611f7d84601461406d565b8152602001908152602001600020546000145b1561206f57612049604051602001611df1907f7b226e616d65223a202243727970746f2046726f67204672656e73222c20226481527f65736372697074696f6e223a202243727970746f2046726f67204672656e732260208201527f2c2022696d616765223a2022697066733a2f2f516d5067373952716479517a6660408201527f4435324e36374c315634634541765050616579456d543831533270524547766b60608201526238227d60e81b608082015260830190565b6040516020016120599190613dc4565b6040516020818303038152906040529050919050565b600060118161207f85601461406d565b8152602001908152602001600020546011600085600a61209f919061406d565b81526020019081526020016000205460116000868152602001908152602001600020541818905060006103e8600a83901c6120da9190614151565b9050606060028210156120f7576120f0836125e8565b9050612115565b600a821015612109576120f083611e37565b612112836117f0565b90505b949350505050565b600a546001600160a01b031633146121475760405162461bcd60e51b815260040161094790613f6c565b60005b8251811015610c7e57818181518110612165576121656141a7565b602002602001015160126000858481518110612183576121836141a7565b602002602001015163ffffffff16815260200190815260200160002090805190602001906121b2929190613234565b50806121bd81614136565b91505061214a565b600a546001600160a01b031633146121ef5760405162461bcd60e51b815260040161094790613f6c565b6001600160a01b0381166122545760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610947565b61109881612a49565b600a546001600160a01b031633146122875760405162461bcd60e51b815260040161094790613f6c565b60005b8251811015610c7e578181815181106122a5576122a56141a7565b602002602001015163ffffffff16600b60008584815181106122c9576122c96141a7565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550808061230090614136565b91505061228a565b600081116123285760405162461bcd60e51b815260040161094790613ff2565b600a54600160b81b900460ff16156123525760405162461bcd60e51b815260040161094790613f48565b612a328161235f60135490565b612369919061406d565b11156123875760405162461bcd60e51b815260040161094790613ef3565b34816015546123969190614099565b11156123e45760405162461bcd60e51b815260206004820152601b60248201527f45746865722076616c75652073656e7420697320746f6f206c6f7700000000006044820152606401610947565b600a54600160b01b900460ff1661242b5760405162461bcd60e51b815260206004820152600b60248201526a26b0bcb132903630ba32b960a91b6044820152606401610947565b336000908152600b602052604090205481111561245a5760405162461bcd60e51b815260040161094790613e59565b60005b81811015610a4257336000908152600b6020526040902054600111156124c55760405162461bcd60e51b815260206004820181905260248201527f596f7520646f6e2774206861766520616e79206d6f726520746f20636c61696d6044820152606401610947565b336000908152600b60205260409020546124df82846140b8565b11156124fd5760405162461bcd60e51b815260040161094790613e59565b61250a612a32600161406d565b601354111561255b5760405162461bcd60e51b815260206004820152601e60248201527f537279204920646f6e74206861766520656e6f756768206c656674203b2800006044820152606401610947565b336000908152600d6020526040812080546001929061257b90849061406d565b9091555050336000908152600b602052604090205461259c906001906140b8565b336000818152600b60205260409020919091556125bc906109b260135490565b6125c86109c360135490565b6125d6601380546001019055565b806125e081614136565b91505061245d565b606060006125fb6017600a85901c614151565b905061262360126000838152602001908152602001600020604051602001611df19190613c17565b6040516020016126339190613dc4565b604051602081830303815290604052915050919050565b600a546001600160a01b031633146126745760405162461bcd60e51b815260040161094790613f6c565b60005b8251811015610c7e57818181518110612692576126926141a7565b602002602001015163ffffffff16600c60008584815181106126b6576126b66141a7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555080806126ed90614136565b915050612677565b80546001019055565b60006001600160e01b0319821663780e9d6360e01b1480610917575061091782612d03565b610a42828260405180602001604052806000815250612d53565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612772826110f3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166128245760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610947565b600061282f836110f3565b9050806001600160a01b0316846001600160a01b0316148061286a5750836001600160a01b031661285f84610ad8565b6001600160a01b0316145b8061211557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16612115565b826001600160a01b03166128b1826110f3565b6001600160a01b0316146129195760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610947565b6001600160a01b03821661297b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610947565b612986838383612d86565b61299160008261273d565b6001600160a01b03831660009081526003602052604081208054600192906129ba9084906140b8565b90915550506001600160a01b03821660009081526003602052604081208054600192906129e890849061406d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612afd5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610947565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612b7584848461289e565b612b8184848484612d91565b6117ea5760405162461bcd60e51b815260040161094790613ea1565b805160609080612bbd575050604080516020810190915260008152919050565b60006003612bcc83600261406d565b612bd69190614085565b612be1906004614099565b90506000612bf082602061406d565b67ffffffffffffffff811115612c0857612c086141bd565b6040519080825280601f01601f191660200182016040528015612c32576020820181803683370190505b509050600060405180606001604052806040815260200161429c604091399050600181016020830160005b86811015612cbe576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612c5d565b506003860660018114612cd85760028114612ce957612cf5565b613d3d60f01b600119830152612cf5565b603d60f81b6000198301525b505050918152949350505050565b60006001600160e01b031982166380ac58cd60e01b1480612d3457506001600160e01b03198216635b5e139f60e01b145b8061091757506301ffc9a760e01b6001600160e01b0319831614610917565b612d5d8383612e9e565b612d6a6000848484612d91565b610c7e5760405162461bcd60e51b815260040161094790613ea1565b610c7e838383612fec565b60006001600160a01b0384163b15612e9357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612dd5903390899088908890600401613e09565b602060405180830381600087803b158015612def57600080fd5b505af1925050508015612e1f575060408051601f3d908101601f19168201909252612e1c9181019061370b565b60015b612e79573d808015612e4d576040519150601f19603f3d011682016040523d82523d6000602084013e612e52565b606091505b508051612e715760405162461bcd60e51b815260040161094790613ea1565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612115565b506001949350505050565b6001600160a01b038216612ef45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610947565b6000818152600260205260409020546001600160a01b031615612f595760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610947565b612f6560008383612d86565b6001600160a01b0382166000908152600360205260408120805460019290612f8e90849061406d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166130475761304281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61306a565b816001600160a01b0316836001600160a01b03161461306a5761306a83826130a4565b6001600160a01b03821661308157610c7e81613141565b826001600160a01b0316826001600160a01b031614610c7e57610c7e82826131f0565b600060016130b18461116a565b6130bb91906140b8565b60008381526007602052604090205490915080821461310e576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613153906001906140b8565b6000838152600960205260408120546008805493945090928490811061317b5761317b6141a7565b90600052602060002001549050806008838154811061319c5761319c6141a7565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806131d4576131d4614191565b6001900381819060005260206000200160009055905550505050565b60006131fb8361116a565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613240906140fb565b90600052602060002090601f01602090048101928261326257600085556132a8565b82601f1061327b57805160ff19168380011785556132a8565b828001600101855582156132a8579182015b828111156132a857825182559160200191906001019061328d565b506132b49291506132b8565b5090565b5b808211156132b457600081556001016132b9565b600067ffffffffffffffff8311156132e7576132e76141bd565b6132fa601f8401601f1916602001614018565b905082815283838301111561330e57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461333c57600080fd5b919050565b600082601f83011261335257600080fd5b8135602061336761336283614049565b614018565b80838252828201915082860187848660051b890101111561338757600080fd5b6000805b868110156133b857823563ffffffff811681146133a6578283fd5b8552938501939185019160010161338b565b509198975050505050505050565b6000602082840312156133d857600080fd5b6133e182613325565b9392505050565b600080604083850312156133fb57600080fd5b61340483613325565b915061341260208401613325565b90509250929050565b60008060006060848603121561343057600080fd5b61343984613325565b925061344760208501613325565b9150604084013590509250925092565b6000806000806080858703121561346d57600080fd5b61347685613325565b935061348460208601613325565b925060408501359150606085013567ffffffffffffffff8111156134a757600080fd5b8501601f810187136134b857600080fd5b6134c7878235602084016132cd565b91505092959194509250565b600080604083850312156134e657600080fd5b6134ef83613325565b91506020830135801515811461350457600080fd5b809150509250929050565b6000806040838503121561352257600080fd5b61352b83613325565b946020939093013593505050565b6000806040838503121561354c57600080fd5b823567ffffffffffffffff8082111561356457600080fd5b818501915085601f83011261357857600080fd5b8135602061358861336283614049565b8083825282820191508286018a848660051b89010111156135a857600080fd5b600096505b848710156135d2576135be81613325565b8352600196909601959183019183016135ad565b50965050860135925050808211156135e957600080fd5b506135f685828601613341565b9150509250929050565b600080604080848603121561361457600080fd5b833567ffffffffffffffff8082111561362c57600080fd5b61363887838801613341565b945060209150818601358181111561364f57600080fd5b8601601f8101881361366057600080fd5b803561366e61336282614049565b8082825285820191508584018b878560051b870101111561368e57600080fd5b60005b848110156136dc578135878111156136a857600080fd5b8601603f81018e136136b957600080fd5b6136c98e8a8301358c84016132cd565b8552509287019290870190600101613691565b50989b909a5098505050505050505050565b60006020828403121561370057600080fd5b81356133e1816141d3565b60006020828403121561371d57600080fd5b81516133e1816141d3565b60006020828403121561373a57600080fd5b5035919050565b600081518084526137598160208601602086016140cf565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061378757607f831692505b60208084108214156137a957634e487b7160e01b600052602260045260246000fd5b8180156137bd57600181146137ce576137fb565b60ff198616895284890196506137fb565b60008881526020902060005b868110156137f35781548b8201529085019083016137da565b505084890196505b50505050505092915050565b7f7b226e616d65223a202243727970746f2046726f67204672656e73222c20226481527f65736372697074696f6e223a202243727970746f2046726f67204672656e732060208201527f2d2062656175746966756c2066726f67732c20636f6d706c6574656c7920676560408201527f6e657261746564204f6e436861696e222c2261747472696275746573223a00006060820152607e0190565b7f2c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b62815265185cd94d8d0b60d21b602082015260260190565b600084516138ec8184602089016140cf565b71163d90113a3930b4ba2fba3cb832911d101160711b908301908152845161391b8160128401602089016140cf565b6c111610113b30b63ab2911d101160991b60129290910191820152613943601f82018561376d565b61227d60f01b81526002019695505050505050565b6000835161396a8184602088016140cf565b80830190507f3c7265637420783d22312220793d2231222077696474683d223130303022206881527365696768743d2231303030222066696c6c3d222360601b602082015283516139c28160348401602088016140cf565b631110179f60e11b60349290910191820152603801949350505050565b600082516139f18184602087016140cf565b7f3c7374796c653e2366727b73686170652d72656e646572696e673a20637269739201918252507f7065646765733b20696d6167652d72656e646572696e673a202d7765626b697460208201527f2d63726973702d65646765733b20696d6167652d72656e646572696e673a202d60408201527f6d6f7a2d63726973702d65646765733b20696d6167652d72656e646572696e6760608201527f3a2063726973702d65646765733b20696d6167652d72656e646572696e673a2060808201527f706978656c617465643b202d6d732d696e746572706f6c6174696f6e2d6d6f6460a08201527f653a206e6561726573742d6e65696768626f723b7d3c2f7374796c653e3c2f7360c0820152623b339f60e91b60e082015260e301919050565b60008351613b228184602088016140cf565b7f3c696d61676520783d22312220793d2231222077696474683d223130303022209083019081527f6865696768743d22313030302220696d6167652d72656e646572696e673d227060208201527f6978656c6174656422207072657365727665417370656374526174696f3d227860408201527f4d6964594d69642220786c696e6b3a687265663d22646174613a696d6167652f60608201527f706e673b6261736536342c6956424f5277304b47676f414141414e535568455560808201526a674141414751414141426b60a81b60a0820152613c0260ab82018561376d565b6211179f60e91b815260030195945050505050565b7f7b226e616d65223a202243727970746f2046726f67204672656e73222c20226481527f65736372697074696f6e223a202243727970746f2046726f67204672656e73226020820152722c2022696d616765223a2022697066733a2f2f60681b60408201526000613c8b605383018461376d565b61227d60f01b81526002019392505050565b7f7b202274726169745f74797065223a2022204261636b67726f756e64222c20228152683b30b63ab2911d101160b91b60208201526000613c8b602983018461376d565b6000613cec82613807565b605b60f81b81528451613d068160018401602089016140cf565b605d60f81b60019290910191820152613d21600282016138a2565b90508351613d338183602088016140cf565b61227d60f01b9101908152600201949350505050565b6000613d5482613807565b7f5b7b202274726169745f74797065223a20225375706572222c202276616c7565815270223a2074657874735b696e6465785d7d5d60781b6020820152613d9d603182016138a2565b90508351613daf8183602088016140cf565b61227d60f01b91019081526002019392505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613dfc81601d8501602087016140cf565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e3c90830184613741565b9695505050505050565b6020815260006133e16020830184613741565b60208082526028908201527f596f752063616e277420636c61696d206d6f7265207468616e20796f757220616040820152671b1b1bdd1b595b9d60c21b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526035908201527f546f6b656e73206e756d62657220746f206d696e742065786365656473206e756040820152746d626572206f66207075626c696320746f6b656e7360581b606082015260800190565b6020808252600a908201526946696e616c697a65642160b01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600c908201526b15dc9bdb99c8185b5bdd5b9d60a21b604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715614041576140416141bd565b604052919050565b600067ffffffffffffffff821115614063576140636141bd565b5060051b60200190565b6000821982111561408057614080614165565b500190565b6000826140945761409461417b565b500490565b60008160001904831182151516156140b3576140b3614165565b500290565b6000828210156140ca576140ca614165565b500390565b60005b838110156140ea5781810151838201526020016140d2565b838111156117ea5750506000910152565b600181811c9082168061410f57607f821691505b6020821081141561413057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561414a5761414a614165565b5060010190565b6000826141605761416061417b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461109857600080fdfe3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d227574662d38223f3e203c7376672069643d2266722220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222020783d223070782220793d22307078222077696474683d2231303030707822206865696768743d223130303070782220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e77332e6f72672f313939392f786c696e6b223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220638a383320ef96539d7d26d2857e431e506a9f6890d777a586b5ca32d4e854af64736f6c63430008070033

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.