ETH Price: $1,969.18 (-2.16%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

> 10 Internal Transactions found.

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
0x60806040154297822022-08-28 19:59:521281 days ago1661716792
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154289872022-08-28 16:55:451281 days ago1661705745
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154256942022-08-28 4:19:171281 days ago1661660357
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154254892022-08-28 3:20:341281 days ago1661656834
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154245452022-08-27 23:50:171282 days ago1661644217
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154213562022-08-27 11:34:011282 days ago1661600041
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154212202022-08-27 11:08:011282 days ago1661598481
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154209092022-08-27 9:55:501282 days ago1661594150
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154196732022-08-27 5:04:041282 days ago1661576644
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154195922022-08-27 4:45:371282 days ago1661575537
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154183612022-08-27 0:00:391283 days ago1661558439
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154181292022-08-26 22:57:381283 days ago1661554658
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154181072022-08-26 22:52:571283 days ago1661554377
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154180802022-08-26 22:48:511283 days ago1661554131
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154174082022-08-26 20:21:361283 days ago1661545296
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154173832022-08-26 20:17:501283 days ago1661545070
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154171812022-08-26 19:29:161283 days ago1661542156
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154166922022-08-26 17:33:031283 days ago1661535183
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154161002022-08-26 15:13:441283 days ago1661526824
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154160942022-08-26 15:12:521283 days ago1661526772
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154160912022-08-26 15:11:481283 days ago1661526708
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154160902022-08-26 15:11:111283 days ago1661526671
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154119962022-08-25 23:32:411284 days ago1661470361
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154115552022-08-25 21:51:331284 days ago1661464293
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
0x60806040154110872022-08-25 20:11:041284 days ago1661458264
Rocket Pool: Mini Pool Manager
 Contract Creation0 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RocketMinipoolManager

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 15000 runs

Other Settings:
default evmVersion, GNU GPLv3 license
/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

import "@openzeppelin/contracts/math/SafeMath.sol";

import "./RocketMinipool.sol";
import "../RocketBase.sol";
import "../../interface/dao/node/RocketDAONodeTrustedInterface.sol";
import "../../interface/minipool/RocketMinipoolInterface.sol";
import "../../interface/minipool/RocketMinipoolManagerInterface.sol";
import "../../interface/minipool/RocketMinipoolQueueInterface.sol";
import "../../interface/node/RocketNodeStakingInterface.sol";
import "../../interface/util/AddressSetStorageInterface.sol";
import "../../types/MinipoolDeposit.sol";
import "../../interface/network/RocketNetworkPricesInterface.sol";
import "../../interface/dao/protocol/settings/RocketDAOProtocolSettingsMinipoolInterface.sol";
import "../../interface/dao/protocol/settings/RocketDAOProtocolSettingsNodeInterface.sol";
import "../../interface/dao/protocol/settings/RocketDAOProtocolSettingsNodeInterface.sol";

// Minipool creation, removal and management

contract RocketMinipoolManager is RocketBase, RocketMinipoolManagerInterface {

    // Libs
    using SafeMath for uint;

    // Events
    event MinipoolCreated(address indexed minipool, address indexed node, uint256 time);
    event MinipoolDestroyed(address indexed minipool, address indexed node, uint256 time);

    // Construct
    constructor(RocketStorageInterface _rocketStorageAddress) RocketBase(_rocketStorageAddress) {
        version = 1;
    }

    // Get the number of minipools in the network
    function getMinipoolCount() override public view returns (uint256) {
        AddressSetStorageInterface addressSetStorage = AddressSetStorageInterface(getContractAddress("addressSetStorage"));
        return addressSetStorage.getCount(keccak256(bytes("minipools.index")));
    }

    // Get the number of minipools in the network in the Staking state
    function getStakingMinipoolCount() override external view returns (uint256) {
        return getUint(keccak256(bytes("minipools.staking.count")));
    }

    // Get the number of finalised minipools in the network
    function getFinalisedMinipoolCount() override external view returns (uint256) {
        return getUint(keccak256(bytes("minipools.finalised.count")));
    }

    // Get the number of active minipools in the network
    function getActiveMinipoolCount() override public view returns (uint256) {
        AddressSetStorageInterface addressSetStorage = AddressSetStorageInterface(getContractAddress("addressSetStorage"));
        uint256 total = addressSetStorage.getCount(keccak256(bytes("minipools.index")));
        uint256 finalised = getUint(keccak256(bytes("minipools.finalised.count")));
        return total.sub(finalised);
    }

    // Get the number of minipools in each status.
    // Returns the counts for Initialised, Prelaunch, Staking, Withdrawable, and Dissolved in that order.
    function getMinipoolCountPerStatus(uint256 offset, uint256 limit) override external view 
    returns (uint256 initialisedCount, uint256 prelaunchCount, uint256 stakingCount, uint256 withdrawableCount, uint256 dissolvedCount) {
        // Get contracts
        AddressSetStorageInterface addressSetStorage = AddressSetStorageInterface(getContractAddress("addressSetStorage"));
        // Precompute minipool key
        bytes32 minipoolKey = keccak256(abi.encodePacked("minipools.index"));
        // Iterate over the requested minipool range
        uint256 totalMinipools = getMinipoolCount();
        uint256 max = offset.add(limit);
        if (max > totalMinipools || limit == 0) { max = totalMinipools; }
        for (uint256 i = offset; i < max; i++) {
            // Get the minipool at index i
            RocketMinipoolInterface minipool = RocketMinipoolInterface(addressSetStorage.getItem(minipoolKey, i));
            // Get the minipool's status, and update the appropriate counter
            MinipoolStatus status = minipool.getStatus();
            if (status == MinipoolStatus.Initialised) {
                initialisedCount++;
            }
            else if (status == MinipoolStatus.Prelaunch) {
                prelaunchCount++;
            }
            else if (status == MinipoolStatus.Staking) {
                stakingCount++;
            }
            else if (status == MinipoolStatus.Withdrawable) {
                withdrawableCount++;
            }
            else if (status == MinipoolStatus.Dissolved) {
                dissolvedCount++;
            }
        }
    }

    // Returns an array of all minipools in the prelaunch state
    function getPrelaunchMinipools(uint256 offset, uint256 limit) override external view
    returns (address[] memory) {
        // Get contracts
        AddressSetStorageInterface addressSetStorage = AddressSetStorageInterface(getContractAddress("addressSetStorage"));
        // Precompute minipool key
        bytes32 minipoolKey = keccak256(abi.encodePacked("minipools.index"));
        // Iterate over the requested minipool range
        uint256 totalMinipools = getMinipoolCount();
        uint256 max = offset.add(limit);
        if (max > totalMinipools || limit == 0) { max = totalMinipools; }
        // Create array big enough for every minipool
        address[] memory minipools = new address[](max.sub(offset));
        uint256 total = 0;
        for (uint256 i = offset; i < max; i++) {
            // Get the minipool at index i
            RocketMinipoolInterface minipool = RocketMinipoolInterface(addressSetStorage.getItem(minipoolKey, i));
            // Get the minipool's status, and to array if it's in prelaunch
            MinipoolStatus status = minipool.getStatus();
            if (status == MinipoolStatus.Prelaunch) {
                minipools[total] = address(minipool);
                total++;
            }
        }
        // Dirty hack to cut unused elements off end of return value
        assembly {
            mstore(minipools, total)
        }
        return minipools;
    }

    // Get a network minipool address by index
    function getMinipoolAt(uint256 _index) override external view returns (address) {
        AddressSetStorageInterface addressSetStorage = AddressSetStorageInterface(getContractAddress("addressSetStorage"));
        return addressSetStorage.getItem(keccak256(abi.encodePacked("minipools.index")), _index);
    }

    // Get the number of minipools owned by a node
    function getNodeMinipoolCount(address _nodeAddress) override external view returns (uint256) {
        AddressSetStorageInterface addressSetStorage = AddressSetStorageInterface(getContractAddress("addressSetStorage"));
        return addressSetStorage.getCount(keccak256(abi.encodePacked("node.minipools.index", _nodeAddress)));
    }

    // Get the number of minipools owned by a node that are not finalised
    function getNodeActiveMinipoolCount(address _nodeAddress) override public view returns (uint256) {
        AddressSetStorageInterface addressSetStorage = AddressSetStorageInterface(getContractAddress("addressSetStorage"));
        uint256 finalised = getUint(keccak256(abi.encodePacked("node.minipools.finalised.count", _nodeAddress)));
        uint256 total = addressSetStorage.getCount(keccak256(abi.encodePacked("node.minipools.index", _nodeAddress)));
        return total.sub(finalised);
    }

    // Get the number of minipools owned by a node that are finalised
    function getNodeFinalisedMinipoolCount(address _nodeAddress) override external view returns (uint256) {
        return getUint(keccak256(abi.encodePacked("node.minipools.finalised.count", _nodeAddress)));
    }

    // Get the number of minipools owned by a node that are in staking status
    function getNodeStakingMinipoolCount(address _nodeAddress) override external view returns (uint256) {
        return getUint(keccak256(abi.encodePacked("node.minipools.staking.count", _nodeAddress)));
    }

    // Get a node minipool address by index
    function getNodeMinipoolAt(address _nodeAddress, uint256 _index) override external view returns (address) {
        AddressSetStorageInterface addressSetStorage = AddressSetStorageInterface(getContractAddress("addressSetStorage"));
        return addressSetStorage.getItem(keccak256(abi.encodePacked("node.minipools.index", _nodeAddress)), _index);
    }

    // Get the number of validating minipools owned by a node
    function getNodeValidatingMinipoolCount(address _nodeAddress) override external view returns (uint256) {
        AddressSetStorageInterface addressSetStorage = AddressSetStorageInterface(getContractAddress("addressSetStorage"));
        return addressSetStorage.getCount(keccak256(abi.encodePacked("node.minipools.validating.index", _nodeAddress)));
    }

    // Get a validating node minipool address by index
    function getNodeValidatingMinipoolAt(address _nodeAddress, uint256 _index) override external view returns (address) {
        AddressSetStorageInterface addressSetStorage = AddressSetStorageInterface(getContractAddress("addressSetStorage"));
        return addressSetStorage.getItem(keccak256(abi.encodePacked("node.minipools.validating.index", _nodeAddress)), _index);
    }

    // Get a minipool address by validator pubkey
    function getMinipoolByPubkey(bytes memory _pubkey) override external view returns (address) {
        return getAddress(keccak256(abi.encodePacked("validator.minipool", _pubkey)));
    }

    // Check whether a minipool exists
    function getMinipoolExists(address _minipoolAddress) override external view returns (bool) {
        return getBool(keccak256(abi.encodePacked("minipool.exists", _minipoolAddress)));
    }

    // Check whether a minipool previously existed at the given address
    function getMinipoolDestroyed(address _minipoolAddress) override external view returns (bool) {
        return getBool(keccak256(abi.encodePacked("minipool.destroyed", _minipoolAddress)));
    }

    // Get a minipool's validator pubkey
    function getMinipoolPubkey(address _minipoolAddress) override public view returns (bytes memory) {
        return getBytes(keccak256(abi.encodePacked("minipool.pubkey", _minipoolAddress)));
    }

    // Get the withdrawal credentials for the minipool contract
    function getMinipoolWithdrawalCredentials(address _minipoolAddress) override public pure returns (bytes memory) {
        return abi.encodePacked(byte(0x01), bytes11(0x0), address(_minipoolAddress));
    }

    // Increments _nodeAddress' number of minipools in staking status
    function incrementNodeStakingMinipoolCount(address _nodeAddress) override external onlyLatestContract("rocketMinipoolManager", address(this)) onlyRegisteredMinipool(msg.sender) {
        // Update the node specific count
        bytes32 nodeKey = keccak256(abi.encodePacked("node.minipools.staking.count", _nodeAddress));
        uint256 nodeValue = getUint(nodeKey);
        setUint(nodeKey, nodeValue.add(1));
        // Update the total count
        bytes32 totalKey = keccak256(abi.encodePacked("minipools.staking.count"));
        uint256 totalValue = getUint(totalKey);
        setUint(totalKey, totalValue.add(1));
        // Update total effective stake
        updateTotalEffectiveRPLStake(_nodeAddress, nodeValue, nodeValue.add(1));
    }

    // Decrements _nodeAddress' number of minipools in staking status
    function decrementNodeStakingMinipoolCount(address _nodeAddress) override external onlyLatestContract("rocketMinipoolManager", address(this)) onlyRegisteredMinipool(msg.sender) {
        // Update the node specific count
        bytes32 nodeKey = keccak256(abi.encodePacked("node.minipools.staking.count", _nodeAddress));
        uint256 nodeValue = getUint(nodeKey);
        setUint(nodeKey, nodeValue.sub(1));
        // Update the total count
        bytes32 totalKey = keccak256(abi.encodePacked("minipools.staking.count"));
        uint256 totalValue = getUint(totalKey);
        setUint(totalKey, totalValue.sub(1));
        // Update total effective stake
        updateTotalEffectiveRPLStake(_nodeAddress, nodeValue, nodeValue.sub(1));
    }

    // Increments _nodeAddress' number of minipools that have been finalised
    function incrementNodeFinalisedMinipoolCount(address _nodeAddress) override external onlyLatestContract("rocketMinipoolManager", address(this)) onlyRegisteredMinipool(msg.sender) {
        // Update the node specific count
        addUint(keccak256(abi.encodePacked("node.minipools.finalised.count", _nodeAddress)), 1);
        // Update the total count
        addUint(keccak256(bytes("minipools.finalised.count")), 1);
    }

    // Create a minipool
    // Only accepts calls from the RocketNodeDeposit contract
    function createMinipool(address _nodeAddress, MinipoolDeposit _depositType, uint256 _salt) override external onlyLatestContract("rocketMinipoolManager", address(this)) onlyLatestContract("rocketNodeDeposit", msg.sender) returns (RocketMinipoolInterface) {
        // Load contracts
        RocketNodeStakingInterface rocketNodeStaking = RocketNodeStakingInterface(getContractAddress("rocketNodeStaking"));
        AddressSetStorageInterface addressSetStorage = AddressSetStorageInterface(getContractAddress("addressSetStorage"));
        // Check node minipool limit based on RPL stake
        require(
            getNodeActiveMinipoolCount(_nodeAddress) < rocketNodeStaking.getNodeMinipoolLimit(_nodeAddress),
            "Minipool count after deposit exceeds limit based on node RPL stake"
        );
        { // Local scope to prevent stack too deep error
          RocketDAOProtocolSettingsMinipoolInterface rocketDAOProtocolSettingsMinipool = RocketDAOProtocolSettingsMinipoolInterface(getContractAddress("rocketDAOProtocolSettingsMinipool"));
          // Check global minipool limit
          uint256 totalMinipoolCount = getActiveMinipoolCount();
          require(totalMinipoolCount.add(1) <= rocketDAOProtocolSettingsMinipool.getMaximumCount(), "Global minipool limit reached");
        }
        // Create minipool contract
        address contractAddress = deployContract(address(rocketStorage), _nodeAddress, _depositType, _salt);
        // Initialize minipool data
        setBool(keccak256(abi.encodePacked("minipool.exists", contractAddress)), true);
        // Add minipool to indexes
        addressSetStorage.addItem(keccak256(abi.encodePacked("minipools.index")), contractAddress);
        addressSetStorage.addItem(keccak256(abi.encodePacked("node.minipools.index", _nodeAddress)), contractAddress);
        // Update unbonded validator count if minipool is unbonded
        if (_depositType == MinipoolDeposit.Empty) {
            RocketDAONodeTrustedInterface rocketDAONodeTrusted = RocketDAONodeTrustedInterface(getContractAddress("rocketDAONodeTrusted"));
            rocketDAONodeTrusted.incrementMemberUnbondedValidatorCount(_nodeAddress);
        }
        // Emit minipool created event
        emit MinipoolCreated(contractAddress, _nodeAddress, block.timestamp);
        // Add minipool to queue
        RocketMinipoolQueueInterface(getContractAddress("rocketMinipoolQueue")).enqueueMinipool(_depositType, contractAddress);
        // Return created minipool address
        return RocketMinipoolInterface(contractAddress);
    }

    // Destroy a minipool
    // Only accepts calls from registered minipools
    function destroyMinipool() override external onlyLatestContract("rocketMinipoolManager", address(this)) onlyRegisteredMinipool(msg.sender) {
        // Load contracts
        AddressSetStorageInterface addressSetStorage = AddressSetStorageInterface(getContractAddress("addressSetStorage"));
        // Initialize minipool & get properties
        RocketMinipoolInterface minipool = RocketMinipoolInterface(msg.sender);
        address nodeAddress = minipool.getNodeAddress();
        // Update minipool data
        setBool(keccak256(abi.encodePacked("minipool.exists", msg.sender)), false);
        // Record minipool as destroyed to prevent recreation at same address
        setBool(keccak256(abi.encodePacked("minipool.destroyed", msg.sender)), true);
        // Remove minipool from indexes
        addressSetStorage.removeItem(keccak256(abi.encodePacked("minipools.index")), msg.sender);
        addressSetStorage.removeItem(keccak256(abi.encodePacked("node.minipools.index", nodeAddress)), msg.sender);
        // Clean up pubkey state
        bytes memory pubkey = getMinipoolPubkey(msg.sender);
        deleteBytes(keccak256(abi.encodePacked("minipool.pubkey", msg.sender)));
        deleteAddress(keccak256(abi.encodePacked("validator.minipool", pubkey)));
        // Emit minipool destroyed event
        emit MinipoolDestroyed(msg.sender, nodeAddress, block.timestamp);
    }

    // Updates the stored total effective rate based on a node's changing minipool count
    function updateTotalEffectiveRPLStake(address _nodeAddress, uint256 _oldCount, uint256 _newCount) private {
        // Load contracts
        RocketNetworkPricesInterface rocketNetworkPrices = RocketNetworkPricesInterface(getContractAddress("rocketNetworkPrices"));
        RocketDAOProtocolSettingsMinipoolInterface rocketDAOProtocolSettingsMinipool = RocketDAOProtocolSettingsMinipoolInterface(getContractAddress("rocketDAOProtocolSettingsMinipool"));
        RocketDAOProtocolSettingsNodeInterface rocketDAOProtocolSettingsNode = RocketDAOProtocolSettingsNodeInterface(getContractAddress("rocketDAOProtocolSettingsNode"));
        RocketNodeStakingInterface rocketNodeStaking = RocketNodeStakingInterface(getContractAddress("rocketNodeStaking"));
        // Require price consensus
        require(rocketNetworkPrices.inConsensus(), "Network is not in consensus");
        // Get node's RPL stake
        uint256 rplStake = rocketNodeStaking.getNodeRPLStake(_nodeAddress);
        // Get the node's maximum possible stake
        uint256 maxRplStakePerMinipool = rocketDAOProtocolSettingsMinipool.getHalfDepositUserAmount()
            .mul(rocketDAOProtocolSettingsNode.getMaximumPerMinipoolStake());
        uint256 oldMaxRplStake = maxRplStakePerMinipool
            .mul(_oldCount)
            .div(rocketNetworkPrices.getRPLPrice());
        uint256 newMaxRplStake = maxRplStakePerMinipool
            .mul(_newCount)
            .div(rocketNetworkPrices.getRPLPrice());
        // Check if we have to decrease total
        if (_oldCount > _newCount) {
            if (rplStake <= newMaxRplStake) {
                return;
            }
            uint256 decrease = oldMaxRplStake.sub(newMaxRplStake);
            uint256 delta = rplStake.sub(newMaxRplStake);
            if (delta > decrease) { delta = decrease; }
            rocketNetworkPrices.decreaseEffectiveRPLStake(delta);
            return;
        }
        // Check if we have to increase total
        if (_newCount > _oldCount) {
            if (rplStake <= oldMaxRplStake) {
                return;
            }
            uint256 increase = newMaxRplStake.sub(oldMaxRplStake);
            uint256 delta = rplStake.sub(oldMaxRplStake);
            if (delta > increase) { delta = increase; }
            rocketNetworkPrices.increaseEffectiveRPLStake(delta);
            return;
        }
        // _oldCount == _newCount (do nothing but shouldn't happen)
    }

    // Set a minipool's validator pubkey
    // Only accepts calls from registered minipools
    function setMinipoolPubkey(bytes calldata _pubkey) override external onlyLatestContract("rocketMinipoolManager", address(this)) onlyRegisteredMinipool(msg.sender) {
        // Load contracts
        AddressSetStorageInterface addressSetStorage = AddressSetStorageInterface(getContractAddress("addressSetStorage"));
        // Initialize minipool & get properties
        RocketMinipoolInterface minipool = RocketMinipoolInterface(msg.sender);
        address nodeAddress = minipool.getNodeAddress();
        // Set minipool validator pubkey & validator minipool address
        setBytes(keccak256(abi.encodePacked("minipool.pubkey", msg.sender)), _pubkey);
        setAddress(keccak256(abi.encodePacked("validator.minipool", _pubkey)), msg.sender);
        // Add minipool to node validating minipools index
        addressSetStorage.addItem(keccak256(abi.encodePacked("node.minipools.validating.index", nodeAddress)), msg.sender);
    }

    // Returns the bytecode for RocketMinipool
    function getMinipoolBytecode() override public pure returns (bytes memory) {
        return type(RocketMinipool).creationCode;
    }

    // Performs a CREATE2 deployment of a minipool contract with given salt
    function deployContract(address rocketStorage, address _nodeAddress, MinipoolDeposit _depositType, uint256 _salt) private returns (address) {
        // Construct deployment bytecode
        bytes memory creationCode = getMinipoolBytecode();
        bytes memory bytecode = abi.encodePacked(creationCode, abi.encode(rocketStorage, _nodeAddress, _depositType));
        // Construct final salt
        uint256 salt = uint256(keccak256(abi.encodePacked(_nodeAddress, _salt)));
        // CREATE2 deployment
        address contractAddress;
        uint256 codeSize;
        assembly {
            contractAddress := create2(
            0,
            add(bytecode, 0x20),
            mload(bytecode),
            salt
            )

            codeSize := extcodesize(contractAddress)
        }
        // Ensure deployment was successful
        require(codeSize > 0, "Contract creation failed");
        // Return address
        return contractAddress;
    }

}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

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

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

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

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

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

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

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

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

/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

import "../interface/RocketStorageInterface.sol";

/// @title Base settings / modifiers for each contract in Rocket Pool
/// @author David Rugendyke

abstract contract RocketBase {

    // Calculate using this as the base
    uint256 constant calcBase = 1 ether;

    // Version of the contract
    uint8 public version;

    // The main storage contract where primary persistant storage is maintained
    RocketStorageInterface rocketStorage = RocketStorageInterface(0);


    /*** Modifiers **********************************************************/

    /**
    * @dev Throws if called by any sender that doesn't match a Rocket Pool network contract
    */
    modifier onlyLatestNetworkContract() {
        require(getBool(keccak256(abi.encodePacked("contract.exists", msg.sender))), "Invalid or outdated network contract");
        _;
    }

    /**
    * @dev Throws if called by any sender that doesn't match one of the supplied contract or is the latest version of that contract
    */
    modifier onlyLatestContract(string memory _contractName, address _contractAddress) {
        require(_contractAddress == getAddress(keccak256(abi.encodePacked("contract.address", _contractName))), "Invalid or outdated contract");
        _;
    }

    /**
    * @dev Throws if called by any sender that isn't a registered node
    */
    modifier onlyRegisteredNode(address _nodeAddress) {
        require(getBool(keccak256(abi.encodePacked("node.exists", _nodeAddress))), "Invalid node");
        _;
    }

    /**
    * @dev Throws if called by any sender that isn't a trusted node DAO member
    */
    modifier onlyTrustedNode(address _nodeAddress) {
        require(getBool(keccak256(abi.encodePacked("dao.trustednodes.", "member", _nodeAddress))), "Invalid trusted node");
        _;
    }

    /**
    * @dev Throws if called by any sender that isn't a registered minipool
    */
    modifier onlyRegisteredMinipool(address _minipoolAddress) {
        require(getBool(keccak256(abi.encodePacked("minipool.exists", _minipoolAddress))), "Invalid minipool");
        _;
    }
    

    /**
    * @dev Throws if called by any account other than a guardian account (temporary account allowed access to settings before DAO is fully enabled)
    */
    modifier onlyGuardian() {
        require(msg.sender == rocketStorage.getGuardian(), "Account is not a temporary guardian");
        _;
    }




    /*** Methods **********************************************************/

    /// @dev Set the main Rocket Storage address
    constructor(RocketStorageInterface _rocketStorageAddress) {
        // Update the contract address
        rocketStorage = RocketStorageInterface(_rocketStorageAddress);
    }


    /// @dev Get the address of a network contract by name
    function getContractAddress(string memory _contractName) internal view returns (address) {
        // Get the current contract address
        address contractAddress = getAddress(keccak256(abi.encodePacked("contract.address", _contractName)));
        // Check it
        require(contractAddress != address(0x0), "Contract not found");
        // Return
        return contractAddress;
    }


    /// @dev Get the address of a network contract by name (returns address(0x0) instead of reverting if contract does not exist)
    function getContractAddressUnsafe(string memory _contractName) internal view returns (address) {
        // Get the current contract address
        address contractAddress = getAddress(keccak256(abi.encodePacked("contract.address", _contractName)));
        // Return
        return contractAddress;
    }


    /// @dev Get the name of a network contract by address
    function getContractName(address _contractAddress) internal view returns (string memory) {
        // Get the contract name
        string memory contractName = getString(keccak256(abi.encodePacked("contract.name", _contractAddress)));
        // Check it
        require(bytes(contractName).length > 0, "Contract not found");
        // Return
        return contractName;
    }

    /// @dev Get revert error message from a .call method
    function getRevertMsg(bytes memory _returnData) internal pure returns (string memory) {
        // If the _res length is less than 68, then the transaction failed silently (without a revert message)
        if (_returnData.length < 68) return "Transaction reverted silently";
        assembly {
            // Slice the sighash.
            _returnData := add(_returnData, 0x04)
        }
        return abi.decode(_returnData, (string)); // All that remains is the revert string
    }



    /*** Rocket Storage Methods ****************************************/

    // Note: Unused helpers have been removed to keep contract sizes down

    /// @dev Storage get methods
    function getAddress(bytes32 _key) internal view returns (address) { return rocketStorage.getAddress(_key); }
    function getUint(bytes32 _key) internal view returns (uint) { return rocketStorage.getUint(_key); }
    function getString(bytes32 _key) internal view returns (string memory) { return rocketStorage.getString(_key); }
    function getBytes(bytes32 _key) internal view returns (bytes memory) { return rocketStorage.getBytes(_key); }
    function getBool(bytes32 _key) internal view returns (bool) { return rocketStorage.getBool(_key); }
    function getInt(bytes32 _key) internal view returns (int) { return rocketStorage.getInt(_key); }
    function getBytes32(bytes32 _key) internal view returns (bytes32) { return rocketStorage.getBytes32(_key); }

    /// @dev Storage set methods
    function setAddress(bytes32 _key, address _value) internal { rocketStorage.setAddress(_key, _value); }
    function setUint(bytes32 _key, uint _value) internal { rocketStorage.setUint(_key, _value); }
    function setString(bytes32 _key, string memory _value) internal { rocketStorage.setString(_key, _value); }
    function setBytes(bytes32 _key, bytes memory _value) internal { rocketStorage.setBytes(_key, _value); }
    function setBool(bytes32 _key, bool _value) internal { rocketStorage.setBool(_key, _value); }
    function setInt(bytes32 _key, int _value) internal { rocketStorage.setInt(_key, _value); }
    function setBytes32(bytes32 _key, bytes32 _value) internal { rocketStorage.setBytes32(_key, _value); }

    /// @dev Storage delete methods
    function deleteAddress(bytes32 _key) internal { rocketStorage.deleteAddress(_key); }
    function deleteUint(bytes32 _key) internal { rocketStorage.deleteUint(_key); }
    function deleteString(bytes32 _key) internal { rocketStorage.deleteString(_key); }
    function deleteBytes(bytes32 _key) internal { rocketStorage.deleteBytes(_key); }
    function deleteBool(bytes32 _key) internal { rocketStorage.deleteBool(_key); }
    function deleteInt(bytes32 _key) internal { rocketStorage.deleteInt(_key); }
    function deleteBytes32(bytes32 _key) internal { rocketStorage.deleteBytes32(_key); }

    /// @dev Storage arithmetic methods
    function addUint(bytes32 _key, uint256 _amount) internal { rocketStorage.addUint(_key, _amount); }
    function subUint(bytes32 _key, uint256 _amount) internal { rocketStorage.subUint(_key, _amount); }
}

/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

import "./RocketMinipoolStorageLayout.sol";
import "../../interface/RocketStorageInterface.sol";
import "../../types/MinipoolDeposit.sol";
import "../../types/MinipoolStatus.sol";

// An individual minipool in the Rocket Pool network

contract RocketMinipool is RocketMinipoolStorageLayout {

    // Events
    event EtherReceived(address indexed from, uint256 amount, uint256 time);
    event DelegateUpgraded(address oldDelegate, address newDelegate, uint256 time);
    event DelegateRolledBack(address oldDelegate, address newDelegate, uint256 time);

    // Modifiers

    // Only allow access from the owning node address
    modifier onlyMinipoolOwner() {
        // Only the node operator can upgrade
        address withdrawalAddress = rocketStorage.getNodeWithdrawalAddress(nodeAddress);
        require(msg.sender == nodeAddress || msg.sender == withdrawalAddress, "Only the node operator can access this method");
        _;
    }

    // Construct
    constructor(RocketStorageInterface _rocketStorageAddress, address _nodeAddress, MinipoolDeposit _depositType) {
        // Initialise RocketStorage
        require(address(_rocketStorageAddress) != address(0x0), "Invalid storage address");
        rocketStorage = RocketStorageInterface(_rocketStorageAddress);
        // Set storage state to uninitialised
        storageState = StorageState.Uninitialised;
        // Set the current delegate
        address delegateAddress = getContractAddress("rocketMinipoolDelegate");
        rocketMinipoolDelegate = delegateAddress;
        // Check for contract existence
        require(contractExists(delegateAddress), "Delegate contract does not exist");
        // Call initialise on delegate
        (bool success, bytes memory data) = delegateAddress.delegatecall(abi.encodeWithSignature('initialise(address,uint8)', _nodeAddress, uint8(_depositType)));
        if (!success) { revert(getRevertMessage(data)); }
    }

    // Receive an ETH deposit
    receive() external payable {
        // Emit ether received event
        emit EtherReceived(msg.sender, msg.value, block.timestamp);
    }

    // Upgrade this minipool to the latest network delegate contract
    function delegateUpgrade() external onlyMinipoolOwner {
        // Set previous address
        rocketMinipoolDelegatePrev = rocketMinipoolDelegate;
        // Set new delegate
        rocketMinipoolDelegate = getContractAddress("rocketMinipoolDelegate");
        // Verify
        require(rocketMinipoolDelegate != rocketMinipoolDelegatePrev, "New delegate is the same as the existing one");
        // Log event
        emit DelegateUpgraded(rocketMinipoolDelegatePrev, rocketMinipoolDelegate, block.timestamp);
    }

    // Rollback to previous delegate contract
    function delegateRollback() external onlyMinipoolOwner {
        // Make sure they have upgraded before
        require(rocketMinipoolDelegatePrev != address(0x0), "Previous delegate contract is not set");
        // Store original
        address originalDelegate = rocketMinipoolDelegate;
        // Update delegate to previous and zero out previous
        rocketMinipoolDelegate = rocketMinipoolDelegatePrev;
        rocketMinipoolDelegatePrev = address(0x0);
        // Log event
        emit DelegateRolledBack(originalDelegate, rocketMinipoolDelegate, block.timestamp);
    }

    // If set to true, will automatically use the latest delegate contract
    function setUseLatestDelegate(bool _setting) external onlyMinipoolOwner {
        useLatestDelegate = _setting;
    }

    // Getter for useLatestDelegate setting
    function getUseLatestDelegate() external view returns (bool) {
        return useLatestDelegate;
    }

    // Returns the address of the minipool's stored delegate
    function getDelegate() external view returns (address) {
        return rocketMinipoolDelegate;
    }

    // Returns the address of the minipool's previous delegate (or address(0) if not set)
    function getPreviousDelegate() external view returns (address) {
        return rocketMinipoolDelegatePrev;
    }

    // Returns the delegate which will be used when calling this minipool taking into account useLatestDelegate setting
    function getEffectiveDelegate() external view returns (address) {
        return useLatestDelegate ? getContractAddress("rocketMinipoolDelegate") : rocketMinipoolDelegate;
    }

    // Delegate all other calls to minipool delegate contract
    fallback(bytes calldata _input) external payable returns (bytes memory) {
        // If useLatestDelegate is set, use the latest delegate contract
        address delegateContract = useLatestDelegate ? getContractAddress("rocketMinipoolDelegate") : rocketMinipoolDelegate;
        // Check for contract existence
        require(contractExists(delegateContract), "Delegate contract does not exist");
        // Execute delegatecall
        (bool success, bytes memory data) = delegateContract.delegatecall(_input);
        if (!success) { revert(getRevertMessage(data)); }
        return data;
    }

    // Get the address of a Rocket Pool network contract
    function getContractAddress(string memory _contractName) private view returns (address) {
        address contractAddress = rocketStorage.getAddress(keccak256(abi.encodePacked("contract.address", _contractName)));
        require(contractAddress != address(0x0), "Contract not found");
        return contractAddress;
    }

    // Get a revert message from delegatecall return data
    function getRevertMessage(bytes memory _returnData) private pure returns (string memory) {
        if (_returnData.length < 68) { return "Transaction reverted silently"; }
        assembly {
            _returnData := add(_returnData, 0x04)
        }
        return abi.decode(_returnData, (string));
    }

    // Returns true if contract exists at _contractAddress (if called during that contract's construction it will return a false negative)
    function contractExists(address _contractAddress) private returns (bool) {
        uint32 codeSize;
        assembly {
            codeSize := extcodesize(_contractAddress)
        }
        return codeSize > 0;
    }
}

File 5 of 17 : RocketMinipoolStorageLayout.sol
/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

import "../../interface/RocketStorageInterface.sol";
import "../../types/MinipoolDeposit.sol";
import "../../types/MinipoolStatus.sol";

// The RocketMinipool contract storage layout, shared by RocketMinipoolDelegate

// ******************************************************
// Note: This contract MUST NOT BE UPDATED after launch.
// All deployed minipool contracts must maintain a
// Consistent storage layout with RocketMinipoolDelegate.
// ******************************************************

abstract contract RocketMinipoolStorageLayout {
    // Storage state enum
    enum StorageState {
        Undefined,
        Uninitialised,
        Initialised
    }

	// Main Rocket Pool storage contract
    RocketStorageInterface internal rocketStorage = RocketStorageInterface(0);

    // Status
    MinipoolStatus internal status;
    uint256 internal statusBlock;
    uint256 internal statusTime;
    uint256 internal withdrawalBlock;

    // Deposit type
    MinipoolDeposit internal depositType;

    // Node details
    address internal nodeAddress;
    uint256 internal nodeFee;
    uint256 internal nodeDepositBalance;
    bool internal nodeDepositAssigned;
    uint256 internal nodeRefundBalance;
    uint256 internal nodeSlashBalance;

    // User deposit details
    uint256 internal userDepositBalance;
    uint256 internal userDepositAssignedTime;

    // Upgrade options
    bool internal useLatestDelegate = false;
    address internal rocketMinipoolDelegate;
    address internal rocketMinipoolDelegatePrev;

    // Local copy of RETH address
    address internal rocketTokenRETH;

    // Local copy of penalty contract
    address internal rocketMinipoolPenalty;

    // Used to prevent direct access to delegate and prevent calling initialise more than once
    StorageState storageState = StorageState.Undefined;

    // Whether node operator has finalised the pool
    bool internal finalised;

    // Trusted member scrub votes
    mapping(address => bool) memberScrubVotes;
    uint256 totalScrubVotes;
}

/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

interface RocketStorageInterface {

    // Deploy status
    function getDeployedStatus() external view returns (bool);

    // Guardian
    function getGuardian() external view returns(address);
    function setGuardian(address _newAddress) external;
    function confirmGuardian() external;

    // Getters
    function getAddress(bytes32 _key) external view returns (address);
    function getUint(bytes32 _key) external view returns (uint);
    function getString(bytes32 _key) external view returns (string memory);
    function getBytes(bytes32 _key) external view returns (bytes memory);
    function getBool(bytes32 _key) external view returns (bool);
    function getInt(bytes32 _key) external view returns (int);
    function getBytes32(bytes32 _key) external view returns (bytes32);

    // Setters
    function setAddress(bytes32 _key, address _value) external;
    function setUint(bytes32 _key, uint _value) external;
    function setString(bytes32 _key, string calldata _value) external;
    function setBytes(bytes32 _key, bytes calldata _value) external;
    function setBool(bytes32 _key, bool _value) external;
    function setInt(bytes32 _key, int _value) external;
    function setBytes32(bytes32 _key, bytes32 _value) external;

    // Deleters
    function deleteAddress(bytes32 _key) external;
    function deleteUint(bytes32 _key) external;
    function deleteString(bytes32 _key) external;
    function deleteBytes(bytes32 _key) external;
    function deleteBool(bytes32 _key) external;
    function deleteInt(bytes32 _key) external;
    function deleteBytes32(bytes32 _key) external;

    // Arithmetic
    function addUint(bytes32 _key, uint256 _amount) external;
    function subUint(bytes32 _key, uint256 _amount) external;

    // Protected storage
    function getNodeWithdrawalAddress(address _nodeAddress) external view returns (address);
    function getNodePendingWithdrawalAddress(address _nodeAddress) external view returns (address);
    function setWithdrawalAddress(address _nodeAddress, address _newWithdrawalAddress, bool _confirm) external;
    function confirmWithdrawalAddress(address _nodeAddress) external;
}

/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

interface RocketDAONodeTrustedInterface {
    function getBootstrapModeDisabled() external view returns (bool);
    function getMemberQuorumVotesRequired() external view returns (uint256);
    function getMemberAt(uint256 _index) external view returns (address);
    function getMemberCount() external view returns (uint256);
    function getMemberMinRequired() external view returns (uint256);
    function getMemberIsValid(address _nodeAddress) external view returns (bool);
    function getMemberLastProposalTime(address _nodeAddress) external view returns (uint256);
    function getMemberID(address _nodeAddress) external view returns (string memory);
    function getMemberUrl(address _nodeAddress) external view returns (string memory);
    function getMemberJoinedTime(address _nodeAddress) external view returns (uint256);
    function getMemberProposalExecutedTime(string memory _proposalType, address _nodeAddress) external view returns (uint256);
    function getMemberRPLBondAmount(address _nodeAddress) external view returns (uint256);
    function getMemberIsChallenged(address _nodeAddress) external view returns (bool);
    function getMemberUnbondedValidatorCount(address _nodeAddress) external view returns (uint256);
    function incrementMemberUnbondedValidatorCount(address _nodeAddress) external;
    function decrementMemberUnbondedValidatorCount(address _nodeAddress) external;
    function bootstrapMember(string memory _id, string memory _url, address _nodeAddress) external;
    function bootstrapSettingUint(string memory _settingContractName, string memory _settingPath, uint256 _value) external;
    function bootstrapSettingBool(string memory _settingContractName, string memory _settingPath, bool _value) external;
    function bootstrapUpgrade(string memory _type, string memory _name, string memory _contractAbi, address _contractAddress) external;
    function bootstrapDisable(bool _confirmDisableBootstrapMode) external;
    function memberJoinRequired(string memory _id, string memory _url) external;
}

/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

import "../../../../types/MinipoolDeposit.sol";

interface RocketDAOProtocolSettingsMinipoolInterface {
    function getLaunchBalance() external view returns (uint256);
    function getDepositNodeAmount(MinipoolDeposit _depositType) external view returns (uint256);
    function getFullDepositNodeAmount() external view returns (uint256);
    function getHalfDepositNodeAmount() external view returns (uint256);
    function getEmptyDepositNodeAmount() external view returns (uint256);
    function getDepositUserAmount(MinipoolDeposit _depositType) external view returns (uint256);
    function getFullDepositUserAmount() external view returns (uint256);
    function getHalfDepositUserAmount() external view returns (uint256);
    function getEmptyDepositUserAmount() external view returns (uint256);
    function getSubmitWithdrawableEnabled() external view returns (bool);
    function getLaunchTimeout() external view returns (uint256);
    function getMaximumCount() external view returns (uint256);
}

/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

interface RocketDAOProtocolSettingsNodeInterface {
    function getRegistrationEnabled() external view returns (bool);
    function getDepositEnabled() external view returns (bool);
    function getMinimumPerMinipoolStake() external view returns (uint256);
    function getMaximumPerMinipoolStake() external view returns (uint256);
}

/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

import "../../types/MinipoolDeposit.sol";
import "../../types/MinipoolStatus.sol";
import "../RocketStorageInterface.sol";

interface RocketMinipoolInterface {
    function initialise(address _nodeAddress, MinipoolDeposit _depositType) external;
    function getStatus() external view returns (MinipoolStatus);
    function getFinalised() external view returns (bool);
    function getStatusBlock() external view returns (uint256);
    function getStatusTime() external view returns (uint256);
    function getScrubVoted(address _member) external view returns (bool);
    function getDepositType() external view returns (MinipoolDeposit);
    function getNodeAddress() external view returns (address);
    function getNodeFee() external view returns (uint256);
    function getNodeDepositBalance() external view returns (uint256);
    function getNodeRefundBalance() external view returns (uint256);
    function getNodeDepositAssigned() external view returns (bool);
    function getUserDepositBalance() external view returns (uint256);
    function getUserDepositAssigned() external view returns (bool);
    function getUserDepositAssignedTime() external view returns (uint256);
    function getTotalScrubVotes() external view returns (uint256);
    function calculateNodeShare(uint256 _balance) external view returns (uint256);
    function calculateUserShare(uint256 _balance) external view returns (uint256);
    function nodeDeposit(bytes calldata _validatorPubkey, bytes calldata _validatorSignature, bytes32 _depositDataRoot) external payable;
    function userDeposit() external payable;
    function distributeBalance() external;
    function distributeBalanceAndFinalise() external;
    function refund() external;
    function slash() external;
    function finalise() external;
    function canStake() external view returns (bool);
    function stake(bytes calldata _validatorSignature, bytes32 _depositDataRoot) external;
    function setWithdrawable() external;
    function dissolve() external;
    function close() external;
    function voteScrub() external;
}

/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

import "../../types/MinipoolDeposit.sol";
import "./RocketMinipoolInterface.sol";

interface RocketMinipoolManagerInterface {
    function getMinipoolCount() external view returns (uint256);
    function getStakingMinipoolCount() external view returns (uint256);
    function getFinalisedMinipoolCount() external view returns (uint256);
    function getActiveMinipoolCount() external view returns (uint256);
    function getMinipoolCountPerStatus(uint256 offset, uint256 limit) external view returns (uint256, uint256, uint256, uint256, uint256);
    function getPrelaunchMinipools(uint256 offset, uint256 limit) external view returns (address[] memory);
    function getMinipoolAt(uint256 _index) external view returns (address);
    function getNodeMinipoolCount(address _nodeAddress) external view returns (uint256);
    function getNodeActiveMinipoolCount(address _nodeAddress) external view returns (uint256);
    function getNodeFinalisedMinipoolCount(address _nodeAddress) external view returns (uint256);
    function getNodeStakingMinipoolCount(address _nodeAddress) external view returns (uint256);
    function getNodeMinipoolAt(address _nodeAddress, uint256 _index) external view returns (address);
    function getNodeValidatingMinipoolCount(address _nodeAddress) external view returns (uint256);
    function getNodeValidatingMinipoolAt(address _nodeAddress, uint256 _index) external view returns (address);
    function getMinipoolByPubkey(bytes calldata _pubkey) external view returns (address);
    function getMinipoolExists(address _minipoolAddress) external view returns (bool);
    function getMinipoolDestroyed(address _minipoolAddress) external view returns (bool);
    function getMinipoolPubkey(address _minipoolAddress) external view returns (bytes memory);
    function getMinipoolWithdrawalCredentials(address _minipoolAddress) external pure returns (bytes memory);
    function createMinipool(address _nodeAddress, MinipoolDeposit _depositType, uint256 _salt) external returns (RocketMinipoolInterface);
    function destroyMinipool() external;
    function incrementNodeStakingMinipoolCount(address _nodeAddress) external;
    function decrementNodeStakingMinipoolCount(address _nodeAddress) external;
    function incrementNodeFinalisedMinipoolCount(address _nodeAddress) external;
    function setMinipoolPubkey(bytes calldata _pubkey) external;
    function getMinipoolBytecode() external pure returns (bytes memory);
}

/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

import "../../types/MinipoolDeposit.sol";

interface RocketMinipoolQueueInterface {
    function getTotalLength() external view returns (uint256);
    function getLength(MinipoolDeposit _depositType) external view returns (uint256);
    function getTotalCapacity() external view returns (uint256);
    function getEffectiveCapacity() external view returns (uint256);
    function getNextCapacity() external view returns (uint256);
    function getNextDeposit() external view returns (MinipoolDeposit, uint256);
    function enqueueMinipool(MinipoolDeposit _depositType, address _minipool) external;
    function dequeueMinipool() external returns (address minipoolAddress);
    function dequeueMinipoolByDeposit(MinipoolDeposit _depositType) external returns (address minipoolAddress);
    function removeMinipool(MinipoolDeposit _depositType) external;
}

/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

interface RocketNetworkPricesInterface {
    function getPricesBlock() external view returns (uint256);
    function getRPLPrice() external view returns (uint256);
    function getEffectiveRPLStake() external view returns (uint256);
    function getEffectiveRPLStakeUpdatedBlock() external view returns (uint256);
    function getLatestReportableBlock() external view returns (uint256);
    function inConsensus() external view returns (bool);
    function submitPrices(uint256 _block, uint256 _rplPrice, uint256 _effectiveRplStake) external;
    function executeUpdatePrices(uint256 _block, uint256 _rplPrice, uint256 _effectiveRplStake) external;
    function increaseEffectiveRPLStake(uint256 _amount) external;
    function decreaseEffectiveRPLStake(uint256 _amount) external;
}

/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

interface RocketNodeStakingInterface {
    function getTotalRPLStake() external view returns (uint256);
    function getNodeRPLStake(address _nodeAddress) external view returns (uint256);
    function getNodeRPLStakedTime(address _nodeAddress) external view returns (uint256);
    function getTotalEffectiveRPLStake() external view returns (uint256);
    function calculateTotalEffectiveRPLStake(uint256 offset, uint256 limit, uint256 rplPrice) external view returns (uint256);
    function getNodeEffectiveRPLStake(address _nodeAddress) external view returns (uint256);
    function getNodeMinimumRPLStake(address _nodeAddress) external view returns (uint256);
    function getNodeMaximumRPLStake(address _nodeAddress) external view returns (uint256);
    function getNodeMinipoolLimit(address _nodeAddress) external view returns (uint256);
    function stakeRPL(uint256 _amount) external;
    function withdrawRPL(uint256 _amount) external;
    function slashRPL(address _nodeAddress, uint256 _ethSlashAmount) external;
}

/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

interface AddressSetStorageInterface {
    function getCount(bytes32 _key) external view returns (uint);
    function getItem(bytes32 _key, uint _index) external view returns (address);
    function getIndexOf(bytes32 _key, address _value) external view returns (int);
    function addItem(bytes32 _key, address _value) external;
    function removeItem(bytes32 _key, address _value) external;
}

File 16 of 17 : MinipoolDeposit.sol
/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

// Represents the type of deposits required by a minipool

enum MinipoolDeposit {
    None,    // Marks an invalid deposit type
    Full,    // The minipool requires 32 ETH from the node operator, 16 ETH of which will be refinanced from user deposits
    Half,    // The minipool required 16 ETH from the node operator to be matched with 16 ETH from user deposits
    Empty    // The minipool requires 0 ETH from the node operator to be matched with 32 ETH from user deposits (trusted nodes only)
}

File 17 of 17 : MinipoolStatus.sol
/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |    DECENTRALISED STAKING PROTOCOL FOR ETHEREUM    |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to
  *  be community-owned, decentralised, and trustless.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// SPDX-License-Identifier: GPL-3.0-only

// Represents a minipool's status within the network

enum MinipoolStatus {
    Initialised,    // The minipool has been initialised and is awaiting a deposit of user ETH
    Prelaunch,      // The minipool has enough ETH to begin staking and is awaiting launch by the node operator
    Staking,        // The minipool is currently staking
    Withdrawable,   // The minipool has become withdrawable on the beacon chain and can be withdrawn from by the node operator
    Dissolved       // The minipool has been dissolved and its user deposited ETH has been returned to the deposit pool
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract RocketStorageInterface","name":"_rocketStorageAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minipool","type":"address"},{"indexed":true,"internalType":"address","name":"node","type":"address"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"MinipoolCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minipool","type":"address"},{"indexed":true,"internalType":"address","name":"node","type":"address"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"MinipoolDestroyed","type":"event"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"},{"internalType":"enum MinipoolDeposit","name":"_depositType","type":"uint8"},{"internalType":"uint256","name":"_salt","type":"uint256"}],"name":"createMinipool","outputs":[{"internalType":"contract RocketMinipoolInterface","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"decrementNodeStakingMinipoolCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"destroyMinipool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getActiveMinipoolCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFinalisedMinipoolCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getMinipoolAt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_pubkey","type":"bytes"}],"name":"getMinipoolByPubkey","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinipoolBytecode","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getMinipoolCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"getMinipoolCountPerStatus","outputs":[{"internalType":"uint256","name":"initialisedCount","type":"uint256"},{"internalType":"uint256","name":"prelaunchCount","type":"uint256"},{"internalType":"uint256","name":"stakingCount","type":"uint256"},{"internalType":"uint256","name":"withdrawableCount","type":"uint256"},{"internalType":"uint256","name":"dissolvedCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minipoolAddress","type":"address"}],"name":"getMinipoolDestroyed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minipoolAddress","type":"address"}],"name":"getMinipoolExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minipoolAddress","type":"address"}],"name":"getMinipoolPubkey","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minipoolAddress","type":"address"}],"name":"getMinipoolWithdrawalCredentials","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"getNodeActiveMinipoolCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"getNodeFinalisedMinipoolCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getNodeMinipoolAt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"getNodeMinipoolCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"getNodeStakingMinipoolCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getNodeValidatingMinipoolAt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"getNodeValidatingMinipoolCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"getPrelaunchMinipools","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakingMinipoolCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"incrementNodeFinalisedMinipoolCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"incrementNodeStakingMinipoolCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_pubkey","type":"bytes"}],"name":"setMinipoolPubkey","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"}]

608060405260008054610100600160a81b031916905534801561002157600080fd5b5060405162005ae938038062005ae98339818101604052602081101561004657600080fd5b50516000805460ff196001600160a01b0390931661010002610100600160a81b031990911617919091166001179055615a6480620000856000396000f3fe60806040523480156200001157600080fd5b5060043610620001e45760003560e01c80637bb40aaf1162000111578063b88a89f711620000a5578063d1ea6ce0116200007b578063d1ea6ce01462000731578063eff7319f146200073b578063f85b6943146200075b578063f90267c4146200076557620001e4565b8063b88a89f71462000652578063ce9b79ad146200067b578063cf6a4763146200068557620001e4565b80639da0700f11620000e75780639da0700f14620005c7578063a757987a14620005f6578063ae4d0bed146200061f578063b04e8868146200062957620001e4565b80637bb40aaf14620005655780638b300029146200056f5780639907288c146200059e57620001e4565b8063518e703c11620001895780635dfef965116200015f5780635dfef965146200047d578063606bb62e14620004f557806367bca235146200053257806375b59c7f146200053c57620001e4565b8063518e703c14620003e057806354fd4d50146200043457806357b4ef6b146200045457620001e4565b80632cb76c3711620001bf5780632cb76c3714620002c55780633b5ecefa14620003665780633eb535e914620003b757620001e4565b80631844ec0114620001e95780631ce9ec3314620002245780632c7f64d4146200024d575b600080fd5b62000212600480360360208110156200020157600080fd5b50356001600160a01b03166200078e565b60408051918252519081900360200190f35b62000212600480360360208110156200023c57600080fd5b50356001600160a01b031662000922565b620002c3600480360360208110156200026557600080fd5b8101906020810181356401000000008111156200028157600080fd5b8201836020820111156200029457600080fd5b80359060200191846001830284011164010000000083111715620002b757600080fd5b50909250905062000a3b565b005b620002ee60048036036020811015620002dd57600080fd5b50356001600160a01b031662000ec5565b6040805160208082528351818301528351919283929083019185019080838360005b838110156200032a57818101518382015260200162000310565b50505050905090810190601f168015620003585780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6200038c600480360360408110156200037e57600080fd5b508035906020013562000f38565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b620002ee60048036036020811015620003cf57600080fd5b50356001600160a01b0316620011d4565b6200041860048036036060811015620003f857600080fd5b506001600160a01b038135169060ff602082013516906040013562001241565b604080516001600160a01b039092168252519081900360200190f35b6200043e62001a79565b6040805160ff9092168252519081900360200190f35b62000212600480360360208110156200046c57600080fd5b50356001600160a01b031662001a82565b620004a3600480360360408110156200049557600080fd5b508035906020013562001ae9565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015620004e1578181015183820152602001620004c7565b505050509050019250505060405180910390f35b6200051e600480360360208110156200050d57600080fd5b50356001600160a01b031662001d72565b604080519115158252519081900360200190f35b6200021262001dd9565b620002c3600480360360208110156200055457600080fd5b50356001600160a01b031662001e40565b620002c36200210b565b62000418600480360360408110156200058757600080fd5b506001600160a01b03813516906020013562002725565b620002c360048036036020811015620005b657600080fd5b50356001600160a01b031662002847565b6200041860048036036040811015620005df57600080fd5b506001600160a01b03813516906020013562002afc565b6200051e600480360360208110156200060e57600080fd5b50356001600160a01b031662002be8565b6200021262002c4f565b620002c3600480360360208110156200064157600080fd5b50356001600160a01b031662002d78565b62000212600480360360208110156200066a57600080fd5b50356001600160a01b031662002ff1565b6200021262003058565b62000418600480360360208110156200069d57600080fd5b810190602081018135640100000000811115620006b957600080fd5b820183602082011115620006cc57600080fd5b80359060200191846001830284011164010000000083111715620006ef57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550620031f8945050505050565b620002126200325a565b62000418600480360360208110156200075357600080fd5b5035620032bc565b620002ee62003394565b62000212600480360360208110156200077d57600080fd5b50356001600160a01b0316620033c0565b600080620007d16040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b905060006200083a8460405160200180807f6e6f64652e6d696e69706f6f6c732e66696e616c697365642e636f756e740000815250601e01826001600160a01b031660601b81526014019150506040516020818303038152906040528051906020012062003565565b90506000826001600160a01b031663c9d6fee98660405160200180807f6e6f64652e6d696e69706f6f6c732e696e646578000000000000000000000000815250601401826001600160a01b031660601b8152601401915050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015620008dd57600080fd5b505afa158015620008f2573d6000803e3d6000fd5b505050506040513d60208110156200090957600080fd5b50519050620009198183620035f4565b95945050505050565b600080620009656040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b9050806001600160a01b031663c9d6fee98460405160200180807f6e6f64652e6d696e69706f6f6c732e696e646578000000000000000000000000815250601401826001600160a01b031660601b8152601401915050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801562000a0657600080fd5b505afa15801562000a1b573d6000803e3d6000fd5b505050506040513d602081101562000a3257600080fd5b50519392505050565b6040518060400160405280601581526020017f726f636b65744d696e69706f6f6c4d616e6167657200000000000000000000008152503062000b148260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083835b6020831062000ad35780518252601f19909201916020918201910162000ab2565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528051906020012062003652565b6001600160a01b0316816001600160a01b03161462000b7a576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b604080517f6d696e69706f6f6c2e657869737473000000000000000000000000000000000060208083019190915233606081901b602f840152835160238185030181526043909301909352815191012062000bd590620036ad565b62000c27576040805162461bcd60e51b815260206004820152601060248201527f496e76616c6964206d696e69706f6f6c00000000000000000000000000000000604482015290519081900360640190fd5b600062000c696040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b905060003390506000816001600160a01b03166370dabc9e6040518163ffffffff1660e01b815260040160206040518083038186803b15801562000cac57600080fd5b505afa15801562000cc1573d6000803e3d6000fd5b505050506040513d602081101562000cd857600080fd5b5051604080517f6d696e69706f6f6c2e7075626b657900000000000000000000000000000000006020828101919091523360601b602f83015282516023818403018152604383018085528151918301919091206063601f8e01849004909302840183019094528b815293945062000d6a93918c918c918291018382808284376000920191909152506200370892505050565b62000dcd888860405160200180807f76616c696461746f722e6d696e69706f6f6c000000000000000000000000000081525060120183838082843780830192505050925050506040516020818303038152906040528051906020012033620037ee565b604080517f6e6f64652e6d696e69706f6f6c732e76616c69646174696e672e696e646578006020808301919091527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b16603f8301528251603381840301815260538301808552815191909201207f8892716600000000000000000000000000000000000000000000000000000000909152605782015233607782015290516001600160a01b03851691638892716691609780830192600092919082900301818387803b15801562000ea257600080fd5b505af115801562000eb7573d6000803e3d6000fd5b505050505050505050505050565b604080517f01000000000000000000000000000000000000000000000000000000000000006020808301919091526000602183015260609390931b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602c820152815180820390930183528101905290565b60008060008060008062000f816040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b604080517f6d696e69706f6f6c732e696e64657800000000000000000000000000000000006020808301919091528251808303600f018152602f9092019092528051910120909150600062000fd562002c4f565b9050600062000fe58b8b6200385e565b90508181118062000ff4575089155b1562000ffd5750805b8a5b81811015620011c5576000856001600160a01b031663f3358a3a86846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b1580156200105757600080fd5b505afa1580156200106c573d6000803e3d6000fd5b505050506040513d60208110156200108357600080fd5b5051604080517f4e69d56000000000000000000000000000000000000000000000000000000000815290519192506000916001600160a01b03841691634e69d560916004808301926020929190829003018186803b158015620010e557600080fd5b505afa158015620010fa573d6000803e3d6000fd5b505050506040513d60208110156200111157600080fd5b5051905060008160048111156200112457fe5b141562001137576001909b019a620011ba565b60018160048111156200114657fe5b141562001159576001909a0199620011ba565b60028160048111156200116857fe5b14156200117b57600190990198620011ba565b60038160048111156200118a57fe5b14156200119d57600190980197620011ba565b6004816004811115620011ac57fe5b1415620011ba576001909701965b505060010162000fff565b50505050509295509295909350565b60606200123b8260405160200180807f6d696e69706f6f6c2e7075626b65790000000000000000000000000000000000815250600f01826001600160a01b031660601b815260140191505060405160208183030381529060405280519060200120620038c0565b92915050565b60006040518060400160405280601581526020017f726f636b65744d696e69706f6f6c4d616e61676572000000000000000000000081525030620012da8260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b6001600160a01b0316816001600160a01b03161462001340576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b6040518060400160405280601181526020017f726f636b65744e6f64654465706f73697400000000000000000000000000000081525033620013d78260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b6001600160a01b0316816001600160a01b0316146200143d576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b60006200147f6040518060400160405280601181526020017f726f636b65744e6f64655374616b696e67000000000000000000000000000000815250620034a4565b90506000620014c36040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b9050816001600160a01b03166390f7ff4c8b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156200151357600080fd5b505afa15801562001528573d6000803e3d6000fd5b505050506040513d60208110156200153f57600080fd5b50516200154c8b6200078e565b106200158a5760405162461bcd60e51b8152600401808060200182810382526042815260200180620059ed6042913960600191505060405180910390fd5b6000620015b0604051806060016040528060218152602001620059ab60219139620034a4565b90506000620015be62003058565b9050816001600160a01b0316636d4f8d3d6040518163ffffffff1660e01b815260040160206040518083038186803b158015620015fa57600080fd5b505afa1580156200160f573d6000803e3d6000fd5b505050506040513d60208110156200162657600080fd5b5051620016358260016200385e565b111562001689576040805162461bcd60e51b815260206004820152601d60248201527f476c6f62616c206d696e69706f6f6c206c696d69742072656163686564000000604482015290519081900360640190fd5b505060008054620016ab9061010090046001600160a01b03168c8c8c62003a25565b9050620017148160405160200180807f6d696e69706f6f6c2e6578697374730000000000000000000000000000000000815250600f01826001600160a01b031660601b815260140191505060405160208183030381529060405280519060200120600162003c0c565b816001600160a01b0316638892716660405160200180807f6d696e69706f6f6c732e696e6465780000000000000000000000000000000000815250600f01905060405160208183030381529060405280519060200120836040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b158015620017b257600080fd5b505af1158015620017c7573d6000803e3d6000fd5b50505050816001600160a01b031663889271668c60405160200180807f6e6f64652e6d696e69706f6f6c732e696e646578000000000000000000000000815250601401826001600160a01b031660601b815260140191505060405160208183030381529060405280519060200120836040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b1580156200187d57600080fd5b505af115801562001892573d6000803e3d6000fd5b5060039250620018a0915050565b8a6003811115620018ad57fe5b141562001963576000620018f66040518060400160405280601481526020017f726f636b657444414f4e6f646554727573746564000000000000000000000000815250620034a4565b9050806001600160a01b03166372043ec48d6040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b1580156200194857600080fd5b505af11580156200195d573d6000803e3d6000fd5b50505050505b8a6001600160a01b0316816001600160a01b03167f08b4b91bafaf992145c5dd7e098dfcdb32f879714c154c651c2758a44c7aeae4426040518082815260200191505060405180910390a3620019ee6040518060400160405280601381526020017f726f636b65744d696e69706f6f6c517565756500000000000000000000000000815250620034a4565b6001600160a01b031663b2e5fe9b8b836040518363ffffffff1660e01b81526004018083600381111562001a1e57fe5b8152602001826001600160a01b0316815260200192505050600060405180830381600087803b15801562001a5157600080fd5b505af115801562001a66573d6000803e3d6000fd5b50929d9c50505050505050505050505050565b60005460ff1681565b60006200123b8260405160200180807f6e6f64652e6d696e69706f6f6c732e7374616b696e672e636f756e7400000000815250601c01826001600160a01b031660601b81526014019150506040516020818303038152906040528051906020012062003565565b6060600062001b2d6040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b604080517f6d696e69706f6f6c732e696e64657800000000000000000000000000000000006020808301919091528251808303600f018152602f9092019092528051910120909150600062001b8162002c4f565b9050600062001b9187876200385e565b90508181118062001ba0575085155b1562001ba95750805b600062001bb78289620035f4565b67ffffffffffffffff8111801562001bce57600080fd5b5060405190808252806020026020018201604052801562001bf9578160200160208202803683370190505b5090506000885b8381101562001d64576000876001600160a01b031663f3358a3a88846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801562001c5857600080fd5b505afa15801562001c6d573d6000803e3d6000fd5b505050506040513d602081101562001c8457600080fd5b5051604080517f4e69d56000000000000000000000000000000000000000000000000000000000815290519192506000916001600160a01b03841691634e69d560916004808301926020929190829003018186803b15801562001ce657600080fd5b505afa15801562001cfb573d6000803e3d6000fd5b505050506040513d602081101562001d1257600080fd5b50519050600181600481111562001d2557fe5b141562001d59578185858151811062001d3a57fe5b6001600160a01b03909216602092830291909101909101526001909301925b505060010162001c00565b508152979650505050505050565b60006200123b8260405160200180807f6d696e69706f6f6c2e6578697374730000000000000000000000000000000000815250600f01826001600160a01b031660601b815260140191505060405160208183030381529060405280519060200120620036ad565b60408051808201909152601781527f6d696e69706f6f6c732e7374616b696e672e636f756e74000000000000000000602090910152600062001e3b7f3441dc4461171402746c7de6880184ae1bfbc9def01a5bd7508263456c14441962003565565b905090565b6040518060400160405280601581526020017f726f636b65744d696e69706f6f6c4d616e6167657200000000000000000000008152503062001ed78260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b6001600160a01b0316816001600160a01b03161462001f3d576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b604080517f6d696e69706f6f6c2e657869737473000000000000000000000000000000000060208083019190915233606081901b602f840152835160238185030181526043909301909352815191012062001f9890620036ad565b62001fea576040805162461bcd60e51b815260206004820152601060248201527f496e76616c6964206d696e69706f6f6c00000000000000000000000000000000604482015290519081900360640190fd5b604080517f6e6f64652e6d696e69706f6f6c732e7374616b696e672e636f756e74000000006020808301919091527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606088901b16603c83015282516030818403018152605090920190925280519101206000620020688262003565565b905062002082826200207c836001620035f4565b62003c7a565b604080517f6d696e69706f6f6c732e7374616b696e672e636f756e7400000000000000000060208083019190915282518083036017018152603790920190925280519101206000620020d48262003565565b9050620020e8826200207c836001620035f4565b620021018884620020fb816001620035f4565b62003ce7565b5050505050505050565b6040518060400160405280601581526020017f726f636b65744d696e69706f6f6c4d616e61676572000000000000000000000081525030620021a28260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b6001600160a01b0316816001600160a01b03161462002208576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b604080517f6d696e69706f6f6c2e657869737473000000000000000000000000000000000060208083019190915233606081901b602f84015283516023818503018152604390930190935281519101206200226390620036ad565b620022b5576040805162461bcd60e51b815260206004820152601060248201527f496e76616c6964206d696e69706f6f6c00000000000000000000000000000000604482015290519081900360640190fd5b6000620022f76040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b905060003390506000816001600160a01b03166370dabc9e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200233a57600080fd5b505afa1580156200234f573d6000803e3d6000fd5b505050506040513d60208110156200236657600080fd5b5051604080517f6d696e69706f6f6c2e65786973747300000000000000000000000000000000006020828101919091523360601b602f8301528251602381840301815260439092019092528051910120909150620023c690600062003c0c565b604080517f6d696e69706f6f6c2e64657374726f79656400000000000000000000000000006020808301919091523360601b603283015282516026818403018152604690920190925280519101206200242190600162003c0c565b604080517f6d696e69706f6f6c732e696e64657800000000000000000000000000000000006020808301919091528251808303600f018152602f8301808552815191909201207ff79b36ad00000000000000000000000000000000000000000000000000000000909152603382015233605382015290516001600160a01b0385169163f79b36ad91607380830192600092919082900301818387803b158015620024ca57600080fd5b505af1158015620024df573d6000803e3d6000fd5b5050604080517f6e6f64652e6d696e69706f6f6c732e696e6465780000000000000000000000006020808301919091527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606087901b1660348301528251602881840301815260488301808552815191909201207ff79b36ad00000000000000000000000000000000000000000000000000000000909152604c82015233606c82015290516001600160a01b038716935063f79b36ad9250608c80830192600092919082900301818387803b158015620025b857600080fd5b505af1158015620025cd573d6000803e3d6000fd5b505050506000620025de33620011d4565b604080517f6d696e69706f6f6c2e7075626b657900000000000000000000000000000000006020808301919091523360601b602f83015282516023818403018152604390920190925280519101209091506200263a9062004292565b620026dc8160405160200180807f76616c696461746f722e6d696e69706f6f6c000000000000000000000000000081525060120182805190602001908083835b602083106200269b5780518252601f1990920191602091820191016200267a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528051906020012062004314565b6040805142815290516001600160a01b0384169133917f3097cb0f536cd88115b814915d7030d2fe958943357cd2b1a9e1dba8a673ec699181900360200190a350505050505050565b600080620027686040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b9050806001600160a01b031663f3358a3a8560405160200180807f6e6f64652e6d696e69706f6f6c732e696e646578000000000000000000000000815250601401826001600160a01b031660601b815260140191505060405160208183030381529060405280519060200120856040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b1580156200281157600080fd5b505afa15801562002826573d6000803e3d6000fd5b505050506040513d60208110156200283d57600080fd5b5051949350505050565b6040518060400160405280601581526020017f726f636b65744d696e69706f6f6c4d616e61676572000000000000000000000081525030620028de8260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b6001600160a01b0316816001600160a01b03161462002944576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b604080517f6d696e69706f6f6c2e657869737473000000000000000000000000000000000060208083019190915233606081901b602f84015283516023818503018152604390930190935281519101206200299f90620036ad565b620029f1576040805162461bcd60e51b815260206004820152601060248201527f496e76616c6964206d696e69706f6f6c00000000000000000000000000000000604482015290519081900360640190fd5b604080517f6e6f64652e6d696e69706f6f6c732e7374616b696e672e636f756e74000000006020808301919091527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606088901b16603c8301528251603081840301815260509092019092528051910120600062002a6f8262003565565b905062002a83826200207c8360016200385e565b604080517f6d696e69706f6f6c732e7374616b696e672e636f756e740000000000000000006020808301919091528251808303601701815260379092019092528051910120600062002ad58262003565565b905062002ae9826200207c8360016200385e565b620021018884620020fb8160016200385e565b60008062002b3f6040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b9050806001600160a01b031663f3358a3a8560405160200180807f6e6f64652e6d696e69706f6f6c732e76616c69646174696e672e696e64657800815250601f01826001600160a01b031660601b815260140191505060405160208183030381529060405280519060200120856040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b1580156200281157600080fd5b60006200123b8260405160200180807f6d696e69706f6f6c2e64657374726f7965640000000000000000000000000000815250601201826001600160a01b031660601b815260140191505060405160208183030381529060405280519060200120620036ad565b60008062002c926040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b604080518082018252600f81527f6d696e69706f6f6c732e696e646578000000000000000000000000000000000060209182015281517fc9d6fee90000000000000000000000000000000000000000000000000000000081527ffd351ca1580febcf3f7f5a9bf9fd8dff9e6da5ca4df400be6b63fcdc2f2a9184600482015291519293506001600160a01b0384169263c9d6fee9926024808201939291829003018186803b15801562002d4457600080fd5b505afa15801562002d59573d6000803e3d6000fd5b505050506040513d602081101562002d7057600080fd5b505191505090565b6040518060400160405280601581526020017f726f636b65744d696e69706f6f6c4d616e6167657200000000000000000000008152503062002e0f8260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b6001600160a01b0316816001600160a01b03161462002e75576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b604080517f6d696e69706f6f6c2e657869737473000000000000000000000000000000000060208083019190915233606081901b602f840152835160238185030181526043909301909352815191012062002ed090620036ad565b62002f22576040805162461bcd60e51b815260206004820152601060248201527f496e76616c6964206d696e69706f6f6c00000000000000000000000000000000604482015290519081900360640190fd5b62002f898460405160200180807f6e6f64652e6d696e69706f6f6c732e66696e616c697365642e636f756e740000815250601e01826001600160a01b031660601b81526014019150506040516020818303038152906040528051906020012060016200437a565b60408051808201909152601981527f6d696e69706f6f6c732e66696e616c697365642e636f756e740000000000000060209091015262002feb7f7600e27d933b4f22ce3529323416023ac97f47a7481431772c019790c3ca57d260016200437a565b50505050565b60006200123b8260405160200180807f6e6f64652e6d696e69706f6f6c732e66696e616c697365642e636f756e740000815250601e01826001600160a01b031660601b81526014019150506040516020818303038152906040528051906020012062003565565b6000806200309b6040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b604080518082018252600f81527f6d696e69706f6f6c732e696e646578000000000000000000000000000000000060209182015281517fc9d6fee90000000000000000000000000000000000000000000000000000000081527ffd351ca1580febcf3f7f5a9bf9fd8dff9e6da5ca4df400be6b63fcdc2f2a9184600482015291519293506000926001600160a01b0385169263c9d6fee9926024808301939192829003018186803b1580156200315057600080fd5b505afa15801562003165573d6000803e3d6000fd5b505050506040513d60208110156200317c57600080fd5b505160408051808201909152601981527f6d696e69706f6f6c732e66696e616c697365642e636f756e740000000000000060209091015290506000620031e27f7600e27d933b4f22ce3529323416023ac97f47a7481431772c019790c3ca57d262003565565b9050620031f08282620035f4565b935050505090565b60006200123b8260405160200180807f76616c696461746f722e6d696e69706f6f6c000000000000000000000000000081525060120182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b60408051808201909152601981527f6d696e69706f6f6c732e66696e616c697365642e636f756e7400000000000000602090910152600062001e3b7f7600e27d933b4f22ce3529323416023ac97f47a7481431772c019790c3ca57d262003565565b600080620032ff6040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b9050806001600160a01b031663f3358a3a60405160200180807f6d696e69706f6f6c732e696e6465780000000000000000000000000000000000815250600f01905060405160208183030381529060405280519060200120856040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801562000a0657600080fd5b606060405180602001620033a890620044ae565b601f1982820381018352601f90910116604052905090565b600080620034036040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b9050806001600160a01b031663c9d6fee98460405160200180807f6e6f64652e6d696e69706f6f6c732e76616c69646174696e672e696e64657800815250601f01826001600160a01b031660601b8152601401915050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801562000a0657600080fd5b600080620035078360405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b90506001600160a01b0381166200123b576040805162461bcd60e51b815260206004820152601260248201527f436f6e7472616374206e6f7420666f756e640000000000000000000000000000604482015290519081900360640190fd5b60008060019054906101000a90046001600160a01b03166001600160a01b031663bd02d0f5836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015620035c057600080fd5b505afa158015620035d5573d6000803e3d6000fd5b505050506040513d6020811015620035ec57600080fd5b505192915050565b6000828211156200364c576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008060019054906101000a90046001600160a01b03166001600160a01b03166321f8a721836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015620035c057600080fd5b60008060019054906101000a90046001600160a01b03166001600160a01b0316637ae1cfca836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015620035c057600080fd5b600060019054906101000a90046001600160a01b03166001600160a01b0316632e28d08483836040518363ffffffff1660e01b81526004018083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156200378257818101518382015260200162003768565b50505050905090810190601f168015620037b05780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b158015620037d157600080fd5b505af1158015620037e6573d6000803e3d6000fd5b505050505050565b60008054604080517fca446dd9000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b03858116602483015291516101009093049091169263ca446dd99260448084019382900301818387803b158015620037d157600080fd5b600082820183811015620038b9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008054604080517fc031a1800000000000000000000000000000000000000000000000000000000081526004810185905290516060936101009093046001600160a01b03169263c031a1809260248082019391829003018186803b1580156200392957600080fd5b505afa1580156200393e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156200396857600080fd5b81019080805160405193929190846401000000008211156200398957600080fd5b9083019060208201858111156200399f57600080fd5b8251640100000000811182820188101715620039ba57600080fd5b82525081516020918201929091019080838360005b83811015620039e9578181015183820152602001620039cf565b50505050905090810190601f16801562003a175780820380516001836020036101000a031916815260200191505b506040525050509050919050565b60008062003a3262003394565b905060008187878760405160200180846001600160a01b03168152602001836001600160a01b0316815260200182600381111562003a6c57fe5b815260200193505050506040516020818303038152906040526040516020018083805190602001908083835b6020831062003ab95780518252601f19909201916020918201910162003a98565b51815160209384036101000a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff018019909216911617905285519190930192850191508083835b6020831062003b215780518252601f19909201916020918201910162003b00565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405290506000868560405160200180836001600160a01b031660601b8152601401828152602001925050506040516020818303038152906040528051906020012060001c9050600080828451602086016000f5915050803b8062003bff576040805162461bcd60e51b815260206004820152601860248201527f436f6e7472616374206372656174696f6e206661696c65640000000000000000604482015290519081900360640190fd5b5098975050505050505050565b60008054604080517fabfdcced00000000000000000000000000000000000000000000000000000000815260048101869052841515602482015290516101009092046001600160a01b03169263abfdcced9260448084019382900301818387803b158015620037d157600080fd5b60008054604080517fe2a4853a000000000000000000000000000000000000000000000000000000008152600481018690526024810185905290516101009092046001600160a01b03169263e2a4853a9260448084019382900301818387803b158015620037d157600080fd5b600062003d296040518060400160405280601381526020017f726f636b65744e6574776f726b50726963657300000000000000000000000000815250620034a4565b9050600062003d51604051806060016040528060218152602001620059ab60219139620034a4565b9050600062003d956040518060400160405280601d81526020017f726f636b657444414f50726f746f636f6c53657474696e67734e6f6465000000815250620034a4565b9050600062003dd96040518060400160405280601181526020017f726f636b65744e6f64655374616b696e67000000000000000000000000000000815250620034a4565b9050836001600160a01b03166337ab50046040518163ffffffff1660e01b815260040160206040518083038186803b15801562003e1557600080fd5b505afa15801562003e2a573d6000803e3d6000fd5b505050506040513d602081101562003e4157600080fd5b505162003e95576040805162461bcd60e51b815260206004820152601b60248201527f4e6574776f726b206973206e6f7420696e20636f6e73656e7375730000000000604482015290519081900360640190fd5b6000816001600160a01b0316639961cee4896040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801562003ee557600080fd5b505afa15801562003efa573d6000803e3d6000fd5b505050506040513d602081101562003f1157600080fd5b5051604080517f1e72ba86000000000000000000000000000000000000000000000000000000008152905191925060009162004036916001600160a01b03871691631e72ba8691600480820192602092909190829003018186803b15801562003f7957600080fd5b505afa15801562003f8e573d6000803e3d6000fd5b505050506040513d602081101562003fa557600080fd5b5051604080517f162adbfd00000000000000000000000000000000000000000000000000000000815290516001600160a01b0389169163162adbfd916004808301926020929190829003018186803b1580156200400157600080fd5b505afa15801562004016573d6000803e3d6000fd5b505050506040513d60208110156200402d57600080fd5b505190620043e7565b90506000620040b9876001600160a01b031663724d4a096040518163ffffffff1660e01b815260040160206040518083038186803b1580156200407857600080fd5b505afa1580156200408d573d6000803e3d6000fd5b505050506040513d6020811015620040a457600080fd5b5051620040b2848c620043e7565b9062004445565b9050600062004135886001600160a01b031663724d4a096040518163ffffffff1660e01b815260040160206040518083038186803b158015620040fb57600080fd5b505afa15801562004110573d6000803e3d6000fd5b505050506040513d60208110156200412757600080fd5b5051620040b2858c620043e7565b9050888a1115620041f257808411620041565750505050505050506200428d565b6000620041648383620035f4565b90506000620041748684620035f4565b905081811115620041825750805b896001600160a01b031663052e5640826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015620041c957600080fd5b505af1158015620041de573d6000803e3d6000fd5b50505050505050505050505050506200428d565b898911156200428457818411620042115750505050505050506200428d565b60006200421f8284620035f4565b905060006200422f8685620035f4565b9050818111156200423d5750805b896001600160a01b031663b58d89d3826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015620041c957600080fd5b50505050505050505b505050565b60008054604080517f616b59f60000000000000000000000000000000000000000000000000000000081526004810185905290516101009092046001600160a01b03169263616b59f69260248084019382900301818387803b158015620042f857600080fd5b505af11580156200430d573d6000803e3d6000fd5b5050505050565b60008054604080517f0e14a3760000000000000000000000000000000000000000000000000000000081526004810185905290516101009092046001600160a01b031692630e14a3769260248084019382900301818387803b158015620042f857600080fd5b60008054604080517fadb353dc000000000000000000000000000000000000000000000000000000008152600481018690526024810185905290516101009092046001600160a01b03169263adb353dc9260448084019382900301818387803b158015620037d157600080fd5b600082620043f8575060006200123b565b828202828482816200440657fe5b0414620038b95760405162461bcd60e51b8152600401808060200182810382526021815260200180620059cc6021913960400191505060405180910390fd5b60008082116200449c576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381620044a657fe5b049392505050565b6114ee80620044bd8339019056fe6080604052600080546001600160a01b0319169055600c805460ff19169055600f805460ff60a01b191690553480156200003857600080fd5b50604051620014ee380380620014ee833981810160405260608110156200005e57600080fd5b50805160208201516040909201519091906001600160a01b038316620000cb576040805162461bcd60e51b815260206004820152601760248201527f496e76616c69642073746f726167652061646472657373000000000000000000604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b038516178155600f805460ff60a01b1916600160a01b17905560408051808201909152601681527f726f636b65744d696e69706f6f6c44656c656761746500000000000000000000602082015262000138906200035c565b600c8054610100600160a81b0319166101006001600160a01b0384160217905590506200016581620004ca565b620001b7576040805162461bcd60e51b815260206004820181905260248201527f44656c656761746520636f6e747261637420646f6573206e6f74206578697374604482015290519081900360640190fd5b600080826001600160a01b031685856003811115620001d257fe5b604080516001600160a01b03909316602484015260ff90911660448084019190915281518084039091018152606490920181526020820180516001600160e01b031663dd0ddfcf60e01b17815290518251909182918083835b602083106200024c5780518252601f1990920191602091820191016200022b565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114620002ae576040519150601f19603f3d011682016040523d82523d6000602084013e620002b3565b606091505b5091509150816200035057620002c981620004d6565b60405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000314578181015183820152602001620002fa565b50505050905090810190601f168015620003425780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050505050620005f6565b60008060008054906101000a90046001600160a01b03166001600160a01b03166321f8a7218460405160200180806f636f6e74726163742e6164647265737360801b81525060100182805190602001908083835b60208310620003d15780518252601f199092019160209182019101620003b0565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156200044157600080fd5b505afa15801562000456573d6000803e3d6000fd5b505050506040513d60208110156200046d57600080fd5b505190506001600160a01b038116620004c2576040805162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081b9bdd08199bdd5b9960721b604482015290519081900360640190fd5b90505b919050565b3b63ffffffff16151590565b60606044825110156200051e575060408051808201909152601d81527f5472616e73616374696f6e2072657665727465642073696c656e746c790000006020820152620004c5565b60048201805190926024019060208110156200053957600080fd5b81019080805160405193929190846401000000008211156200055a57600080fd5b9083019060208201858111156200057057600080fd5b82516401000000008111828201881017156200058b57600080fd5b82525081516020918201929091019080838360005b83811015620005ba578181015183820152602001620005a0565b50505050905090810190601f168015620005e85780820380516001836020036101000a031916815260200191505b506040525050509050919050565b610ee880620006066000396000f3fe6080604052600436106100745760003560e01c80638dfe8b2d1161004e5780638dfe8b2d1461034f5780638ee7d0cb14610364578063bc7f3b501461038d578063be1d1d32146103a2576100b4565b80631dcef0bf146102ce57806326d1c0681461030c57806352def61d14610323576100b4565b366100b45760408051348152426020820152815133927f1d57945c1033a96907a78f6e0ebf6a03815725dac25f33cc806558670344ac88928290030190a2005b600c546000903690606090839060ff166100eb57600c54610100900473ffffffffffffffffffffffffffffffffffffffff16610129565b6101296040518060400160405280601681526020017f726f636b65744d696e69706f6f6c44656c6567617465000000000000000000008152506103b7565b905061013481610596565b61019f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f44656c656761746520636f6e747261637420646f6573206e6f74206578697374604482015290519081900360640190fd5b6000808273ffffffffffffffffffffffffffffffffffffffff1686866040518083838082843760405192019450600093509091505080830381855af49150503d806000811461020a576040519150601f19603f3d011682016040523d82523d6000602084013e61020f565b606091505b5091509150816102c057610222816105a2565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561028557818101518382015260200161026d565b50505050905090810190601f1680156102b25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b805195506020019350505050f35b3480156102da57600080fd5b506102e36106b9565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561031857600080fd5b5061032161072c565b005b34801561032f57600080fd5b506103216004803603602081101561034657600080fd5b50351515610a09565b34801561035b57600080fd5b50610321610b7c565b34801561037057600080fd5b50610379610dee565b604080519115158252519081900360200190f35b34801561039957600080fd5b506102e3610df7565b3480156103ae57600080fd5b506102e3610e18565b60008060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321f8a7218460405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083835b6020831061046f57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610432565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156104de57600080fd5b505afa1580156104f2573d6000803e3d6000fd5b505050506040513d602081101561050857600080fd5b5051905073ffffffffffffffffffffffffffffffffffffffff811661058e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f436f6e7472616374206e6f7420666f756e640000000000000000000000000000604482015290519081900360640190fd5b90505b919050565b3b63ffffffff16151590565b60606044825110156105e8575060408051808201909152601d81527f5472616e73616374696f6e2072657665727465642073696c656e746c790000006020820152610591565b600482018051909260240190602081101561060257600080fd5b810190808051604051939291908464010000000082111561062257600080fd5b90830190602082018581111561063757600080fd5b825164010000000081118282018810171561065157600080fd5b82525081516020918201929091019080838360005b8381101561067e578181015183820152602001610666565b50505050905090810190601f1680156106ab5780820380516001836020036101000a031916815260200191505b506040525050509050919050565b600c5460009060ff166106e957600c54610100900473ffffffffffffffffffffffffffffffffffffffff16610727565b6107276040518060400160405280601681526020017f726f636b65744d696e69706f6f6c44656c6567617465000000000000000000008152506103b7565b905090565b6000805460048054604080517f5b49ff6200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff61010090930483169381019390935251921691635b49ff6291602480820192602092909190829003018186803b1580156107a957600080fd5b505afa1580156107bd573d6000803e3d6000fd5b505050506040513d60208110156107d357600080fd5b5051600454909150610100900473ffffffffffffffffffffffffffffffffffffffff1633148061081857503373ffffffffffffffffffffffffffffffffffffffff8216145b61086d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180610e86602d913960400191505060405180910390fd5b600c54600d805461010090920473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff000000000000000000000000000000000000000090921691909117905560408051808201909152601681527f726f636b65744d696e69706f6f6c44656c65676174650000000000000000000060208201526108f7906103b7565b600c80547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010073ffffffffffffffffffffffffffffffffffffffff93841681029190911791829055600d548316910490911614156109a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180610e5a602c913960400191505060405180910390fd5b600d54600c546040805173ffffffffffffffffffffffffffffffffffffffff93841681526101009092049092166020820152428183015290517f720d539b7abaee498c7536b8bf9f854bcd839fb4db9dc00e7494c219b3a20d459181900360600190a150565b6000805460048054604080517f5b49ff6200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff61010090930483169381019390935251921691635b49ff6291602480820192602092909190829003018186803b158015610a8657600080fd5b505afa158015610a9a573d6000803e3d6000fd5b505050506040513d6020811015610ab057600080fd5b5051600454909150610100900473ffffffffffffffffffffffffffffffffffffffff16331480610af557503373ffffffffffffffffffffffffffffffffffffffff8216145b610b4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180610e86602d913960400191505060405180910390fd5b50600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6000805460048054604080517f5b49ff6200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff61010090930483169381019390935251921691635b49ff6291602480820192602092909190829003018186803b158015610bf957600080fd5b505afa158015610c0d573d6000803e3d6000fd5b505050506040513d6020811015610c2357600080fd5b5051600454909150610100900473ffffffffffffffffffffffffffffffffffffffff16331480610c6857503373ffffffffffffffffffffffffffffffffffffffff8216145b610cbd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180610e86602d913960400191505060405180910390fd5b600d5473ffffffffffffffffffffffffffffffffffffffff16610d2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180610e356025913960400191505060405180910390fd5b600c8054600d805473ffffffffffffffffffffffffffffffffffffffff8181166101009081027fffffffffffffffffffffff0000000000000000000000000000000000000000ff861617958690557fffffffffffffffffffffffff000000000000000000000000000000000000000090921690925560408051938290048316808552919094049091166020830152428284015291517f01d12a47982bd695d9fa134134fa172f56f650d817bb4fb0bd4ae3754d2fdca69181900360600190a15050565b600c5460ff1690565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff1690565b600d5473ffffffffffffffffffffffffffffffffffffffff169056fe50726576696f75732064656c656761746520636f6e7472616374206973206e6f74207365744e65772064656c6567617465206973207468652073616d6520617320746865206578697374696e67206f6e654f6e6c7920746865206e6f6465206f70657261746f722063616e206163636573732074686973206d6574686f64a26469706673582212209a6daedd83e54e66fbfbf927322718b812db513528d0b0bf4667b671d50dbd5364736f6c63430007060033726f636b657444414f50726f746f636f6c53657474696e67734d696e69706f6f6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d696e69706f6f6c20636f756e74206166746572206465706f7369742065786365656473206c696d6974206261736564206f6e206e6f64652052504c207374616b65a26469706673582212201e5da819db4f3d02b97f6ab0dd3fec762d9fcc54bbefccb1f3efb206ed4ffb1964736f6c634300070600330000000000000000000000001d8f8f00cfa6758d7be78336684788fb0ee0fa46

Deployed Bytecode

0x60806040523480156200001157600080fd5b5060043610620001e45760003560e01c80637bb40aaf1162000111578063b88a89f711620000a5578063d1ea6ce0116200007b578063d1ea6ce01462000731578063eff7319f146200073b578063f85b6943146200075b578063f90267c4146200076557620001e4565b8063b88a89f71462000652578063ce9b79ad146200067b578063cf6a4763146200068557620001e4565b80639da0700f11620000e75780639da0700f14620005c7578063a757987a14620005f6578063ae4d0bed146200061f578063b04e8868146200062957620001e4565b80637bb40aaf14620005655780638b300029146200056f5780639907288c146200059e57620001e4565b8063518e703c11620001895780635dfef965116200015f5780635dfef965146200047d578063606bb62e14620004f557806367bca235146200053257806375b59c7f146200053c57620001e4565b8063518e703c14620003e057806354fd4d50146200043457806357b4ef6b146200045457620001e4565b80632cb76c3711620001bf5780632cb76c3714620002c55780633b5ecefa14620003665780633eb535e914620003b757620001e4565b80631844ec0114620001e95780631ce9ec3314620002245780632c7f64d4146200024d575b600080fd5b62000212600480360360208110156200020157600080fd5b50356001600160a01b03166200078e565b60408051918252519081900360200190f35b62000212600480360360208110156200023c57600080fd5b50356001600160a01b031662000922565b620002c3600480360360208110156200026557600080fd5b8101906020810181356401000000008111156200028157600080fd5b8201836020820111156200029457600080fd5b80359060200191846001830284011164010000000083111715620002b757600080fd5b50909250905062000a3b565b005b620002ee60048036036020811015620002dd57600080fd5b50356001600160a01b031662000ec5565b6040805160208082528351818301528351919283929083019185019080838360005b838110156200032a57818101518382015260200162000310565b50505050905090810190601f168015620003585780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6200038c600480360360408110156200037e57600080fd5b508035906020013562000f38565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b620002ee60048036036020811015620003cf57600080fd5b50356001600160a01b0316620011d4565b6200041860048036036060811015620003f857600080fd5b506001600160a01b038135169060ff602082013516906040013562001241565b604080516001600160a01b039092168252519081900360200190f35b6200043e62001a79565b6040805160ff9092168252519081900360200190f35b62000212600480360360208110156200046c57600080fd5b50356001600160a01b031662001a82565b620004a3600480360360408110156200049557600080fd5b508035906020013562001ae9565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015620004e1578181015183820152602001620004c7565b505050509050019250505060405180910390f35b6200051e600480360360208110156200050d57600080fd5b50356001600160a01b031662001d72565b604080519115158252519081900360200190f35b6200021262001dd9565b620002c3600480360360208110156200055457600080fd5b50356001600160a01b031662001e40565b620002c36200210b565b62000418600480360360408110156200058757600080fd5b506001600160a01b03813516906020013562002725565b620002c360048036036020811015620005b657600080fd5b50356001600160a01b031662002847565b6200041860048036036040811015620005df57600080fd5b506001600160a01b03813516906020013562002afc565b6200051e600480360360208110156200060e57600080fd5b50356001600160a01b031662002be8565b6200021262002c4f565b620002c3600480360360208110156200064157600080fd5b50356001600160a01b031662002d78565b62000212600480360360208110156200066a57600080fd5b50356001600160a01b031662002ff1565b6200021262003058565b62000418600480360360208110156200069d57600080fd5b810190602081018135640100000000811115620006b957600080fd5b820183602082011115620006cc57600080fd5b80359060200191846001830284011164010000000083111715620006ef57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550620031f8945050505050565b620002126200325a565b62000418600480360360208110156200075357600080fd5b5035620032bc565b620002ee62003394565b62000212600480360360208110156200077d57600080fd5b50356001600160a01b0316620033c0565b600080620007d16040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b905060006200083a8460405160200180807f6e6f64652e6d696e69706f6f6c732e66696e616c697365642e636f756e740000815250601e01826001600160a01b031660601b81526014019150506040516020818303038152906040528051906020012062003565565b90506000826001600160a01b031663c9d6fee98660405160200180807f6e6f64652e6d696e69706f6f6c732e696e646578000000000000000000000000815250601401826001600160a01b031660601b8152601401915050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015620008dd57600080fd5b505afa158015620008f2573d6000803e3d6000fd5b505050506040513d60208110156200090957600080fd5b50519050620009198183620035f4565b95945050505050565b600080620009656040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b9050806001600160a01b031663c9d6fee98460405160200180807f6e6f64652e6d696e69706f6f6c732e696e646578000000000000000000000000815250601401826001600160a01b031660601b8152601401915050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801562000a0657600080fd5b505afa15801562000a1b573d6000803e3d6000fd5b505050506040513d602081101562000a3257600080fd5b50519392505050565b6040518060400160405280601581526020017f726f636b65744d696e69706f6f6c4d616e6167657200000000000000000000008152503062000b148260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083835b6020831062000ad35780518252601f19909201916020918201910162000ab2565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528051906020012062003652565b6001600160a01b0316816001600160a01b03161462000b7a576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b604080517f6d696e69706f6f6c2e657869737473000000000000000000000000000000000060208083019190915233606081901b602f840152835160238185030181526043909301909352815191012062000bd590620036ad565b62000c27576040805162461bcd60e51b815260206004820152601060248201527f496e76616c6964206d696e69706f6f6c00000000000000000000000000000000604482015290519081900360640190fd5b600062000c696040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b905060003390506000816001600160a01b03166370dabc9e6040518163ffffffff1660e01b815260040160206040518083038186803b15801562000cac57600080fd5b505afa15801562000cc1573d6000803e3d6000fd5b505050506040513d602081101562000cd857600080fd5b5051604080517f6d696e69706f6f6c2e7075626b657900000000000000000000000000000000006020828101919091523360601b602f83015282516023818403018152604383018085528151918301919091206063601f8e01849004909302840183019094528b815293945062000d6a93918c918c918291018382808284376000920191909152506200370892505050565b62000dcd888860405160200180807f76616c696461746f722e6d696e69706f6f6c000000000000000000000000000081525060120183838082843780830192505050925050506040516020818303038152906040528051906020012033620037ee565b604080517f6e6f64652e6d696e69706f6f6c732e76616c69646174696e672e696e646578006020808301919091527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b16603f8301528251603381840301815260538301808552815191909201207f8892716600000000000000000000000000000000000000000000000000000000909152605782015233607782015290516001600160a01b03851691638892716691609780830192600092919082900301818387803b15801562000ea257600080fd5b505af115801562000eb7573d6000803e3d6000fd5b505050505050505050505050565b604080517f01000000000000000000000000000000000000000000000000000000000000006020808301919091526000602183015260609390931b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602c820152815180820390930183528101905290565b60008060008060008062000f816040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b604080517f6d696e69706f6f6c732e696e64657800000000000000000000000000000000006020808301919091528251808303600f018152602f9092019092528051910120909150600062000fd562002c4f565b9050600062000fe58b8b6200385e565b90508181118062000ff4575089155b1562000ffd5750805b8a5b81811015620011c5576000856001600160a01b031663f3358a3a86846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b1580156200105757600080fd5b505afa1580156200106c573d6000803e3d6000fd5b505050506040513d60208110156200108357600080fd5b5051604080517f4e69d56000000000000000000000000000000000000000000000000000000000815290519192506000916001600160a01b03841691634e69d560916004808301926020929190829003018186803b158015620010e557600080fd5b505afa158015620010fa573d6000803e3d6000fd5b505050506040513d60208110156200111157600080fd5b5051905060008160048111156200112457fe5b141562001137576001909b019a620011ba565b60018160048111156200114657fe5b141562001159576001909a0199620011ba565b60028160048111156200116857fe5b14156200117b57600190990198620011ba565b60038160048111156200118a57fe5b14156200119d57600190980197620011ba565b6004816004811115620011ac57fe5b1415620011ba576001909701965b505060010162000fff565b50505050509295509295909350565b60606200123b8260405160200180807f6d696e69706f6f6c2e7075626b65790000000000000000000000000000000000815250600f01826001600160a01b031660601b815260140191505060405160208183030381529060405280519060200120620038c0565b92915050565b60006040518060400160405280601581526020017f726f636b65744d696e69706f6f6c4d616e61676572000000000000000000000081525030620012da8260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b6001600160a01b0316816001600160a01b03161462001340576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b6040518060400160405280601181526020017f726f636b65744e6f64654465706f73697400000000000000000000000000000081525033620013d78260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b6001600160a01b0316816001600160a01b0316146200143d576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b60006200147f6040518060400160405280601181526020017f726f636b65744e6f64655374616b696e67000000000000000000000000000000815250620034a4565b90506000620014c36040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b9050816001600160a01b03166390f7ff4c8b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156200151357600080fd5b505afa15801562001528573d6000803e3d6000fd5b505050506040513d60208110156200153f57600080fd5b50516200154c8b6200078e565b106200158a5760405162461bcd60e51b8152600401808060200182810382526042815260200180620059ed6042913960600191505060405180910390fd5b6000620015b0604051806060016040528060218152602001620059ab60219139620034a4565b90506000620015be62003058565b9050816001600160a01b0316636d4f8d3d6040518163ffffffff1660e01b815260040160206040518083038186803b158015620015fa57600080fd5b505afa1580156200160f573d6000803e3d6000fd5b505050506040513d60208110156200162657600080fd5b5051620016358260016200385e565b111562001689576040805162461bcd60e51b815260206004820152601d60248201527f476c6f62616c206d696e69706f6f6c206c696d69742072656163686564000000604482015290519081900360640190fd5b505060008054620016ab9061010090046001600160a01b03168c8c8c62003a25565b9050620017148160405160200180807f6d696e69706f6f6c2e6578697374730000000000000000000000000000000000815250600f01826001600160a01b031660601b815260140191505060405160208183030381529060405280519060200120600162003c0c565b816001600160a01b0316638892716660405160200180807f6d696e69706f6f6c732e696e6465780000000000000000000000000000000000815250600f01905060405160208183030381529060405280519060200120836040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b158015620017b257600080fd5b505af1158015620017c7573d6000803e3d6000fd5b50505050816001600160a01b031663889271668c60405160200180807f6e6f64652e6d696e69706f6f6c732e696e646578000000000000000000000000815250601401826001600160a01b031660601b815260140191505060405160208183030381529060405280519060200120836040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b1580156200187d57600080fd5b505af115801562001892573d6000803e3d6000fd5b5060039250620018a0915050565b8a6003811115620018ad57fe5b141562001963576000620018f66040518060400160405280601481526020017f726f636b657444414f4e6f646554727573746564000000000000000000000000815250620034a4565b9050806001600160a01b03166372043ec48d6040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b1580156200194857600080fd5b505af11580156200195d573d6000803e3d6000fd5b50505050505b8a6001600160a01b0316816001600160a01b03167f08b4b91bafaf992145c5dd7e098dfcdb32f879714c154c651c2758a44c7aeae4426040518082815260200191505060405180910390a3620019ee6040518060400160405280601381526020017f726f636b65744d696e69706f6f6c517565756500000000000000000000000000815250620034a4565b6001600160a01b031663b2e5fe9b8b836040518363ffffffff1660e01b81526004018083600381111562001a1e57fe5b8152602001826001600160a01b0316815260200192505050600060405180830381600087803b15801562001a5157600080fd5b505af115801562001a66573d6000803e3d6000fd5b50929d9c50505050505050505050505050565b60005460ff1681565b60006200123b8260405160200180807f6e6f64652e6d696e69706f6f6c732e7374616b696e672e636f756e7400000000815250601c01826001600160a01b031660601b81526014019150506040516020818303038152906040528051906020012062003565565b6060600062001b2d6040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b604080517f6d696e69706f6f6c732e696e64657800000000000000000000000000000000006020808301919091528251808303600f018152602f9092019092528051910120909150600062001b8162002c4f565b9050600062001b9187876200385e565b90508181118062001ba0575085155b1562001ba95750805b600062001bb78289620035f4565b67ffffffffffffffff8111801562001bce57600080fd5b5060405190808252806020026020018201604052801562001bf9578160200160208202803683370190505b5090506000885b8381101562001d64576000876001600160a01b031663f3358a3a88846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801562001c5857600080fd5b505afa15801562001c6d573d6000803e3d6000fd5b505050506040513d602081101562001c8457600080fd5b5051604080517f4e69d56000000000000000000000000000000000000000000000000000000000815290519192506000916001600160a01b03841691634e69d560916004808301926020929190829003018186803b15801562001ce657600080fd5b505afa15801562001cfb573d6000803e3d6000fd5b505050506040513d602081101562001d1257600080fd5b50519050600181600481111562001d2557fe5b141562001d59578185858151811062001d3a57fe5b6001600160a01b03909216602092830291909101909101526001909301925b505060010162001c00565b508152979650505050505050565b60006200123b8260405160200180807f6d696e69706f6f6c2e6578697374730000000000000000000000000000000000815250600f01826001600160a01b031660601b815260140191505060405160208183030381529060405280519060200120620036ad565b60408051808201909152601781527f6d696e69706f6f6c732e7374616b696e672e636f756e74000000000000000000602090910152600062001e3b7f3441dc4461171402746c7de6880184ae1bfbc9def01a5bd7508263456c14441962003565565b905090565b6040518060400160405280601581526020017f726f636b65744d696e69706f6f6c4d616e6167657200000000000000000000008152503062001ed78260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b6001600160a01b0316816001600160a01b03161462001f3d576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b604080517f6d696e69706f6f6c2e657869737473000000000000000000000000000000000060208083019190915233606081901b602f840152835160238185030181526043909301909352815191012062001f9890620036ad565b62001fea576040805162461bcd60e51b815260206004820152601060248201527f496e76616c6964206d696e69706f6f6c00000000000000000000000000000000604482015290519081900360640190fd5b604080517f6e6f64652e6d696e69706f6f6c732e7374616b696e672e636f756e74000000006020808301919091527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606088901b16603c83015282516030818403018152605090920190925280519101206000620020688262003565565b905062002082826200207c836001620035f4565b62003c7a565b604080517f6d696e69706f6f6c732e7374616b696e672e636f756e7400000000000000000060208083019190915282518083036017018152603790920190925280519101206000620020d48262003565565b9050620020e8826200207c836001620035f4565b620021018884620020fb816001620035f4565b62003ce7565b5050505050505050565b6040518060400160405280601581526020017f726f636b65744d696e69706f6f6c4d616e61676572000000000000000000000081525030620021a28260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b6001600160a01b0316816001600160a01b03161462002208576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b604080517f6d696e69706f6f6c2e657869737473000000000000000000000000000000000060208083019190915233606081901b602f84015283516023818503018152604390930190935281519101206200226390620036ad565b620022b5576040805162461bcd60e51b815260206004820152601060248201527f496e76616c6964206d696e69706f6f6c00000000000000000000000000000000604482015290519081900360640190fd5b6000620022f76040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b905060003390506000816001600160a01b03166370dabc9e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200233a57600080fd5b505afa1580156200234f573d6000803e3d6000fd5b505050506040513d60208110156200236657600080fd5b5051604080517f6d696e69706f6f6c2e65786973747300000000000000000000000000000000006020828101919091523360601b602f8301528251602381840301815260439092019092528051910120909150620023c690600062003c0c565b604080517f6d696e69706f6f6c2e64657374726f79656400000000000000000000000000006020808301919091523360601b603283015282516026818403018152604690920190925280519101206200242190600162003c0c565b604080517f6d696e69706f6f6c732e696e64657800000000000000000000000000000000006020808301919091528251808303600f018152602f8301808552815191909201207ff79b36ad00000000000000000000000000000000000000000000000000000000909152603382015233605382015290516001600160a01b0385169163f79b36ad91607380830192600092919082900301818387803b158015620024ca57600080fd5b505af1158015620024df573d6000803e3d6000fd5b5050604080517f6e6f64652e6d696e69706f6f6c732e696e6465780000000000000000000000006020808301919091527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606087901b1660348301528251602881840301815260488301808552815191909201207ff79b36ad00000000000000000000000000000000000000000000000000000000909152604c82015233606c82015290516001600160a01b038716935063f79b36ad9250608c80830192600092919082900301818387803b158015620025b857600080fd5b505af1158015620025cd573d6000803e3d6000fd5b505050506000620025de33620011d4565b604080517f6d696e69706f6f6c2e7075626b657900000000000000000000000000000000006020808301919091523360601b602f83015282516023818403018152604390920190925280519101209091506200263a9062004292565b620026dc8160405160200180807f76616c696461746f722e6d696e69706f6f6c000000000000000000000000000081525060120182805190602001908083835b602083106200269b5780518252601f1990920191602091820191016200267a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528051906020012062004314565b6040805142815290516001600160a01b0384169133917f3097cb0f536cd88115b814915d7030d2fe958943357cd2b1a9e1dba8a673ec699181900360200190a350505050505050565b600080620027686040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b9050806001600160a01b031663f3358a3a8560405160200180807f6e6f64652e6d696e69706f6f6c732e696e646578000000000000000000000000815250601401826001600160a01b031660601b815260140191505060405160208183030381529060405280519060200120856040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b1580156200281157600080fd5b505afa15801562002826573d6000803e3d6000fd5b505050506040513d60208110156200283d57600080fd5b5051949350505050565b6040518060400160405280601581526020017f726f636b65744d696e69706f6f6c4d616e61676572000000000000000000000081525030620028de8260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b6001600160a01b0316816001600160a01b03161462002944576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b604080517f6d696e69706f6f6c2e657869737473000000000000000000000000000000000060208083019190915233606081901b602f84015283516023818503018152604390930190935281519101206200299f90620036ad565b620029f1576040805162461bcd60e51b815260206004820152601060248201527f496e76616c6964206d696e69706f6f6c00000000000000000000000000000000604482015290519081900360640190fd5b604080517f6e6f64652e6d696e69706f6f6c732e7374616b696e672e636f756e74000000006020808301919091527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606088901b16603c8301528251603081840301815260509092019092528051910120600062002a6f8262003565565b905062002a83826200207c8360016200385e565b604080517f6d696e69706f6f6c732e7374616b696e672e636f756e740000000000000000006020808301919091528251808303601701815260379092019092528051910120600062002ad58262003565565b905062002ae9826200207c8360016200385e565b620021018884620020fb8160016200385e565b60008062002b3f6040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b9050806001600160a01b031663f3358a3a8560405160200180807f6e6f64652e6d696e69706f6f6c732e76616c69646174696e672e696e64657800815250601f01826001600160a01b031660601b815260140191505060405160208183030381529060405280519060200120856040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b1580156200281157600080fd5b60006200123b8260405160200180807f6d696e69706f6f6c2e64657374726f7965640000000000000000000000000000815250601201826001600160a01b031660601b815260140191505060405160208183030381529060405280519060200120620036ad565b60008062002c926040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b604080518082018252600f81527f6d696e69706f6f6c732e696e646578000000000000000000000000000000000060209182015281517fc9d6fee90000000000000000000000000000000000000000000000000000000081527ffd351ca1580febcf3f7f5a9bf9fd8dff9e6da5ca4df400be6b63fcdc2f2a9184600482015291519293506001600160a01b0384169263c9d6fee9926024808201939291829003018186803b15801562002d4457600080fd5b505afa15801562002d59573d6000803e3d6000fd5b505050506040513d602081101562002d7057600080fd5b505191505090565b6040518060400160405280601581526020017f726f636b65744d696e69706f6f6c4d616e6167657200000000000000000000008152503062002e0f8260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b6001600160a01b0316816001600160a01b03161462002e75576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b604080517f6d696e69706f6f6c2e657869737473000000000000000000000000000000000060208083019190915233606081901b602f840152835160238185030181526043909301909352815191012062002ed090620036ad565b62002f22576040805162461bcd60e51b815260206004820152601060248201527f496e76616c6964206d696e69706f6f6c00000000000000000000000000000000604482015290519081900360640190fd5b62002f898460405160200180807f6e6f64652e6d696e69706f6f6c732e66696e616c697365642e636f756e740000815250601e01826001600160a01b031660601b81526014019150506040516020818303038152906040528051906020012060016200437a565b60408051808201909152601981527f6d696e69706f6f6c732e66696e616c697365642e636f756e740000000000000060209091015262002feb7f7600e27d933b4f22ce3529323416023ac97f47a7481431772c019790c3ca57d260016200437a565b50505050565b60006200123b8260405160200180807f6e6f64652e6d696e69706f6f6c732e66696e616c697365642e636f756e740000815250601e01826001600160a01b031660601b81526014019150506040516020818303038152906040528051906020012062003565565b6000806200309b6040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b604080518082018252600f81527f6d696e69706f6f6c732e696e646578000000000000000000000000000000000060209182015281517fc9d6fee90000000000000000000000000000000000000000000000000000000081527ffd351ca1580febcf3f7f5a9bf9fd8dff9e6da5ca4df400be6b63fcdc2f2a9184600482015291519293506000926001600160a01b0385169263c9d6fee9926024808301939192829003018186803b1580156200315057600080fd5b505afa15801562003165573d6000803e3d6000fd5b505050506040513d60208110156200317c57600080fd5b505160408051808201909152601981527f6d696e69706f6f6c732e66696e616c697365642e636f756e740000000000000060209091015290506000620031e27f7600e27d933b4f22ce3529323416023ac97f47a7481431772c019790c3ca57d262003565565b9050620031f08282620035f4565b935050505090565b60006200123b8260405160200180807f76616c696461746f722e6d696e69706f6f6c000000000000000000000000000081525060120182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b60408051808201909152601981527f6d696e69706f6f6c732e66696e616c697365642e636f756e7400000000000000602090910152600062001e3b7f7600e27d933b4f22ce3529323416023ac97f47a7481431772c019790c3ca57d262003565565b600080620032ff6040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b9050806001600160a01b031663f3358a3a60405160200180807f6d696e69706f6f6c732e696e6465780000000000000000000000000000000000815250600f01905060405160208183030381529060405280519060200120856040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801562000a0657600080fd5b606060405180602001620033a890620044ae565b601f1982820381018352601f90910116604052905090565b600080620034036040518060400160405280601181526020017f6164647265737353657453746f72616765000000000000000000000000000000815250620034a4565b9050806001600160a01b031663c9d6fee98460405160200180807f6e6f64652e6d696e69706f6f6c732e76616c69646174696e672e696e64657800815250601f01826001600160a01b031660601b8152601401915050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801562000a0657600080fd5b600080620035078360405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831062000ad35780518252601f19909201916020918201910162000ab2565b90506001600160a01b0381166200123b576040805162461bcd60e51b815260206004820152601260248201527f436f6e7472616374206e6f7420666f756e640000000000000000000000000000604482015290519081900360640190fd5b60008060019054906101000a90046001600160a01b03166001600160a01b031663bd02d0f5836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015620035c057600080fd5b505afa158015620035d5573d6000803e3d6000fd5b505050506040513d6020811015620035ec57600080fd5b505192915050565b6000828211156200364c576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008060019054906101000a90046001600160a01b03166001600160a01b03166321f8a721836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015620035c057600080fd5b60008060019054906101000a90046001600160a01b03166001600160a01b0316637ae1cfca836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015620035c057600080fd5b600060019054906101000a90046001600160a01b03166001600160a01b0316632e28d08483836040518363ffffffff1660e01b81526004018083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156200378257818101518382015260200162003768565b50505050905090810190601f168015620037b05780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b158015620037d157600080fd5b505af1158015620037e6573d6000803e3d6000fd5b505050505050565b60008054604080517fca446dd9000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b03858116602483015291516101009093049091169263ca446dd99260448084019382900301818387803b158015620037d157600080fd5b600082820183811015620038b9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008054604080517fc031a1800000000000000000000000000000000000000000000000000000000081526004810185905290516060936101009093046001600160a01b03169263c031a1809260248082019391829003018186803b1580156200392957600080fd5b505afa1580156200393e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156200396857600080fd5b81019080805160405193929190846401000000008211156200398957600080fd5b9083019060208201858111156200399f57600080fd5b8251640100000000811182820188101715620039ba57600080fd5b82525081516020918201929091019080838360005b83811015620039e9578181015183820152602001620039cf565b50505050905090810190601f16801562003a175780820380516001836020036101000a031916815260200191505b506040525050509050919050565b60008062003a3262003394565b905060008187878760405160200180846001600160a01b03168152602001836001600160a01b0316815260200182600381111562003a6c57fe5b815260200193505050506040516020818303038152906040526040516020018083805190602001908083835b6020831062003ab95780518252601f19909201916020918201910162003a98565b51815160209384036101000a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff018019909216911617905285519190930192850191508083835b6020831062003b215780518252601f19909201916020918201910162003b00565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405290506000868560405160200180836001600160a01b031660601b8152601401828152602001925050506040516020818303038152906040528051906020012060001c9050600080828451602086016000f5915050803b8062003bff576040805162461bcd60e51b815260206004820152601860248201527f436f6e7472616374206372656174696f6e206661696c65640000000000000000604482015290519081900360640190fd5b5098975050505050505050565b60008054604080517fabfdcced00000000000000000000000000000000000000000000000000000000815260048101869052841515602482015290516101009092046001600160a01b03169263abfdcced9260448084019382900301818387803b158015620037d157600080fd5b60008054604080517fe2a4853a000000000000000000000000000000000000000000000000000000008152600481018690526024810185905290516101009092046001600160a01b03169263e2a4853a9260448084019382900301818387803b158015620037d157600080fd5b600062003d296040518060400160405280601381526020017f726f636b65744e6574776f726b50726963657300000000000000000000000000815250620034a4565b9050600062003d51604051806060016040528060218152602001620059ab60219139620034a4565b9050600062003d956040518060400160405280601d81526020017f726f636b657444414f50726f746f636f6c53657474696e67734e6f6465000000815250620034a4565b9050600062003dd96040518060400160405280601181526020017f726f636b65744e6f64655374616b696e67000000000000000000000000000000815250620034a4565b9050836001600160a01b03166337ab50046040518163ffffffff1660e01b815260040160206040518083038186803b15801562003e1557600080fd5b505afa15801562003e2a573d6000803e3d6000fd5b505050506040513d602081101562003e4157600080fd5b505162003e95576040805162461bcd60e51b815260206004820152601b60248201527f4e6574776f726b206973206e6f7420696e20636f6e73656e7375730000000000604482015290519081900360640190fd5b6000816001600160a01b0316639961cee4896040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801562003ee557600080fd5b505afa15801562003efa573d6000803e3d6000fd5b505050506040513d602081101562003f1157600080fd5b5051604080517f1e72ba86000000000000000000000000000000000000000000000000000000008152905191925060009162004036916001600160a01b03871691631e72ba8691600480820192602092909190829003018186803b15801562003f7957600080fd5b505afa15801562003f8e573d6000803e3d6000fd5b505050506040513d602081101562003fa557600080fd5b5051604080517f162adbfd00000000000000000000000000000000000000000000000000000000815290516001600160a01b0389169163162adbfd916004808301926020929190829003018186803b1580156200400157600080fd5b505afa15801562004016573d6000803e3d6000fd5b505050506040513d60208110156200402d57600080fd5b505190620043e7565b90506000620040b9876001600160a01b031663724d4a096040518163ffffffff1660e01b815260040160206040518083038186803b1580156200407857600080fd5b505afa1580156200408d573d6000803e3d6000fd5b505050506040513d6020811015620040a457600080fd5b5051620040b2848c620043e7565b9062004445565b9050600062004135886001600160a01b031663724d4a096040518163ffffffff1660e01b815260040160206040518083038186803b158015620040fb57600080fd5b505afa15801562004110573d6000803e3d6000fd5b505050506040513d60208110156200412757600080fd5b5051620040b2858c620043e7565b9050888a1115620041f257808411620041565750505050505050506200428d565b6000620041648383620035f4565b90506000620041748684620035f4565b905081811115620041825750805b896001600160a01b031663052e5640826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015620041c957600080fd5b505af1158015620041de573d6000803e3d6000fd5b50505050505050505050505050506200428d565b898911156200428457818411620042115750505050505050506200428d565b60006200421f8284620035f4565b905060006200422f8685620035f4565b9050818111156200423d5750805b896001600160a01b031663b58d89d3826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015620041c957600080fd5b50505050505050505b505050565b60008054604080517f616b59f60000000000000000000000000000000000000000000000000000000081526004810185905290516101009092046001600160a01b03169263616b59f69260248084019382900301818387803b158015620042f857600080fd5b505af11580156200430d573d6000803e3d6000fd5b5050505050565b60008054604080517f0e14a3760000000000000000000000000000000000000000000000000000000081526004810185905290516101009092046001600160a01b031692630e14a3769260248084019382900301818387803b158015620042f857600080fd5b60008054604080517fadb353dc000000000000000000000000000000000000000000000000000000008152600481018690526024810185905290516101009092046001600160a01b03169263adb353dc9260448084019382900301818387803b158015620037d157600080fd5b600082620043f8575060006200123b565b828202828482816200440657fe5b0414620038b95760405162461bcd60e51b8152600401808060200182810382526021815260200180620059cc6021913960400191505060405180910390fd5b60008082116200449c576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381620044a657fe5b049392505050565b6114ee80620044bd8339019056fe6080604052600080546001600160a01b0319169055600c805460ff19169055600f805460ff60a01b191690553480156200003857600080fd5b50604051620014ee380380620014ee833981810160405260608110156200005e57600080fd5b50805160208201516040909201519091906001600160a01b038316620000cb576040805162461bcd60e51b815260206004820152601760248201527f496e76616c69642073746f726167652061646472657373000000000000000000604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b038516178155600f805460ff60a01b1916600160a01b17905560408051808201909152601681527f726f636b65744d696e69706f6f6c44656c656761746500000000000000000000602082015262000138906200035c565b600c8054610100600160a81b0319166101006001600160a01b0384160217905590506200016581620004ca565b620001b7576040805162461bcd60e51b815260206004820181905260248201527f44656c656761746520636f6e747261637420646f6573206e6f74206578697374604482015290519081900360640190fd5b600080826001600160a01b031685856003811115620001d257fe5b604080516001600160a01b03909316602484015260ff90911660448084019190915281518084039091018152606490920181526020820180516001600160e01b031663dd0ddfcf60e01b17815290518251909182918083835b602083106200024c5780518252601f1990920191602091820191016200022b565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114620002ae576040519150601f19603f3d011682016040523d82523d6000602084013e620002b3565b606091505b5091509150816200035057620002c981620004d6565b60405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000314578181015183820152602001620002fa565b50505050905090810190601f168015620003425780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050505050620005f6565b60008060008054906101000a90046001600160a01b03166001600160a01b03166321f8a7218460405160200180806f636f6e74726163742e6164647265737360801b81525060100182805190602001908083835b60208310620003d15780518252601f199092019160209182019101620003b0565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156200044157600080fd5b505afa15801562000456573d6000803e3d6000fd5b505050506040513d60208110156200046d57600080fd5b505190506001600160a01b038116620004c2576040805162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081b9bdd08199bdd5b9960721b604482015290519081900360640190fd5b90505b919050565b3b63ffffffff16151590565b60606044825110156200051e575060408051808201909152601d81527f5472616e73616374696f6e2072657665727465642073696c656e746c790000006020820152620004c5565b60048201805190926024019060208110156200053957600080fd5b81019080805160405193929190846401000000008211156200055a57600080fd5b9083019060208201858111156200057057600080fd5b82516401000000008111828201881017156200058b57600080fd5b82525081516020918201929091019080838360005b83811015620005ba578181015183820152602001620005a0565b50505050905090810190601f168015620005e85780820380516001836020036101000a031916815260200191505b506040525050509050919050565b610ee880620006066000396000f3fe6080604052600436106100745760003560e01c80638dfe8b2d1161004e5780638dfe8b2d1461034f5780638ee7d0cb14610364578063bc7f3b501461038d578063be1d1d32146103a2576100b4565b80631dcef0bf146102ce57806326d1c0681461030c57806352def61d14610323576100b4565b366100b45760408051348152426020820152815133927f1d57945c1033a96907a78f6e0ebf6a03815725dac25f33cc806558670344ac88928290030190a2005b600c546000903690606090839060ff166100eb57600c54610100900473ffffffffffffffffffffffffffffffffffffffff16610129565b6101296040518060400160405280601681526020017f726f636b65744d696e69706f6f6c44656c6567617465000000000000000000008152506103b7565b905061013481610596565b61019f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f44656c656761746520636f6e747261637420646f6573206e6f74206578697374604482015290519081900360640190fd5b6000808273ffffffffffffffffffffffffffffffffffffffff1686866040518083838082843760405192019450600093509091505080830381855af49150503d806000811461020a576040519150601f19603f3d011682016040523d82523d6000602084013e61020f565b606091505b5091509150816102c057610222816105a2565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561028557818101518382015260200161026d565b50505050905090810190601f1680156102b25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b805195506020019350505050f35b3480156102da57600080fd5b506102e36106b9565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561031857600080fd5b5061032161072c565b005b34801561032f57600080fd5b506103216004803603602081101561034657600080fd5b50351515610a09565b34801561035b57600080fd5b50610321610b7c565b34801561037057600080fd5b50610379610dee565b604080519115158252519081900360200190f35b34801561039957600080fd5b506102e3610df7565b3480156103ae57600080fd5b506102e3610e18565b60008060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321f8a7218460405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083835b6020831061046f57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610432565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156104de57600080fd5b505afa1580156104f2573d6000803e3d6000fd5b505050506040513d602081101561050857600080fd5b5051905073ffffffffffffffffffffffffffffffffffffffff811661058e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f436f6e7472616374206e6f7420666f756e640000000000000000000000000000604482015290519081900360640190fd5b90505b919050565b3b63ffffffff16151590565b60606044825110156105e8575060408051808201909152601d81527f5472616e73616374696f6e2072657665727465642073696c656e746c790000006020820152610591565b600482018051909260240190602081101561060257600080fd5b810190808051604051939291908464010000000082111561062257600080fd5b90830190602082018581111561063757600080fd5b825164010000000081118282018810171561065157600080fd5b82525081516020918201929091019080838360005b8381101561067e578181015183820152602001610666565b50505050905090810190601f1680156106ab5780820380516001836020036101000a031916815260200191505b506040525050509050919050565b600c5460009060ff166106e957600c54610100900473ffffffffffffffffffffffffffffffffffffffff16610727565b6107276040518060400160405280601681526020017f726f636b65744d696e69706f6f6c44656c6567617465000000000000000000008152506103b7565b905090565b6000805460048054604080517f5b49ff6200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff61010090930483169381019390935251921691635b49ff6291602480820192602092909190829003018186803b1580156107a957600080fd5b505afa1580156107bd573d6000803e3d6000fd5b505050506040513d60208110156107d357600080fd5b5051600454909150610100900473ffffffffffffffffffffffffffffffffffffffff1633148061081857503373ffffffffffffffffffffffffffffffffffffffff8216145b61086d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180610e86602d913960400191505060405180910390fd5b600c54600d805461010090920473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff000000000000000000000000000000000000000090921691909117905560408051808201909152601681527f726f636b65744d696e69706f6f6c44656c65676174650000000000000000000060208201526108f7906103b7565b600c80547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010073ffffffffffffffffffffffffffffffffffffffff93841681029190911791829055600d548316910490911614156109a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180610e5a602c913960400191505060405180910390fd5b600d54600c546040805173ffffffffffffffffffffffffffffffffffffffff93841681526101009092049092166020820152428183015290517f720d539b7abaee498c7536b8bf9f854bcd839fb4db9dc00e7494c219b3a20d459181900360600190a150565b6000805460048054604080517f5b49ff6200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff61010090930483169381019390935251921691635b49ff6291602480820192602092909190829003018186803b158015610a8657600080fd5b505afa158015610a9a573d6000803e3d6000fd5b505050506040513d6020811015610ab057600080fd5b5051600454909150610100900473ffffffffffffffffffffffffffffffffffffffff16331480610af557503373ffffffffffffffffffffffffffffffffffffffff8216145b610b4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180610e86602d913960400191505060405180910390fd5b50600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6000805460048054604080517f5b49ff6200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff61010090930483169381019390935251921691635b49ff6291602480820192602092909190829003018186803b158015610bf957600080fd5b505afa158015610c0d573d6000803e3d6000fd5b505050506040513d6020811015610c2357600080fd5b5051600454909150610100900473ffffffffffffffffffffffffffffffffffffffff16331480610c6857503373ffffffffffffffffffffffffffffffffffffffff8216145b610cbd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180610e86602d913960400191505060405180910390fd5b600d5473ffffffffffffffffffffffffffffffffffffffff16610d2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180610e356025913960400191505060405180910390fd5b600c8054600d805473ffffffffffffffffffffffffffffffffffffffff8181166101009081027fffffffffffffffffffffff0000000000000000000000000000000000000000ff861617958690557fffffffffffffffffffffffff000000000000000000000000000000000000000090921690925560408051938290048316808552919094049091166020830152428284015291517f01d12a47982bd695d9fa134134fa172f56f650d817bb4fb0bd4ae3754d2fdca69181900360600190a15050565b600c5460ff1690565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff1690565b600d5473ffffffffffffffffffffffffffffffffffffffff169056fe50726576696f75732064656c656761746520636f6e7472616374206973206e6f74207365744e65772064656c6567617465206973207468652073616d6520617320746865206578697374696e67206f6e654f6e6c7920746865206e6f6465206f70657261746f722063616e206163636573732074686973206d6574686f64a26469706673582212209a6daedd83e54e66fbfbf927322718b812db513528d0b0bf4667b671d50dbd5364736f6c63430007060033726f636b657444414f50726f746f636f6c53657474696e67734d696e69706f6f6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d696e69706f6f6c20636f756e74206166746572206465706f7369742065786365656473206c696d6974206261736564206f6e206e6f64652052504c207374616b65a26469706673582212201e5da819db4f3d02b97f6ab0dd3fec762d9fcc54bbefccb1f3efb206ed4ffb1964736f6c63430007060033

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

0000000000000000000000001d8f8f00cfa6758d7be78336684788fb0ee0fa46

-----Decoded View---------------
Arg [0] : _rocketStorageAddress (address): 0x1d8f8f00cfa6758d7bE78336684788Fb0ee0Fa46

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000001d8f8f00cfa6758d7be78336684788fb0ee0fa46


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.