More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 225 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim Tokens | 20453468 | 61 days ago | IN | 0 ETH | 0.000023 | ||||
Claim Tokens | 20453468 | 61 days ago | IN | 0 ETH | 0.000023 | ||||
Claim Tokens | 20453468 | 61 days ago | IN | 0 ETH | 0.000023 | ||||
Claim Tokens | 20453460 | 61 days ago | IN | 0 ETH | 0.000023 | ||||
Claim Tokens | 20453460 | 61 days ago | IN | 0 ETH | 0.000023 | ||||
Claim Tokens | 20453378 | 61 days ago | IN | 0 ETH | 0.000023 | ||||
Claim Tokens | 20453378 | 61 days ago | IN | 0 ETH | 0.000023 | ||||
Claim Tokens | 19435297 | 204 days ago | IN | 0 ETH | 0.00158323 | ||||
Claim Tokens | 19334489 | 218 days ago | IN | 0 ETH | 0.00846294 | ||||
Claim Tokens | 19334450 | 218 days ago | IN | 0 ETH | 0.00692911 | ||||
Claim Tokens | 19334448 | 218 days ago | IN | 0 ETH | 0.00686796 | ||||
Claim Tokens | 19334446 | 218 days ago | IN | 0 ETH | 0.00729941 | ||||
Claim Tokens | 19334444 | 218 days ago | IN | 0 ETH | 0.0074189 | ||||
Claim Tokens | 19334442 | 218 days ago | IN | 0 ETH | 0.00649649 | ||||
Claim Tokens | 19334440 | 218 days ago | IN | 0 ETH | 0.00756124 | ||||
Claim Tokens | 19334438 | 218 days ago | IN | 0 ETH | 0.00752765 | ||||
Claim Tokens | 19334436 | 218 days ago | IN | 0 ETH | 0.00855616 | ||||
Claim Tokens | 19334399 | 218 days ago | IN | 0 ETH | 0.00939618 | ||||
Claim Tokens | 19154910 | 243 days ago | IN | 0 ETH | 0.00250341 | ||||
Claim Tokens | 18917175 | 276 days ago | IN | 0 ETH | 0.00117263 | ||||
Claim Tokens | 18917150 | 276 days ago | IN | 0 ETH | 0.00122726 | ||||
Claim Tokens | 18917105 | 276 days ago | IN | 0 ETH | 0.00129408 | ||||
Claim Tokens | 18917052 | 276 days ago | IN | 0 ETH | 0.00125775 | ||||
Claim Tokens | 18917047 | 276 days ago | IN | 0 ETH | 0.0012286 | ||||
Claim Tokens | 18917043 | 276 days ago | IN | 0 ETH | 0.00122372 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TokenClaim
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import "IERC20.sol"; import "AccessControlEnumerable.sol"; import "ECDSA.sol"; import "TransferHelper.sol"; contract TokenClaim is AccessControlEnumerable { bytes32 public constant SIGNER_ROLE = keccak256("SIGNER_ROLE"); IERC20 public tokenAddress; mapping(address => uint256) public claimedBalanceOf; mapping(bytes32 => bool) public processedTransactions; uint256 internal claimedAmount; event TokensClaimed( address indexed userAddress, uint256 tokenAmount, uint256 indexed timestamp ); event TokensDeposited( address indexed userAddress, uint256 tokenAmount ); event TokensWithdrawn( address indexed userAddress, uint256 tokenAmount ); event TokenAddressChanged( address tokenAddress ); /** * @dev throws if transaction sender is not in owner role */ modifier onlyOwner() { require( hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Caller is not in owner role" ); _; } constructor(IERC20 _token, address _signerAddress) { tokenAddress = _token; _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(SIGNER_ROLE, _signerAddress); } /** * @dev Function to get total amount of claimed tokens */ function getCurrentClaimedAmount() external view returns (uint256) { return claimedAmount; } /** * @dev Function to deposit tokens on contract * @param amount Tokens amount */ function depositToken(uint256 amount) external { require(amount > 0, "Amount = 0"); TransferHelper.safeTransferFrom(address(tokenAddress), _msgSender(), address(this), amount); emit TokensDeposited(_msgSender(), amount); } /** * @dev Function to withdraw tokens from contract * @param amount Tokens amount */ function withdrawToken(uint256 amount) external onlyOwner { require(amount > 0, "Amount = 0"); TransferHelper.safeTransfer(address(tokenAddress), _msgSender(), amount); emit TokensWithdrawn(_msgSender(), amount); } /** * @dev Function to set new token address * @param _newTokenAddress Address of new token */ function setNewToken(IERC20 _newTokenAddress) external onlyOwner { require (address(_newTokenAddress) != address(0), "TokenClaim: Cannot set to zero address"); tokenAddress = _newTokenAddress; emit TokenAddressChanged(address(tokenAddress)); } /** * @dev Function to get Keccak hash of parameters * @param account User address */ function getHashPacked(address account, uint256 amount, uint256 timestamp) public pure returns (bytes32) { return keccak256(abi.encodePacked(account, amount, timestamp)); } /** * @dev Function to checks that address is in signer role * @param account User address */ function isSigner(address account) public view returns (bool) { return hasRole(SIGNER_ROLE, account); } /** * @dev Function to checks that address is in owner role * @param account User address */ function isOwner(address account) public view returns (bool) { return hasRole(DEFAULT_ADMIN_ROLE, account); } /** * @dev Function to check that parameters was already processed * @param account User address * @param amount Tokens amount * @param timestamp Timestamp to release tokens * @return isProcessed True if transaction is already processed * @return hashedParams Keccak hash of parameters */ function isProcessedTransaction(address account, uint256 amount, uint256 timestamp) public view returns (bool isProcessed, bytes32 hashedParams) { hashedParams = getHashPacked(account, amount, timestamp); isProcessed = processedTransactions[hashedParams]; } /** * @dev Claims tokens for user * @param amount Tokens amount * @param timestamp Timestamp to release tokens * @param signature Signature of params */ function claimTokens(uint256 amount, uint256 timestamp, bytes memory signature) public { require(amount > 0, "TokenClaim: amount <= 0"); require (block.timestamp >= timestamp, "TokenClaim: cannot claim before time"); address account = _msgSender(); (bool isProcessed, bytes32 hashedParams) = isProcessedTransaction(account, amount, timestamp); require(!isProcessed, "TokenClaimt: Transaction already processed"); address signerAddress = ECDSA.recover(ECDSA.toEthSignedMessageHash(hashedParams), signature); require(isSigner(signerAddress), "TokenClaim: Transaction signature is not correct"); processedTransactions[hashedParams] = true; claimedBalanceOf[account] += amount; claimedAmount += amount; TransferHelper.safeTransfer(address(tokenAddress), account, amount); emit TokensClaimed(account, amount, timestamp); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IAccessControlEnumerable.sol"; import "AccessControl.sol"; import "EnumerableSet.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {grantRole} to track enumerable memberships */ function grantRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {revokeRole} to track enumerable memberships */ function revokeRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.revokeRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {renounceRole} to track enumerable memberships */ function renounceRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.renounceRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {_setupRole} to track enumerable memberships */ function _setupRole(bytes32 role, address account) internal virtual override { super._setupRole(role, account); _roleMembers[role].add(account); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "IAccessControl.sol"; import "Context.sol"; import "Strings.sol"; import "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, _msgSender()); _; } /** * @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 override returns (bool) { return _roles[role].members[account]; } /** * @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 { 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 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. */ 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. */ 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 granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ 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. * * [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}. * ==== */ 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); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @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); } }
// SPDX-License-Identifier: MIT 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 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ 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. 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 if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } 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; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 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 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: GPL-3.0-or-later pragma solidity >=0.6.0; // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false library TransferHelper { function safeApprove( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED'); } function safeTransfer( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED'); } function safeTransferFrom( address token, address from, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED'); } function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, 'TransferHelper: ETH_TRANSFER_FAILED'); } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "TokenClaim.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"address","name":"_signerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"TokenAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"TokensDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"TokensWithdrawn","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getCurrentClaimedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getHashPacked","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"isProcessedTransaction","outputs":[{"internalType":"bool","name":"isProcessed","type":"bool"},{"internalType":"bytes32","name":"hashedParams","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isSigner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"processedTransactions","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":"contract IERC20","name":"_newTokenAddress","type":"address"}],"name":"setNewToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenAddress","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001bc438038062001bc48339810160408190526200003491620001fc565b600280546001600160a01b0319166001600160a01b0384161790556200006360006200005d3390565b62000097565b6200008f7fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f708262000097565b505062000254565b620000ae8282620000da60201b62000a2a1760201c565b6000828152600160209081526040909120620000d591839062000a38620000ea821b17901c565b505050565b620000e682826200010a565b5050565b600062000101836001600160a01b038416620001aa565b90505b92915050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620000e6576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001663390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054620001f35750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000104565b50600062000104565b600080604083850312156200021057600080fd5b82516200021d816200023b565b602084015190925062000230816200023b565b809150509250929050565b6001600160a01b03811681146200025157600080fd5b50565b61196080620002646000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80639010d07c116100b8578063ac2e49361161007c578063ac2e4936146102e4578063b93563a114610307578063c2c2a26b1461030f578063c8de1d5614610322578063ca15c87314610342578063d547741f1461035557600080fd5b80639010d07c1461026457806391d148541461028f5780639d76ea58146102a2578063a1ebf35d146102b5578063a217fddf146102dc57600080fd5b806350baa6221161010a57806350baa622146101db5780635ed411e5146101ee5780636215be7714610201578063668e067f1461021457806367fff90c146102275780637df73e271461025157600080fd5b806301ffc9a714610147578063248a9ca31461016f5780632f2ff15d146101a05780632f54bf6e146101b557806336568abe146101c8575b600080fd5b61015a610155366004611660565b610368565b60405190151581526020015b60405180910390f35b61019261017d3660046115f5565b60009081526020819052604090206001015490565b604051908152602001610166565b6101b36101ae36600461160e565b610393565b005b61015a6101c3366004611581565b6103ba565b6101b36101d636600461160e565b6103c6565b6101b36101e93660046115f5565b6103e8565b6101b36101fc366004611581565b6104d1565b6101b361020f3660046115f5565b6105e1565b61019261022236600461159e565b610668565b61023a61023536600461159e565b6106b7565b604080519215158352602083019190915201610166565b61015a61025f366004611581565b6106e2565b61027761027236600461163e565b61070e565b6040516001600160a01b039091168152602001610166565b61015a61029d36600461160e565b61072d565b600254610277906001600160a01b031681565b6101927fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f7081565b610192600081565b61015a6102f23660046115f5565b60046020526000908152604090205460ff1681565b600554610192565b6101b361031d36600461168a565b610756565b610192610330366004611581565b60036020526000908152604090205481565b6101926103503660046115f5565b610a09565b6101b361036336600461160e565b610a20565b60006001600160e01b03198216635a05180f60e01b148061038d575061038d82610a4d565b92915050565b61039d8282610a82565b60008281526001602052604090206103b59082610a38565b505050565b600061038d818361072d565b6103d08282610aa8565b60008281526001602052604090206103b59082610b22565b6103f360003361072d565b6104445760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c65000000000060448201526064015b60405180910390fd5b600081116104815760405162461bcd60e51b815260206004820152600a6024820152690416d6f756e74203d20360b41b604482015260640161043b565b600254610498906001600160a01b03163383610b37565b60405181815233907f6352c5382c4a4578e712449ca65e83cdb392d045dfcf1cad9615189db2da244b906020015b60405180910390a250565b6104dc60003361072d565b6105285760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c650000000000604482015260640161043b565b6001600160a01b03811661058d5760405162461bcd60e51b815260206004820152602660248201527f546f6b656e436c61696d3a2043616e6e6f742073657420746f207a65726f206160448201526564647265737360d01b606482015260840161043b565b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527f1297217f6da0341ba2cab10677a2e4471c20ebc84acc96ef2339a734a3a233b29060200160405180910390a150565b6000811161061e5760405162461bcd60e51b815260206004820152600a6024820152690416d6f756e74203d20360b41b604482015260640161043b565b600254610636906001600160a01b0316333084610c52565b60405181815233907f59062170a285eb80e8c6b8ced60428442a51910635005233fc4ce084a475845e906020016104c6565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052605481018290526000906074016040516020818303038152906040528051906020012090509392505050565b6000806106c5858585610668565b60008181526004602052604090205460ff16969095509350505050565b600061038d7fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f708361072d565b60008281526001602052604081206107269083610d82565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600083116107a65760405162461bcd60e51b815260206004820152601760248201527f546f6b656e436c61696d3a20616d6f756e74203c3d2030000000000000000000604482015260640161043b565b814210156108025760405162461bcd60e51b8152602060048201526024808201527f546f6b656e436c61696d3a2063616e6e6f7420636c61696d206265666f72652060448201526374696d6560e01b606482015260840161043b565b336000806108118387876106b7565b9150915081156108765760405162461bcd60e51b815260206004820152602a60248201527f546f6b656e436c61696d743a205472616e73616374696f6e20616c7265616479604482015269081c1c9bd8d95cdcd95960b21b606482015260840161043b565b60006108d86108d2836040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b86610d8e565b90506108e3816106e2565b6109485760405162461bcd60e51b815260206004820152603060248201527f546f6b656e436c61696d3a205472616e73616374696f6e207369676e6174757260448201526f19481a5cc81b9bdd0818dbdc9c9958dd60821b606482015260840161043b565b6000828152600460209081526040808320805460ff191660011790556001600160a01b0387168352600390915281208054899290610987908490611812565b9250508190555086600560008282546109a09190611812565b90915550506002546109bc906001600160a01b03168589610b37565b85846001600160a01b03167f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b896040516109f891815260200190565b60405180910390a350505050505050565b600081815260016020526040812061038d90610db2565b6103d08282610dbc565b610a348282610de2565b5050565b6000610726836001600160a01b038416610e66565b60006001600160e01b03198216637965db0b60e01b148061038d57506301ffc9a760e01b6001600160e01b031983161461038d565b600082815260208190526040902060010154610a9e8133610eb5565b6103b58383610de2565b6001600160a01b0381163314610b185760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161043b565b610a348282610f19565b6000610726836001600160a01b038416610f7e565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691610b93919061174e565b6000604051808303816000865af19150503d8060008114610bd0576040519150601f19603f3d011682016040523d82523d6000602084013e610bd5565b606091505b5091509150818015610bff575080511580610bff575080806020019051810190610bff91906115d3565b610c4b5760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015260640161043b565b5050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691610cb6919061174e565b6000604051808303816000865af19150503d8060008114610cf3576040519150601f19603f3d011682016040523d82523d6000602084013e610cf8565b606091505b5091509150818015610d22575080511580610d22575080806020019051810190610d2291906115d3565b610d7a5760405162461bcd60e51b8152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f46416044820152631253115160e21b606482015260840161043b565b505050505050565b60006107268383611071565b6000806000610d9d858561109b565b91509150610daa8161110b565b509392505050565b600061038d825490565b600082815260208190526040902060010154610dd88133610eb5565b6103b58383610f19565b610dec828261072d565b610a34576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610e223390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054610ead5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561038d565b50600061038d565b610ebf828261072d565b610a3457610ed7816001600160a01b031660146112c9565b610ee28360206112c9565b604051602001610ef392919061176a565b60408051601f198184030181529082905262461bcd60e51b825261043b916004016117df565b610f23828261072d565b15610a34576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015611067576000610fa2600183611849565b8554909150600090610fb690600190611849565b905081811461101b576000866000018281548110610fd657610fd66118e9565b9060005260206000200154905080876000018481548110610ff957610ff96118e9565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061102c5761102c6118d3565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061038d565b600091505061038d565b6000826000018281548110611088576110886118e9565b9060005260206000200154905092915050565b6000808251604114156110d25760208301516040840151606085015160001a6110c687828585611465565b94509450505050611104565b8251604014156110fc57602083015160408401516110f1868383611552565b935093505050611104565b506000905060025b9250929050565b600081600481111561111f5761111f6118bd565b14156111285750565b600181600481111561113c5761113c6118bd565b141561118a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161043b565b600281600481111561119e5761119e6118bd565b14156111ec5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161043b565b6003816004811115611200576112006118bd565b14156112595760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161043b565b600481600481111561126d5761126d6118bd565b14156112c65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161043b565b50565b606060006112d883600261182a565b6112e3906002611812565b67ffffffffffffffff8111156112fb576112fb6118ff565b6040519080825280601f01601f191660200182016040528015611325576020820181803683370190505b509050600360fc1b81600081518110611340576113406118e9565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061136f5761136f6118e9565b60200101906001600160f81b031916908160001a905350600061139384600261182a565b61139e906001611812565b90505b6001811115611416576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106113d2576113d26118e9565b1a60f81b8282815181106113e8576113e86118e9565b60200101906001600160f81b031916908160001a90535060049490941c9361140f81611890565b90506113a1565b5083156107265760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161043b565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561149c5750600090506003611549565b8460ff16601b141580156114b457508460ff16601c14155b156114c55750600090506004611549565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611519573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661154257600060019250925050611549565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161157387828885611465565b935093505050935093915050565b60006020828403121561159357600080fd5b813561072681611915565b6000806000606084860312156115b357600080fd5b83356115be81611915565b95602085013595506040909401359392505050565b6000602082840312156115e557600080fd5b8151801515811461072657600080fd5b60006020828403121561160757600080fd5b5035919050565b6000806040838503121561162157600080fd5b82359150602083013561163381611915565b809150509250929050565b6000806040838503121561165157600080fd5b50508035926020909101359150565b60006020828403121561167257600080fd5b81356001600160e01b03198116811461072657600080fd5b60008060006060848603121561169f57600080fd5b8335925060208401359150604084013567ffffffffffffffff808211156116c557600080fd5b818601915086601f8301126116d957600080fd5b8135818111156116eb576116eb6118ff565b604051601f8201601f19908116603f01168101908382118183101715611713576117136118ff565b8160405282815289602084870101111561172c57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60008251611760818460208701611860565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516117a2816017850160208801611860565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516117d3816028840160208801611860565b01602801949350505050565b60208152600082518060208401526117fe816040850160208701611860565b601f01601f19169190910160400192915050565b60008219821115611825576118256118a7565b500190565b6000816000190483118215151615611844576118446118a7565b500290565b60008282101561185b5761185b6118a7565b500390565b60005b8381101561187b578181015183820152602001611863565b8381111561188a576000848401525b50505050565b60008161189f5761189f6118a7565b506000190190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146112c657600080fdfea26469706673582212208f2511318bbffa12bd9babfe5601d363871f8c49f0e0e621c57de684f291f6e964736f6c634300080700330000000000000000000000005a520e593f89c908cd2bc27d928bc75913c55c420000000000000000000000004cb624284fda4dc24f033a7f5ba1e2d1e843382f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c80639010d07c116100b8578063ac2e49361161007c578063ac2e4936146102e4578063b93563a114610307578063c2c2a26b1461030f578063c8de1d5614610322578063ca15c87314610342578063d547741f1461035557600080fd5b80639010d07c1461026457806391d148541461028f5780639d76ea58146102a2578063a1ebf35d146102b5578063a217fddf146102dc57600080fd5b806350baa6221161010a57806350baa622146101db5780635ed411e5146101ee5780636215be7714610201578063668e067f1461021457806367fff90c146102275780637df73e271461025157600080fd5b806301ffc9a714610147578063248a9ca31461016f5780632f2ff15d146101a05780632f54bf6e146101b557806336568abe146101c8575b600080fd5b61015a610155366004611660565b610368565b60405190151581526020015b60405180910390f35b61019261017d3660046115f5565b60009081526020819052604090206001015490565b604051908152602001610166565b6101b36101ae36600461160e565b610393565b005b61015a6101c3366004611581565b6103ba565b6101b36101d636600461160e565b6103c6565b6101b36101e93660046115f5565b6103e8565b6101b36101fc366004611581565b6104d1565b6101b361020f3660046115f5565b6105e1565b61019261022236600461159e565b610668565b61023a61023536600461159e565b6106b7565b604080519215158352602083019190915201610166565b61015a61025f366004611581565b6106e2565b61027761027236600461163e565b61070e565b6040516001600160a01b039091168152602001610166565b61015a61029d36600461160e565b61072d565b600254610277906001600160a01b031681565b6101927fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f7081565b610192600081565b61015a6102f23660046115f5565b60046020526000908152604090205460ff1681565b600554610192565b6101b361031d36600461168a565b610756565b610192610330366004611581565b60036020526000908152604090205481565b6101926103503660046115f5565b610a09565b6101b361036336600461160e565b610a20565b60006001600160e01b03198216635a05180f60e01b148061038d575061038d82610a4d565b92915050565b61039d8282610a82565b60008281526001602052604090206103b59082610a38565b505050565b600061038d818361072d565b6103d08282610aa8565b60008281526001602052604090206103b59082610b22565b6103f360003361072d565b6104445760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c65000000000060448201526064015b60405180910390fd5b600081116104815760405162461bcd60e51b815260206004820152600a6024820152690416d6f756e74203d20360b41b604482015260640161043b565b600254610498906001600160a01b03163383610b37565b60405181815233907f6352c5382c4a4578e712449ca65e83cdb392d045dfcf1cad9615189db2da244b906020015b60405180910390a250565b6104dc60003361072d565b6105285760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c650000000000604482015260640161043b565b6001600160a01b03811661058d5760405162461bcd60e51b815260206004820152602660248201527f546f6b656e436c61696d3a2043616e6e6f742073657420746f207a65726f206160448201526564647265737360d01b606482015260840161043b565b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527f1297217f6da0341ba2cab10677a2e4471c20ebc84acc96ef2339a734a3a233b29060200160405180910390a150565b6000811161061e5760405162461bcd60e51b815260206004820152600a6024820152690416d6f756e74203d20360b41b604482015260640161043b565b600254610636906001600160a01b0316333084610c52565b60405181815233907f59062170a285eb80e8c6b8ced60428442a51910635005233fc4ce084a475845e906020016104c6565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052605481018290526000906074016040516020818303038152906040528051906020012090509392505050565b6000806106c5858585610668565b60008181526004602052604090205460ff16969095509350505050565b600061038d7fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f708361072d565b60008281526001602052604081206107269083610d82565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600083116107a65760405162461bcd60e51b815260206004820152601760248201527f546f6b656e436c61696d3a20616d6f756e74203c3d2030000000000000000000604482015260640161043b565b814210156108025760405162461bcd60e51b8152602060048201526024808201527f546f6b656e436c61696d3a2063616e6e6f7420636c61696d206265666f72652060448201526374696d6560e01b606482015260840161043b565b336000806108118387876106b7565b9150915081156108765760405162461bcd60e51b815260206004820152602a60248201527f546f6b656e436c61696d743a205472616e73616374696f6e20616c7265616479604482015269081c1c9bd8d95cdcd95960b21b606482015260840161043b565b60006108d86108d2836040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b86610d8e565b90506108e3816106e2565b6109485760405162461bcd60e51b815260206004820152603060248201527f546f6b656e436c61696d3a205472616e73616374696f6e207369676e6174757260448201526f19481a5cc81b9bdd0818dbdc9c9958dd60821b606482015260840161043b565b6000828152600460209081526040808320805460ff191660011790556001600160a01b0387168352600390915281208054899290610987908490611812565b9250508190555086600560008282546109a09190611812565b90915550506002546109bc906001600160a01b03168589610b37565b85846001600160a01b03167f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b896040516109f891815260200190565b60405180910390a350505050505050565b600081815260016020526040812061038d90610db2565b6103d08282610dbc565b610a348282610de2565b5050565b6000610726836001600160a01b038416610e66565b60006001600160e01b03198216637965db0b60e01b148061038d57506301ffc9a760e01b6001600160e01b031983161461038d565b600082815260208190526040902060010154610a9e8133610eb5565b6103b58383610de2565b6001600160a01b0381163314610b185760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161043b565b610a348282610f19565b6000610726836001600160a01b038416610f7e565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691610b93919061174e565b6000604051808303816000865af19150503d8060008114610bd0576040519150601f19603f3d011682016040523d82523d6000602084013e610bd5565b606091505b5091509150818015610bff575080511580610bff575080806020019051810190610bff91906115d3565b610c4b5760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015260640161043b565b5050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691610cb6919061174e565b6000604051808303816000865af19150503d8060008114610cf3576040519150601f19603f3d011682016040523d82523d6000602084013e610cf8565b606091505b5091509150818015610d22575080511580610d22575080806020019051810190610d2291906115d3565b610d7a5760405162461bcd60e51b8152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f46416044820152631253115160e21b606482015260840161043b565b505050505050565b60006107268383611071565b6000806000610d9d858561109b565b91509150610daa8161110b565b509392505050565b600061038d825490565b600082815260208190526040902060010154610dd88133610eb5565b6103b58383610f19565b610dec828261072d565b610a34576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610e223390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054610ead5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561038d565b50600061038d565b610ebf828261072d565b610a3457610ed7816001600160a01b031660146112c9565b610ee28360206112c9565b604051602001610ef392919061176a565b60408051601f198184030181529082905262461bcd60e51b825261043b916004016117df565b610f23828261072d565b15610a34576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015611067576000610fa2600183611849565b8554909150600090610fb690600190611849565b905081811461101b576000866000018281548110610fd657610fd66118e9565b9060005260206000200154905080876000018481548110610ff957610ff96118e9565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061102c5761102c6118d3565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061038d565b600091505061038d565b6000826000018281548110611088576110886118e9565b9060005260206000200154905092915050565b6000808251604114156110d25760208301516040840151606085015160001a6110c687828585611465565b94509450505050611104565b8251604014156110fc57602083015160408401516110f1868383611552565b935093505050611104565b506000905060025b9250929050565b600081600481111561111f5761111f6118bd565b14156111285750565b600181600481111561113c5761113c6118bd565b141561118a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161043b565b600281600481111561119e5761119e6118bd565b14156111ec5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161043b565b6003816004811115611200576112006118bd565b14156112595760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161043b565b600481600481111561126d5761126d6118bd565b14156112c65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161043b565b50565b606060006112d883600261182a565b6112e3906002611812565b67ffffffffffffffff8111156112fb576112fb6118ff565b6040519080825280601f01601f191660200182016040528015611325576020820181803683370190505b509050600360fc1b81600081518110611340576113406118e9565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061136f5761136f6118e9565b60200101906001600160f81b031916908160001a905350600061139384600261182a565b61139e906001611812565b90505b6001811115611416576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106113d2576113d26118e9565b1a60f81b8282815181106113e8576113e86118e9565b60200101906001600160f81b031916908160001a90535060049490941c9361140f81611890565b90506113a1565b5083156107265760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161043b565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561149c5750600090506003611549565b8460ff16601b141580156114b457508460ff16601c14155b156114c55750600090506004611549565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611519573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661154257600060019250925050611549565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161157387828885611465565b935093505050935093915050565b60006020828403121561159357600080fd5b813561072681611915565b6000806000606084860312156115b357600080fd5b83356115be81611915565b95602085013595506040909401359392505050565b6000602082840312156115e557600080fd5b8151801515811461072657600080fd5b60006020828403121561160757600080fd5b5035919050565b6000806040838503121561162157600080fd5b82359150602083013561163381611915565b809150509250929050565b6000806040838503121561165157600080fd5b50508035926020909101359150565b60006020828403121561167257600080fd5b81356001600160e01b03198116811461072657600080fd5b60008060006060848603121561169f57600080fd5b8335925060208401359150604084013567ffffffffffffffff808211156116c557600080fd5b818601915086601f8301126116d957600080fd5b8135818111156116eb576116eb6118ff565b604051601f8201601f19908116603f01168101908382118183101715611713576117136118ff565b8160405282815289602084870101111561172c57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60008251611760818460208701611860565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516117a2816017850160208801611860565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516117d3816028840160208801611860565b01602801949350505050565b60208152600082518060208401526117fe816040850160208701611860565b601f01601f19169190910160400192915050565b60008219821115611825576118256118a7565b500190565b6000816000190483118215151615611844576118446118a7565b500290565b60008282101561185b5761185b6118a7565b500390565b60005b8381101561187b578181015183820152602001611863565b8381111561188a576000848401525b50505050565b60008161189f5761189f6118a7565b506000190190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146112c657600080fdfea26469706673582212208f2511318bbffa12bd9babfe5601d363871f8c49f0e0e621c57de684f291f6e964736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005a520e593f89c908cd2bc27d928bc75913c55c420000000000000000000000004cb624284fda4dc24f033a7f5ba1e2d1e843382f
-----Decoded View---------------
Arg [0] : _token (address): 0x5A520e593F89c908cd2bc27D928bc75913C55C42
Arg [1] : _signerAddress (address): 0x4Cb624284FDA4dC24F033A7F5BA1e2d1e843382f
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000005a520e593f89c908cd2bc27d928bc75913c55c42
Arg [1] : 0000000000000000000000004cb624284fda4dc24f033a7f5ba1e2d1e843382f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 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.