Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
71 ERC20 ***
Holders
66
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 ERC20 ***Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MythDivisionAgentID
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "solmate/src/tokens/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract MythDivisionAgentID is ERC721, Ownable { using ECDSA for bytes32; using Strings for uint256; address public apeCoinAddress; address public signerAddress; mapping (address => uint) public signatureNonce; string public baseURI; uint public totalSupply = 0; uint public monthlyPriceStandard = 0.02 ether; uint public monthlyPricePlus = 0.06 ether; uint public monthlyPriceVip = 0.1 ether; uint public agentIDPurchasePrice = 0.001 ether; uint public agentIDRevokeGracePeriod = 7 days; enum Tier { Standard, Plus, VIP } struct Tokens { Tier tier; uint256 paidTime; uint256 activationTime; } mapping (uint256 => Tokens) public tokens; constructor( address _apeCoinAddress, address _signer ) ERC721("MythDivisionAgentID", "MDAID") { apeCoinAddress = _apeCoinAddress; signerAddress = _signer; } modifier activationCheck(uint tokenID) { require(ownerOf(tokenID) == msg.sender, "You are not the owner of this NFT!"); require(!isActive(tokenID), "Token already active!"); // if token was already activated in the past but has expired, will be reactivated with brand new stats if (tokens[tokenID].activationTime > 0) { delete tokens[tokenID]; } _; } modifier renewalCheck(uint tokenID) { require(tokens[tokenID].activationTime > 0, "Token not activated!"); _; } function freeMintAgentID(bytes32 messageHash, bytes calldata signature) external { require(messageHash == hashfreeMintAgentID(msg.sender, address(this), signatureNonce[msg.sender]), "Wrong message hash!"); require(verifyAddressSigner(messageHash, signature), "Invalid address signerAddress!"); _mint(msg.sender, totalSupply); unchecked { totalSupply++; signatureNonce[msg.sender]++; } } function purchaseAgentID(uint tokenID) payable external { require(msg.value == agentIDPurchasePrice, "Invalid ETH amount!"); transferFrom(address(this), msg.sender, tokenID); } function revokeAgentID(uint tokenID) external { require(!isRevokable(tokenID), "Agent ID is not revokable!"); transferFrom(ownerOf(tokenID), address(this), tokenID); } function activateETH(uint256 tokenID, Tier tier, uint months) activationCheck(tokenID) external payable { if(tier == Tier.VIP) { require(msg.value == monthlyPriceVip * months, "Incorrect amount sent!"); } else if (tier == Tier.Plus) { require(msg.value == monthlyPricePlus * months, "Incorrect amount sent!"); } else if (tier == Tier.Standard) { require(msg.value == monthlyPriceStandard * months, "Incorrect amount sent!"); } else { revert("Invalid tier"); } tokens[tokenID].paidTime = 30 days * months; tokens[tokenID].tier = tier; tokens[tokenID].activationTime = block.timestamp; } // must perform approval first function activateAPE(uint256 tokenID, Tier tier, uint256 apeCoinAmount, uint256 months, uint256 expiry, bytes32 messageHash, bytes calldata signature) activationCheck(tokenID) external { // validation for proper APE coin amount is conducted off chain require(messageHash == hashActivateWithApe(tokenID, uint256(tier), apeCoinAmount, months, expiry, signatureNonce[msg.sender]), "Wrong message hash!"); require(verifyAddressSigner(messageHash, signature), "Invalid address signerAddress!"); require(block.timestamp < expiry, "Signature expired"); IERC20(apeCoinAddress).transferFrom(msg.sender, address(this), apeCoinAmount); tokens[tokenID].paidTime = 30 days * months; tokens[tokenID].tier = tier; tokens[tokenID].activationTime = block.timestamp; unchecked { signatureNonce[msg.sender]++; } } function renewETH(uint256 tokenID, uint months) renewalCheck(tokenID) external payable { Tier existingTier = tokens[tokenID].tier; if(existingTier == Tier.VIP) { require(msg.value == monthlyPriceVip * months, "Incorrect amount sent!"); } else if (existingTier == Tier.Plus) { require(msg.value == monthlyPricePlus * months, "Incorrect amount sent!"); } else { require(msg.value == monthlyPriceStandard * months, "Incorrect amount sent!"); } tokens[tokenID].paidTime += 30 days * months; } // must perform approval first function renewAPE(uint256 tokenID, uint256 apeCoinAmount, uint months, uint expiry, bytes32 messageHash, bytes calldata signature) renewalCheck(tokenID) external { // validation for proper APE coin amount is conducted off chain require(messageHash == hashTopUpWithApe(tokenID, apeCoinAmount, months, expiry, signatureNonce[msg.sender]), "Wrong message hash!"); require(verifyAddressSigner(messageHash, signature), "Invalid address signerAddress"); require(block.timestamp < expiry, "Signature expired"); IERC20(apeCoinAddress).transferFrom(msg.sender, address(this), apeCoinAmount); tokens[tokenID].paidTime += 30 days * months; unchecked { signatureNonce[msg.sender]++; } } function hashfreeMintAgentID(address sender, address thisContract, uint nonce) private pure returns (bytes32) { return keccak256(abi.encodePacked(sender, thisContract, nonce)); } function hashActivateWithApe(uint256 tokenID, uint256 tier, uint256 apeCoinAmount, uint months, uint expiry, uint nonce) private pure returns (bytes32) { return keccak256(abi.encodePacked(tokenID, tier, apeCoinAmount, months, expiry, nonce)); } function hashTopUpWithApe(uint256 tokenID, uint256 apeCoinAmount, uint months, uint expiry, uint nonce) private pure returns (bytes32) { return keccak256(abi.encodePacked(tokenID, apeCoinAmount, months, expiry, nonce)); } function verifyAddressSigner(bytes32 messageHash, bytes calldata signature) private view returns (bool) { address recovery = messageHash.toEthSignedMessageHash().recover(signature); return signerAddress == recovery; } function getRemaingTime(uint256 tokenID) public view returns (uint256) { return (tokens[tokenID].paidTime - (block.timestamp - tokens[tokenID].activationTime)); } function isActive(uint tokenID) public view returns (bool) { if (block.timestamp > tokens[tokenID].activationTime + tokens[tokenID].paidTime) { return false; } return true; } function getActivationTime(uint tokenID) public view returns (uint) { return tokens[tokenID].activationTime; } function getPaidTime(uint tokenID) public view returns (uint) { return tokens[tokenID].paidTime; } function getTier(uint tokenID) public view returns (Tier) { return tokens[tokenID].tier; } function isRevokable(uint tokenID) public view returns (bool) { require(tokens[tokenID].activationTime > 0, "Must have been activated to revoke"); if (block.timestamp > tokens[tokenID].activationTime + tokens[tokenID].paidTime + agentIDRevokeGracePeriod) { return true; } return false; } function tokenURI(uint tokenID) public view override returns (string memory){ return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenID.toString())) : ""; } function updateSigner(address _signer) external onlyOwner { signerAddress = _signer; } function updateBaseURI(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } function updateMonthlyPriceStandard(uint _monthlyPriceStandard) external onlyOwner { monthlyPriceStandard = _monthlyPriceStandard; } function updateMonthlyPricePlus(uint _monthlyPricePlus) external onlyOwner { monthlyPricePlus = _monthlyPricePlus; } function updateMonthlyPriceVip(uint _monthlyPriceVip) external onlyOwner { monthlyPriceVip = _monthlyPriceVip; } function updateAgentIDRevokeGracePeriod(uint _agentIDRevokeGracePeriod) external onlyOwner { agentIDRevokeGracePeriod = _agentIDRevokeGracePeriod; } function updateAgentIDPurchasePrice(uint _agentIDPurchasePrice) external onlyOwner { agentIDPurchasePrice = _agentIDPurchasePrice; } function withdrawEther() external onlyOwner { payable(msg.sender).transfer(address(this).balance); } function withdrawERC20(address _token) external onlyOwner { IERC20 token = IERC20(_token); token.transfer(msg.sender, token.balanceOf(address(this))); } // transferFrom override for revoke. function transferFrom(address from, address to, uint256 id) public override { require(from == _ownerOf[id], "WRONG_FROM"); require(to != address(0), "INVALID_RECIPIENT"); require( msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id] || msg.sender == address(this), "NOT_AUTHORIZED" ); unchecked { _balanceOf[from]--; _balanceOf[to]++; } _ownerOf[id] = to; delete getApproved[id]; emit Transfer(from, to, id); } }
// 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.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/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); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern, minimalist, and gas efficient ERC-721 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 indexed id); event Approval(address indexed owner, address indexed spender, uint256 indexed id); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /*////////////////////////////////////////////////////////////// METADATA STORAGE/LOGIC //////////////////////////////////////////////////////////////*/ string public name; string public symbol; function tokenURI(uint256 id) public view virtual returns (string memory); /*////////////////////////////////////////////////////////////// ERC721 BALANCE/OWNER STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) internal _ownerOf; mapping(address => uint256) internal _balanceOf; function ownerOf(uint256 id) public view virtual returns (address owner) { require((owner = _ownerOf[id]) != address(0), "NOT_MINTED"); } function balanceOf(address owner) public view virtual returns (uint256) { require(owner != address(0), "ZERO_ADDRESS"); return _balanceOf[owner]; } /*////////////////////////////////////////////////////////////// ERC721 APPROVAL STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) public getApproved; mapping(address => mapping(address => bool)) public isApprovedForAll; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } /*////////////////////////////////////////////////////////////// ERC721 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 id) public virtual { address owner = _ownerOf[id]; require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED"); getApproved[id] = spender; emit Approval(owner, spender, id); } function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function transferFrom( address from, address to, uint256 id ) public virtual { require(from == _ownerOf[id], "WRONG_FROM"); require(to != address(0), "INVALID_RECIPIENT"); require( msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id] || msg.sender == address(this), "NOT_AUTHORIZED" ); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { _balanceOf[from]--; _balanceOf[to]++; } _ownerOf[id] = to; delete getApproved[id]; emit Transfer(from, to, id); } function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function safeTransferFrom( address from, address to, uint256 id, bytes calldata data ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } /*////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 id) internal virtual { require(to != address(0), "INVALID_RECIPIENT"); require(_ownerOf[id] == address(0), "ALREADY_MINTED"); // Counter overflow is incredibly unrealistic. unchecked { _balanceOf[to]++; } _ownerOf[id] = to; emit Transfer(address(0), to, id); } function _burn(uint256 id) internal virtual { address owner = _ownerOf[id]; require(owner != address(0), "NOT_MINTED"); // Ownership check above ensures no underflow. unchecked { _balanceOf[owner]--; } delete _ownerOf[id]; delete getApproved[id]; emit Transfer(owner, address(0), id); } /*////////////////////////////////////////////////////////////// INTERNAL SAFE MINT LOGIC //////////////////////////////////////////////////////////////*/ function _safeMint(address to, uint256 id) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function _safeMint( address to, uint256 id, bytes memory data ) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } } /// @notice A generic interface for a contract which properly accepts ERC721 tokens. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721TokenReceiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721TokenReceiver.onERC721Received.selector; } }
{ "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":"_apeCoinAddress","type":"address"},{"internalType":"address","name":"_signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"},{"internalType":"enum MythDivisionAgentID.Tier","name":"tier","type":"uint8"},{"internalType":"uint256","name":"apeCoinAmount","type":"uint256"},{"internalType":"uint256","name":"months","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bytes32","name":"messageHash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"activateAPE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"},{"internalType":"enum MythDivisionAgentID.Tier","name":"tier","type":"uint8"},{"internalType":"uint256","name":"months","type":"uint256"}],"name":"activateETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"agentIDPurchasePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"agentIDRevokeGracePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"apeCoinAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"messageHash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"freeMintAgentID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"getActivationTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"getPaidTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"getRemaingTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"getTier","outputs":[{"internalType":"enum MythDivisionAgentID.Tier","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"isRevokable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"monthlyPricePlus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"monthlyPriceStandard","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"monthlyPriceVip","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"purchaseAgentID","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"},{"internalType":"uint256","name":"apeCoinAmount","type":"uint256"},{"internalType":"uint256","name":"months","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bytes32","name":"messageHash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"renewAPE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"},{"internalType":"uint256","name":"months","type":"uint256"}],"name":"renewETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"revokeAgentID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"signatureNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"enum MythDivisionAgentID.Tier","name":"tier","type":"uint8"},{"internalType":"uint256","name":"paidTime","type":"uint256"},{"internalType":"uint256","name":"activationTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_agentIDPurchasePrice","type":"uint256"}],"name":"updateAgentIDPurchasePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_agentIDRevokeGracePeriod","type":"uint256"}],"name":"updateAgentIDRevokeGracePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_monthlyPricePlus","type":"uint256"}],"name":"updateMonthlyPricePlus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_monthlyPriceStandard","type":"uint256"}],"name":"updateMonthlyPriceStandard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_monthlyPriceVip","type":"uint256"}],"name":"updateMonthlyPriceVip","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"updateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600b5566470de4df820000600c5566d529ae9e860000600d5567016345785d8a0000600e5566038d7ea4c68000600f5562093a806010553480156200004a57600080fd5b5060405162005b5938038062005b598339818101604052810190620000709190620002e4565b6040518060400160405280601381526020017f4d7974684469766973696f6e4167656e744944000000000000000000000000008152506040518060400160405280600581526020017f4d444149440000000000000000000000000000000000000000000000000000008152508160009081620000ed9190620005a5565b508060019081620000ff9190620005a5565b5050506200012262000116620001ac60201b60201c565b620001b460201b60201c565b81600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506200068c565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002ac826200027f565b9050919050565b620002be816200029f565b8114620002ca57600080fd5b50565b600081519050620002de81620002b3565b92915050565b60008060408385031215620002fe57620002fd6200027a565b5b60006200030e85828601620002cd565b92505060206200032185828601620002cd565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620003ad57607f821691505b602082108103620003c357620003c262000365565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200042d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620003ee565b620004398683620003ee565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000486620004806200047a8462000451565b6200045b565b62000451565b9050919050565b6000819050919050565b620004a28362000465565b620004ba620004b1826200048d565b848454620003fb565b825550505050565b600090565b620004d1620004c2565b620004de81848462000497565b505050565b5b818110156200050657620004fa600082620004c7565b600181019050620004e4565b5050565b601f82111562000555576200051f81620003c9565b6200052a84620003de565b810160208510156200053a578190505b620005526200054985620003de565b830182620004e3565b50505b505050565b600082821c905092915050565b60006200057a600019846008026200055a565b1980831691505092915050565b600062000595838362000567565b9150826002028217905092915050565b620005b0826200032b565b67ffffffffffffffff811115620005cc57620005cb62000336565b5b620005d8825462000394565b620005e58282856200050a565b600060209050601f8311600181146200061d576000841562000608578287015190505b62000614858262000587565b86555062000684565b601f1984166200062d86620003c9565b60005b82811015620006575784890151825560018201915060208501945060208101905062000630565b8683101562000677578489015162000673601f89168262000567565b8355505b6001600288020188555050505b505050505050565b6154bd806200069c6000396000f3fe6080604052600436106102ae5760003560e01c806382afd23b11610175578063b07af89b116100dc578063e985e9c511610095578063f3cba9141161006f578063f3cba91414610ad8578063f4f3b20014610b03578063f7694a4914610b2c578063fdf086ef14610b57576102ae565b8063e985e9c514610a47578063ebb0ac7314610a84578063f2fde38b14610aaf576102ae565b8063b07af89b14610927578063b88d4fde14610952578063befa350b1461097b578063c87b56dd146109a4578063d8583db3146109e1578063dd54097514610a0a576102ae565b806395d89b411161012e57806395d89b411461082d578063a2231d0514610858578063a22cb46514610881578063a557b43f146108aa578063a7ecd37e146108d5578063a864d386146108fe576102ae565b806382afd23b146106f757806389bf7b07146107345780638da5cb5b1461075f5780638db1afe71461078a578063931688cb146107c7578063945271e0146107f0576102ae565b80634f062c5a1161021957806366b35630116101d257806366b356301461061c5780636c0360eb1461064557806370a0823114610670578063715018a6146106ad5780637362377b146106c4578063757282f3146106db576102ae565b80634f062c5a146104df5780634f64b2be1461051c578063567e34ba1461055b5780635b7633d0146105985780635e2dea27146105c35780636352211e146105df576102ae565b80630ec7697a1161026b5780630ec7697a146103e757806318160ddd1461041057806323b872dd1461043b5780632452537f146104645780632d89b6061461048d57806342842e0e146104b6576102ae565b806301ffc9a7146102b35780630293a7bc146102f057806304b9a89b1461032d57806306fdde0314610356578063081812fc14610381578063095ea7b3146103be575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d591906136e8565b610b73565b6040516102e79190613730565b60405180910390f35b3480156102fc57600080fd5b5061031760048036038101906103129190613781565b610c05565b60405161032491906137bd565b60405180910390f35b34801561033957600080fd5b50610354600480360381019061034f9190613781565b610c25565b005b34801561036257600080fd5b5061036b610c37565b6040516103789190613868565b60405180910390f35b34801561038d57600080fd5b506103a860048036038101906103a39190613781565b610cc5565b6040516103b591906138cb565b60405180910390f35b3480156103ca57600080fd5b506103e560048036038101906103e09190613912565b610cf8565b005b3480156103f357600080fd5b5061040e60048036038101906104099190613781565b610ee1565b005b34801561041c57600080fd5b50610425610ef3565b60405161043291906137bd565b60405180910390f35b34801561044757600080fd5b50610462600480360381019061045d9190613952565b610ef9565b005b34801561047057600080fd5b5061048b60048036038101906104869190613781565b61132e565b005b34801561049957600080fd5b506104b460048036038101906104af9190613781565b611340565b005b3480156104c257600080fd5b506104dd60048036038101906104d89190613952565b611352565b005b3480156104eb57600080fd5b5061050660048036038101906105019190613781565b61148a565b6040516105139190613a1c565b60405180910390f35b34801561052857600080fd5b50610543600480360381019061053e9190613781565b6114b7565b60405161055293929190613a37565b60405180910390f35b34801561056757600080fd5b50610582600480360381019061057d9190613a6e565b6114ee565b60405161058f91906137bd565b60405180910390f35b3480156105a457600080fd5b506105ad611506565b6040516105ba91906138cb565b60405180910390f35b6105dd60048036038101906105d89190613a9b565b61152c565b005b3480156105eb57600080fd5b5061060660048036038101906106019190613781565b61173f565b60405161061391906138cb565b60405180910390f35b34801561062857600080fd5b50610643600480360381019061063e9190613b76565b6117ea565b005b34801561065157600080fd5b5061065a611a94565b6040516106679190613868565b60405180910390f35b34801561067c57600080fd5b5061069760048036038101906106929190613a6e565b611b22565b6040516106a491906137bd565b60405180910390f35b3480156106b957600080fd5b506106c2611bd9565b005b3480156106d057600080fd5b506106d9611bed565b005b6106f560048036038101906106f09190613781565b611c3e565b005b34801561070357600080fd5b5061071e60048036038101906107199190613781565b611c90565b60405161072b9190613730565b60405180910390f35b34801561074057600080fd5b50610749611ce4565b60405161075691906137bd565b60405180910390f35b34801561076b57600080fd5b50610774611cea565b60405161078191906138cb565b60405180910390f35b34801561079657600080fd5b506107b160048036038101906107ac9190613781565b611d14565b6040516107be91906137bd565b60405180910390f35b3480156107d357600080fd5b506107ee60048036038101906107e99190613d55565b611d34565b005b3480156107fc57600080fd5b5061081760048036038101906108129190613781565b611d4f565b60405161082491906137bd565b60405180910390f35b34801561083957600080fd5b50610842611d9b565b60405161084f9190613868565b60405180910390f35b34801561086457600080fd5b5061087f600480360381019061087a9190613d9e565b611e29565b005b34801561088d57600080fd5b506108a860048036038101906108a39190613e2a565b611f70565b005b3480156108b657600080fd5b506108bf61206d565b6040516108cc91906137bd565b60405180910390f35b3480156108e157600080fd5b506108fc60048036038101906108f79190613a6e565b612073565b005b34801561090a57600080fd5b5061092560048036038101906109209190613781565b6120bf565b005b34801561093357600080fd5b5061093c6120d1565b60405161094991906138cb565b60405180910390f35b34801561095e57600080fd5b5061097960048036038101906109749190613e6a565b6120f7565b005b34801561098757600080fd5b506109a2600480360381019061099d9190613f17565b612235565b005b3480156109b057600080fd5b506109cb60048036038101906109c69190613781565b6125fa565b6040516109d89190613868565b60405180910390f35b3480156109ed57600080fd5b50610a086004803603810190610a039190613781565b61265a565b005b348015610a1657600080fd5b50610a316004803603810190610a2c9190613781565b6126b9565b604051610a3e9190613730565b60405180910390f35b348015610a5357600080fd5b50610a6e6004803603810190610a699190613fd9565b612772565b604051610a7b9190613730565b60405180910390f35b348015610a9057600080fd5b50610a996127a1565b604051610aa691906137bd565b60405180910390f35b348015610abb57600080fd5b50610ad66004803603810190610ad19190613a6e565b6127a7565b005b348015610ae457600080fd5b50610aed61282a565b604051610afa91906137bd565b60405180910390f35b348015610b0f57600080fd5b50610b2a6004803603810190610b259190613a6e565b612830565b005b348015610b3857600080fd5b50610b41612939565b604051610b4e91906137bd565b60405180910390f35b610b716004803603810190610b6c9190614019565b61293f565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bce57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bfe5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600060116000838152602001908152602001600020600201549050919050565b610c2d612c9d565b8060108190555050565b60008054610c449061409b565b80601f0160208091040260200160405190810160405280929190818152602001828054610c709061409b565b8015610cbd5780601f10610c9257610100808354040283529160200191610cbd565b820191906000526020600020905b815481529060010190602001808311610ca057829003601f168201915b505050505081565b60046020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610df05750600560008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b610e2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2690614118565b60405180910390fd5b826004600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610ee9612c9d565b80600d8190555050565b600b5481565b6002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610f9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9190614184565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611009576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611000906141f0565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806110c95750600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b8061113257506004600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b8061116857503073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6111a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119e90614118565b60405180910390fd5b600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190600190039190505550600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906001019190505550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b611336612c9d565b80600c8190555050565b611348612c9d565b80600e8190555050565b61135d838383610ef9565b60008273ffffffffffffffffffffffffffffffffffffffff163b1480611446575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168273ffffffffffffffffffffffffffffffffffffffff1663150b7a023386856040518463ffffffff1660e01b81526004016113e293929190614247565b6020604051808303816000875af1158015611401573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142591906142a6565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147c9061431f565b60405180910390fd5b505050565b60006011600083815260200190815260200160002060000160009054906101000a900460ff169050919050565b60116020528060005260406000206000915090508060000160009054906101000a900460ff16908060010154908060020154905083565b60096020528060005260406000206000915090505481565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b816000601160008381526020019081526020016000206002015411611586576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157d9061438b565b60405180910390fd5b60006011600085815260200190815260200160002060000160009054906101000a900460ff1690506002808111156115c1576115c06139a5565b5b8160028111156115d4576115d36139a5565b5b0361162d5782600e546115e791906143da565b3414611628576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161f90614468565b60405180910390fd5b6116fe565b60016002811115611641576116406139a5565b5b816002811115611654576116536139a5565b5b036116ad5782600d5461166791906143da565b34146116a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169f90614468565b60405180910390fd5b6116fd565b82600c546116bb91906143da565b34146116fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f390614468565b60405180910390fd5b5b5b8262278d0061170d91906143da565b6011600086815260200190815260200160002060010160008282546117329190614488565b9250508190555050505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691508173ffffffffffffffffffffffffffffffffffffffff16036117e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117dc90614508565b60405180910390fd5b919050565b866000601160008381526020019081526020016000206002015411611844576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183b9061438b565b60405180910390fd5b61189088888888600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612d1b565b84146118d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c890614574565b60405180910390fd5b6118dc848484612d57565b61191b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611912906145e0565b60405180910390fd5b84421061195d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119549061464c565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33308a6040518463ffffffff1660e01b81526004016119bc9392919061466c565b6020604051808303816000875af11580156119db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ff91906146b8565b508562278d00611a0f91906143da565b601160008a81526020019081526020016000206001016000828254611a349190614488565b92505081905550600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081548092919060010191905055505050505050505050565b600a8054611aa19061409b565b80601f0160208091040260200160405190810160405280929190818152602001828054611acd9061409b565b8015611b1a5780601f10611aef57610100808354040283529160200191611b1a565b820191906000526020600020905b815481529060010190602001808311611afd57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8990614731565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611be1612c9d565b611beb6000612e16565b565b611bf5612c9d565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611c3b573d6000803e3d6000fd5b50565b600f543414611c82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c799061479d565b60405180910390fd5b611c8d303383610ef9565b50565b600060116000838152602001908152602001600020600101546011600084815260200190815260200160002060020154611cca9190614488565b421115611cda5760009050611cdf565b600190505b919050565b600e5481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060116000838152602001908152602001600020600101549050919050565b611d3c612c9d565b80600a9081611d4b9190614969565b5050565b6000601160008381526020019081526020016000206002015442611d739190614a3b565b6011600084815260200190815260200160002060010154611d949190614a3b565b9050919050565b60018054611da89061409b565b80601f0160208091040260200160405190810160405280929190818152602001828054611dd49061409b565b8015611e215780601f10611df657610100808354040283529160200191611e21565b820191906000526020600020905b815481529060010190602001808311611e0457829003601f168201915b505050505081565b611e733330600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612edc565b8314611eb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eab90614574565b60405180910390fd5b611ebf838383612d57565b611efe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef590614abb565b60405180910390fd5b611f0a33600b54612f12565b600b60008154809291906001019190505550600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906001019190505550505050565b80600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120619190613730565b60405180910390a35050565b600f5481565b61207b612c9d565b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6120c7612c9d565b80600f8190555050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612102858585610ef9565b60008473ffffffffffffffffffffffffffffffffffffffff163b14806121ef575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168473ffffffffffffffffffffffffffffffffffffffff1663150b7a0233888787876040518663ffffffff1660e01b815260040161218b959493929190614b08565b6020604051808303816000875af11580156121aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ce91906142a6565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b61222e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122259061431f565b60405180910390fd5b5050505050565b873373ffffffffffffffffffffffffffffffffffffffff166122568261173f565b73ffffffffffffffffffffffffffffffffffffffff16146122ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a390614bc8565b60405180910390fd5b6122b581611c90565b156122f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ec90614c34565b60405180910390fd5b60006011600083815260200190815260200160002060020154111561234f5760116000828152602001908152602001600020600080820160006101000a81549060ff02191690556001820160009055600282016000905550505b6123ae89896002811115612366576123656139a5565b5b898989600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613124565b84146123ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e690614574565b60405180910390fd5b6123fa848484612d57565b612439576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243090614abb565b60405180910390fd5b84421061247b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124729061464c565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33308a6040518463ffffffff1660e01b81526004016124da9392919061466c565b6020604051808303816000875af11580156124f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061251d91906146b8565b508562278d0061252d91906143da565b601160008b81526020019081526020016000206001018190555087601160008b815260200190815260200160002060000160006101000a81548160ff021916908360028111156125805761257f6139a5565b5b021790555042601160008b815260200190815260200160002060020181905550600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906001019190505550505050505050505050565b60606000600a805461260b9061409b565b9050116126275760405180602001604052806000815250612653565b600a61263283613163565b604051602001612643929190614d13565b6040516020818303038152906040525b9050919050565b612663816126b9565b156126a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269a90614d83565b60405180910390fd5b6126b66126af8261173f565b3083610ef9565b50565b600080601160008481526020019081526020016000206002015411612713576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270a90614e15565b60405180910390fd5b6010546011600084815260200190815260200160002060010154601160008581526020019081526020016000206002015461274e9190614488565b6127589190614488565b421115612768576001905061276d565b600090505b919050565b60056020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b60105481565b6127af612c9d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361281e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281590614ea7565b60405180910390fd5b61282781612e16565b50565b600d5481565b612838612c9d565b60008190508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161289391906138cb565b602060405180830381865afa1580156128b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128d49190614edc565b6040518363ffffffff1660e01b81526004016128f1929190614f09565b6020604051808303816000875af1158015612910573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061293491906146b8565b505050565b600c5481565b823373ffffffffffffffffffffffffffffffffffffffff166129608261173f565b73ffffffffffffffffffffffffffffffffffffffff16146129b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ad90614bc8565b60405180910390fd5b6129bf81611c90565b156129ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f690614c34565b60405180910390fd5b600060116000838152602001908152602001600020600201541115612a595760116000828152602001908152602001600020600080820160006101000a81549060ff02191690556001820160009055600282016000905550505b600280811115612a6c57612a6b6139a5565b5b836002811115612a7f57612a7e6139a5565b5b03612ad85781600e54612a9291906143da565b3414612ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aca90614468565b60405180910390fd5b612c15565b60016002811115612aec57612aeb6139a5565b5b836002811115612aff57612afe6139a5565b5b03612b585781600d54612b1291906143da565b3414612b53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4a90614468565b60405180910390fd5b612c14565b60006002811115612b6c57612b6b6139a5565b5b836002811115612b7f57612b7e6139a5565b5b03612bd85781600c54612b9291906143da565b3414612bd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bca90614468565b60405180910390fd5b612c13565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0a90614f7e565b60405180910390fd5b5b5b8162278d00612c2491906143da565b6011600086815260200190815260200160002060010181905550826011600086815260200190815260200160002060000160006101000a81548160ff02191690836002811115612c7757612c766139a5565b5b021790555042601160008681526020019081526020016000206002018190555050505050565b612ca5613231565b73ffffffffffffffffffffffffffffffffffffffff16612cc3611cea565b73ffffffffffffffffffffffffffffffffffffffff1614612d19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1090614fea565b60405180910390fd5b565b60008585858585604051602001612d3695949392919061502b565b60405160208183030381529060405280519060200120905095945050505050565b600080612db984848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612dab87613239565b61326990919063ffffffff16565b90508073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16149150509392505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000838383604051602001612ef3939291906150d2565b6040516020818303038152906040528051906020012090509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f78906141f0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613023576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161301a9061515b565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906001019190505550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008686868686866040516020016131419695949392919061517b565b6040516020818303038152906040528051906020012090509695505050505050565b60606000600161317284613290565b01905060008167ffffffffffffffff81111561319157613190613c2a565b5b6040519080825280601f01601f1916602001820160405280156131c35781602001600182028036833780820191505090505b509050600082602001820190505b600115613226578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161321a576132196151eb565b5b049450600085036131d1575b819350505050919050565b600033905090565b60008160405160200161324c9190615287565b604051602081830303815290604052805190602001209050919050565b600080600061327885856133e3565b9150915061328581613434565b819250505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106132ee577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816132e4576132e36151eb565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061332b576d04ee2d6d415b85acef81000000008381613321576133206151eb565b5b0492506020810190505b662386f26fc10000831061335a57662386f26fc1000083816133505761334f6151eb565b5b0492506010810190505b6305f5e1008310613383576305f5e1008381613379576133786151eb565b5b0492506008810190505b61271083106133a857612710838161339e5761339d6151eb565b5b0492506004810190505b606483106133cb57606483816133c1576133c06151eb565b5b0492506002810190505b600a83106133da576001810190505b80915050919050565b60008060418351036134245760008060006020860151925060408601519150606086015160001a90506134188782858561359a565b9450945050505061342d565b60006002915091505b9250929050565b60006004811115613448576134476139a5565b5b81600481111561345b5761345a6139a5565b5b03156135975760016004811115613475576134746139a5565b5b816004811115613488576134876139a5565b5b036134c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134bf906152f9565b60405180910390fd5b600260048111156134dc576134db6139a5565b5b8160048111156134ef576134ee6139a5565b5b0361352f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161352690615365565b60405180910390fd5b60036004811115613543576135426139a5565b5b816004811115613556576135556139a5565b5b03613596576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161358d906153f7565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156135d5576000600391509150613673565b6000600187878787604051600081526020016040526040516135fa9493929190615442565b6020604051602081039080840390855afa15801561361c573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361366a57600060019250925050613673565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6136c581613690565b81146136d057600080fd5b50565b6000813590506136e2816136bc565b92915050565b6000602082840312156136fe576136fd613686565b5b600061370c848285016136d3565b91505092915050565b60008115159050919050565b61372a81613715565b82525050565b60006020820190506137456000830184613721565b92915050565b6000819050919050565b61375e8161374b565b811461376957600080fd5b50565b60008135905061377b81613755565b92915050565b60006020828403121561379757613796613686565b5b60006137a58482850161376c565b91505092915050565b6137b78161374b565b82525050565b60006020820190506137d260008301846137ae565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138125780820151818401526020810190506137f7565b60008484015250505050565b6000601f19601f8301169050919050565b600061383a826137d8565b61384481856137e3565b93506138548185602086016137f4565b61385d8161381e565b840191505092915050565b60006020820190508181036000830152613882818461382f565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138b58261388a565b9050919050565b6138c5816138aa565b82525050565b60006020820190506138e060008301846138bc565b92915050565b6138ef816138aa565b81146138fa57600080fd5b50565b60008135905061390c816138e6565b92915050565b6000806040838503121561392957613928613686565b5b6000613937858286016138fd565b92505060206139488582860161376c565b9150509250929050565b60008060006060848603121561396b5761396a613686565b5b6000613979868287016138fd565b935050602061398a868287016138fd565b925050604061399b8682870161376c565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600381106139e5576139e46139a5565b5b50565b60008190506139f6826139d4565b919050565b6000613a06826139e8565b9050919050565b613a16816139fb565b82525050565b6000602082019050613a316000830184613a0d565b92915050565b6000606082019050613a4c6000830186613a0d565b613a5960208301856137ae565b613a6660408301846137ae565b949350505050565b600060208284031215613a8457613a83613686565b5b6000613a92848285016138fd565b91505092915050565b60008060408385031215613ab257613ab1613686565b5b6000613ac08582860161376c565b9250506020613ad18582860161376c565b9150509250929050565b6000819050919050565b613aee81613adb565b8114613af957600080fd5b50565b600081359050613b0b81613ae5565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613b3657613b35613b11565b5b8235905067ffffffffffffffff811115613b5357613b52613b16565b5b602083019150836001820283011115613b6f57613b6e613b1b565b5b9250929050565b600080600080600080600060c0888a031215613b9557613b94613686565b5b6000613ba38a828b0161376c565b9750506020613bb48a828b0161376c565b9650506040613bc58a828b0161376c565b9550506060613bd68a828b0161376c565b9450506080613be78a828b01613afc565b93505060a088013567ffffffffffffffff811115613c0857613c0761368b565b5b613c148a828b01613b20565b925092505092959891949750929550565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c628261381e565b810181811067ffffffffffffffff82111715613c8157613c80613c2a565b5b80604052505050565b6000613c9461367c565b9050613ca08282613c59565b919050565b600067ffffffffffffffff821115613cc057613cbf613c2a565b5b613cc98261381e565b9050602081019050919050565b82818337600083830152505050565b6000613cf8613cf384613ca5565b613c8a565b905082815260208101848484011115613d1457613d13613c25565b5b613d1f848285613cd6565b509392505050565b600082601f830112613d3c57613d3b613b11565b5b8135613d4c848260208601613ce5565b91505092915050565b600060208284031215613d6b57613d6a613686565b5b600082013567ffffffffffffffff811115613d8957613d8861368b565b5b613d9584828501613d27565b91505092915050565b600080600060408486031215613db757613db6613686565b5b6000613dc586828701613afc565b935050602084013567ffffffffffffffff811115613de657613de561368b565b5b613df286828701613b20565b92509250509250925092565b613e0781613715565b8114613e1257600080fd5b50565b600081359050613e2481613dfe565b92915050565b60008060408385031215613e4157613e40613686565b5b6000613e4f858286016138fd565b9250506020613e6085828601613e15565b9150509250929050565b600080600080600060808688031215613e8657613e85613686565b5b6000613e94888289016138fd565b9550506020613ea5888289016138fd565b9450506040613eb68882890161376c565b935050606086013567ffffffffffffffff811115613ed757613ed661368b565b5b613ee388828901613b20565b92509250509295509295909350565b60038110613eff57600080fd5b50565b600081359050613f1181613ef2565b92915050565b60008060008060008060008060e0898b031215613f3757613f36613686565b5b6000613f458b828c0161376c565b9850506020613f568b828c01613f02565b9750506040613f678b828c0161376c565b9650506060613f788b828c0161376c565b9550506080613f898b828c0161376c565b94505060a0613f9a8b828c01613afc565b93505060c089013567ffffffffffffffff811115613fbb57613fba61368b565b5b613fc78b828c01613b20565b92509250509295985092959890939650565b60008060408385031215613ff057613fef613686565b5b6000613ffe858286016138fd565b925050602061400f858286016138fd565b9150509250929050565b60008060006060848603121561403257614031613686565b5b60006140408682870161376c565b935050602061405186828701613f02565b92505060406140628682870161376c565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806140b357607f821691505b6020821081036140c6576140c561406c565b5b50919050565b7f4e4f545f415554484f52495a4544000000000000000000000000000000000000600082015250565b6000614102600e836137e3565b915061410d826140cc565b602082019050919050565b60006020820190508181036000830152614131816140f5565b9050919050565b7f57524f4e475f46524f4d00000000000000000000000000000000000000000000600082015250565b600061416e600a836137e3565b915061417982614138565b602082019050919050565b6000602082019050818103600083015261419d81614161565b9050919050565b7f494e56414c49445f524543495049454e54000000000000000000000000000000600082015250565b60006141da6011836137e3565b91506141e5826141a4565b602082019050919050565b60006020820190508181036000830152614209816141cd565b9050919050565b600082825260208201905092915050565b50565b6000614231600083614210565b915061423c82614221565b600082019050919050565b600060808201905061425c60008301866138bc565b61426960208301856138bc565b61427660408301846137ae565b818103606083015261428781614224565b9050949350505050565b6000815190506142a0816136bc565b92915050565b6000602082840312156142bc576142bb613686565b5b60006142ca84828501614291565b91505092915050565b7f554e534146455f524543495049454e5400000000000000000000000000000000600082015250565b60006143096010836137e3565b9150614314826142d3565b602082019050919050565b60006020820190508181036000830152614338816142fc565b9050919050565b7f546f6b656e206e6f742061637469766174656421000000000000000000000000600082015250565b60006143756014836137e3565b91506143808261433f565b602082019050919050565b600060208201905081810360008301526143a481614368565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006143e58261374b565b91506143f08361374b565b92508282026143fe8161374b565b91508282048414831517614415576144146143ab565b5b5092915050565b7f496e636f727265637420616d6f756e742073656e742100000000000000000000600082015250565b60006144526016836137e3565b915061445d8261441c565b602082019050919050565b6000602082019050818103600083015261448181614445565b9050919050565b60006144938261374b565b915061449e8361374b565b92508282019050808211156144b6576144b56143ab565b5b92915050565b7f4e4f545f4d494e54454400000000000000000000000000000000000000000000600082015250565b60006144f2600a836137e3565b91506144fd826144bc565b602082019050919050565b60006020820190508181036000830152614521816144e5565b9050919050565b7f57726f6e67206d65737361676520686173682100000000000000000000000000600082015250565b600061455e6013836137e3565b915061456982614528565b602082019050919050565b6000602082019050818103600083015261458d81614551565b9050919050565b7f496e76616c69642061646472657373207369676e657241646472657373000000600082015250565b60006145ca601d836137e3565b91506145d582614594565b602082019050919050565b600060208201905081810360008301526145f9816145bd565b9050919050565b7f5369676e61747572652065787069726564000000000000000000000000000000600082015250565b60006146366011836137e3565b915061464182614600565b602082019050919050565b6000602082019050818103600083015261466581614629565b9050919050565b600060608201905061468160008301866138bc565b61468e60208301856138bc565b61469b60408301846137ae565b949350505050565b6000815190506146b281613dfe565b92915050565b6000602082840312156146ce576146cd613686565b5b60006146dc848285016146a3565b91505092915050565b7f5a45524f5f414444524553530000000000000000000000000000000000000000600082015250565b600061471b600c836137e3565b9150614726826146e5565b602082019050919050565b6000602082019050818103600083015261474a8161470e565b9050919050565b7f496e76616c69642045544820616d6f756e742100000000000000000000000000600082015250565b60006147876013836137e3565b915061479282614751565b602082019050919050565b600060208201905081810360008301526147b68161477a565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261481f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826147e2565b61482986836147e2565b95508019841693508086168417925050509392505050565b6000819050919050565b600061486661486161485c8461374b565b614841565b61374b565b9050919050565b6000819050919050565b6148808361484b565b61489461488c8261486d565b8484546147ef565b825550505050565b600090565b6148a961489c565b6148b4818484614877565b505050565b5b818110156148d8576148cd6000826148a1565b6001810190506148ba565b5050565b601f82111561491d576148ee816147bd565b6148f7846147d2565b81016020851015614906578190505b61491a614912856147d2565b8301826148b9565b50505b505050565b600082821c905092915050565b600061494060001984600802614922565b1980831691505092915050565b6000614959838361492f565b9150826002028217905092915050565b614972826137d8565b67ffffffffffffffff81111561498b5761498a613c2a565b5b614995825461409b565b6149a08282856148dc565b600060209050601f8311600181146149d357600084156149c1578287015190505b6149cb858261494d565b865550614a33565b601f1984166149e1866147bd565b60005b82811015614a09578489015182556001820191506020850194506020810190506149e4565b86831015614a265784890151614a22601f89168261492f565b8355505b6001600288020188555050505b505050505050565b6000614a468261374b565b9150614a518361374b565b9250828203905081811115614a6957614a686143ab565b5b92915050565b7f496e76616c69642061646472657373207369676e657241646472657373210000600082015250565b6000614aa5601e836137e3565b9150614ab082614a6f565b602082019050919050565b60006020820190508181036000830152614ad481614a98565b9050919050565b6000614ae78385614210565b9350614af4838584613cd6565b614afd8361381e565b840190509392505050565b6000608082019050614b1d60008301886138bc565b614b2a60208301876138bc565b614b3760408301866137ae565b8181036060830152614b4a818486614adb565b90509695505050505050565b7f596f7520617265206e6f7420746865206f776e6572206f662074686973204e4660008201527f5421000000000000000000000000000000000000000000000000000000000000602082015250565b6000614bb26022836137e3565b9150614bbd82614b56565b604082019050919050565b60006020820190508181036000830152614be181614ba5565b9050919050565b7f546f6b656e20616c726561647920616374697665210000000000000000000000600082015250565b6000614c1e6015836137e3565b9150614c2982614be8565b602082019050919050565b60006020820190508181036000830152614c4d81614c11565b9050919050565b600081905092915050565b60008154614c6c8161409b565b614c768186614c54565b94506001821660008114614c915760018114614ca657614cd9565b60ff1983168652811515820286019350614cd9565b614caf856147bd565b60005b83811015614cd157815481890152600182019150602081019050614cb2565b838801955050505b50505092915050565b6000614ced826137d8565b614cf78185614c54565b9350614d078185602086016137f4565b80840191505092915050565b6000614d1f8285614c5f565b9150614d2b8284614ce2565b91508190509392505050565b7f4167656e74204944206973206e6f74207265766f6b61626c6521000000000000600082015250565b6000614d6d601a836137e3565b9150614d7882614d37565b602082019050919050565b60006020820190508181036000830152614d9c81614d60565b9050919050565b7f4d7573742068617665206265656e2061637469766174656420746f207265766f60008201527f6b65000000000000000000000000000000000000000000000000000000000000602082015250565b6000614dff6022836137e3565b9150614e0a82614da3565b604082019050919050565b60006020820190508181036000830152614e2e81614df2565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614e916026836137e3565b9150614e9c82614e35565b604082019050919050565b60006020820190508181036000830152614ec081614e84565b9050919050565b600081519050614ed681613755565b92915050565b600060208284031215614ef257614ef1613686565b5b6000614f0084828501614ec7565b91505092915050565b6000604082019050614f1e60008301856138bc565b614f2b60208301846137ae565b9392505050565b7f496e76616c696420746965720000000000000000000000000000000000000000600082015250565b6000614f68600c836137e3565b9150614f7382614f32565b602082019050919050565b60006020820190508181036000830152614f9781614f5b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614fd46020836137e3565b9150614fdf82614f9e565b602082019050919050565b6000602082019050818103600083015261500381614fc7565b9050919050565b6000819050919050565b6150256150208261374b565b61500a565b82525050565b60006150378288615014565b6020820191506150478287615014565b6020820191506150578286615014565b6020820191506150678285615014565b6020820191506150778284615014565b6020820191508190509695505050505050565b60008160601b9050919050565b60006150a28261508a565b9050919050565b60006150b482615097565b9050919050565b6150cc6150c7826138aa565b6150a9565b82525050565b60006150de82866150bb565b6014820191506150ee82856150bb565b6014820191506150fe8284615014565b602082019150819050949350505050565b7f414c52454144595f4d494e544544000000000000000000000000000000000000600082015250565b6000615145600e836137e3565b91506151508261510f565b602082019050919050565b6000602082019050818103600083015261517481615138565b9050919050565b60006151878289615014565b6020820191506151978288615014565b6020820191506151a78287615014565b6020820191506151b78286615014565b6020820191506151c78285615014565b6020820191506151d78284615014565b602082019150819050979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615250601c83614c54565b915061525b8261521a565b601c82019050919050565b6000819050919050565b61528161527c82613adb565b615266565b82525050565b600061529282615243565b915061529e8284615270565b60208201915081905092915050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006152e36018836137e3565b91506152ee826152ad565b602082019050919050565b60006020820190508181036000830152615312816152d6565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b600061534f601f836137e3565b915061535a82615319565b602082019050919050565b6000602082019050818103600083015261537e81615342565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006153e16022836137e3565b91506153ec82615385565b604082019050919050565b60006020820190508181036000830152615410816153d4565b9050919050565b61542081613adb565b82525050565b600060ff82169050919050565b61543c81615426565b82525050565b60006080820190506154576000830187615417565b6154646020830186615433565b6154716040830185615417565b61547e6060830184615417565b9594505050505056fea26469706673582212207148e33b35e24f68a439901676895fc01b6842c5e451497b96ff9a8fb372c9e864736f6c634300081300330000000000000000000000004d224452801aced8b2f0aebe155379bb5d59438100000000000000000000000048ba0eb124d33f488ab3845d8db0fc6f90b14449
Deployed Bytecode
0x6080604052600436106102ae5760003560e01c806382afd23b11610175578063b07af89b116100dc578063e985e9c511610095578063f3cba9141161006f578063f3cba91414610ad8578063f4f3b20014610b03578063f7694a4914610b2c578063fdf086ef14610b57576102ae565b8063e985e9c514610a47578063ebb0ac7314610a84578063f2fde38b14610aaf576102ae565b8063b07af89b14610927578063b88d4fde14610952578063befa350b1461097b578063c87b56dd146109a4578063d8583db3146109e1578063dd54097514610a0a576102ae565b806395d89b411161012e57806395d89b411461082d578063a2231d0514610858578063a22cb46514610881578063a557b43f146108aa578063a7ecd37e146108d5578063a864d386146108fe576102ae565b806382afd23b146106f757806389bf7b07146107345780638da5cb5b1461075f5780638db1afe71461078a578063931688cb146107c7578063945271e0146107f0576102ae565b80634f062c5a1161021957806366b35630116101d257806366b356301461061c5780636c0360eb1461064557806370a0823114610670578063715018a6146106ad5780637362377b146106c4578063757282f3146106db576102ae565b80634f062c5a146104df5780634f64b2be1461051c578063567e34ba1461055b5780635b7633d0146105985780635e2dea27146105c35780636352211e146105df576102ae565b80630ec7697a1161026b5780630ec7697a146103e757806318160ddd1461041057806323b872dd1461043b5780632452537f146104645780632d89b6061461048d57806342842e0e146104b6576102ae565b806301ffc9a7146102b35780630293a7bc146102f057806304b9a89b1461032d57806306fdde0314610356578063081812fc14610381578063095ea7b3146103be575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d591906136e8565b610b73565b6040516102e79190613730565b60405180910390f35b3480156102fc57600080fd5b5061031760048036038101906103129190613781565b610c05565b60405161032491906137bd565b60405180910390f35b34801561033957600080fd5b50610354600480360381019061034f9190613781565b610c25565b005b34801561036257600080fd5b5061036b610c37565b6040516103789190613868565b60405180910390f35b34801561038d57600080fd5b506103a860048036038101906103a39190613781565b610cc5565b6040516103b591906138cb565b60405180910390f35b3480156103ca57600080fd5b506103e560048036038101906103e09190613912565b610cf8565b005b3480156103f357600080fd5b5061040e60048036038101906104099190613781565b610ee1565b005b34801561041c57600080fd5b50610425610ef3565b60405161043291906137bd565b60405180910390f35b34801561044757600080fd5b50610462600480360381019061045d9190613952565b610ef9565b005b34801561047057600080fd5b5061048b60048036038101906104869190613781565b61132e565b005b34801561049957600080fd5b506104b460048036038101906104af9190613781565b611340565b005b3480156104c257600080fd5b506104dd60048036038101906104d89190613952565b611352565b005b3480156104eb57600080fd5b5061050660048036038101906105019190613781565b61148a565b6040516105139190613a1c565b60405180910390f35b34801561052857600080fd5b50610543600480360381019061053e9190613781565b6114b7565b60405161055293929190613a37565b60405180910390f35b34801561056757600080fd5b50610582600480360381019061057d9190613a6e565b6114ee565b60405161058f91906137bd565b60405180910390f35b3480156105a457600080fd5b506105ad611506565b6040516105ba91906138cb565b60405180910390f35b6105dd60048036038101906105d89190613a9b565b61152c565b005b3480156105eb57600080fd5b5061060660048036038101906106019190613781565b61173f565b60405161061391906138cb565b60405180910390f35b34801561062857600080fd5b50610643600480360381019061063e9190613b76565b6117ea565b005b34801561065157600080fd5b5061065a611a94565b6040516106679190613868565b60405180910390f35b34801561067c57600080fd5b5061069760048036038101906106929190613a6e565b611b22565b6040516106a491906137bd565b60405180910390f35b3480156106b957600080fd5b506106c2611bd9565b005b3480156106d057600080fd5b506106d9611bed565b005b6106f560048036038101906106f09190613781565b611c3e565b005b34801561070357600080fd5b5061071e60048036038101906107199190613781565b611c90565b60405161072b9190613730565b60405180910390f35b34801561074057600080fd5b50610749611ce4565b60405161075691906137bd565b60405180910390f35b34801561076b57600080fd5b50610774611cea565b60405161078191906138cb565b60405180910390f35b34801561079657600080fd5b506107b160048036038101906107ac9190613781565b611d14565b6040516107be91906137bd565b60405180910390f35b3480156107d357600080fd5b506107ee60048036038101906107e99190613d55565b611d34565b005b3480156107fc57600080fd5b5061081760048036038101906108129190613781565b611d4f565b60405161082491906137bd565b60405180910390f35b34801561083957600080fd5b50610842611d9b565b60405161084f9190613868565b60405180910390f35b34801561086457600080fd5b5061087f600480360381019061087a9190613d9e565b611e29565b005b34801561088d57600080fd5b506108a860048036038101906108a39190613e2a565b611f70565b005b3480156108b657600080fd5b506108bf61206d565b6040516108cc91906137bd565b60405180910390f35b3480156108e157600080fd5b506108fc60048036038101906108f79190613a6e565b612073565b005b34801561090a57600080fd5b5061092560048036038101906109209190613781565b6120bf565b005b34801561093357600080fd5b5061093c6120d1565b60405161094991906138cb565b60405180910390f35b34801561095e57600080fd5b5061097960048036038101906109749190613e6a565b6120f7565b005b34801561098757600080fd5b506109a2600480360381019061099d9190613f17565b612235565b005b3480156109b057600080fd5b506109cb60048036038101906109c69190613781565b6125fa565b6040516109d89190613868565b60405180910390f35b3480156109ed57600080fd5b50610a086004803603810190610a039190613781565b61265a565b005b348015610a1657600080fd5b50610a316004803603810190610a2c9190613781565b6126b9565b604051610a3e9190613730565b60405180910390f35b348015610a5357600080fd5b50610a6e6004803603810190610a699190613fd9565b612772565b604051610a7b9190613730565b60405180910390f35b348015610a9057600080fd5b50610a996127a1565b604051610aa691906137bd565b60405180910390f35b348015610abb57600080fd5b50610ad66004803603810190610ad19190613a6e565b6127a7565b005b348015610ae457600080fd5b50610aed61282a565b604051610afa91906137bd565b60405180910390f35b348015610b0f57600080fd5b50610b2a6004803603810190610b259190613a6e565b612830565b005b348015610b3857600080fd5b50610b41612939565b604051610b4e91906137bd565b60405180910390f35b610b716004803603810190610b6c9190614019565b61293f565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bce57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bfe5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600060116000838152602001908152602001600020600201549050919050565b610c2d612c9d565b8060108190555050565b60008054610c449061409b565b80601f0160208091040260200160405190810160405280929190818152602001828054610c709061409b565b8015610cbd5780601f10610c9257610100808354040283529160200191610cbd565b820191906000526020600020905b815481529060010190602001808311610ca057829003601f168201915b505050505081565b60046020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610df05750600560008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b610e2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2690614118565b60405180910390fd5b826004600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610ee9612c9d565b80600d8190555050565b600b5481565b6002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610f9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9190614184565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611009576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611000906141f0565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806110c95750600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b8061113257506004600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b8061116857503073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6111a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119e90614118565b60405180910390fd5b600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190600190039190505550600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906001019190505550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b611336612c9d565b80600c8190555050565b611348612c9d565b80600e8190555050565b61135d838383610ef9565b60008273ffffffffffffffffffffffffffffffffffffffff163b1480611446575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168273ffffffffffffffffffffffffffffffffffffffff1663150b7a023386856040518463ffffffff1660e01b81526004016113e293929190614247565b6020604051808303816000875af1158015611401573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142591906142a6565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147c9061431f565b60405180910390fd5b505050565b60006011600083815260200190815260200160002060000160009054906101000a900460ff169050919050565b60116020528060005260406000206000915090508060000160009054906101000a900460ff16908060010154908060020154905083565b60096020528060005260406000206000915090505481565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b816000601160008381526020019081526020016000206002015411611586576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157d9061438b565b60405180910390fd5b60006011600085815260200190815260200160002060000160009054906101000a900460ff1690506002808111156115c1576115c06139a5565b5b8160028111156115d4576115d36139a5565b5b0361162d5782600e546115e791906143da565b3414611628576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161f90614468565b60405180910390fd5b6116fe565b60016002811115611641576116406139a5565b5b816002811115611654576116536139a5565b5b036116ad5782600d5461166791906143da565b34146116a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169f90614468565b60405180910390fd5b6116fd565b82600c546116bb91906143da565b34146116fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f390614468565b60405180910390fd5b5b5b8262278d0061170d91906143da565b6011600086815260200190815260200160002060010160008282546117329190614488565b9250508190555050505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691508173ffffffffffffffffffffffffffffffffffffffff16036117e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117dc90614508565b60405180910390fd5b919050565b866000601160008381526020019081526020016000206002015411611844576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183b9061438b565b60405180910390fd5b61189088888888600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612d1b565b84146118d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c890614574565b60405180910390fd5b6118dc848484612d57565b61191b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611912906145e0565b60405180910390fd5b84421061195d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119549061464c565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33308a6040518463ffffffff1660e01b81526004016119bc9392919061466c565b6020604051808303816000875af11580156119db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ff91906146b8565b508562278d00611a0f91906143da565b601160008a81526020019081526020016000206001016000828254611a349190614488565b92505081905550600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081548092919060010191905055505050505050505050565b600a8054611aa19061409b565b80601f0160208091040260200160405190810160405280929190818152602001828054611acd9061409b565b8015611b1a5780601f10611aef57610100808354040283529160200191611b1a565b820191906000526020600020905b815481529060010190602001808311611afd57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8990614731565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611be1612c9d565b611beb6000612e16565b565b611bf5612c9d565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611c3b573d6000803e3d6000fd5b50565b600f543414611c82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c799061479d565b60405180910390fd5b611c8d303383610ef9565b50565b600060116000838152602001908152602001600020600101546011600084815260200190815260200160002060020154611cca9190614488565b421115611cda5760009050611cdf565b600190505b919050565b600e5481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060116000838152602001908152602001600020600101549050919050565b611d3c612c9d565b80600a9081611d4b9190614969565b5050565b6000601160008381526020019081526020016000206002015442611d739190614a3b565b6011600084815260200190815260200160002060010154611d949190614a3b565b9050919050565b60018054611da89061409b565b80601f0160208091040260200160405190810160405280929190818152602001828054611dd49061409b565b8015611e215780601f10611df657610100808354040283529160200191611e21565b820191906000526020600020905b815481529060010190602001808311611e0457829003601f168201915b505050505081565b611e733330600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612edc565b8314611eb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eab90614574565b60405180910390fd5b611ebf838383612d57565b611efe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef590614abb565b60405180910390fd5b611f0a33600b54612f12565b600b60008154809291906001019190505550600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906001019190505550505050565b80600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120619190613730565b60405180910390a35050565b600f5481565b61207b612c9d565b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6120c7612c9d565b80600f8190555050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612102858585610ef9565b60008473ffffffffffffffffffffffffffffffffffffffff163b14806121ef575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168473ffffffffffffffffffffffffffffffffffffffff1663150b7a0233888787876040518663ffffffff1660e01b815260040161218b959493929190614b08565b6020604051808303816000875af11580156121aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ce91906142a6565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b61222e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122259061431f565b60405180910390fd5b5050505050565b873373ffffffffffffffffffffffffffffffffffffffff166122568261173f565b73ffffffffffffffffffffffffffffffffffffffff16146122ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a390614bc8565b60405180910390fd5b6122b581611c90565b156122f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ec90614c34565b60405180910390fd5b60006011600083815260200190815260200160002060020154111561234f5760116000828152602001908152602001600020600080820160006101000a81549060ff02191690556001820160009055600282016000905550505b6123ae89896002811115612366576123656139a5565b5b898989600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613124565b84146123ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e690614574565b60405180910390fd5b6123fa848484612d57565b612439576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243090614abb565b60405180910390fd5b84421061247b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124729061464c565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33308a6040518463ffffffff1660e01b81526004016124da9392919061466c565b6020604051808303816000875af11580156124f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061251d91906146b8565b508562278d0061252d91906143da565b601160008b81526020019081526020016000206001018190555087601160008b815260200190815260200160002060000160006101000a81548160ff021916908360028111156125805761257f6139a5565b5b021790555042601160008b815260200190815260200160002060020181905550600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906001019190505550505050505050505050565b60606000600a805461260b9061409b565b9050116126275760405180602001604052806000815250612653565b600a61263283613163565b604051602001612643929190614d13565b6040516020818303038152906040525b9050919050565b612663816126b9565b156126a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269a90614d83565b60405180910390fd5b6126b66126af8261173f565b3083610ef9565b50565b600080601160008481526020019081526020016000206002015411612713576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270a90614e15565b60405180910390fd5b6010546011600084815260200190815260200160002060010154601160008581526020019081526020016000206002015461274e9190614488565b6127589190614488565b421115612768576001905061276d565b600090505b919050565b60056020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b60105481565b6127af612c9d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361281e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281590614ea7565b60405180910390fd5b61282781612e16565b50565b600d5481565b612838612c9d565b60008190508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161289391906138cb565b602060405180830381865afa1580156128b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128d49190614edc565b6040518363ffffffff1660e01b81526004016128f1929190614f09565b6020604051808303816000875af1158015612910573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061293491906146b8565b505050565b600c5481565b823373ffffffffffffffffffffffffffffffffffffffff166129608261173f565b73ffffffffffffffffffffffffffffffffffffffff16146129b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ad90614bc8565b60405180910390fd5b6129bf81611c90565b156129ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f690614c34565b60405180910390fd5b600060116000838152602001908152602001600020600201541115612a595760116000828152602001908152602001600020600080820160006101000a81549060ff02191690556001820160009055600282016000905550505b600280811115612a6c57612a6b6139a5565b5b836002811115612a7f57612a7e6139a5565b5b03612ad85781600e54612a9291906143da565b3414612ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aca90614468565b60405180910390fd5b612c15565b60016002811115612aec57612aeb6139a5565b5b836002811115612aff57612afe6139a5565b5b03612b585781600d54612b1291906143da565b3414612b53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4a90614468565b60405180910390fd5b612c14565b60006002811115612b6c57612b6b6139a5565b5b836002811115612b7f57612b7e6139a5565b5b03612bd85781600c54612b9291906143da565b3414612bd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bca90614468565b60405180910390fd5b612c13565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0a90614f7e565b60405180910390fd5b5b5b8162278d00612c2491906143da565b6011600086815260200190815260200160002060010181905550826011600086815260200190815260200160002060000160006101000a81548160ff02191690836002811115612c7757612c766139a5565b5b021790555042601160008681526020019081526020016000206002018190555050505050565b612ca5613231565b73ffffffffffffffffffffffffffffffffffffffff16612cc3611cea565b73ffffffffffffffffffffffffffffffffffffffff1614612d19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1090614fea565b60405180910390fd5b565b60008585858585604051602001612d3695949392919061502b565b60405160208183030381529060405280519060200120905095945050505050565b600080612db984848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612dab87613239565b61326990919063ffffffff16565b90508073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16149150509392505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000838383604051602001612ef3939291906150d2565b6040516020818303038152906040528051906020012090509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f78906141f0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613023576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161301a9061515b565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906001019190505550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008686868686866040516020016131419695949392919061517b565b6040516020818303038152906040528051906020012090509695505050505050565b60606000600161317284613290565b01905060008167ffffffffffffffff81111561319157613190613c2a565b5b6040519080825280601f01601f1916602001820160405280156131c35781602001600182028036833780820191505090505b509050600082602001820190505b600115613226578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161321a576132196151eb565b5b049450600085036131d1575b819350505050919050565b600033905090565b60008160405160200161324c9190615287565b604051602081830303815290604052805190602001209050919050565b600080600061327885856133e3565b9150915061328581613434565b819250505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106132ee577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816132e4576132e36151eb565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061332b576d04ee2d6d415b85acef81000000008381613321576133206151eb565b5b0492506020810190505b662386f26fc10000831061335a57662386f26fc1000083816133505761334f6151eb565b5b0492506010810190505b6305f5e1008310613383576305f5e1008381613379576133786151eb565b5b0492506008810190505b61271083106133a857612710838161339e5761339d6151eb565b5b0492506004810190505b606483106133cb57606483816133c1576133c06151eb565b5b0492506002810190505b600a83106133da576001810190505b80915050919050565b60008060418351036134245760008060006020860151925060408601519150606086015160001a90506134188782858561359a565b9450945050505061342d565b60006002915091505b9250929050565b60006004811115613448576134476139a5565b5b81600481111561345b5761345a6139a5565b5b03156135975760016004811115613475576134746139a5565b5b816004811115613488576134876139a5565b5b036134c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134bf906152f9565b60405180910390fd5b600260048111156134dc576134db6139a5565b5b8160048111156134ef576134ee6139a5565b5b0361352f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161352690615365565b60405180910390fd5b60036004811115613543576135426139a5565b5b816004811115613556576135556139a5565b5b03613596576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161358d906153f7565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156135d5576000600391509150613673565b6000600187878787604051600081526020016040526040516135fa9493929190615442565b6020604051602081039080840390855afa15801561361c573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361366a57600060019250925050613673565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6136c581613690565b81146136d057600080fd5b50565b6000813590506136e2816136bc565b92915050565b6000602082840312156136fe576136fd613686565b5b600061370c848285016136d3565b91505092915050565b60008115159050919050565b61372a81613715565b82525050565b60006020820190506137456000830184613721565b92915050565b6000819050919050565b61375e8161374b565b811461376957600080fd5b50565b60008135905061377b81613755565b92915050565b60006020828403121561379757613796613686565b5b60006137a58482850161376c565b91505092915050565b6137b78161374b565b82525050565b60006020820190506137d260008301846137ae565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138125780820151818401526020810190506137f7565b60008484015250505050565b6000601f19601f8301169050919050565b600061383a826137d8565b61384481856137e3565b93506138548185602086016137f4565b61385d8161381e565b840191505092915050565b60006020820190508181036000830152613882818461382f565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138b58261388a565b9050919050565b6138c5816138aa565b82525050565b60006020820190506138e060008301846138bc565b92915050565b6138ef816138aa565b81146138fa57600080fd5b50565b60008135905061390c816138e6565b92915050565b6000806040838503121561392957613928613686565b5b6000613937858286016138fd565b92505060206139488582860161376c565b9150509250929050565b60008060006060848603121561396b5761396a613686565b5b6000613979868287016138fd565b935050602061398a868287016138fd565b925050604061399b8682870161376c565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600381106139e5576139e46139a5565b5b50565b60008190506139f6826139d4565b919050565b6000613a06826139e8565b9050919050565b613a16816139fb565b82525050565b6000602082019050613a316000830184613a0d565b92915050565b6000606082019050613a4c6000830186613a0d565b613a5960208301856137ae565b613a6660408301846137ae565b949350505050565b600060208284031215613a8457613a83613686565b5b6000613a92848285016138fd565b91505092915050565b60008060408385031215613ab257613ab1613686565b5b6000613ac08582860161376c565b9250506020613ad18582860161376c565b9150509250929050565b6000819050919050565b613aee81613adb565b8114613af957600080fd5b50565b600081359050613b0b81613ae5565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613b3657613b35613b11565b5b8235905067ffffffffffffffff811115613b5357613b52613b16565b5b602083019150836001820283011115613b6f57613b6e613b1b565b5b9250929050565b600080600080600080600060c0888a031215613b9557613b94613686565b5b6000613ba38a828b0161376c565b9750506020613bb48a828b0161376c565b9650506040613bc58a828b0161376c565b9550506060613bd68a828b0161376c565b9450506080613be78a828b01613afc565b93505060a088013567ffffffffffffffff811115613c0857613c0761368b565b5b613c148a828b01613b20565b925092505092959891949750929550565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c628261381e565b810181811067ffffffffffffffff82111715613c8157613c80613c2a565b5b80604052505050565b6000613c9461367c565b9050613ca08282613c59565b919050565b600067ffffffffffffffff821115613cc057613cbf613c2a565b5b613cc98261381e565b9050602081019050919050565b82818337600083830152505050565b6000613cf8613cf384613ca5565b613c8a565b905082815260208101848484011115613d1457613d13613c25565b5b613d1f848285613cd6565b509392505050565b600082601f830112613d3c57613d3b613b11565b5b8135613d4c848260208601613ce5565b91505092915050565b600060208284031215613d6b57613d6a613686565b5b600082013567ffffffffffffffff811115613d8957613d8861368b565b5b613d9584828501613d27565b91505092915050565b600080600060408486031215613db757613db6613686565b5b6000613dc586828701613afc565b935050602084013567ffffffffffffffff811115613de657613de561368b565b5b613df286828701613b20565b92509250509250925092565b613e0781613715565b8114613e1257600080fd5b50565b600081359050613e2481613dfe565b92915050565b60008060408385031215613e4157613e40613686565b5b6000613e4f858286016138fd565b9250506020613e6085828601613e15565b9150509250929050565b600080600080600060808688031215613e8657613e85613686565b5b6000613e94888289016138fd565b9550506020613ea5888289016138fd565b9450506040613eb68882890161376c565b935050606086013567ffffffffffffffff811115613ed757613ed661368b565b5b613ee388828901613b20565b92509250509295509295909350565b60038110613eff57600080fd5b50565b600081359050613f1181613ef2565b92915050565b60008060008060008060008060e0898b031215613f3757613f36613686565b5b6000613f458b828c0161376c565b9850506020613f568b828c01613f02565b9750506040613f678b828c0161376c565b9650506060613f788b828c0161376c565b9550506080613f898b828c0161376c565b94505060a0613f9a8b828c01613afc565b93505060c089013567ffffffffffffffff811115613fbb57613fba61368b565b5b613fc78b828c01613b20565b92509250509295985092959890939650565b60008060408385031215613ff057613fef613686565b5b6000613ffe858286016138fd565b925050602061400f858286016138fd565b9150509250929050565b60008060006060848603121561403257614031613686565b5b60006140408682870161376c565b935050602061405186828701613f02565b92505060406140628682870161376c565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806140b357607f821691505b6020821081036140c6576140c561406c565b5b50919050565b7f4e4f545f415554484f52495a4544000000000000000000000000000000000000600082015250565b6000614102600e836137e3565b915061410d826140cc565b602082019050919050565b60006020820190508181036000830152614131816140f5565b9050919050565b7f57524f4e475f46524f4d00000000000000000000000000000000000000000000600082015250565b600061416e600a836137e3565b915061417982614138565b602082019050919050565b6000602082019050818103600083015261419d81614161565b9050919050565b7f494e56414c49445f524543495049454e54000000000000000000000000000000600082015250565b60006141da6011836137e3565b91506141e5826141a4565b602082019050919050565b60006020820190508181036000830152614209816141cd565b9050919050565b600082825260208201905092915050565b50565b6000614231600083614210565b915061423c82614221565b600082019050919050565b600060808201905061425c60008301866138bc565b61426960208301856138bc565b61427660408301846137ae565b818103606083015261428781614224565b9050949350505050565b6000815190506142a0816136bc565b92915050565b6000602082840312156142bc576142bb613686565b5b60006142ca84828501614291565b91505092915050565b7f554e534146455f524543495049454e5400000000000000000000000000000000600082015250565b60006143096010836137e3565b9150614314826142d3565b602082019050919050565b60006020820190508181036000830152614338816142fc565b9050919050565b7f546f6b656e206e6f742061637469766174656421000000000000000000000000600082015250565b60006143756014836137e3565b91506143808261433f565b602082019050919050565b600060208201905081810360008301526143a481614368565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006143e58261374b565b91506143f08361374b565b92508282026143fe8161374b565b91508282048414831517614415576144146143ab565b5b5092915050565b7f496e636f727265637420616d6f756e742073656e742100000000000000000000600082015250565b60006144526016836137e3565b915061445d8261441c565b602082019050919050565b6000602082019050818103600083015261448181614445565b9050919050565b60006144938261374b565b915061449e8361374b565b92508282019050808211156144b6576144b56143ab565b5b92915050565b7f4e4f545f4d494e54454400000000000000000000000000000000000000000000600082015250565b60006144f2600a836137e3565b91506144fd826144bc565b602082019050919050565b60006020820190508181036000830152614521816144e5565b9050919050565b7f57726f6e67206d65737361676520686173682100000000000000000000000000600082015250565b600061455e6013836137e3565b915061456982614528565b602082019050919050565b6000602082019050818103600083015261458d81614551565b9050919050565b7f496e76616c69642061646472657373207369676e657241646472657373000000600082015250565b60006145ca601d836137e3565b91506145d582614594565b602082019050919050565b600060208201905081810360008301526145f9816145bd565b9050919050565b7f5369676e61747572652065787069726564000000000000000000000000000000600082015250565b60006146366011836137e3565b915061464182614600565b602082019050919050565b6000602082019050818103600083015261466581614629565b9050919050565b600060608201905061468160008301866138bc565b61468e60208301856138bc565b61469b60408301846137ae565b949350505050565b6000815190506146b281613dfe565b92915050565b6000602082840312156146ce576146cd613686565b5b60006146dc848285016146a3565b91505092915050565b7f5a45524f5f414444524553530000000000000000000000000000000000000000600082015250565b600061471b600c836137e3565b9150614726826146e5565b602082019050919050565b6000602082019050818103600083015261474a8161470e565b9050919050565b7f496e76616c69642045544820616d6f756e742100000000000000000000000000600082015250565b60006147876013836137e3565b915061479282614751565b602082019050919050565b600060208201905081810360008301526147b68161477a565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261481f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826147e2565b61482986836147e2565b95508019841693508086168417925050509392505050565b6000819050919050565b600061486661486161485c8461374b565b614841565b61374b565b9050919050565b6000819050919050565b6148808361484b565b61489461488c8261486d565b8484546147ef565b825550505050565b600090565b6148a961489c565b6148b4818484614877565b505050565b5b818110156148d8576148cd6000826148a1565b6001810190506148ba565b5050565b601f82111561491d576148ee816147bd565b6148f7846147d2565b81016020851015614906578190505b61491a614912856147d2565b8301826148b9565b50505b505050565b600082821c905092915050565b600061494060001984600802614922565b1980831691505092915050565b6000614959838361492f565b9150826002028217905092915050565b614972826137d8565b67ffffffffffffffff81111561498b5761498a613c2a565b5b614995825461409b565b6149a08282856148dc565b600060209050601f8311600181146149d357600084156149c1578287015190505b6149cb858261494d565b865550614a33565b601f1984166149e1866147bd565b60005b82811015614a09578489015182556001820191506020850194506020810190506149e4565b86831015614a265784890151614a22601f89168261492f565b8355505b6001600288020188555050505b505050505050565b6000614a468261374b565b9150614a518361374b565b9250828203905081811115614a6957614a686143ab565b5b92915050565b7f496e76616c69642061646472657373207369676e657241646472657373210000600082015250565b6000614aa5601e836137e3565b9150614ab082614a6f565b602082019050919050565b60006020820190508181036000830152614ad481614a98565b9050919050565b6000614ae78385614210565b9350614af4838584613cd6565b614afd8361381e565b840190509392505050565b6000608082019050614b1d60008301886138bc565b614b2a60208301876138bc565b614b3760408301866137ae565b8181036060830152614b4a818486614adb565b90509695505050505050565b7f596f7520617265206e6f7420746865206f776e6572206f662074686973204e4660008201527f5421000000000000000000000000000000000000000000000000000000000000602082015250565b6000614bb26022836137e3565b9150614bbd82614b56565b604082019050919050565b60006020820190508181036000830152614be181614ba5565b9050919050565b7f546f6b656e20616c726561647920616374697665210000000000000000000000600082015250565b6000614c1e6015836137e3565b9150614c2982614be8565b602082019050919050565b60006020820190508181036000830152614c4d81614c11565b9050919050565b600081905092915050565b60008154614c6c8161409b565b614c768186614c54565b94506001821660008114614c915760018114614ca657614cd9565b60ff1983168652811515820286019350614cd9565b614caf856147bd565b60005b83811015614cd157815481890152600182019150602081019050614cb2565b838801955050505b50505092915050565b6000614ced826137d8565b614cf78185614c54565b9350614d078185602086016137f4565b80840191505092915050565b6000614d1f8285614c5f565b9150614d2b8284614ce2565b91508190509392505050565b7f4167656e74204944206973206e6f74207265766f6b61626c6521000000000000600082015250565b6000614d6d601a836137e3565b9150614d7882614d37565b602082019050919050565b60006020820190508181036000830152614d9c81614d60565b9050919050565b7f4d7573742068617665206265656e2061637469766174656420746f207265766f60008201527f6b65000000000000000000000000000000000000000000000000000000000000602082015250565b6000614dff6022836137e3565b9150614e0a82614da3565b604082019050919050565b60006020820190508181036000830152614e2e81614df2565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614e916026836137e3565b9150614e9c82614e35565b604082019050919050565b60006020820190508181036000830152614ec081614e84565b9050919050565b600081519050614ed681613755565b92915050565b600060208284031215614ef257614ef1613686565b5b6000614f0084828501614ec7565b91505092915050565b6000604082019050614f1e60008301856138bc565b614f2b60208301846137ae565b9392505050565b7f496e76616c696420746965720000000000000000000000000000000000000000600082015250565b6000614f68600c836137e3565b9150614f7382614f32565b602082019050919050565b60006020820190508181036000830152614f9781614f5b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614fd46020836137e3565b9150614fdf82614f9e565b602082019050919050565b6000602082019050818103600083015261500381614fc7565b9050919050565b6000819050919050565b6150256150208261374b565b61500a565b82525050565b60006150378288615014565b6020820191506150478287615014565b6020820191506150578286615014565b6020820191506150678285615014565b6020820191506150778284615014565b6020820191508190509695505050505050565b60008160601b9050919050565b60006150a28261508a565b9050919050565b60006150b482615097565b9050919050565b6150cc6150c7826138aa565b6150a9565b82525050565b60006150de82866150bb565b6014820191506150ee82856150bb565b6014820191506150fe8284615014565b602082019150819050949350505050565b7f414c52454144595f4d494e544544000000000000000000000000000000000000600082015250565b6000615145600e836137e3565b91506151508261510f565b602082019050919050565b6000602082019050818103600083015261517481615138565b9050919050565b60006151878289615014565b6020820191506151978288615014565b6020820191506151a78287615014565b6020820191506151b78286615014565b6020820191506151c78285615014565b6020820191506151d78284615014565b602082019150819050979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615250601c83614c54565b915061525b8261521a565b601c82019050919050565b6000819050919050565b61528161527c82613adb565b615266565b82525050565b600061529282615243565b915061529e8284615270565b60208201915081905092915050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006152e36018836137e3565b91506152ee826152ad565b602082019050919050565b60006020820190508181036000830152615312816152d6565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b600061534f601f836137e3565b915061535a82615319565b602082019050919050565b6000602082019050818103600083015261537e81615342565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006153e16022836137e3565b91506153ec82615385565b604082019050919050565b60006020820190508181036000830152615410816153d4565b9050919050565b61542081613adb565b82525050565b600060ff82169050919050565b61543c81615426565b82525050565b60006080820190506154576000830187615417565b6154646020830186615433565b6154716040830185615417565b61547e6060830184615417565b9594505050505056fea26469706673582212207148e33b35e24f68a439901676895fc01b6842c5e451497b96ff9a8fb372c9e864736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004d224452801aced8b2f0aebe155379bb5d59438100000000000000000000000048ba0eb124d33f488ab3845d8db0fc6f90b14449
-----Decoded View---------------
Arg [0] : _apeCoinAddress (address): 0x4d224452801ACEd8B2F0aebE155379bb5D594381
Arg [1] : _signer (address): 0x48Ba0EB124D33F488ab3845D8db0FC6f90b14449
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004d224452801aced8b2f0aebe155379bb5d594381
Arg [1] : 00000000000000000000000048ba0eb124d33f488ab3845d8db0fc6f90b14449
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.