Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 14204806 | 894 days ago | IN | 0 ETH | 0.0577733 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
AccessControlManager
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/AccessControl.sol"; contract AccessControlManager is AccessControl { string public constant REVOKE_ROLE_ERROR = "AccessControlManager: unable to revoke the given role"; bytes32 public constant CEO_ROLE = keccak256("CEO"); bytes32 public constant CFO_ROLE = keccak256("CFO"); bytes32 public constant COO_ROLE = keccak256("COO"); mapping(bytes32 => uint) private _roleCounters; constructor(address admin, address ceo, address coo, address cfo) AccessControl() { _setupRole(DEFAULT_ADMIN_ROLE, admin); _setupRole(CEO_ROLE, ceo); _setupRole(COO_ROLE, coo); _setupRole(CFO_ROLE, cfo); _roleCounters[DEFAULT_ADMIN_ROLE] = 1; _roleCounters[CEO_ROLE] = 1; _roleCounters[COO_ROLE] = 1; _roleCounters[CFO_ROLE] = 1; _setRoleAdmin(COO_ROLE, CEO_ROLE); _setRoleAdmin(CFO_ROLE, CEO_ROLE); } function grantRole(bytes32 role, address account) public virtual override { if (!hasRole(role, account)) { _roleCounters[role]++; } super.grantRole(role, account); } function revokeRole(bytes32 role, address account) public virtual override { if (hasRole(role, account)) { if (_roleCounters[role] == 1) { revert(REVOKE_ROLE_ERROR); } _roleCounters[role]--; } super.revokeRole(role, account); } function renounceRole(bytes32 role, address account) public virtual override { if (hasRole(role, account)) { if (_roleCounters[role] == 1) { revert(REVOKE_ROLE_ERROR); } _roleCounters[role]--; } super.renounceRole(role, account); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../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; } mapping(bytes32 => RoleData) private _roles; 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 _roles[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 _roles[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 granted `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}. * ==== */ 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); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT 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 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 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 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 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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"ceo","type":"address"},{"internalType":"address","name":"coo","type":"address"},{"internalType":"address","name":"cfo","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"CEO_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CFO_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COO_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":[],"name":"REVOKE_ROLE_ERROR","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200177438038062001774833981810160405281019062000037919062000465565b6200004c6000801b856200025360201b60201c565b6200007e7fdc0d7a095c4e917ecbeb7deda7c942ff9744013d419e37549215a413915e421d846200025360201b60201c565b620000b07fefa080c67ecf4a6bf40c9dc64173420c08f359250ca6562d7c80f7c7b9b13969836200025360201b60201c565b620000e27f33fa24d9aab6b79237248a16094d5f78ea83bb51e42c123ce925a264e7d816cc826200025360201b60201c565b60018060008060001b81526020019081526020016000208190555060018060007fdc0d7a095c4e917ecbeb7deda7c942ff9744013d419e37549215a413915e421d81526020019081526020016000208190555060018060007fefa080c67ecf4a6bf40c9dc64173420c08f359250ca6562d7c80f7c7b9b1396981526020019081526020016000208190555060018060007f33fa24d9aab6b79237248a16094d5f78ea83bb51e42c123ce925a264e7d816cc815260200190815260200160002081905550620001f77fefa080c67ecf4a6bf40c9dc64173420c08f359250ca6562d7c80f7c7b9b139697fdc0d7a095c4e917ecbeb7deda7c942ff9744013d419e37549215a413915e421d6200026960201b60201c565b620002497f33fa24d9aab6b79237248a16094d5f78ea83bb51e42c123ce925a264e7d816cc7fdc0d7a095c4e917ecbeb7deda7c942ff9744013d419e37549215a413915e421d6200026960201b60201c565b505050506200051f565b620002658282620002cc60201b60201c565b5050565b60006200027c83620003bd60201b60201c565b905081600080858152602001908152602001600020600101819055508181847fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff60405160405180910390a4505050565b620002de8282620003dc60201b60201c565b620003b957600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200035e6200044660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000806000838152602001908152602001600020600101549050919050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000815190506200045f8162000505565b92915050565b600080600080608085870312156200047c57600080fd5b60006200048c878288016200044e565b94505060206200049f878288016200044e565b9350506040620004b2878288016200044e565b9250506060620004c5878288016200044e565b91505092959194509250565b6000620004de82620004e5565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6200051081620004d1565b81146200051c57600080fd5b50565b611245806200052f6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c806391d148541161007157806391d14854146101645780639f6f50ed14610194578063a217fddf146101b2578063b514be63146101d0578063d547741f146101ee578063dd83286e1461020a576100a9565b806301ffc9a7146100ae578063248a9ca3146100de5780632f2ff15d1461010e57806336568abe1461012a5780633acfd44f14610146575b600080fd5b6100c860048036038101906100c39190610cb1565b610228565b6040516100d59190610ec2565b60405180910390f35b6100f860048036038101906100f39190610c4c565b6102a2565b6040516101059190610edd565b60405180910390f35b61012860048036038101906101239190610c75565b6102c1565b005b610144600480360381019061013f9190610c75565b610307565b005b61014e6103be565b60405161015b9190610edd565b60405180910390f35b61017e60048036038101906101799190610c75565b6103e2565b60405161018b9190610ec2565b60405180910390f35b61019c61044c565b6040516101a99190610edd565b60405180910390f35b6101ba610470565b6040516101c79190610edd565b60405180910390f35b6101d8610477565b6040516101e59190610edd565b60405180910390f35b61020860048036038101906102039190610c75565b61049b565b005b610212610552565b60405161021f9190610ef8565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061029b575061029a8261056e565b5b9050919050565b6000806000838152602001908152602001600020600101549050919050565b6102cb82826103e2565b6102f9576001600083815260200190815260200160002060008154809291906102f39061110c565b91905055505b61030382826105d8565b5050565b61031182826103e2565b156103b0576001806000848152602001908152602001600020541415610386576040518060600160405280603581526020016111db603591396040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037d9190610ef8565b60405180910390fd5b6001600083815260200190815260200160002060008154809291906103aa906110e2565b91905055505b6103ba8282610601565b5050565b7fefa080c67ecf4a6bf40c9dc64173420c08f359250ca6562d7c80f7c7b9b1396981565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f33fa24d9aab6b79237248a16094d5f78ea83bb51e42c123ce925a264e7d816cc81565b6000801b81565b7fdc0d7a095c4e917ecbeb7deda7c942ff9744013d419e37549215a413915e421d81565b6104a582826103e2565b1561054457600180600084815260200190815260200160002054141561051a576040518060600160405280603581526020016111db603591396040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105119190610ef8565b60405180910390fd5b60016000838152602001908152602001600020600081548092919061053e906110e2565b91905055505b61054e8282610684565b5050565b6040518060600160405280603581526020016111db6035913981565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6105e1826102a2565b6105f2816105ed6106ad565b6106b5565b6105fc8383610752565b505050565b6106096106ad565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161066d90610f3a565b60405180910390fd5b6106808282610832565b5050565b61068d826102a2565b61069e816106996106ad565b6106b5565b6106a88383610832565b505050565b600033905090565b6106bf82826103e2565b61074e576106e48173ffffffffffffffffffffffffffffffffffffffff166014610913565b6106f28360001c6020610913565b604051602001610703929190610e88565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107459190610ef8565b60405180910390fd5b5050565b61075c82826103e2565b61082e57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506107d36106ad565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61083c82826103e2565b1561090f57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506108b46106ad565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6060600060028360026109269190610fd7565b6109309190610f81565b67ffffffffffffffff81111561096f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156109a15781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106109ff577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610a89577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002610ac99190610fd7565b610ad39190610f81565b90505b6001811115610bbf577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110610b3b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110610b78577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080610bb8906110e2565b9050610ad6565b5060008414610c03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bfa90610f1a565b60405180910390fd5b8091505092915050565b600081359050610c1c81611195565b92915050565b600081359050610c31816111ac565b92915050565b600081359050610c46816111c3565b92915050565b600060208284031215610c5e57600080fd5b6000610c6c84828501610c22565b91505092915050565b60008060408385031215610c8857600080fd5b6000610c9685828601610c22565b9250506020610ca785828601610c0d565b9150509250929050565b600060208284031215610cc357600080fd5b6000610cd184828501610c37565b91505092915050565b610ce381611043565b82525050565b610cf28161104f565b82525050565b6000610d0382610f5a565b610d0d8185610f65565b9350610d1d8185602086016110af565b610d2681611184565b840191505092915050565b6000610d3c82610f5a565b610d468185610f76565b9350610d568185602086016110af565b80840191505092915050565b6000610d6f602083610f65565b91507f537472696e67733a20686578206c656e67746820696e73756666696369656e746000830152602082019050919050565b6000610daf601783610f76565b91507f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006000830152601782019050919050565b6000610def601183610f76565b91507f206973206d697373696e6720726f6c65200000000000000000000000000000006000830152601182019050919050565b6000610e2f602f83610f65565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b6000610e9382610da2565b9150610e9f8285610d31565b9150610eaa82610de2565b9150610eb68284610d31565b91508190509392505050565b6000602082019050610ed76000830184610cda565b92915050565b6000602082019050610ef26000830184610ce9565b92915050565b60006020820190508181036000830152610f128184610cf8565b905092915050565b60006020820190508181036000830152610f3381610d62565b9050919050565b60006020820190508181036000830152610f5381610e22565b9050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b6000610f8c826110a5565b9150610f97836110a5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610fcc57610fcb611155565b5b828201905092915050565b6000610fe2826110a5565b9150610fed836110a5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561102657611025611155565b5b828202905092915050565b600061103c82611085565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b838110156110cd5780820151818401526020810190506110b2565b838111156110dc576000848401525b50505050565b60006110ed826110a5565b9150600082141561110157611100611155565b5b600182039050919050565b6000611117826110a5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561114a57611149611155565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000601f19601f8301169050919050565b61119e81611031565b81146111a957600080fd5b50565b6111b58161104f565b81146111c057600080fd5b50565b6111cc81611059565b81146111d757600080fd5b5056fe416363657373436f6e74726f6c4d616e616765723a20756e61626c6520746f207265766f6b652074686520676976656e20726f6c65a2646970667358221220fb27f6999ff51f35982adfae4673e39685efd554cceffc323df9bf8e9070990a64736f6c634300080000330000000000000000000000000256b671ca0572534b75e99f1df5038ca994af33000000000000000000000000fb1381ce513e6a70cb591fd0237618d0d28aeea200000000000000000000000027a9eef65c9ce5c2e3ebcf5e469628d1c56ceb42000000000000000000000000be510cb48b086539db7e0455efb7aee60dbd4d87
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100a95760003560e01c806391d148541161007157806391d14854146101645780639f6f50ed14610194578063a217fddf146101b2578063b514be63146101d0578063d547741f146101ee578063dd83286e1461020a576100a9565b806301ffc9a7146100ae578063248a9ca3146100de5780632f2ff15d1461010e57806336568abe1461012a5780633acfd44f14610146575b600080fd5b6100c860048036038101906100c39190610cb1565b610228565b6040516100d59190610ec2565b60405180910390f35b6100f860048036038101906100f39190610c4c565b6102a2565b6040516101059190610edd565b60405180910390f35b61012860048036038101906101239190610c75565b6102c1565b005b610144600480360381019061013f9190610c75565b610307565b005b61014e6103be565b60405161015b9190610edd565b60405180910390f35b61017e60048036038101906101799190610c75565b6103e2565b60405161018b9190610ec2565b60405180910390f35b61019c61044c565b6040516101a99190610edd565b60405180910390f35b6101ba610470565b6040516101c79190610edd565b60405180910390f35b6101d8610477565b6040516101e59190610edd565b60405180910390f35b61020860048036038101906102039190610c75565b61049b565b005b610212610552565b60405161021f9190610ef8565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061029b575061029a8261056e565b5b9050919050565b6000806000838152602001908152602001600020600101549050919050565b6102cb82826103e2565b6102f9576001600083815260200190815260200160002060008154809291906102f39061110c565b91905055505b61030382826105d8565b5050565b61031182826103e2565b156103b0576001806000848152602001908152602001600020541415610386576040518060600160405280603581526020016111db603591396040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037d9190610ef8565b60405180910390fd5b6001600083815260200190815260200160002060008154809291906103aa906110e2565b91905055505b6103ba8282610601565b5050565b7fefa080c67ecf4a6bf40c9dc64173420c08f359250ca6562d7c80f7c7b9b1396981565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f33fa24d9aab6b79237248a16094d5f78ea83bb51e42c123ce925a264e7d816cc81565b6000801b81565b7fdc0d7a095c4e917ecbeb7deda7c942ff9744013d419e37549215a413915e421d81565b6104a582826103e2565b1561054457600180600084815260200190815260200160002054141561051a576040518060600160405280603581526020016111db603591396040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105119190610ef8565b60405180910390fd5b60016000838152602001908152602001600020600081548092919061053e906110e2565b91905055505b61054e8282610684565b5050565b6040518060600160405280603581526020016111db6035913981565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6105e1826102a2565b6105f2816105ed6106ad565b6106b5565b6105fc8383610752565b505050565b6106096106ad565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161066d90610f3a565b60405180910390fd5b6106808282610832565b5050565b61068d826102a2565b61069e816106996106ad565b6106b5565b6106a88383610832565b505050565b600033905090565b6106bf82826103e2565b61074e576106e48173ffffffffffffffffffffffffffffffffffffffff166014610913565b6106f28360001c6020610913565b604051602001610703929190610e88565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107459190610ef8565b60405180910390fd5b5050565b61075c82826103e2565b61082e57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506107d36106ad565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61083c82826103e2565b1561090f57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506108b46106ad565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6060600060028360026109269190610fd7565b6109309190610f81565b67ffffffffffffffff81111561096f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156109a15781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106109ff577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610a89577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002610ac99190610fd7565b610ad39190610f81565b90505b6001811115610bbf577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110610b3b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110610b78577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080610bb8906110e2565b9050610ad6565b5060008414610c03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bfa90610f1a565b60405180910390fd5b8091505092915050565b600081359050610c1c81611195565b92915050565b600081359050610c31816111ac565b92915050565b600081359050610c46816111c3565b92915050565b600060208284031215610c5e57600080fd5b6000610c6c84828501610c22565b91505092915050565b60008060408385031215610c8857600080fd5b6000610c9685828601610c22565b9250506020610ca785828601610c0d565b9150509250929050565b600060208284031215610cc357600080fd5b6000610cd184828501610c37565b91505092915050565b610ce381611043565b82525050565b610cf28161104f565b82525050565b6000610d0382610f5a565b610d0d8185610f65565b9350610d1d8185602086016110af565b610d2681611184565b840191505092915050565b6000610d3c82610f5a565b610d468185610f76565b9350610d568185602086016110af565b80840191505092915050565b6000610d6f602083610f65565b91507f537472696e67733a20686578206c656e67746820696e73756666696369656e746000830152602082019050919050565b6000610daf601783610f76565b91507f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006000830152601782019050919050565b6000610def601183610f76565b91507f206973206d697373696e6720726f6c65200000000000000000000000000000006000830152601182019050919050565b6000610e2f602f83610f65565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b6000610e9382610da2565b9150610e9f8285610d31565b9150610eaa82610de2565b9150610eb68284610d31565b91508190509392505050565b6000602082019050610ed76000830184610cda565b92915050565b6000602082019050610ef26000830184610ce9565b92915050565b60006020820190508181036000830152610f128184610cf8565b905092915050565b60006020820190508181036000830152610f3381610d62565b9050919050565b60006020820190508181036000830152610f5381610e22565b9050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b6000610f8c826110a5565b9150610f97836110a5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610fcc57610fcb611155565b5b828201905092915050565b6000610fe2826110a5565b9150610fed836110a5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561102657611025611155565b5b828202905092915050565b600061103c82611085565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b838110156110cd5780820151818401526020810190506110b2565b838111156110dc576000848401525b50505050565b60006110ed826110a5565b9150600082141561110157611100611155565b5b600182039050919050565b6000611117826110a5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561114a57611149611155565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000601f19601f8301169050919050565b61119e81611031565b81146111a957600080fd5b50565b6111b58161104f565b81146111c057600080fd5b50565b6111cc81611059565b81146111d757600080fd5b5056fe416363657373436f6e74726f6c4d616e616765723a20756e61626c6520746f207265766f6b652074686520676976656e20726f6c65a2646970667358221220fb27f6999ff51f35982adfae4673e39685efd554cceffc323df9bf8e9070990a64736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000256b671ca0572534b75e99f1df5038ca994af33000000000000000000000000fb1381ce513e6a70cb591fd0237618d0d28aeea200000000000000000000000027a9eef65c9ce5c2e3ebcf5e469628d1c56ceb42000000000000000000000000be510cb48b086539db7e0455efb7aee60dbd4d87
-----Decoded View---------------
Arg [0] : admin (address): 0x0256b671CA0572534B75e99f1df5038Ca994Af33
Arg [1] : ceo (address): 0xfb1381cE513E6A70cb591Fd0237618D0D28AEEA2
Arg [2] : coo (address): 0x27A9eEF65c9ce5C2E3eBCF5E469628d1c56cEB42
Arg [3] : cfo (address): 0xBe510cB48B086539DB7E0455Efb7aee60DbD4d87
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000256b671ca0572534b75e99f1df5038ca994af33
Arg [1] : 000000000000000000000000fb1381ce513e6a70cb591fd0237618d0d28aeea2
Arg [2] : 00000000000000000000000027a9eef65c9ce5c2e3ebcf5e469628d1c56ceb42
Arg [3] : 000000000000000000000000be510cb48b086539db7e0455efb7aee60dbd4d87
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.