ETH Price: $3,228.44 (+1.06%)

Token

Chains (CHAIN)
 

Overview

Max Total Supply

2,608 CHAIN

Holders

320

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

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

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

Contract Source Code Verified (Exact Match)

Contract Name:
Chains

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : Chains.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IBallerBars.sol";
import "./ChainsLibrary.sol";
import "./IChains.sol";
import "./IChainsTraits.sol";

contract Chains is ERC721Enumerable, Ownable {

    /**

     _______  ________ __    __      _______   ______  __       __       ________ _______
    |       \|        \  \  |  \    |       \ /      \|  \     |  \     |        \       \
    | ▓▓▓▓▓▓▓\ ▓▓▓▓▓▓▓▓ ▓▓\ | ▓▓    | ▓▓▓▓▓▓▓\  ▓▓▓▓▓▓\ ▓▓     | ▓▓     | ▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓\
    | ▓▓__/ ▓▓ ▓▓__   | ▓▓▓\| ▓▓    | ▓▓__/ ▓▓ ▓▓__| ▓▓ ▓▓     | ▓▓     | ▓▓__   | ▓▓__| ▓▓
    | ▓▓    ▓▓ ▓▓  \  | ▓▓▓▓\ ▓▓    | ▓▓    ▓▓ ▓▓    ▓▓ ▓▓     | ▓▓     | ▓▓  \  | ▓▓    ▓▓
    | ▓▓▓▓▓▓▓\ ▓▓▓▓▓  | ▓▓\▓▓ ▓▓    | ▓▓▓▓▓▓▓\ ▓▓▓▓▓▓▓▓ ▓▓     | ▓▓     | ▓▓▓▓▓  | ▓▓▓▓▓▓▓\
    | ▓▓__/ ▓▓ ▓▓_____| ▓▓ \▓▓▓▓    | ▓▓__/ ▓▓ ▓▓  | ▓▓ ▓▓_____| ▓▓_____| ▓▓_____| ▓▓  | ▓▓
    | ▓▓    ▓▓ ▓▓     \ ▓▓  \▓▓▓    | ▓▓    ▓▓ ▓▓  | ▓▓ ▓▓     \ ▓▓     \ ▓▓     \ ▓▓  | ▓▓
     \▓▓▓▓▓▓▓ \▓▓▓▓▓▓▓▓\▓▓   \▓▓     \▓▓▓▓▓▓▓ \▓▓   \▓▓\▓▓▓▓▓▓▓▓\▓▓▓▓▓▓▓▓\▓▓▓▓▓▓▓▓\▓▓   \▓▓

     _______  ______ _______       ________ __    __ ________
    |       \|      \       \     |        \  \  |  \        \
    | ▓▓▓▓▓▓▓\\▓▓▓▓▓▓ ▓▓▓▓▓▓▓\     \▓▓▓▓▓▓▓▓ ▓▓  | ▓▓ ▓▓▓▓▓▓▓▓
    | ▓▓  | ▓▓ | ▓▓ | ▓▓  | ▓▓       | ▓▓  | ▓▓__| ▓▓ ▓▓__
    | ▓▓  | ▓▓ | ▓▓ | ▓▓  | ▓▓       | ▓▓  | ▓▓    ▓▓ ▓▓  \
    | ▓▓  | ▓▓ | ▓▓ | ▓▓  | ▓▓       | ▓▓  | ▓▓▓▓▓▓▓▓ ▓▓▓▓▓
    | ▓▓__/ ▓▓_| ▓▓_| ▓▓__/ ▓▓       | ▓▓  | ▓▓  | ▓▓ ▓▓_____
    | ▓▓    ▓▓   ▓▓ \ ▓▓    ▓▓       | ▓▓  | ▓▓  | ▓▓ ▓▓     \
     \▓▓▓▓▓▓▓ \▓▓▓▓▓▓\▓▓▓▓▓▓▓         \▓▓   \▓▓   \▓▓\▓▓▓▓▓▓▓▓

     _______  __        ______   ______  __    __  ______  __    __  ______  ______ __    __
    |       \|  \      /      \ /      \|  \  /  \/      \|  \  |  \/      \|      \  \  |  \
    | ▓▓▓▓▓▓▓\ ▓▓     |  ▓▓▓▓▓▓\  ▓▓▓▓▓▓\ ▓▓ /  ▓▓  ▓▓▓▓▓▓\ ▓▓  | ▓▓  ▓▓▓▓▓▓\\▓▓▓▓▓▓ ▓▓\ | ▓▓
    | ▓▓__/ ▓▓ ▓▓     | ▓▓  | ▓▓ ▓▓   \▓▓ ▓▓/  ▓▓| ▓▓   \▓▓ ▓▓__| ▓▓ ▓▓__| ▓▓ | ▓▓ | ▓▓▓\| ▓▓
    | ▓▓    ▓▓ ▓▓     | ▓▓  | ▓▓ ▓▓     | ▓▓  ▓▓ | ▓▓     | ▓▓    ▓▓ ▓▓    ▓▓ | ▓▓ | ▓▓▓▓\ ▓▓
    | ▓▓▓▓▓▓▓\ ▓▓     | ▓▓  | ▓▓ ▓▓   __| ▓▓▓▓▓\ | ▓▓   __| ▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓ | ▓▓ | ▓▓\▓▓ ▓▓
    | ▓▓__/ ▓▓ ▓▓_____| ▓▓__/ ▓▓ ▓▓__/  \ ▓▓ \▓▓\| ▓▓__/  \ ▓▓  | ▓▓ ▓▓  | ▓▓_| ▓▓_| ▓▓ \▓▓▓▓
    | ▓▓    ▓▓ ▓▓     \\▓▓    ▓▓\▓▓    ▓▓ ▓▓  \▓▓\\▓▓    ▓▓ ▓▓  | ▓▓ ▓▓  | ▓▓   ▓▓ \ ▓▓  \▓▓▓
     \▓▓▓▓▓▓▓ \▓▓▓▓▓▓▓▓ \▓▓▓▓▓▓  \▓▓▓▓▓▓ \▓▓   \▓▓ \▓▓▓▓▓▓ \▓▓   \▓▓\▓▓   \▓▓\▓▓▓▓▓▓\▓▓   \▓▓

    **/

    // RGV2YmVycnkjNDAzMCBhbmQgcG9ua3lwaW5rIzc5MTMgd2VyZSBoZXJl

    using ChainsLibrary for uint8;

    struct Trait {
        string traitName;
        string traitType;
        string pixels;
        uint256 pixelCount;
    }

    // Mappings
    mapping(string => bool) hashToMinted;
    mapping(uint256 => string) internal tokenIdToHash;
    mapping(uint256 => uint256) internal tokenIdToTimestamp;

    // uint256s
    uint256 public constant MAX_SUPPLY = 6000;
    uint256 SEED_NONCE = 0;

    // Addresses
    address _genOneChainsAddress;
    address _genOneBallerBarsAddress;
    address _genTwoBallerBarsAddress;

    bool public _paused = true;

    uint256 public _combinedTotalSupply = 3406;

    uint256 _reserveMinted = 0;

    constructor() ERC721("Chains", "CHAIN") {}

    function rarityGen0(uint256 r) private pure returns (uint256) {
        if (r >= 330)    {return 4;}
        if (r >= 150)    {return 3;}
        if (r >=  30)    {return 2;}
        if (r >=   3)    {return 1;}
        return 0;
    }
    function rarityGen1(uint256 r) private pure returns (uint256) {
        if (r >= 504)    {return 9;}
        if (r >= 414)    {return 8;}
        if (r >= 330)    {return 7;}
        if (r >= 252)    {return 6;}
        if (r >= 180)    {return 5;}
        if (r >= 114)    {return 4;}
        if (r >=  54)    {return 3;}
        if (r >=   9)    {return 2;}
        if (r >=   3)    {return 1;}
        return 0;
    }
    function rarityGen2(uint256 r) private pure returns (uint256) {
        if (r >= 471)    {return 9;}
        if (r >= 372)    {return 8;}
        if (r >= 285)    {return 7;}
        if (r >= 207)    {return 6;}
        if (r >= 135)    {return 5;}
        if (r >=  69)    {return 4;}
        if (r >=  21)    {return 3;}
        if (r >=   9)    {return 2;}
        if (r >=   3)    {return 1;}
        return 0;
    }
    function rarityGen3(uint256 r) private pure returns (uint256) {
        if (r >= 462)    {return 7;}
        if (r >= 336)    {return 6;}
        if (r >= 222)    {return 5;}
        if (r >= 120)    {return 4;}
        if (r >=  33)    {return 3;}
        if (r >=   9)    {return 2;}
        if (r >=   3)    {return 1;}
        return 0;
    }
    function rarityGen4(uint256 r) private pure returns (uint256) {
        if (r >=  93)    {return 7;}
        if (r >=  63)    {return 6;}
        if (r >=  45)    {return 5;}
        if (r >=  33)    {return 4;}
        if (r >=  21)    {return 3;}
        if (r >=   9)    {return 2;}
        if (r >=   3)    {return 1;}
        return 0;
    }
    function rarityGen5(uint256 r) private pure returns (uint256) {
        if (r >=  93)    {return 7;}
        if (r >=  63)    {return 6;}
        if (r >=  45)    {return 5;}
        if (r >=  33)    {return 4;}
        if (r >=  21)    {return 3;}
        if (r >=   9)    {return 2;}
        if (r >=   3)    {return 1;}
        return 0;
    }

    function hash(
        uint256 _t,
        address _a
    ) internal returns (string memory) {
        // This will generate a 7 character string.
        // The last 6 digits are random, the first is 0, due to the chain is not being burned.
        SEED_NONCE++;

        bytes memory buffer = new bytes(7);
        buffer[0] = bytes1(uint8(48));

    unchecked {
        for (uint _c=0; _c<4; _c++) {
            uint256 _largeRandom =
            uint256(
                keccak256(
                    abi.encodePacked(
                        block.timestamp,
                        block.difficulty,
                        _t,
                        _a,
                        _c,
                        SEED_NONCE
                    )
                )
            );


            for (uint i=0; i<4; i++) {
                buffer[1] = bytes1(uint8(48 + rarityGen0(_largeRandom % 600)));
                _largeRandom /= 600;
                buffer[2] = bytes1(uint8(48 + rarityGen1(_largeRandom % 600)));
                _largeRandom /= 600;
                buffer[3] = bytes1(uint8(48 + rarityGen2(_largeRandom % 600)));
                _largeRandom /= 600;
                buffer[4] = bytes1(uint8(48 + rarityGen3(_largeRandom % 600)));
                _largeRandom /= 600;
                buffer[5] = bytes1(uint8(48 + rarityGen4(_largeRandom % 600)));
                _largeRandom /= 600;
                buffer[6] = bytes1(uint8(48 + rarityGen5(_largeRandom % 600)));

                string memory currentHash = string(buffer);

                if (hashToMinted[currentHash] == false) {
                    return currentHash;
                }

                _largeRandom /= 600;
            }
        }

        // use background 4
        buffer[6] = bytes1(uint8(48 + 4));
    }
        return string(buffer);
    }

    /**
     * @dev Returns the current baller bar cost of a mint.
     */

    function currentBallerBarsCost() public view returns (uint256) {
        uint256 _totalSupply = _combinedTotalSupply;
        if (_totalSupply <= 3000)
            return 4 ether;
        if (_totalSupply > 3000 && _totalSupply <= 4000)
            return 8 ether;
        if (_totalSupply > 4000 && _totalSupply <= 5000)
            return 16 ether;
        return 24 ether;
    }

    /**
     * @dev Mint reserve. Owner only, for giveaways and tests
     * @param tokenQuantity Quantity of tokens
     */

    function mintReserve(uint256 tokenQuantity) onlyOwner external  {
        require(_reserveMinted+tokenQuantity<7,"EXCEEDS_RESERVE_MINTS");
        for (uint256 i = 0; i < tokenQuantity; i++) {
            ++_reserveMinted;
            mintInternal();
        }
    }

    /**
     * @dev Mint internal, this is to avoid code duplication.
     */

    function mintInternal() internal {
        require(_combinedTotalSupply < MAX_SUPPLY);
        require(tx.origin == msg.sender);

        uint256 thisTokenId = _combinedTotalSupply;

        tokenIdToHash[thisTokenId] = hash(thisTokenId, msg.sender);

        hashToMinted[tokenIdToHash[thisTokenId]] = true;

        tokenIdToTimestamp[thisTokenId] = block.timestamp;

        _combinedTotalSupply++;
        _mint(msg.sender, thisTokenId);
    }

    /**
     * @dev Mint for BallerBars
     * @param ballerBarsGeneration The generation of Baller Bars to use.
     */

    function mintWithBallerBars(uint256 ballerBarsGeneration) public {
        require(_paused==false,"PAUSED");
        IBallerBars ballerBarsContract = getBallerBarsContract(ballerBarsGeneration);
        ballerBarsContract.burnFrom(msg.sender, currentBallerBarsCost());
        mintInternal();
    }

    /**
     * @dev Mint for BallerBars with both BallerBars generation one and generation 2
     * @param bbOneAmount The amount of BB generation one to burn
     * @param bbOneAmount The amount of BB generation two to burn
     */

    function mintWithBallerBarsSpecial(uint256 bbOneAmount, uint256 bbTwoAmount) public {
        require(_paused==false,"PAUSED");
        require(bbOneAmount+bbTwoAmount==currentBallerBarsCost(),"INVALID_COMBINATION");

        IBallerBars ballerBarsGenOneContract = IBallerBars(_genOneBallerBarsAddress);
        IBallerBars ballerBarsGenTwoContract = IBallerBars(_genTwoBallerBarsAddress);

        ballerBarsGenOneContract.burnFrom(msg.sender, bbOneAmount);
        ballerBarsGenTwoContract.burnFrom(msg.sender, bbTwoAmount);

        mintInternal();
    }

    /**
     * @dev Burns and mints new.
     * @param _tokenId The token to burn.
     */
    function burnForMint(uint256 _tokenId) public {
        require(_paused==false,"PAUSED");

        //Burn token
        _transfer(
            msg.sender,
            0x000000000000000000000000000000000000dEaD,
            _tokenId
        );

        mintInternal();
    }

    /**
     * @dev Burns previous generation chain and mints new one.
     * @param _tokenId The token to burn.
     */

    function burnGenOneForMint(uint256 _tokenId) public {
        require(_paused==false,"PAUSED");
        IChains chainsGenOne = IChains(_genOneChainsAddress);

        hashToMinted[chainsGenOne._tokenIdToHash(_tokenId)] = true;

        //Burn token
        chainsGenOne.transferFrom(
            msg.sender,
            0x000000000000000000000000000000000000dEaD,
            _tokenId
        );

        mintInternal();
    }

    /**
     * @dev Migrates previous generation chain to this one.
     * @param _tokenId The token to migrate
     */

    function migrateGenOne(uint256 _tokenId) public {
        require(_paused==false,"PAUSED");
        migrate(_tokenId);
    }

    /**
     * @dev Migrates previous generation chain
     * @param _tokenId The token to migrate
     */

    function migrate(uint _tokenId) internal {
        require(_tokenId < 3406, "TOKEN_ID_TOO_HIGH");

        IChains chainsGenOne = IChains(_genOneChainsAddress);

        tokenIdToHash[_tokenId] = chainsGenOne._tokenIdToHash(_tokenId);
        hashToMinted[tokenIdToHash[_tokenId]] = true;

        tokenIdToTimestamp[_tokenId] = chainsGenOne.getTokenTimestamp(_tokenId);

        //Burn token
        chainsGenOne.transferFrom(
            msg.sender,
            0x000000000000000000000000000000000000dEaD,
            _tokenId
        );

        _mint(msg.sender, _tokenId);
    }

    /**
     * @dev Hash to SVG function
     */

    function hashToSVG(string memory _hash)
        public
        view
        returns (string memory)
    {
        string memory svgString;

        string memory bgString;
        string memory bgColor;
        //

        bool[24][24] memory placedPixels;

        uint8 bgIndex =  ChainsLibrary.parseInt(ChainsLibrary.substring(_hash, 6, 7)); // BG

        if ( bgIndex == 0 ) {
            bgColor = "2596be";
        } else if ( bgIndex == 1 ) {
            bgColor = "10447c";
        } else if ( bgIndex == 2 ) {
            bgColor = "c8fcfc";
        } else if ( bgIndex == 3 ) {
            bgColor = "383434";
        } else if ( bgIndex == 4 ) {
            bgColor = "ffe4bc";
        } else if ( bgIndex == 5 ) {
            bgColor = "d0ccfc";
        }else if ( bgIndex == 6 ) {
            bgColor = "e0dcdc";
        }

        if ( bgIndex < 7 ) { // bg color 7 is none
            bgString = string(
                    abi.encodePacked(
                        'style="background-color:#',
                        bgColor,
                        '" '
                    )
                );
        } else {
            bgString = "";
        }

        for (uint8 i = 0; i < 6; i++) {  // 7 (we should skip BG here, so 6 will be final)
            uint8 thisTraitIndex = ChainsLibrary.parseInt(
                ChainsLibrary.substring(_hash, i, i + 1)
            );

            (,,string memory pixels,uint256 pixelCount)= IChainsTraits(_genOneChainsAddress).traitTypes(i, thisTraitIndex);

            for (
                uint16 j = 0;
                j < pixelCount; // <
                j++
            ) {
                string memory thisPixel = ChainsLibrary.substring(
                    pixels,
                    j * 4,
                    j * 4 + 4
                );

                uint8 x = uint8(bytes(thisPixel)[0]) - 96;
                uint8 y = uint8(bytes(thisPixel)[1]) - 96;

                if (placedPixels[x][y]) continue;

                svgString = string(
                    abi.encodePacked(
                        svgString,
                        "<rect class='c",
                        ChainsLibrary.substring(thisPixel, 2, 4),
                        "' x='",
                        x.toString(),
                        "' y='",
                        y.toString(),
                        "'/>"
                    )
                );

                placedPixels[x][y] = true;
            }
        }

        svgString = string(
            abi.encodePacked(
                '<svg id="c" xmlns="http://www.w3.org/2000/svg" ',
                'preserveAspectRatio="xMinYMin meet" viewBox="0 0 26 26" ',
                bgString,
                ' > ',
                svgString,
                '<style>rect{width:1px;height:1px;}#c{shape-rendering: crispedges;}.c00{fill:#d844cf}.c01{fill:#f1f1f1}.c02{fill:#ff4b54}.c03{fill:#ff6b71}.c04{fill:#ff5c64}.c05{fill:#ff132f}.c06{fill:#ff4651}.c07{fill:#ff444f}.c08{fill:#ff3644}.c09{fill:#ff3543}.c10{fill:#ff3845}.c11{fill:#ff4d57}.c12{fill:#c146fb}.c13{fill:#333aff}.c14{fill:#c2defc}.c15{fill:#eaf4ff}.c16{fill:#e3eefa}.c17{fill:#cfe4fa}.c18{fill:#b61ffc}.c19{fill:#bf42fb}.c20{fill:#bc35fb}.c21{fill:#bd36fb}.c22{fill:#fee4bf}.c23{fill:#ff8800}.c24{fill:#ffd300}.c25{fill:#ffc200}.c26{fill:#ff9a00}.c27{fill:#ffb100}.c28{fill:#ffa000}.c29{fill:#f6d900}.c30{fill:#f0ce00}.c31{fill:#eed100}.c32{fill:#00e58b}.c33{fill:#00df71}.c34{fill:#00e280}.c35{fill:#00cb59}.c36{fill:#00d874}.c37{fill:#00d963}.c38{fill:#00d36c}.c39{fill:#00de7c}.c40{fill:#ebb7a5}.c41{fill:#e3aa96}.c42{fill:#094378}.c43{fill:#c1a900}.c44{fill:#dcc000}.c45{fill:#fade11}.c46{fill:#f8dc09}.c47{fill:#00c5e6}.c48{fill:#dcdcdc}.c49{fill:#c1f8f9}.c50{fill:#b2b8b9}.c51{fill:#aab0b1}.c52{fill:#b0b4b5}.c53{fill:#e2a38d}.c54{fill:#eba992}.c55{fill:#e8b2a0}.c56{fill:#ff0043}.c57{fill:#f6767b}.c58{fill:#c74249}.c59{fill:#aa343a}.c60{fill:#4047ff}.c61{fill:#585eff}.c62{fill:#4d54ff}.c63{fill:#222bff}.c64{fill:#3d44ff}.c65{fill:#3b42ff}.c66{fill:#3239ff}.c67{fill:#343bff}.c68{fill:#4249ff}.c69{fill:#333333}.c70{fill:#222222}.c71{fill:#ccccff}</style></svg>'
            )
        );

        return svgString;
    }

    /**
     * @dev Hash to metadata function
     */

    function hashToMetadata(string memory _hash)
        public
        view
        returns (string memory)
    {
        string memory metadataString;

        for (uint8 i = 0; i < 7; i++) { //9
            uint8 thisTraitIndex = ChainsLibrary.parseInt(
                ChainsLibrary.substring(_hash, i, i + 1)
            );

            (string memory traitName,string memory traitType,,) = IChainsTraits(_genOneChainsAddress).traitTypes(i, thisTraitIndex);

            metadataString = string(
                abi.encodePacked(
                    metadataString,
                    '{"trait_type":"',
                    traitType,
                    '","value":"',
                    traitName,
                    '"},'
                )
            );

        }

        metadataString = string(
            abi.encodePacked(
                metadataString,
                '{"display_type": "boost_number", "trait_type": "BB Boost", "value":',
                ChainsLibrary.toString(IBallerBars(_genTwoBallerBarsAddress)._calculateBoost(_hash)),'}'
            )
        );

        return string(abi.encodePacked("[", metadataString, "]"));
    }

    /**
     * @dev Returns the SVG and metadata for a token Id
     * @param _tokenId The tokenId to return the SVG and metadata for.
     */

    function tokenURI(uint256 _tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(_exists(_tokenId));

        string memory tokenHash = _tokenIdToHash(_tokenId);

        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    ChainsLibrary.encode(
                        bytes(
                            string(
                                abi.encodePacked(
                                    '{"name": "BlockChain #',
                                    ChainsLibrary.toString(_tokenId),
                                    '", "description": "The BlockChains collection serves as the first',
                                    'phase of Ben Baller','Did The BlockChain.","image": "data:image/svg+xml;base64,',
                                    ChainsLibrary.encode(
                                        bytes(hashToSVG(tokenHash))
                                    ),
                                    '","attributes":',
                                    hashToMetadata(tokenHash),
                                    "}"
                                )
                            )
                        )
                    )
                )
            );
    }

    /**
     * @dev Returns a hash for a given tokenId
     * @param _tokenId The tokenId to return the hash for.
     */

    function _tokenIdToHash(uint256 _tokenId)
        public
        view
        returns (string memory)
    {
        string memory tokenHash = tokenIdToHash[_tokenId];
        //If this is a burned token, override the previous hash
        if (ownerOf(_tokenId) == 0x000000000000000000000000000000000000dEaD) {
            tokenHash = string(
                abi.encodePacked(
                    "1",
                    ChainsLibrary.substring(tokenHash, 1, 7)
                )
            );
        }

        return tokenHash;
    }


    /**
     * @dev Returns the mint timestamp of a tokenId
     * @param _tokenId The tokenId to return the timestamp for.
     */

    function getTokenTimestamp(uint256 _tokenId)
        public
        view
        returns (uint256)
    {
        return tokenIdToTimestamp[_tokenId];
    }

    /**
     * @dev Returns the wallet of a given wallet. Mainly for ease for frontend devs.
     * @param _wallet The wallet to get the tokens of.
     */

    function walletOfOwner(address _wallet)
        public
        view
        returns (uint256[] memory)
    {
        uint256 tokenCount = balanceOf(_wallet);

        uint256[] memory tokensId = new uint256[](tokenCount);
        for (uint256 i; i < tokenCount; i++) {
            tokensId[i] = tokenOfOwnerByIndex(_wallet, i);
        }
        return tokensId;
    }

    function togglePauseStatus() external onlyOwner {
        _paused = !_paused;
    }

    /**
     * @dev Sets BB contract address based on generation
     * @param ballerBarsAddress The BB contract address
     * @param generation The generation of chains contract
     */

    function setBallerBarsAddress(address ballerBarsAddress,uint256 generation) onlyOwner public {
        require(generation==1||generation==2,"INVALID_GEN");
        if(generation == 1){
            _genOneBallerBarsAddress = ballerBarsAddress;
        }else if(generation == 2){
            _genTwoBallerBarsAddress = ballerBarsAddress;
        }
    }

    /**
     * @dev Sets generation one chains contract address
     * @param genOneChainsAddress The chains contract address
     */

    function setGenOneChainsAddress(address genOneChainsAddress) onlyOwner public {
        _genOneChainsAddress = genOneChainsAddress;
    }

    /**
     * @dev Returns BB contract based on generation
     * @param generation The generation of contract to return. 1 or 2
     */

    function getBallerBarsContract(uint256 generation) internal view returns (IBallerBars) {
        if(generation == 1){
            return IBallerBars(_genOneBallerBarsAddress);
        }else if(generation == 2){
            return IBallerBars(_genTwoBallerBarsAddress);
        }else{
            revert("INVALID_GEN");
        }
    }

    /**
     * @dev Returns the number of rare assets of a tokenId
     * @param _tokenId The tokenId to return the number of rare assets for.
     */

    function getTokenRarityCount(uint256 _tokenId)
    public
    view
    returns (uint256)
    {
        require(_tokenId<3406,"NOT_GEN_ONE_CHAIN");
        return IChains(_genOneChainsAddress).getTokenRarityCount(_tokenId);
    }

}

File 2 of 18 : IChainsTraits.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

interface IChainsTraits {
    function traitTypes(uint256 i, uint256 j)
        external
        view
        returns (string memory,string memory,string memory,uint256);
}

File 3 of 18 : IChains.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

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

interface IChains is IERC721Enumerable {

    function getTokenTimestamp(uint256 _tokenId)
        external
        view
        returns (uint256);

    function getTokenRarityCount(uint256 _tokenId)
        external
        view
        returns (uint256);

    function _tokenIdToHash(uint256 _tokenId)
        external
        view
        returns (string memory);
}

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

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";


interface IBallerBars is IERC20 {
    function burnFrom(address account, uint256 amount) external;
    function burnUnclaimed(uint256[] memory _tokenIds, uint256 amount) external;
    function _calculateBoost(string memory _hash) external view returns (uint256);
}

File 5 of 18 : ChainsLibrary.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

library ChainsLibrary {
    string internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return "";

        // load the table into memory
        string memory table = TABLE;

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

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {

            } lt(dataPtr, endPtr) {

            } {
                dataPtr := add(dataPtr, 3)

                // read 3 bytes
                let input := mload(dataPtr)

                // write 4 characters
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(input, 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }
        }

        return result;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    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 parseInt(string memory _a)
        internal
        pure
        returns (uint8 _parsedInt)
    {
        bytes memory bresult = bytes(_a);
        uint8 mint = 0;
        for (uint8 i = 0; i < bresult.length; i++) {
            if (
                (uint8(uint8(bresult[i])) >= 48) &&
                (uint8(uint8(bresult[i])) <= 57)
            ) {
                mint *= 10;
                mint += uint8(bresult[i]) - 48;
            }
        }
        return mint;
    }

    function substring(
        string memory str,
        uint256 startIndex,
        uint256 endIndex
    ) internal pure returns (string memory) {
        bytes memory strBytes = bytes(str);
        bytes memory result = new bytes(endIndex - startIndex);
        for (uint256 i = startIndex; i < endIndex; i++) {
            result[i - startIndex] = strBytes[i];
        }
        return string(result);
    }

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

File 6 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 7 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 8 of 18 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 9 of 18 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 10 of 18 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 13 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 15 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 16 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 17 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_combinedTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"_tokenIdToHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burnForMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burnGenOneForMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentBallerBarsCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTokenRarityCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTokenTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"hashToMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"hashToSVG","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":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"migrateGenOne","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"mintReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ballerBarsGeneration","type":"uint256"}],"name":"mintWithBallerBars","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bbOneAmount","type":"uint256"},{"internalType":"uint256","name":"bbTwoAmount","type":"uint256"}],"name":"mintWithBallerBarsSpecial","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"ballerBarsAddress","type":"address"},{"internalType":"uint256","name":"generation","type":"uint256"}],"name":"setBallerBarsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"genOneChainsAddress","type":"address"}],"name":"setGenOneChainsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePauseStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"_wallet","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]

60806040526000600e8190556011805460ff60a01b1916600160a01b179055610d4e6012556013553480156200003457600080fd5b506040805180820182526006815265436861696e7360d01b60208083019182528351808501909452600584526421a420a4a760d91b90840152815191929162000080916000916200010f565b508051620000969060019060208401906200010f565b505050620000b3620000ad620000b960201b60201c565b620000bd565b620001f2565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200011d90620001b5565b90600052602060002090601f0160209004810192826200014157600085556200018c565b82601f106200015c57805160ff19168380011785556200018c565b828001600101855582156200018c579182015b828111156200018c5782518255916020019190600101906200016f565b506200019a9291506200019e565b5090565b5b808211156200019a57600081556001016200019f565b600181811c90821680620001ca57607f821691505b60208210811415620001ec57634e487b7160e01b600052602260045260246000fd5b50919050565b61456380620002026000396000f3fe608060405234801561001057600080fd5b50600436106102315760003560e01c806370a0823111610130578063b662da94116100b8578063e8c83f141161007c578063e8c83f14146104c4578063e985e9c5146104d7578063f2fde38b14610513578063f906751b14610526578063fde2fcf11461053957600080fd5b8063b662da9414610470578063b88d4fde14610483578063c4ef71c714610496578063c87b56dd146104a9578063e1f3a61a146104bc57600080fd5b80638d2af580116100ff5780638d2af580146104295780638da5cb5b1461043157806395d89b41146104425780639f7314cc1461044a578063a22cb4651461045d57600080fd5b806370a08231146103e8578063715018a6146103fb5780637d72faa41461040357806389ce30741461041657600080fd5b806323b872dd116101be5780634f6ccce7116101825780634f6ccce71461038957806354ffc3a31461039c5780636352211e146103af578063648a63f8146103c257806366e33870146103d557600080fd5b806323b872dd146103275780632f745c591461033a57806332cb6b0c1461034d57806342842e0e14610356578063438b63001461036957600080fd5b8063081812fc11610205578063081812fc146102ab578063095ea7b3146102d657806316c61ccc146102eb57806318160ddd146102ff57806321a16b0c1461030757600080fd5b80625ea3071461023657806301ffc9a71461025f57806304a192201461028257806306fdde03146102a3575b600080fd5b610249610244366004613092565b610542565b6040516102569190613103565b60405180910390f35b61027261026d366004613133565b610639565b6040519015158152602001610256565b610295610290366004613092565b61065e565b604051908152602001610256565b610249610725565b6102be6102b9366004613092565b6107b7565b6040516001600160a01b039091168152602001610256565b6102e96102e4366004613167565b61084c565b005b60115461027290600160a01b900460ff1681565b600854610295565b610295610315366004613092565b6000908152600d602052604090205490565b6102e9610335366004613191565b610962565b610295610348366004613167565b610993565b61029561177081565b6102e9610364366004613191565b610a29565b61037c6103773660046131cd565b610a44565b60405161025691906131e8565b610295610397366004613092565b610ae6565b6102e96103aa36600461322c565b610b79565b6102be6103bd366004613092565b610cd3565b6102e96103d0366004613167565b610d4a565b6102496103e33660046132fb565b610e0e565b6102956103f63660046131cd565b610fed565b6102e9611074565b6102e9610411366004613092565b6110aa565b6102496104243660046132fb565b6110e0565b6102e9611516565b600a546001600160a01b03166102be565b610249611561565b6102e9610458366004613092565b611570565b6102e961046b366004613344565b6116bc565b6102e961047e366004613092565b611781565b6102e9610491366004613380565b611801565b6102e96104a4366004613092565b611833565b6102496104b7366004613092565b611872565b6102956118ff565b6102e96104d23660046131cd565b61197b565b6102726104e53660046133fc565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102e96105213660046131cd565b6119c7565b6102e9610534366004613092565b611a5f565b61029560125481565b6000818152600c60205260408120805460609291906105609061342f565b80601f016020809104026020016040519081016040528092919081815260200182805461058c9061342f565b80156105d95780601f106105ae576101008083540402835291602001916105d9565b820191906000526020600020905b8154815290600101906020018083116105bc57829003601f168201915b505050505090506105e983610cd3565b6001600160a01b031661dead6001600160a01b03161415610633576106118160016007611b16565b604051602001610621919061346a565b60405160208183030381529060405290505b92915050565b60006001600160e01b0319821663780e9d6360e01b1480610633575061063382611be3565b6000610d4e82106106aa5760405162461bcd60e51b81526020600482015260116024820152702727aa2fa3a2a72fa7a722afa1a420a4a760791b60448201526064015b60405180910390fd5b600f5460405162250c9160e51b8152600481018490526001600160a01b03909116906304a192209060240160206040518083038186803b1580156106ed57600080fd5b505afa158015610701573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106339190613493565b6060600080546107349061342f565b80601f01602080910402602001604051908101604052809291908181526020018280546107609061342f565b80156107ad5780601f10610782576101008083540402835291602001916107ad565b820191906000526020600020905b81548152906001019060200180831161079057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108305760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106a1565b506000908152600460205260409020546001600160a01b031690565b600061085782610cd3565b9050806001600160a01b0316836001600160a01b031614156108c55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106a1565b336001600160a01b03821614806108e157506108e181336104e5565b6109535760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106a1565b61095d8383611c33565b505050565b61096c3382611ca1565b6109885760405162461bcd60e51b81526004016106a1906134ac565b61095d838383611d98565b600061099e83610fed565b8210610a005760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016106a1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61095d83838360405180602001604052806000815250611801565b60606000610a5183610fed565b905060008167ffffffffffffffff811115610a6e57610a6e61324e565b604051908082528060200260200182016040528015610a97578160200160208202803683370190505b50905060005b82811015610ade57610aaf8582610993565b828281518110610ac157610ac16134fd565b602090810291909101015280610ad681613529565b915050610a9d565b509392505050565b6000610af160085490565b8210610b545760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016106a1565b60088281548110610b6757610b676134fd565b90600052602060002001549050919050565b601154600160a01b900460ff1615610ba35760405162461bcd60e51b81526004016106a190613544565b610bab6118ff565b610bb58284613564565b14610bf85760405162461bcd60e51b815260206004820152601360248201527224a72b20a624a22fa1a7a6a124a720aa24a7a760691b60448201526064016106a1565b60105460115460405163079cc67960e41b8152336004820152602481018590526001600160a01b03928316929091169082906379cc679090604401600060405180830381600087803b158015610c4d57600080fd5b505af1158015610c61573d6000803e3d6000fd5b505060405163079cc67960e41b8152336004820152602481018690526001600160a01b03841692506379cc67909150604401600060405180830381600087803b158015610cad57600080fd5b505af1158015610cc1573d6000803e3d6000fd5b50505050610ccd611f43565b50505050565b6000818152600260205260408120546001600160a01b0316806106335760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106a1565b600a546001600160a01b03163314610d745760405162461bcd60e51b81526004016106a19061357c565b8060011480610d835750806002145b610dbd5760405162461bcd60e51b815260206004820152600b60248201526a24a72b20a624a22fa3a2a760a91b60448201526064016106a1565b8060011415610de557601080546001600160a01b0319166001600160a01b0384161790555050565b8060021415610e0a57601180546001600160a01b0319166001600160a01b0384161790555b5050565b60608060005b60078160ff161015610f17576000610e45610e408660ff8516610e388660016135b1565b60ff16611b16565b612002565b600f546040516317d84c6960e11b815260ff80861660048301528316602482015291925060009182916001600160a01b031690632fb098d29060440160006040518083038186803b158015610e9957600080fd5b505afa158015610ead573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ed5919081019061361b565b505091509150848183604051602001610ef0939291906136ab565b60405160208183030381529060405294505050508080610f0f90613732565b915050610e14565b506011546040516307f1e56d60e21b81528291610fa3916001600160a01b0390911690631fc795b490610f4e908890600401613103565b60206040518083038186803b158015610f6657600080fd5b505afa158015610f7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9e9190613493565b6120b8565b604051602001610fb4929190613752565b604051602081830303815290604052905080604051602001610fd691906137eb565b604051602081830303815290604052915050919050565b60006001600160a01b0382166110585760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106a1565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331461109e5760405162461bcd60e51b81526004016106a19061357c565b6110a860006121b6565b565b601154600160a01b900460ff16156110d45760405162461bcd60e51b81526004016106a190613544565b6110dd81612208565b50565b6060806060806110ee612fac565b6000611100610e408860066007611b16565b905060ff8116611130576040518060400160405280600681526020016532353936626560d01b8152509250611258565b8060ff1660011415611162576040518060400160405280600681526020016531303434376360d01b8152509250611258565b8060ff1660021415611194576040518060400160405280600681526020016563386663666360d01b8152509250611258565b8060ff16600314156111c657604051806040016040528060068152602001650cce0ccd0ccd60d21b8152509250611258565b8060ff16600414156111f8576040518060400160405280600681526020016566666534626360d01b8152509250611258565b8060ff166005141561122a576040518060400160405280600681526020016564306363666360d01b8152509250611258565b8060ff1660061415611258576040518060400160405280600681526020016565306463646360d01b81525092505b60078160ff16101561128b5782604051602001611275919061381f565b604051602081830303815290604052935061129e565b6040518060200160405280600081525093505b60005b60068160ff1610156114e75760006112c5610e408a60ff8516610e388660016135b1565b600f546040516317d84c6960e11b815260ff80861660048301528316602482015291925060009182916001600160a01b031690632fb098d29060440160006040518083038186803b15801561131957600080fd5b505afa15801561132d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611355919081019061361b565b93509350505060005b818161ffff1610156114d057600061139e8461137b846004613870565b61ffff1661138a856004613870565b61139590600461389a565b61ffff16611b16565b905060006060826000815181106113b7576113b76134fd565b01602001516113c9919060f81c6138c0565b905060006060836001815181106113e2576113e26134fd565b01602001516113f4919060f81c6138c0565b9050898260ff166018811061140b5761140b6134fd565b60200201518160ff1660188110611424576114246134fd565b602002015115611436575050506114be565b8c6114448460026004611b16565b6114508460ff166120b8565b61145c8460ff166120b8565b60405160200161146f94939291906138e3565b6040516020818303038152906040529c5060018a8360ff1660188110611497576114976134fd565b60200201518260ff16601881106114b0576114b06134fd565b911515602090920201525050505b806114c88161398a565b91505061135e565b5050505080806114df90613732565b9150506112a1565b5083856040516020016114fb9291906139ac565b60408051601f19818403018152919052979650505050505050565b600a546001600160a01b031633146115405760405162461bcd60e51b81526004016106a19061357c565b6011805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6060600180546107349061342f565b601154600160a01b900460ff161561159a5760405162461bcd60e51b81526004016106a190613544565b600f54604051625ea30760e01b8152600481018390526001600160a01b0390911690600190600b908390625ea3079060240160006040518083038186803b1580156115e457600080fd5b505afa1580156115f8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116209190810190614104565b60405161162d9190614139565b908152604051908190036020018120805492151560ff19909316929092179091556323b872dd60e01b815233600482015261dead6024820152604481018390526001600160a01b038216906323b872dd906064015b600060405180830381600087803b15801561169c57600080fd5b505af11580156116b0573d6000803e3d6000fd5b50505050610e0a611f43565b6001600160a01b0382163314156117155760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106a1565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b601154600160a01b900460ff16156117ab5760405162461bcd60e51b81526004016106a190613544565b60006117b68261242f565b9050806001600160a01b03166379cc6790336117d06118ff565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401611682565b61180b3383611ca1565b6118275760405162461bcd60e51b81526004016106a1906134ac565b610ccd848484846124a0565b601154600160a01b900460ff161561185d5760405162461bcd60e51b81526004016106a190613544565b61186a3361dead83611d98565b6110dd611f43565b6000818152600260205260409020546060906001600160a01b031661189657600080fd5b60006118a183610542565b90506118ef6118af846120b8565b6118c06118bb846110e0565b6124d3565b6118c984610e0e565b6040516020016118db93929190614155565b6040516020818303038152906040526124d3565b604051602001610fd691906142ad565b601254600090610bb8811161191d57673782dace9d90000091505090565b610bb8811180156119305750610fa08111155b1561194457676f05b59d3b20000091505090565b610fa08111801561195757506113888111155b1561196b5767de0b6b3a7640000091505090565b68014d1120d7b160000091505090565b600a546001600160a01b031633146119a55760405162461bcd60e51b81526004016106a19061357c565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146119f15760405162461bcd60e51b81526004016106a19061357c565b6001600160a01b038116611a565760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a1565b6110dd816121b6565b600a546001600160a01b03163314611a895760405162461bcd60e51b81526004016106a19061357c565b600781601354611a999190613564565b10611ade5760405162461bcd60e51b8152602060048201526015602482015274455843454544535f524553455256455f4d494e545360581b60448201526064016106a1565b60005b81811015610e0a57601360008154611af890613529565b90915550611b04611f43565b80611b0e81613529565b915050611ae1565b6060836000611b2585856142f2565b67ffffffffffffffff811115611b3d57611b3d61324e565b6040519080825280601f01601f191660200182016040528015611b67576020820181803683370190505b509050845b84811015611bd957828181518110611b8657611b866134fd565b01602001516001600160f81b03191682611ba088846142f2565b81518110611bb057611bb06134fd565b60200101906001600160f81b031916908160001a90535080611bd181613529565b915050611b6c565b5095945050505050565b60006001600160e01b031982166380ac58cd60e01b1480611c1457506001600160e01b03198216635b5e139f60e01b145b8061063357506301ffc9a760e01b6001600160e01b0319831614610633565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c6882610cd3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611d1a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106a1565b6000611d2583610cd3565b9050806001600160a01b0316846001600160a01b03161480611d605750836001600160a01b0316611d55846107b7565b6001600160a01b0316145b80611d9057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611dab82610cd3565b6001600160a01b031614611e135760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106a1565b6001600160a01b038216611e755760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106a1565b611e8083838361263b565b611e8b600082611c33565b6001600160a01b0383166000908152600360205260408120805460019290611eb49084906142f2565b90915550506001600160a01b0382166000908152600360205260408120805460019290611ee2908490613564565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61177060125410611f5357600080fd5b323314611f5f57600080fd5b601254611f6c81336126f3565b6000828152600c602090815260409091208251611f8f9391929190910190612fda565b506001600b600c6000848152602001908152602001600020604051611fb49190614309565b9081526040805160209281900383019020805460ff1916931515939093179092556000838152600d9091529081204290556012805491611ff383613529565b91905055506110dd33826129e6565b60008181805b82518160ff161015610ade576030838260ff168151811061202b5761202b6134fd565b016020015160f81c1080159061205e57506039838260ff1681518110612053576120536134fd565b016020015160f81c11155b156120a65761206e600a836143a5565b91506030838260ff1681518110612087576120876134fd565b0160200151612099919060f81c6138c0565b6120a390836135b1565b91505b806120b081613732565b915050612008565b6060816120dc5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561210657806120f081613529565b91506120ff9050600a836143e4565b91506120e0565b60008167ffffffffffffffff8111156121215761212161324e565b6040519080825280601f01601f19166020018201604052801561214b576020820181803683370190505b5090505b8415611d90576121606001836142f2565b915061216d600a866143f8565b612178906030613564565b60f81b81838151811061218d5761218d6134fd565b60200101906001600160f81b031916908160001a9053506121af600a866143e4565b945061214f565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610d4e811061224d5760405162461bcd60e51b81526020600482015260116024820152700a89e968a9cbe9288bea89e9ebe90928e9607b1b60448201526064016106a1565b600f54604051625ea30760e01b8152600481018390526001600160a01b03909116908190625ea3079060240160006040518083038186803b15801561229157600080fd5b505afa1580156122a5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122cd9190810190614104565b6000838152600c6020908152604090912082516122f09391929190910190612fda565b506001600b600c60008581526020019081526020016000206040516123159190614309565b908152604051908190036020018120805492151560ff19909316929092179091556308685ac360e21b8152600481018390526001600160a01b038216906321a16b0c9060240160206040518083038186803b15801561237357600080fd5b505afa158015612387573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123ab9190613493565b6000838152600d60205260409081902091909155516323b872dd60e01b815233600482015261dead6024820152604481018390526001600160a01b038216906323b872dd90606401600060405180830381600087803b15801561240d57600080fd5b505af1158015612421573d6000803e3d6000fd5b50505050610e0a33836129e6565b6000816001141561244b5750506010546001600160a01b031690565b81600214156124655750506011546001600160a01b031690565b60405162461bcd60e51b815260206004820152600b60248201526a24a72b20a624a22fa3a2a760a91b60448201526064016106a1565b919050565b6124ab848484611d98565b6124b784848484612b34565b610ccd5760405162461bcd60e51b81526004016106a19061440c565b60608151600014156124f357505060408051602081019091526000815290565b60006040518060600160405280604081526020016144ee60409139905060006003845160026125229190613564565b61252c91906143e4565b61253790600461445e565b90506000612546826020613564565b67ffffffffffffffff81111561255e5761255e61324e565b6040519080825280601f01601f191660200182016040528015612588576020820181803683370190505b509050818152600183018586518101602084015b818310156125f65760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b9382019390935260040161259c565b60038951066001811461261057600281146126215761262d565b613d3d60f01b60011983015261262d565b603d60f81b6000198301525b509398975050505050505050565b6001600160a01b0383166126965761269181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6126b9565b816001600160a01b0316836001600160a01b0316146126b9576126b98382612c41565b6001600160a01b0382166126d05761095d81612cde565b826001600160a01b0316826001600160a01b03161461095d5761095d8282612d8d565b600e8054606091600061270583613529565b9091555050604080516007808252818301909252600091602082018180368337019050509050603060f81b81600081518110612743576127436134fd565b60200101906001600160f81b031916908160001a90535060005b60048110156129af57600e546040805142602080830191909152448284015260608083018a905288901b6bffffffffffffffffffffffff191660808301526094820185905260b4808301949094528251808303909401845260d4909101909152815191012060005b60048110156129a5576127db6102588306612dd1565b60300160f81b846001815181106127f4576127f46134fd565b60200101906001600160f81b031916908160001a9053506102588204915061281f6102588306612e1c565b60300160f81b84600281518110612838576128386134fd565b60200101906001600160f81b031916908160001a905350610258820491506128636102588306612ea1565b60300160f81b8460038151811061287c5761287c6134fd565b60200101906001600160f81b031916908160001a905350610258820491506128a76102588306612f16565b60300160f81b846004815181106128c0576128c06134fd565b60200101906001600160f81b031916908160001a905350610258820491506128ec610258835b06612f6a565b60300160f81b84600581518110612905576129056134fd565b60200101906001600160f81b031916908160001a9053506102588204915061292f610258836128e6565b60300160f81b84600681518110612948576129486134fd565b60200101906001600160f81b031916908160001a9053506040518490600b90612972908390614139565b9081526040519081900360200190205460ff166129955794506106339350505050565b61025883049250506001016127c5565b505060010161275d565b50603460f81b816006815181106129c8576129c86134fd565b60200101906001600160f81b031916908160001a9053509392505050565b6001600160a01b038216612a3c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106a1565b6000818152600260205260409020546001600160a01b031615612aa15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106a1565b612aad6000838361263b565b6001600160a01b0382166000908152600360205260408120805460019290612ad6908490613564565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15612c3657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612b7890339089908890889060040161447d565b602060405180830381600087803b158015612b9257600080fd5b505af1925050508015612bc2575060408051601f3d908101601f19168201909252612bbf918101906144ba565b60015b612c1c573d808015612bf0576040519150601f19603f3d011682016040523d82523d6000602084013e612bf5565b606091505b508051612c145760405162461bcd60e51b81526004016106a19061440c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d90565b506001949350505050565b60006001612c4e84610fed565b612c5891906142f2565b600083815260076020526040902054909150808214612cab576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612cf0906001906142f2565b60008381526009602052604081205460088054939450909284908110612d1857612d186134fd565b906000526020600020015490508060088381548110612d3957612d396134fd565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612d7157612d716144d7565b6001900381819060005260206000200160009055905550505050565b6000612d9883610fed565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b600061014a8210612de457506004919050565b60968210612df457506003919050565b601e8210612e0457506002919050565b60038210612e1457506001919050565b506000919050565b60006101f88210612e2f57506009919050565b61019e8210612e4057506008919050565b61014a8210612e5157506007919050565b60fc8210612e6157506006919050565b60b48210612e7157506005919050565b60728210612e8157506004919050565b60368210612e9157506003919050565b60098210612e0457506002919050565b60006101d78210612eb457506009919050565b6101748210612ec557506008919050565b61011d8210612ed657506007919050565b60cf8210612ee657506006919050565b60878210612ef657506005919050565b60458210612f0657506004919050565b60158210612e9157506003919050565b60006101ce8210612f2957506007919050565b6101508210612f3a57506006919050565b60de8210612f4a57506005919050565b60788210612f5a57506004919050565b60218210612e9157506003919050565b6000605d8210612f7c57506007919050565b603f8210612f8c57506006919050565b602d8210612f9c57506005919050565b60218210612f0657506004919050565b6040518061030001604052806018905b612fc461305e565b815260200190600190039081612fbc5790505090565b828054612fe69061342f565b90600052602060002090601f016020900481019282613008576000855561304e565b82601f1061302157805160ff191683800117855561304e565b8280016001018555821561304e579182015b8281111561304e578251825591602001919060010190613033565b5061305a92915061307d565b5090565b6040518061030001604052806018906020820280368337509192915050565b5b8082111561305a576000815560010161307e565b6000602082840312156130a457600080fd5b5035919050565b60005b838110156130c65781810151838201526020016130ae565b83811115610ccd5750506000910152565b600081518084526130ef8160208601602086016130ab565b601f01601f19169290920160200192915050565b60208152600061311660208301846130d7565b9392505050565b6001600160e01b0319811681146110dd57600080fd5b60006020828403121561314557600080fd5b81356131168161311d565b80356001600160a01b038116811461249b57600080fd5b6000806040838503121561317a57600080fd5b61318383613150565b946020939093013593505050565b6000806000606084860312156131a657600080fd5b6131af84613150565b92506131bd60208501613150565b9150604084013590509250925092565b6000602082840312156131df57600080fd5b61311682613150565b6020808252825182820181905260009190848201906040850190845b8181101561322057835183529284019291840191600101613204565b50909695505050505050565b6000806040838503121561323f57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561328d5761328d61324e565b604052919050565b600067ffffffffffffffff8211156132af576132af61324e565b50601f01601f191660200190565b60006132d06132cb84613295565b613264565b90508281528383830111156132e457600080fd5b828260208301376000602084830101529392505050565b60006020828403121561330d57600080fd5b813567ffffffffffffffff81111561332457600080fd5b8201601f8101841361333557600080fd5b611d90848235602084016132bd565b6000806040838503121561335757600080fd5b61336083613150565b91506020830135801515811461337557600080fd5b809150509250929050565b6000806000806080858703121561339657600080fd5b61339f85613150565b93506133ad60208601613150565b925060408501359150606085013567ffffffffffffffff8111156133d057600080fd5b8501601f810187136133e157600080fd5b6133f0878235602084016132bd565b91505092959194509250565b6000806040838503121561340f57600080fd5b61341883613150565b915061342660208401613150565b90509250929050565b600181811c9082168061344357607f821691505b6020821081141561346457634e487b7160e01b600052602260045260246000fd5b50919050565b603160f81b8152600082516134868160018501602087016130ab565b9190910160010192915050565b6000602082840312156134a557600080fd5b5051919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561353d5761353d613513565b5060010190565b60208082526006908201526514105554d15160d21b604082015260600190565b6000821982111561357757613577613513565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060ff821660ff84168060ff038211156135ce576135ce613513565b019392505050565b600082601f8301126135e757600080fd5b81516135f56132cb82613295565b81815284602083860101111561360a57600080fd5b611d908260208301602087016130ab565b6000806000806080858703121561363157600080fd5b845167ffffffffffffffff8082111561364957600080fd5b613655888389016135d6565b9550602087015191508082111561366b57600080fd5b613677888389016135d6565b9450604087015191508082111561368d57600080fd5b5061369a878288016135d6565b606096909601519497939650505050565b600084516136bd8184602089016130ab565b6e3d913a3930b4ba2fba3cb832911d1160891b90830190815284516136e981600f8401602089016130ab565b6a1116113b30b63ab2911d1160a91b600f9290910191820152835161371581601a8401602088016130ab565b62089f4b60ea1b601a9290910191820152601d0195945050505050565b600060ff821660ff81141561374957613749613513565b60010192915050565b600083516137648184602088016130ab565b80830190507f7b22646973706c61795f74797065223a2022626f6f73745f6e756d626572222c81527f202274726169745f74797065223a2022424220426f6f7374222c202276616c7560208201526232911d60e91b604082015283516137d18160438401602088016130ab565b607d60f81b60439290910191820152604401949350505050565b605b60f81b8152600082516138078160018501602087016130ab565b605d60f81b6001939091019283015250600201919050565b7f7374796c653d226261636b67726f756e642d636f6c6f723a23000000000000008152600082516138578160198501602087016130ab565b61011160f51b6019939091019283015250601b01919050565b600061ffff8083168185168183048111821515161561389157613891613513565b02949350505050565b600061ffff8083168185168083038211156138b7576138b7613513565b01949350505050565b600060ff821660ff8416808210156138da576138da613513565b90039392505050565b600085516138f5818460208a016130ab565b6d3c7265637420636c6173733d276360901b908301908152855161392081600e840160208a016130ab565b642720783d2760d81b600e929091019182015284516139468160138401602089016130ab565b642720793d2760d81b60139290910191820152835161396c8160188401602088016130ab565b6213979f60e91b60189290910191820152601b019695505050505050565b600061ffff808316818114156139a2576139a2613513565b6001019392505050565b7f3c7376672069643d22632220786d6c6e733d22687474703a2f2f7777772e773381526e01737b933979918181817b9bb33911608d1b60208201527f7072657365727665417370656374526174696f3d22784d696e594d696e206d65602f8201527f6574222076696577426f783d2230203020323620323622200000000000000000604f82015260008351613a488160678501602088016130ab565b620101f160ed1b6067918401918201528351613a6b81606a8401602088016130ab565b7f3c7374796c653e726563747b77696474683a3170783b6865696768743a317078606a92909101918201527f3b7d23637b73686170652d72656e646572696e673a2063726973706564676573608a8201527f3b7d2e6330307b66696c6c3a236438343463667d2e6330317b66696c6c3a236660aa8201527f31663166317d2e6330327b66696c6c3a236666346235347d2e6330337b66696c60ca8201527f6c3a236666366237317d2e6330347b66696c6c3a236666356336347d2e63303560ea8201527f7b66696c6c3a236666313332667d2e6330367b66696c6c3a236666343635317d61010a8201527f2e6330377b66696c6c3a236666343434667d2e6330387b66696c6c3a2366663361012a8201527f3634347d2e6330397b66696c6c3a236666333534337d2e6331307b66696c6c3a61014a8201527f236666333834357d2e6331317b66696c6c3a236666346435377d2e6331327b6661016a8201527f696c6c3a236331343666627d2e6331337b66696c6c3a233333336166667d2e6361018a8201527f31347b66696c6c3a236332646566637d2e6331357b66696c6c3a2365616634666101aa8201527f667d2e6331367b66696c6c3a236533656566617d2e6331377b66696c6c3a23636101ca8201527f66653466617d2e6331387b66696c6c3a236236316666637d2e6331397b66696c6101ea8201527f6c3a236266343266627d2e6332307b66696c6c3a236263333566627d2e63323161020a8201527f7b66696c6c3a236264333666627d2e6332327b66696c6c3a236665653462667d61022a8201527f2e6332337b66696c6c3a236666383830307d2e6332347b66696c6c3a2366666461024a8201527f3330307d2e6332357b66696c6c3a236666633230307d2e6332367b66696c6c3a61026a8201527f236666396130307d2e6332377b66696c6c3a236666623130307d2e6332387b6661028a8201527f696c6c3a236666613030307d2e6332397b66696c6c3a236636643930307d2e636102aa8201527f33307b66696c6c3a236630636530307d2e6333317b66696c6c3a2365656431306102ca8201527f307d2e6333327b66696c6c3a233030653538627d2e6333337b66696c6c3a23306102ea8201527f30646637317d2e6333347b66696c6c3a233030653238307d2e6333357b66696c61030a8201527f6c3a233030636235397d2e6333367b66696c6c3a233030643837347d2e63333761032a8201527f7b66696c6c3a233030643936337d2e6333387b66696c6c3a233030643336637d61034a8201527f2e6333397b66696c6c3a233030646537637d2e6334307b66696c6c3a2365626261036a8201527f3761357d2e6334317b66696c6c3a236533616139367d2e6334327b66696c6c3a61038a8201527f233039343337387d2e6334337b66696c6c3a236331613930307d2e6334347b666103aa8201527f696c6c3a236463633030307d2e6334357b66696c6c3a236661646531317d2e636103ca8201527f34367b66696c6c3a236638646330397d2e6334377b66696c6c3a2330306335656103ea8201527f367d2e6334387b66696c6c3a236463646364637d2e6334397b66696c6c3a236361040a8201527f31663866397d2e6335307b66696c6c3a236232623862397d2e6335317b66696c61042a8201527f6c3a236161623062317d2e6335327b66696c6c3a236230623462357d2e63353361044a8201527f7b66696c6c3a236532613338647d2e6335347b66696c6c3a236562613939327d61046a8201527f2e6335357b66696c6c3a236538623261307d2e6335367b66696c6c3a2366663061048a8201527f3034337d2e6335377b66696c6c3a236636373637627d2e6335387b66696c6c3a6104aa8201527f236337343234397d2e6335397b66696c6c3a236161333433617d2e6336307b666104ca8201527f696c6c3a233430343766667d2e6336317b66696c6c3a233538356566667d2e636104ea8201527f36327b66696c6c3a233464353466667d2e6336337b66696c6c3a23323232626661050a8201527f667d2e6336347b66696c6c3a233364343466667d2e6336357b66696c6c3a233361052a8201527f62343266667d2e6336367b66696c6c3a233332333966667d2e6336377b66696c61054a8201527f6c3a233334336266667d2e6336387b66696c6c3a233432343966667d2e63363961056a8201527f7b66696c6c3a233333333333337d2e6337307b66696c6c3a233232323232327d61058a8201527f2e6337317b66696c6c3a236363636366667d3c2f7374796c653e3c2f7376673e6105aa8201526105ca01949350505050565b60006020828403121561411657600080fd5b815167ffffffffffffffff81111561412d57600080fd5b611d90848285016135d6565b6000825161414b8184602087016130ab565b9190910192915050565b757b226e616d65223a2022426c6f636b436861696e202360501b815283516000906141878160168501602089016130ab565b7f222c20226465736372697074696f6e223a202254686520426c6f636b436861696016918401918201527f6e7320636f6c6c656374696f6e207365727665732061732074686520666972736036820152601d60fa1b605682015272383430b9b29037b3102132b7102130b63632b960691b60578201527f4469642054686520426c6f636b436861696e2e222c22696d616765223a202264606a8201527f6174613a696d6167652f7376672b786d6c3b6261736536342c00000000000000608a820152845161425c8160a38401602089016130ab565b6e11161130ba3a3934b13aba32b9911d60891b60a39290910191820152835161428c8160b28401602088016130ab565b6142a260b282840101607d60f81b815260010190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516142e581601d8501602087016130ab565b91909101601d0192915050565b60008282101561430457614304613513565b500390565b600080835481600182811c91508083168061432557607f831692505b602080841082141561434557634e487b7160e01b86526022600452602486fd5b818015614359576001811461436a57614397565b60ff19861689528489019650614397565b60008a81526020902060005b8681101561438f5781548b820152908501908301614376565b505084890196505b509498975050505050505050565b600060ff821660ff84168160ff04811182151516156143c6576143c6613513565b029392505050565b634e487b7160e01b600052601260045260246000fd5b6000826143f3576143f36143ce565b500490565b600082614407576144076143ce565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600081600019048311821515161561447857614478613513565b500290565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906144b0908301846130d7565b9695505050505050565b6000602082840312156144cc57600080fd5b81516131168161311d565b634e487b7160e01b600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220097f272c6864f6b779ab2257ff5e53d16d3b4e4b6872fd0570b5c018606df16864736f6c63430008090033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102315760003560e01c806370a0823111610130578063b662da94116100b8578063e8c83f141161007c578063e8c83f14146104c4578063e985e9c5146104d7578063f2fde38b14610513578063f906751b14610526578063fde2fcf11461053957600080fd5b8063b662da9414610470578063b88d4fde14610483578063c4ef71c714610496578063c87b56dd146104a9578063e1f3a61a146104bc57600080fd5b80638d2af580116100ff5780638d2af580146104295780638da5cb5b1461043157806395d89b41146104425780639f7314cc1461044a578063a22cb4651461045d57600080fd5b806370a08231146103e8578063715018a6146103fb5780637d72faa41461040357806389ce30741461041657600080fd5b806323b872dd116101be5780634f6ccce7116101825780634f6ccce71461038957806354ffc3a31461039c5780636352211e146103af578063648a63f8146103c257806366e33870146103d557600080fd5b806323b872dd146103275780632f745c591461033a57806332cb6b0c1461034d57806342842e0e14610356578063438b63001461036957600080fd5b8063081812fc11610205578063081812fc146102ab578063095ea7b3146102d657806316c61ccc146102eb57806318160ddd146102ff57806321a16b0c1461030757600080fd5b80625ea3071461023657806301ffc9a71461025f57806304a192201461028257806306fdde03146102a3575b600080fd5b610249610244366004613092565b610542565b6040516102569190613103565b60405180910390f35b61027261026d366004613133565b610639565b6040519015158152602001610256565b610295610290366004613092565b61065e565b604051908152602001610256565b610249610725565b6102be6102b9366004613092565b6107b7565b6040516001600160a01b039091168152602001610256565b6102e96102e4366004613167565b61084c565b005b60115461027290600160a01b900460ff1681565b600854610295565b610295610315366004613092565b6000908152600d602052604090205490565b6102e9610335366004613191565b610962565b610295610348366004613167565b610993565b61029561177081565b6102e9610364366004613191565b610a29565b61037c6103773660046131cd565b610a44565b60405161025691906131e8565b610295610397366004613092565b610ae6565b6102e96103aa36600461322c565b610b79565b6102be6103bd366004613092565b610cd3565b6102e96103d0366004613167565b610d4a565b6102496103e33660046132fb565b610e0e565b6102956103f63660046131cd565b610fed565b6102e9611074565b6102e9610411366004613092565b6110aa565b6102496104243660046132fb565b6110e0565b6102e9611516565b600a546001600160a01b03166102be565b610249611561565b6102e9610458366004613092565b611570565b6102e961046b366004613344565b6116bc565b6102e961047e366004613092565b611781565b6102e9610491366004613380565b611801565b6102e96104a4366004613092565b611833565b6102496104b7366004613092565b611872565b6102956118ff565b6102e96104d23660046131cd565b61197b565b6102726104e53660046133fc565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102e96105213660046131cd565b6119c7565b6102e9610534366004613092565b611a5f565b61029560125481565b6000818152600c60205260408120805460609291906105609061342f565b80601f016020809104026020016040519081016040528092919081815260200182805461058c9061342f565b80156105d95780601f106105ae576101008083540402835291602001916105d9565b820191906000526020600020905b8154815290600101906020018083116105bc57829003601f168201915b505050505090506105e983610cd3565b6001600160a01b031661dead6001600160a01b03161415610633576106118160016007611b16565b604051602001610621919061346a565b60405160208183030381529060405290505b92915050565b60006001600160e01b0319821663780e9d6360e01b1480610633575061063382611be3565b6000610d4e82106106aa5760405162461bcd60e51b81526020600482015260116024820152702727aa2fa3a2a72fa7a722afa1a420a4a760791b60448201526064015b60405180910390fd5b600f5460405162250c9160e51b8152600481018490526001600160a01b03909116906304a192209060240160206040518083038186803b1580156106ed57600080fd5b505afa158015610701573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106339190613493565b6060600080546107349061342f565b80601f01602080910402602001604051908101604052809291908181526020018280546107609061342f565b80156107ad5780601f10610782576101008083540402835291602001916107ad565b820191906000526020600020905b81548152906001019060200180831161079057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108305760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106a1565b506000908152600460205260409020546001600160a01b031690565b600061085782610cd3565b9050806001600160a01b0316836001600160a01b031614156108c55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106a1565b336001600160a01b03821614806108e157506108e181336104e5565b6109535760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106a1565b61095d8383611c33565b505050565b61096c3382611ca1565b6109885760405162461bcd60e51b81526004016106a1906134ac565b61095d838383611d98565b600061099e83610fed565b8210610a005760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016106a1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61095d83838360405180602001604052806000815250611801565b60606000610a5183610fed565b905060008167ffffffffffffffff811115610a6e57610a6e61324e565b604051908082528060200260200182016040528015610a97578160200160208202803683370190505b50905060005b82811015610ade57610aaf8582610993565b828281518110610ac157610ac16134fd565b602090810291909101015280610ad681613529565b915050610a9d565b509392505050565b6000610af160085490565b8210610b545760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016106a1565b60088281548110610b6757610b676134fd565b90600052602060002001549050919050565b601154600160a01b900460ff1615610ba35760405162461bcd60e51b81526004016106a190613544565b610bab6118ff565b610bb58284613564565b14610bf85760405162461bcd60e51b815260206004820152601360248201527224a72b20a624a22fa1a7a6a124a720aa24a7a760691b60448201526064016106a1565b60105460115460405163079cc67960e41b8152336004820152602481018590526001600160a01b03928316929091169082906379cc679090604401600060405180830381600087803b158015610c4d57600080fd5b505af1158015610c61573d6000803e3d6000fd5b505060405163079cc67960e41b8152336004820152602481018690526001600160a01b03841692506379cc67909150604401600060405180830381600087803b158015610cad57600080fd5b505af1158015610cc1573d6000803e3d6000fd5b50505050610ccd611f43565b50505050565b6000818152600260205260408120546001600160a01b0316806106335760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106a1565b600a546001600160a01b03163314610d745760405162461bcd60e51b81526004016106a19061357c565b8060011480610d835750806002145b610dbd5760405162461bcd60e51b815260206004820152600b60248201526a24a72b20a624a22fa3a2a760a91b60448201526064016106a1565b8060011415610de557601080546001600160a01b0319166001600160a01b0384161790555050565b8060021415610e0a57601180546001600160a01b0319166001600160a01b0384161790555b5050565b60608060005b60078160ff161015610f17576000610e45610e408660ff8516610e388660016135b1565b60ff16611b16565b612002565b600f546040516317d84c6960e11b815260ff80861660048301528316602482015291925060009182916001600160a01b031690632fb098d29060440160006040518083038186803b158015610e9957600080fd5b505afa158015610ead573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ed5919081019061361b565b505091509150848183604051602001610ef0939291906136ab565b60405160208183030381529060405294505050508080610f0f90613732565b915050610e14565b506011546040516307f1e56d60e21b81528291610fa3916001600160a01b0390911690631fc795b490610f4e908890600401613103565b60206040518083038186803b158015610f6657600080fd5b505afa158015610f7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9e9190613493565b6120b8565b604051602001610fb4929190613752565b604051602081830303815290604052905080604051602001610fd691906137eb565b604051602081830303815290604052915050919050565b60006001600160a01b0382166110585760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106a1565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331461109e5760405162461bcd60e51b81526004016106a19061357c565b6110a860006121b6565b565b601154600160a01b900460ff16156110d45760405162461bcd60e51b81526004016106a190613544565b6110dd81612208565b50565b6060806060806110ee612fac565b6000611100610e408860066007611b16565b905060ff8116611130576040518060400160405280600681526020016532353936626560d01b8152509250611258565b8060ff1660011415611162576040518060400160405280600681526020016531303434376360d01b8152509250611258565b8060ff1660021415611194576040518060400160405280600681526020016563386663666360d01b8152509250611258565b8060ff16600314156111c657604051806040016040528060068152602001650cce0ccd0ccd60d21b8152509250611258565b8060ff16600414156111f8576040518060400160405280600681526020016566666534626360d01b8152509250611258565b8060ff166005141561122a576040518060400160405280600681526020016564306363666360d01b8152509250611258565b8060ff1660061415611258576040518060400160405280600681526020016565306463646360d01b81525092505b60078160ff16101561128b5782604051602001611275919061381f565b604051602081830303815290604052935061129e565b6040518060200160405280600081525093505b60005b60068160ff1610156114e75760006112c5610e408a60ff8516610e388660016135b1565b600f546040516317d84c6960e11b815260ff80861660048301528316602482015291925060009182916001600160a01b031690632fb098d29060440160006040518083038186803b15801561131957600080fd5b505afa15801561132d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611355919081019061361b565b93509350505060005b818161ffff1610156114d057600061139e8461137b846004613870565b61ffff1661138a856004613870565b61139590600461389a565b61ffff16611b16565b905060006060826000815181106113b7576113b76134fd565b01602001516113c9919060f81c6138c0565b905060006060836001815181106113e2576113e26134fd565b01602001516113f4919060f81c6138c0565b9050898260ff166018811061140b5761140b6134fd565b60200201518160ff1660188110611424576114246134fd565b602002015115611436575050506114be565b8c6114448460026004611b16565b6114508460ff166120b8565b61145c8460ff166120b8565b60405160200161146f94939291906138e3565b6040516020818303038152906040529c5060018a8360ff1660188110611497576114976134fd565b60200201518260ff16601881106114b0576114b06134fd565b911515602090920201525050505b806114c88161398a565b91505061135e565b5050505080806114df90613732565b9150506112a1565b5083856040516020016114fb9291906139ac565b60408051601f19818403018152919052979650505050505050565b600a546001600160a01b031633146115405760405162461bcd60e51b81526004016106a19061357c565b6011805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6060600180546107349061342f565b601154600160a01b900460ff161561159a5760405162461bcd60e51b81526004016106a190613544565b600f54604051625ea30760e01b8152600481018390526001600160a01b0390911690600190600b908390625ea3079060240160006040518083038186803b1580156115e457600080fd5b505afa1580156115f8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116209190810190614104565b60405161162d9190614139565b908152604051908190036020018120805492151560ff19909316929092179091556323b872dd60e01b815233600482015261dead6024820152604481018390526001600160a01b038216906323b872dd906064015b600060405180830381600087803b15801561169c57600080fd5b505af11580156116b0573d6000803e3d6000fd5b50505050610e0a611f43565b6001600160a01b0382163314156117155760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106a1565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b601154600160a01b900460ff16156117ab5760405162461bcd60e51b81526004016106a190613544565b60006117b68261242f565b9050806001600160a01b03166379cc6790336117d06118ff565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401611682565b61180b3383611ca1565b6118275760405162461bcd60e51b81526004016106a1906134ac565b610ccd848484846124a0565b601154600160a01b900460ff161561185d5760405162461bcd60e51b81526004016106a190613544565b61186a3361dead83611d98565b6110dd611f43565b6000818152600260205260409020546060906001600160a01b031661189657600080fd5b60006118a183610542565b90506118ef6118af846120b8565b6118c06118bb846110e0565b6124d3565b6118c984610e0e565b6040516020016118db93929190614155565b6040516020818303038152906040526124d3565b604051602001610fd691906142ad565b601254600090610bb8811161191d57673782dace9d90000091505090565b610bb8811180156119305750610fa08111155b1561194457676f05b59d3b20000091505090565b610fa08111801561195757506113888111155b1561196b5767de0b6b3a7640000091505090565b68014d1120d7b160000091505090565b600a546001600160a01b031633146119a55760405162461bcd60e51b81526004016106a19061357c565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146119f15760405162461bcd60e51b81526004016106a19061357c565b6001600160a01b038116611a565760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a1565b6110dd816121b6565b600a546001600160a01b03163314611a895760405162461bcd60e51b81526004016106a19061357c565b600781601354611a999190613564565b10611ade5760405162461bcd60e51b8152602060048201526015602482015274455843454544535f524553455256455f4d494e545360581b60448201526064016106a1565b60005b81811015610e0a57601360008154611af890613529565b90915550611b04611f43565b80611b0e81613529565b915050611ae1565b6060836000611b2585856142f2565b67ffffffffffffffff811115611b3d57611b3d61324e565b6040519080825280601f01601f191660200182016040528015611b67576020820181803683370190505b509050845b84811015611bd957828181518110611b8657611b866134fd565b01602001516001600160f81b03191682611ba088846142f2565b81518110611bb057611bb06134fd565b60200101906001600160f81b031916908160001a90535080611bd181613529565b915050611b6c565b5095945050505050565b60006001600160e01b031982166380ac58cd60e01b1480611c1457506001600160e01b03198216635b5e139f60e01b145b8061063357506301ffc9a760e01b6001600160e01b0319831614610633565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c6882610cd3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611d1a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106a1565b6000611d2583610cd3565b9050806001600160a01b0316846001600160a01b03161480611d605750836001600160a01b0316611d55846107b7565b6001600160a01b0316145b80611d9057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611dab82610cd3565b6001600160a01b031614611e135760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106a1565b6001600160a01b038216611e755760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106a1565b611e8083838361263b565b611e8b600082611c33565b6001600160a01b0383166000908152600360205260408120805460019290611eb49084906142f2565b90915550506001600160a01b0382166000908152600360205260408120805460019290611ee2908490613564565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61177060125410611f5357600080fd5b323314611f5f57600080fd5b601254611f6c81336126f3565b6000828152600c602090815260409091208251611f8f9391929190910190612fda565b506001600b600c6000848152602001908152602001600020604051611fb49190614309565b9081526040805160209281900383019020805460ff1916931515939093179092556000838152600d9091529081204290556012805491611ff383613529565b91905055506110dd33826129e6565b60008181805b82518160ff161015610ade576030838260ff168151811061202b5761202b6134fd565b016020015160f81c1080159061205e57506039838260ff1681518110612053576120536134fd565b016020015160f81c11155b156120a65761206e600a836143a5565b91506030838260ff1681518110612087576120876134fd565b0160200151612099919060f81c6138c0565b6120a390836135b1565b91505b806120b081613732565b915050612008565b6060816120dc5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561210657806120f081613529565b91506120ff9050600a836143e4565b91506120e0565b60008167ffffffffffffffff8111156121215761212161324e565b6040519080825280601f01601f19166020018201604052801561214b576020820181803683370190505b5090505b8415611d90576121606001836142f2565b915061216d600a866143f8565b612178906030613564565b60f81b81838151811061218d5761218d6134fd565b60200101906001600160f81b031916908160001a9053506121af600a866143e4565b945061214f565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610d4e811061224d5760405162461bcd60e51b81526020600482015260116024820152700a89e968a9cbe9288bea89e9ebe90928e9607b1b60448201526064016106a1565b600f54604051625ea30760e01b8152600481018390526001600160a01b03909116908190625ea3079060240160006040518083038186803b15801561229157600080fd5b505afa1580156122a5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122cd9190810190614104565b6000838152600c6020908152604090912082516122f09391929190910190612fda565b506001600b600c60008581526020019081526020016000206040516123159190614309565b908152604051908190036020018120805492151560ff19909316929092179091556308685ac360e21b8152600481018390526001600160a01b038216906321a16b0c9060240160206040518083038186803b15801561237357600080fd5b505afa158015612387573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123ab9190613493565b6000838152600d60205260409081902091909155516323b872dd60e01b815233600482015261dead6024820152604481018390526001600160a01b038216906323b872dd90606401600060405180830381600087803b15801561240d57600080fd5b505af1158015612421573d6000803e3d6000fd5b50505050610e0a33836129e6565b6000816001141561244b5750506010546001600160a01b031690565b81600214156124655750506011546001600160a01b031690565b60405162461bcd60e51b815260206004820152600b60248201526a24a72b20a624a22fa3a2a760a91b60448201526064016106a1565b919050565b6124ab848484611d98565b6124b784848484612b34565b610ccd5760405162461bcd60e51b81526004016106a19061440c565b60608151600014156124f357505060408051602081019091526000815290565b60006040518060600160405280604081526020016144ee60409139905060006003845160026125229190613564565b61252c91906143e4565b61253790600461445e565b90506000612546826020613564565b67ffffffffffffffff81111561255e5761255e61324e565b6040519080825280601f01601f191660200182016040528015612588576020820181803683370190505b509050818152600183018586518101602084015b818310156125f65760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b9382019390935260040161259c565b60038951066001811461261057600281146126215761262d565b613d3d60f01b60011983015261262d565b603d60f81b6000198301525b509398975050505050505050565b6001600160a01b0383166126965761269181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6126b9565b816001600160a01b0316836001600160a01b0316146126b9576126b98382612c41565b6001600160a01b0382166126d05761095d81612cde565b826001600160a01b0316826001600160a01b03161461095d5761095d8282612d8d565b600e8054606091600061270583613529565b9091555050604080516007808252818301909252600091602082018180368337019050509050603060f81b81600081518110612743576127436134fd565b60200101906001600160f81b031916908160001a90535060005b60048110156129af57600e546040805142602080830191909152448284015260608083018a905288901b6bffffffffffffffffffffffff191660808301526094820185905260b4808301949094528251808303909401845260d4909101909152815191012060005b60048110156129a5576127db6102588306612dd1565b60300160f81b846001815181106127f4576127f46134fd565b60200101906001600160f81b031916908160001a9053506102588204915061281f6102588306612e1c565b60300160f81b84600281518110612838576128386134fd565b60200101906001600160f81b031916908160001a905350610258820491506128636102588306612ea1565b60300160f81b8460038151811061287c5761287c6134fd565b60200101906001600160f81b031916908160001a905350610258820491506128a76102588306612f16565b60300160f81b846004815181106128c0576128c06134fd565b60200101906001600160f81b031916908160001a905350610258820491506128ec610258835b06612f6a565b60300160f81b84600581518110612905576129056134fd565b60200101906001600160f81b031916908160001a9053506102588204915061292f610258836128e6565b60300160f81b84600681518110612948576129486134fd565b60200101906001600160f81b031916908160001a9053506040518490600b90612972908390614139565b9081526040519081900360200190205460ff166129955794506106339350505050565b61025883049250506001016127c5565b505060010161275d565b50603460f81b816006815181106129c8576129c86134fd565b60200101906001600160f81b031916908160001a9053509392505050565b6001600160a01b038216612a3c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106a1565b6000818152600260205260409020546001600160a01b031615612aa15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106a1565b612aad6000838361263b565b6001600160a01b0382166000908152600360205260408120805460019290612ad6908490613564565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15612c3657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612b7890339089908890889060040161447d565b602060405180830381600087803b158015612b9257600080fd5b505af1925050508015612bc2575060408051601f3d908101601f19168201909252612bbf918101906144ba565b60015b612c1c573d808015612bf0576040519150601f19603f3d011682016040523d82523d6000602084013e612bf5565b606091505b508051612c145760405162461bcd60e51b81526004016106a19061440c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d90565b506001949350505050565b60006001612c4e84610fed565b612c5891906142f2565b600083815260076020526040902054909150808214612cab576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612cf0906001906142f2565b60008381526009602052604081205460088054939450909284908110612d1857612d186134fd565b906000526020600020015490508060088381548110612d3957612d396134fd565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612d7157612d716144d7565b6001900381819060005260206000200160009055905550505050565b6000612d9883610fed565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b600061014a8210612de457506004919050565b60968210612df457506003919050565b601e8210612e0457506002919050565b60038210612e1457506001919050565b506000919050565b60006101f88210612e2f57506009919050565b61019e8210612e4057506008919050565b61014a8210612e5157506007919050565b60fc8210612e6157506006919050565b60b48210612e7157506005919050565b60728210612e8157506004919050565b60368210612e9157506003919050565b60098210612e0457506002919050565b60006101d78210612eb457506009919050565b6101748210612ec557506008919050565b61011d8210612ed657506007919050565b60cf8210612ee657506006919050565b60878210612ef657506005919050565b60458210612f0657506004919050565b60158210612e9157506003919050565b60006101ce8210612f2957506007919050565b6101508210612f3a57506006919050565b60de8210612f4a57506005919050565b60788210612f5a57506004919050565b60218210612e9157506003919050565b6000605d8210612f7c57506007919050565b603f8210612f8c57506006919050565b602d8210612f9c57506005919050565b60218210612f0657506004919050565b6040518061030001604052806018905b612fc461305e565b815260200190600190039081612fbc5790505090565b828054612fe69061342f565b90600052602060002090601f016020900481019282613008576000855561304e565b82601f1061302157805160ff191683800117855561304e565b8280016001018555821561304e579182015b8281111561304e578251825591602001919060010190613033565b5061305a92915061307d565b5090565b6040518061030001604052806018906020820280368337509192915050565b5b8082111561305a576000815560010161307e565b6000602082840312156130a457600080fd5b5035919050565b60005b838110156130c65781810151838201526020016130ae565b83811115610ccd5750506000910152565b600081518084526130ef8160208601602086016130ab565b601f01601f19169290920160200192915050565b60208152600061311660208301846130d7565b9392505050565b6001600160e01b0319811681146110dd57600080fd5b60006020828403121561314557600080fd5b81356131168161311d565b80356001600160a01b038116811461249b57600080fd5b6000806040838503121561317a57600080fd5b61318383613150565b946020939093013593505050565b6000806000606084860312156131a657600080fd5b6131af84613150565b92506131bd60208501613150565b9150604084013590509250925092565b6000602082840312156131df57600080fd5b61311682613150565b6020808252825182820181905260009190848201906040850190845b8181101561322057835183529284019291840191600101613204565b50909695505050505050565b6000806040838503121561323f57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561328d5761328d61324e565b604052919050565b600067ffffffffffffffff8211156132af576132af61324e565b50601f01601f191660200190565b60006132d06132cb84613295565b613264565b90508281528383830111156132e457600080fd5b828260208301376000602084830101529392505050565b60006020828403121561330d57600080fd5b813567ffffffffffffffff81111561332457600080fd5b8201601f8101841361333557600080fd5b611d90848235602084016132bd565b6000806040838503121561335757600080fd5b61336083613150565b91506020830135801515811461337557600080fd5b809150509250929050565b6000806000806080858703121561339657600080fd5b61339f85613150565b93506133ad60208601613150565b925060408501359150606085013567ffffffffffffffff8111156133d057600080fd5b8501601f810187136133e157600080fd5b6133f0878235602084016132bd565b91505092959194509250565b6000806040838503121561340f57600080fd5b61341883613150565b915061342660208401613150565b90509250929050565b600181811c9082168061344357607f821691505b6020821081141561346457634e487b7160e01b600052602260045260246000fd5b50919050565b603160f81b8152600082516134868160018501602087016130ab565b9190910160010192915050565b6000602082840312156134a557600080fd5b5051919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561353d5761353d613513565b5060010190565b60208082526006908201526514105554d15160d21b604082015260600190565b6000821982111561357757613577613513565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060ff821660ff84168060ff038211156135ce576135ce613513565b019392505050565b600082601f8301126135e757600080fd5b81516135f56132cb82613295565b81815284602083860101111561360a57600080fd5b611d908260208301602087016130ab565b6000806000806080858703121561363157600080fd5b845167ffffffffffffffff8082111561364957600080fd5b613655888389016135d6565b9550602087015191508082111561366b57600080fd5b613677888389016135d6565b9450604087015191508082111561368d57600080fd5b5061369a878288016135d6565b606096909601519497939650505050565b600084516136bd8184602089016130ab565b6e3d913a3930b4ba2fba3cb832911d1160891b90830190815284516136e981600f8401602089016130ab565b6a1116113b30b63ab2911d1160a91b600f9290910191820152835161371581601a8401602088016130ab565b62089f4b60ea1b601a9290910191820152601d0195945050505050565b600060ff821660ff81141561374957613749613513565b60010192915050565b600083516137648184602088016130ab565b80830190507f7b22646973706c61795f74797065223a2022626f6f73745f6e756d626572222c81527f202274726169745f74797065223a2022424220426f6f7374222c202276616c7560208201526232911d60e91b604082015283516137d18160438401602088016130ab565b607d60f81b60439290910191820152604401949350505050565b605b60f81b8152600082516138078160018501602087016130ab565b605d60f81b6001939091019283015250600201919050565b7f7374796c653d226261636b67726f756e642d636f6c6f723a23000000000000008152600082516138578160198501602087016130ab565b61011160f51b6019939091019283015250601b01919050565b600061ffff8083168185168183048111821515161561389157613891613513565b02949350505050565b600061ffff8083168185168083038211156138b7576138b7613513565b01949350505050565b600060ff821660ff8416808210156138da576138da613513565b90039392505050565b600085516138f5818460208a016130ab565b6d3c7265637420636c6173733d276360901b908301908152855161392081600e840160208a016130ab565b642720783d2760d81b600e929091019182015284516139468160138401602089016130ab565b642720793d2760d81b60139290910191820152835161396c8160188401602088016130ab565b6213979f60e91b60189290910191820152601b019695505050505050565b600061ffff808316818114156139a2576139a2613513565b6001019392505050565b7f3c7376672069643d22632220786d6c6e733d22687474703a2f2f7777772e773381526e01737b933979918181817b9bb33911608d1b60208201527f7072657365727665417370656374526174696f3d22784d696e594d696e206d65602f8201527f6574222076696577426f783d2230203020323620323622200000000000000000604f82015260008351613a488160678501602088016130ab565b620101f160ed1b6067918401918201528351613a6b81606a8401602088016130ab565b7f3c7374796c653e726563747b77696474683a3170783b6865696768743a317078606a92909101918201527f3b7d23637b73686170652d72656e646572696e673a2063726973706564676573608a8201527f3b7d2e6330307b66696c6c3a236438343463667d2e6330317b66696c6c3a236660aa8201527f31663166317d2e6330327b66696c6c3a236666346235347d2e6330337b66696c60ca8201527f6c3a236666366237317d2e6330347b66696c6c3a236666356336347d2e63303560ea8201527f7b66696c6c3a236666313332667d2e6330367b66696c6c3a236666343635317d61010a8201527f2e6330377b66696c6c3a236666343434667d2e6330387b66696c6c3a2366663361012a8201527f3634347d2e6330397b66696c6c3a236666333534337d2e6331307b66696c6c3a61014a8201527f236666333834357d2e6331317b66696c6c3a236666346435377d2e6331327b6661016a8201527f696c6c3a236331343666627d2e6331337b66696c6c3a233333336166667d2e6361018a8201527f31347b66696c6c3a236332646566637d2e6331357b66696c6c3a2365616634666101aa8201527f667d2e6331367b66696c6c3a236533656566617d2e6331377b66696c6c3a23636101ca8201527f66653466617d2e6331387b66696c6c3a236236316666637d2e6331397b66696c6101ea8201527f6c3a236266343266627d2e6332307b66696c6c3a236263333566627d2e63323161020a8201527f7b66696c6c3a236264333666627d2e6332327b66696c6c3a236665653462667d61022a8201527f2e6332337b66696c6c3a236666383830307d2e6332347b66696c6c3a2366666461024a8201527f3330307d2e6332357b66696c6c3a236666633230307d2e6332367b66696c6c3a61026a8201527f236666396130307d2e6332377b66696c6c3a236666623130307d2e6332387b6661028a8201527f696c6c3a236666613030307d2e6332397b66696c6c3a236636643930307d2e636102aa8201527f33307b66696c6c3a236630636530307d2e6333317b66696c6c3a2365656431306102ca8201527f307d2e6333327b66696c6c3a233030653538627d2e6333337b66696c6c3a23306102ea8201527f30646637317d2e6333347b66696c6c3a233030653238307d2e6333357b66696c61030a8201527f6c3a233030636235397d2e6333367b66696c6c3a233030643837347d2e63333761032a8201527f7b66696c6c3a233030643936337d2e6333387b66696c6c3a233030643336637d61034a8201527f2e6333397b66696c6c3a233030646537637d2e6334307b66696c6c3a2365626261036a8201527f3761357d2e6334317b66696c6c3a236533616139367d2e6334327b66696c6c3a61038a8201527f233039343337387d2e6334337b66696c6c3a236331613930307d2e6334347b666103aa8201527f696c6c3a236463633030307d2e6334357b66696c6c3a236661646531317d2e636103ca8201527f34367b66696c6c3a236638646330397d2e6334377b66696c6c3a2330306335656103ea8201527f367d2e6334387b66696c6c3a236463646364637d2e6334397b66696c6c3a236361040a8201527f31663866397d2e6335307b66696c6c3a236232623862397d2e6335317b66696c61042a8201527f6c3a236161623062317d2e6335327b66696c6c3a236230623462357d2e63353361044a8201527f7b66696c6c3a236532613338647d2e6335347b66696c6c3a236562613939327d61046a8201527f2e6335357b66696c6c3a236538623261307d2e6335367b66696c6c3a2366663061048a8201527f3034337d2e6335377b66696c6c3a236636373637627d2e6335387b66696c6c3a6104aa8201527f236337343234397d2e6335397b66696c6c3a236161333433617d2e6336307b666104ca8201527f696c6c3a233430343766667d2e6336317b66696c6c3a233538356566667d2e636104ea8201527f36327b66696c6c3a233464353466667d2e6336337b66696c6c3a23323232626661050a8201527f667d2e6336347b66696c6c3a233364343466667d2e6336357b66696c6c3a233361052a8201527f62343266667d2e6336367b66696c6c3a233332333966667d2e6336377b66696c61054a8201527f6c3a233334336266667d2e6336387b66696c6c3a233432343966667d2e63363961056a8201527f7b66696c6c3a233333333333337d2e6337307b66696c6c3a233232323232327d61058a8201527f2e6337317b66696c6c3a236363636366667d3c2f7374796c653e3c2f7376673e6105aa8201526105ca01949350505050565b60006020828403121561411657600080fd5b815167ffffffffffffffff81111561412d57600080fd5b611d90848285016135d6565b6000825161414b8184602087016130ab565b9190910192915050565b757b226e616d65223a2022426c6f636b436861696e202360501b815283516000906141878160168501602089016130ab565b7f222c20226465736372697074696f6e223a202254686520426c6f636b436861696016918401918201527f6e7320636f6c6c656374696f6e207365727665732061732074686520666972736036820152601d60fa1b605682015272383430b9b29037b3102132b7102130b63632b960691b60578201527f4469642054686520426c6f636b436861696e2e222c22696d616765223a202264606a8201527f6174613a696d6167652f7376672b786d6c3b6261736536342c00000000000000608a820152845161425c8160a38401602089016130ab565b6e11161130ba3a3934b13aba32b9911d60891b60a39290910191820152835161428c8160b28401602088016130ab565b6142a260b282840101607d60f81b815260010190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516142e581601d8501602087016130ab565b91909101601d0192915050565b60008282101561430457614304613513565b500390565b600080835481600182811c91508083168061432557607f831692505b602080841082141561434557634e487b7160e01b86526022600452602486fd5b818015614359576001811461436a57614397565b60ff19861689528489019650614397565b60008a81526020902060005b8681101561438f5781548b820152908501908301614376565b505084890196505b509498975050505050505050565b600060ff821660ff84168160ff04811182151516156143c6576143c6613513565b029392505050565b634e487b7160e01b600052601260045260246000fd5b6000826143f3576143f36143ce565b500490565b600082614407576144076143ce565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600081600019048311821515161561447857614478613513565b500290565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906144b0908301846130d7565b9695505050505050565b6000602082840312156144cc57600080fd5b81516131168161311d565b634e487b7160e01b600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220097f272c6864f6b779ab2257ff5e53d16d3b4e4b6872fd0570b5c018606df16864736f6c63430008090033

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.