Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 315 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Convert With Sig... | 21778393 | 2 hrs ago | IN | 0 ETH | 0.00009983 | ||||
Convert With Sig... | 21777638 | 5 hrs ago | IN | 0 ETH | 0.00008614 | ||||
Convert With Sig... | 21777564 | 5 hrs ago | IN | 0 ETH | 0.00010416 | ||||
Convert With Sig... | 21749534 | 4 days ago | IN | 0 ETH | 0.00011101 | ||||
Convert With Sig... | 21642165 | 19 days ago | IN | 0 ETH | 0.00025997 | ||||
Convert With Sig... | 21613655 | 23 days ago | IN | 0 ETH | 0.00014611 | ||||
Convert With Sig... | 21612653 | 23 days ago | IN | 0 ETH | 0.0001472 | ||||
Convert With Sig... | 21584437 | 27 days ago | IN | 0 ETH | 0.00020156 | ||||
Convert With Sig... | 21578986 | 27 days ago | IN | 0 ETH | 0.00023176 | ||||
Convert With Sig... | 21577693 | 28 days ago | IN | 0 ETH | 0.00025124 | ||||
Convert With Sig... | 21570550 | 29 days ago | IN | 0 ETH | 0.00034645 | ||||
Convert With Sig... | 21300459 | 66 days ago | IN | 0 ETH | 0.00044243 | ||||
Convert With Sig... | 21112355 | 93 days ago | IN | 0 ETH | 0.00024584 | ||||
Convert With Sig... | 21099495 | 94 days ago | IN | 0 ETH | 0.00018682 | ||||
Convert With Sig... | 21093077 | 95 days ago | IN | 0 ETH | 0.0004853 | ||||
Convert With Sig... | 21049066 | 101 days ago | IN | 0 ETH | 0.00018891 | ||||
Convert With Sig... | 21036290 | 103 days ago | IN | 0 ETH | 0.00076719 | ||||
Convert With Sig... | 21028520 | 104 days ago | IN | 0 ETH | 0.00055685 | ||||
Convert With Sig... | 20953341 | 115 days ago | IN | 0 ETH | 0.0004484 | ||||
Convert With Sig... | 20928216 | 118 days ago | IN | 0 ETH | 0.00106282 | ||||
Convert With Sig... | 20918737 | 120 days ago | IN | 0 ETH | 0.00066842 | ||||
Convert With Sig... | 20897442 | 123 days ago | IN | 0 ETH | 0.00017567 | ||||
Convert With Sig... | 20895138 | 123 days ago | IN | 0 ETH | 0.00023966 | ||||
Convert With Sig... | 20884296 | 124 days ago | IN | 0 ETH | 0.00027048 | ||||
Convert With Sig... | 20874219 | 126 days ago | IN | 0 ETH | 0.00033559 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
AMTManager
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; import "../AMTManager/IAMTManager.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract AMTManager is AccessControl { using ECDSA for bytes32; bytes32 public constant ADMIN = "ADMIN"; address private signer; IAMTManager public amtManager; uint256 public nonce = 0; event ConvertedAMT(address indexed to, uint256 value, uint256 nonce); modifier isValidSignature (address _to, uint256 _value, bytes calldata _signature) { address recoveredAddress = keccak256( abi.encodePacked( _to, _value, nonce ) ).toEthSignedMessageHash().recover(_signature); require(recoveredAddress == signer, "Invalid Signature"); _; } constructor() { _grantRole(ADMIN, msg.sender); } function convertWithSignature(address _to, uint256 _value, bytes calldata _signature) external isValidSignature(_to, _value, _signature) { amtManager.add(_to, _value); emit ConvertedAMT(_to, _value, nonce); nonce++; } function setSigner(address _value) external onlyRole(ADMIN) { signer = _value; } function setAmtManager(address value) external onlyRole(ADMIN) { amtManager = IAMTManager(value); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; interface IAMTManager { function amt(address user) external view returns (uint256); function add(address to, uint256 value) external; function use(address from, uint256 value, string calldata action) 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 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 (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/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); }
{ "metadata": { "bytecodeHash": "none" }, "optimizer": { "enabled": true, "runs": 800 }, "viaIR": true, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"ConvertedAMT","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":"ADMIN","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":"amtManager","outputs":[{"internalType":"contract IAMTManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"convertWithSignature","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"value","type":"address"}],"name":"setAmtManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_value","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608080604052346100ab57600060038190553381527fff164f808567eb9100129b1d5aead1611f532533c7a4cedced7e7f0a6271f53160205260408120546420a226a4a760d91b919060ff161561005d575b610eaf83816100b18239f35b818152806020526040812033825260205260408120600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339280a43880610051565b600080fdfe608060409080825260048036101561001657600080fd5b600092833560e01c92836301ffc9a71461065f57508263248a9ca3146106355782632a0acc6a146106125782632f2ff15d1461056a57826336568abe146104cb578263378cfd051461023d5782636c19e783146101f15782638e3655a9146101c957826391d1485414610183578263a217fddf14610168578263affed0e014610145578263d547741f1461010357505063e4d6d4c3146100b557600080fd5b34610100576020366003190112610100576001600160a01b036100d66106ce565b6100de6106e4565b1673ffffffffffffffffffffffffffffffffffffffff19600254161760025580f35b80fd5b9091503461014157806003193601126101415761013e913561013960016101286106b3565b938387528660205286200154610910565b610a98565b80f35b8280fd5b8390346101645781600319360112610164576020906003549051908152f35b5080fd5b83903461016457816003193601126101645751908152602090f35b9150346101415781600319360112610141576001600160a01b03826020946101a96106b3565b93358152808652209116600052825260ff81600020541690519015158152f35b8390346101645781600319360112610164576020906001600160a01b03600254169051908152f35b8334610100576020366003190112610100576001600160a01b036102136106ce565b61021b6106e4565b1673ffffffffffffffffffffffffffffffffffffffff19600154161760015580f35b839034610164576060366003190112610164576102586106ce565b9260249384359260443567ffffffffffffffff9081811161045d573660238201121561045d57808501358281116104c757368982840101116104c75788886003549386519360208501946001600160a01b0396878b169a6bffffffffffffffffffffffff199060601b1687528c60348301526054820152605481526080810195818710898811176104b557868a528151902060a08201907f19457468657265756d205369676e6564204d6573736167653a0a333200000000825260bc830152603c875260e08201968088108a8911176104a3579183889694926103699896946103719a8e52519020956103556020601f19601f8501160189610a76565b818852610100940184830137010152610db5565b919091610c43565b818060015416911603610461576002541690813b1561045d57868660448a838751968794859363f5d82b6b60e01b85528b8d8601528401525af180156104535761040e575b50507f9180d24f3844598cbdf59297b81fee45ff55aa35b156b409c0215fa6623e201e90600354948151908152856020820152a260001982146103fd575060010160035580f35b634e487b7160e01b83526011905250fd5b8196929611610441578552937f9180d24f3844598cbdf59297b81fee45ff55aa35b156b409c0215fa6623e201e876103b6565b634e487b7160e01b8252604184528682fd5b83513d89823e3d90fd5b8680fd5b825162461bcd60e51b81526020818701526011818a01527f496e76616c6964205369676e61747572650000000000000000000000000000006044820152606490fd5b634e487b7160e01b865260418d528686fd5b634e487b7160e01b855260418c528585fd5b8780fd5b8382346101645782600319360112610164576104e56106b3565b90336001600160a01b03831603610501579061013e9135610a98565b608490602085519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152fd5b91503461014157816003193601126101415735906105866106b3565b908284528360205261059d60018286200154610910565b828452836020526001600160a01b0381852092169182855260205260ff8185205416156105c8578380f35b828452836020528084208285526020528320600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a43880808380f35b839034610164578160031936011261016457602090516420a226a4a760d91b8152f35b91503461014157602036600319011261014157816020936001923581528085522001549051908152f35b92505034610141576020366003190112610141573563ffffffff60e01b81168091036101415760209250637965db0b60e01b81149081156106a2575b5015158152f35b6301ffc9a760e01b1490503861069b565b602435906001600160a01b03821682036106c957565b600080fd5b600435906001600160a01b03821682036106c957565b3360009081527fff164f808567eb9100129b1d5aead1611f532533c7a4cedced7e7f0a6271f5316020908152604080832054909291906420a226a4a760d91b9060ff16156107325750505050565b61073b33610b34565b9084519061074882610a44565b604282528382019460603687378251156108fc57603086538251906001918210156108fc5790607860218501536041915b81831161088e5750505061084c578461081a604861083e93604497985198899161080b898401987f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008a526107d6815180928d603789019101610a21565b8401917f206973206d697373696e6720726f6c6520000000000000000000000000000000603784015251809386840190610a21565b01036028810189520187610a76565b5194859362461bcd60e51b8552600485015251809281602486015285850190610a21565b601f01601f19168101030190fd5b60648386519062461bcd60e51b825280600483015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f811660108110156108e8576f181899199a1a9b1b9c1cb0b131b232b360811b901a6108be8587610b0d565b5360041c9280156108d457600019019190610779565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b60008181526020818152604092838320338452825260ff8484205416156109375750505050565b61094033610b34565b9084519061094d82610a44565b604282528382019460603687378251156108fc57603086538251906001918210156108fc5790607860218501536041915b8183116109db5750505061084c578461081a604861083e93604497985198899161080b898401987f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008a526107d6815180928d603789019101610a21565b909192600f811660108110156108e8576f181899199a1a9b1b9c1cb0b131b232b360811b901a610a0b8587610b0d565b5360041c9280156108d45760001901919061097e565b60005b838110610a345750506000910152565b8181015183820152602001610a24565b6080810190811067ffffffffffffffff821117610a6057604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610a6057604052565b90600091808352826020526001600160a01b036040842092169182845260205260ff604084205416610ac957505050565b80835282602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4565b908151811015610b1e570160200190565b634e487b7160e01b600052603260045260246000fd5b604051906060820182811067ffffffffffffffff821117610a6057604052602a8252602082016040368237825115610b1e57603090538151600190811015610b1e57607860218401536029905b808211610bd5575050610b915790565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b9091600f81166010811015610c2e576f181899199a1a9b1b9c1cb0b131b232b360811b901a610c048486610b0d565b5360041c918015610c19576000190190610b81565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b6005811015610d9f5780610c545750565b60018103610ca15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606490fd5b60028103610cee5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606490fd5b60038103610d465760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608490fd5b600414610d4f57565b60405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608490fd5b634e487b7160e01b600052602160045260246000fd5b906041815114600014610de357610ddf916020820151906060604084015193015160001a90610ded565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311610e965760ff16601b81141580610e8b575b610e7f579160809493916020936040519384528484015260408301526060820152600093849182805260015afa15610e725781516001600160a01b03811615610e6c579190565b50600190565b50604051903d90823e3d90fd5b50505050600090600490565b50601c811415610e25565b5050505060009060039056fea164736f6c6343000811000a
Deployed Bytecode
0x608060409080825260048036101561001657600080fd5b600092833560e01c92836301ffc9a71461065f57508263248a9ca3146106355782632a0acc6a146106125782632f2ff15d1461056a57826336568abe146104cb578263378cfd051461023d5782636c19e783146101f15782638e3655a9146101c957826391d1485414610183578263a217fddf14610168578263affed0e014610145578263d547741f1461010357505063e4d6d4c3146100b557600080fd5b34610100576020366003190112610100576001600160a01b036100d66106ce565b6100de6106e4565b1673ffffffffffffffffffffffffffffffffffffffff19600254161760025580f35b80fd5b9091503461014157806003193601126101415761013e913561013960016101286106b3565b938387528660205286200154610910565b610a98565b80f35b8280fd5b8390346101645781600319360112610164576020906003549051908152f35b5080fd5b83903461016457816003193601126101645751908152602090f35b9150346101415781600319360112610141576001600160a01b03826020946101a96106b3565b93358152808652209116600052825260ff81600020541690519015158152f35b8390346101645781600319360112610164576020906001600160a01b03600254169051908152f35b8334610100576020366003190112610100576001600160a01b036102136106ce565b61021b6106e4565b1673ffffffffffffffffffffffffffffffffffffffff19600154161760015580f35b839034610164576060366003190112610164576102586106ce565b9260249384359260443567ffffffffffffffff9081811161045d573660238201121561045d57808501358281116104c757368982840101116104c75788886003549386519360208501946001600160a01b0396878b169a6bffffffffffffffffffffffff199060601b1687528c60348301526054820152605481526080810195818710898811176104b557868a528151902060a08201907f19457468657265756d205369676e6564204d6573736167653a0a333200000000825260bc830152603c875260e08201968088108a8911176104a3579183889694926103699896946103719a8e52519020956103556020601f19601f8501160189610a76565b818852610100940184830137010152610db5565b919091610c43565b818060015416911603610461576002541690813b1561045d57868660448a838751968794859363f5d82b6b60e01b85528b8d8601528401525af180156104535761040e575b50507f9180d24f3844598cbdf59297b81fee45ff55aa35b156b409c0215fa6623e201e90600354948151908152856020820152a260001982146103fd575060010160035580f35b634e487b7160e01b83526011905250fd5b8196929611610441578552937f9180d24f3844598cbdf59297b81fee45ff55aa35b156b409c0215fa6623e201e876103b6565b634e487b7160e01b8252604184528682fd5b83513d89823e3d90fd5b8680fd5b825162461bcd60e51b81526020818701526011818a01527f496e76616c6964205369676e61747572650000000000000000000000000000006044820152606490fd5b634e487b7160e01b865260418d528686fd5b634e487b7160e01b855260418c528585fd5b8780fd5b8382346101645782600319360112610164576104e56106b3565b90336001600160a01b03831603610501579061013e9135610a98565b608490602085519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152fd5b91503461014157816003193601126101415735906105866106b3565b908284528360205261059d60018286200154610910565b828452836020526001600160a01b0381852092169182855260205260ff8185205416156105c8578380f35b828452836020528084208285526020528320600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a43880808380f35b839034610164578160031936011261016457602090516420a226a4a760d91b8152f35b91503461014157602036600319011261014157816020936001923581528085522001549051908152f35b92505034610141576020366003190112610141573563ffffffff60e01b81168091036101415760209250637965db0b60e01b81149081156106a2575b5015158152f35b6301ffc9a760e01b1490503861069b565b602435906001600160a01b03821682036106c957565b600080fd5b600435906001600160a01b03821682036106c957565b3360009081527fff164f808567eb9100129b1d5aead1611f532533c7a4cedced7e7f0a6271f5316020908152604080832054909291906420a226a4a760d91b9060ff16156107325750505050565b61073b33610b34565b9084519061074882610a44565b604282528382019460603687378251156108fc57603086538251906001918210156108fc5790607860218501536041915b81831161088e5750505061084c578461081a604861083e93604497985198899161080b898401987f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008a526107d6815180928d603789019101610a21565b8401917f206973206d697373696e6720726f6c6520000000000000000000000000000000603784015251809386840190610a21565b01036028810189520187610a76565b5194859362461bcd60e51b8552600485015251809281602486015285850190610a21565b601f01601f19168101030190fd5b60648386519062461bcd60e51b825280600483015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f811660108110156108e8576f181899199a1a9b1b9c1cb0b131b232b360811b901a6108be8587610b0d565b5360041c9280156108d457600019019190610779565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b60008181526020818152604092838320338452825260ff8484205416156109375750505050565b61094033610b34565b9084519061094d82610a44565b604282528382019460603687378251156108fc57603086538251906001918210156108fc5790607860218501536041915b8183116109db5750505061084c578461081a604861083e93604497985198899161080b898401987f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008a526107d6815180928d603789019101610a21565b909192600f811660108110156108e8576f181899199a1a9b1b9c1cb0b131b232b360811b901a610a0b8587610b0d565b5360041c9280156108d45760001901919061097e565b60005b838110610a345750506000910152565b8181015183820152602001610a24565b6080810190811067ffffffffffffffff821117610a6057604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610a6057604052565b90600091808352826020526001600160a01b036040842092169182845260205260ff604084205416610ac957505050565b80835282602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4565b908151811015610b1e570160200190565b634e487b7160e01b600052603260045260246000fd5b604051906060820182811067ffffffffffffffff821117610a6057604052602a8252602082016040368237825115610b1e57603090538151600190811015610b1e57607860218401536029905b808211610bd5575050610b915790565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b9091600f81166010811015610c2e576f181899199a1a9b1b9c1cb0b131b232b360811b901a610c048486610b0d565b5360041c918015610c19576000190190610b81565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b6005811015610d9f5780610c545750565b60018103610ca15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606490fd5b60028103610cee5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606490fd5b60038103610d465760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608490fd5b600414610d4f57565b60405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608490fd5b634e487b7160e01b600052602160045260246000fd5b906041815114600014610de357610ddf916020820151906060604084015193015160001a90610ded565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311610e965760ff16601b81141580610e8b575b610e7f579160809493916020936040519384528484015260408301526060820152600093849182805260015afa15610e725781516001600160a01b03811615610e6c579190565b50600190565b50604051903d90823e3d90fd5b50505050600090600490565b50601c811415610e25565b5050505060009060039056fea164736f6c6343000811000a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.