Contract 0x2c9c55762250db126f2420f888f7ba6580eda72d

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x48a396cd51decf0c9a69694291de1f030cee6d791e3ece20ccbf8d54c1099eb20x60806040113355172022-02-24 12:59:56169 days 8 mins ago0x1c510f7ac1b0ec8340601e4b3a0961e7b0955f38 IN  Create: PlanetsManagerUpgradeable0 AVAX0.‍127277919289 27.‍690229699
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PlanetsManagerUpgradeable

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 25 : PlanetsManagerUpgradeable.sol
// SPDX-License-Identifier: UNLICENSED
/*
 *
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,@@@@@@@@@@@@@@@@@@@@@@@             %@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@,,,,,,,@@@@@@@@@@@@@                        @@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,@@@@@@@@@@@           @@@@@@@@@@@@@@      @@@@@@@
 * @@@@@@@@@@@@@@   @@@@@@@@@@@@@@@@@@@@/         @@@@@@@@@@@@@@@@@@@@@@    @@@@@@@
 * @@@@@@@@@@@&       @@@@@@@@@@@@@@@        @@@@@@@@@@@@@@@@@@@@@@@@@@@     @@@@@@
 * @@@@@@@@@@           @@@@@@@@@/       @@@@@@@@@@            @@@@@@@@@    @@@@@@@
 * @@@@@@@@@@@@@@   @@@@@@@@@@,       @@@@@@@@*         (@     @@@@@@@@     @@@@@@@
 * @@@@@@@@@@@@@@@ @@@@@@@@@      #@@@@@@@@        @@@@@@     @@@@@@@@     @@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@       @@@@@@@@@@@    @@@@@@@@      @@@@@@@@     @@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@      @@@@@.    @@@@@@@@@@@@@@      @@@@@@@@@     @@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@      @@@@@@       *@@@@@@@@@@      @@@@@@@@@     #@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@     %@@@@@@@@@      @@@@@@@@@      @@@@@@@@@@@    @@@@@@@@@@@@@
 * @@@@@@@@@@@@@@     #@@@@@@@@@@@@@@@@@@@@@@@      &@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@      @@@@@@     @@@@@@@@@@@       @@@@@@        &@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@     @@@@@@      @@@@@@@@        @@@@@@@            @@@@@@@@@@@@@@@@@
 * @@@@@@@@@@     @@@@@@     @@@@@@&        @@@@@@@@@@            @@@@@@@@@@@@@@@@@
 * @@@@@@@@@    ,@@@@@@    %@@@         @@@@@@@@@@@@@@@          @@@@@@@@@@@@@@@@@@
 * @@@@@@@@     @@@@@@@             @@@@@@@@@@@@@  @@@@@@@@  ,@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@,    @@@@@@@@@@     @@@@@@@@@@@@@@@,      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@     @@@@@@@@@@@@@@@@@@@@@@@@@@/        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@    @@@@@@@@@@@@@@@@@@@@@@         @@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@,     @@@@@@@@@@@@@#           @@@@@@@@       @@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@                       [email protected]@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@            @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 *
 *    Web:     https://univ.money
 */

pragma solidity ^0.8.11;

import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "./helpers/OwnerRecoveryUpgradeable.sol";
import "../implementations/output/UniverseImplementationPointerUpgradeable.sol";
import "../implementations/output/LiquidityPoolManagerImplementationPointerUpgradeable.sol";

contract PlanetsManagerUpgradeable is
    Initializable,
    ERC721Upgradeable,
    ERC721EnumerableUpgradeable,
    ERC721URIStorageUpgradeable,
    PausableUpgradeable,
    OwnableUpgradeable,
    OwnerRecoveryUpgradeable,
    ReentrancyGuardUpgradeable,
    UniverseImplementationPointerUpgradeable,
    LiquidityPoolManagerImplementationPointerUpgradeable
{
    using CountersUpgradeable for CountersUpgradeable.Counter;

    struct PlanetInfoEntity {
        PlanetEntity planet;
        uint256 id;
        uint256 pendingRewards;
        uint256 rewardPerDay;
        uint256 compoundDelay;
        uint256 pendingRewardsGross;
        uint256 rewardPerDayGross;
    }

    struct PlanetEntity {
        uint256 id;
        string name;
        uint256 creationTime;
        uint256 lastProcessingTimestamp;
        uint256 rewardMult;
        uint256 planetValue;
        uint256 totalClaimed;
        bool exists;
        bool isMerged;
    }

    struct TierStorage {
        uint256 rewardMult;
        uint256 amountLockedInTier;
        bool exists;
    }

    CountersUpgradeable.Counter private _planetCounter;
    mapping(uint256 => PlanetEntity) private _planets;
    mapping(uint256 => TierStorage) private _tierTracking;
    uint256[] _tiersTracked;

    uint256 public rewardPerDay;
    uint256 public creationMinPrice;
    uint256 public compoundDelay;
    uint256 public processingFee;

    uint24[6] public tierLevel;
    uint16[6] public tierSlope;

    uint256 private constant ONE_DAY = 86400;
    uint256 public totalValueLocked;

    uint256 public burnedFromRenaming;
    uint256 public burnedFromMerging;

    modifier onlyPlanetOwner() {
        address sender = _msgSender();
        require(
            sender != address(0),
            "Planets: Cannot be from the zero address"
        );
        require(
            isOwnerOfPlanets(sender),
            "Planets: No Planet owned by this account"
        );
        _;
    }

    modifier checkPermissions(uint256 _planetId) {
        address sender = _msgSender();
        require(planetExists(_planetId), "Planets: This planet doesn't exist");
        require(
            isApprovedOrOwnerOfPlanet(sender, _planetId),
            "Planets: You do not have control over this Planet"
        );
        _;
    }

    modifier checkPermissionsMultiple(uint256[] memory _planetIds) {
        address sender = _msgSender();
        for (uint256 i = 0; i < _planetIds.length; i++) {
            require(
                planetExists(_planetIds[i]),
                "Planets: This planet doesn't exist"
            );
            require(
                isApprovedOrOwnerOfPlanet(sender, _planetIds[i]),
                "Planets: You do not control this Planet"
            );
        }
        _;
    }

    modifier verifyName(string memory planetName) {
        require(
            bytes(planetName).length > 1 && bytes(planetName).length < 32,
            "Planets: Incorrect name length, must be between 2 to 31"
        );
        _;
    }

    event Compound(
        address indexed account,
        uint256 indexed planetId,
        uint256 amountToCompound
    );
    event Cashout(
        address indexed account,
        uint256 indexed planetId,
        uint256 rewardAmount
    );

    event CompoundAll(
        address indexed account,
        uint256[] indexed affectedPlanets,
        uint256 amountToCompound
    );
    event CashoutAll(
        address indexed account,
        uint256[] indexed affectedPlanets,
        uint256 rewardAmount
    );

    event Create(
        address indexed account,
        uint256 indexed newPlanetId,
        uint256 amount
    );

    event Rename(
        address indexed account,
        string indexed previousName,
        string indexed newName
    );

    event Merge(
        uint256[] indexed planetIds,
        string indexed name,
        uint256 indexed previousTotalValue
    );

    function initialize() external initializer {
        __ERC721_init("Universe Ecosystem", "PLANET");
        __Ownable_init();
        __ERC721Enumerable_init();
        __ERC721URIStorage_init();
        __ReentrancyGuard_init();
        __Pausable_init();

        // Initialize contract
        changeNodeMinPrice(100_000 * (10**18)); // 100K UNIV
        changeTierSystem([100000, 105000, 110000, 120000, 130000, 140000]);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override(ERC721URIStorageUpgradeable, ERC721Upgradeable)
        returns (string memory)
    {
        return "Use API";
    }

    function renamePlanet(uint256 _planetId, string memory planetName)
        external
        nonReentrant
        onlyPlanetOwner
        checkPermissions(_planetId)
        whenNotPaused
        verifyName(planetName)
    {
        address account = _msgSender();
        PlanetEntity storage planet = _planets[_planetId];
        require(planet.planetValue > 0, "Error: Planet is empty");
        (uint256 newPlanetValue, uint256 feeAmount) = getPercentageOf(
            planet.planetValue,
            1
        );
        logTier(planet.rewardMult, -int256(feeAmount));
        burnedFromRenaming += feeAmount;
        planet.planetValue = newPlanetValue;
        string memory previousName = planet.name;
        planet.name = planetName;
        emit Rename(account, previousName, planetName);
    }

    function mergePlanets(uint256[] memory _planetIds, string memory planetName)
        external
        nonReentrant
        onlyPlanetOwner
        checkPermissionsMultiple(_planetIds)
        whenNotPaused
        returns (uint256)
    {
        address account = _msgSender();
        require(
            _planetIds.length > 1,
            "PlanetsManager: At least 2 Planets must be selected in order for the merge to work"
        );

        uint256 lowestTier = 0;
        uint256 lowestId = 0;
        uint256 totalValue = 0;

        for (uint256 i = 0; i < _planetIds.length; i++) {
            PlanetEntity storage planetFromIds = _planets[_planetIds[i]];
            require(
                isProcessable(planetFromIds),
                "PlanetsManager: For the process to work, all selected planets must be compoundable. Try again later."
            );

            // Compound the planet
            _compoundReward(planetFromIds.id);

            // Use this tier if it's lower than current
            if (lowestTier == 0) {
                lowestTier = planetFromIds.rewardMult;
            } else if (lowestTier > planetFromIds.rewardMult) {
                lowestTier = planetFromIds.rewardMult;
            }

            // Use the lowest id from the merged planets
            if (lowestId == 0) {
                lowestId = planetFromIds.id;
            } else if (lowestId > planetFromIds.id) {
                lowestId = planetFromIds.id;
            }

            // Additionate the locked value
            totalValue += planetFromIds.planetValue;

            // Burn the planet permanently
            _burn(planetFromIds.id);
        }
        require(
            lowestTier >= tierLevel[0],
            "PlanetsManager: Something went wrong with the tiers"
        );
        require(
            lowestId > 0,
            "PlanetsManager: Something went wrong with the lowest id"
        );

        // Burn 2% from the value of across the final amount
        (uint256 newPlanetValue, uint256 feeAmount) = getPercentageOf(
            totalValue,
            2
        );
        burnedFromMerging += feeAmount;

        // Mint the amount to the user
        universe.accountReward(account, newPlanetValue);

        // Create the planet (which will burn that amount)
        uint256 currentPlanetId = _createPlanetWithTokens(
            planetName,
            newPlanetValue,
            lowestId
        );
        require(
            currentPlanetId == lowestId,
            "Current Planet should match the lowest number of your Planet"
        );

        // Set tier, logTier and increase
        PlanetEntity storage planet = _planets[currentPlanetId];
        planet.isMerged = true;
        if (lowestTier != tierLevel[0]) {
            logTier(planet.rewardMult, -int256(planet.planetValue));
            planet.rewardMult = lowestTier;
            logTier(planet.rewardMult, int256(planet.planetValue));
        }

        emit Merge(_planetIds, planetName, totalValue);

        return currentPlanetId;
    }

    function createPlanetWithTokens(
        string memory planetName,
        uint256 planetValue
    ) external nonReentrant whenNotPaused returns (uint256) {
        // Increment the total number of tokens
        _planetCounter.increment();
        return
            _createPlanetWithTokens(
                planetName,
                planetValue,
                _planetCounter.current()
            );
    }

    function _createPlanetWithTokens(
        string memory planetName,
        uint256 planetValue,
        uint256 newPlanetId
    ) private verifyName(planetName) returns (uint256) {
        address sender = _msgSender();
        require(
            planetValue >= creationMinPrice,
            "Planets: Planet value set below minimum"
        );
        require(
            universe.balanceOf(sender) >= creationMinPrice,
            "Planets: Balance too low for creation"
        );

        // Burn the tokens used to mint the NFT
        universe.accountBurn(sender, planetValue);

        uint256 currentTime = block.timestamp;

        // Add this to the TVL
        totalValueLocked += planetValue;
        logTier(tierLevel[0], int256(planetValue));

        // Add Planet
        _planets[newPlanetId] = PlanetEntity({
            id: newPlanetId,
            name: planetName,
            creationTime: currentTime,
            lastProcessingTimestamp: currentTime,
            rewardMult: tierLevel[0],
            planetValue: planetValue,
            totalClaimed: 0,
            exists: true,
            isMerged: false
        });

        // Assign the Planet to this account
        _mint(sender, newPlanetId);

        emit Create(sender, newPlanetId, planetValue);

        return newPlanetId;
    }

    function cashoutReward(uint256 _planetId)
        external
        nonReentrant
        onlyPlanetOwner
        checkPermissions(_planetId)
        whenNotPaused
    {
        address account = _msgSender();
        uint256 amountToReward = _getPlanetCashoutRewards(_planetId);
        _cashoutReward(amountToReward);

        emit Cashout(account, _planetId, amountToReward);
    }

    function cashoutAll() external nonReentrant onlyPlanetOwner whenNotPaused {
        address account = _msgSender();
        uint256 rewardsTotal = 0;
        uint256[] memory planetsOwned = getPlanetIdsOf(account);
        for (uint256 i = 0; i < planetsOwned.length; i++) {
            uint256 amountToReward = _getPlanetCashoutRewards(planetsOwned[i]);
            rewardsTotal += amountToReward;
        }
        _cashoutReward(rewardsTotal);

        emit CashoutAll(account, planetsOwned, rewardsTotal);
    }

    function compoundReward(uint256 _planetId)
        external
        nonReentrant
        onlyPlanetOwner
        checkPermissions(_planetId)
        whenNotPaused
    {
        _compoundReward(_planetId);
    }

    function _compoundReward(uint256 _planetId) private {
        address account = _msgSender();

        uint256 amountToCompound = _getPlanetCompoundRewards(_planetId);
        require(
            amountToCompound > 0,
            "Planets: You must wait until you can compound again"
        );
        liquidityReward(amountToCompound);

        emit Compound(account, _planetId, amountToCompound);
    }

    function compoundAll() external nonReentrant onlyPlanetOwner whenNotPaused {
        address account = _msgSender();
        uint256 amountsToCompound = 0;
        uint256[] memory planetsOwned = getPlanetIdsOf(account);
        uint256[] memory planetsAffected = new uint256[](planetsOwned.length);

        for (uint256 i = 0; i < planetsOwned.length; i++) {
            uint256 amountToCompound = _getPlanetCompoundRewards(
                planetsOwned[i]
            );
            if (amountToCompound > 0) {
                planetsAffected[i] = planetsOwned[i];
                amountsToCompound += amountToCompound;
            } else {
                delete planetsAffected[i];
            }
        }

        require(amountsToCompound > 0, "Planets: No rewards to compound");
        liquidityReward(amountsToCompound);

        emit CompoundAll(account, planetsAffected, amountsToCompound);
    }

    // Private reward functions

    function _getPlanetCashoutRewards(uint256 _planetId)
        private
        returns (uint256)
    {
        PlanetEntity storage planet = _planets[_planetId];

        if (!isProcessable(planet)) {
            return 0;
        }

        uint256 reward = calculateReward(planet);
        planet.totalClaimed += reward;

        if (planet.rewardMult != tierLevel[0]) {
            logTier(planet.rewardMult, -int256(planet.planetValue));
            logTier(tierLevel[0], int256(planet.planetValue));
        }

        planet.rewardMult = tierLevel[0];
        planet.lastProcessingTimestamp = block.timestamp;

        return reward;
    }

    function _getPlanetCompoundRewards(uint256 _planetId)
        private
        returns (uint256)
    {
        PlanetEntity storage planet = _planets[_planetId];

        if (!isProcessable(planet)) {
            return 0;
        }

        uint256 reward = calculateReward(planet);
        if (reward > 0) {
            totalValueLocked += reward;

            logTier(planet.rewardMult, -int256(planet.planetValue));

            planet.lastProcessingTimestamp = block.timestamp;
            planet.planetValue += reward;
            planet.rewardMult += increaseMultiplier(planet.rewardMult);

            logTier(planet.rewardMult, int256(planet.planetValue));
        }
        return reward;
    }

    function _cashoutReward(uint256 amountToReward) private {
        require(
            amountToReward > 0,
            "Planets: You don't have enough reward to cash out"
        );
        address to = _msgSender();
        universe.accountReward(to, amountToReward);

        // Send the minted fee to the contract where liquidity will be added later on
        liquidityReward(amountToReward);
    }

    function logTier(uint256 mult, int256 amount) private {
        TierStorage storage tierStorage = _tierTracking[mult];
        if (tierStorage.exists) {
            require(
                tierStorage.rewardMult == mult,
                "Planets: rewardMult does not match in TierStorage"
            );
            uint256 amountLockedInTier = uint256(
                int256(tierStorage.amountLockedInTier) + amount
            );
            require(
                amountLockedInTier >= 0,
                "Planets: amountLockedInTier cannot underflow"
            );
            tierStorage.amountLockedInTier = amountLockedInTier;
        } else {
            // Tier isn't registered exist, register it
            require(
                amount > 0,
                "Planets: Fatal error while creating new TierStorage. Amount cannot be below zero."
            );
            _tierTracking[mult] = TierStorage({
                rewardMult: mult,
                amountLockedInTier: uint256(amount),
                exists: true
            });
            _tiersTracked.push(mult);
        }
    }

    // Private view functions

    function getPercentageOf(uint256 rewardAmount, uint256 _feeAmount)
        private
        pure
        returns (uint256, uint256)
    {
        uint256 feeAmount = 0;
        if (_feeAmount > 0) {
            feeAmount = (rewardAmount * _feeAmount) / 100;
        }
        return (rewardAmount - feeAmount, feeAmount);
    }

    function increaseMultiplier(uint256 prevMult)
        private
        view
        returns (uint256)
    {
        if (prevMult >= tierLevel[5]) {
            return 0;
        } else if (prevMult >= tierLevel[4]) {
            return 150;
        } else if (prevMult >= tierLevel[3]) {
            return 200;
        } else if (prevMult >= tierLevel[2]) {
            return 400;
        } else if (prevMult >= tierLevel[1]) {
            return 800;
        } else {
            return 1600;
        }
    }

    function getTieredRevenues(uint256 mult) private view returns (uint256) {
        // 1% is 11574
        if (mult >= tierLevel[4]) {
            // Sun 2.18%
            return 25231;
        } else if (mult >= tierLevel[3]) {
            // Jupiter 2.14%
            return 24768;
        } else if (mult >= tierLevel[2]) {
            // Neptune 2.10%
            return 24305;
        } else if (mult >= tierLevel[1]) {
            // Earth 1.10%
            return 12731;
        } else if (mult > tierLevel[0]) {
            // Mars 1%
            return 11574;
        } else {
            // Mercury 0.87%
            return 10069;
        }
    }

    function isProcessable(PlanetEntity memory planet)
        private
        view
        returns (bool)
    {
        return block.timestamp >= planet.lastProcessingTimestamp + ONE_DAY;
    }

    function calculateReward(PlanetEntity memory planet)
        private
        view
        returns (uint256)
    {
        return
            _calculateRewardsFromValue(
                planet.planetValue,
                getTieredRevenues(planet.rewardMult),
                planet.rewardMult,
                block.timestamp - planet.lastProcessingTimestamp
            );
    }

    function rewardPerDayFor(PlanetEntity memory planet)
        private
        view
        returns (uint256)
    {
        return
            _calculateRewardsFromValue(
                planet.planetValue,
                getTieredRevenues(planet.rewardMult),
                planet.rewardMult,
                ONE_DAY
            );
    }

    function _calculateRewardsFromValue(
        uint256 _planetValue,
        uint256 _rewardPercentage,
        uint256 _rewardMult,
        uint256 _timeRewards
    ) private pure returns (uint256) {
        uint256 rewards = (_timeRewards * _rewardPercentage) / 1000000;
        uint256 rewardsMultiplicated = (rewards * _rewardMult) / 100000;
        return (rewardsMultiplicated * _planetValue) / 100000;
    }

    function planetExists(uint256 _planetId) private view returns (bool) {
        require(_planetId > 0, "Planets: Id must be higher than zero");
        PlanetEntity memory planet = _planets[_planetId];
        if (planet.exists) {
            return true;
        }
        return false;
    }

    // Public view functions

    function calculateTotalDailyEmission() external view returns (uint256) {
        uint256 dailyEmission = 0;
        for (uint256 i = 0; i < _tiersTracked.length; i++) {
            TierStorage memory tierStorage = _tierTracking[_tiersTracked[i]];
            dailyEmission += _calculateRewardsFromValue(
                tierStorage.amountLockedInTier,
                getTieredRevenues(tierStorage.rewardMult),
                tierStorage.rewardMult,
                ONE_DAY
            );
        }
        return dailyEmission;
    }

    function isOwnerOfPlanets(address account) public view returns (bool) {
        return balanceOf(account) > 0;
    }

    function isApprovedOrOwnerOfPlanet(address account, uint256 _planetId)
        public
        view
        returns (bool)
    {
        return _isApprovedOrOwner(account, _planetId);
    }

    function getPlanetIdsOf(address account)
        public
        view
        returns (uint256[] memory)
    {
        uint256 numberOfPlanets = balanceOf(account);
        uint256[] memory planetIds = new uint256[](numberOfPlanets);
        for (uint256 i = 0; i < numberOfPlanets; i++) {
            uint256 planetId = tokenOfOwnerByIndex(account, i);
            require(
                planetExists(planetId),
                "Planets: This planet doesn't exist"
            );
            planetIds[i] = planetId;
        }
        return planetIds;
    }

    function getPlanetsByIds(uint256[] memory _planetIds)
        external
        view
        returns (PlanetInfoEntity[] memory)
    {
        PlanetInfoEntity[] memory planetsInfo = new PlanetInfoEntity[](
            _planetIds.length
        );

        for (uint256 i = 0; i < _planetIds.length; i++) {
            uint256 planetId = _planetIds[i];
            PlanetEntity memory planet = _planets[planetId];
            uint256 amountToReward = calculateReward(planet);
            uint256 amountToRewardDaily = rewardPerDayFor(planet);
            planetsInfo[i] = PlanetInfoEntity(
                planet,
                planetId,
                amountToReward,
                amountToRewardDaily,
                ONE_DAY,
                0,
                0
            );
        }
        return planetsInfo;
    }

    // Owner functions

    function changeNodeMinPrice(uint256 _creationMinPrice) public onlyOwner {
        require(
            _creationMinPrice > 0,
            "Planets: Minimum price to create a Planet must be above 0"
        );
        creationMinPrice = _creationMinPrice;
    }

    function changeTierSystem(uint24[6] memory _tierLevel) public onlyOwner {
        require(
            _tierLevel.length == 6,
            "Planets: newTierLevels length has to be 6"
        );
        tierLevel = _tierLevel;
    }

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    function burn(uint256 _planetId)
        external
        virtual
        nonReentrant
        onlyPlanetOwner
        whenNotPaused
        checkPermissions(_planetId)
    {
        _burn(_planetId);
    }

    function getBurnedFromServiceFees() external view returns (uint256) {
        return burnedFromRenaming + burnedFromMerging;
    }

    function liquidityReward(uint256 amountToReward) private {
        (, uint256 liquidityFee) = getPercentageOf(
            amountToReward,
            5 // Mint the 5% Treasury fee
        );
        universe.liquidityReward(liquidityFee);
    }

    // Mandatory overrides

    function _burn(uint256 tokenId)
        internal
        override(ERC721URIStorageUpgradeable, ERC721Upgradeable)
    {
        PlanetEntity storage planet = _planets[tokenId];
        planet.exists = false;
        logTier(planet.rewardMult, -int256(planet.planetValue));
        ERC721Upgradeable._burn(tokenId);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    )
        internal
        virtual
        override(ERC721Upgradeable, ERC721EnumerableUpgradeable)
        whenNotPaused
    {
        super._beforeTokenTransfer(from, to, amount);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721Upgradeable, ERC721EnumerableUpgradeable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 25 : UniverseImplementationPointerUpgradeable.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.11;

import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";

import "../../contracts/interfaces/IUniverse.sol";

abstract contract UniverseImplementationPointerUpgradeable is OwnableUpgradeable {
    IUniverse internal universe;

    event UpdateUniverse(
        address indexed oldImplementation,
        address indexed newImplementation
    );

    modifier onlyUniverse() {
        require(
            address(universe) != address(0),
            "Implementations: Universe is not set"
        );
        address sender = _msgSender();
        require(
            sender == address(universe),
            "Implementations: Not Universe"
        );
        _;
    }

    function getUniverseImplementation() public view returns (address) {
        return address(universe);
    }

    function changeUniverseImplementation(address newImplementation)
        public
        virtual
        onlyOwner
    {
        address oldImplementation = address(universe);
        require(
            AddressUpgradeable.isContract(newImplementation) ||
                newImplementation == address(0),
            "Universe: You can only set 0x0 or a contract address as a new implementation"
        );
        universe = IUniverse(newImplementation);
        emit UpdateUniverse(oldImplementation, newImplementation);
    }

    uint256[49] private __gap;
}

File 3 of 25 : LiquidityPoolManagerImplementationPointerUpgradeable.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.11;

import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";

import "../../contracts/interfaces/ILiquidityPoolManager.sol";

abstract contract LiquidityPoolManagerImplementationPointerUpgradeable is OwnableUpgradeable {
    ILiquidityPoolManager internal liquidityPoolManager;

    event UpdateLiquidityPoolManager(
        address indexed oldImplementation,
        address indexed newImplementation
    );

    modifier onlyLiquidityPoolManager() {
        require(
            address(liquidityPoolManager) != address(0),
            "Implementations: LiquidityPoolManager is not set"
        );
        address sender = _msgSender();
        require(
            sender == address(liquidityPoolManager),
            "Implementations: Not LiquidityPoolManager"
        );
        _;
    }

    function getLiquidityPoolManagerImplementation() public view returns (address) {
        return address(liquidityPoolManager);
    }

    function changeLiquidityPoolManagerImplementation(address newImplementation)
        public
        virtual
        onlyOwner
    {
        address oldImplementation = address(liquidityPoolManager);
        require(
            AddressUpgradeable.isContract(newImplementation) ||
                newImplementation == address(0),
            "LiquidityPoolManager: You can only set 0x0 or a contract address as a new implementation"
        );
        liquidityPoolManager = ILiquidityPoolManager(newImplementation);
        emit UpdateLiquidityPoolManager(oldImplementation, newImplementation);
    }

    uint256[49] private __gap;
}

File 4 of 25 : IUniverse.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.11;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IUniverse is IERC20 {
    function owner() external view returns (address);

    function accountBurn(address account, uint256 amount) external;

    function accountReward(address account, uint256 amount) external;

    function liquidityReward(uint256 amount) external;
}

File 5 of 25 : ILiquidityPoolManager.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.11;

interface ILiquidityPoolManager {
    function owner() external view returns (address);

    function getRouter() external view returns (address);

    function getPair() external view returns (address);

    function getLeftSide() external view returns (address);

    function getRightSide() external view returns (address);

    function isPair(address _pair) external view returns (bool);

    function isRouter(address _router) external view returns (bool);

    function isFeeReceiver(address _receiver) external view returns (bool);

    function isLiquidityIntact() external view returns (bool);

    function isLiquidityAdded() external view returns (bool);

    function afterTokenTransfer(address sender) external returns (bool);
}

File 6 of 25 : OwnerRecoveryUpgradeable.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.11;
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";

abstract contract OwnerRecoveryUpgradeable is OwnableUpgradeable {
    function recoverLostAVAX() external onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    function recoverLostTokens(
        address _token,
        address _to,
        uint256 _amount
    ) external onlyOwner {
        IERC20Upgradeable(_token).transfer(_to, _amount);
    }

    uint256[50] private __gap;
}

File 7 of 25 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

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

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }
    uint256[50] private __gap;
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 11 of 25 : CountersUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}

File 13 of 25 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../ERC721Upgradeable.sol";
import "../../../proxy/utils/Initializable.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorageUpgradeable is Initializable, ERC721Upgradeable {
    function __ERC721URIStorage_init() internal onlyInitializing {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC721URIStorage_init_unchained();
    }

    function __ERC721URIStorage_init_unchained() internal onlyInitializing {
    }
    using StringsUpgradeable for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

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

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
    uint256[49] private __gap;
}

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

pragma solidity ^0.8.0;

import "../ERC721Upgradeable.sol";
import "./IERC721EnumerableUpgradeable.sol";
import "../../../proxy/utils/Initializable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721EnumerableUpgradeable is Initializable, ERC721Upgradeable, IERC721EnumerableUpgradeable {
    function __ERC721Enumerable_init() internal onlyInitializing {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC721Enumerable_init_unchained();
    }

    function __ERC721Enumerable_init_unchained() internal onlyInitializing {
    }
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 20 of 25 : ERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721Upgradeable.sol";
import "./IERC721ReceiverUpgradeable.sol";
import "./extensions/IERC721MetadataUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../utils/StringsUpgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 21 of 25 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 22 of 25 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ReentrancyGuardUpgradeable is Initializable {
    // 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;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _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;
    }
    uint256[49] private __gap;
}

File 23 of 25 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

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

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

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal onlyInitializing {
        __Context_init_unchained();
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        _paused = false;
    }

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

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

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

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

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

File 24 of 25 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

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

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"planetId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"name":"Cashout","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256[]","name":"affectedPlanets","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"name":"CashoutAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"planetId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountToCompound","type":"uint256"}],"name":"Compound","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256[]","name":"affectedPlanets","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"amountToCompound","type":"uint256"}],"name":"CompoundAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"newPlanetId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Create","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256[]","name":"planetIds","type":"uint256[]"},{"indexed":true,"internalType":"string","name":"name","type":"string"},{"indexed":true,"internalType":"uint256","name":"previousTotalValue","type":"uint256"}],"name":"Merge","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"string","name":"previousName","type":"string"},{"indexed":true,"internalType":"string","name":"newName","type":"string"}],"name":"Rename","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldImplementation","type":"address"},{"indexed":true,"internalType":"address","name":"newImplementation","type":"address"}],"name":"UpdateLiquidityPoolManager","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldImplementation","type":"address"},{"indexed":true,"internalType":"address","name":"newImplementation","type":"address"}],"name":"UpdateUniverse","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_planetId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnedFromMerging","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnedFromRenaming","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculateTotalDailyEmission","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cashoutAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_planetId","type":"uint256"}],"name":"cashoutReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"changeLiquidityPoolManagerImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_creationMinPrice","type":"uint256"}],"name":"changeNodeMinPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24[6]","name":"_tierLevel","type":"uint24[6]"}],"name":"changeTierSystem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"changeUniverseImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"compoundAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"compoundDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_planetId","type":"uint256"}],"name":"compoundReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"planetName","type":"string"},{"internalType":"uint256","name":"planetValue","type":"uint256"}],"name":"createPlanetWithTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"creationMinPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBurnedFromServiceFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLiquidityPoolManagerImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getPlanetIdsOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_planetIds","type":"uint256[]"}],"name":"getPlanetsByIds","outputs":[{"components":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"creationTime","type":"uint256"},{"internalType":"uint256","name":"lastProcessingTimestamp","type":"uint256"},{"internalType":"uint256","name":"rewardMult","type":"uint256"},{"internalType":"uint256","name":"planetValue","type":"uint256"},{"internalType":"uint256","name":"totalClaimed","type":"uint256"},{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"bool","name":"isMerged","type":"bool"}],"internalType":"struct PlanetsManagerUpgradeable.PlanetEntity","name":"planet","type":"tuple"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"pendingRewards","type":"uint256"},{"internalType":"uint256","name":"rewardPerDay","type":"uint256"},{"internalType":"uint256","name":"compoundDelay","type":"uint256"},{"internalType":"uint256","name":"pendingRewardsGross","type":"uint256"},{"internalType":"uint256","name":"rewardPerDayGross","type":"uint256"}],"internalType":"struct PlanetsManagerUpgradeable.PlanetInfoEntity[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUniverseImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":"account","type":"address"},{"internalType":"uint256","name":"_planetId","type":"uint256"}],"name":"isApprovedOrOwnerOfPlanet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isOwnerOfPlanets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_planetIds","type":"uint256[]"},{"internalType":"string","name":"planetName","type":"string"}],"name":"mergePlanets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"processingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoverLostAVAX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"recoverLostTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_planetId","type":"uint256"},{"internalType":"string","name":"planetName","type":"string"}],"name":"renamePlanet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerDay","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tierLevel","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tierSlope","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalValueLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061522c806100206000396000f3fe608060405234801561001057600080fd5b50600436106103425760003560e01c80638129fc1c116101b8578063b88d4fde11610104578063e175ceef116100a2578063ec18154e1161007c578063ec18154e14610705578063f0af7c141461070f578063f2fde38b14610722578063f3c391d11461073557600080fd5b8063e175ceef146106a1578063e985e9c5146106c1578063e98bc9f5146106fd57600080fd5b8063d0983716116100de578063d09837161461065d578063d25e336914610683578063de1881a81461068d578063dfe59ed41461069757600080fd5b8063b88d4fde14610608578063c87b56dd1461061b578063cce222c51461064b57600080fd5b806399497e0111610171578063a647c9ff1161014b578063a647c9ff146105bc578063a74c0906146105c4578063aac26e7a146105d7578063af8f42b8146105fe57600080fd5b806399497e01146105815780639b05ddb3146105a1578063a22cb465146105a957600080fd5b80638129fc1c146105455780638456cb591461054d5780638504565b146105555780638da5cb5b1461055d57806393399b7e1461056f57806395d89b411461057957600080fd5b8063477a462b116102925780636352211e1161023057806370a082311161020a57806370a0823114610504578063715018a61461051757806371acb3501461051f5780638005f7351461053257600080fd5b80636352211e146104cb57806365bfe430146104de5780636abec082146104f157600080fd5b8063545579731161026c57806354557973146104935780635c975abb1461049b57806361dec354146104a65780636334b724146104b957600080fd5b8063477a462b1461045a5780634f6ccce71461046d57806351c383a51461048057600080fd5b806323b872dd116102ff5780633f4ba83a116102d95780633f4ba83a146104195780634060e2571461042157806342842e0e1461043457806342966c681461044757600080fd5b806323b872dd146103e05780632d9ecafb146103f35780632f745c591461040657600080fd5b806301ffc9a71461034757806306fdde031461036f578063081812fc14610384578063095ea7b3146103af57806318160ddd146103c457806321fa7e29146103d6575b600080fd5b61035a610355366004614635565b610748565b60405190151581526020015b60405180910390f35b610377610759565b60405161036691906146aa565b6103976103923660046146bd565b6107eb565b6040516001600160a01b039091168152602001610366565b6103c26103bd3660046146ed565b610885565b005b6099545b604051908152602001610366565b6103c861022c5481565b6103c26103ee366004614717565b61099b565b6103c2610401366004614753565b6109cc565b6103c86104143660046146ed565b610b04565b6103c2610b9a565b6103c261042f3660046146bd565b610bcf565b6103c2610442366004614717565b610cc1565b6103c26104553660046146bd565b610cdc565b61035a610468366004614753565b610dc2565b6103c861047b3660046146bd565b610dd5565b6103c261048e366004614753565b610e68565b6103c2610f8f565b60fb5460ff1661035a565b6103c26104b4366004614717565b6110ef565b6101c3546001600160a01b0316610397565b6103976104d93660046146bd565b611193565b6103c26104ec3660046146bd565b61120a565b6103c26104ff3660046147b5565b611350565b6103c8610512366004614753565b61138d565b6103c2611414565b61035a61052d3660046146ed565b611449565b6103c26105403660046146bd565b61145c565b6103c2611503565b6103c2611691565b6103c86116c4565b61012d546001600160a01b0316610397565b6103c861022d5481565b610377611779565b61059461058f3660046148ba565b611788565b60405161036691906148ef565b6103c26119ab565b6103c26105b7366004614a28565b611c04565b6103c2611c0f565b6103c26105d2366004614ad7565b611c74565b6105ea6105e53660046146bd565b611f45565b60405162ffffff9091168152602001610366565b6103c861022b5481565b6103c2610616366004614b1e565b611f75565b6103776106293660046146bd565b506040805180820190915260078152665573652041504960c81b602082015290565b6101f5546001600160a01b0316610397565b61067061066b3660046146bd565b611fa7565b60405161ffff9091168152602001610366565b6103c86102335481565b6103c861022e5481565b6103c86102325481565b6106b46106af366004614753565b611fd6565b6040516103669190614b9a565b61035a6106cf366004614bde565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b6103c86120a3565b6103c86102315481565b6103c861071d366004614c11565b6120bc565b6103c2610730366004614753565b61213b565b6103c8610743366004614c56565b6121d4565b600061075382612907565b92915050565b60606065805461076890614cb0565b80601f016020809104026020016040519081016040528092919081815260200182805461079490614cb0565b80156107e15780601f106107b6576101008083540402835291602001916107e1565b820191906000526020600020905b8154815290600101906020018083116107c457829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b03166108695760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b600061089082611193565b9050806001600160a01b0316836001600160a01b031614156108fe5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610860565b336001600160a01b038216148061091a575061091a81336106cf565b61098c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610860565b610996838361292c565b505050565b6109a5338261299a565b6109c15760405162461bcd60e51b815260040161086090614ce5565b610996838383612a91565b61012d546001600160a01b031633146109f75760405162461bcd60e51b815260040161086090614d36565b6101f5546001600160a01b0316813b151580610a1a57506001600160a01b038216155b610ab25760405162461bcd60e51b815260206004820152605860248201527f4c6971756964697479506f6f6c4d616e616765723a20596f752063616e206f6e60448201527f6c792073657420307830206f72206120636f6e7472616374206164647265737360648201527f2061732061206e657720696d706c656d656e746174696f6e0000000000000000608482015260a401610860565b6101f580546001600160a01b0319166001600160a01b0384811691821790925560405190918316907fdcde9a93392ce8f6a02392dc08f42df39d1fb10ce386c7e9c6c1faba80b2a42490600090a35050565b6000610b0f8361138d565b8210610b715760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610860565b506001600160a01b03919091166000908152609760209081526040808320938352929052205490565b61012d546001600160a01b03163314610bc55760405162461bcd60e51b815260040161086090614d36565b610bcd612c3c565b565b6002610191541415610bf35760405162461bcd60e51b815260040161086090614d6b565b6002610191553380610c175760405162461bcd60e51b815260040161086090614da2565b610c2081610dc2565b610c3c5760405162461bcd60e51b815260040161086090614dea565b8133610c4782612ccf565b610c635760405162461bcd60e51b815260040161086090614e32565b610c6d8183611449565b610c895760405162461bcd60e51b815260040161086090614e74565b60fb5460ff1615610cac5760405162461bcd60e51b815260040161086090614ec5565b610cb584612e59565b50506001610191555050565b61099683838360405180602001604052806000815250611f75565b6002610191541415610d005760405162461bcd60e51b815260040161086090614d6b565b6002610191553380610d245760405162461bcd60e51b815260040161086090614da2565b610d2d81610dc2565b610d495760405162461bcd60e51b815260040161086090614dea565b60fb5460ff1615610d6c5760405162461bcd60e51b815260040161086090614ec5565b8133610d7782612ccf565b610d935760405162461bcd60e51b815260040161086090614e32565b610d9d8183611449565b610db95760405162461bcd60e51b815260040161086090614e74565b610cb584612f25565b600080610dce8361138d565b1192915050565b6000610de060995490565b8210610e435760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610860565b60998281548110610e5657610e56614eef565b90600052602060002001549050919050565b61012d546001600160a01b03163314610e935760405162461bcd60e51b815260040161086090614d36565b6101c3546001600160a01b0316813b151580610eb657506001600160a01b038216155b610f3d5760405162461bcd60e51b815260206004820152604c60248201527f556e6976657273653a20596f752063616e206f6e6c792073657420307830206f60448201527f72206120636f6e747261637420616464726573732061732061206e657720696d60648201526b383632b6b2b73a30ba34b7b760a11b608482015260a401610860565b6101c380546001600160a01b0319166001600160a01b0384811691821790925560405190918316907ff4146d7b1dd40aca6b1e9333e0c48610f28d34d428a7ba4bd09b925d75ae12f590600090a35050565b6002610191541415610fb35760405162461bcd60e51b815260040161086090614d6b565b6002610191553380610fd75760405162461bcd60e51b815260040161086090614da2565b610fe081610dc2565b610ffc5760405162461bcd60e51b815260040161086090614dea565b60fb5460ff161561101f5760405162461bcd60e51b815260040161086090614ec5565b3360008061102c83611fd6565b905060005b815181101561108057600061105e83838151811061105157611051614eef565b6020026020010151612f61565b905061106a8185614f1b565b935050808061107890614f33565b915050611031565b5061108a82613132565b806040516110989190614f4e565b6040518091039020836001600160a01b03167fb19b49535c30c050254f8a50fbb3d50f125497777abe768053959123e48f1baf846040516110db91815260200190565b60405180910390a350506001610191555050565b61012d546001600160a01b0316331461111a5760405162461bcd60e51b815260040161086090614d36565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af1158015611169573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118d9190614f84565b50505050565b6000818152606760205260408120546001600160a01b0316806107535760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610860565b600261019154141561122e5760405162461bcd60e51b815260040161086090614d6b565b60026101915533806112525760405162461bcd60e51b815260040161086090614da2565b61125b81610dc2565b6112775760405162461bcd60e51b815260040161086090614dea565b813361128282612ccf565b61129e5760405162461bcd60e51b815260040161086090614e32565b6112a88183611449565b6112c45760405162461bcd60e51b815260040161086090614e74565b60fb5460ff16156112e75760405162461bcd60e51b815260040161086090614ec5565b3360006112f386612f61565b90506112fe81613132565b85826001600160a01b03167f4f32a1005fcf45a64a68bc4258b4e0f5522b7aa6a06506781aa4e6c6395c48d08360405161133a91815260200190565b60405180910390a3505060016101915550505050565b61012d546001600160a01b0316331461137b5760405162461bcd60e51b815260040161086090614d36565b61138961022f82600661446f565b5050565b60006001600160a01b0382166113f85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610860565b506001600160a01b031660009081526068602052604090205490565b61012d546001600160a01b0316331461143f5760405162461bcd60e51b815260040161086090614d36565b610bcd6000613211565b6000611455838361299a565b9392505050565b61012d546001600160a01b031633146114875760405162461bcd60e51b815260040161086090614d36565b600081116114fd5760405162461bcd60e51b815260206004820152603960248201527f506c616e6574733a204d696e696d756d20707269636520746f2063726561746560448201527f206120506c616e6574206d7573742062652061626f76652030000000000000006064820152608401610860565b61022c55565b600054610100900460ff1661151e5760005460ff1615611522565b303b155b6115855760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610860565b600054610100900460ff161580156115a7576000805461ffff19166101011790555b6115f960405180604001604052806012815260200171556e6976657273652045636f73797374656d60701b8152506040518060400160405280600681526020016514131053915560d21b815250613264565b6116016132a5565b6116096132dc565b6116116132dc565b61161961331b565b61162161334a565b61163469152d02c7e14af680000061145c565b6040805160c081018252620186a0815262019a2860208201526201adb0918101919091526201d4c060608201526201fbd06080820152620222e060a082015261167c90611350565b801561168e576000805461ff00191690555b50565b61012d546001600160a01b031633146116bc5760405162461bcd60e51b815260040161086090614d36565b610bcd613381565b600080805b61022a54811015611773576000610229600061022a84815481106116ef576116ef614eef565b60009182526020808320909101548352828101939093526040918201902081516060810183528154808252600183015494820185905260029092015460ff161515928101929092529092506117539190611748906133d9565b835162015180613482565b61175d9084614f1b565b925050808061176b90614f33565b9150506116c9565b50919050565b60606066805461076890614cb0565b60606000825167ffffffffffffffff8111156117a6576117a661476e565b6040519080825280602002602001820160405280156117df57816020015b6117cc614508565b8152602001906001900390816117c45790505b50905060005b83518110156119a457600084828151811061180257611802614eef565b6020026020010151905060006102286000838152602001908152602001600020604051806101200160405290816000820154815260200160018201805461184890614cb0565b80601f016020809104026020016040519081016040528092919081815260200182805461187490614cb0565b80156118c15780601f10611896576101008083540402835291602001916118c1565b820191906000526020600020905b8154815290600101906020018083116118a457829003601f168201915b505050918352505060028201546020820152600382015460408201526004820154606082015260058201546080820152600682015460a082015260079091015460ff808216151560c084015261010090910416151560e09091015290506000611929826134de565b905060006119368361350e565b90506040518060e0016040528084815260200185815260200183815260200182815260200162015180815260200160008152602001600081525086868151811061198257611982614eef565b602002602001018190525050505050808061199c90614f33565b9150506117e5565b5092915050565b60026101915414156119cf5760405162461bcd60e51b815260040161086090614d6b565b60026101915533806119f35760405162461bcd60e51b815260040161086090614da2565b6119fc81610dc2565b611a185760405162461bcd60e51b815260040161086090614dea565b60fb5460ff1615611a3b5760405162461bcd60e51b815260040161086090614ec5565b33600080611a4883611fd6565b90506000815167ffffffffffffffff811115611a6657611a6661476e565b604051908082528060200260200182016040528015611a8f578160200160208202803683370190505b50905060005b8251811015611b44576000611ac2848381518110611ab557611ab5614eef565b6020026020010151613533565b90508015611b1257838281518110611adc57611adc614eef565b6020026020010151838381518110611af657611af6614eef565b6020908102919091010152611b0b8186614f1b565b9450611b31565b828281518110611b2457611b24614eef565b6020026020010160008152505b5080611b3c81614f33565b915050611a95565b5060008311611b955760405162461bcd60e51b815260206004820152601f60248201527f506c616e6574733a204e6f207265776172647320746f20636f6d706f756e64006044820152606401610860565b611b9e83613643565b80604051611bac9190614f4e565b6040518091039020846001600160a01b03167ff6fa3b3c4cc7c3050320415a19ca5bae8e2029684a976274a45e4165eedfcd9b85604051611bef91815260200190565b60405180910390a35050600161019155505050565b6113893383836136b5565b61012d546001600160a01b03163314611c3a5760405162461bcd60e51b815260040161086090614d36565b61012d546040516001600160a01b03909116904780156108fc02916000818181858888f1935050505015801561168e573d6000803e3d6000fd5b6002610191541415611c985760405162461bcd60e51b815260040161086090614d6b565b6002610191553380611cbc5760405162461bcd60e51b815260040161086090614da2565b611cc581610dc2565b611ce15760405162461bcd60e51b815260040161086090614dea565b8233611cec82612ccf565b611d085760405162461bcd60e51b815260040161086090614e32565b611d128183611449565b611d2e5760405162461bcd60e51b815260040161086090614e74565b60fb5460ff1615611d515760405162461bcd60e51b815260040161086090614ec5565b8360018151118015611d64575060208151105b611d805760405162461bcd60e51b815260040161086090614fa1565b6000868152610228602052604090206005810154339190611ddc5760405162461bcd60e51b81526020600482015260166024820152754572726f723a20506c616e657420697320656d70747960501b6044820152606401610860565b600080611dee8360050154600161377c565b91509150611e09836004015482611e0490614ffe565b6137b3565b806102326000828254611e1c9190614f1b565b90915550506005830182905560018301805460009190611e3b90614cb0565b80601f0160208091040260200160405190810160405280929190818152602001828054611e6790614cb0565b8015611eb45780601f10611e8957610100808354040283529160200191611eb4565b820191906000526020600020905b815481529060010190602001808311611e9757829003601f168201915b50508d51939450611ed29360018901935060208f0192509050614596565b5089604051611ee1919061501b565b604051809103902081604051611ef7919061501b565b604051908190038120906001600160a01b038816907f0d48d45af1b1b964a93dad6fe3f832865a8b610c6364bd1850790e2c74e535ce90600090a45050600161019155505050505050505050565b61022f8160068110611f5657600080fd5b600a9182820401919006600302915054906101000a900462ffffff1681565b611f7f338361299a565b611f9b5760405162461bcd60e51b815260040161086090614ce5565b61118d84848484613964565b6102308160068110611fb857600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b60606000611fe38361138d565b905060008167ffffffffffffffff8111156120005761200061476e565b604051908082528060200260200182016040528015612029578160200160208202803683370190505b50905060005b8281101561209b5760006120438683610b04565b905061204e81612ccf565b61206a5760405162461bcd60e51b815260040161086090614e32565b8083838151811061207d5761207d614eef565b6020908102919091010152508061209381614f33565b91505061202f565b509392505050565b600061023354610232546120b79190614f1b565b905090565b600060026101915414156120e25760405162461bcd60e51b815260040161086090614d6b565b60026101915560fb5460ff161561210b5760405162461bcd60e51b815260040161086090614ec5565b61211a61022780546001019055565b61212e83836121296102275490565b613997565b6001610191559392505050565b61012d546001600160a01b031633146121665760405162461bcd60e51b815260040161086090614d36565b6001600160a01b0381166121cb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610860565b61168e81613211565b600060026101915414156121fa5760405162461bcd60e51b815260040161086090614d6b565b600261019155338061221e5760405162461bcd60e51b815260040161086090614da2565b61222781610dc2565b6122435760405162461bcd60e51b815260040161086090614dea565b833360005b82518110156123205761227383828151811061226657612266614eef565b6020026020010151612ccf565b61228f5760405162461bcd60e51b815260040161086090614e32565b6122b2828483815181106122a5576122a5614eef565b6020026020010151611449565b61230e5760405162461bcd60e51b815260206004820152602760248201527f506c616e6574733a20596f7520646f206e6f7420636f6e74726f6c207468697360448201526608141b185b995d60ca1b6064820152608401610860565b8061231881614f33565b915050612248565b5060fb5460ff16156123445760405162461bcd60e51b815260040161086090614ec5565b855133906001106123d85760405162461bcd60e51b815260206004820152605260248201527f506c616e6574734d616e616765723a204174206c65617374203220506c616e6560448201527f7473206d7573742062652073656c656374656420696e206f7264657220666f7260648201527120746865206d6572676520746f20776f726b60701b608482015260a401610860565b6000806000805b8a5181101561263f57600061022860008d848151811061240157612401614eef565b60200260200101518152602001908152602001600020905061251c81604051806101200160405290816000820154815260200160018201805461244390614cb0565b80601f016020809104026020016040519081016040528092919081815260200182805461246f90614cb0565b80156124bc5780601f10612491576101008083540402835291602001916124bc565b820191906000526020600020905b81548152906001019060200180831161249f57829003601f168201915b505050918352505060028201546020820152600382015460408201526004820154606082015260058201546080820152600682015460a082015260079091015460ff808216151560c084015261010090910416151560e090910152613ced565b6125c25760405162461bcd60e51b8152602060048201526064602482018190527f506c616e6574734d616e616765723a20466f72207468652070726f636573732060448301527f746f20776f726b2c20616c6c2073656c656374656420706c616e657473206d75908201527f737420626520636f6d706f756e6461626c652e2054727920616761696e206c616084820152633a32b91760e11b60a482015260c401610860565b80546125cd90612e59565b846125de57806004015494506125f2565b80600401548511156125f257806004015494505b83612600578054935061260e565b805484111561260e57805493505b600581015461261d9084614f1b565b925061262c8160000154612f25565b508061263781614f33565b9150506123df565b5061022f5462ffffff168310156126b45760405162461bcd60e51b815260206004820152603360248201527f506c616e6574734d616e616765723a20536f6d657468696e672077656e742077604482015272726f6e6720776974682074686520746965727360681b6064820152608401610860565b6000821161272a5760405162461bcd60e51b815260206004820152603760248201527f506c616e6574734d616e616765723a20536f6d657468696e672077656e74207760448201527f726f6e67207769746820746865206c6f776573742069640000000000000000006064820152608401610860565b60008061273883600261377c565b9150915080610233600082825461274f9190614f1b565b90915550506101c354604051639b5f7c6560e01b81526001600160a01b0388811660048301526024820185905290911690639b5f7c6590604401600060405180830381600087803b1580156127a357600080fd5b505af11580156127b7573d6000803e3d6000fd5b5050505060006127c88c8487613997565b905084811461283f5760405162461bcd60e51b815260206004820152603c60248201527f43757272656e7420506c616e65742073686f756c64206d61746368207468652060448201527f6c6f77657374206e756d626572206f6620796f757220506c616e6574000000006064820152608401610860565b60008181526102286020526040902060078101805461ff00191661010017905561022f5462ffffff16871461289b5761288481600401548260050154611e0490614ffe565b60048101879055600581015461289b9088906137b3565b848d6040516128aa919061501b565b60405180910390208f6040516128c09190614f4e565b604051908190038120907fd8ebfeebb050ae0645e12687d48419c0aef0d19fca90d7a2e73826885bb9f90d90600090a4506001610191559c9b505050505050505050505050565b60006001600160e01b0319821663780e9d6360e01b1480610753575061075382613d0b565b600081815260696020526040902080546001600160a01b0319166001600160a01b038416908117909155819061296182611193565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b0316612a135760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610860565b6000612a1e83611193565b9050806001600160a01b0316846001600160a01b03161480612a595750836001600160a01b0316612a4e846107eb565b6001600160a01b0316145b80612a8957506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612aa482611193565b6001600160a01b031614612b0c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610860565b6001600160a01b038216612b6e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610860565b612b79838383613d5b565b612b8460008261292c565b6001600160a01b0383166000908152606860205260408120805460019290612bad908490615037565b90915550506001600160a01b0382166000908152606860205260408120805460019290612bdb908490614f1b565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60fb5460ff16612c855760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610860565b60fb805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000808211612d2c5760405162461bcd60e51b8152602060048201526024808201527f506c616e6574733a204964206d75737420626520686967686572207468616e206044820152637a65726f60e01b6064820152608401610860565b600061022860008481526020019081526020016000206040518061012001604052908160008201548152602001600182018054612d6890614cb0565b80601f0160208091040260200160405190810160405280929190818152602001828054612d9490614cb0565b8015612de15780601f10612db657610100808354040283529160200191612de1565b820191906000526020600020905b815481529060010190602001808311612dc457829003601f168201915b505050918352505060028201546020820152600382015460408201526004820154606082015260058201546080820152600682015460a082015260079091015460ff808216151560c084015261010090910416151560e09182015281015190915015612e505750600192915050565b50600092915050565b336000612e6583613533565b905060008111612ed35760405162461bcd60e51b815260206004820152603360248201527f506c616e6574733a20596f75206d757374207761697420756e74696c20796f756044820152721031b0b71031b7b6b837bab7321030b3b0b4b760691b6064820152608401610860565b612edc81613643565b82826001600160a01b03167f0e311a2c6dbfb0153ec3a8a5bdca09070b3e5f60768fdc10a20453f38d18687383604051612f1891815260200190565b60405180910390a3505050565b60008181526102286020526040902060078101805460ff1916905560048101546005820154612f589190611e0490614ffe565b61138982613d89565b60008061022860008481526020019081526020016000209050612fa481604051806101200160405290816000820154815260200160018201805461244390614cb0565b612fb15750600092915050565b60006130b6826040518061012001604052908160008201548152602001600182018054612fdd90614cb0565b80601f016020809104026020016040519081016040528092919081815260200182805461300990614cb0565b80156130565780601f1061302b57610100808354040283529160200191613056565b820191906000526020600020905b81548152906001019060200180831161303957829003601f168201915b505050918352505060028201546020820152600382015460408201526004820154606082015260058201546080820152600682015460a082015260079091015460ff808216151560c084015261010090910416151560e0909101526134de565b9050808260060160008282546130cc9190614f1b565b909155505061022f54600483015462ffffff90911614613114576130fc82600401548360050154611e0490614ffe565b61022f5460058301546131149162ffffff16906137b3565b61022f5462ffffff1660048301554260039092019190915592915050565b6000811161319c5760405162461bcd60e51b815260206004820152603160248201527f506c616e6574733a20596f7520646f6e2774206861766520656e6f7567682072604482015270195dd85c99081d1bc818d85cda081bdd5d607a1b6064820152608401610860565b6000336101c354604051639b5f7c6560e01b81526001600160a01b03808416600483015260248201869052929350911690639b5f7c6590604401600060405180830381600087803b1580156131f057600080fd5b505af1158015613204573d6000803e3d6000fd5b5050505061138982613643565b61012d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff1661328b5760405162461bcd60e51b81526004016108609061504e565b613293613e30565b61329b613e30565b6113898282613e57565b600054610100900460ff166132cc5760405162461bcd60e51b81526004016108609061504e565b6132d4613e30565b610bcd613ea5565b600054610100900460ff166133035760405162461bcd60e51b81526004016108609061504e565b61330b613e30565b613313613e30565b610bcd613e30565b600054610100900460ff166133425760405162461bcd60e51b81526004016108609061504e565b610bcd613ed5565b600054610100900460ff166133715760405162461bcd60e51b81526004016108609061504e565b613379613e30565b610bcd613f04565b60fb5460ff16156133a45760405162461bcd60e51b815260040161086090614ec5565b60fb805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612cb23390565b61022f54600090600160601b900462ffffff1682106133fb575061628f919050565b61022f54600160481b900462ffffff16821061341a57506160c0919050565b61022f546601000000000000900462ffffff16821061343c5750615ef1919050565b61022f546301000000900462ffffff16821061345b57506131bb919050565b61022f5462ffffff168211156134745750612d36919050565b50612755919050565b919050565b600080620f42406134938685615099565b61349d91906150b8565b90506000620186a06134af8684615099565b6134b991906150b8565b9050620186a06134c98883615099565b6134d391906150b8565b979650505050505050565b60006107538260a001516134f584608001516133d9565b608085015160608601516135099042615037565b613482565b60006107538260a0015161352584608001516133d9565b846080015162015180613482565b6000806102286000848152602001908152602001600020905061357681604051806101200160405290816000820154815260200160018201805461244390614cb0565b6135835750600092915050565b60006135af826040518061012001604052908160008201548152602001600182018054612fdd90614cb0565b90508015611455578061023160008282546135ca9190614f1b565b925050819055506135e782600401548360050154611e0490614ffe565b428260030181905550808260050160008282546136049190614f1b565b9091555050600482015461361790613f37565b82600401600082825461362a9190614f1b565b92505081905550611455826004015483600501546137b3565b600061365082600561377c565b6101c35460405163d02dd2b360e01b8152600481018390529193506001600160a01b0316915063d02dd2b390602401600060405180830381600087803b15801561369957600080fd5b505af11580156136ad573d6000803e3d6000fd5b505050505050565b816001600160a01b0316836001600160a01b031614156137175760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610860565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319101612f18565b60008080831561379f5760646137928587615099565b61379c91906150b8565b90505b6137a98186615037565b9590945092505050565b600082815261022960205260409020600281015460ff161561385757805483146138395760405162461bcd60e51b815260206004820152603160248201527f506c616e6574733a207265776172644d756c7420646f6573206e6f74206d6174604482015270636820696e205469657253746f7261676560781b6064820152608401610860565b600082826001015461384b91906150da565b90506001820155505050565b600082136138e75760405162461bcd60e51b815260206004820152605160248201527f506c616e6574733a20466174616c206572726f72207768696c6520637265617460448201527f696e67206e6577205469657253746f726167652e20416d6f756e742063616e6e60648201527037ba103132903132b637bb903d32b9379760791b608482015260a401610860565b50604080516060810182528381526020808201938452600182840181815260008781526102299093529382209251835593518285015591516002909101805460ff191691151591909117905561022a8054928301815590527fcca505edcd456b63fd0b198ec7cf976b40cd3558fe48a42b9f83b6a1ba5e0d2e0155565b61396f848484612a91565b61397b84848484613fde565b61118d5760405162461bcd60e51b81526004016108609061511b565b600083600181511180156139ac575060208151105b6139c85760405162461bcd60e51b815260040161086090614fa1565b61022c543390851015613a2d5760405162461bcd60e51b815260206004820152602760248201527f506c616e6574733a20506c616e65742076616c7565207365742062656c6f77206044820152666d696e696d756d60c81b6064820152608401610860565b61022c546101c3546040516370a0823160e01b81526001600160a01b038481166004830152909116906370a0823190602401602060405180830381865afa158015613a7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613aa0919061516d565b1015613afc5760405162461bcd60e51b815260206004820152602560248201527f506c616e6574733a2042616c616e636520746f6f206c6f7720666f722063726560448201526430ba34b7b760d91b6064820152608401610860565b6101c35460405163db0e185b60e01b81526001600160a01b038381166004830152602482018890529091169063db0e185b90604401600060405180830381600087803b158015613b4b57600080fd5b505af1158015613b5f573d6000803e3d6000fd5b505050506000429050856102316000828254613b7b9190614f1b565b909155505061022f54613b939062ffffff16876137b3565b60405180610120016040528086815260200188815260200182815260200182815260200161022f600060068110613bcc57613bcc614eef565b600a80820492909201549190066003026101000a900462ffffff168152602080820189905260006040808401829052600160608501819052608090940182905289825261022883529020835181558382015180519193613c329390850192910190614596565b5060408201516002820155606082015160038201556080820151600482015560a0820151600582015560c0820151600682015560e0820151600790910180546101009384015161ffff1990911692151561ff00191692909217911515909202179055613c9e82866140d9565b84826001600160a01b03167f278b0fd0170e87df8d6e9c94b47d3ff7382de693c547e6089b53f9972c53238988604051613cda91815260200190565b60405180910390a3509295945050505050565b6000620151808260600151613d029190614f1b565b42101592915050565b60006001600160e01b031982166380ac58cd60e01b1480613d3c57506001600160e01b03198216635b5e139f60e01b145b8061075357506301ffc9a760e01b6001600160e01b0319831614610753565b60fb5460ff1615613d7e5760405162461bcd60e51b815260040161086090614ec5565b610996838383614227565b6000613d9482611193565b9050613da281600084613d5b565b613dad60008361292c565b6001600160a01b0381166000908152606860205260408120805460019290613dd6908490615037565b909155505060008281526067602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600054610100900460ff16610bcd5760405162461bcd60e51b81526004016108609061504e565b600054610100900460ff16613e7e5760405162461bcd60e51b81526004016108609061504e565b8151613e91906065906020850190614596565b508051610996906066906020840190614596565b600054610100900460ff16613ecc5760405162461bcd60e51b81526004016108609061504e565b610bcd33613211565b600054610100900460ff16613efc5760405162461bcd60e51b81526004016108609061504e565b600161019155565b600054610100900460ff16613f2b5760405162461bcd60e51b81526004016108609061504e565b60fb805460ff19169055565b61022f54600090600160781b900462ffffff168210613f5857506000919050565b61022f54600160601b900462ffffff168210613f7657506096919050565b61022f54600160481b900462ffffff168210613f94575060c8919050565b61022f546601000000000000900462ffffff168210613fb65750610190919050565b61022f546301000000900462ffffff168210613fd55750610320919050565b50610640919050565b60006001600160a01b0384163b156140d157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290614022903390899088908890600401615186565b6020604051808303816000875af192505050801561405d575060408051601f3d908101601f1916820190925261405a918101906151c3565b60015b6140b7573d80801561408b576040519150601f19603f3d011682016040523d82523d6000602084013e614090565b606091505b5080516140af5760405162461bcd60e51b81526004016108609061511b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612a89565b506001612a89565b6001600160a01b03821661412f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610860565b6000818152606760205260409020546001600160a01b0316156141945760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610860565b6141a060008383613d5b565b6001600160a01b03821660009081526068602052604081208054600192906141c9908490614f1b565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166142825761427d81609980546000838152609a60205260408120829055600182018355919091527f72a152ddfb8e864297c917af52ea6c1c68aead0fee1a62673fcc7e0c94979d000155565b6142a5565b816001600160a01b0316836001600160a01b0316146142a5576142a583826142df565b6001600160a01b0382166142bc576109968161437c565b826001600160a01b0316826001600160a01b03161461099657610996828261442b565b600060016142ec8461138d565b6142f69190615037565b600083815260986020526040902054909150808214614349576001600160a01b03841660009081526097602090815260408083208584528252808320548484528184208190558352609890915290208190555b5060009182526098602090815260408084208490556001600160a01b039094168352609781528383209183525290812055565b60995460009061438e90600190615037565b6000838152609a6020526040812054609980549394509092849081106143b6576143b6614eef565b9060005260206000200154905080609983815481106143d7576143d7614eef565b6000918252602080832090910192909255828152609a9091526040808220849055858252812055609980548061440f5761440f6151e0565b6001900381819060005260206000200160009055905550505050565b60006144368361138d565b6001600160a01b039093166000908152609760209081526040808320868452825280832085905593825260989052919091209190915550565b6001830191839082156144f85791602002820160005b838211156144c757835183826101000a81548162ffffff021916908362ffffff1602179055509260200192600301602081600201049283019260010302614485565b80156144f65782816101000a81549062ffffff02191690556003016020816002010492830192600103026144c7565b505b5061450492915061460a565b5090565b6040518060e00160405280614566604051806101200160405280600081526020016060815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581525090565b81526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b8280546145a290614cb0565b90600052602060002090601f0160209004810192826145c457600085556144f8565b82601f106145dd57805160ff19168380011785556144f8565b828001600101855582156144f8579182015b828111156144f85782518255916020019190600101906145ef565b5b80821115614504576000815560010161460b565b6001600160e01b03198116811461168e57600080fd5b60006020828403121561464757600080fd5b81356114558161461f565b60005b8381101561466d578181015183820152602001614655565b8381111561118d5750506000910152565b60008151808452614696816020860160208601614652565b601f01601f19169290920160200192915050565b602081526000611455602083018461467e565b6000602082840312156146cf57600080fd5b5035919050565b80356001600160a01b038116811461347d57600080fd5b6000806040838503121561470057600080fd5b614709836146d6565b946020939093013593505050565b60008060006060848603121561472c57600080fd5b614735846146d6565b9250614743602085016146d6565b9150604084013590509250925092565b60006020828403121561476557600080fd5b611455826146d6565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156147ad576147ad61476e565b604052919050565b600060c082840312156147c757600080fd5b82601f8301126147d657600080fd5b60405160c0810181811067ffffffffffffffff821117156147f9576147f961476e565b6040528060c084018581111561480e57600080fd5b845b8181101561483a57803562ffffff8116811461482c5760008081fd5b835260209283019201614810565b509195945050505050565b600082601f83011261485657600080fd5b8135602067ffffffffffffffff8211156148725761487261476e565b8160051b614881828201614784565b928352848101820192828101908785111561489b57600080fd5b83870192505b848310156134d3578235825291830191908301906148a1565b6000602082840312156148cc57600080fd5b813567ffffffffffffffff8111156148e357600080fd5b612a8984828501614845565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015614a0d57603f19888603018452815160e081518188528051828901528881015161012061010081818c01526149536102008c018461467e565b92506040840151828c015260609150818401516101408c01526080808501516101608d015260a0808601516101808e015260c0808701516101a08f01528787015197506149a56101c08f018915159052565b8387015197506149ba6101e08f018915159052565b8e8901518f8f0152604089015160408f015284890151858f015282890151838f015281890151828f015280890151818f015250505050508098505050505085820191508584019350600181019050614916565b5092979650505050505050565b801515811461168e57600080fd5b60008060408385031215614a3b57600080fd5b614a44836146d6565b91506020830135614a5481614a1a565b809150509250929050565b600067ffffffffffffffff831115614a7957614a7961476e565b614a8c601f8401601f1916602001614784565b9050828152838383011115614aa057600080fd5b828260208301376000602084830101529392505050565b600082601f830112614ac857600080fd5b61145583833560208501614a5f565b60008060408385031215614aea57600080fd5b82359150602083013567ffffffffffffffff811115614b0857600080fd5b614b1485828601614ab7565b9150509250929050565b60008060008060808587031215614b3457600080fd5b614b3d856146d6565b9350614b4b602086016146d6565b925060408501359150606085013567ffffffffffffffff811115614b6e57600080fd5b8501601f81018713614b7f57600080fd5b614b8e87823560208401614a5f565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b81811015614bd257835183529284019291840191600101614bb6565b50909695505050505050565b60008060408385031215614bf157600080fd5b614bfa836146d6565b9150614c08602084016146d6565b90509250929050565b60008060408385031215614c2457600080fd5b823567ffffffffffffffff811115614c3b57600080fd5b614c4785828601614ab7565b95602094909401359450505050565b60008060408385031215614c6957600080fd5b823567ffffffffffffffff80821115614c8157600080fd5b614c8d86838701614845565b93506020850135915080821115614ca357600080fd5b50614b1485828601614ab7565b600181811c90821680614cc457607f821691505b6020821081141561177357634e487b7160e01b600052602260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526028908201527f506c616e6574733a2043616e6e6f742062652066726f6d20746865207a65726f604082015267206164647265737360c01b606082015260800190565b60208082526028908201527f506c616e6574733a204e6f20506c616e6574206f776e65642062792074686973604082015267081858d8dbdd5b9d60c21b606082015260800190565b60208082526022908201527f506c616e6574733a205468697320706c616e657420646f65736e2774206578696040820152611cdd60f21b606082015260800190565b60208082526031908201527f506c616e6574733a20596f7520646f206e6f74206861766520636f6e74726f6c604082015270081bdd995c881d1a1a5cc8141b185b995d607a1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115614f2e57614f2e614f05565b500190565b6000600019821415614f4757614f47614f05565b5060010190565b815160009082906020808601845b83811015614f7857815185529382019390820190600101614f5c565b50929695505050505050565b600060208284031215614f9657600080fd5b815161145581614a1a565b60208082526037908201527f506c616e6574733a20496e636f7272656374206e616d65206c656e6774682c2060408201527f6d757374206265206265747765656e203220746f203331000000000000000000606082015260800190565b6000600160ff1b82141561501457615014614f05565b5060000390565b6000825161502d818460208701614652565b9190910192915050565b60008282101561504957615049614f05565b500390565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60008160001904831182151516156150b3576150b3614f05565b500290565b6000826150d557634e487b7160e01b600052601260045260246000fd5b500490565b600080821280156001600160ff1b03849003851316156150fc576150fc614f05565b600160ff1b839003841281161561511557615115614f05565b50500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006020828403121561517f57600080fd5b5051919050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906151b99083018461467e565b9695505050505050565b6000602082840312156151d557600080fd5b81516114558161461f565b634e487b7160e01b600052603160045260246000fdfea26469706673582212203da47f422fd348324ef5a8ca7971ec4d58a59859ec6e1c3e1076ba7a1302ef9f64736f6c634300080b0033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.