More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 245 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Token | 20359683 | 127 days ago | IN | 0 ETH | 0.00022824 | ||||
Withdraw Token | 20358932 | 128 days ago | IN | 0 ETH | 0.00023844 | ||||
Claim | 20221895 | 147 days ago | IN | 0 ETH | 0.0006211 | ||||
Claim | 20160646 | 155 days ago | IN | 0 ETH | 0.00069283 | ||||
Claim | 20114833 | 162 days ago | IN | 0 ETH | 0.00087381 | ||||
Claim | 20113717 | 162 days ago | IN | 0 ETH | 0.0015675 | ||||
Claim | 20042388 | 172 days ago | IN | 0 ETH | 0.00213643 | ||||
Claim | 20035714 | 173 days ago | IN | 0 ETH | 0.00155008 | ||||
Claim | 20017536 | 175 days ago | IN | 0 ETH | 0.0012251 | ||||
Claim | 20017500 | 175 days ago | IN | 0 ETH | 0.00138741 | ||||
Claim | 20016360 | 175 days ago | IN | 0 ETH | 0.00068192 | ||||
Claim | 20009419 | 176 days ago | IN | 0 ETH | 0.00099484 | ||||
Claim | 20009246 | 176 days ago | IN | 0 ETH | 0.00081876 | ||||
Claim | 20008769 | 177 days ago | IN | 0 ETH | 0.00135942 | ||||
Claim | 20008685 | 177 days ago | IN | 0 ETH | 0.00153371 | ||||
Claim | 20006647 | 177 days ago | IN | 0 ETH | 0.00199107 | ||||
Claim | 20002437 | 177 days ago | IN | 0 ETH | 0.00048674 | ||||
Claim | 20002126 | 177 days ago | IN | 0 ETH | 0.00061094 | ||||
Claim | 19997054 | 178 days ago | IN | 0 ETH | 0.00100319 | ||||
Claim | 19993356 | 179 days ago | IN | 0 ETH | 0.00107338 | ||||
Claim | 19985909 | 180 days ago | IN | 0 ETH | 0.00111965 | ||||
Claim | 19960435 | 183 days ago | IN | 0 ETH | 0.00257221 | ||||
Claim | 19953821 | 184 days ago | IN | 0 ETH | 0.0012901 | ||||
Claim | 19936805 | 187 days ago | IN | 0 ETH | 0.00091247 | ||||
Claim | 19874390 | 195 days ago | IN | 0 ETH | 0.00122653 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
SbeeTokenClaim
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/cryptography/EIP712.sol"; contract SbeeTokenClaim is Ownable, ReentrancyGuard, EIP712 { IERC20 public token; bool public claimActive = false; address public immutable CLAIM_SIGNER; string private constant SIGNING_DOMAIN = "SbeeTokenClaim"; string private constant SIGNATURE_VERSION = "1"; uint256 public eighteenZeros = eighteenZeros; struct Option { uint256 totalSupply; uint256 claimedSupply; uint256 maxClaimableUsers; uint256 claimedUsers; uint256 maxClaimableAmount; } mapping(uint256 => Option) public options; mapping(address => mapping(uint256 => bool)) public hasClaimed; enum OptionType { Developer, OpenSourceContributor, NftContractCreator, GitcoinDonor, EnsHolder, NftHolder, MemeHolder } struct ClaimOptions { address account; uint256 developerAmount; uint256 openSourceContributorAmount; uint256 nftContractCreatorAmount; uint256 gitcoinDonorAmount; uint256 ensHolderAmount; uint256 nftHolderAmount; uint256 memeHolderAmount; } event TokensClaimed(address account, uint256[] amounts); constructor( address claimSigner, address tokenAddress ) EIP712(SIGNING_DOMAIN, SIGNATURE_VERSION) { CLAIM_SIGNER = claimSigner; token = IERC20(tokenAddress); } modifier onlyEOA() { require(msg.sender == tx.origin, "Only EOA can call this function"); _; } modifier canClaimTokens() { require(claimActive, "Claiming is not currently allowed"); _; } function setClaimActive(bool _active) external onlyOwner { claimActive = _active; } function claim( uint256 developerAmount, uint256 openSourceContributorAmount, uint256 nftContractCreatorAmount, uint256 gitcoinDonorAmount, uint256 ensHolderAmount, uint256 nftHolderAmount, uint256 memeHolderAmount, bytes memory signature ) external nonReentrant canClaimTokens onlyEOA { ClaimOptions memory _options = ClaimOptions( msg.sender, developerAmount, openSourceContributorAmount, nftContractCreatorAmount, gitcoinDonorAmount, ensHolderAmount, nftHolderAmount, memeHolderAmount ); require( _verify(_options, signature) == CLAIM_SIGNER, "Invalid signature" ); uint256 totalAmount = developerAmount + openSourceContributorAmount + nftContractCreatorAmount + gitcoinDonorAmount + ensHolderAmount + nftHolderAmount + memeHolderAmount; require( canClaim(_options), "Claim amount exceeds limit or already claimed" ); updateClaimedAmounts(_options); require( token.transfer(msg.sender, totalAmount), "Token transfer failed" ); uint256[] memory amounts = new uint256[](7); amounts[0] = developerAmount; amounts[1] = openSourceContributorAmount; amounts[2] = nftContractCreatorAmount; amounts[3] = gitcoinDonorAmount; amounts[4] = ensHolderAmount; amounts[5] = nftHolderAmount; amounts[6] = memeHolderAmount; emit TokensClaimed(msg.sender, amounts); } function canClaim( ClaimOptions memory _options ) internal view returns (bool) { return canClaim( OptionType.Developer, _options.developerAmount, _options.account ) && canClaim( OptionType.OpenSourceContributor, _options.openSourceContributorAmount, _options.account ) && canClaim( OptionType.NftContractCreator, _options.nftContractCreatorAmount, _options.account ) && canClaim( OptionType.GitcoinDonor, _options.gitcoinDonorAmount, _options.account ) && canClaim( OptionType.EnsHolder, _options.ensHolderAmount, _options.account ) && canClaim( OptionType.NftHolder, _options.nftHolderAmount, _options.account ) && canClaim( OptionType.MemeHolder, _options.memeHolderAmount, _options.account ); } function updateClaimedAmounts(ClaimOptions memory _options) internal { updateClaimAmount( OptionType.Developer, _options.developerAmount, _options.account ); updateClaimAmount( OptionType.OpenSourceContributor, _options.openSourceContributorAmount, _options.account ); updateClaimAmount( OptionType.NftContractCreator, _options.nftContractCreatorAmount, _options.account ); updateClaimAmount( OptionType.GitcoinDonor, _options.gitcoinDonorAmount, _options.account ); updateClaimAmount( OptionType.EnsHolder, _options.ensHolderAmount, _options.account ); updateClaimAmount( OptionType.NftHolder, _options.nftHolderAmount, _options.account ); updateClaimAmount( OptionType.MemeHolder, _options.memeHolderAmount, _options.account ); } function updateClaimAmount( OptionType optionType, uint256 amount, address account ) internal { if (amount > 0) { Option storage option = options[uint256(optionType)]; option.claimedUsers++; option.claimedSupply += amount; hasClaimed[account][uint256(optionType)] = true; } } function canClaim( OptionType optionType, uint256 amount, address account ) internal view returns (bool) { if (amount == 0) { return true; } Option storage option = options[uint256(optionType)]; return !hasClaimed[account][uint256(optionType)] && amount <= option.maxClaimableAmount && option.claimedSupply + amount <= option.totalSupply && option.claimedUsers < option.maxClaimableUsers; } function _hash( ClaimOptions memory _options ) internal view returns (bytes32) { return _hashTypedDataV4( keccak256( abi.encode( keccak256( "ClaimOptions(address account,uint256 developerAmount,uint256 openSourceContributorAmount,uint256 nftContractCreatorAmount,uint256 gitcoinDonorAmount,uint256 ensHolderAmount,uint256 nftHolderAmount,uint256 memeHolderAmount)" ), _options.account, _options.developerAmount, _options.openSourceContributorAmount, _options.nftContractCreatorAmount, _options.gitcoinDonorAmount, _options.ensHolderAmount, _options.nftHolderAmount, _options.memeHolderAmount ) ) ); } function _verify( ClaimOptions memory _options, bytes memory signature ) internal view returns (address) { bytes32 digest = _hash(_options); return ECDSA.recover(digest, signature); } function setOption( OptionType optionType, uint256 totalSupply, uint256 claimedSupply, uint256 maxClaimableUsers, uint256 claimedUsers, uint256 maxClaimableAmount ) external onlyOwner { Option storage option = options[uint256(optionType)]; option.totalSupply = totalSupply; option.claimedSupply = claimedSupply; option.maxClaimableUsers = maxClaimableUsers; option.claimedUsers = claimedUsers; option.maxClaimableAmount = maxClaimableAmount; } function emergencyOverrideClaim( address account, OptionType optionType, bool claimed ) external onlyOwner { hasClaimed[account][uint256(optionType)] = claimed; } function withdrawToken(uint256 amount) external onlyOwner { require( token.balanceOf(address(this)) >= amount, "Insufficient balance" ); token.transfer(msg.sender, amount); } function getAccount( address account, OptionType optionType ) public view returns (bool) { return hasClaimed[account][uint256(optionType)]; } function getOption( OptionType optionType ) public view returns (Option memory) { return options[uint256(optionType)]; } function isClaimed(address account) public view returns (bool) { for (uint256 i = 0; i <= uint256(OptionType.MemeHolder); i++) { if (hasClaimed[account][i]) { return true; } } return false; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// 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.8.0) (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 // Deprecated in v4.8 } 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"); } } /** * @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 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 (last updated v4.8.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.0; import "./ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _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) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _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); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"claimSigner","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"TokensClaimed","type":"event"},{"inputs":[],"name":"CLAIM_SIGNER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"developerAmount","type":"uint256"},{"internalType":"uint256","name":"openSourceContributorAmount","type":"uint256"},{"internalType":"uint256","name":"nftContractCreatorAmount","type":"uint256"},{"internalType":"uint256","name":"gitcoinDonorAmount","type":"uint256"},{"internalType":"uint256","name":"ensHolderAmount","type":"uint256"},{"internalType":"uint256","name":"nftHolderAmount","type":"uint256"},{"internalType":"uint256","name":"memeHolderAmount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eighteenZeros","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"enum SbeeTokenClaim.OptionType","name":"optionType","type":"uint8"},{"internalType":"bool","name":"claimed","type":"bool"}],"name":"emergencyOverrideClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"enum SbeeTokenClaim.OptionType","name":"optionType","type":"uint8"}],"name":"getAccount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum SbeeTokenClaim.OptionType","name":"optionType","type":"uint8"}],"name":"getOption","outputs":[{"components":[{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"claimedSupply","type":"uint256"},{"internalType":"uint256","name":"maxClaimableUsers","type":"uint256"},{"internalType":"uint256","name":"claimedUsers","type":"uint256"},{"internalType":"uint256","name":"maxClaimableAmount","type":"uint256"}],"internalType":"struct SbeeTokenClaim.Option","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"options","outputs":[{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"claimedSupply","type":"uint256"},{"internalType":"uint256","name":"maxClaimableUsers","type":"uint256"},{"internalType":"uint256","name":"claimedUsers","type":"uint256"},{"internalType":"uint256","name":"maxClaimableAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"setClaimActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum SbeeTokenClaim.OptionType","name":"optionType","type":"uint8"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"claimedSupply","type":"uint256"},{"internalType":"uint256","name":"maxClaimableUsers","type":"uint256"},{"internalType":"uint256","name":"claimedUsers","type":"uint256"},{"internalType":"uint256","name":"maxClaimableAmount","type":"uint256"}],"name":"setOption","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101606040526000600260146101000a81548160ff0219169083151502179055506003546003553480156200003357600080fd5b50604051620030a4380380620030a4833981810160405281019062000059919062000341565b6040518060400160405280600e81526020017f53626565546f6b656e436c61696d0000000000000000000000000000000000008152506040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250620000e5620000d96200022260201b60201c565b6200022a60201b60201c565b6001808190555060008280519060200120905060008280519060200120905060007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f90508260e081815250508161010081815250504660a0818152505062000155818484620002ee60201b60201c565b608081815250503073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b8152505080610120818152505050505050508173ffffffffffffffffffffffffffffffffffffffff166101408173ffffffffffffffffffffffffffffffffffffffff1660601b8152505080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505062000474565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600083838346306040516020016200030b959493929190620003b5565b6040516020818303038152906040528051906020012090509392505050565b6000815190506200033b816200045a565b92915050565b600080604083850312156200035557600080fd5b600062000365858286016200032a565b925050602062000378858286016200032a565b9150509250929050565b6200038d8162000412565b82525050565b6200039e8162000426565b82525050565b620003af8162000450565b82525050565b600060a082019050620003cc600083018862000393565b620003db602083018762000393565b620003ea604083018662000393565b620003f96060830185620003a4565b62000408608083018462000382565b9695505050505050565b60006200041f8262000430565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b620004658162000412565b81146200047157600080fd5b50565b60805160a05160c05160601c60e05161010051610120516101405160601c612bc8620004dc600039600081816108bd0152610fac015260006119c801526000611a0a015260006119e90152600061191e015260006119740152600061199d0152612bc86000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80638e571e79116100a2578063d4a6a2fd11610071578063d4a6a2fd146102a6578063f2fde38b146102c4578063f3fe534e146102e0578063fc0c546a14610310578063fef33a5e1461032e5761010b565b80638e571e7914610220578063a438d4251461023c578063a4d47daa14610258578063b2931096146102765761010b565b8063715018a6116100de578063715018a6146101ac57806373417b09146101b65780638cc08025146101d25780638da5cb5b146102025761010b565b806303a2bb4414610110578063162abdfc1461012c578063409e22051461015c57806350baa62214610190575b600080fd5b61012a60048036038101906101259190611cfe565b61034c565b005b61014660048036038101906101419190611ddb565b6103f9565b6040516101539190612865565b60405180910390f35b61017660048036038101906101719190611e8d565b610490565b60405161018795949392919061289b565b60405180910390f35b6101aa60048036038101906101a59190611e8d565b6104c6565b005b6101b461066e565b005b6101d060048036038101906101cb9190611d89565b610682565b005b6101ec60048036038101906101e79190611c99565b6106a7565b6040516101f9919061258a565b60405180910390f35b61020a610779565b6040516102179190612516565b60405180910390f35b61023a60048036038101906102359190611edf565b6107a2565b005b61025660048036038101906102519190611e04565b610d8b565b005b610260610e18565b60405161026d9190612880565b60405180910390f35b610290600480360381019061028b9190611d4d565b610e1e565b60405161029d919061258a565b60405180910390f35b6102ae610e4d565b6040516102bb919061258a565b60405180910390f35b6102de60048036038101906102d99190611c99565b610e60565b005b6102fa60048036038101906102f59190611cc2565b610ee4565b604051610307919061258a565b60405180910390f35b610318610f84565b60405161032591906126ca565b60405180910390f35b610336610faa565b6040516103439190612516565b60405180910390f35b610354610fce565b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008460068111156103cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b610401611b84565b6004600083600681111561043e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020019081526020016000206040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250509050919050565b60046020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154905085565b6104ce610fce565b80600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161052a9190612516565b60206040518083038186803b15801561054257600080fd5b505afa158015610556573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057a9190611eb6565b10156105bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b290612745565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610618929190612561565b602060405180830381600087803b15801561063257600080fd5b505af1158015610646573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066a9190611db2565b5050565b610676610fce565b610680600061104c565b565b61068a610fce565b80600260146101000a81548160ff02191690831515021790555050565b600080600090505b6006808111156106e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b811161076e57600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082815260200190815260200160002060009054906101000a900460ff161561075b576001915050610774565b808061076690612a8c565b9150506106af565b50600090505b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6107aa611110565b600260149054906101000a900460ff166107f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f090612825565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085e906127a5565b60405180910390fd5b60006040518061010001604052803373ffffffffffffffffffffffffffffffffffffffff1681526020018a81526020018981526020018881526020018781526020018681526020018581526020018481525090507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166108fc8284611160565b73ffffffffffffffffffffffffffffffffffffffff1614610952576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094990612765565b60405180910390fd5b6000838587898b8d8f61096591906129a4565b61096f91906129a4565b61097991906129a4565b61098391906129a4565b61098d91906129a4565b61099791906129a4565b90506109a282611181565b6109e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d8906127e5565b60405180910390fd5b6109ea82611246565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610a47929190612561565b602060405180830381600087803b158015610a6157600080fd5b505af1158015610a75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a999190611db2565b610ad8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acf906127c5565b60405180910390fd5b6000600767ffffffffffffffff811115610b1b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610b495781602001602082028036833780820191505090505b5090508a81600081518110610b87577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508981600181518110610bce577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508881600281518110610c15577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508781600381518110610c5c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508681600481518110610ca3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508581600581518110610cea577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508481600681518110610d31577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250507f2ed48368de79b173beedca1e8032871f3f17b79b90846860673ab50f234273e13382604051610d6e929190612531565b60405180910390a1505050610d816112d5565b5050505050505050565b610d93610fce565b600060046000886006811115610dd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8152602001908152602001600020905085816000018190555084816001018190555083816002018190555082816003018190555081816004018190555050505050505050565b60035481565b60056020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b600260149054906101000a900460ff1681565b610e68610fce565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ed8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecf90612725565b60405180910390fd5b610ee18161104c565b50565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836006811115610f60577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060009054906101000a900460ff16905092915050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b610fd66112de565b73ffffffffffffffffffffffffffffffffffffffff16610ff4610779565b73ffffffffffffffffffffffffffffffffffffffff161461104a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104190612805565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60026001541415611156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114d90612845565b60405180910390fd5b6002600181905550565b60008061116c846112e6565b9050611178818461136e565b91505092915050565b6000611197600083602001518460000151611395565b80156111b357506111b2600183604001518460000151611395565b5b80156111cf57506111ce600283606001518460000151611395565b5b80156111eb57506111ea600383608001518460000151611395565b5b8015611207575061120660048360a001518460000151611395565b5b8015611223575061122260058360c001518460000151611395565b5b801561123f575061123e60068360e001518460000151611395565b5b9050919050565b61125a6000826020015183600001516114db565b61126e6001826040015183600001516114db565b6112826002826060015183600001516114db565b6112966003826080015183600001516114db565b6112aa60048260a0015183600001516114db565b6112be60058260c0015183600001516114db565b6112d260068260e0015183600001516114db565b50565b60018081905550565b600033905090565b60006113677f755f07404aad3a7d4e7affa05c46fc4c26182aaf31b57021c6e1c52cf91a12e3836000015184602001518560400151866060015187608001518860a001518960c001518a60e0015160405160200161134c999897969594939291906125a5565b60405160208183030381529060405280519060200120611610565b9050919050565b600080600061137d858561162a565b9150915061138a8161167c565b819250505092915050565b6000808314156113a857600190506114d4565b6000600460008660068111156113e7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020019081526020016000209050600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000866006811115611471577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060009054906101000a900460ff1615801561149e575080600401548411155b80156114bd575080600001548482600101546114ba91906129a4565b11155b80156114d0575080600201548160030154105b9150505b9392505050565b600082111561160b57600060046000856006811115611523577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8152602001908152602001600020905080600301600081548092919061154890612a8c565b91905055508281600101600082825461156191906129a4565b925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008660068111156115e4577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060006101000a81548160ff021916908315150217905550505b505050565b600061162361161d61191a565b83611a34565b9050919050565b60008060418351141561166c5760008060006020860151925060408601519150606086015160001a905061166087828585611a67565b94509450505050611675565b60006002915091505b9250929050565b600060048111156116b6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156116ef577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156116fa57611917565b60016004811115611734577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561176d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156117ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a5906126e5565b60405180910390fd5b600260048111156117e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115611821577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415611862576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185990612705565b60405180910390fd5b6003600481111561189c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156118d5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415611916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190d90612785565b60405180910390fd5b5b50565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614801561199657507f000000000000000000000000000000000000000000000000000000000000000046145b156119c3577f00000000000000000000000000000000000000000000000000000000000000009050611a31565b611a2e7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000611b4a565b90505b90565b60008282604051602001611a499291906124df565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115611aa2576000600391509150611b41565b600060018787878760405160008152602001604052604051611ac79493929190612685565b6020604051602081039080840390855afa158015611ae9573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b3857600060019250925050611b41565b80600092509250505b94509492505050565b60008383834630604051602001611b65959493929190612632565b6040516020818303038152906040528051906020012090509392505050565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6000611bc6611bc18461291f565b6128ee565b905082815260208101848484011115611bde57600080fd5b611be9848285612a7d565b509392505050565b600081359050611c0081612b3d565b92915050565b600081359050611c1581612b54565b92915050565b600081519050611c2a81612b54565b92915050565b600082601f830112611c4157600080fd5b8135611c51848260208601611bb3565b91505092915050565b600081359050611c6981612b6b565b92915050565b600081359050611c7e81612b7b565b92915050565b600081519050611c9381612b7b565b92915050565b600060208284031215611cab57600080fd5b6000611cb984828501611bf1565b91505092915050565b60008060408385031215611cd557600080fd5b6000611ce385828601611bf1565b9250506020611cf485828601611c5a565b9150509250929050565b600080600060608486031215611d1357600080fd5b6000611d2186828701611bf1565b9350506020611d3286828701611c5a565b9250506040611d4386828701611c06565b9150509250925092565b60008060408385031215611d6057600080fd5b6000611d6e85828601611bf1565b9250506020611d7f85828601611c6f565b9150509250929050565b600060208284031215611d9b57600080fd5b6000611da984828501611c06565b91505092915050565b600060208284031215611dc457600080fd5b6000611dd284828501611c1b565b91505092915050565b600060208284031215611ded57600080fd5b6000611dfb84828501611c5a565b91505092915050565b60008060008060008060c08789031215611e1d57600080fd5b6000611e2b89828a01611c5a565b9650506020611e3c89828a01611c6f565b9550506040611e4d89828a01611c6f565b9450506060611e5e89828a01611c6f565b9350506080611e6f89828a01611c6f565b92505060a0611e8089828a01611c6f565b9150509295509295509295565b600060208284031215611e9f57600080fd5b6000611ead84828501611c6f565b91505092915050565b600060208284031215611ec857600080fd5b6000611ed684828501611c84565b91505092915050565b600080600080600080600080610100898b031215611efc57600080fd5b6000611f0a8b828c01611c6f565b9850506020611f1b8b828c01611c6f565b9750506040611f2c8b828c01611c6f565b9650506060611f3d8b828c01611c6f565b9550506080611f4e8b828c01611c6f565b94505060a0611f5f8b828c01611c6f565b93505060c0611f708b828c01611c6f565b92505060e089013567ffffffffffffffff811115611f8d57600080fd5b611f998b828c01611c30565b9150509295985092959890939650565b6000611fb583836124b2565b60208301905092915050565b611fca816129fa565b82525050565b6000611fdb8261295f565b611fe58185612977565b9350611ff08361294f565b8060005b838110156120215781516120088882611fa9565b97506120138361296a565b925050600181019050611ff4565b5085935050505092915050565b61203781612a0c565b82525050565b61204681612a18565b82525050565b61205d61205882612a18565b612ad5565b82525050565b61206c81612a59565b82525050565b600061207f601883612988565b91507f45434453413a20696e76616c6964207369676e617475726500000000000000006000830152602082019050919050565b60006120bf601f83612988565b91507f45434453413a20696e76616c6964207369676e6174757265206c656e677468006000830152602082019050919050565b60006120ff602683612988565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612165600283612999565b91507f19010000000000000000000000000000000000000000000000000000000000006000830152600282019050919050565b60006121a5601483612988565b91507f496e73756666696369656e742062616c616e63650000000000000000000000006000830152602082019050919050565b60006121e5601183612988565b91507f496e76616c6964207369676e61747572650000000000000000000000000000006000830152602082019050919050565b6000612225602283612988565b91507f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008301527f75650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061228b601f83612988565b91507f4f6e6c7920454f412063616e2063616c6c20746869732066756e6374696f6e006000830152602082019050919050565b60006122cb601583612988565b91507f546f6b656e207472616e73666572206661696c656400000000000000000000006000830152602082019050919050565b600061230b602d83612988565b91507f436c61696d20616d6f756e742065786365656473206c696d6974206f7220616c60008301527f726561647920636c61696d6564000000000000000000000000000000000000006020830152604082019050919050565b6000612371602083612988565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006123b1602183612988565b91507f436c61696d696e67206973206e6f742063757272656e746c7920616c6c6f776560008301527f64000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612417601f83612988565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b60a08201600082015161246060008501826124b2565b50602082015161247360208501826124b2565b50604082015161248660408501826124b2565b50606082015161249960608501826124b2565b5060808201516124ac60808501826124b2565b50505050565b6124bb81612a42565b82525050565b6124ca81612a42565b82525050565b6124d981612a4c565b82525050565b60006124ea82612158565b91506124f6828561204c565b602082019150612506828461204c565b6020820191508190509392505050565b600060208201905061252b6000830184611fc1565b92915050565b60006040820190506125466000830185611fc1565b81810360208301526125588184611fd0565b90509392505050565b60006040820190506125766000830185611fc1565b61258360208301846124c1565b9392505050565b600060208201905061259f600083018461202e565b92915050565b6000610120820190506125bb600083018c61203d565b6125c8602083018b611fc1565b6125d5604083018a6124c1565b6125e260608301896124c1565b6125ef60808301886124c1565b6125fc60a08301876124c1565b61260960c08301866124c1565b61261660e08301856124c1565b6126246101008301846124c1565b9a9950505050505050505050565b600060a082019050612647600083018861203d565b612654602083018761203d565b612661604083018661203d565b61266e60608301856124c1565b61267b6080830184611fc1565b9695505050505050565b600060808201905061269a600083018761203d565b6126a760208301866124d0565b6126b4604083018561203d565b6126c1606083018461203d565b95945050505050565b60006020820190506126df6000830184612063565b92915050565b600060208201905081810360008301526126fe81612072565b9050919050565b6000602082019050818103600083015261271e816120b2565b9050919050565b6000602082019050818103600083015261273e816120f2565b9050919050565b6000602082019050818103600083015261275e81612198565b9050919050565b6000602082019050818103600083015261277e816121d8565b9050919050565b6000602082019050818103600083015261279e81612218565b9050919050565b600060208201905081810360008301526127be8161227e565b9050919050565b600060208201905081810360008301526127de816122be565b9050919050565b600060208201905081810360008301526127fe816122fe565b9050919050565b6000602082019050818103600083015261281e81612364565b9050919050565b6000602082019050818103600083015261283e816123a4565b9050919050565b6000602082019050818103600083015261285e8161240a565b9050919050565b600060a08201905061287a600083018461244a565b92915050565b600060208201905061289560008301846124c1565b92915050565b600060a0820190506128b060008301886124c1565b6128bd60208301876124c1565b6128ca60408301866124c1565b6128d760608301856124c1565b6128e460808301846124c1565b9695505050505050565b6000604051905081810181811067ffffffffffffffff8211171561291557612914612b0e565b5b8060405250919050565b600067ffffffffffffffff82111561293a57612939612b0e565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006129af82612a42565b91506129ba83612a42565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156129ef576129ee612adf565b5b828201905092915050565b6000612a0582612a22565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000612a6482612a6b565b9050919050565b6000612a7682612a22565b9050919050565b82818337600083830152505050565b6000612a9782612a42565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612aca57612ac9612adf565b5b600182019050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612b46816129fa565b8114612b5157600080fd5b50565b612b5d81612a0c565b8114612b6857600080fd5b50565b60078110612b7857600080fd5b50565b612b8481612a42565b8114612b8f57600080fd5b5056fea2646970667358221220379295b2eb02985c003641761cdd7fc711d24a52e206daa752500cb5fddb098a64736f6c63430008000033000000000000000000000000889317e0e8e74d717c07c22bd65b714c7077e1830000000000000000000000007ae0f19d2ae2f490e710579284a58000d4e8c85f
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80638e571e79116100a2578063d4a6a2fd11610071578063d4a6a2fd146102a6578063f2fde38b146102c4578063f3fe534e146102e0578063fc0c546a14610310578063fef33a5e1461032e5761010b565b80638e571e7914610220578063a438d4251461023c578063a4d47daa14610258578063b2931096146102765761010b565b8063715018a6116100de578063715018a6146101ac57806373417b09146101b65780638cc08025146101d25780638da5cb5b146102025761010b565b806303a2bb4414610110578063162abdfc1461012c578063409e22051461015c57806350baa62214610190575b600080fd5b61012a60048036038101906101259190611cfe565b61034c565b005b61014660048036038101906101419190611ddb565b6103f9565b6040516101539190612865565b60405180910390f35b61017660048036038101906101719190611e8d565b610490565b60405161018795949392919061289b565b60405180910390f35b6101aa60048036038101906101a59190611e8d565b6104c6565b005b6101b461066e565b005b6101d060048036038101906101cb9190611d89565b610682565b005b6101ec60048036038101906101e79190611c99565b6106a7565b6040516101f9919061258a565b60405180910390f35b61020a610779565b6040516102179190612516565b60405180910390f35b61023a60048036038101906102359190611edf565b6107a2565b005b61025660048036038101906102519190611e04565b610d8b565b005b610260610e18565b60405161026d9190612880565b60405180910390f35b610290600480360381019061028b9190611d4d565b610e1e565b60405161029d919061258a565b60405180910390f35b6102ae610e4d565b6040516102bb919061258a565b60405180910390f35b6102de60048036038101906102d99190611c99565b610e60565b005b6102fa60048036038101906102f59190611cc2565b610ee4565b604051610307919061258a565b60405180910390f35b610318610f84565b60405161032591906126ca565b60405180910390f35b610336610faa565b6040516103439190612516565b60405180910390f35b610354610fce565b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008460068111156103cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b610401611b84565b6004600083600681111561043e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020019081526020016000206040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250509050919050565b60046020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154905085565b6104ce610fce565b80600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161052a9190612516565b60206040518083038186803b15801561054257600080fd5b505afa158015610556573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057a9190611eb6565b10156105bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b290612745565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610618929190612561565b602060405180830381600087803b15801561063257600080fd5b505af1158015610646573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066a9190611db2565b5050565b610676610fce565b610680600061104c565b565b61068a610fce565b80600260146101000a81548160ff02191690831515021790555050565b600080600090505b6006808111156106e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b811161076e57600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082815260200190815260200160002060009054906101000a900460ff161561075b576001915050610774565b808061076690612a8c565b9150506106af565b50600090505b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6107aa611110565b600260149054906101000a900460ff166107f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f090612825565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085e906127a5565b60405180910390fd5b60006040518061010001604052803373ffffffffffffffffffffffffffffffffffffffff1681526020018a81526020018981526020018881526020018781526020018681526020018581526020018481525090507f000000000000000000000000889317e0e8e74d717c07c22bd65b714c7077e18373ffffffffffffffffffffffffffffffffffffffff166108fc8284611160565b73ffffffffffffffffffffffffffffffffffffffff1614610952576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094990612765565b60405180910390fd5b6000838587898b8d8f61096591906129a4565b61096f91906129a4565b61097991906129a4565b61098391906129a4565b61098d91906129a4565b61099791906129a4565b90506109a282611181565b6109e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d8906127e5565b60405180910390fd5b6109ea82611246565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610a47929190612561565b602060405180830381600087803b158015610a6157600080fd5b505af1158015610a75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a999190611db2565b610ad8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acf906127c5565b60405180910390fd5b6000600767ffffffffffffffff811115610b1b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610b495781602001602082028036833780820191505090505b5090508a81600081518110610b87577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508981600181518110610bce577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508881600281518110610c15577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508781600381518110610c5c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508681600481518110610ca3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508581600581518110610cea577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508481600681518110610d31577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250507f2ed48368de79b173beedca1e8032871f3f17b79b90846860673ab50f234273e13382604051610d6e929190612531565b60405180910390a1505050610d816112d5565b5050505050505050565b610d93610fce565b600060046000886006811115610dd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8152602001908152602001600020905085816000018190555084816001018190555083816002018190555082816003018190555081816004018190555050505050505050565b60035481565b60056020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b600260149054906101000a900460ff1681565b610e68610fce565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ed8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecf90612725565b60405180910390fd5b610ee18161104c565b50565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836006811115610f60577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060009054906101000a900460ff16905092915050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000889317e0e8e74d717c07c22bd65b714c7077e18381565b610fd66112de565b73ffffffffffffffffffffffffffffffffffffffff16610ff4610779565b73ffffffffffffffffffffffffffffffffffffffff161461104a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104190612805565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60026001541415611156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114d90612845565b60405180910390fd5b6002600181905550565b60008061116c846112e6565b9050611178818461136e565b91505092915050565b6000611197600083602001518460000151611395565b80156111b357506111b2600183604001518460000151611395565b5b80156111cf57506111ce600283606001518460000151611395565b5b80156111eb57506111ea600383608001518460000151611395565b5b8015611207575061120660048360a001518460000151611395565b5b8015611223575061122260058360c001518460000151611395565b5b801561123f575061123e60068360e001518460000151611395565b5b9050919050565b61125a6000826020015183600001516114db565b61126e6001826040015183600001516114db565b6112826002826060015183600001516114db565b6112966003826080015183600001516114db565b6112aa60048260a0015183600001516114db565b6112be60058260c0015183600001516114db565b6112d260068260e0015183600001516114db565b50565b60018081905550565b600033905090565b60006113677f755f07404aad3a7d4e7affa05c46fc4c26182aaf31b57021c6e1c52cf91a12e3836000015184602001518560400151866060015187608001518860a001518960c001518a60e0015160405160200161134c999897969594939291906125a5565b60405160208183030381529060405280519060200120611610565b9050919050565b600080600061137d858561162a565b9150915061138a8161167c565b819250505092915050565b6000808314156113a857600190506114d4565b6000600460008660068111156113e7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020019081526020016000209050600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000866006811115611471577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060009054906101000a900460ff1615801561149e575080600401548411155b80156114bd575080600001548482600101546114ba91906129a4565b11155b80156114d0575080600201548160030154105b9150505b9392505050565b600082111561160b57600060046000856006811115611523577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8152602001908152602001600020905080600301600081548092919061154890612a8c565b91905055508281600101600082825461156191906129a4565b925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008660068111156115e4577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060006101000a81548160ff021916908315150217905550505b505050565b600061162361161d61191a565b83611a34565b9050919050565b60008060418351141561166c5760008060006020860151925060408601519150606086015160001a905061166087828585611a67565b94509450505050611675565b60006002915091505b9250929050565b600060048111156116b6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156116ef577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156116fa57611917565b60016004811115611734577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561176d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156117ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a5906126e5565b60405180910390fd5b600260048111156117e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115611821577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415611862576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185990612705565b60405180910390fd5b6003600481111561189c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156118d5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415611916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190d90612785565b60405180910390fd5b5b50565b60007f000000000000000000000000233a922f203b2eb705b833cf147979556eae7a4573ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614801561199657507f000000000000000000000000000000000000000000000000000000000000000146145b156119c3577f00c77823f0919f4e49937a4b7fd3850e48bd350f768d0e458ddf8bc0dcd5cac79050611a31565b611a2e7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7faa42d51c213ed3f8b0124f10311c279abec8da13e5c2e4d5234754e1b3f998047fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6611b4a565b90505b90565b60008282604051602001611a499291906124df565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115611aa2576000600391509150611b41565b600060018787878760405160008152602001604052604051611ac79493929190612685565b6020604051602081039080840390855afa158015611ae9573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b3857600060019250925050611b41565b80600092509250505b94509492505050565b60008383834630604051602001611b65959493929190612632565b6040516020818303038152906040528051906020012090509392505050565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6000611bc6611bc18461291f565b6128ee565b905082815260208101848484011115611bde57600080fd5b611be9848285612a7d565b509392505050565b600081359050611c0081612b3d565b92915050565b600081359050611c1581612b54565b92915050565b600081519050611c2a81612b54565b92915050565b600082601f830112611c4157600080fd5b8135611c51848260208601611bb3565b91505092915050565b600081359050611c6981612b6b565b92915050565b600081359050611c7e81612b7b565b92915050565b600081519050611c9381612b7b565b92915050565b600060208284031215611cab57600080fd5b6000611cb984828501611bf1565b91505092915050565b60008060408385031215611cd557600080fd5b6000611ce385828601611bf1565b9250506020611cf485828601611c5a565b9150509250929050565b600080600060608486031215611d1357600080fd5b6000611d2186828701611bf1565b9350506020611d3286828701611c5a565b9250506040611d4386828701611c06565b9150509250925092565b60008060408385031215611d6057600080fd5b6000611d6e85828601611bf1565b9250506020611d7f85828601611c6f565b9150509250929050565b600060208284031215611d9b57600080fd5b6000611da984828501611c06565b91505092915050565b600060208284031215611dc457600080fd5b6000611dd284828501611c1b565b91505092915050565b600060208284031215611ded57600080fd5b6000611dfb84828501611c5a565b91505092915050565b60008060008060008060c08789031215611e1d57600080fd5b6000611e2b89828a01611c5a565b9650506020611e3c89828a01611c6f565b9550506040611e4d89828a01611c6f565b9450506060611e5e89828a01611c6f565b9350506080611e6f89828a01611c6f565b92505060a0611e8089828a01611c6f565b9150509295509295509295565b600060208284031215611e9f57600080fd5b6000611ead84828501611c6f565b91505092915050565b600060208284031215611ec857600080fd5b6000611ed684828501611c84565b91505092915050565b600080600080600080600080610100898b031215611efc57600080fd5b6000611f0a8b828c01611c6f565b9850506020611f1b8b828c01611c6f565b9750506040611f2c8b828c01611c6f565b9650506060611f3d8b828c01611c6f565b9550506080611f4e8b828c01611c6f565b94505060a0611f5f8b828c01611c6f565b93505060c0611f708b828c01611c6f565b92505060e089013567ffffffffffffffff811115611f8d57600080fd5b611f998b828c01611c30565b9150509295985092959890939650565b6000611fb583836124b2565b60208301905092915050565b611fca816129fa565b82525050565b6000611fdb8261295f565b611fe58185612977565b9350611ff08361294f565b8060005b838110156120215781516120088882611fa9565b97506120138361296a565b925050600181019050611ff4565b5085935050505092915050565b61203781612a0c565b82525050565b61204681612a18565b82525050565b61205d61205882612a18565b612ad5565b82525050565b61206c81612a59565b82525050565b600061207f601883612988565b91507f45434453413a20696e76616c6964207369676e617475726500000000000000006000830152602082019050919050565b60006120bf601f83612988565b91507f45434453413a20696e76616c6964207369676e6174757265206c656e677468006000830152602082019050919050565b60006120ff602683612988565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612165600283612999565b91507f19010000000000000000000000000000000000000000000000000000000000006000830152600282019050919050565b60006121a5601483612988565b91507f496e73756666696369656e742062616c616e63650000000000000000000000006000830152602082019050919050565b60006121e5601183612988565b91507f496e76616c6964207369676e61747572650000000000000000000000000000006000830152602082019050919050565b6000612225602283612988565b91507f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008301527f75650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061228b601f83612988565b91507f4f6e6c7920454f412063616e2063616c6c20746869732066756e6374696f6e006000830152602082019050919050565b60006122cb601583612988565b91507f546f6b656e207472616e73666572206661696c656400000000000000000000006000830152602082019050919050565b600061230b602d83612988565b91507f436c61696d20616d6f756e742065786365656473206c696d6974206f7220616c60008301527f726561647920636c61696d6564000000000000000000000000000000000000006020830152604082019050919050565b6000612371602083612988565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006123b1602183612988565b91507f436c61696d696e67206973206e6f742063757272656e746c7920616c6c6f776560008301527f64000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612417601f83612988565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b60a08201600082015161246060008501826124b2565b50602082015161247360208501826124b2565b50604082015161248660408501826124b2565b50606082015161249960608501826124b2565b5060808201516124ac60808501826124b2565b50505050565b6124bb81612a42565b82525050565b6124ca81612a42565b82525050565b6124d981612a4c565b82525050565b60006124ea82612158565b91506124f6828561204c565b602082019150612506828461204c565b6020820191508190509392505050565b600060208201905061252b6000830184611fc1565b92915050565b60006040820190506125466000830185611fc1565b81810360208301526125588184611fd0565b90509392505050565b60006040820190506125766000830185611fc1565b61258360208301846124c1565b9392505050565b600060208201905061259f600083018461202e565b92915050565b6000610120820190506125bb600083018c61203d565b6125c8602083018b611fc1565b6125d5604083018a6124c1565b6125e260608301896124c1565b6125ef60808301886124c1565b6125fc60a08301876124c1565b61260960c08301866124c1565b61261660e08301856124c1565b6126246101008301846124c1565b9a9950505050505050505050565b600060a082019050612647600083018861203d565b612654602083018761203d565b612661604083018661203d565b61266e60608301856124c1565b61267b6080830184611fc1565b9695505050505050565b600060808201905061269a600083018761203d565b6126a760208301866124d0565b6126b4604083018561203d565b6126c1606083018461203d565b95945050505050565b60006020820190506126df6000830184612063565b92915050565b600060208201905081810360008301526126fe81612072565b9050919050565b6000602082019050818103600083015261271e816120b2565b9050919050565b6000602082019050818103600083015261273e816120f2565b9050919050565b6000602082019050818103600083015261275e81612198565b9050919050565b6000602082019050818103600083015261277e816121d8565b9050919050565b6000602082019050818103600083015261279e81612218565b9050919050565b600060208201905081810360008301526127be8161227e565b9050919050565b600060208201905081810360008301526127de816122be565b9050919050565b600060208201905081810360008301526127fe816122fe565b9050919050565b6000602082019050818103600083015261281e81612364565b9050919050565b6000602082019050818103600083015261283e816123a4565b9050919050565b6000602082019050818103600083015261285e8161240a565b9050919050565b600060a08201905061287a600083018461244a565b92915050565b600060208201905061289560008301846124c1565b92915050565b600060a0820190506128b060008301886124c1565b6128bd60208301876124c1565b6128ca60408301866124c1565b6128d760608301856124c1565b6128e460808301846124c1565b9695505050505050565b6000604051905081810181811067ffffffffffffffff8211171561291557612914612b0e565b5b8060405250919050565b600067ffffffffffffffff82111561293a57612939612b0e565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006129af82612a42565b91506129ba83612a42565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156129ef576129ee612adf565b5b828201905092915050565b6000612a0582612a22565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000612a6482612a6b565b9050919050565b6000612a7682612a22565b9050919050565b82818337600083830152505050565b6000612a9782612a42565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612aca57612ac9612adf565b5b600182019050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612b46816129fa565b8114612b5157600080fd5b50565b612b5d81612a0c565b8114612b6857600080fd5b50565b60078110612b7857600080fd5b50565b612b8481612a42565b8114612b8f57600080fd5b5056fea2646970667358221220379295b2eb02985c003641761cdd7fc711d24a52e206daa752500cb5fddb098a64736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000889317e0e8e74d717c07c22bd65b714c7077e1830000000000000000000000007ae0f19d2ae2f490e710579284a58000d4e8c85f
-----Decoded View---------------
Arg [0] : claimSigner (address): 0x889317E0E8E74d717C07C22bd65b714C7077e183
Arg [1] : tokenAddress (address): 0x7Ae0f19D2aE2f490e710579284A58000d4E8C85f
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000889317e0e8e74d717c07c22bd65b714c7077e183
Arg [1] : 0000000000000000000000007ae0f19d2ae2f490e710579284a58000d4e8c85f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.000039 | 12,743,700,000 | $499,807.91 |
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.