Source Code
Latest 19 from a total of 19 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Grant Role | 27079912 | 99 days ago | IN | 0 FRAX | 0.00006827 | ||||
| Grant Role | 27079898 | 99 days ago | IN | 0 FRAX | 0.00006687 | ||||
| Grant Role | 27079887 | 99 days ago | IN | 0 FRAX | 0.00006498 | ||||
| Grant Role | 27035568 | 100 days ago | IN | 0 FRAX | 0.00001221 | ||||
| Grant Role | 27035558 | 100 days ago | IN | 0 FRAX | 0.00001086 | ||||
| Grant Role | 27035549 | 100 days ago | IN | 0 FRAX | 0.00001166 | ||||
| Grant Role | 27035536 | 100 days ago | IN | 0 FRAX | 0.00001257 | ||||
| Grant Role | 27035518 | 100 days ago | IN | 0 FRAX | 0.00001042 | ||||
| Grant Role | 27035508 | 100 days ago | IN | 0 FRAX | 0.0000113 | ||||
| Grant Role | 27035498 | 100 days ago | IN | 0 FRAX | 0.00001198 | ||||
| Grant Role | 27035487 | 100 days ago | IN | 0 FRAX | 0.00001222 | ||||
| Grant Role | 27035471 | 100 days ago | IN | 0 FRAX | 0.00001216 | ||||
| Grant Role | 27035459 | 100 days ago | IN | 0 FRAX | 0.00001189 | ||||
| Grant Role | 27035444 | 100 days ago | IN | 0 FRAX | 0.0000118 | ||||
| Grant Role | 27035429 | 100 days ago | IN | 0 FRAX | 0.00001195 | ||||
| Grant Role | 27035386 | 100 days ago | IN | 0 FRAX | 0.00001323 | ||||
| Grant Role | 27035369 | 100 days ago | IN | 0 FRAX | 0.00001335 | ||||
| Grant Role | 27035352 | 100 days ago | IN | 0 FRAX | 0.00001116 | ||||
| Grant Role | 27035310 | 100 days ago | IN | 0 FRAX | 0.00001149 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
EchoAccessControl
Compiler Version
v0.8.30+commit.73712a01
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.30;
// ███████╗ ██████╗██╗ ██╗ ██████╗ ███╗ ███╗ █████╗ ██████╗ ██╗ ██╗███████╗████████╗
// ██╔════╝██╔════╝██║ ██║██╔═══██╗ ████╗ ████║██╔══██╗██╔══██╗██║ ██╔╝██╔════╝╚══██╔══╝
// █████╗ ██║ ███████║██║ ██║ ██╔████╔██║███████║██████╔╝█████╔╝ █████╗ ██║
// ██╔══╝ ██║ ██╔══██║██║ ██║ ██║╚██╔╝██║██╔══██║██╔══██╗██╔═██╗ ██╔══╝ ██║
// ███████╗╚██████╗██║ ██║╚██████╔╝ ██║ ╚═╝ ██║██║ ██║██║ ██║██║ ██╗███████╗ ██║
// ╚══════╝ ╚═════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═╝
// ================================ EchoAccessControl V1 ===============================
// ===================================== Fall 2025 =====================================
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
/**
* @title Echo Access Control
* @author Dynabits.org
* @notice Centralized role-based permission system for Echo Protocol, built on OpenZeppelin's AccessControl.
* @dev This contract manages and registers all operational roles used across Echo modules such as
* Administration, Contents, Campaign Factory, and RouterController. It provides a standardized
* mechanism for role registration, lookup, and admin assignment.
*/
contract EchoAccessControl is AccessControl {
/********************************\
|-*-*-*-*-* STATES *-*-*-*-*-|
\********************************/
/// @notice Mapping between role name strings and their hashed bytes32 identifiers.
mapping(string => bytes32) public roleRegistration;
/********************************\
|-*-*-*-*-* ERRORS *-*-*-*-*-|
\********************************/
error ROLE_REGISTERED_BEFORE(string roleName);
/*//////////////////////////////////////////////////////////////
CONSTRUCTOR
//////////////////////////////////////////////////////////////*/
/**
* @notice Initializes the Echo access control registry with a designated admin.
* @param admin The address that receives the `DEFAULT_ADMIN_ROLE` and manages all role assignments.
*/
constructor(address admin) {
require(admin != address(0), "ZERO ADDRESS PROVIDED");
_grantRole(DEFAULT_ADMIN_ROLE, admin);
/*//////////////////////////////////////////////////////////////
ROLE REGISTRATION
//////////////////////////////////////////////////////////////*/
// === ADMINISTRATION ===
roleRegistration["ADMINISTRATION_CHANGE_PROTOCOL_ADMIN"] = keccak256(
"ADMINISTRATION_CHANGE_PROTOCOL_ADMIN"
);
roleRegistration["ADMINISTRATION_CHANGE_CAMPAIGN_FEE_RATE"] = keccak256(
"ADMINISTRATION_CHANGE_CAMPAIGN_FEE_RATE"
);
roleRegistration["ADMINISTRATION_CHANGE_MAX_CAMPAIGN_TIME"] = keccak256(
"ADMINISTRATION_CHANGE_MAX_CAMPAIGN_TIME"
);
roleRegistration["ADMINISTRATION_WHITELIST_TOKEN"] = keccak256(
"ADMINISTRATION_WHITELIST_TOKEN"
);
roleRegistration["ADMINISTRATION_REMOVE_WHITELISTED_TOKEN"] = keccak256(
"ADMINISTRATION_REMOVE_WHITELISTED_TOKEN"
);
roleRegistration["ADMINISTRATION_DISALLOW_ORACLE_ACCESS"] = keccak256(
"ADMINISTRATION_DISALLOW_ORACLE_ACCESS"
);
roleRegistration["ADMINISTRATION_ALLOW_ORACLE_ACCESS"] = keccak256(
"ADMINISTRATION_ALLOW_ORACLE_ACCESS"
);
roleRegistration["ADMINISTRATION_SET_MODEL"] = keccak256(
"ADMINISTRATION_SET_MODEL"
);
// === CONTENTS ===
roleRegistration["CONTENTS_SET_CONFIGS"] = keccak256(
"CONTENTS_SET_CONFIGS"
);
roleRegistration["CONTENTS_SET_QUALIFICATIONS"] = keccak256(
"CONTENTS_SET_QUALIFICATIONS"
);
roleRegistration["CONTENTS_UPDATE_KPIS"] = keccak256(
"CONTENTS_UPDATE_KPIS"
);
// === CAMPAIGN FACTORY ===
roleRegistration["CAMPAIGN_FACTORY_CHANGE_IMPLEMENTATION"] = keccak256(
"CAMPAIGN_FACTORY_CHANGE_IMPLEMENTATION"
);
// === CAMPAIGNS ===
roleRegistration["CAMPAIGN_FINALIZE"] = keccak256("CAMPAIGN_FINALIZE");
roleRegistration["CAMPAIGN_PAUSE"] = keccak256("CAMPAIGN_PAUSE");
roleRegistration["CAMPAIGN_UNPAUSE"] = keccak256("CAMPAIGN_UNPAUSE");
/*//////////////////////////////////////////////////////////////
ROLE ADMIN ASSIGNMENT
//////////////////////////////////////////////////////////////*/
_setRoleAdmin(
roleRegistration["ADMINISTRATION_CHANGE_PROTOCOL_ADMIN"],
DEFAULT_ADMIN_ROLE
);
_setRoleAdmin(
roleRegistration["ADMINISTRATION_CHANGE_CAMPAIGN_FEE_RATE"],
DEFAULT_ADMIN_ROLE
);
_setRoleAdmin(
roleRegistration["ADMINISTRATION_CHANGE_MAX_CAMPAIGN_TIME"],
DEFAULT_ADMIN_ROLE
);
_setRoleAdmin(
roleRegistration["ADMINISTRATION_WHITELIST_TOKEN"],
DEFAULT_ADMIN_ROLE
);
_setRoleAdmin(
roleRegistration["ADMINISTRATION_REMOVE_WHITELISTED_TOKEN"],
DEFAULT_ADMIN_ROLE
);
_setRoleAdmin(
roleRegistration["ADMINISTRATION_DISALLOW_ORACLE_ACCESS"],
DEFAULT_ADMIN_ROLE
);
_setRoleAdmin(
roleRegistration["ADMINISTRATION_ALLOW_ORACLE_ACCESS"],
DEFAULT_ADMIN_ROLE
);
_setRoleAdmin(
roleRegistration["ADMINISTRATION_SET_MODEL"],
DEFAULT_ADMIN_ROLE
);
_setRoleAdmin(
roleRegistration["CONTENTS_SET_CONFIGS"],
DEFAULT_ADMIN_ROLE
);
_setRoleAdmin(
roleRegistration["CONTENTS_SET_QUALIFICATIONS"],
DEFAULT_ADMIN_ROLE
);
_setRoleAdmin(
roleRegistration["CONTENTS_UPDATE_KPIS"],
DEFAULT_ADMIN_ROLE
);
_setRoleAdmin(
roleRegistration["CAMPAIGN_FACTORY_CHANGE_IMPLEMENTATION"],
DEFAULT_ADMIN_ROLE
);
_setRoleAdmin(
roleRegistration["CAMPAIGN_FINALIZE"],
DEFAULT_ADMIN_ROLE
);
_setRoleAdmin(roleRegistration["CAMPAIGN_PAUSE"], DEFAULT_ADMIN_ROLE);
_setRoleAdmin(roleRegistration["CAMPAIGN_UNPAUSE"], DEFAULT_ADMIN_ROLE);
_grantRole(
roleRegistration["ADMINISTRATION_CHANGE_PROTOCOL_ADMIN"],
admin
);
_grantRole(
roleRegistration["ADMINISTRATION_CHANGE_CAMPAIGN_FEE_RATE"],
admin
);
_grantRole(
roleRegistration["ADMINISTRATION_CHANGE_MAX_CAMPAIGN_TIME"],
admin
);
_grantRole(roleRegistration["ADMINISTRATION_WHITELIST_TOKEN"], admin);
_grantRole(
roleRegistration["ADMINISTRATION_REMOVE_WHITELISTED_TOKEN"],
admin
);
_grantRole(
roleRegistration["ADMINISTRATION_DISALLOW_ORACLE_ACCESS"],
admin
);
_grantRole(
roleRegistration["ADMINISTRATION_ALLOW_ORACLE_ACCESS"],
admin
);
_grantRole(roleRegistration["ADMINISTRATION_SET_MODEL"], admin);
_grantRole(roleRegistration["CONTENTS_SET_CONFIGS"], admin);
_grantRole(roleRegistration["CONTENTS_SET_QUALIFICATIONS"], admin);
_grantRole(roleRegistration["CONTENTS_UPDATE_KPIS"], admin);
_grantRole(
roleRegistration["CAMPAIGN_FACTORY_CHANGE_IMPLEMENTATION"],
admin
);
_grantRole(roleRegistration["CAMPAIGN_FINALIZE"], admin);
_grantRole(roleRegistration["CAMPAIGN_PAUSE"], admin);
_grantRole(roleRegistration["CAMPAIGN_UNPAUSE"], admin);
}
/********************************\
|-*-*-* ADMINISTRATION *-*-*-|
\********************************/
/**
* @notice Registers a new role dynamically with its own keccak256 hash.
* @dev Only callable by the protocol's DEFAULT_ADMIN_ROLE.
* @param roleName The string name of the role to register (e.g., "ORACLE_OPERATOR").
*/
function registerRole(
string calldata roleName
) external onlyRole(DEFAULT_ADMIN_ROLE) {
if (roleRegistration[roleName] != 0x00)
revert ROLE_REGISTERED_BEFORE(roleName);
roleRegistration[roleName] = keccak256(abi.encodePacked(roleName));
_setRoleAdmin(roleRegistration[roleName], DEFAULT_ADMIN_ROLE);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)
pragma solidity ^0.8.20;
import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {ERC165} from "../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:
*
* ```solidity
* 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}:
*
* ```solidity
* 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. We recommend using {AccessControlDefaultAdminRules}
* to enforce additional security measures for this role.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address account => bool) hasRole;
bytes32 adminRole;
}
mapping(bytes32 role => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with an {AccessControlUnauthorizedAccount} error including the required role.
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
/**
* @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 virtual returns (bool) {
return _roles[role].hasRole[account];
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
* is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
* is missing `role`.
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert AccessControlUnauthorizedAccount(account, role);
}
}
/**
* @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 virtual 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.
*
* May emit a {RoleGranted} event.
*/
function grantRole(bytes32 role, address account) public virtual 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.
*
* May emit a {RoleRevoked} event.
*/
function revokeRole(bytes32 role, address account) public virtual 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 `callerConfirmation`.
*
* May emit a {RoleRevoked} event.
*/
function renounceRole(bytes32 role, address callerConfirmation) public virtual {
if (callerConfirmation != _msgSender()) {
revert AccessControlBadConfirmation();
}
_revokeRole(role, callerConfirmation);
}
/**
* @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);
}
/**
* @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
if (!hasRole(role, account)) {
_roles[role].hasRole[account] = true;
emit RoleGranted(role, account, _msgSender());
return true;
} else {
return false;
}
}
/**
* @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
if (hasRole(role, account)) {
_roles[role].hasRole[account] = false;
emit RoleRevoked(role, account, _msgSender());
return true;
} else {
return false;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC-165 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);
* }
* ```
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (access/IAccessControl.sol)
pragma solidity ^0.8.20;
/**
* @dev External interface of AccessControl declared to support ERC-165 detection.
*/
interface IAccessControl {
/**
* @dev The `account` is missing a role.
*/
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);
/**
* @dev The caller of a function is not the expected one.
*
* NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
*/
error AccessControlBadConfirmation();
/**
* @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.
*/
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. This account bears the admin role (for the granted role).
* Expected in cases where the role was granted using the internal {AccessControl-_grantRole}.
*/
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 `callerConfirmation`.
*/
function renounceRole(bytes32 role, address callerConfirmation) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* 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[ERC 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": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": [
"forge-std/=lib/forge-std/src/",
"@prb/math/=lib/prb-math/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/",
"@openzeppelin/contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/",
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/"
]
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"string","name":"roleName","type":"string"}],"name":"ROLE_REGISTERED_BEFORE","type":"error"},{"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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"string","name":"roleName","type":"string"}],"name":"registerRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","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":"","type":"string"}],"name":"roleRegistration","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608060405234801561000f575f5ffd5b5060405161141938038061141983398101604081905261002e91610b7b565b6001600160a01b0381166100885760405162461bcd60e51b815260206004820152601560248201527f5a45524f20414444524553532050524f56494445440000000000000000000000604482015260640160405180910390fd5b6100925f82610a88565b507f0e15e64db8793c7886d0948f3cd014699587487d51a4d46d0a006373829c60db60016040516100e0905f5160206113395f395f51905f528152632226a4a760e11b602082015260240190565b9081526020016040518091039020819055507f9daa750d761db6bf0b8252e9a79d69920d7e8174b31cb430305b6b89680a480c6001604051610142905f5160206113795f395f51905f5281526645455f5241544560c81b602082015260270190565b9081526020016040518091039020819055507f4685d170ad15729309a0d63172972ea66f2fb21eae5e1cd2f5b0a8e382b3b47660016040516101a4905f5160206113595f395f51905f52815266474e5f54494d4560c81b602082015260270190565b9081526040805160209281900383018120939093555f5160206113b95f395f51905f5283526001601e8401819052905192839003603e0183207fba715a05089bb51046b57a9329efb3817620ab0bee8bbc16eb6c43c4176b23fa90555f5160206112995f395f51905f52835266222faa27a5a2a760c91b918301919091527fbc2eee5aea135f8bc8a046420aafe85662fc0bd2db1a4c92faac91a4106f6490916027019081526020016040518091039020819055507f8a5616bd0e7363193fc41fe3c9fea9123f13bf149012c67a38fa3afd32a306c560016040516102a7905f5160206112f95f395f51905f52815264434345535360d81b602082015260250190565b9081526020016040518091039020819055507f87b0b85a48ef2cdb8c70273283903cdb3cb4d4010a7c6c8983436e0d9b17567c6001604051610304905f5160206112b95f395f51905f52815261535360f01b602082015260220190565b908152604080519182900360209081018320939093555f5160206112d95f395f51905f52825260016018830181905281519283900360380183207f85c974a4a88259bc08070785002b6b416ad3c1d7cf6b5eb531e5b558ba3fffa890555f5160206113995f395f51905f5283526014808401829052825193849003603490810185207f97fbf146e9c670352d80301abd7cde75ccfbcdf08ab75e279750732622d9d8d090555f5160206113d95f395f51905f528552601b8501839052835194859003603b0185207f6c6a373dfc1c5553f9acb5ba3cb2a89e181be32c73979c72505a7815d507b6ee90555f5160206113f95f395f51905f5285529084018290528251938490030183207f9f4f94b6b3b840a08f85f3123c8c939368d4549b232d21a6fefeb9dc636649d990555f5160206113195f395f51905f528352652a20aa24a7a760d11b838501526026830181905281519283900360460183207fcac0f88fc6ffb8c20072384bdbe3891b98fd745fb45563b2e2bd38b1587d5efa90557043414d504149474e5f46494e414c495a4560781b83526011830181905281519283900360310183207fabd8fa5768a9763e62046e00c2bfe3770edeadcf7a46cbdc3cdaeae309b4ea4e90556d43414d504149474e5f504155534560901b8352600e8301819052815192839003602e0183207f78e294b129638ed22e0f04d1112287ac0c9a136ff08550d5a5170c08c0d418d290556f43414d504149474e5f554e504155534560801b83526010830181905290516030928190039290920182207fc1945483820ee01d1b624365e29c94e52b173c14dc0f4ab675e6ecb36989fc0b90555f5160206113395f395f51905f528252632226a4a760e11b928201929092526105a491906024015b908152604051908190036020019020545f610b31565b6105d6600160405161058e905f5160206113795f395f51905f5281526645455f5241544560c81b602082015260270190565b610608600160405161058e905f5160206113595f395f51905f52815266474e5f54494d4560c81b602082015260270190565b61062a600160405161058e905f5160206113b95f395f51905f528152601e0190565b61065c600160405161058e905f5160206112995f395f51905f52815266222faa27a5a2a760c91b602082015260270190565b61068c600160405161058e905f5160206112f95f395f51905f52815264434345535360d81b602082015260250190565b6106b9600160405161058e905f5160206112b95f395f51905f52815261535360f01b602082015260220190565b6106db600160405161058e905f5160206112d95f395f51905f52815260180190565b6106fd600160405161058e905f5160206113995f395f51905f52815260140190565b61071f600160405161058e905f5160206113d95f395f51905f528152601b0190565b610741600160405161058e905f5160206113f95f395f51905f52815260140190565b610772600160405161058e905f5160206113195f395f51905f528152652a20aa24a7a760d11b602082015260260190565b61079b600160405161058e907043414d504149474e5f46494e414c495a4560781b815260110190565b6107c1600160405161058e906d43414d504149474e5f504155534560901b8152600e0190565b6107e9600160405161058e906f43414d504149474e5f554e504155534560801b815260100190565b61082e6001604051610818905f5160206113395f395f51905f528152632226a4a760e11b602082015260240190565b9081526040519081900360200190205482610a88565b506108616001604051610818905f5160206113795f395f51905f5281526645455f5241544560c81b602082015260270190565b506108946001604051610818905f5160206113595f395f51905f52815266474e5f54494d4560c81b602082015260270190565b506108b76001604051610818905f5160206113b95f395f51905f528152601e0190565b506108ea6001604051610818905f5160206112995f395f51905f52815266222faa27a5a2a760c91b602082015260270190565b5061091b6001604051610818905f5160206112f95f395f51905f52815264434345535360d81b602082015260250190565b506109496001604051610818905f5160206112b95f395f51905f52815261535360f01b602082015260220190565b5061096c6001604051610818905f5160206112d95f395f51905f52815260180190565b5061098f6001604051610818905f5160206113995f395f51905f52815260140190565b506109b26001604051610818905f5160206113d95f395f51905f528152601b0190565b506109d56001604051610818905f5160206113f95f395f51905f52815260140190565b50610a076001604051610818905f5160206113195f395f51905f528152652a20aa24a7a760d11b602082015260260190565b50610a316001604051610818907043414d504149474e5f46494e414c495a4560781b815260110190565b50610a586001604051610818906d43414d504149474e5f504155534560901b8152600e0190565b50610a816001604051610818906f43414d504149474e5f554e504155534560801b815260100190565b5050610ba8565b5f828152602081815260408083206001600160a01b038516845290915281205460ff16610b28575f838152602081815260408083206001600160a01b03861684529091529020805460ff19166001179055610ae03390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610b2b565b505f5b92915050565b5f82815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b5f60208284031215610b8b575f5ffd5b81516001600160a01b0381168114610ba1575f5ffd5b9392505050565b6106e480610bb55f395ff3fe608060405234801561000f575f5ffd5b5060043610610090575f3560e01c80635708759711610063578063570875971461011457806391d1485414610127578063a217fddf1461013a578063a4cef14014610141578063d547741f1461016c575f5ffd5b806301ffc9a714610094578063248a9ca3146100bc5780632f2ff15d146100ec57806336568abe14610101575b5f5ffd5b6100a76100a23660046104be565b61017f565b60405190151581526020015b60405180910390f35b6100de6100ca3660046104ec565b5f9081526020819052604090206001015490565b6040519081526020016100b3565b6100ff6100fa366004610503565b6101b5565b005b6100ff61010f366004610503565b6101df565b6100ff61012236600461053c565b610217565b6100a7610135366004610503565b6102e6565b6100de5f81565b6100de61014f3660046105be565b805160208183018101805160018252928201919093012091525481565b6100ff61017a366004610503565b61030e565b5f6001600160e01b03198216637965db0b60e01b14806101af57506301ffc9a760e01b6001600160e01b03198316145b92915050565b5f828152602081905260409020600101546101cf81610332565b6101d9838361033f565b50505050565b6001600160a01b03811633146102085760405163334bd91960e11b815260040160405180910390fd5b61021282826103ce565b505050565b5f61022181610332565b60018383604051610233929190610671565b908152604051908190036020019020541561026e578282604051636c71ae2f60e11b8152600401610265929190610680565b60405180910390fd5b8282604051602001610281929190610671565b60405160208183030381529060405280519060200120600184846040516102a9929190610671565b908152602001604051809103902081905550610212600184846040516102d0929190610671565b908152604051908190036020019020545f610437565b5f918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b5f8281526020819052604090206001015461032881610332565b6101d983836103ce565b61033c8133610481565b50565b5f61034a83836102e6565b6103c7575f838152602081815260408083206001600160a01b03861684529091529020805460ff1916600117905561037f3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016101af565b505f6101af565b5f6103d983836102e6565b156103c7575f838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016101af565b5f82815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b61048b82826102e6565b6104ba5760405163e2517d3f60e01b81526001600160a01b038216600482015260248101839052604401610265565b5050565b5f602082840312156104ce575f5ffd5b81356001600160e01b0319811681146104e5575f5ffd5b9392505050565b5f602082840312156104fc575f5ffd5b5035919050565b5f5f60408385031215610514575f5ffd5b8235915060208301356001600160a01b0381168114610531575f5ffd5b809150509250929050565b5f5f6020838503121561054d575f5ffd5b823567ffffffffffffffff811115610563575f5ffd5b8301601f81018513610573575f5ffd5b803567ffffffffffffffff811115610589575f5ffd5b85602082840101111561059a575f5ffd5b6020919091019590945092505050565b634e487b7160e01b5f52604160045260245ffd5b5f602082840312156105ce575f5ffd5b813567ffffffffffffffff8111156105e4575f5ffd5b8201601f810184136105f4575f5ffd5b803567ffffffffffffffff81111561060e5761060e6105aa565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561063d5761063d6105aa565b604052818152828201602001861015610654575f5ffd5b816020840160208301375f91810160200191909152949350505050565b818382375f9101908152919050565b60208152816020820152818360408301375f818301604090810191909152601f909201601f1916010191905056fea264697066735822122044e5d9ce7fbcae7fc9bda7d0e34209a302f62ef1c20f1ee0ba9fcccf4b627ab364736f6c634300081e003341444d494e495354524154494f4e5f52454d4f56455f57484954454c4953544541444d494e495354524154494f4e5f414c4c4f575f4f5241434c455f4143434541444d494e495354524154494f4e5f5345545f4d4f44454c000000000000000041444d494e495354524154494f4e5f444953414c4c4f575f4f5241434c455f4143414d504149474e5f464143544f52595f4348414e47455f494d504c454d454e41444d494e495354524154494f4e5f4348414e47455f50524f544f434f4c5f4141444d494e495354524154494f4e5f4348414e47455f4d41585f43414d50414941444d494e495354524154494f4e5f4348414e47455f43414d504149474e5f46434f4e54454e54535f5345545f434f4e4649475300000000000000000000000041444d494e495354524154494f4e5f57484954454c4953545f544f4b454e0000434f4e54454e54535f5345545f5155414c494649434154494f4e530000000000434f4e54454e54535f5550444154455f4b504953000000000000000000000000000000000000000000000000c2f8d4b61e078160630b6c93c5c51ec6f8304e26
Deployed Bytecode
0x608060405234801561000f575f5ffd5b5060043610610090575f3560e01c80635708759711610063578063570875971461011457806391d1485414610127578063a217fddf1461013a578063a4cef14014610141578063d547741f1461016c575f5ffd5b806301ffc9a714610094578063248a9ca3146100bc5780632f2ff15d146100ec57806336568abe14610101575b5f5ffd5b6100a76100a23660046104be565b61017f565b60405190151581526020015b60405180910390f35b6100de6100ca3660046104ec565b5f9081526020819052604090206001015490565b6040519081526020016100b3565b6100ff6100fa366004610503565b6101b5565b005b6100ff61010f366004610503565b6101df565b6100ff61012236600461053c565b610217565b6100a7610135366004610503565b6102e6565b6100de5f81565b6100de61014f3660046105be565b805160208183018101805160018252928201919093012091525481565b6100ff61017a366004610503565b61030e565b5f6001600160e01b03198216637965db0b60e01b14806101af57506301ffc9a760e01b6001600160e01b03198316145b92915050565b5f828152602081905260409020600101546101cf81610332565b6101d9838361033f565b50505050565b6001600160a01b03811633146102085760405163334bd91960e11b815260040160405180910390fd5b61021282826103ce565b505050565b5f61022181610332565b60018383604051610233929190610671565b908152604051908190036020019020541561026e578282604051636c71ae2f60e11b8152600401610265929190610680565b60405180910390fd5b8282604051602001610281929190610671565b60405160208183030381529060405280519060200120600184846040516102a9929190610671565b908152602001604051809103902081905550610212600184846040516102d0929190610671565b908152604051908190036020019020545f610437565b5f918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b5f8281526020819052604090206001015461032881610332565b6101d983836103ce565b61033c8133610481565b50565b5f61034a83836102e6565b6103c7575f838152602081815260408083206001600160a01b03861684529091529020805460ff1916600117905561037f3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016101af565b505f6101af565b5f6103d983836102e6565b156103c7575f838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016101af565b5f82815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b61048b82826102e6565b6104ba5760405163e2517d3f60e01b81526001600160a01b038216600482015260248101839052604401610265565b5050565b5f602082840312156104ce575f5ffd5b81356001600160e01b0319811681146104e5575f5ffd5b9392505050565b5f602082840312156104fc575f5ffd5b5035919050565b5f5f60408385031215610514575f5ffd5b8235915060208301356001600160a01b0381168114610531575f5ffd5b809150509250929050565b5f5f6020838503121561054d575f5ffd5b823567ffffffffffffffff811115610563575f5ffd5b8301601f81018513610573575f5ffd5b803567ffffffffffffffff811115610589575f5ffd5b85602082840101111561059a575f5ffd5b6020919091019590945092505050565b634e487b7160e01b5f52604160045260245ffd5b5f602082840312156105ce575f5ffd5b813567ffffffffffffffff8111156105e4575f5ffd5b8201601f810184136105f4575f5ffd5b803567ffffffffffffffff81111561060e5761060e6105aa565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561063d5761063d6105aa565b604052818152828201602001861015610654575f5ffd5b816020840160208301375f91810160200191909152949350505050565b818382375f9101908152919050565b60208152816020820152818360408301375f818301604090810191909152601f909201601f1916010191905056fea264697066735822122044e5d9ce7fbcae7fc9bda7d0e34209a302f62ef1c20f1ee0ba9fcccf4b627ab364736f6c634300081e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c2f8d4b61e078160630b6c93c5c51ec6f8304e26
-----Decoded View---------------
Arg [0] : admin (address): 0xc2f8D4B61E078160630b6C93c5C51EC6F8304e26
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c2f8d4b61e078160630b6c93c5c51ec6f8304e26
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in FRAX
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.