Address Contract Verified
Address
0x22fa03B6A2cCe7f67EC90b119e5F09616a03c1f7
Balance
0 ETH
Nonce
1
Code Size
4078 bytes
Creator
0xbEb51864...7682 at tx 0xeb63ad38...bb1380
Indexed Transactions
0
Contract Bytecode
4078 bytes
0x608060405234801561000f575f5ffd5b50600436106100fe575f3560e01c8063715018a611610095578063a217fddf11610064578063a217fddf14610286578063d547741f146102a4578063f2fde38b146102c0578063fcf0f0d3146102dc576100fe565b8063715018a61461021057806375b238fc1461021a5780638da5cb5b1461023857806391d1485414610256576100fe565b8063248a9ca3116100d1578063248a9ca31461018a5780632f2ff15d146101ba57806336568abe146101d65780634c6fd710146101f2576100fe565b806301ffc9a7146101025780630aebdce814610132578063131191611461014e5780631a12d5851461016c575b5f5ffd5b61011c60048036038101906101179190610c81565b6102fa565b6040516101299190610cc6565b60405180910390f35b61014c60048036038101906101479190610d39565b610373565b005b6101566104a6565b6040516101639190610d7c565b60405180910390f35b6101746104ca565b6040516101819190610df0565b60405180910390f35b6101a4600480360381019061019f9190610e33565b6104ee565b6040516101b19190610d7c565b60405180910390f35b6101d460048036038101906101cf9190610e5e565b61050a565b005b6101f060048036038101906101eb9190610e5e565b610606565b005b6101fa610681565b6040516102079190610d7c565b60405180910390f35b6102186106a5565b005b6102226106b8565b60405161022f9190610d7c565b60405180910390f35b6102406106dc565b60405161024d9190610eab565b60405180910390f35b610270600480360381019061026b9190610e5e565b610704565b60405161027d9190610cc6565b60405180910390f35b61028e610767565b60405161029b9190610d7c565b60405180910390f35b6102be60048036038101906102b99190610e5e565b61076d565b005b6102da60048036038101906102d59190610d39565b61078f565b005b6102e4610813565b6040516102f19190610d7c565b60405180910390f35b5f7f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061036c575061036b82610837565b5b9050919050565b7f51b355059847d158e68950419dbcd54fad00bdfd0634c2515a5c533288c7f0a261039d816108a0565b817f00000000000000000000000040c57923924b5c5c5455c48d93317139addac8fb73ffffffffffffffffffffffffffffffffffffffff1663df592f7d826040518263ffffffff1660e01b81526004016103f79190610eab565b602060405180830381865afa158015610412573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104369190610eee565b15610476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046d90610f73565b60405180910390fd5b6104a07f14823911f2da1b49f045a0929a60b8c1f2a7fc8c06c7284ca3e8ab4e193a08c8846108b4565b50505050565b7f14823911f2da1b49f045a0929a60b8c1f2a7fc8c06c7284ca3e8ab4e193a08c881565b7f00000000000000000000000040c57923924b5c5c5455c48d93317139addac8fb81565b5f5f5f8381526020019081526020015f20600101549050919050565b610513826104ee565b61051c816108a0565b817f00000000000000000000000040c57923924b5c5c5455c48d93317139addac8fb73ffffffffffffffffffffffffffffffffffffffff1663df592f7d826040518263ffffffff1660e01b81526004016105769190610eab565b602060405180830381865afa158015610591573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105b59190610eee565b156105f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105ec90610f73565b60405180910390fd5b6105ff84846108b4565b5050505050565b61060e61099d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610672576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61067c82826109a4565b505050565b7ffef8116c9f7a049f7d88dfe856a1d3fcccb19e18b1e45b1e601cc9dbcaba40d781565b6106ad610a8d565b6106b65f610b14565b565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f5f5f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f5f1b81565b610776826104ee565b61077f816108a0565b61078983836109a4565b50505050565b610797610a8d565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610807575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016107fe9190610eab565b60405180910390fd5b61081081610b14565b50565b7f51b355059847d158e68950419dbcd54fad00bdfd0634c2515a5c533288c7f0a281565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6108b1816108ac61099d565b610bd7565b50565b5f6108bf8383610704565b6109935760015f5f8581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555061093061099d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610997565b5f90505b92915050565b5f33905090565b5f6109af8383610704565b15610a83575f5f5f8581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550610a2061099d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050610a87565b5f90505b92915050565b610a9561099d565b73ffffffffffffffffffffffffffffffffffffffff16610ab36106dc565b73ffffffffffffffffffffffffffffffffffffffff1614610b1257610ad661099d565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610b099190610eab565b60405180910390fd5b565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610be18282610704565b610c245780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401610c1b929190610f91565b60405180910390fd5b5050565b5f5ffd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b610c6081610c2c565b8114610c6a575f5ffd5b50565b5f81359050610c7b81610c57565b92915050565b5f60208284031215610c9657610c95610c28565b5b5f610ca384828501610c6d565b91505092915050565b5f8115159050919050565b610cc081610cac565b82525050565b5f602082019050610cd95f830184610cb7565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610d0882610cdf565b9050919050565b610d1881610cfe565b8114610d22575f5ffd5b50565b5f81359050610d3381610d0f565b92915050565b5f60208284031215610d4e57610d4d610c28565b5b5f610d5b84828501610d25565b91505092915050565b5f819050919050565b610d7681610d64565b82525050565b5f602082019050610d8f5f830184610d6d565b92915050565b5f819050919050565b5f610db8610db3610dae84610cdf565b610d95565b610cdf565b9050919050565b5f610dc982610d9e565b9050919050565b5f610dda82610dbf565b9050919050565b610dea81610dd0565b82525050565b5f602082019050610e035f830184610de1565b92915050565b610e1281610d64565b8114610e1c575f5ffd5b50565b5f81359050610e2d81610e09565b92915050565b5f60208284031215610e4857610e47610c28565b5b5f610e5584828501610e1f565b91505092915050565b5f5f60408385031215610e7457610e73610c28565b5b5f610e8185828601610e1f565b9250506020610e9285828601610d25565b9150509250929050565b610ea581610cfe565b82525050565b5f602082019050610ebe5f830184610e9c565b92915050565b610ecd81610cac565b8114610ed7575f5ffd5b50565b5f81519050610ee881610ec4565b92915050565b5f60208284031215610f0357610f02610c28565b5b5f610f1084828501610eda565b91505092915050565b5f82825260208201905092915050565b7f697353616e6374696f6e656400000000000000000000000000000000000000005f82015250565b5f610f5d600c83610f19565b9150610f6882610f29565b602082019050919050565b5f6020820190508181035f830152610f8a81610f51565b9050919050565b5f604082019050610fa45f830185610e9c565b610fb16020830184610d6d565b939250505056fea26469706673582212205e3eb6b2e54bdc1e44a0af27883b2b0f197dd5923f4a1b91a1eff021b9ed486a64736f6c634300081c0033
Verified Source Code Full Match
Compiler: v0.8.28+commit.7893614a
EVM: cancun
Optimization: No
AccessController.sol 42 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.28;
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ISanctions} from "./interfaces/ISanctions.sol";
import "./libraries/Errors.sol";
contract AccessController is AccessControl, Ownable {
bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
bytes32 public constant FUND_ADMIN_ROLE = keccak256("FUND_ADMIN_ROLE");
bytes32 public constant DEV_ROLE = keccak256("DEV_ROLE");
bytes32 public constant USER_ROLE = keccak256("USER_ROLE");
ISanctions public immutable sanctions;
modifier onlyNotSanctioned(address _address) {
require(!sanctions.isSanctioned(_address), "isSanctioned");
_;
}
constructor(address _owner, address _sanctions) Ownable(_owner) {
if (_sanctions == address(0)) revert ZeroAddress();
_grantRole(DEFAULT_ADMIN_ROLE, _owner);
_grantRole(ADMIN_ROLE, _owner);
sanctions = ISanctions(_sanctions);
}
function grantRole(bytes32 role, address account)
public
override
onlyRole(getRoleAdmin(role))
onlyNotSanctioned(account)
{
_grantRole(role, account);
}
function grantUser(address account) external onlyRole(DEV_ROLE) onlyNotSanctioned(account) {
_grantRole(USER_ROLE, account);
}
}
AccessControl.sol 209 lines
// 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;
}
}
}
Ownable.sol 100 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
ISanctions.sol 6 lines
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.28;
interface ISanctions {
function isSanctioned(address _address) external view returns (bool);
}
Errors.sol 18 lines
// SPDX-License-Identifier: MIT pragma solidity ^0.8.28; /* Errors */ error ZeroAddress(); error ZeroAmount(); error InvalidMaxMint(); error InvalidFee(); error InvalidNav(); error InvalidEpoch(); error InvalidDecimals(); error InvalidAmountOut(); error InvalidNavChange(); error NavOutdated(); error InsufficientBalance(); error Sanctioned(address); error Unauthorized(); error DeviationExceedsThreshold();
IAccessControl.sol 98 lines
// 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;
}
Context.sol 28 lines
// 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;
}
}
ERC165.sol 27 lines
// 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;
}
}
IERC165.sol 25 lines
// 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);
}
Read Contract
ADMIN_ROLE 0x75b238fc → bytes32
DEFAULT_ADMIN_ROLE 0xa217fddf → bytes32
DEV_ROLE 0xfcf0f0d3 → bytes32
FUND_ADMIN_ROLE 0x4c6fd710 → bytes32
USER_ROLE 0x13119161 → bytes32
getRoleAdmin 0x248a9ca3 → bytes32
hasRole 0x91d14854 → bool
owner 0x8da5cb5b → address
sanctions 0x1a12d585 → address
supportsInterface 0x01ffc9a7 → bool
Write Contract 6 functions
These functions modify contract state and require a wallet transaction to execute.
grantRole 0x2f2ff15d
bytes32 role
address account
grantUser 0x0aebdce8
address account
renounceOwnership 0x715018a6
No parameters
renounceRole 0x36568abe
bytes32 role
address callerConfirmation
revokeRole 0xd547741f
bytes32 role
address account
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address