ETH Price: $2,472.85 (+0.97%)
 

Overview

Max Total Supply

3,999 TNP

Holders

1,515

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 TNP
0x2D584570b646401310Bedf2ed3034B870F0174d4
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Tiny Planets is a collection of 4000 planets, 182 animated, 3818 non animated. Each planet has a unique design, and has 7 properties, Ring and Gas planets are more rare than the rest. Get to own your planets, name them, and give them a lore in their description! Real Time str...

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
TinyPlanet

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 10 : TinyPlanet.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "erc721a/contracts/ERC721A.sol";
import "./base64.sol";

contract TinyPlanet is Ownable, ERC721A, ReentrancyGuard
{
    using SafeMath for uint256;
    using ECDSA for bytes32;

    uint256 constant MAX_TOTAL_TEAM_MINT = 40;
    uint256 constant COLLECTION_SIZE = 4000;
    uint256 constant ANIMATED_PRICE = 0.03 ether;

    uint256 private _tokenCounter = 0;
    uint256 private _devTokenCount = 0;
    uint256 private _animatedMintCount = 0;
    uint256 private _mintSeed = 1;
    address private _signerAddressWhitelist;
    address private _signerAddressFree;
    address private _TinyPlanetsWallet;

    string private _baseTokenURI = "ipfs://Qmca3gdrctHG6rDMwuSxF28LBnpBhAGbDvTwUwQPjqT6rA";

    bool private _isRevealed = false;
    bool private _isPaused = true;
    bool private _isUpdatable = false;
    bool private _isPresale = false;
    bool private _isPublicPhase = false;
    bool private _isAnimatedPhase = false;

    struct Planet
    {
        uint256 seed;
        uint8[2] properties;
        string name;
        string desc;
    }

    string[] LifeConditions = ["Hostile", "Harsh", "Livable", "Good", "Peaceful"];
    string[] MetalsGasOrganic = ["None", "Scarce", "Normal", "Good Quantity", "Abundant"];
    string[] BuildingDifficulty = ["Very difficult", "Uneven Terrain", "Normal Terrain", "Good Terrain", "Even Terrain"];
    string[] PlanetTypes = ["Rocky", "Gas", "Special"];
    string[] RingedPlanet = ["No", "Yes"];

    constructor() ERC721A("TinyPlanet", "TNP"){}

    mapping (address => uint256) private presaleMintList;
    mapping (address => uint256) private quantityMinted;
    mapping (uint256 => uint256) private extensionID;
    mapping (uint256 => Planet) private planetsData;

    modifier checkPause()
    {
        require(_isPaused == false, "Mint Phase is paused");
        _;
    }

    function verifyOGWhitelist(bytes memory _signature) internal view returns (uint256)
    {
        if(_signature.length == 0)
            return 0;

        if(_signerAddressFree == keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", bytes32(uint256(uint160(msg.sender))))).recover(_signature))
            return 1;
        else if(_signerAddressWhitelist == keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", bytes32(uint256(uint160(msg.sender))))).recover(_signature))
            return 2;
        else
            return 0;
    }

    function buyAnimatedPlanet(bytes memory _signature, uint256 _count) external payable nonReentrant checkPause
    {
        require(_isPresale == true, "Presale isn't active");
        require(_isAnimatedPhase == true, "Animated phase is off");
        require(_isPublicPhase == false, "Public sale is active");
        uint256 signedResult = verifyOGWhitelist(_signature);
        require(signedResult > 0, "You are Unauthorized");
        require(_count > 0, "You must mint at least 1 NFT");
        require(_tokenCounter + _count < 1000, "Max animated supply has been reached");
        require(msg.value == ANIMATED_PRICE * _count, "Incorrect Price");

        if(signedResult == 1)
        {
            require(presaleMintList[msg.sender] + _count <= 3, "Minting more than allowed!");
        }
        else if(signedResult == 2)
        {
            require(presaleMintList[msg.sender] + _count <= 2, "Minting more than allowed");
        }

        presaleMintList[msg.sender] += _count;
        _animatedMintCount += _count;
        for(uint i = 0; i < _count; i++)
        {
            generatePlanetData(_signature, _tokenCounter);
            _tokenCounter++;
        }
        _safeMint(msg.sender, _count);

    }

    function devMint(uint256 _count) external onlyOwner
    {
        require(_tokenCounter + _count < COLLECTION_SIZE, "Mint exceeds supply");
        require(_devTokenCount + _count < MAX_TOTAL_TEAM_MINT, "Exceeds max supply allowed for community wallet");

        if(_isAnimatedPhase)
        {
            require(_tokenCounter + _count < 1000, "Mint exceeds animated supply");
            _animatedMintCount += _count;
        }
        
        for(uint i = 0; i < _count; i++)
        {
            generatePlanetData(abi.encodePacked(msg.sender, _mintSeed, _tokenCounter, block.difficulty, i + 1, block.number), _tokenCounter);
            _tokenCounter++;
            _devTokenCount++;
        }
        _safeMint(msg.sender, _count);
    }

    //_signature being 0x for public sale people.
    function buyPlanet(bytes memory _signature, uint256 _count) external payable checkPause
    {
        if(_isPresale == true)
        {
            uint256 signedResult = verifyOGWhitelist(_signature);
            require(_isAnimatedPhase == false, "wrong presale");
            require(signedResult > 0, "You are not yet authorized to mint!");
        }
        else
        {
            require(_isPublicPhase == true, "Public sale isn't active");    
        }

        require(_count > 0, "You must mint at least 1 NFT");
        require(_count <= 2, "Too many NFTs");
        require(_tokenCounter + _count < COLLECTION_SIZE, "Mint exceeds supply");
        require(quantityMinted[msg.sender] + _count <= 2, "Minting more than allowed");

        quantityMinted[msg.sender] += _count;
        for(uint i = 0; i < _count; i++)
        {
            generatePlanetData(abi.encodePacked(msg.sender, _mintSeed, _tokenCounter, block.difficulty, i, block.number), _tokenCounter);
            _tokenCounter++;
        }
        _safeMint(msg.sender, _count);
    }
    
    function changePlanetName(uint256 _tokenID, string memory _newName) external
    {
        require(msg.sender == ownerOf(_tokenID), "You are not owner of this token");
        require(_isUpdatable == true, "Feature not available yet");
        planetsData[_tokenID].name = _newName;
    }

    function changePlanetDesc(uint256 _tokenID, string memory _newDesc) external
    {
        require(msg.sender == ownerOf(_tokenID), "You are not owner of this token");
        require(_isUpdatable == true, "Feature not available yet");
        planetsData[_tokenID].desc = _newDesc;
    }

    function setWallet(address _addr) external onlyOwner
    {
        _TinyPlanetsWallet = _addr;
    }

    function withdraw() external onlyOwner nonReentrant
    {
        uint256 balance = address(this).balance;
        payable(_TinyPlanetsWallet).transfer(balance);
    }

    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory)
    {
        string memory data = "";
        if(_isRevealed)
        {
            string memory image = string(abi.encodePacked(_baseTokenURI, '/', uint2str(_tokenId), _tokenId > (_animatedMintCount - 1) ? '.png' : '.mp4'));
            bytes memory data1 = abi.encodePacked('{ "description": "', planetsData[_tokenId].desc, '",', 
                                            ' "image": "', image, '",',
                                            ' "name": "', planetsData[_tokenId].name, '", "attributes": [',
                                            '{ "trait_type": "Life Conditions", "value": "', LifeConditions[getPercentage(planetsData[_tokenId].seed % 100)] ,'" }, ',
                                            '{ "trait_type": "Metal Resources", "value": "', MetalsGasOrganic[getPercentage((planetsData[_tokenId].seed / 100) % 100)] ,'" }, ',
                                            '{ "trait_type": "Gas Resources", "value": "', MetalsGasOrganic[getPercentage((planetsData[_tokenId].seed / 10000) % 100)] ,'" }, ');
            bytes memory data2 = abi.encodePacked(
                                            '{ "trait_type": "Organic Resources", "value": "', MetalsGasOrganic[getPercentage((planetsData[_tokenId].seed / 1000000) % 100)] ,'" }, ',
                                            '{ "trait_type": "Building Difficulty", "value": "', BuildingDifficulty[getPercentage((planetsData[_tokenId].seed / 100000000) % 100)] ,'" }, ',
                                            '{ "trait_type": "Ringed Planet", "value": "', RingedPlanet[planetsData[_tokenId].properties[0]] ,'" }, ',
                                            '{ "trait_type": "Planet Type", "value": "', PlanetTypes[planetsData[_tokenId].properties[1]] ,'" }, ',
                                            '{ "trait_type": "Animated", "value": "', _tokenId > (_animatedMintCount - 1) ? "No" : "Yes" ,'" } ',
                                            ']}');

            data = string(bytes.concat(data1, data2));
        }
        else
        {
            data =  string(abi.encodePacked('{ "description": "One of the 4000 procedurally generated Tiny Planets, with millions of possibilities regarding colors, shapes, clouds, ocean, and much more!",', 
                                            ' "image": "', _baseTokenURI, '",',
                                            ' "name": "Tiny Planet #', uint2str(_tokenId), '", "attributes": [',
                                            '{ "trait_type": "Animated", "value": "', _tokenId > (_animatedMintCount - 1) ? "No" : "Yes" ,'" } ',
                                            ']}'));
        }
        return string(abi.encodePacked("data:application/json;base64,", Base64.encode(bytes(abi.encodePacked(data)))));

    }

    function uint2str(uint _i) internal pure returns (string memory _uintAsString) {
        if (_i == 0) {
            return "0";
        }
        uint j = _i;
        uint len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len;
        while (_i != 0) {
            k = k-1;
            uint8 temp = (48 + uint8(_i - _i / 10 * 10));
            bytes1 b1 = bytes1(temp);
            bstr[k] = b1;
            _i /= 10;
        }
        return string(bstr);
    }

    function getrandomSeed(bytes memory _offset, uint256 _expo) internal view returns (uint256)
    {
        return uint(keccak256(abi.encodePacked(msg.sender, block.difficulty, block.number, _offset, _tokenCounter, _expo)));
    }

    function generatePlanetData(bytes memory _offset, uint256 _id) internal
    {
        planetsData[_id].seed = getrandomSeed(_offset, _id);
        planetsData[_id].properties[0] = 0;
        planetsData[_id].properties[1] = 0;
        planetsData[_id].name = string(abi.encodePacked('Tiny Planet #', uint2str(_tokenCounter)));
    }

    function getPercentage(uint256 _input) internal pure returns (uint8 result)
    {
        if(_input < 10)
            return 4;
        else if(_input < 20)
            return 3;
        else if(_input < 70)
            return 2;
        else if(_input < 90)
            return 1;
        else if(_input < 100)
            return 0;

    }

    function updateMintSeed(uint256 _seed) external onlyOwner
    {
        _mintSeed = _seed;
    }

    function updatePlanetTypes(uint256[] memory _tokens, uint8 _id) external onlyOwner
    {
        for(uint i = 0; i < _tokens.length; i++)
        {
            planetsData[_tokens[i]].properties[1] = _id;
        }
    }

    function updatePlanetRings(uint256[] memory _tokens, uint8  _id) external onlyOwner
    {
        for(uint i = 0; i < _tokens.length; i++)
        {
            planetsData[_tokens[i]].properties[0] = _id;
        }
    }

    function updateUnique(uint256 _tokenId, uint256 seed) external onlyOwner
    {
        planetsData[_tokenId].seed = seed;
    }

        function setSignerAddresses(address _signerWhitelist, address _signerFree) external onlyOwner
    {
        _signerAddressWhitelist = _signerWhitelist;
        _signerAddressFree = _signerFree;
    }

    function setPause() external onlyOwner
    {
        _isPaused = !_isPaused;
    }

    function getPause() external view returns(bool)
    {
        return _isPaused;
    }

    function activateAnimatedPhase() external onlyOwner
    {
        _isPresale = true;
        _isAnimatedPhase = true;
    }

    function getAnimatedState() external view returns(bool)
    {
        return _isAnimatedPhase;
    }

    function activatePresale() external onlyOwner
    {
        _isAnimatedPhase = false;
    }

    function getPresaleState() external view returns(bool)
    {
        return _isPresale;
    }

    function activatePublicSale() external onlyOwner
    {
        _isPresale = false;
        _isPublicPhase = true;
    }

    function getPublicState() external view returns(bool)
    {
        return _isPublicPhase;
    }

    function toggleOffAllSales() external onlyOwner
    {
        _isPresale = false;
        _isAnimatedPhase = false;
        _isPublicPhase = false;
    }

    function toggleUpdateFeature() external onlyOwner
    {
        _isUpdatable = !_isUpdatable;
    }

    function getUpdatableState() external view returns(bool)
    {
        return _isUpdatable;
    }

    function toggleReveal() external onlyOwner
    {
        _isRevealed = true;
    }
    function changeBaseURI(string memory _newBaseURI) external onlyOwner
    {
        _baseTokenURI = _newBaseURI;
    }

    function mintedQuantityOf(address user) external view returns (uint256)
    {
        return quantityMinted[user];
    }
    
}

File 2 of 10 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

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

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

        // 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) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, 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;
    }
}

File 3 of 10 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev ERC721 token receiver interface.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard,
 * including the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at `_startTokenId()`
 * (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Mask of an entry in packed address data.
    uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with `_mintERC2309`.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309`
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The tokenId of the next token to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see `_totalMinted`.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to `_startTokenId()`
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
        ownership.burned = packed & BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA);
    }

    /**
     * Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, BITMASK_ADDRESS)
            // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`.
            result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), 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-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 {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     *   {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 tokenId = startTokenId;
            uint256 end = startTokenId + quantity;
            do {
                emit Transfer(address(0), to, tokenId++);
            } while (tokenId < end);

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals;
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
        assembly {
            // Compute the slot.
            mstore(0x00, tokenId)
            mstore(0x20, tokenApprovalsPtr.slot)
            approvedAddressSlot := keccak256(0x00, 0x40)
            // Load the slot's value from storage.
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    /**
     * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`.
     */
    function _isOwnerOrApproved(
        address approvedAddress,
        address from,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
            from := and(from, BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, BITMASK_ADDRESS)
            // `msgSender == from || msgSender == approvedAddress`.
            result := or(eq(msgSender, from), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred.
     * This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred.
     * This includes minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function _toString(uint256 value) internal pure returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

            // Cache the end of the memory to calculate the length later.
            let end := ptr

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for {
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp {
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } {
                // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }

            let length := sub(end, ptr)
            // Move the pointer 32 bytes leftwards to make room for the length.
            ptr := sub(ptr, 32)
            // Store the length.
            mstore(ptr, length)
        }
    }
}

File 4 of 10 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 5 of 10 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 8 of 10 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`.
        uint24 extraData;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

    // ==============================
    //            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);

    // ==============================
    //            IERC721
    // ==============================

    /**
     * @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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);

    // ==============================
    //        IERC721Metadata
    // ==============================

    /**
     * @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);

    // ==============================
    //            IERC2309
    // ==============================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`,
     * as defined in the ERC2309 standard. See `_mintERC2309` for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 9 of 10 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @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);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":"activateAnimatedPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"activatePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"activatePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"buyAnimatedPlanet","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"buyPlanet","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"changeBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"string","name":"_newDesc","type":"string"}],"name":"changePlanetDesc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"string","name":"_newName","type":"string"}],"name":"changePlanetName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAnimatedState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPresaleState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUpdatableState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"mintedQuantityOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signerWhitelist","type":"address"},{"internalType":"address","name":"_signerFree","type":"address"}],"name":"setSignerAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setWallet","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":"toggleOffAllSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleUpdateFeature","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_seed","type":"uint256"}],"name":"updateMintSeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokens","type":"uint256[]"},{"internalType":"uint8","name":"_id","type":"uint8"}],"name":"updatePlanetRings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokens","type":"uint256[]"},{"internalType":"uint8","name":"_id","type":"uint8"}],"name":"updatePlanetTypes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"updateUnique","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6000600a819055600b819055600c556001600d5560e06040526035608081815290620045e160a0396011906200003690826200067b565b506012805465ffffffffffff19166101001790556040805160e081018252600760a0820181815266486f7374696c6560c81b60c0840152825282518084018452600580825264090c2e4e6d60db1b6020838101919091528085019290925284518086018652928352664c697661626c6560c81b838301528385019290925283518085018552600481526311dbdbd960e21b8183015260608401528351808501909452600884526714195858d9599d5b60c21b90840152608082019290925262000103916013919062000469565b506040805160e081018252600460a08201908152634e6f6e6560e01b60c083015281528151808301835260068082526553636172636560d01b602083810191909152808401929092528351808501855290815265139bdc9b585b60d21b818301528284015282518084018452600d81526c476f6f64205175616e7469747960981b8183015260608301528251808401909352600883526710589d5b99185b9d60c21b908301526080810191909152620001c190601490600562000469565b506040518060a001604052806040518060400160405280600e81526020016d15995c9e48191a59999a58dd5b1d60921b81525081526020016040518060400160405280600e81526020016d2ab732bb32b7102a32b93930b4b760911b81525081526020016040518060400160405280600e81526020016d2737b936b0b6102a32b93930b4b760911b81525081526020016040518060400160405280600c81526020016b23b7b7b2102a32b93930b4b760a11b81525081526020016040518060400160405280600c81526020016b22bb32b7102a32b93930b4b760a11b8152508152506015906005620002b592919062000469565b506040805160a08101825260056060820190815264526f636b7960d81b608083015281528151808301835260038082526247617360e81b6020838101919091528084019290925283518085018552600781526614dc1958da585b60ca1b92810192909252928201526200032c9160169190620004c6565b50604080516080810182526002818301818152614e6f60f01b606084015282528251808401909352600383526259657360e81b6020848101919091528201929092526200037d916017919062000511565b503480156200038b57600080fd5b506040518060400160405280600a815260200169151a5b9e541b185b995d60b21b815250604051806040016040528060038152602001620544e560ec1b815250620003e5620003df6200041560201b60201c565b62000419565b6003620003f383826200067b565b5060046200040282826200067b565b5050600060019081556009555062000747565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054828255906000526020600020908101928215620004b4579160200282015b82811115620004b45782518290620004a390826200067b565b50916020019190600101906200048a565b50620004c29291506200055c565b5090565b828054828255906000526020600020908101928215620004b4579160200282015b82811115620004b457825182906200050090826200067b565b5091602001919060010190620004e7565b828054828255906000526020600020908101928215620004b4579160200282015b82811115620004b457825182906200054b90826200067b565b509160200191906001019062000532565b80821115620004c25760006200057382826200057d565b506001016200055c565b5080546200058b90620005ec565b6000825580601f106200059c575050565b601f016020900490600052602060002090810190620005bc9190620005bf565b50565b5b80821115620004c25760008155600101620005c0565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200060157607f821691505b6020821081036200062257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200067657600081815260208120601f850160051c81016020861015620006515750805b601f850160051c820191505b8181101562000672578281556001016200065d565b5050505b505050565b81516001600160401b03811115620006975762000697620005d6565b620006af81620006a88454620005ec565b8462000628565b602080601f831160018114620006e75760008415620006ce5750858301515b600019600386901b1c1916600185901b17855562000672565b600085815260208120601f198616915b828110156200071857888601518255948401946001909101908401620006f7565b5085821015620007375787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b613e8a80620007576000396000f3fe6080604052600436106102dc5760003560e01c806370a0823111610184578063b68e8c91116100d6578063cdb8f25c1161008a578063e985e9c511610064578063e985e9c5146107a9578063ebab1577146107f2578063f2fde38b1461080557600080fd5b8063cdb8f25c14610754578063d431b1ac14610774578063deaa59df1461078957600080fd5b8063bf49852b116100bb578063bf49852b146106f4578063c81fdde514610714578063c87b56dd1461073457600080fd5b8063b68e8c91146106bf578063b88d4fde146106d457600080fd5b806389c8ea2d1161013857806399cfa4261161011257806399cfa42614610661578063a22cb4651461067f578063ae3d3a251461069f57600080fd5b806389c8ea2d1461060d5780638da5cb5b1461062e57806395d89b411461064c57600080fd5b8063802075b511610169578063802075b5146105985780638389d7d3146105ce57806383b21536146105ee57600080fd5b806370a0823114610563578063715018a61461058357600080fd5b8063375a069a1161023d5780635828bc49116101f15780635b8ad429116101cb5780635b8ad4291461050e5780635e422700146105235780636352211e1461054357600080fd5b80635828bc49146104bb57806359000406146104db578063590df5e1146104fb57600080fd5b80633ccfd60b116102225780633ccfd60b146104695780633e3ca9d31461047e57806342842e0e1461049b57600080fd5b8063375a069a1461042957806339a0c6f91461044957600080fd5b806313640de811610294578063185f6fb211610279578063185f6fb2146103df57806321651854146103f457806323b872dd1461040957600080fd5b806313640de8146103a757806318160ddd146103bc57600080fd5b8063081812fc116102c5578063081812fc14610338578063095ea7b31461037057806311eb30471461039257600080fd5b806301ffc9a7146102e157806306fdde0314610316575b600080fd5b3480156102ed57600080fd5b506103016102fc366004612f78565b610825565b60405190151581526020015b60405180910390f35b34801561032257600080fd5b5061032b6108c2565b60405161030d9190612fed565b34801561034457600080fd5b50610358610353366004613000565b610954565b6040516001600160a01b03909116815260200161030d565b34801561037c57600080fd5b5061039061038b366004613030565b6109b1565b005b34801561039e57600080fd5b50610390610a77565b3480156103b357600080fd5b50610390610a96565b3480156103c857600080fd5b50600254600154035b60405190815260200161030d565b3480156103eb57600080fd5b50610390610ab7565b34801561040057600080fd5b50610390610ad0565b34801561041557600080fd5b5061039061042436600461305a565b610af7565b34801561043557600080fd5b50610390610444366004613000565b610cdc565b34801561045557600080fd5b5061039061046436600461314d565b610f1a565b34801561047557600080fd5b50610390610f32565b34801561048a57600080fd5b50601254610100900460ff16610301565b3480156104a757600080fd5b506103906104b636600461305a565b610fd4565b3480156104c757600080fd5b506103906104d6366004613000565b610ff4565b3480156104e757600080fd5b50601254640100000000900460ff16610301565b610390610509366004613182565b611001565b34801561051a57600080fd5b506103906113cf565b34801561052f57600080fd5b5061039061053e3660046131c7565b6113e6565b34801561054f57600080fd5b5061035861055e366004613000565b611429565b34801561056f57600080fd5b506103d161057e3660046131fa565b611434565b34801561058f57600080fd5b5061039061149c565b3480156105a457600080fd5b506103d16105b33660046131fa565b6001600160a01b031660009081526019602052604090205490565b3480156105da57600080fd5b506103906105e9366004613215565b6114b0565b3480156105fa57600080fd5b506012546301000000900460ff16610301565b34801561061957600080fd5b5060125465010000000000900460ff16610301565b34801561063a57600080fd5b506000546001600160a01b0316610358565b34801561065857600080fd5b5061032b611591565b34801561066d57600080fd5b5060125462010000900460ff16610301565b34801561068b57600080fd5b5061039061069a36600461325c565b6115a0565b3480156106ab57600080fd5b506103906106ba366004613298565b61164e565b3480156106cb57600080fd5b50610390611668565b3480156106e057600080fd5b506103906106ef3660046132ba565b611681565b34801561070057600080fd5b5061039061070f366004613215565b6116cb565b34801561072057600080fd5b5061039061072f366004613333565b6117ac565b34801561074057600080fd5b5061032b61074f366004613000565b611835565b34801561076057600080fd5b5061039061076f366004613333565b611cb6565b34801561078057600080fd5b50610390611d3f565b34801561079557600080fd5b506103906107a43660046131fa565b611d64565b3480156107b557600080fd5b506103016107c43660046131c7565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b610390610800366004613182565b611d9b565b34801561081157600080fd5b506103906108203660046131fa565b612271565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316148061088857507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806108bc57507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600380546108d1906133eb565b80601f01602080910402602001604051908101604052809291908181526020018280546108fd906133eb565b801561094a5780601f1061091f5761010080835404028352916020019161094a565b820191906000526020600020905b81548152906001019060200180831161092d57829003601f168201915b5050505050905090565b600061095f826122fe565b610995576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006109bc82611429565b9050336001600160a01b03821614610a0e576109d881336107c4565b610a0e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260076020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a7f612326565b6012805464ffff0000001916640100000000179055565b610a9e612326565b6012805465ff00ff000000191665010001000000179055565b610abf612326565b6012805465ffffff00000019169055565b610ad8612326565b6012805462ff0000198116620100009182900460ff1615909102179055565b6000610b0282612380565b9050836001600160a01b0316816001600160a01b031614610b4f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b03881690911417610bb557610b7f86336107c4565b610bb5576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516610bf5576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015610c0057600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b84169003610c9257600184016000818152600560205260408120549003610c90576001548114610c905760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610ce4612326565b610fa081600a54610cf5919061343b565b10610d475760405162461bcd60e51b815260206004820152601360248201527f4d696e74206578636565647320737570706c790000000000000000000000000060448201526064015b60405180910390fd5b602881600b54610d57919061343b565b10610dca5760405162461bcd60e51b815260206004820152602f60248201527f45786365656473206d617820737570706c7920616c6c6f77656420666f72206360448201527f6f6d6d756e6974792077616c6c657400000000000000000000000000000000006064820152608401610d3e565b60125465010000000000900460ff1615610e54576103e881600a54610def919061343b565b10610e3c5760405162461bcd60e51b815260206004820152601c60248201527f4d696e74206578636565647320616e696d6174656420737570706c79000000006044820152606401610d3e565b80600c6000828254610e4e919061343b565b90915550505b60005b81811015610f0c57610ecf33600d54600a5444856001610e77919061343b565b60405160609590951b6bffffffffffffffffffffffff1916602086015260348501939093526054840191909152607483015260948201524360b482015260d4015b604051602081830303815290604052600a54612407565b600a8054906000610edf83613453565b9091555050600b8054906000610ef483613453565b91905055508080610f0490613453565b915050610e57565b50610f173382612473565b50565b610f22612326565b6011610f2e82826134b2565b5050565b610f3a612326565b600260095403610f8c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d3e565b600260095560105460405147916001600160a01b03169082156108fc029083906000818181858888f19350505050158015610fcb573d6000803e3d6000fd5b50506001600955565b610fef83838360405180602001604052806000815250611681565b505050565b610ffc612326565b600d55565b601254610100900460ff16156110595760405162461bcd60e51b815260206004820152601460248201527f4d696e74205068617365206973207061757365640000000000000000000000006044820152606401610d3e565b6012546301000000900460ff16151560010361115557600061107a8361248d565b60125490915065010000000000900460ff16156110d95760405162461bcd60e51b815260206004820152600d60248201527f77726f6e672070726573616c65000000000000000000000000000000000000006044820152606401610d3e565b6000811161114f5760405162461bcd60e51b815260206004820152602360248201527f596f7520617265206e6f742079657420617574686f72697a656420746f206d6960448201527f6e742100000000000000000000000000000000000000000000000000000000006064820152608401610d3e565b506111b4565b601254640100000000900460ff1615156001146111b45760405162461bcd60e51b815260206004820152601860248201527f5075626c69632073616c652069736e27742061637469766500000000000000006044820152606401610d3e565b600081116112045760405162461bcd60e51b815260206004820152601c60248201527f596f75206d757374206d696e74206174206c656173742031204e4654000000006044820152606401610d3e565b60028111156112555760405162461bcd60e51b815260206004820152600d60248201527f546f6f206d616e79204e465473000000000000000000000000000000000000006044820152606401610d3e565b610fa081600a54611266919061343b565b106112b35760405162461bcd60e51b815260206004820152601360248201527f4d696e74206578636565647320737570706c79000000000000000000000000006044820152606401610d3e565b336000908152601960205260409020546002906112d190839061343b565b111561131f5760405162461bcd60e51b815260206004820152601960248201527f4d696e74696e67206d6f7265207468616e20616c6c6f776564000000000000006044820152606401610d3e565b336000908152601960205260408120805483929061133e90849061343b565b90915550600090505b818110156113c457600d54600a546040516bffffffffffffffffffffffff193360601b16602082015260348101929092526054820152446074820152609481018290524360b482015261139c9060d401610eb8565b600a80549060006113ac83613453565b919050555080806113bc90613453565b915050611347565b50610f2e3382612473565b6113d7612326565b6012805460ff19166001179055565b6113ee612326565b600e80546001600160a01b0393841673ffffffffffffffffffffffffffffffffffffffff1991821617909155600f8054929093169116179055565b60006108bc82612380565b60006001600160a01b038216611476576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6114a4612326565b6114ae6000612581565b565b6114b982611429565b6001600160a01b0316336001600160a01b0316146115195760405162461bcd60e51b815260206004820152601f60248201527f596f7520617265206e6f74206f776e6572206f66207468697320746f6b656e006044820152606401610d3e565b60125462010000900460ff1615156001146115765760405162461bcd60e51b815260206004820152601960248201527f46656174757265206e6f7420617661696c61626c6520796574000000000000006044820152606401610d3e565b6000828152601b60205260409020600201610fef82826134b2565b6060600480546108d1906133eb565b336001600160a01b038316036115e2576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611656612326565b6000918252601b602052604090912055565b611670612326565b6012805465ff000000000019169055565b61168c848484610af7565b6001600160a01b0383163b156116c5576116a8848484846125de565b6116c5576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6116d482611429565b6001600160a01b0316336001600160a01b0316146117345760405162461bcd60e51b815260206004820152601f60248201527f596f7520617265206e6f74206f776e6572206f66207468697320746f6b656e006044820152606401610d3e565b60125462010000900460ff1615156001146117915760405162461bcd60e51b815260206004820152601960248201527f46656174757265206e6f7420617661696c61626c6520796574000000000000006044820152606401610d3e565b6000828152601b60205260409020600301610fef82826134b2565b6117b4612326565b60005b8251811015610fef5781601b60008584815181106117d7576117d7613572565b6020026020010151815260200190815260200160002060010160006002811061180257611802613572565b602091828204019190066101000a81548160ff021916908360ff160217905550808061182d90613453565b9150506117b7565b6040805160208101909152600081526012546060919060ff1615611be65760006011611860856126ca565b6001600c5461186f9190613588565b86116118b0576040518060400160405280600481526020017f2e6d7034000000000000000000000000000000000000000000000000000000008152506118e7565b6040518060400160405280600481526020017f2e706e67000000000000000000000000000000000000000000000000000000008152505b6040516020016118f99392919061362e565b60408051601f198184030181529181526000868152601b60205290812080549293509091600382019184916002909101906013906119429061193d906064906136a9565b61282a565b60ff168154811061195557611955613572565b906000526020600020016014611992606480601b60008e81526020019081526020016000206000015461198891906136bd565b61193d91906136a9565b60ff16815481106119a5576119a5613572565b9060005260206000200160146119da6064612710601b60008f81526020019081526020016000206000015461198891906136bd565b60ff16815481106119ed576119ed613572565b90600052602060002001604051602001611a0c969594939291906136d1565b60408051601f198184030181529181526000878152601b6020529081205491925090601490611a469060649061198890620f4240906136bd565b60ff1681548110611a5957611a59613572565b906000526020600020016015611a9060646305f5e100601b60008c81526020019081526020016000206000015461198891906136bd565b60ff1681548110611aa357611aa3613572565b600091825260208083208a8452601b9091526040909220600101546017805492909301929160ff909116908110611adc57611adc613572565b906000526020600020016016601b60008b8152602001908152602001600020600101600160028110611b1057611b10613572565b602091828204019190069054906101000a900460ff1660ff1681548110611b3957611b39613572565b906000526020600020016001600c54611b529190613588565b8a11611b79576040518060400160405280600381526020016259657360e81b815250611b95565b604051806040016040528060028152602001614e6f60f01b8152505b604051602001611ba9959493929190613897565b60405160208183030381529060405290508181604051602001611bcd929190613aa9565b6040516020818303038152906040529350505050611c67565b6011611bf1846126ca565b6001600c54611c009190613588565b8511611c27576040518060400160405280600381526020016259657360e81b815250611c43565b604051806040016040528060028152602001614e6f60f01b8152505b604051602001611c5593929190613ad8565b60405160208183030381529060405290505b611c8f81604051602001611c7b9190613c73565b604051602081830303815290604052612881565b604051602001611c9f9190613c8f565b604051602081830303815290604052915050919050565b611cbe612326565b60005b8251811015610fef5781601b6000858481518110611ce157611ce1613572565b60200260200101518152602001908152602001600020600101600160028110611d0c57611d0c613572565b602091828204019190066101000a81548160ff021916908360ff1602179055508080611d3790613453565b915050611cc1565b611d47612326565b6012805461ff001981166101009182900460ff1615909102179055565b611d6c612326565b6010805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600260095403611ded5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d3e565b6002600955601254610100900460ff1615611e4a5760405162461bcd60e51b815260206004820152601460248201527f4d696e74205068617365206973207061757365640000000000000000000000006044820152606401610d3e565b6012546301000000900460ff161515600114611ea85760405162461bcd60e51b815260206004820152601460248201527f50726573616c652069736e2774206163746976650000000000000000000000006044820152606401610d3e565b60125465010000000000900460ff161515600114611f085760405162461bcd60e51b815260206004820152601560248201527f416e696d61746564207068617365206973206f666600000000000000000000006044820152606401610d3e565b601254640100000000900460ff1615611f635760405162461bcd60e51b815260206004820152601560248201527f5075626c69632073616c652069732061637469766500000000000000000000006044820152606401610d3e565b6000611f6e8361248d565b905060008111611fc05760405162461bcd60e51b815260206004820152601460248201527f596f752061726520556e617574686f72697a65640000000000000000000000006044820152606401610d3e565b600082116120105760405162461bcd60e51b815260206004820152601c60248201527f596f75206d757374206d696e74206174206c656173742031204e4654000000006044820152606401610d3e565b6103e882600a54612021919061343b565b106120935760405162461bcd60e51b8152602060048201526024808201527f4d617820616e696d6174656420737570706c7920686173206265656e2072656160448201527f63686564000000000000000000000000000000000000000000000000000000006064820152608401610d3e565b6120a482666a94d74f430000613cd4565b34146120f25760405162461bcd60e51b815260206004820152600f60248201527f496e636f727265637420507269636500000000000000000000000000000000006044820152606401610d3e565b8060010361216b573360009081526018602052604090205460039061211890849061343b565b11156121665760405162461bcd60e51b815260206004820152601a60248201527f4d696e74696e67206d6f7265207468616e20616c6c6f776564210000000000006044820152606401610d3e565b6121df565b806002036121df573360009081526018602052604090205460029061219190849061343b565b11156121df5760405162461bcd60e51b815260206004820152601960248201527f4d696e74696e67206d6f7265207468616e20616c6c6f776564000000000000006044820152606401610d3e565b33600090815260186020526040812080548492906121fe90849061343b565b9250508190555081600c6000828254612217919061343b565b90915550600090505b8281101561225c5761223484600a54612407565b600a805490600061224483613453565b9190505550808061225490613453565b915050612220565b506122673383612473565b5050600160095550565b612279612326565b6001600160a01b0381166122f55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d3e565b610f1781612581565b6000600154821080156108bc575050600090815260056020526040902054600160e01b161590565b6000546001600160a01b031633146114ae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d3e565b6000816001548110156123d55760008181526005602052604081205490600160e01b821690036123d3575b806000036123cc5750600019016000818152600560205260409020546123ab565b9392505050565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124118282612a1d565b6000828152601b60205260409020908155600101805461ffff19169055600a5461243a906126ca565b60405160200161244a9190613cf3565b60408051601f198184030181529181526000838152601b6020522060020190610fef90826134b2565b610f2e828260405180602001604052806000815250612a5b565b600081516000036124a057506000919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c8201526124fd908390605c015b60405160208183030381529060405280519060200120612ac890919063ffffffff16565b600f546001600160a01b0391821691160361251a57506001919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152612557908390605c016124d9565b600e546001600160a01b0391821691160361257457506002919050565b506000919050565b919050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612613903390899088908890600401613d38565b6020604051808303816000875af192505050801561264e575060408051601f3d908101601f1916820190925261264b91810190613d6a565b60015b6126ac573d80801561267c576040519150601f19603f3d011682016040523d82523d6000602084013e612681565b606091505b5080516000036126a4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608160000361270d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612737578061272181613453565b91506127309050600a836136bd565b9150612711565b60008167ffffffffffffffff81111561275257612752613096565b6040519080825280601f01601f19166020018201604052801561277c576020820181803683370190505b509050815b851561282157612792600182613588565b905060006127a1600a886136bd565b6127ac90600a613cd4565b6127b69088613588565b6127c1906030613d87565b905060008160f81b9050808484815181106127de576127de613572565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612818600a896136bd565b97505050612781565b50949350505050565b6000600a82101561283d57506004919050565b601482101561284e57506003919050565b604682101561285f57506002919050565b605a82101561287057506001919050565b606482101561257c57506000919050565b606081516000036128a057505060408051602081019091526000815290565b6000604051806060016040528060408152602001613e1560409139905060006003845160026128cf919061343b565b6128d991906136bd565b6128e4906004613cd4565b905060006128f382602061343b565b67ffffffffffffffff81111561290b5761290b613096565b6040519080825280601f01601f191660200182016040528015612935576020820181803683370190505b509050818152600183018586518101602084015b818310156129a1576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101612949565b6003895106600181146129bb57600281146129e757612a0f565b7f3d3d000000000000000000000000000000000000000000000000000000000000600119830152612a0f565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b600033444385600a5486604051602001612a3c96959493929190613dac565b60408051601f1981840301815291905280516020909101209392505050565b612a658383612aec565b6001600160a01b0383163b15610fef576001548281035b612a8f60008683806001019450866125de565b612aac576040516368d2bf6b60e11b815260040160405180910390fd5b818110612a7c578160015414612ac157600080fd5b5050505050565b6000806000612ad78585612bff565b91509150612ae481612c6d565b509392505050565b6001546001600160a01b038316612b2f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600003612b69576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600081815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260056020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210612bb35760015550505050565b6000808251604103612c355760208301516040840151606085015160001a612c2987828585612e23565b94509450505050612c66565b8251604003612c5e5760208301516040840151612c53868383612f10565b935093505050612c66565b506000905060025b9250929050565b6000816004811115612c8157612c81613dfe565b03612c895750565b6001816004811115612c9d57612c9d613dfe565b03612cea5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d3e565b6002816004811115612cfe57612cfe613dfe565b03612d4b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d3e565b6003816004811115612d5f57612d5f613dfe565b03612db75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d3e565b6004816004811115612dcb57612dcb613dfe565b03610f175760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d3e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612e5a5750600090506003612f07565b8460ff16601b14158015612e7257508460ff16601c14155b15612e835750600090506004612f07565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ed7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612f0057600060019250925050612f07565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681612f4660ff86901c601b61343b565b9050612f5487828885612e23565b935093505050935093915050565b6001600160e01b031981168114610f1757600080fd5b600060208284031215612f8a57600080fd5b81356123cc81612f62565b60005b83811015612fb0578181015183820152602001612f98565b838111156116c55750506000910152565b60008151808452612fd9816020860160208601612f95565b601f01601f19169290920160200192915050565b6020815260006123cc6020830184612fc1565b60006020828403121561301257600080fd5b5035919050565b80356001600160a01b038116811461257c57600080fd5b6000806040838503121561304357600080fd5b61304c83613019565b946020939093013593505050565b60008060006060848603121561306f57600080fd5b61307884613019565b925061308660208501613019565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156130d5576130d5613096565b604052919050565b600082601f8301126130ee57600080fd5b813567ffffffffffffffff81111561310857613108613096565b61311b601f8201601f19166020016130ac565b81815284602083860101111561313057600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561315f57600080fd5b813567ffffffffffffffff81111561317657600080fd5b6126c2848285016130dd565b6000806040838503121561319557600080fd5b823567ffffffffffffffff8111156131ac57600080fd5b6131b8858286016130dd565b95602094909401359450505050565b600080604083850312156131da57600080fd5b6131e383613019565b91506131f160208401613019565b90509250929050565b60006020828403121561320c57600080fd5b6123cc82613019565b6000806040838503121561322857600080fd5b82359150602083013567ffffffffffffffff81111561324657600080fd5b613252858286016130dd565b9150509250929050565b6000806040838503121561326f57600080fd5b61327883613019565b91506020830135801515811461328d57600080fd5b809150509250929050565b600080604083850312156132ab57600080fd5b50508035926020909101359150565b600080600080608085870312156132d057600080fd5b6132d985613019565b93506132e760208601613019565b925060408501359150606085013567ffffffffffffffff81111561330a57600080fd5b613316878288016130dd565b91505092959194509250565b803560ff8116811461257c57600080fd5b6000806040838503121561334657600080fd5b823567ffffffffffffffff8082111561335e57600080fd5b818501915085601f83011261337257600080fd5b813560208282111561338657613386613096565b8160051b92506133978184016130ac565b82815292840181019281810190898511156133b157600080fd5b948201945b848610156133cf578535825294820194908201906133b6565b96506133de9050878201613322565b9450505050509250929050565b600181811c908216806133ff57607f821691505b60208210810361341f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561344e5761344e613425565b500190565b60006001820161346557613465613425565b5060010190565b601f821115610fef57600081815260208120601f850160051c810160208610156134935750805b601f850160051c820191505b81811015610cd45782815560010161349f565b815167ffffffffffffffff8111156134cc576134cc613096565b6134e0816134da84546133eb565b8461346c565b602080601f83116001811461351557600084156134fd5750858301515b600019600386901b1c1916600185901b178555610cd4565b600085815260208120601f198616915b8281101561354457888601518255948401946001909101908401613525565b50858210156135625787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60008282101561359a5761359a613425565b500390565b600081546135ac816133eb565b600182811680156135c457600181146135d957613608565b60ff1984168752821515830287019450613608565b8560005260208060002060005b858110156135ff5781548a8201529084019082016135e6565b50505082870194505b5050505092915050565b60008151613624818560208601612f95565b9290920192915050565b600061363a828661359f565b7f2f0000000000000000000000000000000000000000000000000000000000000081528451613670816001840160208901612f95565b8451910190613686816001840160208801612f95565b0160010195945050505050565b634e487b7160e01b600052601260045260246000fd5b6000826136b8576136b8613693565b500690565b6000826136cc576136cc613693565b500490565b7f7b20226465736372697074696f6e223a2022000000000000000000000000000081526000613703601283018961359f565b61088b60f21b8082526a101134b6b0b3b2911d101160a91b6002830152885161373381600d850160208d01612f95565b600d9201918201527f20226e616d65223a202200000000000000000000000000000000000000000000600f82015261376e601982018861359f565b90507f222c202261747472696275746573223a205b000000000000000000000000000081527f7b202274726169745f74797065223a20224c69666520436f6e646974696f6e7360128201526c111610113b30b63ab2911d101160991b603282015261388a6137f16138846138476137f16138416138026137f1603f89018e61359f565b64011103e96160dd1b815260050190565b7f7b202274726169745f74797065223a20224d6574616c205265736f757263657381526c111610113b30b63ab2911d101160991b6020820152602d0190565b8a61359f565b7f7b202274726169745f74797065223a2022476173205265736f7572636573222c81526a10113b30b63ab2911d101160a91b6020820152602b0190565b8661359f565b9998505050505050505050565b7f7b202274726169745f74797065223a20224f7267616e6963205265736f75726381527f6573222c202276616c7565223a20220000000000000000000000000000000000602082015260006138ef602f83018861359f565b64011103e96160dd1b8082527f7b202274726169745f74797065223a20224275696c64696e672044696666696360058301527f756c7479222c202276616c7565223a20220000000000000000000000000000006025830152613954603683018961359f565b91508082527f7b202274726169745f74797065223a202252696e67656420506c616e6574222c60058301526a10113b30b63ab2911d101160a91b60258301526139a0603083018861359f565b9081527f7b202274726169745f74797065223a2022506c616e65742054797065222c202260058201527f76616c7565223a2022000000000000000000000000000000000000000000000060258201529050613a9d613a74613a4b613a45613a0d6137f1602e87018b61359f565b7f7b202274726169745f74797065223a2022416e696d61746564222c202276616c8152653ab2911d101160d11b602082015260260190565b87613612565b7f22207d2000000000000000000000000000000000000000000000000000000000815260040190565b7f5d7d000000000000000000000000000000000000000000000000000000000000815260020190565b98975050505050505050565b60008351613abb818460208801612f95565b835190830190613acf818360208801612f95565b01949350505050565b7f7b20226465736372697074696f6e223a20224f6e65206f66207468652034303081527f302070726f6365647572616c6c792067656e6572617465642054696e7920506c60208201527f616e6574732c2077697468206d696c6c696f6e73206f6620706f73736962696c60408201527f697469657320726567617264696e6720636f6c6f72732c207368617065732c2060608201527f636c6f7564732c206f6365616e2c20616e64206d756368206d6f726521222c0060808201526a101134b6b0b3b2911d101160a91b609f8201526000613bb660aa83018661359f565b61088b60f21b81527f20226e616d65223a202254696e7920506c616e6574202300000000000000000060028201528451613bf7816019840160208901612f95565b7f222c202261747472696275746573223a205b0000000000000000000000000000910160198101919091527f7b202274726169745f74797065223a2022416e696d61746564222c202276616c602b820152653ab2911d101160d11b604b820152613c69613a74613a4b60518401613a45565b9695505050505050565b60008251613c85818460208701612f95565b9190910192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613cc781601d850160208701612f95565b91909101601d0192915050565b6000816000190483118215151615613cee57613cee613425565b500290565b7f54696e7920506c616e6574202300000000000000000000000000000000000000815260008251613d2b81600d850160208701612f95565b91909101600d0192915050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613c696080830184612fc1565b600060208284031215613d7c57600080fd5b81516123cc81612f62565b600060ff821660ff84168060ff03821115613da457613da4613425565b019392505050565b6bffffffffffffffffffffffff198760601b16815285601482015284603482015260008451613de2816054850160208901612f95565b9091016054810193909352506074820152609401949350505050565b634e487b7160e01b600052602160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212201719d3fd0aa1999616bcd425e3b42de6577e0b74190bc0fae836c5ca65caa58a64736f6c634300080f0033697066733a2f2f516d636133676472637448473672444d777553784632384c426e70426841476244765477557751506a7154367241

Deployed Bytecode

0x6080604052600436106102dc5760003560e01c806370a0823111610184578063b68e8c91116100d6578063cdb8f25c1161008a578063e985e9c511610064578063e985e9c5146107a9578063ebab1577146107f2578063f2fde38b1461080557600080fd5b8063cdb8f25c14610754578063d431b1ac14610774578063deaa59df1461078957600080fd5b8063bf49852b116100bb578063bf49852b146106f4578063c81fdde514610714578063c87b56dd1461073457600080fd5b8063b68e8c91146106bf578063b88d4fde146106d457600080fd5b806389c8ea2d1161013857806399cfa4261161011257806399cfa42614610661578063a22cb4651461067f578063ae3d3a251461069f57600080fd5b806389c8ea2d1461060d5780638da5cb5b1461062e57806395d89b411461064c57600080fd5b8063802075b511610169578063802075b5146105985780638389d7d3146105ce57806383b21536146105ee57600080fd5b806370a0823114610563578063715018a61461058357600080fd5b8063375a069a1161023d5780635828bc49116101f15780635b8ad429116101cb5780635b8ad4291461050e5780635e422700146105235780636352211e1461054357600080fd5b80635828bc49146104bb57806359000406146104db578063590df5e1146104fb57600080fd5b80633ccfd60b116102225780633ccfd60b146104695780633e3ca9d31461047e57806342842e0e1461049b57600080fd5b8063375a069a1461042957806339a0c6f91461044957600080fd5b806313640de811610294578063185f6fb211610279578063185f6fb2146103df57806321651854146103f457806323b872dd1461040957600080fd5b806313640de8146103a757806318160ddd146103bc57600080fd5b8063081812fc116102c5578063081812fc14610338578063095ea7b31461037057806311eb30471461039257600080fd5b806301ffc9a7146102e157806306fdde0314610316575b600080fd5b3480156102ed57600080fd5b506103016102fc366004612f78565b610825565b60405190151581526020015b60405180910390f35b34801561032257600080fd5b5061032b6108c2565b60405161030d9190612fed565b34801561034457600080fd5b50610358610353366004613000565b610954565b6040516001600160a01b03909116815260200161030d565b34801561037c57600080fd5b5061039061038b366004613030565b6109b1565b005b34801561039e57600080fd5b50610390610a77565b3480156103b357600080fd5b50610390610a96565b3480156103c857600080fd5b50600254600154035b60405190815260200161030d565b3480156103eb57600080fd5b50610390610ab7565b34801561040057600080fd5b50610390610ad0565b34801561041557600080fd5b5061039061042436600461305a565b610af7565b34801561043557600080fd5b50610390610444366004613000565b610cdc565b34801561045557600080fd5b5061039061046436600461314d565b610f1a565b34801561047557600080fd5b50610390610f32565b34801561048a57600080fd5b50601254610100900460ff16610301565b3480156104a757600080fd5b506103906104b636600461305a565b610fd4565b3480156104c757600080fd5b506103906104d6366004613000565b610ff4565b3480156104e757600080fd5b50601254640100000000900460ff16610301565b610390610509366004613182565b611001565b34801561051a57600080fd5b506103906113cf565b34801561052f57600080fd5b5061039061053e3660046131c7565b6113e6565b34801561054f57600080fd5b5061035861055e366004613000565b611429565b34801561056f57600080fd5b506103d161057e3660046131fa565b611434565b34801561058f57600080fd5b5061039061149c565b3480156105a457600080fd5b506103d16105b33660046131fa565b6001600160a01b031660009081526019602052604090205490565b3480156105da57600080fd5b506103906105e9366004613215565b6114b0565b3480156105fa57600080fd5b506012546301000000900460ff16610301565b34801561061957600080fd5b5060125465010000000000900460ff16610301565b34801561063a57600080fd5b506000546001600160a01b0316610358565b34801561065857600080fd5b5061032b611591565b34801561066d57600080fd5b5060125462010000900460ff16610301565b34801561068b57600080fd5b5061039061069a36600461325c565b6115a0565b3480156106ab57600080fd5b506103906106ba366004613298565b61164e565b3480156106cb57600080fd5b50610390611668565b3480156106e057600080fd5b506103906106ef3660046132ba565b611681565b34801561070057600080fd5b5061039061070f366004613215565b6116cb565b34801561072057600080fd5b5061039061072f366004613333565b6117ac565b34801561074057600080fd5b5061032b61074f366004613000565b611835565b34801561076057600080fd5b5061039061076f366004613333565b611cb6565b34801561078057600080fd5b50610390611d3f565b34801561079557600080fd5b506103906107a43660046131fa565b611d64565b3480156107b557600080fd5b506103016107c43660046131c7565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b610390610800366004613182565b611d9b565b34801561081157600080fd5b506103906108203660046131fa565b612271565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316148061088857507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806108bc57507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600380546108d1906133eb565b80601f01602080910402602001604051908101604052809291908181526020018280546108fd906133eb565b801561094a5780601f1061091f5761010080835404028352916020019161094a565b820191906000526020600020905b81548152906001019060200180831161092d57829003601f168201915b5050505050905090565b600061095f826122fe565b610995576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006109bc82611429565b9050336001600160a01b03821614610a0e576109d881336107c4565b610a0e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260076020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a7f612326565b6012805464ffff0000001916640100000000179055565b610a9e612326565b6012805465ff00ff000000191665010001000000179055565b610abf612326565b6012805465ffffff00000019169055565b610ad8612326565b6012805462ff0000198116620100009182900460ff1615909102179055565b6000610b0282612380565b9050836001600160a01b0316816001600160a01b031614610b4f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b03881690911417610bb557610b7f86336107c4565b610bb5576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516610bf5576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015610c0057600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b84169003610c9257600184016000818152600560205260408120549003610c90576001548114610c905760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610ce4612326565b610fa081600a54610cf5919061343b565b10610d475760405162461bcd60e51b815260206004820152601360248201527f4d696e74206578636565647320737570706c790000000000000000000000000060448201526064015b60405180910390fd5b602881600b54610d57919061343b565b10610dca5760405162461bcd60e51b815260206004820152602f60248201527f45786365656473206d617820737570706c7920616c6c6f77656420666f72206360448201527f6f6d6d756e6974792077616c6c657400000000000000000000000000000000006064820152608401610d3e565b60125465010000000000900460ff1615610e54576103e881600a54610def919061343b565b10610e3c5760405162461bcd60e51b815260206004820152601c60248201527f4d696e74206578636565647320616e696d6174656420737570706c79000000006044820152606401610d3e565b80600c6000828254610e4e919061343b565b90915550505b60005b81811015610f0c57610ecf33600d54600a5444856001610e77919061343b565b60405160609590951b6bffffffffffffffffffffffff1916602086015260348501939093526054840191909152607483015260948201524360b482015260d4015b604051602081830303815290604052600a54612407565b600a8054906000610edf83613453565b9091555050600b8054906000610ef483613453565b91905055508080610f0490613453565b915050610e57565b50610f173382612473565b50565b610f22612326565b6011610f2e82826134b2565b5050565b610f3a612326565b600260095403610f8c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d3e565b600260095560105460405147916001600160a01b03169082156108fc029083906000818181858888f19350505050158015610fcb573d6000803e3d6000fd5b50506001600955565b610fef83838360405180602001604052806000815250611681565b505050565b610ffc612326565b600d55565b601254610100900460ff16156110595760405162461bcd60e51b815260206004820152601460248201527f4d696e74205068617365206973207061757365640000000000000000000000006044820152606401610d3e565b6012546301000000900460ff16151560010361115557600061107a8361248d565b60125490915065010000000000900460ff16156110d95760405162461bcd60e51b815260206004820152600d60248201527f77726f6e672070726573616c65000000000000000000000000000000000000006044820152606401610d3e565b6000811161114f5760405162461bcd60e51b815260206004820152602360248201527f596f7520617265206e6f742079657420617574686f72697a656420746f206d6960448201527f6e742100000000000000000000000000000000000000000000000000000000006064820152608401610d3e565b506111b4565b601254640100000000900460ff1615156001146111b45760405162461bcd60e51b815260206004820152601860248201527f5075626c69632073616c652069736e27742061637469766500000000000000006044820152606401610d3e565b600081116112045760405162461bcd60e51b815260206004820152601c60248201527f596f75206d757374206d696e74206174206c656173742031204e4654000000006044820152606401610d3e565b60028111156112555760405162461bcd60e51b815260206004820152600d60248201527f546f6f206d616e79204e465473000000000000000000000000000000000000006044820152606401610d3e565b610fa081600a54611266919061343b565b106112b35760405162461bcd60e51b815260206004820152601360248201527f4d696e74206578636565647320737570706c79000000000000000000000000006044820152606401610d3e565b336000908152601960205260409020546002906112d190839061343b565b111561131f5760405162461bcd60e51b815260206004820152601960248201527f4d696e74696e67206d6f7265207468616e20616c6c6f776564000000000000006044820152606401610d3e565b336000908152601960205260408120805483929061133e90849061343b565b90915550600090505b818110156113c457600d54600a546040516bffffffffffffffffffffffff193360601b16602082015260348101929092526054820152446074820152609481018290524360b482015261139c9060d401610eb8565b600a80549060006113ac83613453565b919050555080806113bc90613453565b915050611347565b50610f2e3382612473565b6113d7612326565b6012805460ff19166001179055565b6113ee612326565b600e80546001600160a01b0393841673ffffffffffffffffffffffffffffffffffffffff1991821617909155600f8054929093169116179055565b60006108bc82612380565b60006001600160a01b038216611476576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6114a4612326565b6114ae6000612581565b565b6114b982611429565b6001600160a01b0316336001600160a01b0316146115195760405162461bcd60e51b815260206004820152601f60248201527f596f7520617265206e6f74206f776e6572206f66207468697320746f6b656e006044820152606401610d3e565b60125462010000900460ff1615156001146115765760405162461bcd60e51b815260206004820152601960248201527f46656174757265206e6f7420617661696c61626c6520796574000000000000006044820152606401610d3e565b6000828152601b60205260409020600201610fef82826134b2565b6060600480546108d1906133eb565b336001600160a01b038316036115e2576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611656612326565b6000918252601b602052604090912055565b611670612326565b6012805465ff000000000019169055565b61168c848484610af7565b6001600160a01b0383163b156116c5576116a8848484846125de565b6116c5576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6116d482611429565b6001600160a01b0316336001600160a01b0316146117345760405162461bcd60e51b815260206004820152601f60248201527f596f7520617265206e6f74206f776e6572206f66207468697320746f6b656e006044820152606401610d3e565b60125462010000900460ff1615156001146117915760405162461bcd60e51b815260206004820152601960248201527f46656174757265206e6f7420617661696c61626c6520796574000000000000006044820152606401610d3e565b6000828152601b60205260409020600301610fef82826134b2565b6117b4612326565b60005b8251811015610fef5781601b60008584815181106117d7576117d7613572565b6020026020010151815260200190815260200160002060010160006002811061180257611802613572565b602091828204019190066101000a81548160ff021916908360ff160217905550808061182d90613453565b9150506117b7565b6040805160208101909152600081526012546060919060ff1615611be65760006011611860856126ca565b6001600c5461186f9190613588565b86116118b0576040518060400160405280600481526020017f2e6d7034000000000000000000000000000000000000000000000000000000008152506118e7565b6040518060400160405280600481526020017f2e706e67000000000000000000000000000000000000000000000000000000008152505b6040516020016118f99392919061362e565b60408051601f198184030181529181526000868152601b60205290812080549293509091600382019184916002909101906013906119429061193d906064906136a9565b61282a565b60ff168154811061195557611955613572565b906000526020600020016014611992606480601b60008e81526020019081526020016000206000015461198891906136bd565b61193d91906136a9565b60ff16815481106119a5576119a5613572565b9060005260206000200160146119da6064612710601b60008f81526020019081526020016000206000015461198891906136bd565b60ff16815481106119ed576119ed613572565b90600052602060002001604051602001611a0c969594939291906136d1565b60408051601f198184030181529181526000878152601b6020529081205491925090601490611a469060649061198890620f4240906136bd565b60ff1681548110611a5957611a59613572565b906000526020600020016015611a9060646305f5e100601b60008c81526020019081526020016000206000015461198891906136bd565b60ff1681548110611aa357611aa3613572565b600091825260208083208a8452601b9091526040909220600101546017805492909301929160ff909116908110611adc57611adc613572565b906000526020600020016016601b60008b8152602001908152602001600020600101600160028110611b1057611b10613572565b602091828204019190069054906101000a900460ff1660ff1681548110611b3957611b39613572565b906000526020600020016001600c54611b529190613588565b8a11611b79576040518060400160405280600381526020016259657360e81b815250611b95565b604051806040016040528060028152602001614e6f60f01b8152505b604051602001611ba9959493929190613897565b60405160208183030381529060405290508181604051602001611bcd929190613aa9565b6040516020818303038152906040529350505050611c67565b6011611bf1846126ca565b6001600c54611c009190613588565b8511611c27576040518060400160405280600381526020016259657360e81b815250611c43565b604051806040016040528060028152602001614e6f60f01b8152505b604051602001611c5593929190613ad8565b60405160208183030381529060405290505b611c8f81604051602001611c7b9190613c73565b604051602081830303815290604052612881565b604051602001611c9f9190613c8f565b604051602081830303815290604052915050919050565b611cbe612326565b60005b8251811015610fef5781601b6000858481518110611ce157611ce1613572565b60200260200101518152602001908152602001600020600101600160028110611d0c57611d0c613572565b602091828204019190066101000a81548160ff021916908360ff1602179055508080611d3790613453565b915050611cc1565b611d47612326565b6012805461ff001981166101009182900460ff1615909102179055565b611d6c612326565b6010805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600260095403611ded5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d3e565b6002600955601254610100900460ff1615611e4a5760405162461bcd60e51b815260206004820152601460248201527f4d696e74205068617365206973207061757365640000000000000000000000006044820152606401610d3e565b6012546301000000900460ff161515600114611ea85760405162461bcd60e51b815260206004820152601460248201527f50726573616c652069736e2774206163746976650000000000000000000000006044820152606401610d3e565b60125465010000000000900460ff161515600114611f085760405162461bcd60e51b815260206004820152601560248201527f416e696d61746564207068617365206973206f666600000000000000000000006044820152606401610d3e565b601254640100000000900460ff1615611f635760405162461bcd60e51b815260206004820152601560248201527f5075626c69632073616c652069732061637469766500000000000000000000006044820152606401610d3e565b6000611f6e8361248d565b905060008111611fc05760405162461bcd60e51b815260206004820152601460248201527f596f752061726520556e617574686f72697a65640000000000000000000000006044820152606401610d3e565b600082116120105760405162461bcd60e51b815260206004820152601c60248201527f596f75206d757374206d696e74206174206c656173742031204e4654000000006044820152606401610d3e565b6103e882600a54612021919061343b565b106120935760405162461bcd60e51b8152602060048201526024808201527f4d617820616e696d6174656420737570706c7920686173206265656e2072656160448201527f63686564000000000000000000000000000000000000000000000000000000006064820152608401610d3e565b6120a482666a94d74f430000613cd4565b34146120f25760405162461bcd60e51b815260206004820152600f60248201527f496e636f727265637420507269636500000000000000000000000000000000006044820152606401610d3e565b8060010361216b573360009081526018602052604090205460039061211890849061343b565b11156121665760405162461bcd60e51b815260206004820152601a60248201527f4d696e74696e67206d6f7265207468616e20616c6c6f776564210000000000006044820152606401610d3e565b6121df565b806002036121df573360009081526018602052604090205460029061219190849061343b565b11156121df5760405162461bcd60e51b815260206004820152601960248201527f4d696e74696e67206d6f7265207468616e20616c6c6f776564000000000000006044820152606401610d3e565b33600090815260186020526040812080548492906121fe90849061343b565b9250508190555081600c6000828254612217919061343b565b90915550600090505b8281101561225c5761223484600a54612407565b600a805490600061224483613453565b9190505550808061225490613453565b915050612220565b506122673383612473565b5050600160095550565b612279612326565b6001600160a01b0381166122f55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d3e565b610f1781612581565b6000600154821080156108bc575050600090815260056020526040902054600160e01b161590565b6000546001600160a01b031633146114ae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d3e565b6000816001548110156123d55760008181526005602052604081205490600160e01b821690036123d3575b806000036123cc5750600019016000818152600560205260409020546123ab565b9392505050565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124118282612a1d565b6000828152601b60205260409020908155600101805461ffff19169055600a5461243a906126ca565b60405160200161244a9190613cf3565b60408051601f198184030181529181526000838152601b6020522060020190610fef90826134b2565b610f2e828260405180602001604052806000815250612a5b565b600081516000036124a057506000919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c8201526124fd908390605c015b60405160208183030381529060405280519060200120612ac890919063ffffffff16565b600f546001600160a01b0391821691160361251a57506001919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152612557908390605c016124d9565b600e546001600160a01b0391821691160361257457506002919050565b506000919050565b919050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612613903390899088908890600401613d38565b6020604051808303816000875af192505050801561264e575060408051601f3d908101601f1916820190925261264b91810190613d6a565b60015b6126ac573d80801561267c576040519150601f19603f3d011682016040523d82523d6000602084013e612681565b606091505b5080516000036126a4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608160000361270d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612737578061272181613453565b91506127309050600a836136bd565b9150612711565b60008167ffffffffffffffff81111561275257612752613096565b6040519080825280601f01601f19166020018201604052801561277c576020820181803683370190505b509050815b851561282157612792600182613588565b905060006127a1600a886136bd565b6127ac90600a613cd4565b6127b69088613588565b6127c1906030613d87565b905060008160f81b9050808484815181106127de576127de613572565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612818600a896136bd565b97505050612781565b50949350505050565b6000600a82101561283d57506004919050565b601482101561284e57506003919050565b604682101561285f57506002919050565b605a82101561287057506001919050565b606482101561257c57506000919050565b606081516000036128a057505060408051602081019091526000815290565b6000604051806060016040528060408152602001613e1560409139905060006003845160026128cf919061343b565b6128d991906136bd565b6128e4906004613cd4565b905060006128f382602061343b565b67ffffffffffffffff81111561290b5761290b613096565b6040519080825280601f01601f191660200182016040528015612935576020820181803683370190505b509050818152600183018586518101602084015b818310156129a1576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101612949565b6003895106600181146129bb57600281146129e757612a0f565b7f3d3d000000000000000000000000000000000000000000000000000000000000600119830152612a0f565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b600033444385600a5486604051602001612a3c96959493929190613dac565b60408051601f1981840301815291905280516020909101209392505050565b612a658383612aec565b6001600160a01b0383163b15610fef576001548281035b612a8f60008683806001019450866125de565b612aac576040516368d2bf6b60e11b815260040160405180910390fd5b818110612a7c578160015414612ac157600080fd5b5050505050565b6000806000612ad78585612bff565b91509150612ae481612c6d565b509392505050565b6001546001600160a01b038316612b2f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600003612b69576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600081815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260056020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210612bb35760015550505050565b6000808251604103612c355760208301516040840151606085015160001a612c2987828585612e23565b94509450505050612c66565b8251604003612c5e5760208301516040840151612c53868383612f10565b935093505050612c66565b506000905060025b9250929050565b6000816004811115612c8157612c81613dfe565b03612c895750565b6001816004811115612c9d57612c9d613dfe565b03612cea5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d3e565b6002816004811115612cfe57612cfe613dfe565b03612d4b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d3e565b6003816004811115612d5f57612d5f613dfe565b03612db75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d3e565b6004816004811115612dcb57612dcb613dfe565b03610f175760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d3e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612e5a5750600090506003612f07565b8460ff16601b14158015612e7257508460ff16601c14155b15612e835750600090506004612f07565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ed7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612f0057600060019250925050612f07565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681612f4660ff86901c601b61343b565b9050612f5487828885612e23565b935093505050935093915050565b6001600160e01b031981168114610f1757600080fd5b600060208284031215612f8a57600080fd5b81356123cc81612f62565b60005b83811015612fb0578181015183820152602001612f98565b838111156116c55750506000910152565b60008151808452612fd9816020860160208601612f95565b601f01601f19169290920160200192915050565b6020815260006123cc6020830184612fc1565b60006020828403121561301257600080fd5b5035919050565b80356001600160a01b038116811461257c57600080fd5b6000806040838503121561304357600080fd5b61304c83613019565b946020939093013593505050565b60008060006060848603121561306f57600080fd5b61307884613019565b925061308660208501613019565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156130d5576130d5613096565b604052919050565b600082601f8301126130ee57600080fd5b813567ffffffffffffffff81111561310857613108613096565b61311b601f8201601f19166020016130ac565b81815284602083860101111561313057600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561315f57600080fd5b813567ffffffffffffffff81111561317657600080fd5b6126c2848285016130dd565b6000806040838503121561319557600080fd5b823567ffffffffffffffff8111156131ac57600080fd5b6131b8858286016130dd565b95602094909401359450505050565b600080604083850312156131da57600080fd5b6131e383613019565b91506131f160208401613019565b90509250929050565b60006020828403121561320c57600080fd5b6123cc82613019565b6000806040838503121561322857600080fd5b82359150602083013567ffffffffffffffff81111561324657600080fd5b613252858286016130dd565b9150509250929050565b6000806040838503121561326f57600080fd5b61327883613019565b91506020830135801515811461328d57600080fd5b809150509250929050565b600080604083850312156132ab57600080fd5b50508035926020909101359150565b600080600080608085870312156132d057600080fd5b6132d985613019565b93506132e760208601613019565b925060408501359150606085013567ffffffffffffffff81111561330a57600080fd5b613316878288016130dd565b91505092959194509250565b803560ff8116811461257c57600080fd5b6000806040838503121561334657600080fd5b823567ffffffffffffffff8082111561335e57600080fd5b818501915085601f83011261337257600080fd5b813560208282111561338657613386613096565b8160051b92506133978184016130ac565b82815292840181019281810190898511156133b157600080fd5b948201945b848610156133cf578535825294820194908201906133b6565b96506133de9050878201613322565b9450505050509250929050565b600181811c908216806133ff57607f821691505b60208210810361341f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561344e5761344e613425565b500190565b60006001820161346557613465613425565b5060010190565b601f821115610fef57600081815260208120601f850160051c810160208610156134935750805b601f850160051c820191505b81811015610cd45782815560010161349f565b815167ffffffffffffffff8111156134cc576134cc613096565b6134e0816134da84546133eb565b8461346c565b602080601f83116001811461351557600084156134fd5750858301515b600019600386901b1c1916600185901b178555610cd4565b600085815260208120601f198616915b8281101561354457888601518255948401946001909101908401613525565b50858210156135625787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60008282101561359a5761359a613425565b500390565b600081546135ac816133eb565b600182811680156135c457600181146135d957613608565b60ff1984168752821515830287019450613608565b8560005260208060002060005b858110156135ff5781548a8201529084019082016135e6565b50505082870194505b5050505092915050565b60008151613624818560208601612f95565b9290920192915050565b600061363a828661359f565b7f2f0000000000000000000000000000000000000000000000000000000000000081528451613670816001840160208901612f95565b8451910190613686816001840160208801612f95565b0160010195945050505050565b634e487b7160e01b600052601260045260246000fd5b6000826136b8576136b8613693565b500690565b6000826136cc576136cc613693565b500490565b7f7b20226465736372697074696f6e223a2022000000000000000000000000000081526000613703601283018961359f565b61088b60f21b8082526a101134b6b0b3b2911d101160a91b6002830152885161373381600d850160208d01612f95565b600d9201918201527f20226e616d65223a202200000000000000000000000000000000000000000000600f82015261376e601982018861359f565b90507f222c202261747472696275746573223a205b000000000000000000000000000081527f7b202274726169745f74797065223a20224c69666520436f6e646974696f6e7360128201526c111610113b30b63ab2911d101160991b603282015261388a6137f16138846138476137f16138416138026137f1603f89018e61359f565b64011103e96160dd1b815260050190565b7f7b202274726169745f74797065223a20224d6574616c205265736f757263657381526c111610113b30b63ab2911d101160991b6020820152602d0190565b8a61359f565b7f7b202274726169745f74797065223a2022476173205265736f7572636573222c81526a10113b30b63ab2911d101160a91b6020820152602b0190565b8661359f565b9998505050505050505050565b7f7b202274726169745f74797065223a20224f7267616e6963205265736f75726381527f6573222c202276616c7565223a20220000000000000000000000000000000000602082015260006138ef602f83018861359f565b64011103e96160dd1b8082527f7b202274726169745f74797065223a20224275696c64696e672044696666696360058301527f756c7479222c202276616c7565223a20220000000000000000000000000000006025830152613954603683018961359f565b91508082527f7b202274726169745f74797065223a202252696e67656420506c616e6574222c60058301526a10113b30b63ab2911d101160a91b60258301526139a0603083018861359f565b9081527f7b202274726169745f74797065223a2022506c616e65742054797065222c202260058201527f76616c7565223a2022000000000000000000000000000000000000000000000060258201529050613a9d613a74613a4b613a45613a0d6137f1602e87018b61359f565b7f7b202274726169745f74797065223a2022416e696d61746564222c202276616c8152653ab2911d101160d11b602082015260260190565b87613612565b7f22207d2000000000000000000000000000000000000000000000000000000000815260040190565b7f5d7d000000000000000000000000000000000000000000000000000000000000815260020190565b98975050505050505050565b60008351613abb818460208801612f95565b835190830190613acf818360208801612f95565b01949350505050565b7f7b20226465736372697074696f6e223a20224f6e65206f66207468652034303081527f302070726f6365647572616c6c792067656e6572617465642054696e7920506c60208201527f616e6574732c2077697468206d696c6c696f6e73206f6620706f73736962696c60408201527f697469657320726567617264696e6720636f6c6f72732c207368617065732c2060608201527f636c6f7564732c206f6365616e2c20616e64206d756368206d6f726521222c0060808201526a101134b6b0b3b2911d101160a91b609f8201526000613bb660aa83018661359f565b61088b60f21b81527f20226e616d65223a202254696e7920506c616e6574202300000000000000000060028201528451613bf7816019840160208901612f95565b7f222c202261747472696275746573223a205b0000000000000000000000000000910160198101919091527f7b202274726169745f74797065223a2022416e696d61746564222c202276616c602b820152653ab2911d101160d11b604b820152613c69613a74613a4b60518401613a45565b9695505050505050565b60008251613c85818460208701612f95565b9190910192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613cc781601d850160208701612f95565b91909101601d0192915050565b6000816000190483118215151615613cee57613cee613425565b500290565b7f54696e7920506c616e6574202300000000000000000000000000000000000000815260008251613d2b81600d850160208701612f95565b91909101600d0192915050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613c696080830184612fc1565b600060208284031215613d7c57600080fd5b81516123cc81612f62565b600060ff821660ff84168060ff03821115613da457613da4613425565b019392505050565b6bffffffffffffffffffffffff198760601b16815285601482015284603482015260008451613de2816054850160208901612f95565b9091016054810193909352506074820152609401949350505050565b634e487b7160e01b600052602160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212201719d3fd0aa1999616bcd425e3b42de6577e0b74190bc0fae836c5ca65caa58a64736f6c634300080f0033

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.