ERC-721
NFT
Overview
Max Total Supply
6,666 ZFT
Holders
1,236
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
7 ZFTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ZooFrenzToken
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "./ERC721A.sol"; import "./FrenshipToken.sol"; contract ZooFrenzToken is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; using SafeMath for uint256; using ECDSA for bytes32; FrenshipToken FSToken; string public baseURI; string public unrevealURI; uint256 public price = 0.15 ether; uint256 public presaleEndDate; uint256 public claimStartTime; uint256 public claimCooldown = 1 days; uint256 public frenz3dNumber = 1; uint16 public claim3dModelCost = 400; bool public enableClaim; address private signer; mapping(uint256=>uint256) public randomResults; mapping(uint256=>uint8) public frenzRarities; mapping(uint256=>bool) public claimedFrenz3d; mapping(uint256=>uint256) public numberOf3dFrenz; mapping(uint8=>uint8) public FSTClaimNumber; mapping(uint256=>uint256) public tokenClaimedTime; mapping(address=>uint64) public whitelistMinted; mapping(address=>uint8) public allowlist; mapping(string => bool) private ticketUsed; constructor(address initSigner, address initFSTAddress, uint256 maxAmountPerMint, uint256 maxCollection) ERC721A("ZooFrenzToken", "ZFT", maxAmountPerMint, maxCollection) { signer = initSigner; FSToken = FrenshipToken(initFSTAddress); initFSTClaimNumber(); } function initFSTClaimNumber () private { FSTClaimNumber[1] = 8; FSTClaimNumber[2] = 9; FSTClaimNumber[3] = 10; FSTClaimNumber[4] = 11; FSTClaimNumber[5] = 12; } function setPresaleEndDate(uint256 newDate) public onlyOwner { presaleEndDate = newDate; } function setEnableClaim(bool enable) public onlyOwner { enableClaim = enable; claimStartTime = block.timestamp; } function setClaimNumbers(uint8[] calldata rarities, uint8[] calldata amounts) public onlyOwner { require(rarities.length == amounts.length, "rarities does not match amounts length"); for (uint256 i = 0; i < rarities.length; i++) { FSTClaimNumber[rarities[i]] = amounts[i]; } } function setClaimCooldown(uint256 cooldown) public onlyOwner{ claimCooldown = cooldown; } function setPrice(uint256 newPrice) public onlyOwner { price = newPrice; } function setClaim3dModelCost(uint16 newCost) public onlyOwner { claim3dModelCost = newCost; } function setRarities(uint256[] calldata tokenIds, uint8[] calldata ratities) external onlyOwner { require(tokenIds.length == ratities.length, "tokenIds does not match ratities length"); for(uint256 i = 0; i < tokenIds.length; i++) { frenzRarities[tokenIds[i]] = ratities[i]; } } function setSigner(address newSigner) external onlyOwner { signer = newSigner; } function setAllowlist(address[] calldata addresses, uint8[] calldata mintAmount) external onlyOwner { require(addresses.length == mintAmount.length, "addresses does not match numSlots length"); for (uint256 i = 0; i < addresses.length; i++) { allowlist[addresses[i]] = mintAmount[i]; } } function withdraw() external payable onlyOwner { (bool success, ) = payable(msg.sender).call{value: address(this).balance}(""); require(success); } function recycleToken(address to, uint256 amount) external onlyOwner { FSToken.transfer(to, amount); } function isWhitelistAuthorized( address sender, string memory ticket, uint8 allowAmount, uint64 exipreTime, bytes memory signature ) private view returns (bool) { bytes32 hashMsg = keccak256(abi.encodePacked(sender, ticket, allowAmount, exipreTime)); bytes32 ethHashMessage = hashMsg.toEthSignedMessageHash(); return ethHashMessage.recover(signature) == signer; } function isAuthorized( address sender, string memory ticket, uint64 exipreTime, bytes memory signature ) private view returns (bool) { bytes32 hashMsg = keccak256(abi.encodePacked(sender, ticket, exipreTime)); bytes32 ethHashMessage = hashMsg.toEthSignedMessageHash(); return ethHashMessage.recover(signature) == signer; } function mint(uint8 amount, uint8 allowAmount, string calldata ticket, uint64 exipreTime, bytes calldata signature) external payable callerIsUser nonReentrant { require(amount > 0, "You can get no fewer than 1"); require(amount <= maxBatchSize, "too much"); uint256 supply = totalSupply(); require(supply + amount <= collectionSize, "reached max supply"); require(!ticketUsed[ticket], "ticket used"); require(block.timestamp <= exipreTime, "ticket expired"); if(block.timestamp <= presaleEndDate) { require(whitelistMinted[msg.sender] + amount <= allowAmount, "exceed mint number"); require(isWhitelistAuthorized(msg.sender, ticket, allowAmount, exipreTime, signature), "auth failed"); whitelistMinted[msg.sender] += amount; } else { require(isAuthorized(msg.sender, ticket, exipreTime, signature), "auth failed"); } uint256 finalPrice = price.mul(amount); require(msg.value >= finalPrice, "not enough!"); ticketUsed[ticket] = true; mintFrenz(amount, supply, ticket, msg.sender); } function devMint(uint256 amount, string calldata ticket, address to) external nonReentrant onlyOwner{ uint256 supply = totalSupply(); require(supply + amount <= collectionSize, "reached max supply"); mintFrenz(amount, supply, ticket, to); } function allowlistMint(uint8 amount, string calldata ticket, uint64 exipreTime, bytes calldata signature) external nonReentrant callerIsUser { require(allowlist[msg.sender] >= amount, "not eligible for allowlist mint"); require(totalSupply() + amount <= collectionSize, "reached max supply"); require(isAuthorized(msg.sender, ticket, exipreTime, signature), "auth failed"); require(block.timestamp <= exipreTime, "ticket expired"); allowlist[msg.sender] -= amount; uint256 supply = totalSupply(); mintFrenz(amount, supply, ticket, msg.sender); } function mintFrenz(uint256 _amount, uint256 lastTokenId, string calldata seed, address to) private { _safeMint(to, _amount); uint256 total = lastTokenId + _amount; for(; lastTokenId < total; lastTokenId++) { uint256 tokenId = lastTokenId; randomResults[tokenId] = uint256(keccak256(abi.encodePacked(seed, tokenId, blockhash(block.number - 1), block.timestamp))) % 10000000000000; } } function getRandomResult(uint256 tokenId) external view returns(uint256) { return randomResults[tokenId]; } function claim(uint256 tokenId) external callerIsUser nonReentrant { require(enableClaim, "not started yet"); uint256 claimAmount = getRewardCountOfOwner(tokenId); FSToken.mint(msg.sender, claimAmount); tokenClaimedTime[tokenId] = block.timestamp; } function getRewardCountOfOwner(uint256 tokenId) public view returns (uint256) { require(ownerOf(tokenId) == msg.sender, "not token owner"); require (frenzRarities[tokenId] > 0, "not revealed"); uint256 claimedTime = tokenClaimedTime[tokenId]; if (claimedTime == 0) claimedTime = claimStartTime; uint256 count = uint256((block.timestamp - claimedTime) / claimCooldown); require (count > 0, "no reward yet"); return count * FSTClaimNumber[frenzRarities[tokenId]]; } function getTokenClaimTime(uint256 tokenId) private view returns (uint256) { require(ownerOf(tokenId) == msg.sender, "not owner"); return tokenClaimedTime[tokenId]; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: Nonexistent token"); if(frenzRarities[tokenId] == 0) { return unrevealURI; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), ".json")) : ""; } function setBaseURI(string calldata newURI) external onlyOwner { baseURI = newURI; } function setUnrevealURI(string calldata newURI) external onlyOwner { unrevealURI = newURI; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function claim3DFrenz(uint256 tokenId) external callerIsUser nonReentrant { require(!claimedFrenz3d[tokenId], "3d model claimed"); require(ownerOf(tokenId) == msg.sender, "not owner"); require(FSToken.balanceOf(msg.sender) >= claim3dModelCost, "not enough"); FSToken.transferFrom(msg.sender, address(this), claim3dModelCost); claimedFrenz3d[tokenId] = true; numberOf3dFrenz[tokenId] = frenz3dNumber; frenz3dNumber++; } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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 v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed 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 pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128. * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable collectionSize; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. * `collectionSize_` refers to how many tokens are in the collection. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_, uint256 collectionSize_ ) { require( collectionSize_ > 0, "ERC721A: collection must have a nonzero supply" ); require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; collectionSize = collectionSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - there must be `quantity` tokens remaining unminted in the total collection. * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > collectionSize - 1) { endIndex = collectionSize - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract FrenshipToken is ERC20 { address private admin; mapping(address=>bool) private minters; uint256 maxSupply = 300000000; constructor () ERC20 ("FrenshipToken", "FST") { admin = msg.sender; } function setMaxSupply(uint256 newMaxSupply) public adminOnly{ maxSupply = newMaxSupply; } function setMinter(address _minter) public adminOnly { minters[_minter] = true; } function devMint(address to, uint256 amount) public adminOnly { uint256 totalSupply = totalSupply(); require(totalSupply + amount <= maxSupply, "reached max supply"); _mint(to, amount); } function mint(address to, uint256 amount) public { require(minters[msg.sender], "minter only"); uint256 totalSupply = totalSupply(); require(totalSupply + amount <= maxSupply, "reached max supply"); _mint(to, amount); } function burn(uint amount) external { _burn(msg.sender, amount); } function decimals() public view virtual override returns (uint8) { return 0; } modifier adminOnly() { require(admin == msg.sender, "not admin"); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
{ "optimizer": { "enabled": true, "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":"initSigner","type":"address"},{"internalType":"address","name":"initFSTAddress","type":"address"},{"internalType":"uint256","name":"maxAmountPerMint","type":"uint256"},{"internalType":"uint256","name":"maxCollection","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","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":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"FSTClaimNumber","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlist","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"},{"internalType":"string","name":"ticket","type":"string"},{"internalType":"uint64","name":"exipreTime","type":"uint64"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"allowlistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"uint256","name":"tokenId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claim3DFrenz","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim3dModelCost","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimCooldown","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedFrenz3d","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"ticket","type":"string"},{"internalType":"address","name":"to","type":"address"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"frenz3dNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"frenzRarities","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRandomResult","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRewardCountOfOwner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"},{"internalType":"uint8","name":"allowAmount","type":"uint8"},{"internalType":"string","name":"ticket","type":"string"},{"internalType":"uint64","name":"exipreTime","type":"uint64"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"numberOf3dFrenz","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleEndDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"randomResults","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recycleToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint8[]","name":"mintAmount","type":"uint8[]"}],"name":"setAllowlist","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":"string","name":"newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newCost","type":"uint16"}],"name":"setClaim3dModelCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cooldown","type":"uint256"}],"name":"setClaimCooldown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8[]","name":"rarities","type":"uint8[]"},{"internalType":"uint8[]","name":"amounts","type":"uint8[]"}],"name":"setClaimNumbers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enable","type":"bool"}],"name":"setEnableClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newDate","type":"uint256"}],"name":"setPresaleEndDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint8[]","name":"ratities","type":"uint8[]"}],"name":"setRarities","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setUnrevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenClaimedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unrevealURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMinted","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60c06040526000808055600755670214e8348c4f0000600d556201518060105560016011556012805461ffff19166101901790553480156200004057600080fd5b50604051620047b2380380620047b2833981016040819052620000639162000408565b6040518060400160405280600d81526020016c2d37b7a33932b73d2a37b5b2b760991b8152506040518060400160405280600381526020016216919560ea1b815250838360008111620001145760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060448201526d6e6f6e7a65726f20737570706c7960901b60648201526084015b60405180910390fd5b60008211620001765760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b60648201526084016200010b565b83516200018b90600190602087019062000345565b508251620001a190600290602086019062000345565b5060a09190915260805250620001b9905033620002f3565b6001600955601280546301000000600160b81b03191663010000006001600160a01b038781169190910291909117909155600a80546001600160a01b031916918516919091179055620002e960176020527ff36d6bc9642eb6fb6ee9998b09ce990566df752ab06e11f8de7ab633bbd57b8f805460ff199081166008179091557fc52df653038b2ad477d8d97f1ddd63cfd138847b628ad8a7b89c109c3f8782ca8054821660091790557fd8b2bced50346359af71f91110b86cdf684b6ab1c6ca64a7583c044d5c24de5c80548216600a1790557f68052a315987b3c92fe6f7df77391bc5a825cabe4950d34f36f8f4e8a6abcb4d80548216600b17905560056000527f70266c3d5b8b2375fded59c72bf5f0d74bbb12fdf645a4c8630629f0191fb3178054909116600c179055565b505050506200048d565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620003539062000450565b90600052602060002090601f016020900481019282620003775760008555620003c2565b82601f106200039257805160ff1916838001178555620003c2565b82800160010185558215620003c2579182015b82811115620003c2578251825591602001919060010190620003a5565b50620003d0929150620003d4565b5090565b5b80821115620003d05760008155600101620003d5565b80516001600160a01b03811681146200040357600080fd5b919050565b600080600080608085870312156200041f57600080fd5b6200042a85620003eb565b93506200043a60208601620003eb565b6040860151606090960151949790965092505050565b600181811c908216806200046557607f821691505b602082108114156200048757634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516142dc620004d660003960008181611f9c01528181612c7d01528181612ca70152613408015260008181610bdd015281816116b90152611ffd01526142dc6000f3fe6080604052600436106103755760003560e01c8063715018a6116101d1578063b62d40b211610102578063d7224ba0116100a0578063ec0c3af31161006f578063ec0c3af314610aaa578063f08404dc14610ac0578063f2fde38b14610af0578063fdea365714610b1057600080fd5b8063d7224ba0146109fb578063e50cb75a14610a11578063e73d0d5e14610a31578063e985e9c514610a6157600080fd5b8063ba4ad5ac116100dc578063ba4ad5ac14610988578063c87b56dd1461099b578063c8e203ae146109bb578063d39a840a146109db57600080fd5b8063b62d40b21461091a578063b80d69c314610948578063b88d4fde1461096857600080fd5b806399ec52e81161016f578063a22cb46511610149578063a22cb46514610887578063a6a11bb1146108a7578063a7cd52cb146108bd578063aea2035f146108ed57600080fd5b806399ec52e81461083b5780639a2e27f81461085b578063a035b1fe1461087157600080fd5b806391b7f5ed116101ab57806391b7f5ed1461079857806395d89b41146107b857806397bc411c146107cd57806398a8cffe146107ed57600080fd5b8063715018a6146107455780638be86c741461075a5780638da5cb5b1461077a57600080fd5b8063379607f5116102ab57806355f804b3116102495780636352211e116102235780636352211e146106d05780636c0360eb146106f05780636c19e7831461070557806370a082311461072557600080fd5b806355f804b31461064e57806359c9eb901461066e5780635c4e05041461068e57600080fd5b80633e27353a116102855780633e27353a146105c157806342842e0e146105ee578063468f98f61461060e5780634f6ccce71461062e57600080fd5b8063379607f51461056c57806338551d381461058c5780633ccfd60b146105b957600080fd5b806311e632e911610318578063219be114116102f2578063219be114146104df57806323b872dd1461050c57806328dae6e31461052c5780632f745c591461054c57600080fd5b806311e632e91461048b57806318160ddd146104ab5780632126ea81146104ca57600080fd5b806306fdde031161035457806306fdde03146103f1578063081812fc14610413578063087c4bb11461044b578063095ea7b31461046b57600080fd5b80622465851461037a57806301ffc9a71461039c578063069756a0146103d1575b600080fd5b34801561038657600080fd5b5061039a610395366004613c4e565b610b26565b005b3480156103a857600080fd5b506103bc6103b7366004613b05565b610d72565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b5061039a6103ec366004613a60565b610ddf565b3480156103fd57600080fd5b50610406610f02565b6040516103c89190613f13565b34801561041f57600080fd5b5061043361042e366004613ba4565b610f94565b6040516001600160a01b0390911681526020016103c8565b34801561045757600080fd5b5061039a610466366004613a60565b61101f565b34801561047757600080fd5b5061039a610486366004613a36565b611143565b34801561049757600080fd5b5061039a6104a6366004613acb565b61125b565b3480156104b757600080fd5b506000545b6040519081526020016103c8565b3480156104d657600080fd5b506104066112a5565b3480156104eb57600080fd5b506104bc6104fa366004613ba4565b60136020526000908152604090205481565b34801561051857600080fd5b5061039a6105273660046138e8565b611333565b34801561053857600080fd5b506012546103bc9062010000900460ff1681565b34801561055857600080fd5b506104bc610567366004613a36565b61133e565b34801561057857600080fd5b5061039a610587366004613ba4565b6114ab565b34801561059857600080fd5b506104bc6105a7366004613ba4565b60166020526000908152604090205481565b61039a6115c5565b3480156105cd57600080fd5b506104bc6105dc366004613ba4565b60186020526000908152604090205481565b3480156105fa57600080fd5b5061039a6106093660046138e8565b611647565b34801561061a57600080fd5b5061039a610629366004613bd6565b611662565b34801561063a57600080fd5b506104bc610649366004613ba4565b611719565b34801561065a57600080fd5b5061039a610669366004613b3f565b61177b565b34801561067a57600080fd5b5061039a610689366004613ba4565b6117b1565b34801561069a57600080fd5b506106be6106a9366004613c33565b60176020526000908152604090205460ff1681565b60405160ff90911681526020016103c8565b3480156106dc57600080fd5b506104336106eb366004613ba4565b6117e0565b3480156106fc57600080fd5b506104066117f2565b34801561071157600080fd5b5061039a61072036600461389a565b6117ff565b34801561073157600080fd5b506104bc61074036600461389a565b611855565b34801561075157600080fd5b5061039a6118e6565b34801561076657600080fd5b5061039a610775366004613a36565b61191c565b34801561078657600080fd5b506008546001600160a01b0316610433565b3480156107a457600080fd5b5061039a6107b3366004613ba4565b6119cc565b3480156107c457600080fd5b506104066119fb565b3480156107d957600080fd5b5061039a6107e8366004613b3f565b611a0a565b3480156107f957600080fd5b5061082361080836600461389a565b6019602052600090815260409020546001600160401b031681565b6040516001600160401b0390911681526020016103c8565b34801561084757600080fd5b5061039a610856366004613ba4565b611a40565b34801561086757600080fd5b506104bc600e5481565b34801561087d57600080fd5b506104bc600d5481565b34801561089357600080fd5b5061039a6108a23660046139ff565b611cba565b3480156108b357600080fd5b506104bc600f5481565b3480156108c957600080fd5b506106be6108d836600461389a565b601a6020526000908152604090205460ff1681565b3480156108f957600080fd5b506104bc610908366004613ba4565b60009081526013602052604090205490565b34801561092657600080fd5b506012546109359061ffff1681565b60405161ffff90911681526020016103c8565b34801561095457600080fd5b506104bc610963366004613ba4565b611d7f565b34801561097457600080fd5b5061039a610983366004613924565b611eca565b61039a610996366004613ce1565b611f03565b3480156109a757600080fd5b506104066109b6366004613ba4565b612392565b3480156109c757600080fd5b5061039a6109d6366004613a60565b6124f9565b3480156109e757600080fd5b5061039a6109f6366004613ba4565b61260a565b348015610a0757600080fd5b506104bc60075481565b348015610a1d57600080fd5b5061039a610a2c366004613b80565b612639565b348015610a3d57600080fd5b506106be610a4c366004613ba4565b60146020526000908152604090205460ff1681565b348015610a6d57600080fd5b506103bc610a7c3660046138b5565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610ab657600080fd5b506104bc60115481565b348015610acc57600080fd5b506103bc610adb366004613ba4565b60156020526000908152604090205460ff1681565b348015610afc57600080fd5b5061039a610b0b36600461389a565b61267b565b348015610b1c57600080fd5b506104bc60105481565b60026009541415610b525760405162461bcd60e51b8152600401610b4990614036565b60405180910390fd5b6002600955323314610b765760405162461bcd60e51b8152600401610b4990613f4b565b336000908152601a602052604090205460ff80881691161015610bdb5760405162461bcd60e51b815260206004820152601f60248201527f6e6f7420656c696769626c6520666f7220616c6c6f776c697374206d696e74006044820152606401610b49565b7f00000000000000000000000000000000000000000000000000000000000000008660ff16610c0960005490565b610c139190614098565b1115610c315760405162461bcd60e51b8152600401610b4990613f82565b610ca73386868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f89018190048102820181019092528781528993509150879087908190840183828082843760009201919091525061271392505050565b610cc35760405162461bcd60e51b8152600401610b4990613f26565b826001600160401b0316421115610d0d5760405162461bcd60e51b815260206004820152600e60248201526d1d1a58dad95d08195e1c1a5c995960921b6044820152606401610b49565b336000908152601a602052604081208054889290610d2f90849060ff16614144565b92506101000a81548160ff021916908360ff1602179055506000610d5260005490565b9050610d648760ff1682888833612783565b505060016009555050505050565b60006001600160e01b031982166380ac58cd60e01b1480610da357506001600160e01b03198216635b5e139f60e01b145b80610dbe57506001600160e01b0319821663780e9d6360e01b145b80610dd957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b03163314610e095760405162461bcd60e51b8152600401610b4990613fae565b828114610e675760405162461bcd60e51b815260206004820152602660248201527f726172697469657320646f6573206e6f74206d6174636820616d6f756e7473206044820152650d8cadccee8d60d31b6064820152608401610b49565b60005b83811015610efb57828282818110610e8457610e84614256565b9050602002016020810190610e999190613c33565b60176000878785818110610eaf57610eaf614256565b9050602002016020810190610ec49190613c33565b60ff90811682526020820192909252604001600020805460ff19169290911691909117905580610ef3816141e5565b915050610e6a565b5050505050565b606060018054610f11906141aa565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3d906141aa565b8015610f8a5780601f10610f5f57610100808354040283529160200191610f8a565b820191906000526020600020905b815481529060010190602001808311610f6d57829003601f168201915b5050505050905090565b6000610fa1826000541190565b6110035760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608401610b49565b506000908152600560205260409020546001600160a01b031690565b6008546001600160a01b031633146110495760405162461bcd60e51b8152600401610b4990613fae565b8281146110a95760405162461bcd60e51b815260206004820152602860248201527f61646472657373657320646f6573206e6f74206d61746368206e756d536c6f746044820152670e640d8cadccee8d60c31b6064820152608401610b49565b60005b83811015610efb578282828181106110c6576110c6614256565b90506020020160208101906110db9190613c33565b601a60008787858181106110f1576110f1614256565b9050602002016020810190611106919061389a565b6001600160a01b031681526020810191909152604001600020805460ff191660ff929092169190911790558061113b816141e5565b9150506110ac565b600061114e826117e0565b9050806001600160a01b0316836001600160a01b031614156111bd5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610b49565b336001600160a01b03821614806111d957506111d98133610a7c565b61124b5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610b49565b61125683838361281d565b505050565b6008546001600160a01b031633146112855760405162461bcd60e51b8152600401610b4990613fae565b60128054911515620100000262ff00001990921691909117905542600f55565b600c80546112b2906141aa565b80601f01602080910402602001604051908101604052809291908181526020018280546112de906141aa565b801561132b5780601f106113005761010080835404028352916020019161132b565b820191906000526020600020905b81548152906001019060200180831161130e57829003601f168201915b505050505081565b611256838383612879565b600061134983611855565b82106113a25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610b49565b600080549080805b8381101561144b576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156113fc57805192505b876001600160a01b0316836001600160a01b03161415611438578684141561142a57509350610dd992505050565b83611434816141e5565b9450505b5080611443816141e5565b9150506113aa565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610b49565b3233146114ca5760405162461bcd60e51b8152600401610b4990613f4b565b600260095414156114ed5760405162461bcd60e51b8152600401610b4990614036565b600260095560125462010000900460ff1661153c5760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd081cdd185c9d1959081e595d608a1b6044820152606401610b49565b600061154782611d7f565b600a546040516340c10f1960e01b8152336004820152602481018390529192506001600160a01b0316906340c10f1990604401600060405180830381600087803b15801561159457600080fd5b505af11580156115a8573d6000803e3d6000fd5b505050600092835250506018602052604090204290556001600955565b6008546001600160a01b031633146115ef5760405162461bcd60e51b8152600401610b4990613fae565b604051600090339047908381818185875af1925050503d8060008114611631576040519150601f19603f3d011682016040523d82523d6000602084013e611636565b606091505b505090508061164457600080fd5b50565b61125683838360405180602001604052806000815250611eca565b600260095414156116855760405162461bcd60e51b8152600401610b4990614036565b60026009556008546001600160a01b031633146116b45760405162461bcd60e51b8152600401610b4990613fae565b6000547f00000000000000000000000000000000000000000000000000000000000000006116e28683614098565b11156117005760405162461bcd60e51b8152600401610b4990613f82565b61170d8582868686612783565b50506001600955505050565b6000805482106117775760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610b49565b5090565b6008546001600160a01b031633146117a55760405162461bcd60e51b8152600401610b4990613fae565b611256600b8383613741565b6008546001600160a01b031633146117db5760405162461bcd60e51b8152600401610b4990613fae565b601055565b60006117eb82612bfb565b5192915050565b600b80546112b2906141aa565b6008546001600160a01b031633146118295760405162461bcd60e51b8152600401610b4990613fae565b601280546001600160a01b039092166301000000026301000000600160b81b0319909216919091179055565b60006001600160a01b0382166118c15760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610b49565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b031633146119105760405162461bcd60e51b8152600401610b4990613fae565b61191a6000612da4565b565b6008546001600160a01b031633146119465760405162461bcd60e51b8152600401610b4990613fae565b600a5460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb90604401602060405180830381600087803b15801561199457600080fd5b505af11580156119a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112569190613ae8565b6008546001600160a01b031633146119f65760405162461bcd60e51b8152600401610b4990613fae565b600d55565b606060028054610f11906141aa565b6008546001600160a01b03163314611a345760405162461bcd60e51b8152600401610b4990613fae565b611256600c8383613741565b323314611a5f5760405162461bcd60e51b8152600401610b4990613f4b565b60026009541415611a825760405162461bcd60e51b8152600401610b4990614036565b600260095560008181526015602052604090205460ff1615611ad95760405162461bcd60e51b815260206004820152601060248201526f0cd9081b5bd9195b0818db185a5b595960821b6044820152606401610b49565b33611ae3826117e0565b6001600160a01b031614611b255760405162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b6044820152606401610b49565b601254600a546040516370a0823160e01b815233600482015261ffff909216916001600160a01b03909116906370a082319060240160206040518083038186803b158015611b7257600080fd5b505afa158015611b86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611baa9190613bbd565b1015611be55760405162461bcd60e51b815260206004820152600a6024820152690dcdee840cadcdeeaced60b31b6044820152606401610b49565b600a546012546040516323b872dd60e01b815233600482015230602482015261ffff90911660448201526001600160a01b03909116906323b872dd90606401602060405180830381600087803b158015611c3e57600080fd5b505af1158015611c52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c769190613ae8565b506000818152601560209081526040808320805460ff191660011790556011805460169093529083208290559091611cad836141e5565b9091555050600160095550565b6001600160a01b038216331415611d135760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b49565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600033611d8b836117e0565b6001600160a01b031614611dd35760405162461bcd60e51b815260206004820152600f60248201526e3737ba103a37b5b2b71037bbb732b960891b6044820152606401610b49565b60008281526014602052604090205460ff16611e205760405162461bcd60e51b815260206004820152600c60248201526b1b9bdd081c995d99585b195960a21b6044820152606401610b49565b60008281526018602052604090205480611e395750600f545b601054600090611e49834261412d565b611e5391906140d2565b905060008111611e955760405162461bcd60e51b815260206004820152600d60248201526c1b9bc81c995dd85c99081e595d609a1b6044820152606401610b49565b60008481526014602090815260408083205460ff9081168452601790925290912054611ec29116826140e6565b949350505050565b611ed5848484612879565b611ee184848484612df6565b611efd5760405162461bcd60e51b8152600401610b4990613fe3565b50505050565b323314611f225760405162461bcd60e51b8152600401610b4990613f4b565b60026009541415611f455760405162461bcd60e51b8152600401610b4990614036565b600260095560ff8716611f9a5760405162461bcd60e51b815260206004820152601b60248201527f596f752063616e20676574206e6f206665776572207468616e203100000000006044820152606401610b49565b7f00000000000000000000000000000000000000000000000000000000000000008760ff161115611ff85760405162461bcd60e51b81526020600482015260086024820152670e8dede40daeac6d60c31b6044820152606401610b49565b6000547f000000000000000000000000000000000000000000000000000000000000000061202960ff8a1683614098565b11156120475760405162461bcd60e51b8152600401610b4990613f82565b601b8686604051612059929190613e68565b9081526040519081900360200190205460ff16156120a75760405162461bcd60e51b815260206004820152600b60248201526a1d1a58dad95d081d5cd95960aa1b6044820152606401610b49565b836001600160401b03164211156120f15760405162461bcd60e51b815260206004820152600e60248201526d1d1a58dad95d08195e1c1a5c995960921b6044820152606401610b49565b600e544211612259573360009081526019602052604090205460ff80891691612125918b16906001600160401b03166140b0565b6001600160401b031611156121715760405162461bcd60e51b815260206004820152601260248201527132bc31b2b2b21036b4b73a10373ab6b132b960711b6044820152606401610b49565b6121e93387878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a018190048102820181019092528881528d93508a9250908990899081908401838280828437600092019190915250612f0092505050565b6122055760405162461bcd60e51b8152600401610b4990613f26565b336000908152601960205260408120805460ff8b1692906122309084906001600160401b03166140b0565b92506101000a8154816001600160401b0302191690836001600160401b031602179055506122eb565b6122cf3387878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a018190048102820181019092528881528a93509150889088908190840183828082843760009201919091525061271392505050565b6122eb5760405162461bcd60e51b8152600401610b4990613f26565b600d546000906122fe9060ff8b16612f73565b90508034101561233e5760405162461bcd60e51b815260206004820152600b60248201526a6e6f7420656e6f7567682160a81b6044820152606401610b49565b6001601b8888604051612352929190613e68565b908152604051908190036020019020805491151560ff1990921691909117905561238260ff8a1683898933612783565b5050600160095550505050505050565b606061239f826000541190565b6123f55760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656044820152603760f91b6064820152608401610b49565b60008281526014602052604090205460ff1661249d57600c8054612418906141aa565b80601f0160208091040260200160405190810160405280929190818152602001828054612444906141aa565b80156124915780601f1061246657610100808354040283529160200191612491565b820191906000526020600020905b81548152906001019060200180831161247457829003601f168201915b50505050509050919050565b60006124a7612f7f565b905060008151116124c757604051806020016040528060008152506124f2565b806124d184612f8e565b6040516020016124e2929190613e97565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146125235760405162461bcd60e51b8152600401610b4990613fae565b8281146125825760405162461bcd60e51b815260206004820152602760248201527f746f6b656e49647320646f6573206e6f74206d61746368207261746974696573604482015266040d8cadccee8d60cb1b6064820152608401610b49565b60005b83811015610efb5782828281811061259f5761259f614256565b90506020020160208101906125b49190613c33565b601460008787858181106125ca576125ca614256565b90506020020135815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508080612602906141e5565b915050612585565b6008546001600160a01b031633146126345760405162461bcd60e51b8152600401610b4990613fae565b600e55565b6008546001600160a01b031633146126635760405162461bcd60e51b8152600401610b4990613fae565b6012805461ffff191661ffff92909216919091179055565b6008546001600160a01b031633146126a55760405162461bcd60e51b8152600401610b4990613fae565b6001600160a01b03811661270a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b49565b61164481612da4565b60008085858560405160200161272b93929190613db1565b604051602081830303815290604052805190602001209050600061274e8261308b565b601254909150630100000090046001600160a01b031661276e82866130de565b6001600160a01b031614979650505050505050565b61278d8186613102565b60006127998686614098565b90505b8085101561281557846509184e72a0008585836127ba60014361412d565b40426040516020016127d0959493929190613e78565b6040516020818303038152906040528051906020012060001c6127f39190614200565b600091825260136020526040909120558461280d816141e5565b95505061279c565b505050505050565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061288482612bfb565b80519091506000906001600160a01b0316336001600160a01b031614806128bb5750336128b084610f94565b6001600160a01b0316145b806128cd575081516128cd9033610a7c565b9050806129375760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b49565b846001600160a01b031682600001516001600160a01b0316146129ab5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610b49565b6001600160a01b038416612a0f5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610b49565b612a1f600084846000015161281d565b6001600160a01b0385166000908152600460205260408120805460019290612a519084906001600160801b0316614105565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612a9d9185911661406d565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612b24846001614098565b6000818152600360205260409020549091506001600160a01b0316612bb557612b4e816000541190565b15612bb55760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612815565b6040805180820190915260008082526020820152612c1a826000541190565b612c795760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610b49565b60007f00000000000000000000000000000000000000000000000000000000000000008310612cda57612ccc7f00000000000000000000000000000000000000000000000000000000000000008461412d565b612cd7906001614098565b90505b825b818110612d43576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215612d3057949350505050565b5080612d3b81614193565b915050612cdc565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610b49565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b15612ef857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612e3a903390899088908890600401613ed6565b602060405180830381600087803b158015612e5457600080fd5b505af1925050508015612e84575060408051601f3d908101601f19168201909252612e8191810190613b22565b60015b612ede573d808015612eb2576040519150601f19603f3d011682016040523d82523d6000602084013e612eb7565b606091505b508051612ed65760405162461bcd60e51b8152600401610b4990613fe3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ec2565b506001611ec2565b60008086868686604051602001612f1a9493929190613e02565b6040516020818303038152906040528051906020012090506000612f3d8261308b565b601254909150630100000090046001600160a01b0316612f5d82866130de565b6001600160a01b03161498975050505050505050565b60006124f282846140e6565b6060600b8054610f11906141aa565b606081612fb25750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612fdc5780612fc6816141e5565b9150612fd59050600a836140d2565b9150612fb6565b6000816001600160401b03811115612ff657612ff661426c565b6040519080825280601f01601f191660200182016040528015613020576020820181803683370190505b5090505b8415611ec25761303560018361412d565b9150613042600a86614200565b61304d906030614098565b60f81b81838151811061306257613062614256565b60200101906001600160f81b031916908160001a905350613084600a866140d2565b9450613024565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b60008060006130ed8585613120565b915091506130fa81613190565b509392505050565b61311c82826040518060200160405280600081525061334b565b5050565b6000808251604114156131575760208301516040840151606085015160001a61314b87828585613625565b94509450505050613189565b8251604014156131815760208301516040840151613176868383613712565b935093505050613189565b506000905060025b9250929050565b60008160048111156131a4576131a4614240565b14156131ad5750565b60018160048111156131c1576131c1614240565b141561320f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b49565b600281600481111561322357613223614240565b14156132715760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b49565b600381600481111561328557613285614240565b14156132de5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b49565b60048160048111156132f2576132f2614240565b14156116445760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b49565b6000546001600160a01b0384166133ae5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b49565b6133b9816000541190565b156134065760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610b49565b7f00000000000000000000000000000000000000000000000000000000000000008311156134815760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610b49565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906134dd90879061406d565b6001600160801b031681526020018583602001516134fb919061406d565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b8581101561361a5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46135de6000888488612df6565b6135fa5760405162461bcd60e51b8152600401610b4990613fe3565b81613604816141e5565b9250508080613612906141e5565b915050613591565b506000819055612815565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561365c5750600090506003613709565b8460ff16601b1415801561367457508460ff16601c14155b156136855750600090506004613709565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156136d9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661370257600060019250925050613709565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161373387828885613625565b935093505050935093915050565b82805461374d906141aa565b90600052602060002090601f01602090048101928261376f57600085556137b5565b82601f106137885782800160ff198235161785556137b5565b828001600101855582156137b5579182015b828111156137b557823582559160200191906001019061379a565b506117779291505b8082111561177757600081556001016137bd565b80356001600160a01b03811681146137e857600080fd5b919050565b60008083601f8401126137ff57600080fd5b5081356001600160401b0381111561381657600080fd5b6020830191508360208260051b850101111561318957600080fd5b60008083601f84011261384357600080fd5b5081356001600160401b0381111561385a57600080fd5b60208301915083602082850101111561318957600080fd5b80356001600160401b03811681146137e857600080fd5b803560ff811681146137e857600080fd5b6000602082840312156138ac57600080fd5b6124f2826137d1565b600080604083850312156138c857600080fd5b6138d1836137d1565b91506138df602084016137d1565b90509250929050565b6000806000606084860312156138fd57600080fd5b613906846137d1565b9250613914602085016137d1565b9150604084013590509250925092565b6000806000806080858703121561393a57600080fd5b613943856137d1565b9350613951602086016137d1565b92506040850135915060608501356001600160401b038082111561397457600080fd5b818701915087601f83011261398857600080fd5b81358181111561399a5761399a61426c565b604051601f8201601f19908116603f011681019083821181831017156139c2576139c261426c565b816040528281528a60208487010111156139db57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215613a1257600080fd5b613a1b836137d1565b91506020830135613a2b81614282565b809150509250929050565b60008060408385031215613a4957600080fd5b613a52836137d1565b946020939093013593505050565b60008060008060408587031215613a7657600080fd5b84356001600160401b0380821115613a8d57600080fd5b613a99888389016137ed565b90965094506020870135915080821115613ab257600080fd5b50613abf878288016137ed565b95989497509550505050565b600060208284031215613add57600080fd5b81356124f281614282565b600060208284031215613afa57600080fd5b81516124f281614282565b600060208284031215613b1757600080fd5b81356124f281614290565b600060208284031215613b3457600080fd5b81516124f281614290565b60008060208385031215613b5257600080fd5b82356001600160401b03811115613b6857600080fd5b613b7485828601613831565b90969095509350505050565b600060208284031215613b9257600080fd5b813561ffff811681146124f257600080fd5b600060208284031215613bb657600080fd5b5035919050565b600060208284031215613bcf57600080fd5b5051919050565b60008060008060608587031215613bec57600080fd5b8435935060208501356001600160401b03811115613c0957600080fd5b613c1587828801613831565b9094509250613c289050604086016137d1565b905092959194509250565b600060208284031215613c4557600080fd5b6124f282613889565b60008060008060008060808789031215613c6757600080fd5b613c7087613889565b955060208701356001600160401b0380821115613c8c57600080fd5b613c988a838b01613831565b9097509550859150613cac60408a01613872565b94506060890135915080821115613cc257600080fd5b50613ccf89828a01613831565b979a9699509497509295939492505050565b600080600080600080600060a0888a031215613cfc57600080fd5b613d0588613889565b9650613d1360208901613889565b955060408801356001600160401b0380821115613d2f57600080fd5b613d3b8b838c01613831565b9097509550859150613d4f60608b01613872565b945060808a0135915080821115613d6557600080fd5b50613d728a828b01613831565b989b979a50959850939692959293505050565b60008151808452613d9d816020860160208601614167565b601f01601f19169290920160200192915050565b6bffffffffffffffffffffffff198460601b16815260008351613ddb816014850160208801614167565b60c09390931b6001600160c01b03191660149290930191820192909252601c019392505050565b6bffffffffffffffffffffffff198560601b16815260008451613e2c816014850160208901614167565b60f89490941b6001600160f81b0319166014929094019182019390935260c09190911b6001600160c01b0319166015820152601d019392505050565b8183823760009101908152919050565b8486823790930191825260208201526040810191909152606001919050565b60008351613ea9818460208801614167565b835190830190613ebd818360208801614167565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613f0990830184613d85565b9695505050505050565b6020815260006124f26020830184613d85565b6020808252600b908201526a185d5d1a0819985a5b195960aa1b604082015260600190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b60208082526012908201527172656163686564206d617820737570706c7960701b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60006001600160801b0380831681851680830382111561408f5761408f614214565b01949350505050565b600082198211156140ab576140ab614214565b500190565b60006001600160401b0380831681851680830382111561408f5761408f614214565b6000826140e1576140e161422a565b500490565b600081600019048311821515161561410057614100614214565b500290565b60006001600160801b038381169083168181101561412557614125614214565b039392505050565b60008282101561413f5761413f614214565b500390565b600060ff821660ff84168082101561415e5761415e614214565b90039392505050565b60005b8381101561418257818101518382015260200161416a565b83811115611efd5750506000910152565b6000816141a2576141a2614214565b506000190190565b600181811c908216806141be57607f821691505b602082108114156141df57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156141f9576141f9614214565b5060010190565b60008261420f5761420f61422a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461164457600080fd5b6001600160e01b03198116811461164457600080fdfea26469706673582212207b88e1b6e16ded7417298fbaa8baeac0d6a5533e73d7c2e5c59c3330bce5bd3164736f6c6343000807003300000000000000000000000050d0256fd209ba7866abc37f57ee507a6b51dcdb0000000000000000000000001f5c8f58d92854a50ce505cf5a52616b12bda01e00000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000001a0a
Deployed Bytecode
0x6080604052600436106103755760003560e01c8063715018a6116101d1578063b62d40b211610102578063d7224ba0116100a0578063ec0c3af31161006f578063ec0c3af314610aaa578063f08404dc14610ac0578063f2fde38b14610af0578063fdea365714610b1057600080fd5b8063d7224ba0146109fb578063e50cb75a14610a11578063e73d0d5e14610a31578063e985e9c514610a6157600080fd5b8063ba4ad5ac116100dc578063ba4ad5ac14610988578063c87b56dd1461099b578063c8e203ae146109bb578063d39a840a146109db57600080fd5b8063b62d40b21461091a578063b80d69c314610948578063b88d4fde1461096857600080fd5b806399ec52e81161016f578063a22cb46511610149578063a22cb46514610887578063a6a11bb1146108a7578063a7cd52cb146108bd578063aea2035f146108ed57600080fd5b806399ec52e81461083b5780639a2e27f81461085b578063a035b1fe1461087157600080fd5b806391b7f5ed116101ab57806391b7f5ed1461079857806395d89b41146107b857806397bc411c146107cd57806398a8cffe146107ed57600080fd5b8063715018a6146107455780638be86c741461075a5780638da5cb5b1461077a57600080fd5b8063379607f5116102ab57806355f804b3116102495780636352211e116102235780636352211e146106d05780636c0360eb146106f05780636c19e7831461070557806370a082311461072557600080fd5b806355f804b31461064e57806359c9eb901461066e5780635c4e05041461068e57600080fd5b80633e27353a116102855780633e27353a146105c157806342842e0e146105ee578063468f98f61461060e5780634f6ccce71461062e57600080fd5b8063379607f51461056c57806338551d381461058c5780633ccfd60b146105b957600080fd5b806311e632e911610318578063219be114116102f2578063219be114146104df57806323b872dd1461050c57806328dae6e31461052c5780632f745c591461054c57600080fd5b806311e632e91461048b57806318160ddd146104ab5780632126ea81146104ca57600080fd5b806306fdde031161035457806306fdde03146103f1578063081812fc14610413578063087c4bb11461044b578063095ea7b31461046b57600080fd5b80622465851461037a57806301ffc9a71461039c578063069756a0146103d1575b600080fd5b34801561038657600080fd5b5061039a610395366004613c4e565b610b26565b005b3480156103a857600080fd5b506103bc6103b7366004613b05565b610d72565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b5061039a6103ec366004613a60565b610ddf565b3480156103fd57600080fd5b50610406610f02565b6040516103c89190613f13565b34801561041f57600080fd5b5061043361042e366004613ba4565b610f94565b6040516001600160a01b0390911681526020016103c8565b34801561045757600080fd5b5061039a610466366004613a60565b61101f565b34801561047757600080fd5b5061039a610486366004613a36565b611143565b34801561049757600080fd5b5061039a6104a6366004613acb565b61125b565b3480156104b757600080fd5b506000545b6040519081526020016103c8565b3480156104d657600080fd5b506104066112a5565b3480156104eb57600080fd5b506104bc6104fa366004613ba4565b60136020526000908152604090205481565b34801561051857600080fd5b5061039a6105273660046138e8565b611333565b34801561053857600080fd5b506012546103bc9062010000900460ff1681565b34801561055857600080fd5b506104bc610567366004613a36565b61133e565b34801561057857600080fd5b5061039a610587366004613ba4565b6114ab565b34801561059857600080fd5b506104bc6105a7366004613ba4565b60166020526000908152604090205481565b61039a6115c5565b3480156105cd57600080fd5b506104bc6105dc366004613ba4565b60186020526000908152604090205481565b3480156105fa57600080fd5b5061039a6106093660046138e8565b611647565b34801561061a57600080fd5b5061039a610629366004613bd6565b611662565b34801561063a57600080fd5b506104bc610649366004613ba4565b611719565b34801561065a57600080fd5b5061039a610669366004613b3f565b61177b565b34801561067a57600080fd5b5061039a610689366004613ba4565b6117b1565b34801561069a57600080fd5b506106be6106a9366004613c33565b60176020526000908152604090205460ff1681565b60405160ff90911681526020016103c8565b3480156106dc57600080fd5b506104336106eb366004613ba4565b6117e0565b3480156106fc57600080fd5b506104066117f2565b34801561071157600080fd5b5061039a61072036600461389a565b6117ff565b34801561073157600080fd5b506104bc61074036600461389a565b611855565b34801561075157600080fd5b5061039a6118e6565b34801561076657600080fd5b5061039a610775366004613a36565b61191c565b34801561078657600080fd5b506008546001600160a01b0316610433565b3480156107a457600080fd5b5061039a6107b3366004613ba4565b6119cc565b3480156107c457600080fd5b506104066119fb565b3480156107d957600080fd5b5061039a6107e8366004613b3f565b611a0a565b3480156107f957600080fd5b5061082361080836600461389a565b6019602052600090815260409020546001600160401b031681565b6040516001600160401b0390911681526020016103c8565b34801561084757600080fd5b5061039a610856366004613ba4565b611a40565b34801561086757600080fd5b506104bc600e5481565b34801561087d57600080fd5b506104bc600d5481565b34801561089357600080fd5b5061039a6108a23660046139ff565b611cba565b3480156108b357600080fd5b506104bc600f5481565b3480156108c957600080fd5b506106be6108d836600461389a565b601a6020526000908152604090205460ff1681565b3480156108f957600080fd5b506104bc610908366004613ba4565b60009081526013602052604090205490565b34801561092657600080fd5b506012546109359061ffff1681565b60405161ffff90911681526020016103c8565b34801561095457600080fd5b506104bc610963366004613ba4565b611d7f565b34801561097457600080fd5b5061039a610983366004613924565b611eca565b61039a610996366004613ce1565b611f03565b3480156109a757600080fd5b506104066109b6366004613ba4565b612392565b3480156109c757600080fd5b5061039a6109d6366004613a60565b6124f9565b3480156109e757600080fd5b5061039a6109f6366004613ba4565b61260a565b348015610a0757600080fd5b506104bc60075481565b348015610a1d57600080fd5b5061039a610a2c366004613b80565b612639565b348015610a3d57600080fd5b506106be610a4c366004613ba4565b60146020526000908152604090205460ff1681565b348015610a6d57600080fd5b506103bc610a7c3660046138b5565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610ab657600080fd5b506104bc60115481565b348015610acc57600080fd5b506103bc610adb366004613ba4565b60156020526000908152604090205460ff1681565b348015610afc57600080fd5b5061039a610b0b36600461389a565b61267b565b348015610b1c57600080fd5b506104bc60105481565b60026009541415610b525760405162461bcd60e51b8152600401610b4990614036565b60405180910390fd5b6002600955323314610b765760405162461bcd60e51b8152600401610b4990613f4b565b336000908152601a602052604090205460ff80881691161015610bdb5760405162461bcd60e51b815260206004820152601f60248201527f6e6f7420656c696769626c6520666f7220616c6c6f776c697374206d696e74006044820152606401610b49565b7f0000000000000000000000000000000000000000000000000000000000001a0a8660ff16610c0960005490565b610c139190614098565b1115610c315760405162461bcd60e51b8152600401610b4990613f82565b610ca73386868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f89018190048102820181019092528781528993509150879087908190840183828082843760009201919091525061271392505050565b610cc35760405162461bcd60e51b8152600401610b4990613f26565b826001600160401b0316421115610d0d5760405162461bcd60e51b815260206004820152600e60248201526d1d1a58dad95d08195e1c1a5c995960921b6044820152606401610b49565b336000908152601a602052604081208054889290610d2f90849060ff16614144565b92506101000a81548160ff021916908360ff1602179055506000610d5260005490565b9050610d648760ff1682888833612783565b505060016009555050505050565b60006001600160e01b031982166380ac58cd60e01b1480610da357506001600160e01b03198216635b5e139f60e01b145b80610dbe57506001600160e01b0319821663780e9d6360e01b145b80610dd957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b03163314610e095760405162461bcd60e51b8152600401610b4990613fae565b828114610e675760405162461bcd60e51b815260206004820152602660248201527f726172697469657320646f6573206e6f74206d6174636820616d6f756e7473206044820152650d8cadccee8d60d31b6064820152608401610b49565b60005b83811015610efb57828282818110610e8457610e84614256565b9050602002016020810190610e999190613c33565b60176000878785818110610eaf57610eaf614256565b9050602002016020810190610ec49190613c33565b60ff90811682526020820192909252604001600020805460ff19169290911691909117905580610ef3816141e5565b915050610e6a565b5050505050565b606060018054610f11906141aa565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3d906141aa565b8015610f8a5780601f10610f5f57610100808354040283529160200191610f8a565b820191906000526020600020905b815481529060010190602001808311610f6d57829003601f168201915b5050505050905090565b6000610fa1826000541190565b6110035760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608401610b49565b506000908152600560205260409020546001600160a01b031690565b6008546001600160a01b031633146110495760405162461bcd60e51b8152600401610b4990613fae565b8281146110a95760405162461bcd60e51b815260206004820152602860248201527f61646472657373657320646f6573206e6f74206d61746368206e756d536c6f746044820152670e640d8cadccee8d60c31b6064820152608401610b49565b60005b83811015610efb578282828181106110c6576110c6614256565b90506020020160208101906110db9190613c33565b601a60008787858181106110f1576110f1614256565b9050602002016020810190611106919061389a565b6001600160a01b031681526020810191909152604001600020805460ff191660ff929092169190911790558061113b816141e5565b9150506110ac565b600061114e826117e0565b9050806001600160a01b0316836001600160a01b031614156111bd5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610b49565b336001600160a01b03821614806111d957506111d98133610a7c565b61124b5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610b49565b61125683838361281d565b505050565b6008546001600160a01b031633146112855760405162461bcd60e51b8152600401610b4990613fae565b60128054911515620100000262ff00001990921691909117905542600f55565b600c80546112b2906141aa565b80601f01602080910402602001604051908101604052809291908181526020018280546112de906141aa565b801561132b5780601f106113005761010080835404028352916020019161132b565b820191906000526020600020905b81548152906001019060200180831161130e57829003601f168201915b505050505081565b611256838383612879565b600061134983611855565b82106113a25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610b49565b600080549080805b8381101561144b576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156113fc57805192505b876001600160a01b0316836001600160a01b03161415611438578684141561142a57509350610dd992505050565b83611434816141e5565b9450505b5080611443816141e5565b9150506113aa565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610b49565b3233146114ca5760405162461bcd60e51b8152600401610b4990613f4b565b600260095414156114ed5760405162461bcd60e51b8152600401610b4990614036565b600260095560125462010000900460ff1661153c5760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd081cdd185c9d1959081e595d608a1b6044820152606401610b49565b600061154782611d7f565b600a546040516340c10f1960e01b8152336004820152602481018390529192506001600160a01b0316906340c10f1990604401600060405180830381600087803b15801561159457600080fd5b505af11580156115a8573d6000803e3d6000fd5b505050600092835250506018602052604090204290556001600955565b6008546001600160a01b031633146115ef5760405162461bcd60e51b8152600401610b4990613fae565b604051600090339047908381818185875af1925050503d8060008114611631576040519150601f19603f3d011682016040523d82523d6000602084013e611636565b606091505b505090508061164457600080fd5b50565b61125683838360405180602001604052806000815250611eca565b600260095414156116855760405162461bcd60e51b8152600401610b4990614036565b60026009556008546001600160a01b031633146116b45760405162461bcd60e51b8152600401610b4990613fae565b6000547f0000000000000000000000000000000000000000000000000000000000001a0a6116e28683614098565b11156117005760405162461bcd60e51b8152600401610b4990613f82565b61170d8582868686612783565b50506001600955505050565b6000805482106117775760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610b49565b5090565b6008546001600160a01b031633146117a55760405162461bcd60e51b8152600401610b4990613fae565b611256600b8383613741565b6008546001600160a01b031633146117db5760405162461bcd60e51b8152600401610b4990613fae565b601055565b60006117eb82612bfb565b5192915050565b600b80546112b2906141aa565b6008546001600160a01b031633146118295760405162461bcd60e51b8152600401610b4990613fae565b601280546001600160a01b039092166301000000026301000000600160b81b0319909216919091179055565b60006001600160a01b0382166118c15760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610b49565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b031633146119105760405162461bcd60e51b8152600401610b4990613fae565b61191a6000612da4565b565b6008546001600160a01b031633146119465760405162461bcd60e51b8152600401610b4990613fae565b600a5460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb90604401602060405180830381600087803b15801561199457600080fd5b505af11580156119a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112569190613ae8565b6008546001600160a01b031633146119f65760405162461bcd60e51b8152600401610b4990613fae565b600d55565b606060028054610f11906141aa565b6008546001600160a01b03163314611a345760405162461bcd60e51b8152600401610b4990613fae565b611256600c8383613741565b323314611a5f5760405162461bcd60e51b8152600401610b4990613f4b565b60026009541415611a825760405162461bcd60e51b8152600401610b4990614036565b600260095560008181526015602052604090205460ff1615611ad95760405162461bcd60e51b815260206004820152601060248201526f0cd9081b5bd9195b0818db185a5b595960821b6044820152606401610b49565b33611ae3826117e0565b6001600160a01b031614611b255760405162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b6044820152606401610b49565b601254600a546040516370a0823160e01b815233600482015261ffff909216916001600160a01b03909116906370a082319060240160206040518083038186803b158015611b7257600080fd5b505afa158015611b86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611baa9190613bbd565b1015611be55760405162461bcd60e51b815260206004820152600a6024820152690dcdee840cadcdeeaced60b31b6044820152606401610b49565b600a546012546040516323b872dd60e01b815233600482015230602482015261ffff90911660448201526001600160a01b03909116906323b872dd90606401602060405180830381600087803b158015611c3e57600080fd5b505af1158015611c52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c769190613ae8565b506000818152601560209081526040808320805460ff191660011790556011805460169093529083208290559091611cad836141e5565b9091555050600160095550565b6001600160a01b038216331415611d135760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b49565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600033611d8b836117e0565b6001600160a01b031614611dd35760405162461bcd60e51b815260206004820152600f60248201526e3737ba103a37b5b2b71037bbb732b960891b6044820152606401610b49565b60008281526014602052604090205460ff16611e205760405162461bcd60e51b815260206004820152600c60248201526b1b9bdd081c995d99585b195960a21b6044820152606401610b49565b60008281526018602052604090205480611e395750600f545b601054600090611e49834261412d565b611e5391906140d2565b905060008111611e955760405162461bcd60e51b815260206004820152600d60248201526c1b9bc81c995dd85c99081e595d609a1b6044820152606401610b49565b60008481526014602090815260408083205460ff9081168452601790925290912054611ec29116826140e6565b949350505050565b611ed5848484612879565b611ee184848484612df6565b611efd5760405162461bcd60e51b8152600401610b4990613fe3565b50505050565b323314611f225760405162461bcd60e51b8152600401610b4990613f4b565b60026009541415611f455760405162461bcd60e51b8152600401610b4990614036565b600260095560ff8716611f9a5760405162461bcd60e51b815260206004820152601b60248201527f596f752063616e20676574206e6f206665776572207468616e203100000000006044820152606401610b49565b7f00000000000000000000000000000000000000000000000000000000000000058760ff161115611ff85760405162461bcd60e51b81526020600482015260086024820152670e8dede40daeac6d60c31b6044820152606401610b49565b6000547f0000000000000000000000000000000000000000000000000000000000001a0a61202960ff8a1683614098565b11156120475760405162461bcd60e51b8152600401610b4990613f82565b601b8686604051612059929190613e68565b9081526040519081900360200190205460ff16156120a75760405162461bcd60e51b815260206004820152600b60248201526a1d1a58dad95d081d5cd95960aa1b6044820152606401610b49565b836001600160401b03164211156120f15760405162461bcd60e51b815260206004820152600e60248201526d1d1a58dad95d08195e1c1a5c995960921b6044820152606401610b49565b600e544211612259573360009081526019602052604090205460ff80891691612125918b16906001600160401b03166140b0565b6001600160401b031611156121715760405162461bcd60e51b815260206004820152601260248201527132bc31b2b2b21036b4b73a10373ab6b132b960711b6044820152606401610b49565b6121e93387878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a018190048102820181019092528881528d93508a9250908990899081908401838280828437600092019190915250612f0092505050565b6122055760405162461bcd60e51b8152600401610b4990613f26565b336000908152601960205260408120805460ff8b1692906122309084906001600160401b03166140b0565b92506101000a8154816001600160401b0302191690836001600160401b031602179055506122eb565b6122cf3387878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a018190048102820181019092528881528a93509150889088908190840183828082843760009201919091525061271392505050565b6122eb5760405162461bcd60e51b8152600401610b4990613f26565b600d546000906122fe9060ff8b16612f73565b90508034101561233e5760405162461bcd60e51b815260206004820152600b60248201526a6e6f7420656e6f7567682160a81b6044820152606401610b49565b6001601b8888604051612352929190613e68565b908152604051908190036020019020805491151560ff1990921691909117905561238260ff8a1683898933612783565b5050600160095550505050505050565b606061239f826000541190565b6123f55760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656044820152603760f91b6064820152608401610b49565b60008281526014602052604090205460ff1661249d57600c8054612418906141aa565b80601f0160208091040260200160405190810160405280929190818152602001828054612444906141aa565b80156124915780601f1061246657610100808354040283529160200191612491565b820191906000526020600020905b81548152906001019060200180831161247457829003601f168201915b50505050509050919050565b60006124a7612f7f565b905060008151116124c757604051806020016040528060008152506124f2565b806124d184612f8e565b6040516020016124e2929190613e97565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146125235760405162461bcd60e51b8152600401610b4990613fae565b8281146125825760405162461bcd60e51b815260206004820152602760248201527f746f6b656e49647320646f6573206e6f74206d61746368207261746974696573604482015266040d8cadccee8d60cb1b6064820152608401610b49565b60005b83811015610efb5782828281811061259f5761259f614256565b90506020020160208101906125b49190613c33565b601460008787858181106125ca576125ca614256565b90506020020135815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508080612602906141e5565b915050612585565b6008546001600160a01b031633146126345760405162461bcd60e51b8152600401610b4990613fae565b600e55565b6008546001600160a01b031633146126635760405162461bcd60e51b8152600401610b4990613fae565b6012805461ffff191661ffff92909216919091179055565b6008546001600160a01b031633146126a55760405162461bcd60e51b8152600401610b4990613fae565b6001600160a01b03811661270a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b49565b61164481612da4565b60008085858560405160200161272b93929190613db1565b604051602081830303815290604052805190602001209050600061274e8261308b565b601254909150630100000090046001600160a01b031661276e82866130de565b6001600160a01b031614979650505050505050565b61278d8186613102565b60006127998686614098565b90505b8085101561281557846509184e72a0008585836127ba60014361412d565b40426040516020016127d0959493929190613e78565b6040516020818303038152906040528051906020012060001c6127f39190614200565b600091825260136020526040909120558461280d816141e5565b95505061279c565b505050505050565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061288482612bfb565b80519091506000906001600160a01b0316336001600160a01b031614806128bb5750336128b084610f94565b6001600160a01b0316145b806128cd575081516128cd9033610a7c565b9050806129375760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b49565b846001600160a01b031682600001516001600160a01b0316146129ab5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610b49565b6001600160a01b038416612a0f5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610b49565b612a1f600084846000015161281d565b6001600160a01b0385166000908152600460205260408120805460019290612a519084906001600160801b0316614105565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612a9d9185911661406d565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612b24846001614098565b6000818152600360205260409020549091506001600160a01b0316612bb557612b4e816000541190565b15612bb55760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612815565b6040805180820190915260008082526020820152612c1a826000541190565b612c795760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610b49565b60007f00000000000000000000000000000000000000000000000000000000000000058310612cda57612ccc7f00000000000000000000000000000000000000000000000000000000000000058461412d565b612cd7906001614098565b90505b825b818110612d43576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215612d3057949350505050565b5080612d3b81614193565b915050612cdc565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610b49565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b15612ef857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612e3a903390899088908890600401613ed6565b602060405180830381600087803b158015612e5457600080fd5b505af1925050508015612e84575060408051601f3d908101601f19168201909252612e8191810190613b22565b60015b612ede573d808015612eb2576040519150601f19603f3d011682016040523d82523d6000602084013e612eb7565b606091505b508051612ed65760405162461bcd60e51b8152600401610b4990613fe3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ec2565b506001611ec2565b60008086868686604051602001612f1a9493929190613e02565b6040516020818303038152906040528051906020012090506000612f3d8261308b565b601254909150630100000090046001600160a01b0316612f5d82866130de565b6001600160a01b03161498975050505050505050565b60006124f282846140e6565b6060600b8054610f11906141aa565b606081612fb25750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612fdc5780612fc6816141e5565b9150612fd59050600a836140d2565b9150612fb6565b6000816001600160401b03811115612ff657612ff661426c565b6040519080825280601f01601f191660200182016040528015613020576020820181803683370190505b5090505b8415611ec25761303560018361412d565b9150613042600a86614200565b61304d906030614098565b60f81b81838151811061306257613062614256565b60200101906001600160f81b031916908160001a905350613084600a866140d2565b9450613024565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b60008060006130ed8585613120565b915091506130fa81613190565b509392505050565b61311c82826040518060200160405280600081525061334b565b5050565b6000808251604114156131575760208301516040840151606085015160001a61314b87828585613625565b94509450505050613189565b8251604014156131815760208301516040840151613176868383613712565b935093505050613189565b506000905060025b9250929050565b60008160048111156131a4576131a4614240565b14156131ad5750565b60018160048111156131c1576131c1614240565b141561320f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b49565b600281600481111561322357613223614240565b14156132715760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b49565b600381600481111561328557613285614240565b14156132de5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b49565b60048160048111156132f2576132f2614240565b14156116445760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b49565b6000546001600160a01b0384166133ae5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b49565b6133b9816000541190565b156134065760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610b49565b7f00000000000000000000000000000000000000000000000000000000000000058311156134815760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610b49565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906134dd90879061406d565b6001600160801b031681526020018583602001516134fb919061406d565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b8581101561361a5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46135de6000888488612df6565b6135fa5760405162461bcd60e51b8152600401610b4990613fe3565b81613604816141e5565b9250508080613612906141e5565b915050613591565b506000819055612815565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561365c5750600090506003613709565b8460ff16601b1415801561367457508460ff16601c14155b156136855750600090506004613709565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156136d9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661370257600060019250925050613709565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161373387828885613625565b935093505050935093915050565b82805461374d906141aa565b90600052602060002090601f01602090048101928261376f57600085556137b5565b82601f106137885782800160ff198235161785556137b5565b828001600101855582156137b5579182015b828111156137b557823582559160200191906001019061379a565b506117779291505b8082111561177757600081556001016137bd565b80356001600160a01b03811681146137e857600080fd5b919050565b60008083601f8401126137ff57600080fd5b5081356001600160401b0381111561381657600080fd5b6020830191508360208260051b850101111561318957600080fd5b60008083601f84011261384357600080fd5b5081356001600160401b0381111561385a57600080fd5b60208301915083602082850101111561318957600080fd5b80356001600160401b03811681146137e857600080fd5b803560ff811681146137e857600080fd5b6000602082840312156138ac57600080fd5b6124f2826137d1565b600080604083850312156138c857600080fd5b6138d1836137d1565b91506138df602084016137d1565b90509250929050565b6000806000606084860312156138fd57600080fd5b613906846137d1565b9250613914602085016137d1565b9150604084013590509250925092565b6000806000806080858703121561393a57600080fd5b613943856137d1565b9350613951602086016137d1565b92506040850135915060608501356001600160401b038082111561397457600080fd5b818701915087601f83011261398857600080fd5b81358181111561399a5761399a61426c565b604051601f8201601f19908116603f011681019083821181831017156139c2576139c261426c565b816040528281528a60208487010111156139db57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215613a1257600080fd5b613a1b836137d1565b91506020830135613a2b81614282565b809150509250929050565b60008060408385031215613a4957600080fd5b613a52836137d1565b946020939093013593505050565b60008060008060408587031215613a7657600080fd5b84356001600160401b0380821115613a8d57600080fd5b613a99888389016137ed565b90965094506020870135915080821115613ab257600080fd5b50613abf878288016137ed565b95989497509550505050565b600060208284031215613add57600080fd5b81356124f281614282565b600060208284031215613afa57600080fd5b81516124f281614282565b600060208284031215613b1757600080fd5b81356124f281614290565b600060208284031215613b3457600080fd5b81516124f281614290565b60008060208385031215613b5257600080fd5b82356001600160401b03811115613b6857600080fd5b613b7485828601613831565b90969095509350505050565b600060208284031215613b9257600080fd5b813561ffff811681146124f257600080fd5b600060208284031215613bb657600080fd5b5035919050565b600060208284031215613bcf57600080fd5b5051919050565b60008060008060608587031215613bec57600080fd5b8435935060208501356001600160401b03811115613c0957600080fd5b613c1587828801613831565b9094509250613c289050604086016137d1565b905092959194509250565b600060208284031215613c4557600080fd5b6124f282613889565b60008060008060008060808789031215613c6757600080fd5b613c7087613889565b955060208701356001600160401b0380821115613c8c57600080fd5b613c988a838b01613831565b9097509550859150613cac60408a01613872565b94506060890135915080821115613cc257600080fd5b50613ccf89828a01613831565b979a9699509497509295939492505050565b600080600080600080600060a0888a031215613cfc57600080fd5b613d0588613889565b9650613d1360208901613889565b955060408801356001600160401b0380821115613d2f57600080fd5b613d3b8b838c01613831565b9097509550859150613d4f60608b01613872565b945060808a0135915080821115613d6557600080fd5b50613d728a828b01613831565b989b979a50959850939692959293505050565b60008151808452613d9d816020860160208601614167565b601f01601f19169290920160200192915050565b6bffffffffffffffffffffffff198460601b16815260008351613ddb816014850160208801614167565b60c09390931b6001600160c01b03191660149290930191820192909252601c019392505050565b6bffffffffffffffffffffffff198560601b16815260008451613e2c816014850160208901614167565b60f89490941b6001600160f81b0319166014929094019182019390935260c09190911b6001600160c01b0319166015820152601d019392505050565b8183823760009101908152919050565b8486823790930191825260208201526040810191909152606001919050565b60008351613ea9818460208801614167565b835190830190613ebd818360208801614167565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613f0990830184613d85565b9695505050505050565b6020815260006124f26020830184613d85565b6020808252600b908201526a185d5d1a0819985a5b195960aa1b604082015260600190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b60208082526012908201527172656163686564206d617820737570706c7960701b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60006001600160801b0380831681851680830382111561408f5761408f614214565b01949350505050565b600082198211156140ab576140ab614214565b500190565b60006001600160401b0380831681851680830382111561408f5761408f614214565b6000826140e1576140e161422a565b500490565b600081600019048311821515161561410057614100614214565b500290565b60006001600160801b038381169083168181101561412557614125614214565b039392505050565b60008282101561413f5761413f614214565b500390565b600060ff821660ff84168082101561415e5761415e614214565b90039392505050565b60005b8381101561418257818101518382015260200161416a565b83811115611efd5750506000910152565b6000816141a2576141a2614214565b506000190190565b600181811c908216806141be57607f821691505b602082108114156141df57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156141f9576141f9614214565b5060010190565b60008261420f5761420f61422a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461164457600080fd5b6001600160e01b03198116811461164457600080fdfea26469706673582212207b88e1b6e16ded7417298fbaa8baeac0d6a5533e73d7c2e5c59c3330bce5bd3164736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000050d0256fd209ba7866abc37f57ee507a6b51dcdb0000000000000000000000001f5c8f58d92854a50ce505cf5a52616b12bda01e00000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000001a0a
-----Decoded View---------------
Arg [0] : initSigner (address): 0x50d0256fD209Ba7866AbC37F57Ee507a6B51DCdb
Arg [1] : initFSTAddress (address): 0x1f5C8F58d92854a50Ce505CF5A52616B12BDa01E
Arg [2] : maxAmountPerMint (uint256): 5
Arg [3] : maxCollection (uint256): 6666
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000050d0256fd209ba7866abc37f57ee507a6b51dcdb
Arg [1] : 0000000000000000000000001f5c8f58d92854a50ce505cf5a52616b12bda01e
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 0000000000000000000000000000000000000000000000000000000000001a0a
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.