Source Code
Overview
POL Balance
More Info
ContractCreator
Multichain Info
N/A
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
NodeRegistry
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts-upgradeable-4.4.2/proxy/utils/UUPSUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable-4.4.2/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable-4.4.2/proxy/utils/Initializable.sol"; /** * @title NodeRegistry * * Streamr Network nodes register themselves here * * @dev OwnableUpgradable contract has an owner address, and provides basic authorization control functions. * @dev This simplifies the implementation of "user permissions". */ contract NodeRegistry is Initializable, UUPSUpgradeable, OwnableUpgradeable { // TODO: next version isNew should be boolean event NodeUpdated(address indexed nodeAddress, string metadata, uint indexed isNew, uint lastSeen); event NodeRemoved(address indexed nodeAddress); event NodeWhitelistApproved(address indexed nodeAddress); event NodeWhitelistRejected(address indexed nodeAddress); event RequiresWhitelistChanged(bool indexed value); enum WhitelistState { None, Approved, Rejected } struct Node { address nodeAddress; // Ethereum address of the node (unique id) string metadata; // Connection metadata, for example wss://node-domain-name:port uint lastSeen; // what's the best way to store timestamps in smart contracts? } struct NodeLinkedListItem { Node node; address next; //linked list address prev; //linked list } modifier whitelistOK() { require(!requiresWhitelist || whitelist[msg.sender] == WhitelistState.Approved, "error_notApproved"); _; } uint64 public nodeCount; address public tailNode; address public headNode; bool public requiresWhitelist; mapping(address => NodeLinkedListItem) public nodes; mapping(address => WhitelistState) public whitelist; // Constructor can't be used with upgradeable contracts, so use initialize instead // this will not be called upon each upgrade, only once during first deployment function initialize(address owner, bool requiresWhitelist_, address[] memory initialNodes, string[] memory initialMetadata) public initializer { __Ownable_init(); __UUPSUpgradeable_init(); requiresWhitelist = requiresWhitelist_; require(initialNodes.length == initialMetadata.length, "error_badTrackerData"); for (uint i = 0; i < initialNodes.length; i++) { createOrUpdateNode(initialNodes[i], initialMetadata[i]); } transferOwnership(owner); } function _authorizeUpgrade(address) internal override onlyOwner {} function getNode(address nodeAddress) public view returns (Node memory) { NodeLinkedListItem storage n = nodes[nodeAddress]; return n.node; } // TODO: add function // function exists(address nodeAddress) public view returns (bool) { // NodeLinkedListItem storage n = nodes[nodeAddress]; // return n.node.lastSeen != 0; // } // TODO: rename to adminCreateOrUpdateNode function createOrUpdateNode(address node, string memory metadata_) public onlyOwner { _createOrUpdateNode(node, metadata_); } // TODO: rename to createOrUpdateNode function createOrUpdateNodeSelf(string memory metadata_) public whitelistOK { _createOrUpdateNode(msg.sender, metadata_); } function _createOrUpdateNode(address nodeAddress, string memory metadata_) internal { NodeLinkedListItem storage n = nodes[nodeAddress]; uint isNew = 0; if (n.node.lastSeen == 0) { isNew = 1; nodes[nodeAddress] = NodeLinkedListItem({ node: Node({nodeAddress: nodeAddress, metadata: metadata_, lastSeen: block.timestamp}), // solhint-disable-line not-rely-on-time prev: tailNode, next: address(0) }); nodeCount++; if (tailNode != address(0)) { NodeLinkedListItem storage prevNode = nodes[tailNode]; prevNode.next = nodeAddress; } if (headNode == address(0)) { headNode = nodeAddress; } tailNode = nodeAddress; } else { n.node.metadata = metadata_; n.node.lastSeen = block.timestamp; // solhint-disable-line not-rely-on-time } emit NodeUpdated(nodeAddress, n.node.metadata, isNew, n.node.lastSeen); } function removeNode(address nodeAddress) public onlyOwner { _removeNode(nodeAddress); } function removeNodeSelf() public { _removeNode(msg.sender); } function _removeNode(address nodeAddress) internal { NodeLinkedListItem storage n = nodes[nodeAddress]; require(n.node.lastSeen != 0, "error_notFound"); if(n.prev != address(0)){ NodeLinkedListItem storage prevNode = nodes[n.prev]; prevNode.next = n.next; } if(n.next != address(0)){ NodeLinkedListItem storage nextNode = nodes[n.next]; nextNode.prev = n.prev; } nodeCount--; if(nodeAddress == tailNode) { NodeLinkedListItem storage tn = nodes[tailNode]; tailNode = tn.prev; } if(nodeAddress == headNode) { NodeLinkedListItem storage hn = nodes[headNode]; headNode = hn.next; } delete nodes[nodeAddress]; emit NodeRemoved(nodeAddress); } function whitelistApproveNode(address nodeAddress) public onlyOwner { whitelist[nodeAddress] = WhitelistState.Approved; emit NodeWhitelistApproved(nodeAddress); } function whitelistRejectNode(address nodeAddress) public onlyOwner { whitelist[nodeAddress] = WhitelistState.Rejected; emit NodeWhitelistRejected(nodeAddress); } function kickOut(address nodeAddress) public onlyOwner { whitelistRejectNode(nodeAddress); removeNode(nodeAddress); } function setRequiresWhitelist(bool value) public onlyOwner { requiresWhitelist = value; emit RequiresWhitelistChanged(value); } /* this function is O(N) because we need linked list functionality. i=0 is first node */ function getNodeByNumber(uint i) external view returns (Node memory) { require(i < nodeCount, "error_indexOutOfBounds"); address currentNodeAddress = headNode; NodeLinkedListItem storage n = nodes[currentNodeAddress]; for(uint nodeNum = 1; nodeNum <= i; nodeNum++){ currentNodeAddress = n.next; n = nodes[currentNodeAddress]; } return n.node; } function getNodes() external view returns (Node[] memory) { Node[] memory nodeArray = new Node[](nodeCount); address currentNodeAddress = headNode; for(uint nodeNum = 0; nodeNum < nodeCount; nodeNum++){ NodeLinkedListItem storage n = nodes[currentNodeAddress]; nodeArray[nodeNum] = n.node; currentNodeAddress = n.next; } return nodeArray; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeaconUpgradeable { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; import "../beacon/IBeaconUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/StorageSlotUpgradeable.sol"; import "../utils/Initializable.sol"; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ * * @custom:oz-upgrades-unsafe-allow delegatecall */ abstract contract ERC1967UpgradeUpgradeable is Initializable { function __ERC1967Upgrade_init() internal onlyInitializing { __ERC1967Upgrade_init_unchained(); } function __ERC1967Upgrade_init_unchained() internal onlyInitializing { } // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall( address newImplementation, bytes memory data, bool forceCall ) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { _functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallSecure( address newImplementation, bytes memory data, bool forceCall ) internal { address oldImplementation = _getImplementation(); // Initial upgrade and setup call _setImplementation(newImplementation); if (data.length > 0 || forceCall) { _functionDelegateCall(newImplementation, data); } // Perform rollback test if not already in progress StorageSlotUpgradeable.BooleanSlot storage rollbackTesting = StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT); if (!rollbackTesting.value) { // Trigger rollback using upgradeTo from the new implementation rollbackTesting.value = true; _functionDelegateCall( newImplementation, abi.encodeWithSignature("upgradeTo(address)", oldImplementation) ); rollbackTesting.value = false; // Check rollback was effective require(oldImplementation == _getImplementation(), "ERC1967Upgrade: upgrade breaks further upgrades"); // Finally reset to the new implementation and log the upgrade _upgradeTo(newImplementation); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Emitted when the beacon is upgraded. */ event BeaconUpgraded(address indexed beacon); /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall( address newBeacon, bytes memory data, bool forceCall ) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data); } } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function _functionDelegateCall(address target, bytes memory data) private returns (bytes memory) { require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed"); } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol) pragma solidity ^0.8.0; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() initializer {} * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.0; import "../ERC1967/ERC1967UpgradeUpgradeable.sol"; import "./Initializable.sol"; /** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. * * _Available since v4.1._ */ abstract contract UUPSUpgradeable is Initializable, ERC1967UpgradeUpgradeable { function __UUPSUpgradeable_init() internal onlyInitializing { __ERC1967Upgrade_init_unchained(); __UUPSUpgradeable_init_unchained(); } function __UUPSUpgradeable_init_unchained() internal onlyInitializing { } /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment address private immutable __self = address(this); /** * @dev Check that the execution is being performed through a delegatecall call and that the execution context is * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { require(address(this) != __self, "Function must be called through delegatecall"); require(_getImplementation() == __self, "Function must be called through active proxy"); _; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeTo(address newImplementation) external virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallSecure(newImplementation, new bytes(0), false); } /** * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call * encoded in `data`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallSecure(newImplementation, data, true); } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeTo} and {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal override onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { __Context_init_unchained(); } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol) pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ``` * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlotUpgradeable { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { assembly { r.slot := slot } } }
{ "optimizer": { "enabled": true, "runs": 100 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nodeAddress","type":"address"}],"name":"NodeRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nodeAddress","type":"address"},{"indexed":false,"internalType":"string","name":"metadata","type":"string"},{"indexed":true,"internalType":"uint256","name":"isNew","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastSeen","type":"uint256"}],"name":"NodeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nodeAddress","type":"address"}],"name":"NodeWhitelistApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nodeAddress","type":"address"}],"name":"NodeWhitelistRejected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"RequiresWhitelistChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[{"internalType":"address","name":"node","type":"address"},{"internalType":"string","name":"metadata_","type":"string"}],"name":"createOrUpdateNode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"metadata_","type":"string"}],"name":"createOrUpdateNodeSelf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nodeAddress","type":"address"}],"name":"getNode","outputs":[{"components":[{"internalType":"address","name":"nodeAddress","type":"address"},{"internalType":"string","name":"metadata","type":"string"},{"internalType":"uint256","name":"lastSeen","type":"uint256"}],"internalType":"struct NodeRegistry.Node","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"i","type":"uint256"}],"name":"getNodeByNumber","outputs":[{"components":[{"internalType":"address","name":"nodeAddress","type":"address"},{"internalType":"string","name":"metadata","type":"string"},{"internalType":"uint256","name":"lastSeen","type":"uint256"}],"internalType":"struct NodeRegistry.Node","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNodes","outputs":[{"components":[{"internalType":"address","name":"nodeAddress","type":"address"},{"internalType":"string","name":"metadata","type":"string"},{"internalType":"uint256","name":"lastSeen","type":"uint256"}],"internalType":"struct NodeRegistry.Node[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"headNode","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"bool","name":"requiresWhitelist_","type":"bool"},{"internalType":"address[]","name":"initialNodes","type":"address[]"},{"internalType":"string[]","name":"initialMetadata","type":"string[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nodeAddress","type":"address"}],"name":"kickOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nodeCount","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nodes","outputs":[{"components":[{"internalType":"address","name":"nodeAddress","type":"address"},{"internalType":"string","name":"metadata","type":"string"},{"internalType":"uint256","name":"lastSeen","type":"uint256"}],"internalType":"struct NodeRegistry.Node","name":"node","type":"tuple"},{"internalType":"address","name":"next","type":"address"},{"internalType":"address","name":"prev","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nodeAddress","type":"address"}],"name":"removeNode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeNodeSelf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requiresWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setRequiresWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tailNode","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"enum NodeRegistry.WhitelistState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nodeAddress","type":"address"}],"name":"whitelistApproveNode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nodeAddress","type":"address"}],"name":"whitelistRejectNode","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523060805234801561001457600080fd5b506080516122e561004560003960008181610678015281816106b801528181610741015261078101526122e56000f3fe6080604052600436106101405760003560e01c80638da5cb5b116100b6578063b2b99ec91161006f578063b2b99ec9146103c7578063bfdf0866146103e7578063e29581aa1461040e578063e670c15d14610430578063ecf274da14610445578063f2fde38b1461046557600080fd5b80638da5cb5b146102d757806399e68eea146102ec5780639b19251a1461030c5780639d20904814610349578063a5ee5b4114610376578063ae5b4961146103a757600080fd5b80634f1ef286116101085780634f1ef286146102175780635668c8fb1461022a5780635888799c1461024a5780635d8f7f2a1461026a5780636da49b831461028a578063715018a6146102c257600080fd5b8063189a5a171461014557806320a59a031461017d5780632af575801461019f5780633659cfe6146101bf57806346c198f6146101df575b600080fd5b34801561015157600080fd5b50610165610160366004611ab8565b610485565b60405161017493929190611b6a565b60405180910390f35b34801561018957600080fd5b5061019d610198366004611bad565b610571565b005b3480156101ab57600080fd5b5061019d6101ba366004611ab8565b6105f2565b3480156101cb57600080fd5b5061019d6101da366004611ab8565b61066d565b3480156101eb57600080fd5b5060ca546101ff906001600160a01b031681565b6040516001600160a01b039091168152602001610174565b61019d610225366004611c65565b610736565b34801561023657600080fd5b5061019d610245366004611ab8565b6107f0565b34801561025657600080fd5b5061019d610265366004611ab8565b610831565b34801561027657600080fd5b5061019d610285366004611ce6565b6108ac565b34801561029657600080fd5b5060c9546102aa906001600160401b031681565b6040516001600160401b039091168152602001610174565b3480156102ce57600080fd5b5061019d6108e5565b3480156102e357600080fd5b506101ff610920565b3480156102f857600080fd5b5061019d610307366004611d29565b61092f565b34801561031857600080fd5b5061033c610327366004611ab8565b60cc6020526000908152604090205460ff1681565b6040516101749190611d7b565b34801561035557600080fd5b50610369610364366004611ab8565b6109b5565b6040516101749190611da3565b34801561038257600080fd5b5060ca5461039790600160a01b900460ff1681565b6040519015158152602001610174565b3480156103b357600080fd5b506103696103c2366004611db6565b610a93565b3480156103d357600080fd5b5061019d6103e2366004611ab8565b610c09565b3480156103f357600080fd5b5060c9546101ff90600160401b90046001600160a01b031681565b34801561041a57600080fd5b50610423610c41565b6040516101749190611dcf565b34801561043c57600080fd5b5061019d610dd8565b34801561045157600080fd5b5061019d610460366004611ee3565b610de1565b34801561047157600080fd5b5061019d610480366004611ab8565b610f71565b60cb6020908152600091825260409182902082516060810190935280546001600160a01b03168352600181018054919392849290840191906104c690611fc5565b80601f01602080910402602001604051908101604052809291908181526020018280546104f290611fc5565b801561053f5780601f106105145761010080835404028352916020019161053f565b820191906000526020600020905b81548152906001019060200180831161052257829003601f168201915b505050918352505060029190910154602090910152600382015460049092015490916001600160a01b03908116911683565b3361057a610920565b6001600160a01b0316146105a95760405162461bcd60e51b81526004016105a090612000565b60405180910390fd5b60ca805460ff60a01b1916600160a01b831515908102919091179091556040517f7623db9c426686f05cec977c4cadb8ff9657502540ca665ae347731114dac69d90600090a250565b336105fb610920565b6001600160a01b0316146106215760405162461bcd60e51b81526004016105a090612000565b6001600160a01b038116600081815260cc6020526040808220805460ff19166002179055517fbbe2a784aa6240d8175fa65a8459058efd8f44c5ab66caa2525fe9d6342108789190a250565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156106b65760405162461bcd60e51b81526004016105a090612035565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166106e861100e565b6001600160a01b03161461070e5760405162461bcd60e51b81526004016105a090612081565b6107178161103c565b604080516000808252602082019092526107339183919061106b565b50565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141561077f5760405162461bcd60e51b81526004016105a090612035565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166107b161100e565b6001600160a01b0316146107d75760405162461bcd60e51b81526004016105a090612081565b6107e08261103c565b6107ec8282600161106b565b5050565b336107f9610920565b6001600160a01b03161461081f5760405162461bcd60e51b81526004016105a090612000565b610828816105f2565b61073381610c09565b3361083a610920565b6001600160a01b0316146108605760405162461bcd60e51b81526004016105a090612000565b6001600160a01b038116600081815260cc6020526040808220805460ff19166001179055517fdfe83f699699403a4b116b6f9504680228c3f319bbf5ab26b48a81d3005d98b29190a250565b336108b5610920565b6001600160a01b0316146108db5760405162461bcd60e51b81526004016105a090612000565b6107ec82826111af565b336108ee610920565b6001600160a01b0316146109145760405162461bcd60e51b81526004016105a090612000565b61091e60006113fa565b565b6097546001600160a01b031690565b60ca54600160a01b900460ff16158061096b5750600133600090815260cc602052604090205460ff16600281111561096957610969611d65565b145b6109ab5760405162461bcd60e51b8152602060048201526011602482015270195c9c9bdc97db9bdd105c1c1c9bdd9959607a1b60448201526064016105a0565b61073333826111af565b6109bd6119a3565b6001600160a01b03808316600090815260cb6020908152604091829020825160608101909352805490931682526001830180548492840191906109ff90611fc5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2b90611fc5565b8015610a785780601f10610a4d57610100808354040283529160200191610a78565b820191906000526020600020905b815481529060010190602001808311610a5b57829003601f168201915b50505050508152602001600282015481525050915050919050565b610a9b6119a3565b60c9546001600160401b03168210610aee5760405162461bcd60e51b81526020600482015260166024820152756572726f725f696e6465784f75744f66426f756e647360501b60448201526064016105a0565b60ca546001600160a01b0316600081815260cb6020526040902060015b848111610b45576003909101546001600160a01b0316600081815260cb602052604090209092509080610b3d816120e3565b915050610b0b565b50604080516060810190915281546001600160a01b0316815260018201805483916020840191610b7490611fc5565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba090611fc5565b8015610bed5780601f10610bc257610100808354040283529160200191610bed565b820191906000526020600020905b815481529060010190602001808311610bd057829003601f168201915b5050505050815260200160028201548152505092505050919050565b33610c12610920565b6001600160a01b031614610c385760405162461bcd60e51b81526004016105a090612000565b6107338161144c565b60c9546060906000906001600160401b0390811690811115610c6557610c65611bc8565b604051908082528060200260200182016040528015610c9e57816020015b610c8b6119a3565b815260200190600190039081610c835790505b5060ca549091506001600160a01b031660005b60c9546001600160401b0316811015610dd0576001600160a01b03808316600090815260cb602090815260409182902082516060810190935280549093168252600183018054849284019190610d0690611fc5565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3290611fc5565b8015610d7f5780601f10610d5457610100808354040283529160200191610d7f565b820191906000526020600020905b815481529060010190602001808311610d6257829003601f168201915b50505050508152602001600282015481525050848381518110610da457610da46120fe565b6020908102919091010152600301546001600160a01b0316915080610dc8816120e3565b915050610cb1565b509092915050565b61091e3361144c565b600054610100900460ff16610dfc5760005460ff1615610e00565b303b155b610e635760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016105a0565b600054610100900460ff16158015610e85576000805461ffff19166101011790555b610e8d6116ce565b610e95611705565b60ca805460ff60a01b1916600160a01b861515021790558151835114610ef45760405162461bcd60e51b81526020600482015260146024820152736572726f725f626164547261636b65724461746160601b60448201526064016105a0565b60005b8351811015610f4e57610f3c848281518110610f1557610f156120fe565b6020026020010151848381518110610f2f57610f2f6120fe565b60200260200101516108ac565b80610f46816120e3565b915050610ef7565b50610f5885610f71565b8015610f6a576000805461ff00191690555b5050505050565b33610f7a610920565b6001600160a01b031614610fa05760405162461bcd60e51b81526004016105a090612000565b6001600160a01b0381166110055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105a0565b610733816113fa565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b33611045610920565b6001600160a01b0316146107335760405162461bcd60e51b81526004016105a090612000565b600061107561100e565b90506110808461173c565b60008351118061108d5750815b1561109e5761109c84846117e1565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff16610f6a57805460ff191660011781556040516001600160a01b038316602482015261111d90869060440160408051601f198184030181529190526020810180516001600160e01b0316631b2ce7f360e11b1790526117e1565b50805460ff1916815561112e61100e565b6001600160a01b0316826001600160a01b0316146111a65760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201526e75727468657220757067726164657360881b60648201526084016105a0565b610f6a856118cc565b6001600160a01b038216600090815260cb60205260408120600281015490919061138957506040805160c0810182526001600160a01b0385811660608301818152608084018790524260a085015283526000602080850182905260c954600160401b900484168587015291815260cb8252939093208251805182546001600160a01b0319169316929092178155818401518051600195929392849261125c928885019291909101906119cd565b506040918201516002919091015560208301516003830180546001600160a01b03199081166001600160a01b0393841617909155939091015160049092018054909316911617905560c980546001600160401b03169060006112bd83612114565b82546001600160401b039182166101009390930a92830291909202199091161790555060c954600160401b90046001600160a01b0316156113345760c954600160401b90046001600160a01b03908116600090815260cb6020526040902060030180546001600160a01b0319169186169190911790555b60ca546001600160a01b03166113605760ca80546001600160a01b0319166001600160a01b0386161790555b60c98054600160401b600160e01b031916600160401b6001600160a01b038716021790556113a6565b825161139e90600184019060208601906119cd565b504260028301555b600282015460405182916001600160a01b038716917f7b8ea65757bf0d882563917834f76c4df069ea7e489c9fc65bf764289792e334916113ec9160018801919061213b565b60405180910390a350505050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038116600090815260cb6020526040902060028101546114a65760405162461bcd60e51b815260206004820152600e60248201526d195c9c9bdc97db9bdd119bdd5b9960921b60448201526064016105a0565b60048101546001600160a01b0316156114f35760048101546001600160a01b03908116600090815260cb60205260409020600380840154910180546001600160a01b031916919092161790555b60038101546001600160a01b0316156115405760038101546001600160a01b03908116600090815260cb60205260409020600480840154910180546001600160a01b031916919092161790555b60c980546001600160401b0316906000611559836121eb565b91906101000a8154816001600160401b0302191690836001600160401b031602179055505060c960089054906101000a90046001600160a01b03166001600160a01b0316826001600160a01b031614156115ec5760c980546001600160a01b03600160401b8083048216600090815260cb602052604090206004015490911602600160401b600160e01b03199091161790555b60ca546001600160a01b03838116911614156116345760ca80546001600160a01b03808216600090815260cb6020526040902060030154166001600160a01b03199091161790555b6001600160a01b038216600090815260cb6020526040812080546001600160a01b031916815590818161166a6001830182611a51565b5060006002919091018190556003830180546001600160a01b031990811690915560049093018054909316909255506040516001600160a01b038416917fcfc24166db4bb677e857cacabd1541fb2b30645021b27c5130419589b84db52b91a25050565b600054610100900460ff166116f55760405162461bcd60e51b81526004016105a09061220e565b6116fd61190c565b61091e611933565b600054610100900460ff1661172c5760405162461bcd60e51b81526004016105a09061220e565b61173461190c565b61091e61190c565b803b6117a05760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016105a0565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060823b6118405760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016105a0565b600080846001600160a01b03168460405161185b9190612259565b600060405180830381855af49150503d8060008114611896576040519150601f19603f3d011682016040523d82523d6000602084013e61189b565b606091505b50915091506118c3828260405180606001604052806027815260200161228960279139611963565b95945050505050565b6118d58161173c565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b600054610100900460ff1661091e5760405162461bcd60e51b81526004016105a09061220e565b600054610100900460ff1661195a5760405162461bcd60e51b81526004016105a09061220e565b61091e336113fa565b6060831561197257508161199c565b8251156119825782518084602001fd5b8160405162461bcd60e51b81526004016105a09190612275565b9392505050565b604051806060016040528060006001600160a01b0316815260200160608152602001600081525090565b8280546119d990611fc5565b90600052602060002090601f0160209004810192826119fb5760008555611a41565b82601f10611a1457805160ff1916838001178555611a41565b82800160010185558215611a41579182015b82811115611a41578251825591602001919060010190611a26565b50611a4d929150611a87565b5090565b508054611a5d90611fc5565b6000825580601f10611a6d575050565b601f01602090049060005260206000209081019061073391905b5b80821115611a4d5760008155600101611a88565b80356001600160a01b0381168114611ab357600080fd5b919050565b600060208284031215611aca57600080fd5b61199c82611a9c565b60005b83811015611aee578181015183820152602001611ad6565b83811115611afd576000848401525b50505050565b60008151808452611b1b816020860160208601611ad3565b601f01601f19169290920160200192915050565b60018060a01b0381511682526000602082015160606020850152611b566060850182611b03565b604093840151949093019390935250919050565b606081526000611b7d6060830186611b2f565b6001600160a01b0394851660208401529290931660409091015292915050565b80358015158114611ab357600080fd5b600060208284031215611bbf57600080fd5b61199c82611b9d565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611c0657611c06611bc8565b604052919050565b60006001600160401b03831115611c2757611c27611bc8565b611c3a601f8401601f1916602001611bde565b9050828152838383011115611c4e57600080fd5b828260208301376000602084830101529392505050565b60008060408385031215611c7857600080fd5b611c8183611a9c565b915060208301356001600160401b03811115611c9c57600080fd5b8301601f81018513611cad57600080fd5b611cbc85823560208401611c0e565b9150509250929050565b600082601f830112611cd757600080fd5b61199c83833560208501611c0e565b60008060408385031215611cf957600080fd5b611d0283611a9c565b915060208301356001600160401b03811115611d1d57600080fd5b611cbc85828601611cc6565b600060208284031215611d3b57600080fd5b81356001600160401b03811115611d5157600080fd5b611d5d84828501611cc6565b949350505050565b634e487b7160e01b600052602160045260246000fd5b6020810160038310611d9d57634e487b7160e01b600052602160045260246000fd5b91905290565b60208152600061199c6020830184611b2f565b600060208284031215611dc857600080fd5b5035919050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015611e2457603f19888603018452611e12858351611b2f565b94509285019290850190600101611df6565b5092979650505050505050565b60006001600160401b03821115611e4a57611e4a611bc8565b5060051b60200190565b600082601f830112611e6557600080fd5b81356020611e7a611e7583611e31565b611bde565b82815260059290921b84018101918181019086841115611e9957600080fd5b8286015b84811015611ed85780356001600160401b03811115611ebc5760008081fd5b611eca8986838b0101611cc6565b845250918301918301611e9d565b509695505050505050565b60008060008060808587031215611ef957600080fd5b611f0285611a9c565b93506020611f11818701611b9d565b935060408601356001600160401b0380821115611f2d57600080fd5b818801915088601f830112611f4157600080fd5b8135611f4f611e7582611e31565b81815260059190911b8301840190848101908b831115611f6e57600080fd5b938501935b82851015611f9357611f8485611a9c565b82529385019390850190611f73565b965050506060880135925080831115611fab57600080fd5b5050611fb987828801611e54565b91505092959194509250565b600181811c90821680611fd957607f821691505b60208210811415611ffa57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60006000198214156120f7576120f76120cd565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60006001600160401b0380831681811415612131576121316120cd565b6001019392505050565b60408152600080845481600182811c91508083168061215b57607f831692505b602080841082141561217b57634e487b7160e01b86526022600452602486fd5b604088018490526060880182801561219a57600181146121ab576121d6565b60ff198716825282820197506121d6565b60008c81526020902060005b878110156121d0578154848201529086019084016121b7565b83019850505b50509690960196909652509095945050505050565b60006001600160401b03821680612204576122046120cd565b6000190192915050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000825161226b818460208701611ad3565b9190910192915050565b60208152600061199c6020830184611b0356fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122043880ab2a1adbbff24c0c22608452841859cbe593be663c6c688db04fcd563e464736f6c63430008090033
Deployed Bytecode
0x6080604052600436106101405760003560e01c80638da5cb5b116100b6578063b2b99ec91161006f578063b2b99ec9146103c7578063bfdf0866146103e7578063e29581aa1461040e578063e670c15d14610430578063ecf274da14610445578063f2fde38b1461046557600080fd5b80638da5cb5b146102d757806399e68eea146102ec5780639b19251a1461030c5780639d20904814610349578063a5ee5b4114610376578063ae5b4961146103a757600080fd5b80634f1ef286116101085780634f1ef286146102175780635668c8fb1461022a5780635888799c1461024a5780635d8f7f2a1461026a5780636da49b831461028a578063715018a6146102c257600080fd5b8063189a5a171461014557806320a59a031461017d5780632af575801461019f5780633659cfe6146101bf57806346c198f6146101df575b600080fd5b34801561015157600080fd5b50610165610160366004611ab8565b610485565b60405161017493929190611b6a565b60405180910390f35b34801561018957600080fd5b5061019d610198366004611bad565b610571565b005b3480156101ab57600080fd5b5061019d6101ba366004611ab8565b6105f2565b3480156101cb57600080fd5b5061019d6101da366004611ab8565b61066d565b3480156101eb57600080fd5b5060ca546101ff906001600160a01b031681565b6040516001600160a01b039091168152602001610174565b61019d610225366004611c65565b610736565b34801561023657600080fd5b5061019d610245366004611ab8565b6107f0565b34801561025657600080fd5b5061019d610265366004611ab8565b610831565b34801561027657600080fd5b5061019d610285366004611ce6565b6108ac565b34801561029657600080fd5b5060c9546102aa906001600160401b031681565b6040516001600160401b039091168152602001610174565b3480156102ce57600080fd5b5061019d6108e5565b3480156102e357600080fd5b506101ff610920565b3480156102f857600080fd5b5061019d610307366004611d29565b61092f565b34801561031857600080fd5b5061033c610327366004611ab8565b60cc6020526000908152604090205460ff1681565b6040516101749190611d7b565b34801561035557600080fd5b50610369610364366004611ab8565b6109b5565b6040516101749190611da3565b34801561038257600080fd5b5060ca5461039790600160a01b900460ff1681565b6040519015158152602001610174565b3480156103b357600080fd5b506103696103c2366004611db6565b610a93565b3480156103d357600080fd5b5061019d6103e2366004611ab8565b610c09565b3480156103f357600080fd5b5060c9546101ff90600160401b90046001600160a01b031681565b34801561041a57600080fd5b50610423610c41565b6040516101749190611dcf565b34801561043c57600080fd5b5061019d610dd8565b34801561045157600080fd5b5061019d610460366004611ee3565b610de1565b34801561047157600080fd5b5061019d610480366004611ab8565b610f71565b60cb6020908152600091825260409182902082516060810190935280546001600160a01b03168352600181018054919392849290840191906104c690611fc5565b80601f01602080910402602001604051908101604052809291908181526020018280546104f290611fc5565b801561053f5780601f106105145761010080835404028352916020019161053f565b820191906000526020600020905b81548152906001019060200180831161052257829003601f168201915b505050918352505060029190910154602090910152600382015460049092015490916001600160a01b03908116911683565b3361057a610920565b6001600160a01b0316146105a95760405162461bcd60e51b81526004016105a090612000565b60405180910390fd5b60ca805460ff60a01b1916600160a01b831515908102919091179091556040517f7623db9c426686f05cec977c4cadb8ff9657502540ca665ae347731114dac69d90600090a250565b336105fb610920565b6001600160a01b0316146106215760405162461bcd60e51b81526004016105a090612000565b6001600160a01b038116600081815260cc6020526040808220805460ff19166002179055517fbbe2a784aa6240d8175fa65a8459058efd8f44c5ab66caa2525fe9d6342108789190a250565b306001600160a01b037f0000000000000000000000007223bad75e9938656b3da6b535fa8de22997b0cf1614156106b65760405162461bcd60e51b81526004016105a090612035565b7f0000000000000000000000007223bad75e9938656b3da6b535fa8de22997b0cf6001600160a01b03166106e861100e565b6001600160a01b03161461070e5760405162461bcd60e51b81526004016105a090612081565b6107178161103c565b604080516000808252602082019092526107339183919061106b565b50565b306001600160a01b037f0000000000000000000000007223bad75e9938656b3da6b535fa8de22997b0cf16141561077f5760405162461bcd60e51b81526004016105a090612035565b7f0000000000000000000000007223bad75e9938656b3da6b535fa8de22997b0cf6001600160a01b03166107b161100e565b6001600160a01b0316146107d75760405162461bcd60e51b81526004016105a090612081565b6107e08261103c565b6107ec8282600161106b565b5050565b336107f9610920565b6001600160a01b03161461081f5760405162461bcd60e51b81526004016105a090612000565b610828816105f2565b61073381610c09565b3361083a610920565b6001600160a01b0316146108605760405162461bcd60e51b81526004016105a090612000565b6001600160a01b038116600081815260cc6020526040808220805460ff19166001179055517fdfe83f699699403a4b116b6f9504680228c3f319bbf5ab26b48a81d3005d98b29190a250565b336108b5610920565b6001600160a01b0316146108db5760405162461bcd60e51b81526004016105a090612000565b6107ec82826111af565b336108ee610920565b6001600160a01b0316146109145760405162461bcd60e51b81526004016105a090612000565b61091e60006113fa565b565b6097546001600160a01b031690565b60ca54600160a01b900460ff16158061096b5750600133600090815260cc602052604090205460ff16600281111561096957610969611d65565b145b6109ab5760405162461bcd60e51b8152602060048201526011602482015270195c9c9bdc97db9bdd105c1c1c9bdd9959607a1b60448201526064016105a0565b61073333826111af565b6109bd6119a3565b6001600160a01b03808316600090815260cb6020908152604091829020825160608101909352805490931682526001830180548492840191906109ff90611fc5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2b90611fc5565b8015610a785780601f10610a4d57610100808354040283529160200191610a78565b820191906000526020600020905b815481529060010190602001808311610a5b57829003601f168201915b50505050508152602001600282015481525050915050919050565b610a9b6119a3565b60c9546001600160401b03168210610aee5760405162461bcd60e51b81526020600482015260166024820152756572726f725f696e6465784f75744f66426f756e647360501b60448201526064016105a0565b60ca546001600160a01b0316600081815260cb6020526040902060015b848111610b45576003909101546001600160a01b0316600081815260cb602052604090209092509080610b3d816120e3565b915050610b0b565b50604080516060810190915281546001600160a01b0316815260018201805483916020840191610b7490611fc5565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba090611fc5565b8015610bed5780601f10610bc257610100808354040283529160200191610bed565b820191906000526020600020905b815481529060010190602001808311610bd057829003601f168201915b5050505050815260200160028201548152505092505050919050565b33610c12610920565b6001600160a01b031614610c385760405162461bcd60e51b81526004016105a090612000565b6107338161144c565b60c9546060906000906001600160401b0390811690811115610c6557610c65611bc8565b604051908082528060200260200182016040528015610c9e57816020015b610c8b6119a3565b815260200190600190039081610c835790505b5060ca549091506001600160a01b031660005b60c9546001600160401b0316811015610dd0576001600160a01b03808316600090815260cb602090815260409182902082516060810190935280549093168252600183018054849284019190610d0690611fc5565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3290611fc5565b8015610d7f5780601f10610d5457610100808354040283529160200191610d7f565b820191906000526020600020905b815481529060010190602001808311610d6257829003601f168201915b50505050508152602001600282015481525050848381518110610da457610da46120fe565b6020908102919091010152600301546001600160a01b0316915080610dc8816120e3565b915050610cb1565b509092915050565b61091e3361144c565b600054610100900460ff16610dfc5760005460ff1615610e00565b303b155b610e635760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016105a0565b600054610100900460ff16158015610e85576000805461ffff19166101011790555b610e8d6116ce565b610e95611705565b60ca805460ff60a01b1916600160a01b861515021790558151835114610ef45760405162461bcd60e51b81526020600482015260146024820152736572726f725f626164547261636b65724461746160601b60448201526064016105a0565b60005b8351811015610f4e57610f3c848281518110610f1557610f156120fe565b6020026020010151848381518110610f2f57610f2f6120fe565b60200260200101516108ac565b80610f46816120e3565b915050610ef7565b50610f5885610f71565b8015610f6a576000805461ff00191690555b5050505050565b33610f7a610920565b6001600160a01b031614610fa05760405162461bcd60e51b81526004016105a090612000565b6001600160a01b0381166110055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105a0565b610733816113fa565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b33611045610920565b6001600160a01b0316146107335760405162461bcd60e51b81526004016105a090612000565b600061107561100e565b90506110808461173c565b60008351118061108d5750815b1561109e5761109c84846117e1565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff16610f6a57805460ff191660011781556040516001600160a01b038316602482015261111d90869060440160408051601f198184030181529190526020810180516001600160e01b0316631b2ce7f360e11b1790526117e1565b50805460ff1916815561112e61100e565b6001600160a01b0316826001600160a01b0316146111a65760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201526e75727468657220757067726164657360881b60648201526084016105a0565b610f6a856118cc565b6001600160a01b038216600090815260cb60205260408120600281015490919061138957506040805160c0810182526001600160a01b0385811660608301818152608084018790524260a085015283526000602080850182905260c954600160401b900484168587015291815260cb8252939093208251805182546001600160a01b0319169316929092178155818401518051600195929392849261125c928885019291909101906119cd565b506040918201516002919091015560208301516003830180546001600160a01b03199081166001600160a01b0393841617909155939091015160049092018054909316911617905560c980546001600160401b03169060006112bd83612114565b82546001600160401b039182166101009390930a92830291909202199091161790555060c954600160401b90046001600160a01b0316156113345760c954600160401b90046001600160a01b03908116600090815260cb6020526040902060030180546001600160a01b0319169186169190911790555b60ca546001600160a01b03166113605760ca80546001600160a01b0319166001600160a01b0386161790555b60c98054600160401b600160e01b031916600160401b6001600160a01b038716021790556113a6565b825161139e90600184019060208601906119cd565b504260028301555b600282015460405182916001600160a01b038716917f7b8ea65757bf0d882563917834f76c4df069ea7e489c9fc65bf764289792e334916113ec9160018801919061213b565b60405180910390a350505050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038116600090815260cb6020526040902060028101546114a65760405162461bcd60e51b815260206004820152600e60248201526d195c9c9bdc97db9bdd119bdd5b9960921b60448201526064016105a0565b60048101546001600160a01b0316156114f35760048101546001600160a01b03908116600090815260cb60205260409020600380840154910180546001600160a01b031916919092161790555b60038101546001600160a01b0316156115405760038101546001600160a01b03908116600090815260cb60205260409020600480840154910180546001600160a01b031916919092161790555b60c980546001600160401b0316906000611559836121eb565b91906101000a8154816001600160401b0302191690836001600160401b031602179055505060c960089054906101000a90046001600160a01b03166001600160a01b0316826001600160a01b031614156115ec5760c980546001600160a01b03600160401b8083048216600090815260cb602052604090206004015490911602600160401b600160e01b03199091161790555b60ca546001600160a01b03838116911614156116345760ca80546001600160a01b03808216600090815260cb6020526040902060030154166001600160a01b03199091161790555b6001600160a01b038216600090815260cb6020526040812080546001600160a01b031916815590818161166a6001830182611a51565b5060006002919091018190556003830180546001600160a01b031990811690915560049093018054909316909255506040516001600160a01b038416917fcfc24166db4bb677e857cacabd1541fb2b30645021b27c5130419589b84db52b91a25050565b600054610100900460ff166116f55760405162461bcd60e51b81526004016105a09061220e565b6116fd61190c565b61091e611933565b600054610100900460ff1661172c5760405162461bcd60e51b81526004016105a09061220e565b61173461190c565b61091e61190c565b803b6117a05760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016105a0565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060823b6118405760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016105a0565b600080846001600160a01b03168460405161185b9190612259565b600060405180830381855af49150503d8060008114611896576040519150601f19603f3d011682016040523d82523d6000602084013e61189b565b606091505b50915091506118c3828260405180606001604052806027815260200161228960279139611963565b95945050505050565b6118d58161173c565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b600054610100900460ff1661091e5760405162461bcd60e51b81526004016105a09061220e565b600054610100900460ff1661195a5760405162461bcd60e51b81526004016105a09061220e565b61091e336113fa565b6060831561197257508161199c565b8251156119825782518084602001fd5b8160405162461bcd60e51b81526004016105a09190612275565b9392505050565b604051806060016040528060006001600160a01b0316815260200160608152602001600081525090565b8280546119d990611fc5565b90600052602060002090601f0160209004810192826119fb5760008555611a41565b82601f10611a1457805160ff1916838001178555611a41565b82800160010185558215611a41579182015b82811115611a41578251825591602001919060010190611a26565b50611a4d929150611a87565b5090565b508054611a5d90611fc5565b6000825580601f10611a6d575050565b601f01602090049060005260206000209081019061073391905b5b80821115611a4d5760008155600101611a88565b80356001600160a01b0381168114611ab357600080fd5b919050565b600060208284031215611aca57600080fd5b61199c82611a9c565b60005b83811015611aee578181015183820152602001611ad6565b83811115611afd576000848401525b50505050565b60008151808452611b1b816020860160208601611ad3565b601f01601f19169290920160200192915050565b60018060a01b0381511682526000602082015160606020850152611b566060850182611b03565b604093840151949093019390935250919050565b606081526000611b7d6060830186611b2f565b6001600160a01b0394851660208401529290931660409091015292915050565b80358015158114611ab357600080fd5b600060208284031215611bbf57600080fd5b61199c82611b9d565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611c0657611c06611bc8565b604052919050565b60006001600160401b03831115611c2757611c27611bc8565b611c3a601f8401601f1916602001611bde565b9050828152838383011115611c4e57600080fd5b828260208301376000602084830101529392505050565b60008060408385031215611c7857600080fd5b611c8183611a9c565b915060208301356001600160401b03811115611c9c57600080fd5b8301601f81018513611cad57600080fd5b611cbc85823560208401611c0e565b9150509250929050565b600082601f830112611cd757600080fd5b61199c83833560208501611c0e565b60008060408385031215611cf957600080fd5b611d0283611a9c565b915060208301356001600160401b03811115611d1d57600080fd5b611cbc85828601611cc6565b600060208284031215611d3b57600080fd5b81356001600160401b03811115611d5157600080fd5b611d5d84828501611cc6565b949350505050565b634e487b7160e01b600052602160045260246000fd5b6020810160038310611d9d57634e487b7160e01b600052602160045260246000fd5b91905290565b60208152600061199c6020830184611b2f565b600060208284031215611dc857600080fd5b5035919050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015611e2457603f19888603018452611e12858351611b2f565b94509285019290850190600101611df6565b5092979650505050505050565b60006001600160401b03821115611e4a57611e4a611bc8565b5060051b60200190565b600082601f830112611e6557600080fd5b81356020611e7a611e7583611e31565b611bde565b82815260059290921b84018101918181019086841115611e9957600080fd5b8286015b84811015611ed85780356001600160401b03811115611ebc5760008081fd5b611eca8986838b0101611cc6565b845250918301918301611e9d565b509695505050505050565b60008060008060808587031215611ef957600080fd5b611f0285611a9c565b93506020611f11818701611b9d565b935060408601356001600160401b0380821115611f2d57600080fd5b818801915088601f830112611f4157600080fd5b8135611f4f611e7582611e31565b81815260059190911b8301840190848101908b831115611f6e57600080fd5b938501935b82851015611f9357611f8485611a9c565b82529385019390850190611f73565b965050506060880135925080831115611fab57600080fd5b5050611fb987828801611e54565b91505092959194509250565b600181811c90821680611fd957607f821691505b60208210811415611ffa57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60006000198214156120f7576120f76120cd565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60006001600160401b0380831681811415612131576121316120cd565b6001019392505050565b60408152600080845481600182811c91508083168061215b57607f831692505b602080841082141561217b57634e487b7160e01b86526022600452602486fd5b604088018490526060880182801561219a57600181146121ab576121d6565b60ff198716825282820197506121d6565b60008c81526020902060005b878110156121d0578154848201529086019084016121b7565b83019850505b50509690960196909652509095945050505050565b60006001600160401b03821680612204576122046120cd565b6000190192915050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000825161226b818460208701611ad3565b9190910192915050565b60208152600061199c6020830184611b0356fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122043880ab2a1adbbff24c0c22608452841859cbe593be663c6c688db04fcd563e464736f6c63430008090033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.