Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StructAccessManager
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "../interfaces/IAccessManager.sol"; error StructAccessManager_InvalidSignature(); error StructAccessManager_ProtectedRole(); error StructAccessManager_NonceUsed(); error StructAccessManager_ReceiptExpired(); /** .-==+++++++++++++++++++++++++++++++=-: :=*%##########################################+- .+%##################################################- .*######################################################%= *##################%*##################*###################%: .###################+ :##############+ :###################= :####################= ##############= ####################* .#####################= ##############= #####################+ ######################* -##############* -###################### .#########################%##################%#######################= :####################################################################* .%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%= .-+*##############################*- .=########*+=. -######################################+: -###############%= *#########################################%= :+#################### *##############################################- .+%######################% .##################################################- =%##########################- :####################################################%#%#############################- ###################################################################################% *################################################################################# -#############################################################################%= -+*#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##+=. .#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#= -####################################################################* .####################################################################= ####################################################################. .##################################################################+ :################################################################* :##############################################################+ .############################################################- :########################################################= :*###################################################= :+###########################################%*-. :-=+******************************++=:. * @title Manage on-chain access to struct contracts * @author Augminted Labs, LLC */ contract StructAccessManager is IAccessManager, AccessControl { using ECDSA for bytes32; bytes32 public constant RECEIPT_ISSUER_ROLE = keccak256("RECEIPT_ISSUER_ROLE"); mapping(bytes32 => uint256) public expirations; mapping(uint256 => bool) public nonceUsed; constructor (address admin) { _grantRole(DEFAULT_ADMIN_ROLE, admin); } /** * @notice Modifier applied to functions that will consume a nonce */ modifier withNonce(uint256 nonce) { if (nonceUsed[nonce]) revert StructAccessManager_NonceUsed(); _; nonceUsed[nonce] = true; } /** * @inheritdoc AccessControl */ function hasRole( bytes32 role, address account ) public view override(IAccessManager, AccessControl) returns (bool) { uint256 expiration = expirations[keccak256(abi.encodePacked(account, role))]; return super.hasRole(role, account) && (expiration == 0 || expiration >= block.timestamp); } /** * @notice Validate a deployment * @param target Target implementation contract of proxy contract * @param nonce Number providing single-use and uniqueness to the signature * @param signature Ethereum signed message, created by account with `RECEIPT_ISSUER_ROLE` role */ function validateDeployment(address target, uint256 nonce, bytes calldata signature) external withNonce(nonce) { if (hasRole( RECEIPT_ISSUER_ROLE, ECDSA.recover( ECDSA.toEthSignedMessageHash(keccak256(abi.encodePacked( keccak256(abi.encodePacked("DEPLOYMENT", target)), nonce, tx.origin ))), signature ) )) revert StructAccessManager_InvalidSignature(); } /** * @notice Validate and grant a role * @param role Role to grant. Cannot be `DEFAULT_ADMIN_ROLE` or `RECEIPT_ISSUER_ROLE` * @param expiration Timestamp indicating when role is no longer valid. `0` indicates a non-expiring role * @param nonce Number providing single-use and uniqueness to the signature * @param signature Ethereum signed message, created by account with `RECEIPT_ISSUER_ROLE` role */ function validateRole( bytes32 role, uint256 expiration, uint256 nonce, bytes calldata signature ) external withNonce(nonce) { if (expiration != 0 && block.timestamp > expiration) revert StructAccessManager_ReceiptExpired(); if (role == DEFAULT_ADMIN_ROLE || role == RECEIPT_ISSUER_ROLE) revert StructAccessManager_ProtectedRole(); if (hasRole( RECEIPT_ISSUER_ROLE, ECDSA.recover( ECDSA.toEthSignedMessageHash(keccak256(abi.encodePacked( keccak256(abi.encodePacked("GRANT_ROLE", role, expiration)), nonce, tx.origin ))), signature ) )) revert StructAccessManager_InvalidSignature(); expirations[keccak256(abi.encodePacked(tx.origin, role))] = expiration; grantRole(role, tx.origin); } }
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; interface IAccessManager { function hasRole(bytes32 role, address account) external view returns (bool); function validateDeployment(address target, uint256 nonce, bytes calldata signature) external; function validateRole(bytes32 role, uint256 expiration, uint256 nonce, bytes calldata signature) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @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 override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"StructAccessManager_InvalidSignature","type":"error"},{"inputs":[],"name":"StructAccessManager_NonceUsed","type":"error"},{"inputs":[],"name":"StructAccessManager_ProtectedRole","type":"error"},{"inputs":[],"name":"StructAccessManager_ReceiptExpired","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RECEIPT_ISSUER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"expirations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nonceUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"validateDeployment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"validateRole","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200175538038062001755833981016040819052620000349162000181565b6200004160008262000048565b50620001b3565b620000548282620000d1565b620000cd576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200008c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6040516001600160601b0319606083901b16602082015260348101839052600090819060019082906054016040516020818303038152906040528051906020012081526020019081526020016000205490506200013a84846200015860201b620009031760201c565b8015620001505750801580620001505750428110155b949350505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000602082840312156200019457600080fd5b81516001600160a01b0381168114620001ac57600080fd5b9392505050565b61159280620001c36000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806391d1485411610081578063d547741f1161005b578063d547741f146101d2578063d8591d52146101e5578063f51918ce1461020557600080fd5b806391d148541461019457806394d0d3a6146101a7578063a217fddf146101ca57600080fd5b80632f2ff15d116100b25780632f2ff15d1461014757806336568abe1461015a5780633af039f81461016d57600080fd5b806301ffc9a7146100d9578063248a9ca3146101015780632f0bca6b14610132575b600080fd5b6100ec6100e7366004611167565b610218565b60405190151581526020015b60405180910390f35b61012461010f3660046111a9565b60009081526020819052604090206001015490565b6040519081526020016100f8565b61014561014036600461122d565b6102b1565b005b610145610155366004611287565b61050a565b610145610168366004611287565b610534565b6101247f4e79532eeac084d59f74ec276ef64dcebc16d6464fc7e55cc31e4ead1e85733881565b6100ec6101a2366004611287565b6105ec565b6100ec6101b53660046111a9565b60026020526000908152604090205460ff1681565b610124600081565b6101456101e0366004611287565b610697565b6101246101f33660046111a9565b60016020526000908152604090205481565b6101456102133660046112b3565b6106bc565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806102ab57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b600083815260026020526040902054839060ff16156102fc576040517f61848c7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f4445504c4f594d454e540000000000000000000000000000000000000000000060208201527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606087901b16602a820152610496907f4e79532eeac084d59f74ec276ef64dcebc16d6464fc7e55cc31e4ead1e857338906101a29061045a90603e015b604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0018152828252805160209182012090830152810189905232606090811b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001690820152607401604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b86868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061093992505050565b156104cd576040517fa592e5aa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600090815260026020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905550505050565b6000828152602081905260409020600101546105258161095d565b61052f838361096a565b505050565b73ffffffffffffffffffffffffffffffffffffffff811633146105de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6105e88282610a33565b5050565b60408051606083901b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602080830191909152603480830186905283518084039091018152605490920183528151918101919091206000908152600182528281205485825281835283822073ffffffffffffffffffffffffffffffffffffffff861683529092529182205460ff16801561068f575080158061068f5750428110155b949350505050565b6000828152602081905260409020600101546106b28161095d565b61052f8383610a33565b600083815260026020526040902054839060ff1615610707576040517f61848c7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b841580159061071557508442115b1561074c576040517f8121a89000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85158061077857507f4e79532eeac084d59f74ec276ef64dcebc16d6464fc7e55cc31e4ead1e85733886145b156107af576040517f47e5a17200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f4752414e545f524f4c45000000000000000000000000000000000000000000006020820152602a8101879052604a810186905261081c907f4e79532eeac084d59f74ec276ef64dcebc16d6464fc7e55cc31e4ead1e857338906101a29061045a90606a01610383565b15610853576040517fa592e5aa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003260601b166020820152603481018790528590600190600090605401604051602081830303815290604052805190602001208152602001908152602001600020819055506108c5863261050a565b600090815260026020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555050505050565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b60008060006109488585610ac3565b9150915061095581610b08565b509392505050565b6109678133610d5c565b50565b61097482826105ec565b6105e85760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556109d53390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610a3d82826105ec565b156105e85760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000808251604103610af95760208301516040840151606085015160001a610aed87828585610e05565b94509450505050610b01565b506000905060025b9250929050565b6000816004811115610b1c57610b1c611314565b03610b245750565b6001816004811115610b3857610b38611314565b03610b9f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105d5565b6002816004811115610bb357610bb3611314565b03610c1a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105d5565b6003816004811115610c2e57610c2e611314565b03610cbb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016105d5565b6004816004811115610ccf57610ccf611314565b03610967576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016105d5565b610d6682826105ec565b6105e857610d8b8173ffffffffffffffffffffffffffffffffffffffff166014610f1d565b610d96836020610f1d565b604051602001610da7929190611373565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526105d5916004016113f4565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610e3c5750600090506003610f14565b8460ff16601b14158015610e5457508460ff16601c14155b15610e655750600090506004610f14565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610eb9573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116610f0d57600060019250925050610f14565b9150600090505b94509492505050565b60606000610f2c836002611474565b610f379060026114b1565b67ffffffffffffffff811115610f4f57610f4f6114c9565b6040519080825280601f01601f191660200182016040528015610f79576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610fb057610fb06114f8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611013576110136114f8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061104f846002611474565b61105a9060016114b1565b90505b60018111156110f7577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061109b5761109b6114f8565b1a60f81b8282815181106110b1576110b16114f8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936110f081611527565b905061105d565b508315611160576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105d5565b9392505050565b60006020828403121561117957600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461116057600080fd5b6000602082840312156111bb57600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146111e657600080fd5b919050565b60008083601f8401126111fd57600080fd5b50813567ffffffffffffffff81111561121557600080fd5b602083019150836020828501011115610b0157600080fd5b6000806000806060858703121561124357600080fd5b61124c856111c2565b935060208501359250604085013567ffffffffffffffff81111561126f57600080fd5b61127b878288016111eb565b95989497509550505050565b6000806040838503121561129a57600080fd5b823591506112aa602084016111c2565b90509250929050565b6000806000806000608086880312156112cb57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff8111156112f757600080fd5b611303888289016111eb565b969995985093965092949392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60005b8381101561135e578181015183820152602001611346565b8381111561136d576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516113ab816017850160208801611343565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516113e8816028840160208801611343565b01602801949350505050565b6020815260008251806020840152611413816040850160208701611343565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156114ac576114ac611445565b500290565b600082198211156114c4576114c4611445565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008161153657611536611445565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fea2646970667358221220a756b9419ff2b65f6e58dca75d4ffa051c33674756aff1aa468a3f1978149f4364736f6c634300080f0033000000000000000000000000084fd17c6a5697bd651b6482fa916c0b3a0e6161
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100d45760003560e01c806391d1485411610081578063d547741f1161005b578063d547741f146101d2578063d8591d52146101e5578063f51918ce1461020557600080fd5b806391d148541461019457806394d0d3a6146101a7578063a217fddf146101ca57600080fd5b80632f2ff15d116100b25780632f2ff15d1461014757806336568abe1461015a5780633af039f81461016d57600080fd5b806301ffc9a7146100d9578063248a9ca3146101015780632f0bca6b14610132575b600080fd5b6100ec6100e7366004611167565b610218565b60405190151581526020015b60405180910390f35b61012461010f3660046111a9565b60009081526020819052604090206001015490565b6040519081526020016100f8565b61014561014036600461122d565b6102b1565b005b610145610155366004611287565b61050a565b610145610168366004611287565b610534565b6101247f4e79532eeac084d59f74ec276ef64dcebc16d6464fc7e55cc31e4ead1e85733881565b6100ec6101a2366004611287565b6105ec565b6100ec6101b53660046111a9565b60026020526000908152604090205460ff1681565b610124600081565b6101456101e0366004611287565b610697565b6101246101f33660046111a9565b60016020526000908152604090205481565b6101456102133660046112b3565b6106bc565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806102ab57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b600083815260026020526040902054839060ff16156102fc576040517f61848c7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f4445504c4f594d454e540000000000000000000000000000000000000000000060208201527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606087901b16602a820152610496907f4e79532eeac084d59f74ec276ef64dcebc16d6464fc7e55cc31e4ead1e857338906101a29061045a90603e015b604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0018152828252805160209182012090830152810189905232606090811b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001690820152607401604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b86868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061093992505050565b156104cd576040517fa592e5aa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600090815260026020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905550505050565b6000828152602081905260409020600101546105258161095d565b61052f838361096a565b505050565b73ffffffffffffffffffffffffffffffffffffffff811633146105de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6105e88282610a33565b5050565b60408051606083901b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602080830191909152603480830186905283518084039091018152605490920183528151918101919091206000908152600182528281205485825281835283822073ffffffffffffffffffffffffffffffffffffffff861683529092529182205460ff16801561068f575080158061068f5750428110155b949350505050565b6000828152602081905260409020600101546106b28161095d565b61052f8383610a33565b600083815260026020526040902054839060ff1615610707576040517f61848c7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b841580159061071557508442115b1561074c576040517f8121a89000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85158061077857507f4e79532eeac084d59f74ec276ef64dcebc16d6464fc7e55cc31e4ead1e85733886145b156107af576040517f47e5a17200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f4752414e545f524f4c45000000000000000000000000000000000000000000006020820152602a8101879052604a810186905261081c907f4e79532eeac084d59f74ec276ef64dcebc16d6464fc7e55cc31e4ead1e857338906101a29061045a90606a01610383565b15610853576040517fa592e5aa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003260601b166020820152603481018790528590600190600090605401604051602081830303815290604052805190602001208152602001908152602001600020819055506108c5863261050a565b600090815260026020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555050505050565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b60008060006109488585610ac3565b9150915061095581610b08565b509392505050565b6109678133610d5c565b50565b61097482826105ec565b6105e85760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556109d53390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610a3d82826105ec565b156105e85760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000808251604103610af95760208301516040840151606085015160001a610aed87828585610e05565b94509450505050610b01565b506000905060025b9250929050565b6000816004811115610b1c57610b1c611314565b03610b245750565b6001816004811115610b3857610b38611314565b03610b9f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105d5565b6002816004811115610bb357610bb3611314565b03610c1a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105d5565b6003816004811115610c2e57610c2e611314565b03610cbb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016105d5565b6004816004811115610ccf57610ccf611314565b03610967576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016105d5565b610d6682826105ec565b6105e857610d8b8173ffffffffffffffffffffffffffffffffffffffff166014610f1d565b610d96836020610f1d565b604051602001610da7929190611373565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526105d5916004016113f4565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610e3c5750600090506003610f14565b8460ff16601b14158015610e5457508460ff16601c14155b15610e655750600090506004610f14565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610eb9573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116610f0d57600060019250925050610f14565b9150600090505b94509492505050565b60606000610f2c836002611474565b610f379060026114b1565b67ffffffffffffffff811115610f4f57610f4f6114c9565b6040519080825280601f01601f191660200182016040528015610f79576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610fb057610fb06114f8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611013576110136114f8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061104f846002611474565b61105a9060016114b1565b90505b60018111156110f7577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061109b5761109b6114f8565b1a60f81b8282815181106110b1576110b16114f8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936110f081611527565b905061105d565b508315611160576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105d5565b9392505050565b60006020828403121561117957600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461116057600080fd5b6000602082840312156111bb57600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146111e657600080fd5b919050565b60008083601f8401126111fd57600080fd5b50813567ffffffffffffffff81111561121557600080fd5b602083019150836020828501011115610b0157600080fd5b6000806000806060858703121561124357600080fd5b61124c856111c2565b935060208501359250604085013567ffffffffffffffff81111561126f57600080fd5b61127b878288016111eb565b95989497509550505050565b6000806040838503121561129a57600080fd5b823591506112aa602084016111c2565b90509250929050565b6000806000806000608086880312156112cb57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff8111156112f757600080fd5b611303888289016111eb565b969995985093965092949392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60005b8381101561135e578181015183820152602001611346565b8381111561136d576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516113ab816017850160208801611343565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516113e8816028840160208801611343565b01602801949350505050565b6020815260008251806020840152611413816040850160208701611343565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156114ac576114ac611445565b500290565b600082198211156114c4576114c4611445565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008161153657611536611445565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fea2646970667358221220a756b9419ff2b65f6e58dca75d4ffa051c33674756aff1aa468a3f1978149f4364736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000084fd17c6a5697bd651b6482fa916c0b3a0e6161
-----Decoded View---------------
Arg [0] : admin (address): 0x084FD17c6A5697bd651b6482fa916C0b3a0e6161
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000084fd17c6a5697bd651b6482fa916c0b3a0e6161
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.