Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 11 from a total of 11 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Execute Batch | 22051680 | 68 days ago | IN | 0 ETH | 0.00071815 | ||||
Schedule Batch | 21991292 | 76 days ago | IN | 0 ETH | 0.00048192 | ||||
Transfer | 21991180 | 76 days ago | IN | 0 ETH | 0.00003789 | ||||
Schedule Batch | 21990696 | 76 days ago | IN | 0 ETH | 0.00025796 | ||||
Execute | 21320097 | 170 days ago | IN | 0 ETH | 0.00075271 | ||||
Execute | 20891011 | 230 days ago | IN | 0 ETH | 0.00022915 | ||||
Execute | 20890981 | 230 days ago | IN | 0 ETH | 0.00067485 | ||||
Execute | 20662831 | 262 days ago | IN | 0 ETH | 0.00044249 | ||||
Execute Batch | 20620078 | 268 days ago | IN | 0 ETH | 0.00020621 | ||||
Execute Batch | 20613585 | 269 days ago | IN | 0 ETH | 0.00091627 | ||||
Execute | 20612491 | 269 days ago | IN | 0 ETH | 0.00023204 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
0x60806040 | 20414367 | 296 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
MAHATimelockController
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 1000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 // ███╗ ███╗ █████╗ ██╗ ██╗ █████╗ // ████╗ ████║██╔══██╗██║ ██║██╔══██╗ // ██╔████╔██║███████║███████║███████║ // ██║╚██╔╝██║██╔══██║██╔══██║██╔══██║ // ██║ ╚═╝ ██║██║ ██║██║ ██║██║ ██║ // ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ // Website: https://maha.xyz // Discord: https://discord.gg/mahadao // Twitter: https://twitter.com/mahaxyz_ pragma solidity 0.8.21; import { AccessControl, AccessControlEnumerable } from "@openzeppelin/contracts/access/extensions/AccessControlEnumerable.sol"; import {TimelockController} from "@openzeppelin/contracts/governance/TimelockController.sol"; import {IERC1155Receiver} from "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"; import {IERC721Receiver} from "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import {Address} from "@openzeppelin/contracts/utils/Address.sol"; contract MAHATimelockController is AccessControlEnumerable, TimelockController { constructor( uint256 minDelay, address admin, address[] memory proposers ) TimelockController(minDelay, proposers, proposers, admin) { _grantRole(EXECUTOR_ROLE, address(0)); } function _grantRole( bytes32 role, address account ) internal virtual override (AccessControlEnumerable, AccessControl) returns (bool) { return super._grantRole(role, account); } function _revokeRole( bytes32 role, address account ) internal override (AccessControlEnumerable, AccessControl) returns (bool) { return super._revokeRole(role, account); } function supportsInterface(bytes4 interfaceId) public view override (AccessControlEnumerable, TimelockController) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol) pragma solidity ^0.8.20; import {IAccessControl} from "./IAccessControl.sol"; import {Context} from "../utils/Context.sol"; import {ERC165} from "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ```solidity * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ```solidity * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address account => bool) hasRole; bytes32 adminRole; } mapping(bytes32 role => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with an {AccessControlUnauthorizedAccount} error including the required role. */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual returns (bool) { return _roles[role].hasRole[account]; } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()` * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier. */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account` * is missing `role`. */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert AccessControlUnauthorizedAccount(account, role); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address callerConfirmation) public virtual { if (callerConfirmation != _msgSender()) { revert AccessControlBadConfirmation(); } _revokeRole(role, callerConfirmation); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual returns (bool) { if (!hasRole(role, account)) { _roles[role].hasRole[account] = true; emit RoleGranted(role, account, _msgSender()); return true; } else { return false; } } /** * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual returns (bool) { if (hasRole(role, account)) { _roles[role].hasRole[account] = false; emit RoleRevoked(role, account, _msgSender()); return true; } else { return false; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/extensions/AccessControlEnumerable.sol) pragma solidity ^0.8.20; import {IAccessControlEnumerable} from "./IAccessControlEnumerable.sol"; import {AccessControl} from "../AccessControl.sol"; import {EnumerableSet} from "../../utils/structs/EnumerableSet.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 role => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view virtual returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view virtual returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {AccessControl-_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override returns (bool) { bool granted = super._grantRole(role, account); if (granted) { _roleMembers[role].add(account); } return granted; } /** * @dev Overload {AccessControl-_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override returns (bool) { bool revoked = super._revokeRole(role, account); if (revoked) { _roleMembers[role].remove(account); } return revoked; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/extensions/IAccessControlEnumerable.sol) pragma solidity ^0.8.20; import {IAccessControl} from "../IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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) (governance/TimelockController.sol) pragma solidity ^0.8.20; import {AccessControl} from "../access/AccessControl.sol"; import {ERC721Holder} from "../token/ERC721/utils/ERC721Holder.sol"; import {ERC1155Holder} from "../token/ERC1155/utils/ERC1155Holder.sol"; import {Address} from "../utils/Address.sol"; /** * @dev Contract module which acts as a timelocked controller. When set as the * owner of an `Ownable` smart contract, it enforces a timelock on all * `onlyOwner` maintenance operations. This gives time for users of the * controlled contract to exit before a potentially dangerous maintenance * operation is applied. * * By default, this contract is self administered, meaning administration tasks * have to go through the timelock process. The proposer (resp executor) role * is in charge of proposing (resp executing) operations. A common use case is * to position this {TimelockController} as the owner of a smart contract, with * a multisig or a DAO as the sole proposer. */ contract TimelockController is AccessControl, ERC721Holder, ERC1155Holder { bytes32 public constant PROPOSER_ROLE = keccak256("PROPOSER_ROLE"); bytes32 public constant EXECUTOR_ROLE = keccak256("EXECUTOR_ROLE"); bytes32 public constant CANCELLER_ROLE = keccak256("CANCELLER_ROLE"); uint256 internal constant _DONE_TIMESTAMP = uint256(1); mapping(bytes32 id => uint256) private _timestamps; uint256 private _minDelay; enum OperationState { Unset, Waiting, Ready, Done } /** * @dev Mismatch between the parameters length for an operation call. */ error TimelockInvalidOperationLength(uint256 targets, uint256 payloads, uint256 values); /** * @dev The schedule operation doesn't meet the minimum delay. */ error TimelockInsufficientDelay(uint256 delay, uint256 minDelay); /** * @dev The current state of an operation is not as required. * The `expectedStates` is a bitmap with the bits enabled for each OperationState enum position * counting from right to left. * * See {_encodeStateBitmap}. */ error TimelockUnexpectedOperationState(bytes32 operationId, bytes32 expectedStates); /** * @dev The predecessor to an operation not yet done. */ error TimelockUnexecutedPredecessor(bytes32 predecessorId); /** * @dev The caller account is not authorized. */ error TimelockUnauthorizedCaller(address caller); /** * @dev Emitted when a call is scheduled as part of operation `id`. */ event CallScheduled( bytes32 indexed id, uint256 indexed index, address target, uint256 value, bytes data, bytes32 predecessor, uint256 delay ); /** * @dev Emitted when a call is performed as part of operation `id`. */ event CallExecuted(bytes32 indexed id, uint256 indexed index, address target, uint256 value, bytes data); /** * @dev Emitted when new proposal is scheduled with non-zero salt. */ event CallSalt(bytes32 indexed id, bytes32 salt); /** * @dev Emitted when operation `id` is cancelled. */ event Cancelled(bytes32 indexed id); /** * @dev Emitted when the minimum delay for future operations is modified. */ event MinDelayChange(uint256 oldDuration, uint256 newDuration); /** * @dev Initializes the contract with the following parameters: * * - `minDelay`: initial minimum delay in seconds for operations * - `proposers`: accounts to be granted proposer and canceller roles * - `executors`: accounts to be granted executor role * - `admin`: optional account to be granted admin role; disable with zero address * * IMPORTANT: The optional admin can aid with initial configuration of roles after deployment * without being subject to delay, but this role should be subsequently renounced in favor of * administration through timelocked proposals. Previous versions of this contract would assign * this admin to the deployer automatically and should be renounced as well. */ constructor(uint256 minDelay, address[] memory proposers, address[] memory executors, address admin) { // self administration _grantRole(DEFAULT_ADMIN_ROLE, address(this)); // optional admin if (admin != address(0)) { _grantRole(DEFAULT_ADMIN_ROLE, admin); } // register proposers and cancellers for (uint256 i = 0; i < proposers.length; ++i) { _grantRole(PROPOSER_ROLE, proposers[i]); _grantRole(CANCELLER_ROLE, proposers[i]); } // register executors for (uint256 i = 0; i < executors.length; ++i) { _grantRole(EXECUTOR_ROLE, executors[i]); } _minDelay = minDelay; emit MinDelayChange(0, minDelay); } /** * @dev Modifier to make a function callable only by a certain role. In * addition to checking the sender's role, `address(0)` 's role is also * considered. Granting a role to `address(0)` is equivalent to enabling * this role for everyone. */ modifier onlyRoleOrOpenRole(bytes32 role) { if (!hasRole(role, address(0))) { _checkRole(role, _msgSender()); } _; } /** * @dev Contract might receive/hold ETH as part of the maintenance process. */ receive() external payable {} /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface( bytes4 interfaceId ) public view virtual override(AccessControl, ERC1155Holder) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev Returns whether an id corresponds to a registered operation. This * includes both Waiting, Ready, and Done operations. */ function isOperation(bytes32 id) public view returns (bool) { return getOperationState(id) != OperationState.Unset; } /** * @dev Returns whether an operation is pending or not. Note that a "pending" operation may also be "ready". */ function isOperationPending(bytes32 id) public view returns (bool) { OperationState state = getOperationState(id); return state == OperationState.Waiting || state == OperationState.Ready; } /** * @dev Returns whether an operation is ready for execution. Note that a "ready" operation is also "pending". */ function isOperationReady(bytes32 id) public view returns (bool) { return getOperationState(id) == OperationState.Ready; } /** * @dev Returns whether an operation is done or not. */ function isOperationDone(bytes32 id) public view returns (bool) { return getOperationState(id) == OperationState.Done; } /** * @dev Returns the timestamp at which an operation becomes ready (0 for * unset operations, 1 for done operations). */ function getTimestamp(bytes32 id) public view virtual returns (uint256) { return _timestamps[id]; } /** * @dev Returns operation state. */ function getOperationState(bytes32 id) public view virtual returns (OperationState) { uint256 timestamp = getTimestamp(id); if (timestamp == 0) { return OperationState.Unset; } else if (timestamp == _DONE_TIMESTAMP) { return OperationState.Done; } else if (timestamp > block.timestamp) { return OperationState.Waiting; } else { return OperationState.Ready; } } /** * @dev Returns the minimum delay in seconds for an operation to become valid. * * This value can be changed by executing an operation that calls `updateDelay`. */ function getMinDelay() public view virtual returns (uint256) { return _minDelay; } /** * @dev Returns the identifier of an operation containing a single * transaction. */ function hashOperation( address target, uint256 value, bytes calldata data, bytes32 predecessor, bytes32 salt ) public pure virtual returns (bytes32) { return keccak256(abi.encode(target, value, data, predecessor, salt)); } /** * @dev Returns the identifier of an operation containing a batch of * transactions. */ function hashOperationBatch( address[] calldata targets, uint256[] calldata values, bytes[] calldata payloads, bytes32 predecessor, bytes32 salt ) public pure virtual returns (bytes32) { return keccak256(abi.encode(targets, values, payloads, predecessor, salt)); } /** * @dev Schedule an operation containing a single transaction. * * Emits {CallSalt} if salt is nonzero, and {CallScheduled}. * * Requirements: * * - the caller must have the 'proposer' role. */ function schedule( address target, uint256 value, bytes calldata data, bytes32 predecessor, bytes32 salt, uint256 delay ) public virtual onlyRole(PROPOSER_ROLE) { bytes32 id = hashOperation(target, value, data, predecessor, salt); _schedule(id, delay); emit CallScheduled(id, 0, target, value, data, predecessor, delay); if (salt != bytes32(0)) { emit CallSalt(id, salt); } } /** * @dev Schedule an operation containing a batch of transactions. * * Emits {CallSalt} if salt is nonzero, and one {CallScheduled} event per transaction in the batch. * * Requirements: * * - the caller must have the 'proposer' role. */ function scheduleBatch( address[] calldata targets, uint256[] calldata values, bytes[] calldata payloads, bytes32 predecessor, bytes32 salt, uint256 delay ) public virtual onlyRole(PROPOSER_ROLE) { if (targets.length != values.length || targets.length != payloads.length) { revert TimelockInvalidOperationLength(targets.length, payloads.length, values.length); } bytes32 id = hashOperationBatch(targets, values, payloads, predecessor, salt); _schedule(id, delay); for (uint256 i = 0; i < targets.length; ++i) { emit CallScheduled(id, i, targets[i], values[i], payloads[i], predecessor, delay); } if (salt != bytes32(0)) { emit CallSalt(id, salt); } } /** * @dev Schedule an operation that is to become valid after a given delay. */ function _schedule(bytes32 id, uint256 delay) private { if (isOperation(id)) { revert TimelockUnexpectedOperationState(id, _encodeStateBitmap(OperationState.Unset)); } uint256 minDelay = getMinDelay(); if (delay < minDelay) { revert TimelockInsufficientDelay(delay, minDelay); } _timestamps[id] = block.timestamp + delay; } /** * @dev Cancel an operation. * * Requirements: * * - the caller must have the 'canceller' role. */ function cancel(bytes32 id) public virtual onlyRole(CANCELLER_ROLE) { if (!isOperationPending(id)) { revert TimelockUnexpectedOperationState( id, _encodeStateBitmap(OperationState.Waiting) | _encodeStateBitmap(OperationState.Ready) ); } delete _timestamps[id]; emit Cancelled(id); } /** * @dev Execute an (ready) operation containing a single transaction. * * Emits a {CallExecuted} event. * * Requirements: * * - the caller must have the 'executor' role. */ // This function can reenter, but it doesn't pose a risk because _afterCall checks that the proposal is pending, // thus any modifications to the operation during reentrancy should be caught. // slither-disable-next-line reentrancy-eth function execute( address target, uint256 value, bytes calldata payload, bytes32 predecessor, bytes32 salt ) public payable virtual onlyRoleOrOpenRole(EXECUTOR_ROLE) { bytes32 id = hashOperation(target, value, payload, predecessor, salt); _beforeCall(id, predecessor); _execute(target, value, payload); emit CallExecuted(id, 0, target, value, payload); _afterCall(id); } /** * @dev Execute an (ready) operation containing a batch of transactions. * * Emits one {CallExecuted} event per transaction in the batch. * * Requirements: * * - the caller must have the 'executor' role. */ // This function can reenter, but it doesn't pose a risk because _afterCall checks that the proposal is pending, // thus any modifications to the operation during reentrancy should be caught. // slither-disable-next-line reentrancy-eth function executeBatch( address[] calldata targets, uint256[] calldata values, bytes[] calldata payloads, bytes32 predecessor, bytes32 salt ) public payable virtual onlyRoleOrOpenRole(EXECUTOR_ROLE) { if (targets.length != values.length || targets.length != payloads.length) { revert TimelockInvalidOperationLength(targets.length, payloads.length, values.length); } bytes32 id = hashOperationBatch(targets, values, payloads, predecessor, salt); _beforeCall(id, predecessor); for (uint256 i = 0; i < targets.length; ++i) { address target = targets[i]; uint256 value = values[i]; bytes calldata payload = payloads[i]; _execute(target, value, payload); emit CallExecuted(id, i, target, value, payload); } _afterCall(id); } /** * @dev Execute an operation's call. */ function _execute(address target, uint256 value, bytes calldata data) internal virtual { (bool success, bytes memory returndata) = target.call{value: value}(data); Address.verifyCallResult(success, returndata); } /** * @dev Checks before execution of an operation's calls. */ function _beforeCall(bytes32 id, bytes32 predecessor) private view { if (!isOperationReady(id)) { revert TimelockUnexpectedOperationState(id, _encodeStateBitmap(OperationState.Ready)); } if (predecessor != bytes32(0) && !isOperationDone(predecessor)) { revert TimelockUnexecutedPredecessor(predecessor); } } /** * @dev Checks after execution of an operation's calls. */ function _afterCall(bytes32 id) private { if (!isOperationReady(id)) { revert TimelockUnexpectedOperationState(id, _encodeStateBitmap(OperationState.Ready)); } _timestamps[id] = _DONE_TIMESTAMP; } /** * @dev Changes the minimum timelock duration for future operations. * * Emits a {MinDelayChange} event. * * Requirements: * * - the caller must be the timelock itself. This can only be achieved by scheduling and later executing * an operation where the timelock is the target and the data is the ABI-encoded call to this function. */ function updateDelay(uint256 newDelay) external virtual { address sender = _msgSender(); if (sender != address(this)) { revert TimelockUnauthorizedCaller(sender); } emit MinDelayChange(_minDelay, newDelay); _minDelay = newDelay; } /** * @dev Encodes a `OperationState` into a `bytes32` representation where each bit enabled corresponds to * the underlying position in the `OperationState` enum. For example: * * 0x000...1000 * ^^^^^^----- ... * ^---- Done * ^--- Ready * ^-- Waiting * ^- Unset */ function _encodeStateBitmap(OperationState operationState) internal pure returns (bytes32) { return bytes32(1 << uint8(operationState)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Interface that must be implemented by smart contracts in order to receive * ERC-1155 token transfers. */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/utils/ERC1155Holder.sol) pragma solidity ^0.8.20; import {IERC165, ERC165} from "../../../utils/introspection/ERC165.sol"; import {IERC1155Receiver} from "../IERC1155Receiver.sol"; /** * @dev Simple implementation of `IERC1155Receiver` that will allow a contract to hold ERC1155 tokens. * * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be * stuck. */ abstract contract ERC1155Holder is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.20; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be * reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/utils/ERC721Holder.sol) pragma solidity ^0.8.20; import {IERC721Receiver} from "../IERC721Receiver.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or * {IERC721-setApprovalForAll}. */ abstract contract ERC721Holder is IERC721Receiver { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received(address, address, uint256, bytes memory) public virtual returns (bytes4) { return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert FailedInnerCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.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 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 ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.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; } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"minDelay","type":"uint256"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address[]","name":"proposers","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"uint256","name":"delay","type":"uint256"},{"internalType":"uint256","name":"minDelay","type":"uint256"}],"name":"TimelockInsufficientDelay","type":"error"},{"inputs":[{"internalType":"uint256","name":"targets","type":"uint256"},{"internalType":"uint256","name":"payloads","type":"uint256"},{"internalType":"uint256","name":"values","type":"uint256"}],"name":"TimelockInvalidOperationLength","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"TimelockUnauthorizedCaller","type":"error"},{"inputs":[{"internalType":"bytes32","name":"predecessorId","type":"bytes32"}],"name":"TimelockUnexecutedPredecessor","type":"error"},{"inputs":[{"internalType":"bytes32","name":"operationId","type":"bytes32"},{"internalType":"bytes32","name":"expectedStates","type":"bytes32"}],"name":"TimelockUnexpectedOperationState","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"CallExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"CallSalt","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes32","name":"predecessor","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"delay","type":"uint256"}],"name":"CallScheduled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"Cancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldDuration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"MinDelayChange","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":"CANCELLER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EXECUTOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROPOSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"payload","type":"bytes"},{"internalType":"bytes32","name":"predecessor","type":"bytes32"},{"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"execute","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes[]","name":"payloads","type":"bytes[]"},{"internalType":"bytes32","name":"predecessor","type":"bytes32"},{"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"executeBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getMinDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"getOperationState","outputs":[{"internalType":"enum TimelockController.OperationState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"getTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes32","name":"predecessor","type":"bytes32"},{"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"hashOperation","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes[]","name":"payloads","type":"bytes[]"},{"internalType":"bytes32","name":"predecessor","type":"bytes32"},{"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"hashOperationBatch","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"isOperation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"isOperationDone","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"isOperationPending","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"isOperationReady","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"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":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes32","name":"predecessor","type":"bytes32"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256","name":"delay","type":"uint256"}],"name":"schedule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes[]","name":"payloads","type":"bytes[]"},{"internalType":"bytes32","name":"predecessor","type":"bytes32"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256","name":"delay","type":"uint256"}],"name":"scheduleBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newDelay","type":"uint256"}],"name":"updateDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620024b6380380620024b6833981016040819052620000349162000356565b8281808462000045600030620001ca565b506001600160a01b03811615620000655762000063600082620001ca565b505b60005b83518110156200010f57620000c07fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1858381518110620000ac57620000ac62000447565b6020026020010151620001ca60201b60201c565b50620000fb7ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f783858381518110620000ac57620000ac62000447565b5062000107816200045d565b905062000068565b5060005b82518110156200015a576200014660008051602062002496833981519152848381518110620000ac57620000ac62000447565b5062000152816200045d565b905062000113565b5060038490556040805160008152602081018690527f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5910160405180910390a150505050620001c0600080516020620024968339815191526000620001ca60201b60201c565b5050505062000485565b6000620001d88383620001e1565b90505b92915050565b600080620001f084846200021b565b90508015620001d8576000848152600160205260409020620002139084620002c9565b509392505050565b6000828152602081815260408083206001600160a01b038516845290915281205460ff16620002c0576000838152602081815260408083206001600160a01b03861684529091529020805460ff19166001179055620002773390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001620001db565b506000620001db565b6000620001d8836001600160a01b0384166000818152600183016020526040812054620002c057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620001db565b80516001600160a01b03811681146200033b57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156200036c57600080fd5b8351925060206200037f81860162000323565b60408601519093506001600160401b03808211156200039d57600080fd5b818701915087601f830112620003b257600080fd5b815181811115620003c757620003c762000340565b8060051b604051601f19603f83011681018181108582111715620003ef57620003ef62000340565b60405291825284820192508381018501918a8311156200040e57600080fd5b938501935b828510156200043757620004278562000323565b8452938501939285019262000413565b8096505050505050509250925092565b634e487b7160e01b600052603260045260246000fd5b6000600182016200047e57634e487b7160e01b600052601160045260246000fd5b5060010190565b61200180620004956000396000f3fe6080604052600436106101d15760003560e01c80638f2a0bb0116100f7578063bc197c8111610095578063d547741f11610064578063d547741f1461062e578063e38335e51461064e578063f23a6e6114610661578063f27a0c92146106a657600080fd5b8063bc197c811461057c578063c4d252f5146105c1578063ca15c873146105e1578063d45c44351461060157600080fd5b806391d14854116100d157806391d14854146104cf578063a217fddf14610513578063b08e51c014610528578063b1c5f4271461055c57600080fd5b80638f2a0bb0146104435780638f61f4f5146104635780639010d07c1461049757600080fd5b80632ab0f5291161016f578063584b153e1161013e578063584b153e146103b657806364d62353146103d65780637958004c146103f65780638065657f1461042357600080fd5b80632ab0f529146103365780632f2ff15d1461035657806331d507501461037657806336568abe1461039657600080fd5b8063134008d3116101ab578063134008d31461027657806313bc9f2014610289578063150b7a02146102a9578063248a9ca31461030657600080fd5b806301d5062a146101dd57806301ffc9a7146101ff57806307bd02651461023457600080fd5b366101d857005b600080fd5b3480156101e957600080fd5b506101fd6101f83660046116f0565b6106bb565b005b34801561020b57600080fd5b5061021f61021a366004611765565b610791565b60405190151581526020015b60405180910390f35b34801561024057600080fd5b506102687fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e6381565b60405190815260200161022b565b6101fd61028436600461178f565b6107a2565b34801561029557600080fd5b5061021f6102a43660046117fb565b61089a565b3480156102b557600080fd5b506102ed6102c43660046118cb565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040516001600160e01b0319909116815260200161022b565b34801561031257600080fd5b506102686103213660046117fb565b60009081526020819052604090206001015490565b34801561034257600080fd5b5061021f6103513660046117fb565b6108c0565b34801561036257600080fd5b506101fd610371366004611933565b6108c9565b34801561038257600080fd5b5061021f6103913660046117fb565b6108f4565b3480156103a257600080fd5b506101fd6103b1366004611933565b610919565b3480156103c257600080fd5b5061021f6103d13660046117fb565b61096a565b3480156103e257600080fd5b506101fd6103f13660046117fb565b6109b0565b34801561040257600080fd5b506104166104113660046117fb565b610a3c565b60405161022b9190611975565b34801561042f57600080fd5b5061026861043e36600461178f565b610a87565b34801561044f57600080fd5b506101fd61045e3660046119e2565b610ac6565b34801561046f57600080fd5b506102687fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc181565b3480156104a357600080fd5b506104b76104b2366004611a94565b610c72565b6040516001600160a01b03909116815260200161022b565b3480156104db57600080fd5b5061021f6104ea366004611933565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561051f57600080fd5b50610268600081565b34801561053457600080fd5b506102687ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f78381565b34801561056857600080fd5b50610268610577366004611ab6565b610c8a565b34801561058857600080fd5b506102ed610597366004611bdf565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b3480156105cd57600080fd5b506101fd6105dc3660046117fb565b610ccf565b3480156105ed57600080fd5b506102686105fc3660046117fb565b610d7a565b34801561060d57600080fd5b5061026861061c3660046117fb565b60009081526002602052604090205490565b34801561063a57600080fd5b506101fd610649366004611933565b610d91565b6101fd61065c366004611ab6565b610db6565b34801561066d57600080fd5b506102ed61067c366004611c89565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b3480156106b257600080fd5b50600354610268565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc16106e581610f9c565b60006106f5898989898989610a87565b90506107018184610fa9565b6000817f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8b8b8b8b8b8a60405161073d96959493929190611d17565b60405180910390a3831561078657807f20fda5fd27a1ea7bf5b9567f143ac5470bb059374a27e8f67cb44f946f6d03878560405161077d91815260200190565b60405180910390a25b505050505050505050565b600061079c82611056565b92915050565b600080527fdae2aa361dfd1ca020a396615627d436107c35eff9fe7738a3512819782d70696020527f5ba6852781629bcdcd4bdaa6de76d786f1c64b16acdac474e55bebc0ea157951547fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e639060ff1661081f5761081f8133611061565b600061082f888888888888610a87565b905061083b81856110d1565b61084788888888611138565b6000817fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b588a8a8a8a60405161087f9493929190611d55565b60405180910390a3610890816111b0565b5050505050505050565b600060025b6108a883610a3c565b60038111156108b9576108b961195f565b1492915050565b6000600361089f565b6000828152602081905260409020600101546108e481610f9c565b6108ee83836111dc565b50505050565b60008061090083610a3c565b60038111156109115761091161195f565b141592915050565b6001600160a01b038116331461095b576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61096582826111e8565b505050565b60008061097683610a3c565b9050600181600381111561098c5761098c61195f565b14806109a9575060028160038111156109a7576109a761195f565b145b9392505050565b333081146109fa576040517fe2850c590000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201526024015b60405180910390fd5b60035460408051918252602082018490527f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5910160405180910390a150600355565b60008181526002602052604081205480600003610a5c5750600092915050565b60018103610a6d5750600392915050565b42811115610a7e5750600192915050565b50600292915050565b6000868686868686604051602001610aa496959493929190611d17565b6040516020818303038152906040528051906020012090509695505050505050565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1610af081610f9c565b8887141580610aff5750888514155b15610b47576040517fffb03211000000000000000000000000000000000000000000000000000000008152600481018a905260248101869052604481018890526064016109f1565b6000610b598b8b8b8b8b8b8b8b610c8a565b9050610b658184610fa9565b60005b8a811015610c235780827f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8e8e85818110610ba557610ba5611d88565b9050602002016020810190610bba9190611d9e565b8d8d86818110610bcc57610bcc611d88565b905060200201358c8c87818110610be557610be5611d88565b9050602002810190610bf79190611db9565b8c8b604051610c0b96959493929190611d17565b60405180910390a3610c1c81611e16565b9050610b68565b508315610c6557807f20fda5fd27a1ea7bf5b9567f143ac5470bb059374a27e8f67cb44f946f6d038785604051610c5c91815260200190565b60405180910390a25b5050505050505050505050565b60008281526001602052604081206109a990836111f4565b60008888888888888888604051602001610cab989796959493929190611ec5565b60405160208183030381529060405280519060200120905098975050505050505050565b7ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f783610cf981610f9c565b610d028261096a565b610d3e5781610d116002611200565b610d1b6001611200565b604051635ead8eb560e01b815260048101939093521760248201526044016109f1565b6000828152600260205260408082208290555183917fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb7091a25050565b600081815260016020526040812061079c90611223565b600082815260208190526040902060010154610dac81610f9c565b6108ee83836111e8565b600080527fdae2aa361dfd1ca020a396615627d436107c35eff9fe7738a3512819782d70696020527f5ba6852781629bcdcd4bdaa6de76d786f1c64b16acdac474e55bebc0ea157951547fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e639060ff16610e3357610e338133611061565b8786141580610e425750878414155b15610e8a576040517fffb032110000000000000000000000000000000000000000000000000000000081526004810189905260248101859052604481018790526064016109f1565b6000610e9c8a8a8a8a8a8a8a8a610c8a565b9050610ea881856110d1565b60005b89811015610f865760008b8b83818110610ec757610ec7611d88565b9050602002016020810190610edc9190611d9e565b905060008a8a84818110610ef257610ef2611d88565b9050602002013590503660008a8a86818110610f1057610f10611d88565b9050602002810190610f229190611db9565b91509150610f3284848484611138565b84867fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b5886868686604051610f699493929190611d55565b60405180910390a35050505080610f7f90611e16565b9050610eab565b50610f90816111b0565b50505050505050505050565b610fa68133611061565b50565b610fb2826108f4565b15610fe45781610fc26000611200565b604051635ead8eb560e01b8152600481019290925260248201526044016109f1565b6000610fef60035490565b905080821015611035576040517f5433660900000000000000000000000000000000000000000000000000000000815260048101839052602481018290526044016109f1565b61103f8242611f7f565b600093845260026020526040909320929092555050565b600061079c8261122d565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166110cd576040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602481018390526044016109f1565b5050565b6110da8261089a565b6110e95781610fc26002611200565b80158015906110fe57506110fc816108c0565b155b156110cd576040517f90a9a618000000000000000000000000000000000000000000000000000000008152600481018290526024016109f1565b600080856001600160a01b0316858585604051611156929190611f92565b60006040518083038185875af1925050503d8060008114611193576040519150601f19603f3d011682016040523d82523d6000602084013e611198565b606091505b50915091506111a7828261126b565b50505050505050565b6111b98161089a565b6111c85780610fc26002611200565b600090815260026020526040902060019055565b60006109a98383611287565b60006109a983836112bc565b60006109a983836112e9565b60008160038111156112145761121461195f565b600160ff919091161b92915050565b600061079c825490565b60006001600160e01b031982167f4e2312e000000000000000000000000000000000000000000000000000000000148061079c575061079c82611313565b6060826112805761127b82611351565b61079c565b508061079c565b6000806112948484611393565b905080156109a95760008481526001602052604090206112b4908461143d565b509392505050565b6000806112c98484611452565b905080156109a95760008481526001602052604090206112b490846114d5565b600082600001828154811061130057611300611d88565b9060005260206000200154905092915050565b60006001600160e01b031982167f5a05180f00000000000000000000000000000000000000000000000000000000148061079c575061079c826114ea565b8051156113615780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000828152602081815260408083206001600160a01b038516845290915281205460ff16611435576000838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556113ed3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a450600161079c565b50600061079c565b60006109a9836001600160a01b038416611551565b6000828152602081815260408083206001600160a01b038516845290915281205460ff1615611435576000838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a450600161079c565b60006109a9836001600160a01b038416611598565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061079c57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461079c565b60008181526001830160205260408120546114355750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561079c565b600081815260018301602052604081205480156116815760006115bc600183611fa2565b85549091506000906115d090600190611fa2565b90508082146116355760008660000182815481106115f0576115f0611d88565b906000526020600020015490508087600001848154811061161357611613611d88565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061164657611646611fb5565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061079c565b600091505061079c565b80356001600160a01b03811681146116a257600080fd5b919050565b60008083601f8401126116b957600080fd5b50813567ffffffffffffffff8111156116d157600080fd5b6020830191508360208285010111156116e957600080fd5b9250929050565b600080600080600080600060c0888a03121561170b57600080fd5b6117148861168b565b965060208801359550604088013567ffffffffffffffff81111561173757600080fd5b6117438a828b016116a7565b989b979a50986060810135976080820135975060a09091013595509350505050565b60006020828403121561177757600080fd5b81356001600160e01b0319811681146109a957600080fd5b60008060008060008060a087890312156117a857600080fd5b6117b18761168b565b955060208701359450604087013567ffffffffffffffff8111156117d457600080fd5b6117e089828a016116a7565b979a9699509760608101359660809091013595509350505050565b60006020828403121561180d57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561185357611853611814565b604052919050565b600082601f83011261186c57600080fd5b813567ffffffffffffffff81111561188657611886611814565b611899601f8201601f191660200161182a565b8181528460208386010111156118ae57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080608085870312156118e157600080fd5b6118ea8561168b565b93506118f86020860161168b565b925060408501359150606085013567ffffffffffffffff81111561191b57600080fd5b6119278782880161185b565b91505092959194509250565b6000806040838503121561194657600080fd5b823591506119566020840161168b565b90509250929050565b634e487b7160e01b600052602160045260246000fd5b602081016004831061199757634e487b7160e01b600052602160045260246000fd5b91905290565b60008083601f8401126119af57600080fd5b50813567ffffffffffffffff8111156119c757600080fd5b6020830191508360208260051b85010111156116e957600080fd5b600080600080600080600080600060c08a8c031215611a0057600080fd5b893567ffffffffffffffff80821115611a1857600080fd5b611a248d838e0161199d565b909b50995060208c0135915080821115611a3d57600080fd5b611a498d838e0161199d565b909950975060408c0135915080821115611a6257600080fd5b50611a6f8c828d0161199d565b9a9d999c50979a969997986060880135976080810135975060a0013595509350505050565b60008060408385031215611aa757600080fd5b50508035926020909101359150565b60008060008060008060008060a0898b031215611ad257600080fd5b883567ffffffffffffffff80821115611aea57600080fd5b611af68c838d0161199d565b909a50985060208b0135915080821115611b0f57600080fd5b611b1b8c838d0161199d565b909850965060408b0135915080821115611b3457600080fd5b50611b418b828c0161199d565b999c989b509699959896976060870135966080013595509350505050565b600082601f830112611b7057600080fd5b8135602067ffffffffffffffff821115611b8c57611b8c611814565b8160051b611b9b82820161182a565b9283528481018201928281019087851115611bb557600080fd5b83870192505b84831015611bd457823582529183019190830190611bbb565b979650505050505050565b600080600080600060a08688031215611bf757600080fd5b611c008661168b565b9450611c0e6020870161168b565b9350604086013567ffffffffffffffff80821115611c2b57600080fd5b611c3789838a01611b5f565b94506060880135915080821115611c4d57600080fd5b611c5989838a01611b5f565b93506080880135915080821115611c6f57600080fd5b50611c7c8882890161185b565b9150509295509295909350565b600080600080600060a08688031215611ca157600080fd5b611caa8661168b565b9450611cb86020870161168b565b93506040860135925060608601359150608086013567ffffffffffffffff811115611ce257600080fd5b611c7c8882890161185b565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038716815285602082015260a060408201526000611d4060a083018688611cee565b60608301949094525060800152949350505050565b6001600160a01b0385168152836020820152606060408201526000611d7e606083018486611cee565b9695505050505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611db057600080fd5b6109a98261168b565b6000808335601e19843603018112611dd057600080fd5b83018035915067ffffffffffffffff821115611deb57600080fd5b6020019150368190038213156116e957600080fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611e2857611e28611e00565b5060010190565b60008383855260208086019550808560051b8301018460005b87811015611eb857848303601f19018952813536889003601e19018112611e6e57600080fd5b8701848101903567ffffffffffffffff811115611e8a57600080fd5b803603821315611e9957600080fd5b611ea4858284611cee565b9a86019a9450505090830190600101611e48565b5090979650505050505050565b60a0808252810188905260008960c08301825b8b811015611f06576001600160a01b03611ef18461168b565b16825260209283019290910190600101611ed8565b5083810360208501528881527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff891115611f3f57600080fd5b8860051b9150818a60208301370182810360209081016040850152611f679082018789611e2f565b60608401959095525050608001529695505050505050565b8082018082111561079c5761079c611e00565b8183823760009101908152919050565b8181038181111561079c5761079c611e00565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220bb344442504b987c03819a590df35d5af2bf70c3fc4073663f8385522fa64e4f64736f6c63430008150033d8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e630000000000000000000000000000000000000000000000000000000000000e100000000000000000000000006357edbfe5ada570005ceb8fad3139ef5a8863cc000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006357edbfe5ada570005ceb8fad3139ef5a8863cc
Deployed Bytecode
0x6080604052600436106101d15760003560e01c80638f2a0bb0116100f7578063bc197c8111610095578063d547741f11610064578063d547741f1461062e578063e38335e51461064e578063f23a6e6114610661578063f27a0c92146106a657600080fd5b8063bc197c811461057c578063c4d252f5146105c1578063ca15c873146105e1578063d45c44351461060157600080fd5b806391d14854116100d157806391d14854146104cf578063a217fddf14610513578063b08e51c014610528578063b1c5f4271461055c57600080fd5b80638f2a0bb0146104435780638f61f4f5146104635780639010d07c1461049757600080fd5b80632ab0f5291161016f578063584b153e1161013e578063584b153e146103b657806364d62353146103d65780637958004c146103f65780638065657f1461042357600080fd5b80632ab0f529146103365780632f2ff15d1461035657806331d507501461037657806336568abe1461039657600080fd5b8063134008d3116101ab578063134008d31461027657806313bc9f2014610289578063150b7a02146102a9578063248a9ca31461030657600080fd5b806301d5062a146101dd57806301ffc9a7146101ff57806307bd02651461023457600080fd5b366101d857005b600080fd5b3480156101e957600080fd5b506101fd6101f83660046116f0565b6106bb565b005b34801561020b57600080fd5b5061021f61021a366004611765565b610791565b60405190151581526020015b60405180910390f35b34801561024057600080fd5b506102687fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e6381565b60405190815260200161022b565b6101fd61028436600461178f565b6107a2565b34801561029557600080fd5b5061021f6102a43660046117fb565b61089a565b3480156102b557600080fd5b506102ed6102c43660046118cb565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040516001600160e01b0319909116815260200161022b565b34801561031257600080fd5b506102686103213660046117fb565b60009081526020819052604090206001015490565b34801561034257600080fd5b5061021f6103513660046117fb565b6108c0565b34801561036257600080fd5b506101fd610371366004611933565b6108c9565b34801561038257600080fd5b5061021f6103913660046117fb565b6108f4565b3480156103a257600080fd5b506101fd6103b1366004611933565b610919565b3480156103c257600080fd5b5061021f6103d13660046117fb565b61096a565b3480156103e257600080fd5b506101fd6103f13660046117fb565b6109b0565b34801561040257600080fd5b506104166104113660046117fb565b610a3c565b60405161022b9190611975565b34801561042f57600080fd5b5061026861043e36600461178f565b610a87565b34801561044f57600080fd5b506101fd61045e3660046119e2565b610ac6565b34801561046f57600080fd5b506102687fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc181565b3480156104a357600080fd5b506104b76104b2366004611a94565b610c72565b6040516001600160a01b03909116815260200161022b565b3480156104db57600080fd5b5061021f6104ea366004611933565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561051f57600080fd5b50610268600081565b34801561053457600080fd5b506102687ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f78381565b34801561056857600080fd5b50610268610577366004611ab6565b610c8a565b34801561058857600080fd5b506102ed610597366004611bdf565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b3480156105cd57600080fd5b506101fd6105dc3660046117fb565b610ccf565b3480156105ed57600080fd5b506102686105fc3660046117fb565b610d7a565b34801561060d57600080fd5b5061026861061c3660046117fb565b60009081526002602052604090205490565b34801561063a57600080fd5b506101fd610649366004611933565b610d91565b6101fd61065c366004611ab6565b610db6565b34801561066d57600080fd5b506102ed61067c366004611c89565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b3480156106b257600080fd5b50600354610268565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc16106e581610f9c565b60006106f5898989898989610a87565b90506107018184610fa9565b6000817f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8b8b8b8b8b8a60405161073d96959493929190611d17565b60405180910390a3831561078657807f20fda5fd27a1ea7bf5b9567f143ac5470bb059374a27e8f67cb44f946f6d03878560405161077d91815260200190565b60405180910390a25b505050505050505050565b600061079c82611056565b92915050565b600080527fdae2aa361dfd1ca020a396615627d436107c35eff9fe7738a3512819782d70696020527f5ba6852781629bcdcd4bdaa6de76d786f1c64b16acdac474e55bebc0ea157951547fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e639060ff1661081f5761081f8133611061565b600061082f888888888888610a87565b905061083b81856110d1565b61084788888888611138565b6000817fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b588a8a8a8a60405161087f9493929190611d55565b60405180910390a3610890816111b0565b5050505050505050565b600060025b6108a883610a3c565b60038111156108b9576108b961195f565b1492915050565b6000600361089f565b6000828152602081905260409020600101546108e481610f9c565b6108ee83836111dc565b50505050565b60008061090083610a3c565b60038111156109115761091161195f565b141592915050565b6001600160a01b038116331461095b576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61096582826111e8565b505050565b60008061097683610a3c565b9050600181600381111561098c5761098c61195f565b14806109a9575060028160038111156109a7576109a761195f565b145b9392505050565b333081146109fa576040517fe2850c590000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201526024015b60405180910390fd5b60035460408051918252602082018490527f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5910160405180910390a150600355565b60008181526002602052604081205480600003610a5c5750600092915050565b60018103610a6d5750600392915050565b42811115610a7e5750600192915050565b50600292915050565b6000868686868686604051602001610aa496959493929190611d17565b6040516020818303038152906040528051906020012090509695505050505050565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1610af081610f9c565b8887141580610aff5750888514155b15610b47576040517fffb03211000000000000000000000000000000000000000000000000000000008152600481018a905260248101869052604481018890526064016109f1565b6000610b598b8b8b8b8b8b8b8b610c8a565b9050610b658184610fa9565b60005b8a811015610c235780827f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8e8e85818110610ba557610ba5611d88565b9050602002016020810190610bba9190611d9e565b8d8d86818110610bcc57610bcc611d88565b905060200201358c8c87818110610be557610be5611d88565b9050602002810190610bf79190611db9565b8c8b604051610c0b96959493929190611d17565b60405180910390a3610c1c81611e16565b9050610b68565b508315610c6557807f20fda5fd27a1ea7bf5b9567f143ac5470bb059374a27e8f67cb44f946f6d038785604051610c5c91815260200190565b60405180910390a25b5050505050505050505050565b60008281526001602052604081206109a990836111f4565b60008888888888888888604051602001610cab989796959493929190611ec5565b60405160208183030381529060405280519060200120905098975050505050505050565b7ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f783610cf981610f9c565b610d028261096a565b610d3e5781610d116002611200565b610d1b6001611200565b604051635ead8eb560e01b815260048101939093521760248201526044016109f1565b6000828152600260205260408082208290555183917fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb7091a25050565b600081815260016020526040812061079c90611223565b600082815260208190526040902060010154610dac81610f9c565b6108ee83836111e8565b600080527fdae2aa361dfd1ca020a396615627d436107c35eff9fe7738a3512819782d70696020527f5ba6852781629bcdcd4bdaa6de76d786f1c64b16acdac474e55bebc0ea157951547fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e639060ff16610e3357610e338133611061565b8786141580610e425750878414155b15610e8a576040517fffb032110000000000000000000000000000000000000000000000000000000081526004810189905260248101859052604481018790526064016109f1565b6000610e9c8a8a8a8a8a8a8a8a610c8a565b9050610ea881856110d1565b60005b89811015610f865760008b8b83818110610ec757610ec7611d88565b9050602002016020810190610edc9190611d9e565b905060008a8a84818110610ef257610ef2611d88565b9050602002013590503660008a8a86818110610f1057610f10611d88565b9050602002810190610f229190611db9565b91509150610f3284848484611138565b84867fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b5886868686604051610f699493929190611d55565b60405180910390a35050505080610f7f90611e16565b9050610eab565b50610f90816111b0565b50505050505050505050565b610fa68133611061565b50565b610fb2826108f4565b15610fe45781610fc26000611200565b604051635ead8eb560e01b8152600481019290925260248201526044016109f1565b6000610fef60035490565b905080821015611035576040517f5433660900000000000000000000000000000000000000000000000000000000815260048101839052602481018290526044016109f1565b61103f8242611f7f565b600093845260026020526040909320929092555050565b600061079c8261122d565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166110cd576040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602481018390526044016109f1565b5050565b6110da8261089a565b6110e95781610fc26002611200565b80158015906110fe57506110fc816108c0565b155b156110cd576040517f90a9a618000000000000000000000000000000000000000000000000000000008152600481018290526024016109f1565b600080856001600160a01b0316858585604051611156929190611f92565b60006040518083038185875af1925050503d8060008114611193576040519150601f19603f3d011682016040523d82523d6000602084013e611198565b606091505b50915091506111a7828261126b565b50505050505050565b6111b98161089a565b6111c85780610fc26002611200565b600090815260026020526040902060019055565b60006109a98383611287565b60006109a983836112bc565b60006109a983836112e9565b60008160038111156112145761121461195f565b600160ff919091161b92915050565b600061079c825490565b60006001600160e01b031982167f4e2312e000000000000000000000000000000000000000000000000000000000148061079c575061079c82611313565b6060826112805761127b82611351565b61079c565b508061079c565b6000806112948484611393565b905080156109a95760008481526001602052604090206112b4908461143d565b509392505050565b6000806112c98484611452565b905080156109a95760008481526001602052604090206112b490846114d5565b600082600001828154811061130057611300611d88565b9060005260206000200154905092915050565b60006001600160e01b031982167f5a05180f00000000000000000000000000000000000000000000000000000000148061079c575061079c826114ea565b8051156113615780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000828152602081815260408083206001600160a01b038516845290915281205460ff16611435576000838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556113ed3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a450600161079c565b50600061079c565b60006109a9836001600160a01b038416611551565b6000828152602081815260408083206001600160a01b038516845290915281205460ff1615611435576000838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a450600161079c565b60006109a9836001600160a01b038416611598565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061079c57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461079c565b60008181526001830160205260408120546114355750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561079c565b600081815260018301602052604081205480156116815760006115bc600183611fa2565b85549091506000906115d090600190611fa2565b90508082146116355760008660000182815481106115f0576115f0611d88565b906000526020600020015490508087600001848154811061161357611613611d88565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061164657611646611fb5565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061079c565b600091505061079c565b80356001600160a01b03811681146116a257600080fd5b919050565b60008083601f8401126116b957600080fd5b50813567ffffffffffffffff8111156116d157600080fd5b6020830191508360208285010111156116e957600080fd5b9250929050565b600080600080600080600060c0888a03121561170b57600080fd5b6117148861168b565b965060208801359550604088013567ffffffffffffffff81111561173757600080fd5b6117438a828b016116a7565b989b979a50986060810135976080820135975060a09091013595509350505050565b60006020828403121561177757600080fd5b81356001600160e01b0319811681146109a957600080fd5b60008060008060008060a087890312156117a857600080fd5b6117b18761168b565b955060208701359450604087013567ffffffffffffffff8111156117d457600080fd5b6117e089828a016116a7565b979a9699509760608101359660809091013595509350505050565b60006020828403121561180d57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561185357611853611814565b604052919050565b600082601f83011261186c57600080fd5b813567ffffffffffffffff81111561188657611886611814565b611899601f8201601f191660200161182a565b8181528460208386010111156118ae57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080608085870312156118e157600080fd5b6118ea8561168b565b93506118f86020860161168b565b925060408501359150606085013567ffffffffffffffff81111561191b57600080fd5b6119278782880161185b565b91505092959194509250565b6000806040838503121561194657600080fd5b823591506119566020840161168b565b90509250929050565b634e487b7160e01b600052602160045260246000fd5b602081016004831061199757634e487b7160e01b600052602160045260246000fd5b91905290565b60008083601f8401126119af57600080fd5b50813567ffffffffffffffff8111156119c757600080fd5b6020830191508360208260051b85010111156116e957600080fd5b600080600080600080600080600060c08a8c031215611a0057600080fd5b893567ffffffffffffffff80821115611a1857600080fd5b611a248d838e0161199d565b909b50995060208c0135915080821115611a3d57600080fd5b611a498d838e0161199d565b909950975060408c0135915080821115611a6257600080fd5b50611a6f8c828d0161199d565b9a9d999c50979a969997986060880135976080810135975060a0013595509350505050565b60008060408385031215611aa757600080fd5b50508035926020909101359150565b60008060008060008060008060a0898b031215611ad257600080fd5b883567ffffffffffffffff80821115611aea57600080fd5b611af68c838d0161199d565b909a50985060208b0135915080821115611b0f57600080fd5b611b1b8c838d0161199d565b909850965060408b0135915080821115611b3457600080fd5b50611b418b828c0161199d565b999c989b509699959896976060870135966080013595509350505050565b600082601f830112611b7057600080fd5b8135602067ffffffffffffffff821115611b8c57611b8c611814565b8160051b611b9b82820161182a565b9283528481018201928281019087851115611bb557600080fd5b83870192505b84831015611bd457823582529183019190830190611bbb565b979650505050505050565b600080600080600060a08688031215611bf757600080fd5b611c008661168b565b9450611c0e6020870161168b565b9350604086013567ffffffffffffffff80821115611c2b57600080fd5b611c3789838a01611b5f565b94506060880135915080821115611c4d57600080fd5b611c5989838a01611b5f565b93506080880135915080821115611c6f57600080fd5b50611c7c8882890161185b565b9150509295509295909350565b600080600080600060a08688031215611ca157600080fd5b611caa8661168b565b9450611cb86020870161168b565b93506040860135925060608601359150608086013567ffffffffffffffff811115611ce257600080fd5b611c7c8882890161185b565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038716815285602082015260a060408201526000611d4060a083018688611cee565b60608301949094525060800152949350505050565b6001600160a01b0385168152836020820152606060408201526000611d7e606083018486611cee565b9695505050505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611db057600080fd5b6109a98261168b565b6000808335601e19843603018112611dd057600080fd5b83018035915067ffffffffffffffff821115611deb57600080fd5b6020019150368190038213156116e957600080fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611e2857611e28611e00565b5060010190565b60008383855260208086019550808560051b8301018460005b87811015611eb857848303601f19018952813536889003601e19018112611e6e57600080fd5b8701848101903567ffffffffffffffff811115611e8a57600080fd5b803603821315611e9957600080fd5b611ea4858284611cee565b9a86019a9450505090830190600101611e48565b5090979650505050505050565b60a0808252810188905260008960c08301825b8b811015611f06576001600160a01b03611ef18461168b565b16825260209283019290910190600101611ed8565b5083810360208501528881527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff891115611f3f57600080fd5b8860051b9150818a60208301370182810360209081016040850152611f679082018789611e2f565b60608401959095525050608001529695505050505050565b8082018082111561079c5761079c611e00565b8183823760009101908152919050565b8181038181111561079c5761079c611e00565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220bb344442504b987c03819a590df35d5af2bf70c3fc4073663f8385522fa64e4f64736f6c63430008150033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000e100000000000000000000000006357edbfe5ada570005ceb8fad3139ef5a8863cc000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006357edbfe5ada570005ceb8fad3139ef5a8863cc
-----Decoded View---------------
Arg [0] : minDelay (uint256): 3600
Arg [1] : admin (address): 0x6357EDbfE5aDA570005ceB8FAd3139eF5A8863CC
Arg [2] : proposers (address[]): 0x6357EDbfE5aDA570005ceB8FAd3139eF5A8863CC
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000e10
Arg [1] : 0000000000000000000000006357edbfe5ada570005ceb8fad3139ef5a8863cc
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 0000000000000000000000006357edbfe5ada570005ceb8fad3139ef5a8863cc
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.