Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Initialize | 24213937 | 23 days ago | IN | 0 ETH | 0.00000377 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x072b7eA9...c6A10E241 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Pauser
Compiler Version
v0.8.22+commit.4fc1097e
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
import {
AccessControlUpgradeable
} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import {AlreadyUpToDate} from "contracts/interfaces/base/CommonErrors.sol";
import {IInitializable} from "contracts/interfaces/common/IInitializable.sol";
import {IAccessControl, IPausable, IPauser} from "contracts/interfaces/pauser/IPauser.sol";
contract Pauser is IInitializable, IPauser, AccessControlUpgradeable {
using EnumerableSet for EnumerableSet.AddressSet;
/// @custom:storage-location erc7201:pauser.v1
struct Storage {
EnumerableSet.AddressSet pausables;
}
// keccak256(abi.encode(uint256(keccak256("pauser.v1")) - 1)) & ~bytes32(uint256(0xff));
bytes32 internal constant STORAGE_SLOT =
0x929acf3821a6050d52f880f37114dbf3807264791f54a551dfc4c71f9b5c3900;
bytes32 public constant override ARKIS_DEPLOYMENT_OPERATOR_ROLE =
keccak256("Arkis Deployment Operator Role");
bytes32 public constant override ARKIS_ALERT_OPERATOR_ROLE =
keccak256("Arkis Alert Operator Role");
bytes32 public constant override ARKIS_SECURITY_OFFICER_ROLE =
keccak256("Arkis Security Officer Role");
bytes32 internal constant PAUSER_ROLE = keccak256("Pauser Role");
function initialize() external override initializer {
_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
_grantRole(ARKIS_ALERT_OPERATOR_ROLE, msg.sender);
}
function add(
address[] calldata pausablesAdd
) external override onlyRole(ARKIS_DEPLOYMENT_OPERATOR_ROLE) {
Storage storage $ = _storage();
bool stateModified = false;
uint256 length = pausablesAdd.length;
for (uint256 i = 0; i < length; i++) {
address pausable = pausablesAdd[i];
if (pausable.code.length == 0) revert MissingPauserRole(pausable);
if ($.pausables.add(pausable)) {
stateModified = true;
bool hasRole;
try IAccessControl(pausable).hasRole(PAUSER_ROLE, address(this)) returns (
bool result
) {
hasRole = result;
} catch {} // solhint-disable-line no-empty-blocks
if (!hasRole) revert MissingPauserRole(pausable);
emit PausableAdded(pausable);
}
}
if (!stateModified) revert AlreadyUpToDate();
}
function remove(
address[] calldata pausablesRemove
) external override onlyRole(DEFAULT_ADMIN_ROLE) {
Storage storage $ = _storage();
bool stateModified = false;
uint256 length = pausablesRemove.length;
for (uint256 i = 0; i < length; i++) {
address pausable = pausablesRemove[i];
if ($.pausables.remove(pausable)) {
stateModified = true;
emit PausableRemoved(pausable);
}
}
if (!stateModified) revert AlreadyUpToDate();
}
function pauseAll() external override onlyRole(ARKIS_ALERT_OPERATOR_ROLE) {
Storage storage $ = _storage();
bool anyPaused = false;
uint256 length = $.pausables.length();
for (uint256 i = 0; i < length; i++) {
address pausable = $.pausables.at(i);
try IPausable(pausable).pause() {
anyPaused = true;
} catch (bytes memory reason) {
emit FailedToPause(pausable, reason);
}
}
if (!anyPaused) revert AlreadyUpToDate();
}
function unpauseAll() external override onlyRole(ARKIS_SECURITY_OFFICER_ROLE) {
Storage storage $ = _storage();
bool anyUnpaused = false;
uint256 length = $.pausables.length();
for (uint256 i = 0; i < length; i++) {
address pausable = $.pausables.at(i);
try IPausable(pausable).unpause() {
anyUnpaused = true;
} catch (bytes memory reason) {
emit FailedToUnpause(pausable, reason);
}
}
if (!anyUnpaused) revert AlreadyUpToDate();
}
function pausables() external view override returns (address[] memory pausableList) {
Storage storage $ = _storage();
uint256 length = $.pausables.length();
pausableList = new address[](length);
for (uint256 i = 0; i < length; i++) {
pausableList[i] = $.pausables.at(i);
}
return pausableList;
}
function _storage() private pure returns (Storage storage $) {
assembly {
$.slot := STORAGE_SLOT
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)
pragma solidity ^0.8.20;
import {IAccessControl} from "@openzeppelin/contracts/access/IAccessControl.sol";
import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol";
import {ERC165Upgradeable} from "../utils/introspection/ERC165Upgradeable.sol";
import {Initializable} from "../proxy/utils/Initializable.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 AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControl, ERC165Upgradeable {
struct RoleData {
mapping(address account => bool) hasRole;
bytes32 adminRole;
}
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/// @custom:storage-location erc7201:openzeppelin.storage.AccessControl
struct AccessControlStorage {
mapping(bytes32 role => RoleData) _roles;
}
// keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.AccessControl")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant AccessControlStorageLocation = 0x02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800;
function _getAccessControlStorage() private pure returns (AccessControlStorage storage $) {
assembly {
$.slot := AccessControlStorageLocation
}
}
/**
* @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);
_;
}
function __AccessControl_init() internal onlyInitializing {
}
function __AccessControl_init_unchained() internal onlyInitializing {
}
/**
* @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) {
AccessControlStorage storage $ = _getAccessControlStorage();
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) {
AccessControlStorage storage $ = _getAccessControlStorage();
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 {
AccessControlStorage storage $ = _getAccessControlStorage();
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) {
AccessControlStorage storage $ = _getAccessControlStorage();
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) {
AccessControlStorage storage $ = _getAccessControlStorage();
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.0.0) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.20;
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```solidity
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
*
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Storage of the initializable contract.
*
* It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions
* when using with upgradeable contracts.
*
* @custom:storage-location erc7201:openzeppelin.storage.Initializable
*/
struct InitializableStorage {
/**
* @dev Indicates that the contract has been initialized.
*/
uint64 _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool _initializing;
}
// keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;
/**
* @dev The contract is already initialized.
*/
error InvalidInitialization();
/**
* @dev The contract is not initializing.
*/
error NotInitializing();
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint64 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts.
*
* Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any
* number of times. This behavior in the constructor can be useful during testing and is not expected to be used in
* production.
*
* Emits an {Initialized} event.
*/
modifier initializer() {
// solhint-disable-next-line var-name-mixedcase
InitializableStorage storage $ = _getInitializableStorage();
// Cache values to avoid duplicated sloads
bool isTopLevelCall = !$._initializing;
uint64 initialized = $._initialized;
// Allowed calls:
// - initialSetup: the contract is not in the initializing state and no previous version was
// initialized
// - construction: the contract is initialized at version 1 (no reininitialization) and the
// current contract is just being deployed
bool initialSetup = initialized == 0 && isTopLevelCall;
bool construction = initialized == 1 && address(this).code.length == 0;
if (!initialSetup && !construction) {
revert InvalidInitialization();
}
$._initialized = 1;
if (isTopLevelCall) {
$._initializing = true;
}
_;
if (isTopLevelCall) {
$._initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* A reinitializer may be used after the original initialization step. This is essential to configure modules that
* are added through upgrades and that require initialization.
*
* When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
* cannot be nested. If one is invoked in the context of another, execution will revert.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*
* WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.
*
* Emits an {Initialized} event.
*/
modifier reinitializer(uint64 version) {
// solhint-disable-next-line var-name-mixedcase
InitializableStorage storage $ = _getInitializableStorage();
if ($._initializing || $._initialized >= version) {
revert InvalidInitialization();
}
$._initialized = version;
$._initializing = true;
_;
$._initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
_checkInitializing();
_;
}
/**
* @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.
*/
function _checkInitializing() internal view virtual {
if (!_isInitializing()) {
revert NotInitializing();
}
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*
* Emits an {Initialized} event the first time it is successfully executed.
*/
function _disableInitializers() internal virtual {
// solhint-disable-next-line var-name-mixedcase
InitializableStorage storage $ = _getInitializableStorage();
if ($._initializing) {
revert InvalidInitialization();
}
if ($._initialized != type(uint64).max) {
$._initialized = type(uint64).max;
emit Initialized(type(uint64).max);
}
}
/**
* @dev Returns the highest version that has been initialized. See {reinitializer}.
*/
function _getInitializedVersion() internal view returns (uint64) {
return _getInitializableStorage()._initialized;
}
/**
* @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
*/
function _isInitializing() internal view returns (bool) {
return _getInitializableStorage()._initializing;
}
/**
* @dev Returns a pointer to the storage namespace.
*/
// solhint-disable-next-line var-name-mixedcase
function _getInitializableStorage() private pure returns (InitializableStorage storage $) {
assembly {
$.slot := INITIALIZABLE_STORAGE
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol)
pragma solidity ^0.8.20;
import {Initializable} from "../proxy/utils/Initializable.sol";
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import {Initializable} from "../../proxy/utils/Initializable.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);
* }
* ```
*/
abstract contract ERC165Upgradeable is Initializable, IERC165 {
function __ERC165_init() internal onlyInitializing {
}
function __ERC165_init_unchained() internal onlyInitializing {
}
/**
* @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.0) (access/IAccessControl.sol)
pragma solidity ^0.8.20;
/**
* @dev External interface of AccessControl declared to support ERC165 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, 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 `callerConfirmation`.
*/
function renounceRole(bytes32 role, address callerConfirmation) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity ^0.8.20;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```solidity
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position is the index of the value in the `values` array plus 1.
// Position 0 is used to mean a value is not in the set.
mapping(bytes32 value => uint256) _positions;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._positions[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We cache the value's position to prevent multiple reads from the same storage slot
uint256 position = set._positions[value];
if (position != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 valueIndex = position - 1;
uint256 lastIndex = set._values.length - 1;
if (valueIndex != lastIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the lastValue to the index where the value to delete is
set._values[valueIndex] = lastValue;
// Update the tracked position of the lastValue (that was just moved)
set._positions[lastValue] = position;
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the tracked position for the deleted slot
delete set._positions[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._positions[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.22; /** * @notice An error indicating that the amount for the specified token is zero. * @param token The address of the token with a zero amount. */ error AmountMustNotBeZero(address token); /** * @notice An error indicating that an address must not be zero. */ error AddressMustNotBeZero(); /** * @notice An error indicating that an array must not be empty. */ error ArrayMustNotBeEmpty(); /** * @notice An error indicating that an string must not be empty. */ error StringMustNotBeEmpty(); /** * @notice An error indicating storage is already up to date and doesn't need further processing. * @dev This error is thrown when attempting to update an entity(s) that is(are) already up to date. */ error AlreadyUpToDate(); /** * @notice An error indicating that an action is unauthorized for the specified account. * @param account The address of the unauthorized account. */ error UnauthorizedAccount(address account); /** * @notice An error indicating that the min amount out must not be zero. */ error MinAmountOutMustNotBeZero();
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
/**
* @dev Interface for contracts that can be paused or unpaused.
* This interface provides the methods to pause and unpause the contract
* as well as check its paused status. It also includes the definition of
* the `PAUSER_ROLE` that is required to perform the pause/unpause actions.
*/
interface IPausable {
/**
* @notice Pauses the contract.
* @dev Can only be called by an address with the `PAUSER_ROLE`.
* This function will halt any operations that are paused in the contract.
*/
function pause() external;
/**
* @notice Unpauses the contract.
* @dev Can only be called by an address with the `PAUSER_ROLE`.
* This function will resume any operations that were paused in the contract.
*/
function unpause() external;
/**
* @notice Returns whether the contract is paused.
* @return bool True if the contract is paused, false otherwise.
* @dev This function checks the contract's paused status, which is typically
* managed by an internal flag set by the `pause` and `unpause` functions.
*/
function paused() external view returns (bool);
/**
* @notice Returns the role identifier for the `PAUSER_ROLE`.
* @return bytes32 The role identifier for the `PAUSER_ROLE`.
* @dev The `PAUSER_ROLE` is required for the caller to invoke the `pause` or `unpause` functions.
*/
/* solhint-disable-next-line func-name-mixedcase */
function PAUSER_ROLE() external view returns (bytes32);
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.22;
interface IInitializable {
function initialize() external;
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
import {
IAccessControl
} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
/* solhint-disable-next-line no-unused-import */
import {IPausable} from "../base/pauser/IPausable.sol";
/**
* @dev Interface for the Pauser contract, which manages the list of pausable contracts.
* It provides functions for adding/removing contracts from the pausables list, as well as pausing and unpausing them.
* The appropriate roles must be granted to perform these actions.
*/
interface IPauser is IAccessControl {
/**
* @notice Emitted when a contract fails to pause during the operation.
* @param target The address of the contract that failed to pause.
* @param reason The reason why the contract could not be paused.
* @dev Emitted when a target's pause function call fails, either due to a revert or other issues.
*/
event FailedToPause(address target, bytes reason);
/**
* @notice Emitted when a contract fails to unpause during the operation.
* @param target The address of the contract that failed to unpause.
* @param reason The reason why the contract could not be unpaused.
* @dev Emitted when a target's unpause function call fails, either due to a revert or other issues.
*/
event FailedToUnpause(address target, bytes reason);
/**
* @notice Emitted when a contract is successfully added to the list of pausables.
* @param pausable The address of the contract that was added to the pausables list.
*/
event PausableAdded(address pausable);
/**
* @notice Emitted when a contract is successfully removed from the list of pausables.
* @param pausable The address of the contract that was removed from the pausables list.
*/
event PausableRemoved(address pausable);
/**
* @notice Error thrown when the contract does not have the required Pauser role, or if the role check fails.
* @param pausable The address of the contract missing the Pauser role or causing the role check failure.
* @dev Thrown when the role check fails, such as when `hasRole()` is unavailable or the address is not a contract.
*/
error MissingPauserRole(address pausable);
/**
* @notice Registers new pausable contracts
* @param pausablesAdd Array of contract addresses implementing IPausable
* @dev Requires ARKIS_DEPLOYMENT_OPERATOR_ROLE
* @dev Verifies each contract implements ARKIS_ALERT_OPERATOR_ROLE for this contract
*/
function add(address[] calldata pausablesAdd) external;
/**
* @notice Removes multiple contracts from the list of pausables.
* @param pausablesRemove An array of addresses of contracts to remove from the pausables list.
* @dev Requires the caller to have the `DEFAULT_ADMIN_ROLE`.
* @dev Reverts if no contracts are removed.
* Emits `PausableRemoved` for each contract removed successfully.
*/
function remove(address[] calldata pausablesRemove) external;
/**
* @notice Pauses all contracts in the list of pausables.
* @dev Requires the caller to have the `ARKIS_ALERT_OPERATOR_ROLE`.
* Emits `FailedToPause` for each contract that fails to pause.
*/
function pauseAll() external;
/**
* @notice Unpauses all contracts in the list of pausables.
* @dev Requires the caller to have the `DEFAULT_ADMIN_ROLE`.
* Emits `FailedToUnpause` for each contract that fails to unpause.
*/
function unpauseAll() external;
/**
* @notice Returns a list of all pausable contracts.
* @return pausableList An array of addresses of all the pausables.
*/
function pausables() external view returns (address[] memory pausableList);
/* solhint-disable func-name-mixedcase */
/**
* @notice Returns role identifier for deployment operators
* @return bytes32 keccak256 hash of ARKIS_DEPLOYMENT_OPERATOR_ROLE
*/
function ARKIS_DEPLOYMENT_OPERATOR_ROLE() external view returns (bytes32);
/**
* @notice Returns role identifier for pause operators
* @return bytes32 keccak256 hash of ARKIS_ALERT_OPERATOR_ROLE
*/
function ARKIS_ALERT_OPERATOR_ROLE() external view returns (bytes32);
/**
* @notice Returns role identifier for unpause operators
* @return bytes32 keccak256 hash of ARKIS_SECURITY_OFFICER_ROLE
*/
function ARKIS_SECURITY_OFFICER_ROLE() external view returns (bytes32);
/* solhint-enable func-name-mixedcase */
}{
"viaIR": false,
"optimizer": {
"enabled": true,
"runs": 1000000,
"details": {
"yulDetails": {
"optimizerSteps": "u"
}
}
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"AlreadyUpToDate","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[{"internalType":"address","name":"pausable","type":"address"}],"name":"MissingPauserRole","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"bytes","name":"reason","type":"bytes"}],"name":"FailedToPause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"bytes","name":"reason","type":"bytes"}],"name":"FailedToUnpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pausable","type":"address"}],"name":"PausableAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pausable","type":"address"}],"name":"PausableRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"ARKIS_ALERT_OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ARKIS_DEPLOYMENT_OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ARKIS_SECURITY_OFFICER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"pausablesAdd","type":"address[]"}],"name":"add","outputs":[],"stateMutability":"nonpayable","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":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pausables","outputs":[{"internalType":"address[]","name":"pausableList","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"pausablesRemove","type":"address[]"}],"name":"remove","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpauseAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
0x608060405234801561001057600080fd5b506115e7806100206000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80638129fc1c11610097578063a217fddf11610066578063a217fddf14610298578063b19d2e3b146102a0578063c4c1c94f146102c7578063d547741f146102da57600080fd5b80638129fc1c146101fc57806382148a26146102045780638a2ddd031461022b57806391d148541461023357600080fd5b806336568abe116100d357806336568abe146101a757806341300efc146101ba578063595c6a67146101e15780635e4ba17c146101e957600080fd5b806301ffc9a714610105578063030543021461012e578063248a9ca3146101435780632f2ff15d14610192575b600080fd5b610118610113366004611197565b6102ed565b60405161012591906111c0565b60405180910390f35b610136610386565b604051610125919061124d565b61018561015136600461126f565b60009081527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800602052604090206001015490565b6040516101259190611294565b6101a56101a03660046112b6565b610455565b005b6101a56101b53660046112b6565b61049f565b6101857fe9179eb96307255e6478ea65abcc71cb90fabb93c1c745deae86f1c637ba9dda81565b6101a56104fd565b6101a56101f7366004611340565b610681565b6101a5610779565b6101857f5fb674ae70289b1dbd16edde5240ff94955efcda56fc492efe5079e1eadbf7c481565b6101a561092b565b6101186102413660046112b6565b60009182527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b610185600081565b6101857fd0e8b1f9308cbac1a0f6ee2790dc9e85c8e855313c5a6bed3afc3a2532bc6bfa81565b6101a56102d5366004611340565b610a77565b6101a56102e83660046112b6565b610cba565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061038057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60607f929acf3821a6050d52f880f37114dbf3807264791f54a551dfc4c71f9b5c390060006103b482610cfe565b90508067ffffffffffffffff8111156103cf576103cf611388565b6040519080825280602002602001820160405280156103f8578160200160208202803683370190505b50925060005b8181101561044f576104108382610d08565b848281518110610422576104226113b7565b73ffffffffffffffffffffffffffffffffffffffff909216602092830291909101909101526001016103fe565b50505090565b60008281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800602052604090206001015461048f81610d1b565b6104998383610d28565b50505050565b73ffffffffffffffffffffffffffffffffffffffff811633146104ee576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6104f88282610e49565b505050565b7fe9179eb96307255e6478ea65abcc71cb90fabb93c1c745deae86f1c637ba9dda61052781610d1b565b7f929acf3821a6050d52f880f37114dbf3807264791f54a551dfc4c71f9b5c390060008061055483610cfe565b905060005b8181101561064957600061056d8583610d08565b90508073ffffffffffffffffffffffffffffffffffffffff16638456cb596040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156105b757600080fd5b505af19250505080156105c8575060015b61063b573d8080156105f6576040519150601f19603f3d011682016040523d82523d6000602084013e6105fb565b606091505b507feb0f4dd3a41becf1878b22d0b50a882089266abf3a7c882e0bdad8c9d4fa4ddf828260405161062d92919061145a565b60405180910390a150610640565b600193505b50600101610559565b5081610499576040517fde5f46d700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061068c81610d1b565b7f929acf3821a6050d52f880f37114dbf3807264791f54a551dfc4c71f9b5c3900600083815b818110156107395760008787838181106106ce576106ce6113b7565b90506020020160208101906106e39190611482565b90506106ef8582610f27565b1561073057600193507fb0a48303f5301707a7bd5b756b686984a62fbc23474e950e06b9e580afe86ce78160405161072791906114a1565b60405180910390a15b506001016106b2565b5081610771576040517fde5f46d700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156107c45750825b905060008267ffffffffffffffff1660011480156107e15750303b155b9050811580156107ef575080155b15610826576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000016600117855583156108875784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff16680100000000000000001785555b610892600033610d28565b506108bd7fe9179eb96307255e6478ea65abcc71cb90fabb93c1c745deae86f1c637ba9dda33610d28565b5083156109245784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff1685556040517fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29061091b906001906114ca565b60405180910390a15b5050505050565b7fd0e8b1f9308cbac1a0f6ee2790dc9e85c8e855313c5a6bed3afc3a2532bc6bfa61095581610d1b565b7f929acf3821a6050d52f880f37114dbf3807264791f54a551dfc4c71f9b5c390060008061098283610cfe565b905060005b8181101561064957600061099b8583610d08565b90508073ffffffffffffffffffffffffffffffffffffffff16633f4ba83a6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156109e557600080fd5b505af19250505080156109f6575060015b610a69573d808015610a24576040519150601f19603f3d011682016040523d82523d6000602084013e610a29565b606091505b507fbc0ffdd7b46c495b41e36c6f4c10488078e1b9839beedafe181d31b54390e10d8282604051610a5b92919061145a565b60405180910390a150610a6e565b600193505b50600101610987565b7f5fb674ae70289b1dbd16edde5240ff94955efcda56fc492efe5079e1eadbf7c4610aa181610d1b565b7f929acf3821a6050d52f880f37114dbf3807264791f54a551dfc4c71f9b5c3900600083815b81811015610739576000878783818110610ae357610ae36113b7565b9050602002016020810190610af89190611482565b90508073ffffffffffffffffffffffffffffffffffffffff163b600003610b5657806040517f05d7e176000000000000000000000000000000000000000000000000000000008152600401610b4d91906114a1565b60405180910390fd5b610b608582610f49565b15610cb1576040517f91d148540000000000000000000000000000000000000000000000000000000081526001945060009073ffffffffffffffffffffffffffffffffffffffff8316906391d1485490610be0907fba7074597567dce64aca1d040cfab2d94389b1b1db25050380c5aeb78b3cef6c9030906004016114d8565b602060405180830381865afa925050508015610c37575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610c3491810190611506565b60015b15610c3f5790505b80610c7857816040517f05d7e176000000000000000000000000000000000000000000000000000000008152600401610b4d91906114a1565b7fad0f29a9103b372244dd2efa706fe423b3e4db36d6cc3dd1fa195add738aea1c82604051610ca791906114a1565b60405180910390a1505b50600101610ac7565b60008281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020526040902060010154610cf481610d1b565b6104998383610e49565b6000610380825490565b6000610d148383610f6b565b9392505050565b610d258133610f95565b50565b60008281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020818152604080842073ffffffffffffffffffffffffffffffffffffffff8616855290915282205460ff16610e3f5760008481526020828152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610ddb3390565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001915050610380565b6000915050610380565b60008281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020818152604080842073ffffffffffffffffffffffffffffffffffffffff8616855290915282205460ff1615610e3f5760008481526020828152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a46001915050610380565b6000610d148373ffffffffffffffffffffffffffffffffffffffff8416611025565b6000610d148373ffffffffffffffffffffffffffffffffffffffff841661110e565b6000826000018281548110610f8257610f826113b7565b9060005260206000200154905092915050565b60008281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166110215780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401610b4d929190611525565b5050565b60008181526001830160205260408120548015610e3f57600061104960018361156f565b855490915060009061105d9060019061156f565b90508082146110c257600086600001828154811061107d5761107d6113b7565b90600052602060002001549050808760000184815481106110a0576110a06113b7565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806110d3576110d3611582565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610380565b600081815260018301602052604081205461115557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610380565b506000610380565b7fffffffff0000000000000000000000000000000000000000000000000000000081165b8114610d2557600080fd5b80356103808161115d565b6000602082840312156111ac576111ac600080fd5b610d14838361118c565b8015155b82525050565b6020810161038082846111b6565b600073ffffffffffffffffffffffffffffffffffffffff8216610380565b6111ba816111ce565b6111ff82826111ec565b5060200190565b6000611210825190565b808452602093840193830160005b8281101561124357815161123287826111f5565b96505060208201915060010161121e565b5093949350505050565b60208082528101610d148184611206565b80611181565b80356103808161125e565b60006020828403121561128457611284600080fd5b610d148383611264565b806111ba565b60208101610380828461128e565b611181816111ce565b8035610380816112a2565b600080604083850312156112cc576112cc600080fd5b6112d68484611264565b91506112e584602085016112ab565b90509250929050565b60008083601f84011261130357611303600080fd5b50813567ffffffffffffffff81111561131e5761131e600080fd5b60208301915083602082028301111561133957611339600080fd5b9250929050565b6000806020838503121561135657611356600080fd5b823567ffffffffffffffff81111561137057611370600080fd5b61137c858286016112ee565b92509250509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60005b838110156114015781810151838201526020016113e9565b50506000910152565b6000611414825190565b80845260208401935061142b8185602086016113e6565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920192915050565b6040810161146882856111ec565b818103602083015261147a818461140a565b949350505050565b60006020828403121561149757611497600080fd5b610d1483836112ab565b6020810161038082846111ec565b600067ffffffffffffffff8216610380565b6111ba816114af565b6020810161038082846114c1565b604081016114e6828561128e565b610d1460208301846111ec565b801515611181565b8051610380816114f3565b60006020828403121561151b5761151b600080fd5b610d1483836114fb565b6040810161153382856111ec565b610d14602083018461128e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561038057610380611540565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220614e9fa9e77eb99fc8bd4bee814acb961803f5363e538cf9577b6f77c612ff7b64736f6c63430008160033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101005760003560e01c80638129fc1c11610097578063a217fddf11610066578063a217fddf14610298578063b19d2e3b146102a0578063c4c1c94f146102c7578063d547741f146102da57600080fd5b80638129fc1c146101fc57806382148a26146102045780638a2ddd031461022b57806391d148541461023357600080fd5b806336568abe116100d357806336568abe146101a757806341300efc146101ba578063595c6a67146101e15780635e4ba17c146101e957600080fd5b806301ffc9a714610105578063030543021461012e578063248a9ca3146101435780632f2ff15d14610192575b600080fd5b610118610113366004611197565b6102ed565b60405161012591906111c0565b60405180910390f35b610136610386565b604051610125919061124d565b61018561015136600461126f565b60009081527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800602052604090206001015490565b6040516101259190611294565b6101a56101a03660046112b6565b610455565b005b6101a56101b53660046112b6565b61049f565b6101857fe9179eb96307255e6478ea65abcc71cb90fabb93c1c745deae86f1c637ba9dda81565b6101a56104fd565b6101a56101f7366004611340565b610681565b6101a5610779565b6101857f5fb674ae70289b1dbd16edde5240ff94955efcda56fc492efe5079e1eadbf7c481565b6101a561092b565b6101186102413660046112b6565b60009182527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b610185600081565b6101857fd0e8b1f9308cbac1a0f6ee2790dc9e85c8e855313c5a6bed3afc3a2532bc6bfa81565b6101a56102d5366004611340565b610a77565b6101a56102e83660046112b6565b610cba565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061038057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60607f929acf3821a6050d52f880f37114dbf3807264791f54a551dfc4c71f9b5c390060006103b482610cfe565b90508067ffffffffffffffff8111156103cf576103cf611388565b6040519080825280602002602001820160405280156103f8578160200160208202803683370190505b50925060005b8181101561044f576104108382610d08565b848281518110610422576104226113b7565b73ffffffffffffffffffffffffffffffffffffffff909216602092830291909101909101526001016103fe565b50505090565b60008281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800602052604090206001015461048f81610d1b565b6104998383610d28565b50505050565b73ffffffffffffffffffffffffffffffffffffffff811633146104ee576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6104f88282610e49565b505050565b7fe9179eb96307255e6478ea65abcc71cb90fabb93c1c745deae86f1c637ba9dda61052781610d1b565b7f929acf3821a6050d52f880f37114dbf3807264791f54a551dfc4c71f9b5c390060008061055483610cfe565b905060005b8181101561064957600061056d8583610d08565b90508073ffffffffffffffffffffffffffffffffffffffff16638456cb596040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156105b757600080fd5b505af19250505080156105c8575060015b61063b573d8080156105f6576040519150601f19603f3d011682016040523d82523d6000602084013e6105fb565b606091505b507feb0f4dd3a41becf1878b22d0b50a882089266abf3a7c882e0bdad8c9d4fa4ddf828260405161062d92919061145a565b60405180910390a150610640565b600193505b50600101610559565b5081610499576040517fde5f46d700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061068c81610d1b565b7f929acf3821a6050d52f880f37114dbf3807264791f54a551dfc4c71f9b5c3900600083815b818110156107395760008787838181106106ce576106ce6113b7565b90506020020160208101906106e39190611482565b90506106ef8582610f27565b1561073057600193507fb0a48303f5301707a7bd5b756b686984a62fbc23474e950e06b9e580afe86ce78160405161072791906114a1565b60405180910390a15b506001016106b2565b5081610771576040517fde5f46d700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156107c45750825b905060008267ffffffffffffffff1660011480156107e15750303b155b9050811580156107ef575080155b15610826576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000016600117855583156108875784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff16680100000000000000001785555b610892600033610d28565b506108bd7fe9179eb96307255e6478ea65abcc71cb90fabb93c1c745deae86f1c637ba9dda33610d28565b5083156109245784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff1685556040517fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29061091b906001906114ca565b60405180910390a15b5050505050565b7fd0e8b1f9308cbac1a0f6ee2790dc9e85c8e855313c5a6bed3afc3a2532bc6bfa61095581610d1b565b7f929acf3821a6050d52f880f37114dbf3807264791f54a551dfc4c71f9b5c390060008061098283610cfe565b905060005b8181101561064957600061099b8583610d08565b90508073ffffffffffffffffffffffffffffffffffffffff16633f4ba83a6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156109e557600080fd5b505af19250505080156109f6575060015b610a69573d808015610a24576040519150601f19603f3d011682016040523d82523d6000602084013e610a29565b606091505b507fbc0ffdd7b46c495b41e36c6f4c10488078e1b9839beedafe181d31b54390e10d8282604051610a5b92919061145a565b60405180910390a150610a6e565b600193505b50600101610987565b7f5fb674ae70289b1dbd16edde5240ff94955efcda56fc492efe5079e1eadbf7c4610aa181610d1b565b7f929acf3821a6050d52f880f37114dbf3807264791f54a551dfc4c71f9b5c3900600083815b81811015610739576000878783818110610ae357610ae36113b7565b9050602002016020810190610af89190611482565b90508073ffffffffffffffffffffffffffffffffffffffff163b600003610b5657806040517f05d7e176000000000000000000000000000000000000000000000000000000008152600401610b4d91906114a1565b60405180910390fd5b610b608582610f49565b15610cb1576040517f91d148540000000000000000000000000000000000000000000000000000000081526001945060009073ffffffffffffffffffffffffffffffffffffffff8316906391d1485490610be0907fba7074597567dce64aca1d040cfab2d94389b1b1db25050380c5aeb78b3cef6c9030906004016114d8565b602060405180830381865afa925050508015610c37575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610c3491810190611506565b60015b15610c3f5790505b80610c7857816040517f05d7e176000000000000000000000000000000000000000000000000000000008152600401610b4d91906114a1565b7fad0f29a9103b372244dd2efa706fe423b3e4db36d6cc3dd1fa195add738aea1c82604051610ca791906114a1565b60405180910390a1505b50600101610ac7565b60008281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020526040902060010154610cf481610d1b565b6104998383610e49565b6000610380825490565b6000610d148383610f6b565b9392505050565b610d258133610f95565b50565b60008281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020818152604080842073ffffffffffffffffffffffffffffffffffffffff8616855290915282205460ff16610e3f5760008481526020828152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610ddb3390565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001915050610380565b6000915050610380565b60008281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020818152604080842073ffffffffffffffffffffffffffffffffffffffff8616855290915282205460ff1615610e3f5760008481526020828152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a46001915050610380565b6000610d148373ffffffffffffffffffffffffffffffffffffffff8416611025565b6000610d148373ffffffffffffffffffffffffffffffffffffffff841661110e565b6000826000018281548110610f8257610f826113b7565b9060005260206000200154905092915050565b60008281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166110215780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401610b4d929190611525565b5050565b60008181526001830160205260408120548015610e3f57600061104960018361156f565b855490915060009061105d9060019061156f565b90508082146110c257600086600001828154811061107d5761107d6113b7565b90600052602060002001549050808760000184815481106110a0576110a06113b7565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806110d3576110d3611582565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610380565b600081815260018301602052604081205461115557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610380565b506000610380565b7fffffffff0000000000000000000000000000000000000000000000000000000081165b8114610d2557600080fd5b80356103808161115d565b6000602082840312156111ac576111ac600080fd5b610d14838361118c565b8015155b82525050565b6020810161038082846111b6565b600073ffffffffffffffffffffffffffffffffffffffff8216610380565b6111ba816111ce565b6111ff82826111ec565b5060200190565b6000611210825190565b808452602093840193830160005b8281101561124357815161123287826111f5565b96505060208201915060010161121e565b5093949350505050565b60208082528101610d148184611206565b80611181565b80356103808161125e565b60006020828403121561128457611284600080fd5b610d148383611264565b806111ba565b60208101610380828461128e565b611181816111ce565b8035610380816112a2565b600080604083850312156112cc576112cc600080fd5b6112d68484611264565b91506112e584602085016112ab565b90509250929050565b60008083601f84011261130357611303600080fd5b50813567ffffffffffffffff81111561131e5761131e600080fd5b60208301915083602082028301111561133957611339600080fd5b9250929050565b6000806020838503121561135657611356600080fd5b823567ffffffffffffffff81111561137057611370600080fd5b61137c858286016112ee565b92509250509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60005b838110156114015781810151838201526020016113e9565b50506000910152565b6000611414825190565b80845260208401935061142b8185602086016113e6565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920192915050565b6040810161146882856111ec565b818103602083015261147a818461140a565b949350505050565b60006020828403121561149757611497600080fd5b610d1483836112ab565b6020810161038082846111ec565b600067ffffffffffffffff8216610380565b6111ba816114af565b6020810161038082846114c1565b604081016114e6828561128e565b610d1460208301846111ec565b801515611181565b8051610380816114f3565b60006020828403121561151b5761151b600080fd5b610d1483836114fb565b6040810161153382856111ec565b610d14602083018461128e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561038057610380611540565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220614e9fa9e77eb99fc8bd4bee814acb961803f5363e538cf9577b6f77c612ff7b64736f6c63430008160033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 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.