Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 25 from a total of 160 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Bootstrap Settin... | 2449475 | 116 days ago | IN | 0 ETH | 0.00013619 | ||||
Bootstrap Settin... | 2449471 | 116 days ago | IN | 0 ETH | 0.00013619 | ||||
Bootstrap Settin... | 2449458 | 116 days ago | IN | 0 ETH | 0.00014039 | ||||
Bootstrap Settin... | 2438741 | 118 days ago | IN | 0 ETH | 0.00014213 | ||||
Bootstrap Settin... | 2438717 | 118 days ago | IN | 0 ETH | 0.00011475 | ||||
Bootstrap Settin... | 2438703 | 118 days ago | IN | 0 ETH | 0.00011475 | ||||
Bootstrap Settin... | 2438696 | 118 days ago | IN | 0 ETH | 0.00011475 | ||||
Bootstrap Settin... | 2438672 | 118 days ago | IN | 0 ETH | 0.00011475 | ||||
Bootstrap Settin... | 2438661 | 118 days ago | IN | 0 ETH | 0.0001446 | ||||
Bootstrap Upgrad... | 2437193 | 118 days ago | IN | 0 ETH | 0.00001474 | ||||
Bootstrap Upgrad... | 2436910 | 118 days ago | IN | 0 ETH | 0.00001997 | ||||
Bootstrap Upgrad... | 2436876 | 118 days ago | IN | 0 ETH | 0.00002929 | ||||
Bootstrap Upgrad... | 2345065 | 132 days ago | IN | 0 ETH | 0.00002354 | ||||
Bootstrap Member | 1375180 | 282 days ago | IN | 0 ETH | 0.00081815 | ||||
Bootstrap Settin... | 1368940 | 283 days ago | IN | 0 ETH | 0.00028756 | ||||
Bootstrap Settin... | 1368940 | 283 days ago | IN | 0 ETH | 0.00028954 | ||||
Bootstrap Settin... | 1368940 | 283 days ago | IN | 0 ETH | 0.0002895 | ||||
Bootstrap Settin... | 1368940 | 283 days ago | IN | 0 ETH | 0.00028742 | ||||
Bootstrap Settin... | 1368940 | 283 days ago | IN | 0 ETH | 0.00028727 | ||||
Bootstrap Settin... | 1368940 | 283 days ago | IN | 0 ETH | 0.00034116 | ||||
Bootstrap Settin... | 1368940 | 283 days ago | IN | 0 ETH | 0.00028212 | ||||
Bootstrap Settin... | 1368940 | 283 days ago | IN | 0 ETH | 0.0002819 | ||||
Bootstrap Settin... | 1368940 | 283 days ago | IN | 0 ETH | 0.00028017 | ||||
Bootstrap Settin... | 1368940 | 283 days ago | IN | 0 ETH | 0.00028021 | ||||
Bootstrap Settin... | 1368940 | 283 days ago | IN | 0 ETH | 0.00028039 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
||||
---|---|---|---|---|---|---|---|
3223252 | 2 mins ago | 0 ETH | |||||
3223252 | 2 mins ago | 0 ETH | |||||
3223252 | 2 mins ago | 0 ETH | |||||
3223251 | 3 mins ago | 0 ETH | |||||
3223251 | 3 mins ago | 0 ETH | |||||
3223251 | 3 mins ago | 0 ETH | |||||
3223234 | 6 mins ago | 0 ETH | |||||
3223234 | 6 mins ago | 0 ETH | |||||
3223234 | 6 mins ago | 0 ETH | |||||
3223234 | 6 mins ago | 0 ETH | |||||
3223234 | 6 mins ago | 0 ETH | |||||
3223234 | 6 mins ago | 0 ETH | |||||
3222970 | 1 hr ago | 0 ETH | |||||
3222970 | 1 hr ago | 0 ETH | |||||
3222970 | 1 hr ago | 0 ETH | |||||
3222969 | 1 hr ago | 0 ETH | |||||
3222969 | 1 hr ago | 0 ETH | |||||
3222969 | 1 hr ago | 0 ETH | |||||
3222967 | 1 hr ago | 0 ETH | |||||
3222967 | 1 hr ago | 0 ETH | |||||
3222967 | 1 hr ago | 0 ETH | |||||
3222967 | 1 hr ago | 0 ETH | |||||
3222967 | 1 hr ago | 0 ETH | |||||
3222967 | 1 hr ago | 0 ETH | |||||
3222686 | 2 hrs ago | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x56CD23Ba...43b0E1DC2 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
RocketDAONodeTrusted
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity Standard Json-Input format)
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | DECENTRALISED STAKING PROTOCOL FOR ETHEREUM 2.0 | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind ETH2 Proof of Stake protocol, designed to be community owned, * decentralised, trustless and compatible with staking in Ethereum 2.0. * * 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 "../../RocketBase.sol"; import "../../../interface/RocketVaultInterface.sol"; import "../../../interface/dao/node/RocketDAONodeTrustedInterface.sol"; import "../../../interface/dao/node/RocketDAONodeTrustedProposalsInterface.sol"; import "../../../interface/dao/node/RocketDAONodeTrustedActionsInterface.sol"; import "../../../interface/dao/node/settings/RocketDAONodeTrustedSettingsMembersInterface.sol"; import "../../../interface/dao/RocketDAOProposalInterface.sol"; import "../../../interface/util/AddressSetStorageInterface.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; // The Trusted Node DAO contract RocketDAONodeTrusted is RocketBase, RocketDAONodeTrustedInterface { using SafeMath for uint; // The namespace for any data stored in the trusted node DAO (do not change) string constant daoNameSpace = "dao.trustednodes."; // Min amount of trusted node members required in the DAO uint256 constant daoMemberMinCount = 3; // Only allow bootstrapping when enabled modifier onlyBootstrapMode() { require(getBootstrapModeDisabled() == false, "Bootstrap mode not engaged"); _; } // Only when the DAO needs new members due to being below the required min modifier onlyLowMemberMode() { require(getMemberCount() < daoMemberMinCount, "Low member mode not engaged"); _; } // Construct constructor(RocketStorageInterface _rocketStorageAddress) RocketBase(_rocketStorageAddress) { // Version version = 1; } /**** DAO Properties **************/ // Returns true if bootstrap mode is disabled function getBootstrapModeDisabled() override public view returns (bool) { return getBool(keccak256(abi.encodePacked(daoNameSpace, "bootstrapmode.disabled"))); } /*** Proposals ****************/ // Return the amount of member votes need for a proposal to pass function getMemberQuorumVotesRequired() override external view returns (uint256) { // Load contracts RocketDAONodeTrustedSettingsMembersInterface rocketDAONodeTrustedSettingsMembers = RocketDAONodeTrustedSettingsMembersInterface(getContractAddress("rocketDAONodeTrustedSettingsMembers")); // Calculate and return votes required return getMemberCount().mul(rocketDAONodeTrustedSettingsMembers.getQuorum()); } /*** Members ******************/ // Return true if the node addressed passed is a member of the trusted node DAO function getMemberIsValid(address _nodeAddress) override external view returns (bool) { return getBool(keccak256(abi.encodePacked(daoNameSpace, "member", _nodeAddress))); } // Get a trusted node member address by index function getMemberAt(uint256 _index) override external view returns (address) { AddressSetStorageInterface addressSetStorage = AddressSetStorageInterface(getContractAddress("addressSetStorage")); return addressSetStorage.getItem(keccak256(abi.encodePacked(daoNameSpace, "member.index")), _index); } // Total number of members in the current trusted node DAO function getMemberCount() override public view returns (uint256) { AddressSetStorageInterface addressSetStorage = AddressSetStorageInterface(getContractAddress("addressSetStorage")); return addressSetStorage.getCount(keccak256(abi.encodePacked(daoNameSpace, "member.index"))); } // Min required member count for the DAO function getMemberMinRequired() override external pure returns (uint256) { return daoMemberMinCount; } // Get the last time this user made a proposal function getMemberLastProposalTime(address _nodeAddress) override external view returns (uint256) { return getUint(keccak256(abi.encodePacked(daoNameSpace, "member.proposal.lasttime", _nodeAddress))); } // Get the ID of a trusted node member function getMemberID(address _nodeAddress) override external view returns (string memory) { return getString(keccak256(abi.encodePacked(daoNameSpace, "member.id", _nodeAddress))); } // Get the URL of a trusted node member function getMemberUrl(address _nodeAddress) override external view returns (string memory) { return getString(keccak256(abi.encodePacked(daoNameSpace, "member.url", _nodeAddress))); } // Get the block the member joined at function getMemberJoinedTime(address _nodeAddress) override external view returns (uint256) { return getUint(keccak256(abi.encodePacked(daoNameSpace, "member.joined.time", _nodeAddress))); } // Get data that was recorded about a proposal that was executed function getMemberProposalExecutedTime(string memory _proposalType, address _nodeAddress) override external view returns (uint256) { return getUint(keccak256(abi.encodePacked(daoNameSpace, "member.executed.time", _proposalType, _nodeAddress))); } // Get the RPL bond amount the user deposited to join function getMemberRPLBondAmount(address _nodeAddress) override external view returns (uint256) { return getUint(keccak256(abi.encodePacked(daoNameSpace, "member.bond.rpl", _nodeAddress))); } // Is this member currently being 'challenged' to see if their node is responding function getMemberIsChallenged(address _nodeAddress) override external view returns (bool) { // Has this member been challenged recently and still within the challenge window to respond? If there is a challenge block recorded against them, they are actively being challenged. return getUint(keccak256(abi.encodePacked(daoNameSpace, "member.challenged.time", _nodeAddress))) > 0 ? true : false; } // How many unbonded validators this member has function getMemberUnbondedValidatorCount(address _nodeAddress) override external view returns (uint256) { return getUint(keccak256(abi.encodePacked(daoNameSpace, "member.validator.unbonded.count", _nodeAddress))); } // Increment/decrement a member's unbonded validator count // Only accepts calls from the RocketMinipoolManager contract function incrementMemberUnbondedValidatorCount(address _nodeAddress) override external onlyLatestContract("rocketDAONodeTrusted", address(this)) onlyLatestContract("rocketMinipoolManager", msg.sender) { addUint(keccak256(abi.encodePacked(daoNameSpace, "member.validator.unbonded.count", _nodeAddress)), 1); } function decrementMemberUnbondedValidatorCount(address _nodeAddress) override external onlyLatestContract("rocketDAONodeTrusted", address(this)) onlyRegisteredMinipool(msg.sender) { subUint(keccak256(abi.encodePacked(daoNameSpace, "member.validator.unbonded.count", _nodeAddress)), 1); } /**** Bootstrapping ***************/ // Bootstrap mode - In bootstrap mode, guardian can add members at will function bootstrapMember(string memory _id, string memory _url, address _nodeAddress) override external onlyGuardian onlyBootstrapMode onlyRegisteredNode(_nodeAddress) onlyLatestContract("rocketDAONodeTrusted", address(this)) { // Ok good to go, lets add them RocketDAONodeTrustedProposalsInterface(getContractAddress("rocketDAONodeTrustedProposals")).proposalInvite(_id, _url, _nodeAddress); } // Bootstrap mode - Uint Setting function bootstrapSettingUint(string memory _settingContractName, string memory _settingPath, uint256 _value) override external onlyGuardian onlyBootstrapMode onlyLatestContract("rocketDAONodeTrusted", address(this)) { // Ok good to go, lets update the settings RocketDAONodeTrustedProposalsInterface(getContractAddress("rocketDAONodeTrustedProposals")).proposalSettingUint(_settingContractName, _settingPath, _value); } // Bootstrap mode - Bool Setting function bootstrapSettingBool(string memory _settingContractName, string memory _settingPath, bool _value) override external onlyGuardian onlyBootstrapMode onlyLatestContract("rocketDAONodeTrusted", address(this)) { // Ok good to go, lets update the settings RocketDAONodeTrustedProposalsInterface(getContractAddress("rocketDAONodeTrustedProposals")).proposalSettingBool(_settingContractName, _settingPath, _value); } // Bootstrap mode - Upgrade contracts or their ABI function bootstrapUpgrade(string memory _type, string memory _name, string memory _contractAbi, address _contractAddress) override external onlyGuardian onlyBootstrapMode onlyLatestContract("rocketDAONodeTrusted", address(this)) { // Ok good to go, lets update the settings RocketDAONodeTrustedProposalsInterface(getContractAddress("rocketDAONodeTrustedProposals")).proposalUpgrade(_type, _name, _contractAbi, _contractAddress); } // Bootstrap mode - Disable RP Access (only RP can call this to hand over full control to the DAO) function bootstrapDisable(bool _confirmDisableBootstrapMode) override external onlyGuardian onlyBootstrapMode onlyLatestContract("rocketDAONodeTrusted", address(this)) { require(_confirmDisableBootstrapMode == true, "You must confirm disabling bootstrap mode, it can only be done once!"); setBool(keccak256(abi.encodePacked(daoNameSpace, "bootstrapmode.disabled")), true); } /**** Recovery ***************/ // In an explicable black swan scenario where the DAO loses more than the min membership required (3), this method can be used by a regular node operator to join the DAO // Must have their ID, URL, current RPL bond amount available and must be called by their current registered node account function memberJoinRequired(string memory _id, string memory _url) override external onlyLowMemberMode onlyRegisteredNode(msg.sender) onlyLatestContract("rocketDAONodeTrusted", address(this)) { // Ok good to go, lets update the settings RocketDAONodeTrustedProposalsInterface(getContractAddress("rocketDAONodeTrustedProposals")).proposalInvite(_id, _url, msg.sender); // Get the to automatically join as a member (by a regular proposal, they would have to manually accept, but this is no ordinary situation) RocketDAONodeTrustedActionsInterface(getContractAddress("rocketDAONodeTrustedActions")).actionJoinRequired(msg.sender); } }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | DECENTRALISED STAKING PROTOCOL FOR ETHEREUM 2.0 | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind ETH2 Proof of Stake protocol, designed to be community owned, * decentralised, trustless and compatible with staking in Ethereum 2.0. * * 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.5.0 <0.9.0; // 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 2.0 | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind ETH2 Proof of Stake protocol, designed to be community owned, * decentralised, trustless and compatible with staking in Ethereum 2.0. * * 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); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// 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; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../utils/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../utils/Context.sol"; import "./ERC20.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { using SafeMath for uint256; /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), decreasedAllowance); _burn(account, amount); } }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | DECENTRALISED STAKING PROTOCOL FOR ETHEREUM 2.0 | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind ETH2 Proof of Stake protocol, designed to be community owned, * decentralised, trustless and compatible with staking in Ethereum 2.0. * * 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.5.0 <0.9.0; // SPDX-License-Identifier: GPL-3.0-only import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol"; interface RocketVaultInterface { function balanceOf(string memory _networkContractName) external view returns (uint256); function depositEther() external payable; function withdrawEther(uint256 _amount) external; function depositToken(string memory _networkContractName, IERC20 _tokenAddress, uint256 _amount) external; function withdrawToken(address _withdrawalAddress, IERC20 _tokenAddress, uint256 _amount) external; function balanceOfToken(string memory _networkContractName, IERC20 _tokenAddress) external view returns (uint256); function transferToken(string memory _networkContractName, IERC20 _tokenAddress, uint256 _amount) external; function burnToken(ERC20Burnable _tokenAddress, uint256 _amount) external; }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | DECENTRALISED STAKING PROTOCOL FOR ETHEREUM 2.0 | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind ETH2 Proof of Stake protocol, designed to be community owned, * decentralised, trustless and compatible with staking in Ethereum 2.0. * * 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.5.0 <0.9.0; // 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 2.0 | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind ETH2 Proof of Stake protocol, designed to be community owned, * decentralised, trustless and compatible with staking in Ethereum 2.0. * * 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.5.0 <0.9.0; // SPDX-License-Identifier: GPL-3.0-only interface RocketDAONodeTrustedProposalsInterface { function propose(string memory _proposalMessage, bytes memory _payload) external returns (uint256); function vote(uint256 _proposalID, bool _support) external; function cancel(uint256 _proposalID) external; function execute(uint256 _proposalID) external; function proposalInvite(string memory _id, string memory _url, address _nodeAddress) external; function proposalLeave(address _nodeAddress) external; function proposalKick(address _nodeAddress, uint256 _rplFine) external; function proposalSettingUint(string memory _settingContractName, string memory _settingPath, uint256 _value) external; function proposalSettingBool(string memory _settingContractName, string memory _settingPath, bool _value) external; function proposalUpgrade(string memory _type, string memory _name, string memory _contractAbi, address _contractAddress) external; }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | DECENTRALISED STAKING PROTOCOL FOR ETHEREUM 2.0 | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind ETH2 Proof of Stake protocol, designed to be community owned, * decentralised, trustless and compatible with staking in Ethereum 2.0. * * 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.5.0 <0.9.0; // SPDX-License-Identifier: GPL-3.0-only interface RocketDAONodeTrustedActionsInterface { function actionJoin() external; function actionJoinRequired(address _nodeAddress) external; function actionLeave(address _rplBondRefundAddress) external; function actionKick(address _nodeAddress, uint256 _rplFine) external; function actionChallengeMake(address _nodeAddress) external payable; function actionChallengeDecide(address _nodeAddress) external; }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | DECENTRALISED STAKING PROTOCOL FOR ETHEREUM 2.0 | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind ETH2 Proof of Stake protocol, designed to be community owned, * decentralised, trustless and compatible with staking in Ethereum 2.0. * * 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.5.0 <0.9.0; // SPDX-License-Identifier: GPL-3.0-only interface RocketDAONodeTrustedSettingsMembersInterface { function getQuorum() external view returns (uint256); function getRPLBond() external view returns(uint256); function getMinipoolUnbondedMax() external view returns(uint256); function getMinipoolUnbondedMinFee() external view returns(uint256); function getChallengeCooldown() external view returns(uint256); function getChallengeWindow() external view returns(uint256); function getChallengeCost() external view returns(uint256); }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | DECENTRALISED STAKING PROTOCOL FOR ETHEREUM 2.0 | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind ETH2 Proof of Stake protocol, designed to be community owned, * decentralised, trustless and compatible with staking in Ethereum 2.0. * * 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.5.0 <0.9.0; // SPDX-License-Identifier: GPL-3.0-only interface RocketDAOProposalInterface { // Possible states that a proposal may be in enum ProposalState { Pending, Active, Cancelled, Defeated, Succeeded, Expired, Executed } function getTotal() external view returns (uint256); function getDAO(uint256 _proposalID) external view returns (string memory); function getProposer(uint256 _proposalID) external view returns (address); function getMessage(uint256 _proposalID) external view returns (string memory); function getStart(uint256 _proposalID) external view returns (uint256); function getEnd(uint256 _proposalID) external view returns (uint256); function getExpires(uint256 _proposalID) external view returns (uint256); function getCreated(uint256 _proposalID) external view returns (uint256); function getVotesFor(uint256 _proposalID) external view returns (uint256); function getVotesAgainst(uint256 _proposalID) external view returns (uint256); function getVotesRequired(uint256 _proposalID) external view returns (uint256); function getCancelled(uint256 _proposalID) external view returns (bool); function getExecuted(uint256 _proposalID) external view returns (bool); function getPayload(uint256 _proposalID) external view returns (bytes memory); function getReceiptHasVoted(uint256 _proposalID, address _nodeAddress) external view returns (bool); function getReceiptSupported(uint256 _proposalID, address _nodeAddress) external view returns (bool); function getState(uint256 _proposalID) external view returns (ProposalState); function add(address _member, string memory _dao, string memory _message, uint256 _startBlock, uint256 _durationBlocks, uint256 _expiresBlocks, uint256 _votesRequired, bytes memory _payload) external returns (uint256); function vote(address _member, uint256 _votes, uint256 _proposalID, bool _support) external; function cancel(address _member, uint256 _proposalID) external; function execute(uint256 _proposalID) external; }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | DECENTRALISED STAKING PROTOCOL FOR ETHEREUM 2.0 | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind ETH2 Proof of Stake protocol, designed to be community owned, * decentralised, trustless and compatible with staking in Ethereum 2.0. * * 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.5.0 <0.9.0; // 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; }
{ "optimizer": { "enabled": true, "runs": 15000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
[{"inputs":[{"internalType":"contract RocketStorageInterface","name":"_rocketStorageAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"bool","name":"_confirmDisableBootstrapMode","type":"bool"}],"name":"bootstrapDisable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_id","type":"string"},{"internalType":"string","name":"_url","type":"string"},{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"bootstrapMember","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_settingContractName","type":"string"},{"internalType":"string","name":"_settingPath","type":"string"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"bootstrapSettingBool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_settingContractName","type":"string"},{"internalType":"string","name":"_settingPath","type":"string"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"bootstrapSettingUint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_type","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_contractAbi","type":"string"},{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"bootstrapUpgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"decrementMemberUnbondedValidatorCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBootstrapModeDisabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getMemberAt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"getMemberID","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"getMemberIsChallenged","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"getMemberIsValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"getMemberJoinedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"getMemberLastProposalTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMemberMinRequired","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"_proposalType","type":"string"},{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"getMemberProposalExecutedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMemberQuorumVotesRequired","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"getMemberRPLBondAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"getMemberUnbondedValidatorCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"getMemberUrl","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"incrementMemberUnbondedValidatorCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_id","type":"string"},{"internalType":"string","name":"_url","type":"string"}],"name":"memberJoinRequired","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018d5760003560e01c80637a1b2327116100e3578063b3b0db221161008c578063e150394411610066578063e150394414610b14578063e992c81714610b33578063f54746e414610b6c5761018d565b8063b3b0db22146108ae578063c1eb7b2a146109dd578063c3edad14146109e55761018d565b80638840fe0c116100bd5780638840fe0c146106c1578063997072f7146106e7578063b0ad9a1e146106ef5761018d565b80637a1b2327146105c45780637d89846e146105ea578063803f94e3146106105761018d565b806354d28878116101455780635dc33bdd1161011f5780635dc33bdd14610437578063636e3e411461047157806372043ec41461059e5761018d565b806354d28878146103cd57806354fd4d50146103f35780635987956e146104115761018d565b806343906fea1161017657806343906fea14610265578063487959041461026d57806351553095146103a75761018d565b806303c86bbd146101925780633e2d45d1146101ca575b600080fd5b6101b8600480360360208110156101a857600080fd5b50356001600160a01b0316610b74565b60408051918252519081900360200190f35b6101f0600480360360208110156101e057600080fd5b50356001600160a01b0316610c63565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561022a578181015183820152602001610212565b50505050905090810190601f1680156102575780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101b8610d4c565b6103a56004803603606081101561028357600080fd5b81019060208101813564010000000081111561029e57600080fd5b8201836020820111156102b057600080fd5b803590602001918460018302840111640100000000831117156102d257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561032557600080fd5b82018360208201111561033757600080fd5b8035906020019184600183028401116401000000008311171561035957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505090356001600160a01b03169150610dee9050565b005b6101b8600480360360208110156103bd57600080fd5b50356001600160a01b0316611274565b6103a5600480360360208110156103e357600080fd5b50356001600160a01b031661135d565b6103fb6115ef565b6040805160ff9092168252519081900360200190f35b6101b86004803603602081101561042757600080fd5b50356001600160a01b03166115f8565b61045d6004803603602081101561044d57600080fd5b50356001600160a01b03166116e1565b604080519115158252519081900360200190f35b6103a56004803603604081101561048757600080fd5b8101906020810181356401000000008111156104a257600080fd5b8201836020820111156104b457600080fd5b803590602001918460018302840111640100000000831117156104d657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561052957600080fd5b82018360208201111561053b57600080fd5b8035906020019184600183028401116401000000008311171561055d57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506117ca945050505050565b6103a5600480360360208110156105b457600080fd5b50356001600160a01b0316611be9565b61045d600480360360208110156105da57600080fd5b50356001600160a01b0316611ecb565b6101b86004803603602081101561060057600080fd5b50356001600160a01b0316611fc9565b6101b86004803603604081101561062657600080fd5b81019060208101813564010000000081111561064157600080fd5b82018360208201111561065357600080fd5b8035906020019184600183028401116401000000008311171561067557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505090356001600160a01b031691506120b29050565b6101f0600480360360208110156106d757600080fd5b50356001600160a01b031661220b565b6101b86122f4565b6103a56004803603608081101561070557600080fd5b81019060208101813564010000000081111561072057600080fd5b82018360208201111561073257600080fd5b8035906020019184600183028401116401000000008311171561075457600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156107a757600080fd5b8201836020820111156107b957600080fd5b803590602001918460018302840111640100000000831117156107db57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561082e57600080fd5b82018360208201111561084057600080fd5b8035906020019184600183028401116401000000008311171561086257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505090356001600160a01b031691506124779050565b6103a5600480360360608110156108c457600080fd5b8101906020810181356401000000008111156108df57600080fd5b8201836020820111156108f157600080fd5b8035906020019184600183028401116401000000008311171561091357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561096657600080fd5b82018360208201111561097857600080fd5b8035906020019184600183028401116401000000008311171561099a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550509135925061284e915050565b6101b8612bb5565b6103a5600480360360608110156109fb57600080fd5b810190602081018135640100000000811115610a1657600080fd5b820183602082011115610a2857600080fd5b80359060200191846001830284011164010000000083111715610a4a57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050640100000000811115610a9d57600080fd5b820183602082011115610aaf57600080fd5b80359060200191846001830284011164010000000083111715610ad157600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050503515159050612bba565b6103a560048036036020811015610b2a57600080fd5b50351515612e73565b610b5060048036036020811015610b4957600080fd5b503561319b565b604080516001600160a01b039092168252519081900360200190f35b61045d613327565b6000610c5d6040518060400160405280601181526020017f64616f2e747275737465646e6f6465732e000000000000000000000000000000815250836040516020018083805190602001908083835b60208310610be25780518252601f199092019160209182019101610bc3565b6001836020036101000a038019825116818451168082178552505050505050905001807f6d656d6265722e626f6e642e72706c0000000000000000000000000000000000815250600f01826001600160a01b031660601b81526014019250505060405160208183030381529060405280519060200120613401565b92915050565b6060610c5d6040518060400160405280601181526020017f64616f2e747275737465646e6f6465732e000000000000000000000000000000815250836040516020018083805190602001908083835b60208310610cd15780518252601f199092019160209182019101610cb2565b6001836020036101000a038019825116818451168082178552505050505050905001807f6d656d6265722e69640000000000000000000000000000000000000000000000815250600901826001600160a01b031660601b8152601401925050506040516020818303038152906040528051906020012061348d565b600080610d70604051806060016040528060238152602001613915602391396135e9565b9050610de8816001600160a01b031663c26c12eb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610dae57600080fd5b505afa158015610dc2573d6000803e3d6000fd5b505050506040513d6020811015610dd857600080fd5b5051610de26122f4565b906136a6565b91505090565b600060019054906101000a90046001600160a01b03166001600160a01b031663a75b87d26040518163ffffffff1660e01b815260040160206040518083038186803b158015610e3c57600080fd5b505afa158015610e50573d6000803e3d6000fd5b505050506040513d6020811015610e6657600080fd5b50516001600160a01b03163314610eae5760405162461bcd60e51b815260040180806020018281038252602381526020018061399d6023913960400191505060405180910390fd5b610eb6613327565b15610f08576040805162461bcd60e51b815260206004820152601a60248201527f426f6f747374726170206d6f6465206e6f7420656e6761676564000000000000604482015290519081900360640190fd5b80610f6c8160405160200180807f6e6f64652e657869737473000000000000000000000000000000000000000000815250600b01826001600160a01b031660601b8152601401915050604051602081830303815290604052805190602001206136ff565b610fbd576040805162461bcd60e51b815260206004820152600c60248201527f496e76616c6964206e6f64650000000000000000000000000000000000000000604482015290519081900360640190fd5b6040518060400160405280601481526020017f726f636b657444414f4e6f646554727573746564000000000000000000000000815250306110928260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083835b602083106110525780518252601f199092019160209182019101611033565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405160208183030381529060405280519060200120613759565b6001600160a01b0316816001600160a01b0316146110f7576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b6111356040518060400160405280601d81526020017f726f636b657444414f4e6f64655472757374656450726f706f73616c730000008152506135e9565b6001600160a01b0316638f14a3248787876040518463ffffffff1660e01b8152600401808060200180602001846001600160a01b03168152602001838103835286818151815260200191508051906020019080838360005b838110156111a557818101518382015260200161118d565b50505050905090810190601f1680156111d25780820380516001836020036101000a031916815260200191505b50838103825285518152855160209182019187019080838360005b838110156112055781810151838201526020016111ed565b50505050905090810190601f1680156112325780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561125457600080fd5b505af1158015611268573d6000803e3d6000fd5b50505050505050505050565b6000610c5d6040518060400160405280601181526020017f64616f2e747275737465646e6f6465732e000000000000000000000000000000815250836040516020018083805190602001908083835b602083106112e25780518252601f1990920191602091820191016112c3565b6001836020036101000a038019825116818451168082178552505050505050905001807f6d656d6265722e70726f706f73616c2e6c61737474696d650000000000000000815250601801826001600160a01b031660601b81526014019250505060405160208183030381529060405280519060200120613401565b6040518060400160405280601481526020017f726f636b657444414f4e6f646554727573746564000000000000000000000000815250306113f18260405160200180807f636f6e74726163742e61646472657373000000000000000000000000000000008152506010018280519060200190808383602083106110525780518252601f199092019160209182019101611033565b6001600160a01b0316816001600160a01b031614611456576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b604080517f6d696e69706f6f6c2e657869737473000000000000000000000000000000000060208083019190915233606081901b602f84015283516023818503018152604390930190935281519101206114af906136ff565b611500576040805162461bcd60e51b815260206004820152601060248201527f496e76616c6964206d696e69706f6f6c00000000000000000000000000000000604482015290519081900360640190fd5b6115e96040518060400160405280601181526020017f64616f2e747275737465646e6f6465732e000000000000000000000000000000815250856040516020018083805190602001908083835b6020831061156c5780518252601f19909201916020918201910161154d565b6001836020036101000a038019825116818451168082178552505050505050905001807f6d656d6265722e76616c696461746f722e756e626f6e6465642e636f756e7400815250601f01826001600160a01b031660601b8152601401925050506040516020818303038152906040528051906020012060016137b3565b50505050565b60005460ff1681565b6000610c5d6040518060400160405280601181526020017f64616f2e747275737465646e6f6465732e000000000000000000000000000000815250836040516020018083805190602001908083835b602083106116665780518252601f199092019160209182019101611647565b6001836020036101000a038019825116818451168082178552505050505050905001807f6d656d6265722e6a6f696e65642e74696d650000000000000000000000000000815250601201826001600160a01b031660601b81526014019250505060405160208183030381529060405280519060200120613401565b6000610c5d6040518060400160405280601181526020017f64616f2e747275737465646e6f6465732e000000000000000000000000000000815250836040516020018083805190602001908083835b6020831061174f5780518252601f199092019160209182019101611730565b6001836020036101000a038019825116818451168082178552505050505050905001807f6d656d6265720000000000000000000000000000000000000000000000000000815250600601826001600160a01b031660601b815260140192505050604051602081830303815290604052805190602001206136ff565b60036117d46122f4565b10611826576040805162461bcd60e51b815260206004820152601b60248201527f4c6f77206d656d626572206d6f6465206e6f7420656e67616765640000000000604482015290519081900360640190fd5b604080517f6e6f64652e65786973747300000000000000000000000000000000000000000060208083019190915233606081901b602b8401528351601f818503018152603f909301909352815191012061187f906136ff565b6118d0576040805162461bcd60e51b815260206004820152600c60248201527f496e76616c6964206e6f64650000000000000000000000000000000000000000604482015290519081900360640190fd5b6040518060400160405280601481526020017f726f636b657444414f4e6f646554727573746564000000000000000000000000815250306119648260405160200180807f636f6e74726163742e61646472657373000000000000000000000000000000008152506010018280519060200190808383602083106110525780518252601f199092019160209182019101611033565b6001600160a01b0316816001600160a01b0316146119c9576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b611a076040518060400160405280601d81526020017f726f636b657444414f4e6f64655472757374656450726f706f73616c730000008152506135e9565b6001600160a01b0316638f14a3248686336040518463ffffffff1660e01b8152600401808060200180602001846001600160a01b03168152602001838103835286818151815260200191508051906020019080838360005b83811015611a77578181015183820152602001611a5f565b50505050905090810190601f168015611aa45780820380516001836020036101000a031916815260200191505b50838103825285518152855160209182019187019080838360005b83811015611ad7578181015183820152602001611abf565b50505050905090810190601f168015611b045780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015611b2657600080fd5b505af1158015611b3a573d6000803e3d6000fd5b50505050611b7c6040518060400160405280601b81526020017f726f636b657444414f4e6f646554727573746564416374696f6e7300000000008152506135e9565b6001600160a01b031663a8026242336040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015611bca57600080fd5b505af1158015611bde573d6000803e3d6000fd5b505050505050505050565b6040518060400160405280601481526020017f726f636b657444414f4e6f64655472757374656400000000000000000000000081525030611c7d8260405160200180807f636f6e74726163742e61646472657373000000000000000000000000000000008152506010018280519060200190808383602083106110525780518252601f199092019160209182019101611033565b6001600160a01b0316816001600160a01b031614611ce2576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b6040518060400160405280601581526020017f726f636b65744d696e69706f6f6c4d616e61676572000000000000000000000081525033611d768260405160200180807f636f6e74726163742e61646472657373000000000000000000000000000000008152506010018280519060200190808383602083106110525780518252601f199092019160209182019101611033565b6001600160a01b0316816001600160a01b031614611ddb576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b611ec46040518060400160405280601181526020017f64616f2e747275737465646e6f6465732e000000000000000000000000000000815250866040516020018083805190602001908083835b60208310611e475780518252601f199092019160209182019101611e28565b6001836020036101000a038019825116818451168082178552505050505050905001807f6d656d6265722e76616c696461746f722e756e626f6e6465642e636f756e7400815250601f01826001600160a01b031660601b81526014019250505060405160208183030381529060405280519060200120600161383b565b5050505050565b600080611fb56040518060400160405280601181526020017f64616f2e747275737465646e6f6465732e000000000000000000000000000000815250846040516020018083805190602001908083835b60208310611f3a5780518252601f199092019160209182019101611f1b565b6001836020036101000a038019825116818451168082178552505050505050905001807f6d656d6265722e6368616c6c656e6765642e74696d6500000000000000000000815250601601826001600160a01b031660601b81526014019250505060405160208183030381529060405280519060200120613401565b11611fc1576000610c5d565b506001919050565b6000610c5d6040518060400160405280601181526020017f64616f2e747275737465646e6f6465732e000000000000000000000000000000815250836040516020018083805190602001908083835b602083106120375780518252601f199092019160209182019101612018565b6001836020036101000a038019825116818451168082178552505050505050905001807f6d656d6265722e76616c696461746f722e756e626f6e6465642e636f756e7400815250601f01826001600160a01b031660601b81526014019250505060405160208183030381529060405280519060200120613401565b60006122046040518060400160405280601181526020017f64616f2e747275737465646e6f6465732e00000000000000000000000000000081525084846040516020018084805190602001908083835b602083106121215780518252601f199092019160209182019101612102565b51815160209384036101000a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01801990921691161790527f6d656d6265722e65786563757465642e74696d65000000000000000000000000919093019081528551601490910192860191508083835b602083106121b05780518252601f199092019160209182019101612191565b6001836020036101000a038019825116818451168082178552505050505050905001826001600160a01b031660601b8152601401935050505060405160208183030381529060405280519060200120613401565b9392505050565b6060610c5d6040518060400160405280601181526020017f64616f2e747275737465646e6f6465732e000000000000000000000000000000815250836040516020018083805190602001908083835b602083106122795780518252601f19909201916020918201910161225a565b6001836020036101000a038019825116818451168082178552505050505050905001807f6d656d6265722e75726c00000000000000000000000000000000000000000000815250600a01826001600160a01b031660601b8152601401925050506040516020818303038152906040528051906020012061348d565b6000806123356040518060400160405280601181526020017f6164647265737353657453746f726167650000000000000000000000000000008152506135e9565b9050806001600160a01b031663c9d6fee96040518060400160405280601181526020017f64616f2e747275737465646e6f6465732e0000000000000000000000000000008152506040516020018082805190602001908083835b602083106123ae5780518252601f19909201916020918201910161238f565b6001836020036101000a038019825116818451168082178552505050505050905001807f6d656d6265722e696e6465780000000000000000000000000000000000000000815250600c01915050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561244557600080fd5b505afa158015612459573d6000803e3d6000fd5b505050506040513d602081101561246f57600080fd5b505191505090565b600060019054906101000a90046001600160a01b03166001600160a01b031663a75b87d26040518163ffffffff1660e01b815260040160206040518083038186803b1580156124c557600080fd5b505afa1580156124d9573d6000803e3d6000fd5b505050506040513d60208110156124ef57600080fd5b50516001600160a01b031633146125375760405162461bcd60e51b815260040180806020018281038252602381526020018061399d6023913960400191505060405180910390fd5b61253f613327565b15612591576040805162461bcd60e51b815260206004820152601a60248201527f426f6f747374726170206d6f6465206e6f7420656e6761676564000000000000604482015290519081900360640190fd5b6040518060400160405280601481526020017f726f636b657444414f4e6f646554727573746564000000000000000000000000815250306126258260405160200180807f636f6e74726163742e61646472657373000000000000000000000000000000008152506010018280519060200190808383602083106110525780518252601f199092019160209182019101611033565b6001600160a01b0316816001600160a01b03161461268a576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b6126c86040518060400160405280601d81526020017f726f636b657444414f4e6f64655472757374656450726f706f73616c730000008152506135e9565b6001600160a01b031663dfc970ef878787876040518563ffffffff1660e01b815260040180806020018060200180602001856001600160a01b03168152602001848103845288818151815260200191508051906020019080838360005b8381101561273d578181015183820152602001612725565b50505050905090810190601f16801561276a5780820380516001836020036101000a031916815260200191505b50848103835287518152875160209182019189019080838360005b8381101561279d578181015183820152602001612785565b50505050905090810190601f1680156127ca5780820380516001836020036101000a031916815260200191505b50848103825286518152865160209182019188019080838360005b838110156127fd5781810151838201526020016127e5565b50505050905090810190601f16801561282a5780820380516001836020036101000a031916815260200191505b50975050505050505050600060405180830381600087803b15801561125457600080fd5b600060019054906101000a90046001600160a01b03166001600160a01b031663a75b87d26040518163ffffffff1660e01b815260040160206040518083038186803b15801561289c57600080fd5b505afa1580156128b0573d6000803e3d6000fd5b505050506040513d60208110156128c657600080fd5b50516001600160a01b0316331461290e5760405162461bcd60e51b815260040180806020018281038252602381526020018061399d6023913960400191505060405180910390fd5b612916613327565b15612968576040805162461bcd60e51b815260206004820152601a60248201527f426f6f747374726170206d6f6465206e6f7420656e6761676564000000000000604482015290519081900360640190fd5b6040518060400160405280601481526020017f726f636b657444414f4e6f646554727573746564000000000000000000000000815250306129fc8260405160200180807f636f6e74726163742e61646472657373000000000000000000000000000000008152506010018280519060200190808383602083106110525780518252601f199092019160209182019101611033565b6001600160a01b0316816001600160a01b031614612a61576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b612a9f6040518060400160405280601d81526020017f726f636b657444414f4e6f64655472757374656450726f706f73616c730000008152506135e9565b6001600160a01b031663ed1cd9f78686866040518463ffffffff1660e01b8152600401808060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015612b06578181015183820152602001612aee565b50505050905090810190601f168015612b335780820380516001836020036101000a031916815260200191505b50838103825285518152855160209182019187019080838360005b83811015612b66578181015183820152602001612b4e565b50505050905090810190601f168015612b935780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015611bca57600080fd5b600390565b600060019054906101000a90046001600160a01b03166001600160a01b031663a75b87d26040518163ffffffff1660e01b815260040160206040518083038186803b158015612c0857600080fd5b505afa158015612c1c573d6000803e3d6000fd5b505050506040513d6020811015612c3257600080fd5b50516001600160a01b03163314612c7a5760405162461bcd60e51b815260040180806020018281038252602381526020018061399d6023913960400191505060405180910390fd5b612c82613327565b15612cd4576040805162461bcd60e51b815260206004820152601a60248201527f426f6f747374726170206d6f6465206e6f7420656e6761676564000000000000604482015290519081900360640190fd5b6040518060400160405280601481526020017f726f636b657444414f4e6f64655472757374656400000000000000000000000081525030612d688260405160200180807f636f6e74726163742e61646472657373000000000000000000000000000000008152506010018280519060200190808383602083106110525780518252601f199092019160209182019101611033565b6001600160a01b0316816001600160a01b031614612dcd576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b612e0b6040518060400160405280601d81526020017f726f636b657444414f4e6f64655472757374656450726f706f73616c730000008152506135e9565b6001600160a01b031663fe993dc98686866040518463ffffffff1660e01b815260040180806020018060200184151581526020018381038352868181518152602001915080519060200190808383600083811015612b06578181015183820152602001612aee565b600060019054906101000a90046001600160a01b03166001600160a01b031663a75b87d26040518163ffffffff1660e01b815260040160206040518083038186803b158015612ec157600080fd5b505afa158015612ed5573d6000803e3d6000fd5b505050506040513d6020811015612eeb57600080fd5b50516001600160a01b03163314612f335760405162461bcd60e51b815260040180806020018281038252602381526020018061399d6023913960400191505060405180910390fd5b612f3b613327565b15612f8d576040805162461bcd60e51b815260206004820152601a60248201527f426f6f747374726170206d6f6465206e6f7420656e6761676564000000000000604482015290519081900360640190fd5b6040518060400160405280601481526020017f726f636b657444414f4e6f646554727573746564000000000000000000000000815250306130218260405160200180807f636f6e74726163742e61646472657373000000000000000000000000000000008152506010018280519060200190808383602083106110525780518252601f199092019160209182019101611033565b6001600160a01b0316816001600160a01b031614613086576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b6001831515146130c75760405162461bcd60e51b81526004018080602001828103825260448152602001806139596044913960600191505060405180910390fd5b60408051808201825260118082527f64616f2e747275737465646e6f6465732e000000000000000000000000000000602080840191825293516131969401918291908083835b6020831061312c5780518252601f19909201916020918201910161310d565b6001836020036101000a038019825116818451168082178552505050505050905001807f626f6f7473747261706d6f64652e64697361626c6564000000000000000000008152506016019150506040516020818303038152906040528051906020012060016138a7565b505050565b6000806131dc6040518060400160405280601181526020017f6164647265737353657453746f726167650000000000000000000000000000008152506135e9565b9050806001600160a01b031663f3358a3a6040518060400160405280601181526020017f64616f2e747275737465646e6f6465732e0000000000000000000000000000008152506040516020018082805190602001908083835b602083106132555780518252601f199092019160209182019101613236565b6001836020036101000a038019825116818451168082178552505050505050905001807f6d656d6265722e696e6465780000000000000000000000000000000000000000815250600c0191505060405160208183030381529060405280519060200120856040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b1580156132f457600080fd5b505afa158015613308573d6000803e3d6000fd5b505050506040513d602081101561331e57600080fd5b50519392505050565b60006133fc6040518060400160405280601181526020017f64616f2e747275737465646e6f6465732e0000000000000000000000000000008152506040516020018082805190602001908083835b602083106133945780518252601f199092019160209182019101613375565b6001836020036101000a038019825116818451168082178552505050505050905001807f626f6f7473747261706d6f64652e64697361626c656400000000000000000000815250601601915050604051602081830303815290604052805190602001206136ff565b905090565b60008060019054906101000a90046001600160a01b03166001600160a01b031663bd02d0f5836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561345b57600080fd5b505afa15801561346f573d6000803e3d6000fd5b505050506040513d602081101561348557600080fd5b505192915050565b60008054604080517f986e791a0000000000000000000000000000000000000000000000000000000081526004810185905290516060936101009093046001600160a01b03169263986e791a9260248082019391829003018186803b1580156134f557600080fd5b505afa158015613509573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561353257600080fd5b810190808051604051939291908464010000000082111561355257600080fd5b90830190602082018581111561356757600080fd5b825164010000000081118282018810171561358157600080fd5b82525081516020918201929091019080838360005b838110156135ae578181015183820152602001613596565b50505050905090810190601f1680156135db5780820380516001836020036101000a031916815260200191505b506040525050509050919050565b6000806136498360405160200180807f636f6e74726163742e61646472657373000000000000000000000000000000008152506010018280519060200190808383602083106110525780518252601f199092019160209182019101611033565b90506001600160a01b038116610c5d576040805162461bcd60e51b815260206004820152601260248201527f436f6e7472616374206e6f7420666f756e640000000000000000000000000000604482015290519081900360640190fd5b6000826136b557506000610c5d565b828202828482816136c257fe5b04146122045760405162461bcd60e51b81526004018080602001828103825260218152602001806139386021913960400191505060405180910390fd5b60008060019054906101000a90046001600160a01b03166001600160a01b0316637ae1cfca836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561345b57600080fd5b60008060019054906101000a90046001600160a01b03166001600160a01b03166321f8a721836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561345b57600080fd5b60008054604080517febb9d8c9000000000000000000000000000000000000000000000000000000008152600481018690526024810185905290516101009092046001600160a01b03169263ebb9d8c99260448084019382900301818387803b15801561381f57600080fd5b505af1158015613833573d6000803e3d6000fd5b505050505050565b60008054604080517fadb353dc000000000000000000000000000000000000000000000000000000008152600481018690526024810185905290516101009092046001600160a01b03169263adb353dc9260448084019382900301818387803b15801561381f57600080fd5b60008054604080517fabfdcced00000000000000000000000000000000000000000000000000000000815260048101869052841515602482015290516101009092046001600160a01b03169263abfdcced9260448084019382900301818387803b15801561381f57600080fdfe726f636b657444414f4e6f64655472757374656453657474696e67734d656d62657273536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77596f75206d75737420636f6e6669726d2064697361626c696e6720626f6f747374726170206d6f64652c2069742063616e206f6e6c7920626520646f6e65206f6e6365214163636f756e74206973206e6f7420612074656d706f7261727920677561726469616ea26469706673582212203c2c75cf43a0873a565e5d9e3ecea13bb8a9f136e588f1bf378fd94da9588eb764736f6c63430007060033
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.