Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 13 from a total of 13 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Renounce Role | 811 | 58 days ago | IN | 0 ETH | 0.0085628 | ||||
Grant Role | 810 | 58 days ago | IN | 0 ETH | 0.02203938 | ||||
Renounce Role | 782 | 58 days ago | IN | 0 ETH | 0.00705307 | ||||
Set | 781 | 58 days ago | IN | 0 ETH | 0.00900448 | ||||
Set | 780 | 58 days ago | IN | 0 ETH | 0.00996569 | ||||
Set | 779 | 58 days ago | IN | 0 ETH | 0.01148299 | ||||
Set | 778 | 58 days ago | IN | 0 ETH | 0.01032409 | ||||
Set | 777 | 58 days ago | IN | 0 ETH | 0.00929408 | ||||
Set | 776 | 58 days ago | IN | 0 ETH | 0.00837653 | ||||
Set | 774 | 58 days ago | IN | 0 ETH | 0.01085648 | ||||
Set | 773 | 58 days ago | IN | 0 ETH | 0.00978484 | ||||
Set | 772 | 58 days ago | IN | 0 ETH | 0.01103011 | ||||
Grant Role | 771 | 58 days ago | IN | 0 ETH | 0.02297187 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
Grant Role | 1041 | 58 days ago | 0 ETH |
Loading...
Loading
Contract Name:
OracleDaemonConfig
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
istanbul EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-FileCopyrightText: 2023 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 /* See contracts/COMPILERS.md */ pragma solidity 0.8.9; import {AccessControlEnumerable} from "./utils/access/AccessControlEnumerable.sol"; contract OracleDaemonConfig is AccessControlEnumerable { bytes32 public constant CONFIG_MANAGER_ROLE = keccak256("CONFIG_MANAGER_ROLE"); mapping(string => bytes) private values; constructor(address _admin, address[] memory _configManagers) { if (_admin == address(0)) revert ZeroAddress(); _grantRole(DEFAULT_ADMIN_ROLE, _admin); for (uint256 i = 0; i < _configManagers.length; ) { if (_configManagers[i] == address(0)) revert ZeroAddress(); _grantRole(CONFIG_MANAGER_ROLE, _configManagers[i]); unchecked { ++i; } } } function set(string calldata _key, bytes calldata _value) external onlyRole(CONFIG_MANAGER_ROLE) { if (values[_key].length > 0) revert ValueExists(_key); if (_value.length == 0) revert EmptyValue(_key); values[_key] = _value; emit ConfigValueSet(_key, _value); } function update(string calldata _key, bytes calldata _value) external onlyRole(CONFIG_MANAGER_ROLE) { if (values[_key].length == 0) revert ValueDoesntExist(_key); if (_value.length == 0) revert EmptyValue(_key); if (keccak256(values[_key]) == keccak256(_value)) revert ValueIsSame(_key, _value); values[_key] = _value; emit ConfigValueUpdated(_key, _value); } function unset(string calldata _key) external onlyRole(CONFIG_MANAGER_ROLE) { if (values[_key].length == 0) revert ValueDoesntExist(_key); delete values[_key]; emit ConfigValueUnset(_key); } function get(string calldata _key) external view returns (bytes memory) { if (values[_key].length == 0) revert ValueDoesntExist(_key); return values[_key]; } function getList(string[] calldata _keys) external view returns (bytes[] memory) { bytes[] memory results = new bytes[](_keys.length); for (uint256 i = 0; i < _keys.length; ) { if (values[_keys[i]].length == 0) revert ValueDoesntExist(_keys[i]); results[i] = values[_keys[i]]; unchecked { ++i; } } return results; } error ValueExists(string key); error EmptyValue(string key); error ValueDoesntExist(string key); error ZeroAddress(); error ValueIsSame(string key, bytes value); event ConfigValueSet(string key, bytes value); event ConfigValueUpdated(string key, bytes value); event ConfigValueUnset(string key); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol) // // A modified AccessControl contract using unstructured storage. Copied from tree: // https://github.com/OpenZeppelin/openzeppelin-contracts/tree/6bd6b76/contracts/access // /* See contracts/COMPILERS.md */ pragma solidity 0.8.9; import "@openzeppelin/contracts-v4.4/access/IAccessControl.sol"; import "@openzeppelin/contracts-v4.4/utils/Context.sol"; import "@openzeppelin/contracts-v4.4/utils/Strings.sol"; import "@openzeppelin/contracts-v4.4/utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } /// @dev Storage slot: mapping(bytes32 => RoleData) _roles bytes32 private constant ROLES_POSITION = keccak256("openzeppelin.AccessControl._roles"); function _storageRoles() private pure returns (mapping(bytes32 => RoleData) storage _roles) { bytes32 position = ROLES_POSITION; assembly { _roles.slot := position } } bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _storageRoles()[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _storageRoles()[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _storageRoles()[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _storageRoles()[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _storageRoles()[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/AccessControlEnumerable.sol) // // A modified AccessControlEnumerable contract using unstructured storage. Copied from tree: // https://github.com/OpenZeppelin/openzeppelin-contracts/tree/6bd6b76/contracts/access // /* See contracts/COMPILERS.md */ pragma solidity 0.8.9; import "@openzeppelin/contracts-v4.4/access/IAccessControlEnumerable.sol"; import "@openzeppelin/contracts-v4.4/utils/structs/EnumerableSet.sol"; import "./AccessControl.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; /// @dev Storage slot: mapping(bytes32 => EnumerableSet.AddressSet) _roleMembers bytes32 private constant ROLE_MEMBERS_POSITION = keccak256("openzeppelin.AccessControlEnumerable._roleMembers"); function _storageRoleMembers() private pure returns ( mapping(bytes32 => EnumerableSet.AddressSet) storage _roleMembers ) { bytes32 position = ROLE_MEMBERS_POSITION; assembly { _roleMembers.slot := position } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _storageRoleMembers()[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _storageRoleMembers()[role].length(); } /** * @dev Overload {_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override { super._grantRole(role, account); _storageRoleMembers()[role].add(account); } /** * @dev Overload {_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _storageRoleMembers()[role].remove(account); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address[]","name":"_configManagers","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"string","name":"key","type":"string"}],"name":"EmptyValue","type":"error"},{"inputs":[{"internalType":"string","name":"key","type":"string"}],"name":"ValueDoesntExist","type":"error"},{"inputs":[{"internalType":"string","name":"key","type":"string"}],"name":"ValueExists","type":"error"},{"inputs":[{"internalType":"string","name":"key","type":"string"},{"internalType":"bytes","name":"value","type":"bytes"}],"name":"ValueIsSame","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"key","type":"string"},{"indexed":false,"internalType":"bytes","name":"value","type":"bytes"}],"name":"ConfigValueSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"key","type":"string"}],"name":"ConfigValueUnset","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"key","type":"string"},{"indexed":false,"internalType":"bytes","name":"value","type":"bytes"}],"name":"ConfigValueUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"CONFIG_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_key","type":"string"}],"name":"get","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"_keys","type":"string[]"}],"name":"getList","outputs":[{"internalType":"bytes[]","name":"","type":"bytes[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_key","type":"string"},{"internalType":"bytes","name":"_value","type":"bytes"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_key","type":"string"}],"name":"unset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_key","type":"string"},{"internalType":"bytes","name":"_value","type":"bytes"}],"name":"update","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001a6838038062001a688339810160408190526200003491620002d0565b6001600160a01b0382166200005c5760405163d92e233d60e01b815260040160405180910390fd5b6200006960008362000127565b60005b81518110156200011e5760006001600160a01b0316828281518110620000965762000096620003b9565b60200260200101516001600160a01b03161415620000c75760405163d92e233d60e01b815260040160405180910390fd5b620001157fbbfb55d933c2bfa638763473275b1d84c4418e58d26cf9d2cd5758237756d9f0838381518110620001015762000101620003b9565b60200260200101516200012760201b60201c565b6001016200006c565b505050620003cf565b6200013e82826200018860201b62000a1f1760201c565b62000183817f8f8c450dae5029cd48cd91dd9db65da48fb742893edfc7941250f6721d93cbbe6000858152602091825260409020919062000a956200022b821b17901c565b505050565b600082815260008051602062001a48833981519152602090815260408083206001600160a01b038516845290915290205460ff166200022757600082815260008051602062001a48833981519152602090815260408083206001600160a01b0385168085529252808320805460ff1916600117905551339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45b5050565b600062000242836001600160a01b0384166200024b565b90505b92915050565b6000818152600183016020526040812054620002945750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000245565b50600062000245565b80516001600160a01b0381168114620002b557600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215620002e457600080fd5b620002ef836200029d565b602084810151919350906001600160401b03808211156200030f57600080fd5b818601915086601f8301126200032457600080fd5b815181811115620003395762000339620002ba565b8060051b604051601f19603f83011681018181108582111715620003615762000361620002ba565b6040529182528482019250838101850191898311156200038057600080fd5b938501935b82851015620003a95762000399856200029d565b8452938501939285019262000385565b8096505050505050509250929050565b634e487b7160e01b600052603260045260246000fd5b61166980620003df6000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80639010d07c11610097578063a217fddf11610066578063a217fddf14610224578063bb6e19721461022c578063ca15c8731461023f578063d547741f1461025257600080fd5b80639010d07c146101b157806391d14854146101dc578063a0c7f799146101ef578063a1e6f45d1461020457600080fd5b80632b29c0fa116100d35780632b29c0fa146101585780632f2ff15d1461016b57806336568abe1461017e578063693ec85e1461019157600080fd5b8063017bf9b4146100fa57806301ffc9a71461010f578063248a9ca314610137575b600080fd5b61010d610108366004611067565b610265565b005b61012261011d3660046110a9565b610341565b60405190151581526020015b60405180910390f35b61014a6101453660046110d3565b61036c565b60405190815260200161012e565b61010d6101663660046110ec565b61038e565b61010d610179366004611158565b61048d565b61010d61018c366004611158565b6104af565b6101a461019f366004611067565b61052d565b60405161012e91906111f0565b6101c46101bf366004611203565b610630565b6040516001600160a01b03909116815260200161012e565b6101226101ea366004611158565b61065c565b61014a6000805160206115d483398151915281565b610217610212366004611225565b610694565b60405161012e919061129a565b61014a600081565b61010d61023a3660046110ec565b61087e565b61014a61024d3660046110d3565b6109de565b61010d610260366004611158565b610a02565b6000805160206115d483398151915261027e8133610aaa565b600083836040516102909291906112fc565b908152602001604051809103902080546102a99061130c565b151590506102d757828260405163d102798d60e01b81526004016102ce929190611370565b60405180910390fd5b600083836040516102e99291906112fc565b908152602001604051809103902060006103039190610f48565b7f51058c913b42448a4a91c14d785efbd1d43cb2d051309714149b46602683b6878383604051610334929190611370565b60405180910390a1505050565b60006001600160e01b03198216635a05180f60e01b1480610366575061036682610b0e565b92915050565b6000908152600080516020611614833981519152602052604090206001015490565b6000805160206115d48339815191526103a78133610aaa565b60008086866040516103ba9291906112fc565b908152602001604051809103902080546103d39061130c565b905011156103f8578484604051630166a77d60e61b81526004016102ce929190611370565b8161041a578484604051632b8f831760e01b81526004016102ce929190611370565b82826000878760405161042e9291906112fc565b908152604051908190036020019020610448929091610f85565b507ff61a2f474b0f2f33c031ab3fef3d2a286ed33bdf5d3a0774416be647b0b3c3318585858560405161047e949392919061138c565b60405180910390a15050505050565b6104968261036c565b6104a08133610aaa565b6104aa8383610b43565b505050565b6001600160a01b038116331461051f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016102ce565b6105298282610b72565b5050565b6060600083836040516105419291906112fc565b9081526020016040518091039020805461055a9061130c565b1515905061057f57828260405163d102798d60e01b81526004016102ce929190611370565b600083836040516105919291906112fc565b908152602001604051809103902080546105aa9061130c565b80601f01602080910402602001604051908101604052809291908181526020018280546105d69061130c565b80156106235780601f106105f857610100808354040283529160200191610623565b820191906000526020600020905b81548152906001019060200180831161060657829003601f168201915b5050505050905092915050565b60008281526000805160206115f4833981519152602052604081206106559083610ba1565b9392505050565b6000918252600080516020611614833981519152602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060008267ffffffffffffffff8111156106b1576106b16113be565b6040519080825280602002602001820160405280156106e457816020015b60608152602001906001900390816106cf5790505b50905060005b83811015610876576000858583818110610706576107066113d4565b905060200281019061071891906113ea565b6040516107269291906112fc565b9081526020016040518091039020805461073f9061130c565b1515905061078657848482818110610759576107596113d4565b905060200281019061076b91906113ea565b60405163d102798d60e01b81526004016102ce929190611370565b600085858381811061079a5761079a6113d4565b90506020028101906107ac91906113ea565b6040516107ba9291906112fc565b908152602001604051809103902080546107d39061130c565b80601f01602080910402602001604051908101604052809291908181526020018280546107ff9061130c565b801561084c5780601f106108215761010080835404028352916020019161084c565b820191906000526020600020905b81548152906001019060200180831161082f57829003601f168201915b5050505050828281518110610863576108636113d4565b60209081029190910101526001016106ea565b509392505050565b6000805160206115d48339815191526108978133610aaa565b600085856040516108a99291906112fc565b908152602001604051809103902080546108c29061130c565b151590506108e757848460405163d102798d60e01b81526004016102ce929190611370565b81610909578484604051632b8f831760e01b81526004016102ce929190611370565b82826040516109199291906112fc565b6040518091039020600086866040516109339291906112fc565b90815260405190819003602001812061094b91611431565b6040518091039020141561097a57848484846040516331e0c31f60e11b81526004016102ce949392919061138c565b82826000878760405161098e9291906112fc565b9081526040519081900360200190206109a8929091610f85565b507fb095ed057610c63dba9ab6e5947cac0517b71f68ba2343310bfa26a3d11ad3e68585858560405161047e949392919061138c565b60008181526000805160206115f48339815191526020526040812061036690610bad565b610a0b8261036c565b610a158133610aaa565b6104aa8383610b72565b610a29828261065c565b610529576000828152600080516020611614833981519152602090815260408083206001600160a01b0385168085529252808320805460ff1916600117905551339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b6000610655836001600160a01b038416610bb7565b610ab4828261065c565b61052957610acc816001600160a01b03166014610c06565b610ad7836020610c06565b604051602001610ae89291906114cd565b60408051601f198184030181529082905262461bcd60e51b82526102ce916004016111f0565b60006001600160e01b03198216637965db0b60e01b148061036657506301ffc9a760e01b6001600160e01b0319831614610366565b610b4d8282610a1f565b60008281526000805160206115f4833981519152602052604090206104aa9082610a95565b610b7c8282610da2565b60008281526000805160206115f4833981519152602052604090206104aa9082610e16565b60006106558383610e2b565b6000610366825490565b6000818152600183016020526040812054610bfe57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610366565b506000610366565b60606000610c15836002611558565b610c20906002611577565b67ffffffffffffffff811115610c3857610c386113be565b6040519080825280601f01601f191660200182016040528015610c62576020820181803683370190505b509050600360fc1b81600081518110610c7d57610c7d6113d4565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610cac57610cac6113d4565b60200101906001600160f81b031916908160001a9053506000610cd0846002611558565b610cdb906001611577565b90505b6001811115610d53576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610d0f57610d0f6113d4565b1a60f81b828281518110610d2557610d256113d4565b60200101906001600160f81b031916908160001a90535060049490941c93610d4c8161158f565b9050610cde565b5083156106555760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016102ce565b610dac828261065c565b15610529576000828152600080516020611614833981519152602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610655836001600160a01b038416610e55565b6000826000018281548110610e4257610e426113d4565b9060005260206000200154905092915050565b60008181526001830160205260408120548015610f3e576000610e796001836115a6565b8554909150600090610e8d906001906115a6565b9050818114610ef2576000866000018281548110610ead57610ead6113d4565b9060005260206000200154905080876000018481548110610ed057610ed06113d4565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080610f0357610f036115bd565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610366565b6000915050610366565b508054610f549061130c565b6000825580601f10610f64575050565b601f016020900490600052602060002090810190610f829190611009565b50565b828054610f919061130c565b90600052602060002090601f016020900481019282610fb35760008555610ff9565b82601f10610fcc5782800160ff19823516178555610ff9565b82800160010185558215610ff9579182015b82811115610ff9578235825591602001919060010190610fde565b50611005929150611009565b5090565b5b80821115611005576000815560010161100a565b60008083601f84011261103057600080fd5b50813567ffffffffffffffff81111561104857600080fd5b60208301915083602082850101111561106057600080fd5b9250929050565b6000806020838503121561107a57600080fd5b823567ffffffffffffffff81111561109157600080fd5b61109d8582860161101e565b90969095509350505050565b6000602082840312156110bb57600080fd5b81356001600160e01b03198116811461065557600080fd5b6000602082840312156110e557600080fd5b5035919050565b6000806000806040858703121561110257600080fd5b843567ffffffffffffffff8082111561111a57600080fd5b6111268883890161101e565b9096509450602087013591508082111561113f57600080fd5b5061114c8782880161101e565b95989497509550505050565b6000806040838503121561116b57600080fd5b8235915060208301356001600160a01b038116811461118957600080fd5b809150509250929050565b60005b838110156111af578181015183820152602001611197565b838111156111be576000848401525b50505050565b600081518084526111dc816020860160208601611194565b601f01601f19169290920160200192915050565b60208152600061065560208301846111c4565b6000806040838503121561121657600080fd5b50508035926020909101359150565b6000806020838503121561123857600080fd5b823567ffffffffffffffff8082111561125057600080fd5b818501915085601f83011261126457600080fd5b81358181111561127357600080fd5b8660208260051b850101111561128857600080fd5b60209290920196919550909350505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156112ef57603f198886030184526112dd8583516111c4565b945092850192908501906001016112c1565b5092979650505050505050565b8183823760009101908152919050565b600181811c9082168061132057607f821691505b6020821081141561134157634e487b7160e01b600052602260045260246000fd5b50919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b602081526000611384602083018486611347565b949350505050565b6040815260006113a0604083018688611347565b82810360208401526113b3818587611347565b979650505050505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261140157600080fd5b83018035915067ffffffffffffffff82111561141c57600080fd5b60200191503681900382131561106057600080fd5b600080835481600182811c91508083168061144d57607f831692505b602080841082141561146d57634e487b7160e01b86526022600452602486fd5b8180156114815760018114611492576114bf565b60ff198616895284890196506114bf565b60008a81526020902060005b868110156114b75781548b82015290850190830161149e565b505084890196505b509498975050505050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611505816017850160208801611194565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611536816028840160208801611194565b01602801949350505050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561157257611572611542565b500290565b6000821982111561158a5761158a611542565b500190565b60008161159e5761159e611542565b506000190190565b6000828210156115b8576115b8611542565b500390565b634e487b7160e01b600052603160045260246000fdfebbfb55d933c2bfa638763473275b1d84c4418e58d26cf9d2cd5758237756d9f08f8c450dae5029cd48cd91dd9db65da48fb742893edfc7941250f6721d93cbbe9a627a5d4aa7c17f87ff26e3fe9a42c2b6c559e8b41a42282d0ecebb17c0e4d3a2646970667358221220045c6b941e29658218b58e2e5094923fd4de360aa759403d47d02b174863657364736f6c634300080900339a627a5d4aa7c17f87ff26e3fe9a42c2b6c559e8b41a42282d0ecebb17c0e4d300000000000000000000000083bce68b4e8b7071b2a664a26e6d3bc17eee310200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80639010d07c11610097578063a217fddf11610066578063a217fddf14610224578063bb6e19721461022c578063ca15c8731461023f578063d547741f1461025257600080fd5b80639010d07c146101b157806391d14854146101dc578063a0c7f799146101ef578063a1e6f45d1461020457600080fd5b80632b29c0fa116100d35780632b29c0fa146101585780632f2ff15d1461016b57806336568abe1461017e578063693ec85e1461019157600080fd5b8063017bf9b4146100fa57806301ffc9a71461010f578063248a9ca314610137575b600080fd5b61010d610108366004611067565b610265565b005b61012261011d3660046110a9565b610341565b60405190151581526020015b60405180910390f35b61014a6101453660046110d3565b61036c565b60405190815260200161012e565b61010d6101663660046110ec565b61038e565b61010d610179366004611158565b61048d565b61010d61018c366004611158565b6104af565b6101a461019f366004611067565b61052d565b60405161012e91906111f0565b6101c46101bf366004611203565b610630565b6040516001600160a01b03909116815260200161012e565b6101226101ea366004611158565b61065c565b61014a6000805160206115d483398151915281565b610217610212366004611225565b610694565b60405161012e919061129a565b61014a600081565b61010d61023a3660046110ec565b61087e565b61014a61024d3660046110d3565b6109de565b61010d610260366004611158565b610a02565b6000805160206115d483398151915261027e8133610aaa565b600083836040516102909291906112fc565b908152602001604051809103902080546102a99061130c565b151590506102d757828260405163d102798d60e01b81526004016102ce929190611370565b60405180910390fd5b600083836040516102e99291906112fc565b908152602001604051809103902060006103039190610f48565b7f51058c913b42448a4a91c14d785efbd1d43cb2d051309714149b46602683b6878383604051610334929190611370565b60405180910390a1505050565b60006001600160e01b03198216635a05180f60e01b1480610366575061036682610b0e565b92915050565b6000908152600080516020611614833981519152602052604090206001015490565b6000805160206115d48339815191526103a78133610aaa565b60008086866040516103ba9291906112fc565b908152602001604051809103902080546103d39061130c565b905011156103f8578484604051630166a77d60e61b81526004016102ce929190611370565b8161041a578484604051632b8f831760e01b81526004016102ce929190611370565b82826000878760405161042e9291906112fc565b908152604051908190036020019020610448929091610f85565b507ff61a2f474b0f2f33c031ab3fef3d2a286ed33bdf5d3a0774416be647b0b3c3318585858560405161047e949392919061138c565b60405180910390a15050505050565b6104968261036c565b6104a08133610aaa565b6104aa8383610b43565b505050565b6001600160a01b038116331461051f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016102ce565b6105298282610b72565b5050565b6060600083836040516105419291906112fc565b9081526020016040518091039020805461055a9061130c565b1515905061057f57828260405163d102798d60e01b81526004016102ce929190611370565b600083836040516105919291906112fc565b908152602001604051809103902080546105aa9061130c565b80601f01602080910402602001604051908101604052809291908181526020018280546105d69061130c565b80156106235780601f106105f857610100808354040283529160200191610623565b820191906000526020600020905b81548152906001019060200180831161060657829003601f168201915b5050505050905092915050565b60008281526000805160206115f4833981519152602052604081206106559083610ba1565b9392505050565b6000918252600080516020611614833981519152602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060008267ffffffffffffffff8111156106b1576106b16113be565b6040519080825280602002602001820160405280156106e457816020015b60608152602001906001900390816106cf5790505b50905060005b83811015610876576000858583818110610706576107066113d4565b905060200281019061071891906113ea565b6040516107269291906112fc565b9081526020016040518091039020805461073f9061130c565b1515905061078657848482818110610759576107596113d4565b905060200281019061076b91906113ea565b60405163d102798d60e01b81526004016102ce929190611370565b600085858381811061079a5761079a6113d4565b90506020028101906107ac91906113ea565b6040516107ba9291906112fc565b908152602001604051809103902080546107d39061130c565b80601f01602080910402602001604051908101604052809291908181526020018280546107ff9061130c565b801561084c5780601f106108215761010080835404028352916020019161084c565b820191906000526020600020905b81548152906001019060200180831161082f57829003601f168201915b5050505050828281518110610863576108636113d4565b60209081029190910101526001016106ea565b509392505050565b6000805160206115d48339815191526108978133610aaa565b600085856040516108a99291906112fc565b908152602001604051809103902080546108c29061130c565b151590506108e757848460405163d102798d60e01b81526004016102ce929190611370565b81610909578484604051632b8f831760e01b81526004016102ce929190611370565b82826040516109199291906112fc565b6040518091039020600086866040516109339291906112fc565b90815260405190819003602001812061094b91611431565b6040518091039020141561097a57848484846040516331e0c31f60e11b81526004016102ce949392919061138c565b82826000878760405161098e9291906112fc565b9081526040519081900360200190206109a8929091610f85565b507fb095ed057610c63dba9ab6e5947cac0517b71f68ba2343310bfa26a3d11ad3e68585858560405161047e949392919061138c565b60008181526000805160206115f48339815191526020526040812061036690610bad565b610a0b8261036c565b610a158133610aaa565b6104aa8383610b72565b610a29828261065c565b610529576000828152600080516020611614833981519152602090815260408083206001600160a01b0385168085529252808320805460ff1916600117905551339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b6000610655836001600160a01b038416610bb7565b610ab4828261065c565b61052957610acc816001600160a01b03166014610c06565b610ad7836020610c06565b604051602001610ae89291906114cd565b60408051601f198184030181529082905262461bcd60e51b82526102ce916004016111f0565b60006001600160e01b03198216637965db0b60e01b148061036657506301ffc9a760e01b6001600160e01b0319831614610366565b610b4d8282610a1f565b60008281526000805160206115f4833981519152602052604090206104aa9082610a95565b610b7c8282610da2565b60008281526000805160206115f4833981519152602052604090206104aa9082610e16565b60006106558383610e2b565b6000610366825490565b6000818152600183016020526040812054610bfe57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610366565b506000610366565b60606000610c15836002611558565b610c20906002611577565b67ffffffffffffffff811115610c3857610c386113be565b6040519080825280601f01601f191660200182016040528015610c62576020820181803683370190505b509050600360fc1b81600081518110610c7d57610c7d6113d4565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610cac57610cac6113d4565b60200101906001600160f81b031916908160001a9053506000610cd0846002611558565b610cdb906001611577565b90505b6001811115610d53576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610d0f57610d0f6113d4565b1a60f81b828281518110610d2557610d256113d4565b60200101906001600160f81b031916908160001a90535060049490941c93610d4c8161158f565b9050610cde565b5083156106555760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016102ce565b610dac828261065c565b15610529576000828152600080516020611614833981519152602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610655836001600160a01b038416610e55565b6000826000018281548110610e4257610e426113d4565b9060005260206000200154905092915050565b60008181526001830160205260408120548015610f3e576000610e796001836115a6565b8554909150600090610e8d906001906115a6565b9050818114610ef2576000866000018281548110610ead57610ead6113d4565b9060005260206000200154905080876000018481548110610ed057610ed06113d4565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080610f0357610f036115bd565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610366565b6000915050610366565b508054610f549061130c565b6000825580601f10610f64575050565b601f016020900490600052602060002090810190610f829190611009565b50565b828054610f919061130c565b90600052602060002090601f016020900481019282610fb35760008555610ff9565b82601f10610fcc5782800160ff19823516178555610ff9565b82800160010185558215610ff9579182015b82811115610ff9578235825591602001919060010190610fde565b50611005929150611009565b5090565b5b80821115611005576000815560010161100a565b60008083601f84011261103057600080fd5b50813567ffffffffffffffff81111561104857600080fd5b60208301915083602082850101111561106057600080fd5b9250929050565b6000806020838503121561107a57600080fd5b823567ffffffffffffffff81111561109157600080fd5b61109d8582860161101e565b90969095509350505050565b6000602082840312156110bb57600080fd5b81356001600160e01b03198116811461065557600080fd5b6000602082840312156110e557600080fd5b5035919050565b6000806000806040858703121561110257600080fd5b843567ffffffffffffffff8082111561111a57600080fd5b6111268883890161101e565b9096509450602087013591508082111561113f57600080fd5b5061114c8782880161101e565b95989497509550505050565b6000806040838503121561116b57600080fd5b8235915060208301356001600160a01b038116811461118957600080fd5b809150509250929050565b60005b838110156111af578181015183820152602001611197565b838111156111be576000848401525b50505050565b600081518084526111dc816020860160208601611194565b601f01601f19169290920160200192915050565b60208152600061065560208301846111c4565b6000806040838503121561121657600080fd5b50508035926020909101359150565b6000806020838503121561123857600080fd5b823567ffffffffffffffff8082111561125057600080fd5b818501915085601f83011261126457600080fd5b81358181111561127357600080fd5b8660208260051b850101111561128857600080fd5b60209290920196919550909350505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156112ef57603f198886030184526112dd8583516111c4565b945092850192908501906001016112c1565b5092979650505050505050565b8183823760009101908152919050565b600181811c9082168061132057607f821691505b6020821081141561134157634e487b7160e01b600052602260045260246000fd5b50919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b602081526000611384602083018486611347565b949350505050565b6040815260006113a0604083018688611347565b82810360208401526113b3818587611347565b979650505050505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261140157600080fd5b83018035915067ffffffffffffffff82111561141c57600080fd5b60200191503681900382131561106057600080fd5b600080835481600182811c91508083168061144d57607f831692505b602080841082141561146d57634e487b7160e01b86526022600452602486fd5b8180156114815760018114611492576114bf565b60ff198616895284890196506114bf565b60008a81526020902060005b868110156114b75781548b82015290850190830161149e565b505084890196505b509498975050505050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611505816017850160208801611194565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611536816028840160208801611194565b01602801949350505050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561157257611572611542565b500290565b6000821982111561158a5761158a611542565b500190565b60008161159e5761159e611542565b506000190190565b6000828210156115b8576115b8611542565b500390565b634e487b7160e01b600052603160045260246000fdfebbfb55d933c2bfa638763473275b1d84c4418e58d26cf9d2cd5758237756d9f08f8c450dae5029cd48cd91dd9db65da48fb742893edfc7941250f6721d93cbbe9a627a5d4aa7c17f87ff26e3fe9a42c2b6c559e8b41a42282d0ecebb17c0e4d3a2646970667358221220045c6b941e29658218b58e2e5094923fd4de360aa759403d47d02b174863657364736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000083bce68b4e8b7071b2a664a26e6d3bc17eee310200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _admin (address): 0x83BCE68B4e8b7071b2a664a26e6D3Bc17eEe3102
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000083bce68b4e8b7071b2a664a26e6d3bc17eee3102
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.