Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
386 SEED
Holders
152
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SEEDLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PreservedSeed
Compiler Version
v0.8.16+commit.07a7930e
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // // , // ,▓ ,╓╗#▓▓▓╬╬╗@╦ , // ██⌐ ,╔▓▓╣╬▓▓╬╬╬╬╣╬╬▓▒ ▄██ // ▐██▌ ╔╬@╬╣▓▓╬╣▓▓▓╬╣╬╬╣▓▓╬▌ ▓███ // ▐███ ╔╬╬╬╬╬╣▓▓╣▓▓▓╬▓▓▓▓╣▓▓▓╬╬ ▄████ // ███▓ ╒╣╣╬╬╬╬╬╣█╣▓▓▓╬▓▓╣▓╣▓▓▓▓▓▌ █████ // ╙████ @╣╬╬╬╬╬╬╣▓▓▓▓▓▓▓▓╣█▓▓▓▓▓▓▌ ▄▓████▀ // ╟████▄ "╗, ▓╬╬╬╬╬╬╬╣▓█▓█▓▓▓▓▓█▓▓▓▓▓▓▀ ▄██████` // ▀████▓ ╙▀▄ ,▓▓▓▓▓▓▓╬╬█▓█▓█▓▓▓██▓▓▓█▓╙ ,▄▓██████▀ // ╙█████▓, ╙█▓╬╬╣▓╬▓█▓╬███▓█▓██▓▓██▀ ,▄████████╨ // ,╔εσφφφφφMεε╦▓▓█████▄ ╫▓╬╬╬╣╣█▓█▓▓▓▓███████▀ ▄▓█████████▀ // @╬╬▓φφφφφφφ░░░░░░╙╙╚╚╩╬╬╬▀╗, ╣▓╬╣╣╬▓▓▓╬╬╬╬╬╬╬▀▀▀╬╔≡▀▓▓███████▀▀ // └╫╬╬▒φφφφφ╦φφφ░░▒▒▒╠╬▓▒╚φ▒▒▒╠▓▓╣╬╬╬╣╣▓▓╨╚╬▒░░φ╣╬▌φ╦╦▒░░╙╙╚╙╚╩▒▒▒δφφ≥╔╓, // ╘╬╬╬▒░░░φφφφφφ╗╣╬▒▒╩╠▒╣▒▒╬╬▓▓╬╬╠╠╬╣▓▓▓▒φδ▓▓▒φ░░░░▒╗▄φ░╙╙╚╚#φφφ░;░░░░╙╚╬╬▓ε // ║╬╬▄φφφφ5░╙╫╬▒▄╗▒φ░▒▒▒▓▓╬╬╠╠╠╬╣╬▓▓▌5φ╙╚▒╙╚▒▒╩╢╩╚φφ░░╙╙êφφφ░░╙╚╚▒▒╣╬▀╨ // └╣╬╬"`"╚▒▒φ▒╙╙╠╫╬╦φê░╫▓╬╬╬╬╠╬╬╬╬▓▓▌╚φ╣▓▒░░╙╣▒φ╦▒5φ╥░╙Σφ╦░░░░▒▒╣▒╣╬╝ // ║╬╣▌▒▒░░φφδ░▒▓▓╬╬╬╬╬╬╬╣╬▓▓▌░φ░╙φ░╙δφ░╚╚╠▒▒╦▒╙Σ╦▄▒╚╣▓╣╝╝╨ // ╝╬╣╣╬╣▒╩╣╣▓╣╬╬╬╬╣╣╬╬╣▓▓▓▓▄╬▒▒▄░▒▒░╟╣▒╚╚╣╬╬"╣╬╣ ╙ // ╙ ╟▓╬╬╬╬╬╣╣╬▓▓████╜ ╙╝⌐└╙ ╙▀▀ └▀╜ // ▀███▓▓▓███████╨└ // ╙██████████ // m▓▓ └ └ ╙▄ // `Å▐ j█▀≈ // // ▄═╗▄m╗╕▓█▌ ═▄▄══▄▀█▌ ▄▄ÆW▄ j█▌ ▐█▌ // ╙ ╫█▌ └╟█▌Æ█▄ ▄▓▀█µ ██ ▄└▐█▌ ▄█▀▄,%█▌'██ ¥∩▄█▀▓,▄▓▄▓█ ██─ ╙ ▄▄▌a▄█▄█▐█▌,▄▀%▄ // ╫█▌ ╟█▌j██▐██▀▀▀ ██¬▀ ▐█▌╟█▌ ██ ██▄╙█▄▌▐██▀▀▀╞█▌ ██⌐╙██▀▐█▌ ██ ▐█▌╙████ // *╝▀▀⌐ ╝▀▀ª▀▀ ╙▀▀▀└ ═▀▀═ ╝▀▀ ▀▀4▀└ ▀┘ ╚▀ ╙▀▀▀─╧▀▀⌐ ╙▀W╝▀ ╝▀▀∞▀▀═ ╝▀▀╜▀═╝▀ // // Preserved seeds smart contract created by Ryan Meyers for The Flower Girls // Twitter: @FlowerGirlsNFT Web: https://flowergirlsnft.com // // Contract allows minting of semi-fungible Polygon seeds as non-fungible art on Ethereum // // Generosity attracts generosity. // // The world will be saved by beauty. // // pragma solidity ^0.8.16; import "IERC2981.sol"; import "draft-EIP712.sol"; import "ERC721.sol"; import "Ownable.sol"; import "ECDSA.sol"; import "Strings.sol"; interface NFTInterface { function balanceOf(address account) external view returns (uint256); } contract PreservedSeed is IERC2981, EIP712, ERC721, Ownable { struct MintKey { uint32 seed_id; address wallet; uint256 cost; uint256 expires; } struct MintKey9 { uint32 seed_id_0; uint32 seed_id_1; uint32 seed_id_2; uint32 seed_id_3; uint32 seed_id_4; uint32 seed_id_5; uint32 seed_id_6; uint32 seed_id_7; uint32 seed_id_8; address wallet; uint256 cost; uint256 expires; } address private FG_CONTRACT; bytes32 private constant MINTKEY_TYPE_HASH = keccak256("MintKey(uint32 seed_id,address wallet,uint256 cost,uint256 expires)"); bytes32 private constant MINTKEY_MULTI_TYPE_HASH = keccak256("MintKey9(uint32 seed_id_0,uint32 seed_id_1,uint32 seed_id_2,uint32 seed_id_3,uint32 seed_id_4,uint32 seed_id_5,uint32 seed_id_6,uint32 seed_id_7,uint32 seed_id_8,address wallet,uint256 cost,uint256 expires)"); uint16 private _totalSupply; uint16 private _royaltyBPS; address private _signer; address private _treasury; string private _baseTokenURI; uint256 private _currentPrice; uint256 private _reserved; mapping(address => uint256) private _numPreserved; constructor( string memory name, string memory symbol, address signer, address treasury, uint16 royaltyBPS, string memory baseTokenURI, address fgs_contract ) ERC721(name, symbol) EIP712(name, "1") { _signer = signer; _treasury = treasury; _royaltyBPS = royaltyBPS; _baseTokenURI = baseTokenURI; _reserved = 100; FG_CONTRACT = fgs_contract; } function pricePer() public view returns (uint256) { // Seeds from the reserves don't count against the totalSupply for pricing return 10000000000000000 + (128000000000000 * (_totalSupply - (100 - _reserved))); } function totalCost(address wallet, uint256 number) public view returns (uint256) { require(number > 0, "Cannot calculate cost for zero"); uint256 fgs = max(NFTInterface(FG_CONTRACT).balanceOf(wallet), NFTInterface(FG_CONTRACT).balanceOf(msg.sender)) ; unchecked{ if(fgs > _numPreserved[wallet]){ if(fgs > _numPreserved[wallet] + number){ return 10000000000000000 * number; } return (10000000000000000 * ((_numPreserved[wallet] + number) - fgs)) + (pricePer() * (number - ((_numPreserved[wallet] + number) - fgs))); } return number * pricePer(); } } function preserveSeed(bytes calldata signature, MintKey calldata mintKey) external payable { require(msg.value >= mintKey.cost, "SENT AMOUNT TOO LOW"); if (mintKey.expires < block.timestamp){ require(mintKey.cost >= totalCost(mintKey.wallet, 1), "EXPIRED MINT KEY"); } require(!hasSeedBeenPreserved(mintKey.seed_id), "SEED ALREADY MINTED"); _safeMint(mintKey.wallet, mintKey.seed_id); _totalSupply++; require(verify(signature, mintKey), "INVALID MINT KEY"); _numPreserved[mintKey.wallet]++; if(mintKey.wallet != msg.sender) { _numPreserved[msg.sender]++; } require(payable(_treasury).send(msg.value)); } function preserveSeeds(bytes calldata signature, MintKey9 calldata mintKey) external payable { // check validity of signed message require(msg.value >= mintKey.cost, "SENT AMOUNT TOO LOW"); uint8 number = 0; if(mintKey.seed_id_0 > 0){ require(!hasSeedBeenPreserved(mintKey.seed_id_0), "SEED ALREADY MINTED"); _safeMint(mintKey.wallet, mintKey.seed_id_0); number++; if(mintKey.seed_id_1 > 0){ require(!hasSeedBeenPreserved(mintKey.seed_id_1), "SEED ALREADY MINTED"); _safeMint(mintKey.wallet, mintKey.seed_id_1); number++; if(mintKey.seed_id_2 > 0){ require(!hasSeedBeenPreserved(mintKey.seed_id_2), "SEED ALREADY MINTED"); _safeMint(mintKey.wallet, mintKey.seed_id_2); number++; if(mintKey.seed_id_3 > 0){ require(!hasSeedBeenPreserved(mintKey.seed_id_3), "SEED ALREADY MINTED"); _safeMint(mintKey.wallet, mintKey.seed_id_3); number++; if(mintKey.seed_id_4 > 0){ require(!hasSeedBeenPreserved(mintKey.seed_id_4), "SEED ALREADY MINTED"); _safeMint(mintKey.wallet, mintKey.seed_id_4); number++; if(mintKey.seed_id_5 > 0){ require(!hasSeedBeenPreserved(mintKey.seed_id_5), "SEED ALREADY MINTED"); _safeMint(mintKey.wallet, mintKey.seed_id_5); number++; if(mintKey.seed_id_6 > 0){ require(!hasSeedBeenPreserved(mintKey.seed_id_6), "SEED ALREADY MINTED"); _safeMint(mintKey.wallet, mintKey.seed_id_6); number++; if(mintKey.seed_id_7 > 0){ require(!hasSeedBeenPreserved(mintKey.seed_id_7), "SEED ALREADY MINTED"); _safeMint(mintKey.wallet, mintKey.seed_id_7); number++; if(mintKey.seed_id_8 > 0){ require(!hasSeedBeenPreserved(mintKey.seed_id_8), "SEED ALREADY MINTED"); _safeMint(mintKey.wallet, mintKey.seed_id_8); number++; } } } } } } } } } _totalSupply+=number; if (mintKey.expires < block.timestamp){ require(mintKey.cost >= totalCost(mintKey.wallet, number), "EXPIRED MINT KEY"); } require(verify9(signature, mintKey), "INVALID MINT KEY"); _numPreserved[mintKey.wallet]+=number; if(mintKey.wallet != msg.sender) { _numPreserved[msg.sender]+=number; } require(payable(_treasury).send(msg.value)); } function preserveReservedSeeds(uint32[] calldata seed_ids) external onlyOwner { require(seed_ids.length > 0 && seed_ids.length <= _reserved, "NOT ENOUGH RESERVES REMAINING"); for(uint256 i = 0; i < seed_ids.length; i++){ require(!hasSeedBeenPreserved(seed_ids[i]), "SEED ALREADY MINTED"); _safeMint(owner(), seed_ids[i]); _totalSupply++; } _reserved -= seed_ids.length; } function burnSeeds(uint32[] calldata seed_ids) external { for(uint256 i = 0; i < seed_ids.length; i++){ require(_isApprovedOrOwner(msg.sender, seed_ids[i]), "NOT APPROVED FOR SEED ID"); _burn(seed_ids[i]); _totalSupply--; } } function verify(bytes calldata signature, MintKey calldata mintKey) public view returns (bool) { bytes32 digest = _hashTypedDataV4( keccak256( abi.encode( MINTKEY_TYPE_HASH, mintKey.seed_id, mintKey.wallet, mintKey.cost, mintKey.expires ) ) ); return ECDSA.recover(digest, signature) == _signer; } function verify9(bytes calldata signature, MintKey9 calldata mintKey) internal view returns (bool) { bytes32 digest = _hashTypedDataV4( keccak256( abi.encode( MINTKEY_MULTI_TYPE_HASH, mintKey.seed_id_0, mintKey.seed_id_1, mintKey.seed_id_2, mintKey.seed_id_3, mintKey.seed_id_4, mintKey.seed_id_5, mintKey.seed_id_6, mintKey.seed_id_7, mintKey.seed_id_8, mintKey.wallet, mintKey.cost, mintKey.expires ) ) ); return ECDSA.recover(digest, signature) == _signer; } function hasSeedBeenPreserved(uint32 seed_id) public view returns (bool) { return _exists(seed_id); } function hasPreservedSeed(address wallet) public view returns (bool) { return _numPreserved[wallet] > 0; } function setBaseTokenURI(string calldata baseTokenURI) external onlyOwner { _baseTokenURI = baseTokenURI; } function totalSupply() public view returns (uint16) { return _totalSupply; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return string(abi.encodePacked(_baseTokenURI, Strings.toString(tokenId), ".json")); } function supportsInterface(bytes4 _interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return _interfaceId == type(IERC2981).interfaceId || super.supportsInterface(_interfaceId); } function setTreasury(address wallet) public onlyOwner { _treasury = wallet; } function setRoyaltyBPS(uint16 royaltyBPS_) public onlyOwner { _royaltyBPS = royaltyBPS_; } function royaltyInfo(uint256 /* _tokenId */, uint256 _salePrice) external view override returns (address, uint256) { return (_treasury, ((_salePrice * _royaltyBPS) / 10000)); } function withdraw() public payable { require(payable(_treasury).send(address(this).balance)); } function getChainId() external view returns (uint256) { return block.chainid; } function domainSeparator() external view returns (bytes32) { return _domainSeparatorV4(); } function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } receive() external payable { if(msg.value > 0){ require(payable(_treasury).send(msg.value)); } } fallback() external payable { if(msg.value > 0){ require(payable(_treasury).send(msg.value)); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// 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 (utils/cryptography/draft-EIP712.sol) pragma solidity ^0.8.0; import "ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "IERC721.sol"; import "IERC721Receiver.sol"; import "IERC721Metadata.sol"; import "Address.sol"; import "Context.sol"; import "Strings.sol"; import "ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // 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 Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @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 || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @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) { _requireMinted(tokenId); 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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_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 virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: 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`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * 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 ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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`. * - When `to` is zero, ``from``'s `tokenId` 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 tokenId ) 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. * - `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 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "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`. * * 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; /** * @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 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.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 (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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 /// @solidity memory-safe-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/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 (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 (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "PreservedSeed.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"treasury","type":"address"},{"internalType":"uint16","name":"royaltyBPS","type":"uint16"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"address","name":"fgs_contract","type":"address"}],"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"},{"stateMutability":"payable","type":"fallback"},{"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":[{"internalType":"uint32[]","name":"seed_ids","type":"uint32[]"}],"name":"burnSeeds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"domainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"hasPreservedSeed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"seed_id","type":"uint32"}],"name":"hasSeedBeenPreserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32[]","name":"seed_ids","type":"uint32[]"}],"name":"preserveReservedSeeds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"components":[{"internalType":"uint32","name":"seed_id","type":"uint32"},{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"uint256","name":"expires","type":"uint256"}],"internalType":"struct PreservedSeed.MintKey","name":"mintKey","type":"tuple"}],"name":"preserveSeed","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"components":[{"internalType":"uint32","name":"seed_id_0","type":"uint32"},{"internalType":"uint32","name":"seed_id_1","type":"uint32"},{"internalType":"uint32","name":"seed_id_2","type":"uint32"},{"internalType":"uint32","name":"seed_id_3","type":"uint32"},{"internalType":"uint32","name":"seed_id_4","type":"uint32"},{"internalType":"uint32","name":"seed_id_5","type":"uint32"},{"internalType":"uint32","name":"seed_id_6","type":"uint32"},{"internalType":"uint32","name":"seed_id_7","type":"uint32"},{"internalType":"uint32","name":"seed_id_8","type":"uint32"},{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"uint256","name":"expires","type":"uint256"}],"internalType":"struct PreservedSeed.MintKey9","name":"mintKey","type":"tuple"}],"name":"preserveSeeds","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"pricePer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"royaltyBPS_","type":"uint16"}],"name":"setRoyaltyBPS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"setTreasury","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"number","type":"uint256"}],"name":"totalCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":[{"internalType":"bytes","name":"signature","type":"bytes"},{"components":[{"internalType":"uint32","name":"seed_id","type":"uint32"},{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"uint256","name":"expires","type":"uint256"}],"internalType":"struct PreservedSeed.MintKey","name":"mintKey","type":"tuple"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101406040523480156200001257600080fd5b5060405162003924380380620039248339810160408190526200003591620002f2565b60408051808201825260018152603160f81b60209182015288518982012060e08190527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66101008190524660a081815285517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818701819052818801959095526060810193909352608080840192909252308382018190528651808503909201825260c09384019096528051940193909320909252919052610120528686600062000101838262000466565b50600162000110828262000466565b5050506200012d62000127620001ba60201b60201c565b620001be565b600880546001600160a01b038088166001600160a01b03199283161790925560098054928716929091169190911790556007805461ffff8516600160b01b0261ffff60b01b19909116179055600a62000187838262000466565b506064600c55600780546001600160a01b0319166001600160a01b03929092169190911790555062000532945050505050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200023857600080fd5b81516001600160401b038082111562000255576200025562000210565b604051601f8301601f19908116603f0116810190828211818310171562000280576200028062000210565b816040528381526020925086838588010111156200029d57600080fd5b600091505b83821015620002c15785820183015181830184015290820190620002a2565b600093810190920192909252949350505050565b80516001600160a01b0381168114620002ed57600080fd5b919050565b600080600080600080600060e0888a0312156200030e57600080fd5b87516001600160401b03808211156200032657600080fd5b620003348b838c0162000226565b985060208a01519150808211156200034b57600080fd5b620003598b838c0162000226565b97506200036960408b01620002d5565b96506200037960608b01620002d5565b955060808a0151915061ffff821682146200039357600080fd5b60a08a015191945080821115620003a957600080fd5b50620003b88a828b0162000226565b925050620003c960c08901620002d5565b905092959891949750929550565b600181811c90821680620003ec57607f821691505b6020821081036200040d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200046157600081815260208120601f850160051c810160208610156200043c5750805b601f850160051c820191505b818110156200045d5782815560010162000448565b5050505b505050565b81516001600160401b0381111562000482576200048262000210565b6200049a81620004938454620003d7565b8462000413565b602080601f831160018114620004d25760008415620004b95750858301515b600019600386901b1c1916600185901b1785556200045d565b600085815260208120601f198616915b828110156200050357888601518255948401946001909101908401620004e2565b5085821015620005225787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e05161010051610120516133a2620005826000396000612432015260006124810152600061245c015260006123b5015260006123df0152600061240901526133a26000f3fe6080604052600436106101f25760003560e01c80636352211e1161010d5780639875f3c7116100a0578063c87b56dd1161006f578063c87b56dd14610607578063e985e9c514610627578063f0f4426014610670578063f2fde38b14610690578063f698da25146106b057610230565b80639875f3c714610587578063a22cb465146105a7578063aeea8090146105c7578063b88d4fde146105e757610230565b806377c30627116100dc57806377c30627146105215780638da5cb5b14610534578063913300101461055257806395d89b411461057257610230565b80636352211e146104b95780636c49ec69146104d957806370a08231146104ec578063715018a61461050c57610230565b80632a55205a1161018557806342842e0e1161015457806342842e0e146104395780634e668b9c1461045957806355454fa31461047957806359419fce1461049957610230565b80632a55205a146103bf57806330176e13146103fe5780633408e4701461041e5780633ccfd60b1461043157610230565b8063095ea7b3116101c1578063095ea7b31461031957806318160ddd14610339578063194359461461036757806323b872dd1461039f57610230565b806301ffc9a71461026757806306fdde031461029c578063070a8a85146102be578063081812fc146102e157610230565b3661023057341561022e576009546040516001600160a01b03909116903480156108fc02916000818181858888f1935050505061022e57600080fd5b005b341561022e576009546040516001600160a01b03909116903480156108fc02916000818181858888f1935050505061022e57600080fd5b34801561027357600080fd5b50610287610282366004612a40565b6106c5565b60405190151581526020015b60405180910390f35b3480156102a857600080fd5b506102b16106f0565b6040516102939190612aad565b3480156102ca57600080fd5b506102d3610782565b604051908152602001610293565b3480156102ed57600080fd5b506103016102fc366004612ac0565b6107d1565b6040516001600160a01b039091168152602001610293565b34801561032557600080fd5b5061022e610334366004612af5565b6107f8565b34801561034557600080fd5b50600754600160a01b900461ffff1660405161ffff9091168152602001610293565b34801561037357600080fd5b50610287610382366004612b1f565b6001600160a01b03166000908152600d6020526040902054151590565b3480156103ab57600080fd5b5061022e6103ba366004612b3a565b610912565b3480156103cb57600080fd5b506103df6103da366004612b76565b610943565b604080516001600160a01b039093168352602083019190915201610293565b34801561040a57600080fd5b5061022e610419366004612bda565b610989565b34801561042a57600080fd5b50466102d3565b61022e61099e565b34801561044557600080fd5b5061022e610454366004612b3a565b6109d1565b34801561046557600080fd5b50610287610474366004612c1c565b6109ec565b34801561048557600080fd5b50610287610494366004612c7b565b610aef565b3480156104a557600080fd5b5061022e6104b4366004612ca1565b610b15565b3480156104c557600080fd5b506103016104d4366004612ac0565b610c7b565b61022e6104e7366004612c1c565b610cdb565b3480156104f857600080fd5b506102d3610507366004612b1f565b610f10565b34801561051857600080fd5b5061022e610f96565b61022e61052f366004612d16565b610fa8565b34801561054057600080fd5b506006546001600160a01b0316610301565b34801561055e57600080fd5b5061022e61056d366004612d69565b611644565b34801561057e57600080fd5b506102b161166e565b34801561059357600080fd5b506102d36105a2366004612af5565b61167d565b3480156105b357600080fd5b5061022e6105c2366004612d8d565b611880565b3480156105d357600080fd5b5061022e6105e2366004612ca1565b61188f565b3480156105f357600080fd5b5061022e610602366004612ddf565b61199a565b34801561061357600080fd5b506102b1610622366004612ac0565b6119cc565b34801561063357600080fd5b50610287610642366004612ebb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561067c57600080fd5b5061022e61068b366004612b1f565b611a7d565b34801561069c57600080fd5b5061022e6106ab366004612b1f565b611aa7565b3480156106bc57600080fd5b506102d3611b20565b60006001600160e01b0319821663152a902d60e11b14806106ea57506106ea82611b2a565b92915050565b6060600080546106ff90612eee565b80601f016020809104026020016040519081016040528092919081815260200182805461072b90612eee565b80156107785780601f1061074d57610100808354040283529160200191610778565b820191906000526020600020905b81548152906001019060200180831161075b57829003601f168201915b5050505050905090565b6000600c5460646107939190612f3e565b6007546107ab9190600160a01b900461ffff16612f3e565b6107bb9065746a52880000612f51565b6107cc90662386f26fc10000612f70565b905090565b60006107dc82611b7a565b506000908152600460205260409020546001600160a01b031690565b600061080382610c7b565b9050806001600160a01b0316836001600160a01b0316036108755760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061089157506108918133610642565b6109035760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161086c565b61090d8383611bd9565b505050565b61091c3382611c47565b6109385760405162461bcd60e51b815260040161086c90612f83565b61090d838383611cc6565b60095460075460009182916001600160a01b03909116906127109061097390600160b01b900461ffff1686612f51565b61097d9190612fe7565b915091505b9250929050565b610991611e62565b600a61090d828483613049565b6009546040516001600160a01b03909116904780156108fc02916000818181858888f193505050506109cf57600080fd5b565b61090d8383836040518060200160405280600081525061199a565b600080610a8a7f47e29f73d2249180ac68ca287710e43519026a49b14e0aed84991a0bf837ff5c610a206020860186612c7b565b610a306040870160208801612b1f565b60408051602081019490945263ffffffff909216838301526001600160a01b031660608381019190915290860135608083015285013560a082015260c0015b60405160208183030381529060405280519060200120611ebc565b600854604080516020601f89018190048102820181019092528781529293506001600160a01b0390911691610adc918491908990899081908401838280828437600092019190915250611f0a92505050565b6001600160a01b03161495945050505050565b63ffffffff81166000908152600260205260408120546001600160a01b031615156106ea565b610b1d611e62565b8015801590610b2e5750600c548111155b610b7a5760405162461bcd60e51b815260206004820152601d60248201527f4e4f5420454e4f5547482052455345525645532052454d41494e494e47000000604482015260640161086c565b60005b81811015610c5c57610baf838383818110610b9a57610b9a61310a565b90506020020160208101906104949190612c7b565b15610bcc5760405162461bcd60e51b815260040161086c90613120565b610c13610be16006546001600160a01b031690565b848484818110610bf357610bf361310a565b9050602002016020810190610c089190612c7b565b63ffffffff16611f2e565b60078054600160a01b900461ffff16906014610c2e8361314d565b91906101000a81548161ffff021916908361ffff160217905550508080610c549061316e565b915050610b7d565b5081819050600c6000828254610c729190612f3e565b90915550505050565b6000818152600260205260408120546001600160a01b0316806106ea5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161086c565b8060400135341015610d255760405162461bcd60e51b815260206004820152601360248201527253454e5420414d4f554e5420544f4f204c4f5760681b604482015260640161086c565b4281606001351015610d9157610d4b610d446040830160208401612b1f565b600161167d565b81604001351015610d915760405162461bcd60e51b815260206004820152601060248201526f45585049524544204d494e54204b455960801b604482015260640161086c565b610da16104946020830183612c7b565b15610dbe5760405162461bcd60e51b815260040161086c90613120565b610dde610dd16040830160208401612b1f565b610c086020840184612c7b565b60078054600160a01b900461ffff16906014610df98361314d565b91906101000a81548161ffff021916908361ffff16021790555050610e1f8383836109ec565b610e5e5760405162461bcd60e51b815260206004820152601060248201526f494e56414c4944204d494e54204b455960801b604482015260640161086c565b600d6000610e726040840160208501612b1f565b6001600160a01b0316815260208101919091526040016000908120805491610e998361316e565b90915550339050610eb06040830160208401612b1f565b6001600160a01b031614610edf57336000908152600d60205260408120805491610ed98361316e565b91905055505b6009546040516001600160a01b03909116903480156108fc02916000818181858888f1935050505061090d57600080fd5b60006001600160a01b038216610f7a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161086c565b506001600160a01b031660009081526003602052604090205490565b610f9e611e62565b6109cf6000611f48565b806101400135341015610ff35760405162461bcd60e51b815260206004820152601360248201527253454e5420414d4f554e5420544f4f204c4f5760681b604482015260640161086c565b6000806110036020840184612c7b565b63ffffffff16111561147d5761101f6104946020840184612c7b565b1561103c5760405162461bcd60e51b815260040161086c90613120565b61105e61105161014084016101208501612b1f565b610c086020850185612c7b565b8061106881613187565b91506000905061107e6040840160208501612c7b565b63ffffffff16111561147d5761109d6104946040840160208501612c7b565b156110ba5760405162461bcd60e51b815260040161086c90613120565b6110df6110cf61014084016101208501612b1f565b610c086040850160208601612c7b565b806110e981613187565b9150600090506110ff6060840160408501612c7b565b63ffffffff16111561147d5761111e6104946060840160408501612c7b565b1561113b5760405162461bcd60e51b815260040161086c90613120565b61116061115061014084016101208501612b1f565b610c086060850160408601612c7b565b8061116a81613187565b9150600090506111806080840160608501612c7b565b63ffffffff16111561147d5761119f6104946080840160608501612c7b565b156111bc5760405162461bcd60e51b815260040161086c90613120565b6111e16111d161014084016101208501612b1f565b610c086080850160608601612c7b565b806111eb81613187565b91506000905061120160a0840160808501612c7b565b63ffffffff16111561147d5761122061049460a0840160808501612c7b565b1561123d5760405162461bcd60e51b815260040161086c90613120565b61126261125261014084016101208501612b1f565b610c0860a0850160808601612c7b565b8061126c81613187565b91506000905061128260c0840160a08501612c7b565b63ffffffff16111561147d576112a161049460c0840160a08501612c7b565b156112be5760405162461bcd60e51b815260040161086c90613120565b6112e36112d361014084016101208501612b1f565b610c0860c0850160a08601612c7b565b806112ed81613187565b91506000905061130360e0840160c08501612c7b565b63ffffffff16111561147d5761132261049460e0840160c08501612c7b565b1561133f5760405162461bcd60e51b815260040161086c90613120565b61136461135461014084016101208501612b1f565b610c0860e0850160c08601612c7b565b8061136e81613187565b915060009050611385610100840160e08501612c7b565b63ffffffff16111561147d576113a5610494610100840160e08501612c7b565b156113c25760405162461bcd60e51b815260040161086c90613120565b6113e86113d761014084016101208501612b1f565b610c08610100850160e08601612c7b565b806113f281613187565b91506000905061140a61012084016101008501612c7b565b63ffffffff16111561147d5761142b61049461012084016101008501612c7b565b156114485760405162461bcd60e51b815260040161086c90613120565b61146f61145d61014084016101208501612b1f565b610c0861012085016101008601612c7b565b8061147981613187565b9150505b8060ff16600760148282829054906101000a900461ffff1661149f91906131a6565b92506101000a81548161ffff021916908361ffff16021790555042826101600135101561152b576114e46114db61014084016101208501612b1f565b8260ff1661167d565b826101400135101561152b5760405162461bcd60e51b815260206004820152601060248201526f45585049524544204d494e54204b455960801b604482015260640161086c565b611536848484611f9a565b6115755760405162461bcd60e51b815260206004820152601060248201526f494e56414c4944204d494e54204b455960801b604482015260640161086c565b60ff8116600d600061158f61014086016101208701612b1f565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546115be9190612f70565b909155503390506115d761014084016101208501612b1f565b6001600160a01b03161461160d57336000908152600d60205260408120805460ff84169290611607908490612f70565b90915550505b6009546040516001600160a01b03909116903480156108fc02916000818181858888f1935050505061163e57600080fd5b50505050565b61164c611e62565b6007805461ffff909216600160b01b0261ffff60b01b19909216919091179055565b6060600180546106ff90612eee565b60008082116116ce5760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742063616c63756c61746520636f737420666f72207a65726f0000604482015260640161086c565b6007546040516370a0823160e01b81526001600160a01b0385811660048301526000926117b3929116906370a0823190602401602060405180830381865afa15801561171e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174291906131c8565b6007546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561178a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ae91906131c8565b6120f2565b6001600160a01b0385166000908152600d602052604090205490915081111561186e576001600160a01b0384166000908152600d60205260409020548301811115611809575050662386f26fc1000081026106ea565b6001600160a01b0384166000908152600d602052604090205483018190038303611831610782565b028184600d6000886001600160a01b03166001600160a01b03168152602001908152602001600020540103662386f26fc1000002019150506106ea565b611876610782565b9092029392505050565b61188b33838361210b565b5050565b60005b8181101561090d576118d0338484848181106118b0576118b061310a565b90506020020160208101906118c59190612c7b565b63ffffffff16611c47565b61191c5760405162461bcd60e51b815260206004820152601860248201527f4e4f5420415050524f56454420464f5220534545442049440000000000000000604482015260640161086c565b6119518383838181106119315761193161310a565b90506020020160208101906119469190612c7b565b63ffffffff166121d9565b60078054600160a01b900461ffff1690601461196c836131e1565b91906101000a81548161ffff021916908361ffff1602179055505080806119929061316e565b915050611892565b6119a43383611c47565b6119c05760405162461bcd60e51b815260040161086c90612f83565b61163e84848484612274565b6000818152600260205260409020546060906001600160a01b0316611a4b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161086c565b600a611a56836122a7565b604051602001611a679291906131ff565b6040516020818303038152906040529050919050565b611a85611e62565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b611aaf611e62565b6001600160a01b038116611b145760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161086c565b611b1d81611f48565b50565b60006107cc6123a8565b60006001600160e01b031982166380ac58cd60e01b1480611b5b57506001600160e01b03198216635b5e139f60e01b145b806106ea57506301ffc9a760e01b6001600160e01b03198316146106ea565b6000818152600260205260409020546001600160a01b0316611b1d5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161086c565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c0e82610c7b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611c5383610c7b565b9050806001600160a01b0316846001600160a01b03161480611c9a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611cbe5750836001600160a01b0316611cb3846107d1565b6001600160a01b0316145b949350505050565b826001600160a01b0316611cd982610c7b565b6001600160a01b031614611d3d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161086c565b6001600160a01b038216611d9f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161086c565b611daa600082611bd9565b6001600160a01b0383166000908152600360205260408120805460019290611dd3908490612f3e565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e01908490612f70565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b031633146109cf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161086c565b60006106ea611ec96123a8565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611f1985856124cf565b91509150611f2681612511565b509392505050565b61188b8282604051806020016040528060008152506126c7565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080610a8a7fa019fdf27259c4c0c783b2deed2d17da279320bb9472369f6a2bdcdf7771ac3e611fce6020860186612c7b565b611fde6040870160208801612c7b565b611fee6060880160408901612c7b565b611ffe6080890160608a01612c7b565b61200e60a08a0160808b01612c7b565b61201e60c08b0160a08c01612c7b565b61202e60e08c0160c08d01612c7b565b61203f6101008d0160e08e01612c7b565b6120516101208e016101008f01612c7b565b8d6101200160208101906120659190612b1f565b60408051602081019c909c5263ffffffff9a8b16908c015297891660608b015295881660808a015293871660a089015291861660c0880152851660e087015284166101008601528316610120850152909116610140808401919091526001600160a01b0390911661016080840191909152908601356101808301528501356101a08201526101c001610a6f565b6000818310156121025781612104565b825b9392505050565b816001600160a01b0316836001600160a01b03160361216c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161086c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006121e482610c7b565b90506121f1600083611bd9565b6001600160a01b038116600090815260036020526040812080546001929061221a908490612f3e565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b61227f848484611cc6565b61228b848484846126fa565b61163e5760405162461bcd60e51b815260040161086c90613296565b6060816000036122ce5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122f857806122e28161316e565b91506122f19050600a83612fe7565b91506122d2565b60008167ffffffffffffffff81111561231357612313612dc9565b6040519080825280601f01601f19166020018201604052801561233d576020820181803683370190505b5090505b8415611cbe57612352600183612f3e565b915061235f600a866132e8565b61236a906030612f70565b60f81b81838151811061237f5761237f61310a565b60200101906001600160f81b031916908160001a9053506123a1600a86612fe7565b9450612341565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561240157507f000000000000000000000000000000000000000000000000000000000000000046145b1561242b57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60008082516041036125055760208301516040840151606085015160001a6124f9878285856127fb565b94509450505050610982565b50600090506002610982565b6000816004811115612525576125256132fc565b0361252d5750565b6001816004811115612541576125416132fc565b0361258e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161086c565b60028160048111156125a2576125a26132fc565b036125ef5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161086c565b6003816004811115612603576126036132fc565b0361265b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161086c565b600481600481111561266f5761266f6132fc565b03611b1d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161086c565b6126d183836128e8565b6126de60008484846126fa565b61090d5760405162461bcd60e51b815260040161086c90613296565b60006001600160a01b0384163b156127f057604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061273e903390899088908890600401613312565b6020604051808303816000875af1925050508015612779575060408051601f3d908101601f191682019092526127769181019061334f565b60015b6127d6573d8080156127a7576040519150601f19603f3d011682016040523d82523d6000602084013e6127ac565b606091505b5080516000036127ce5760405162461bcd60e51b815260040161086c90613296565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611cbe565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561283257506000905060036128df565b8460ff16601b1415801561284a57508460ff16601c14155b1561285b57506000905060046128df565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128af573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d8576000600192509250506128df565b9150600090505b94509492505050565b6001600160a01b03821661293e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161086c565b6000818152600260205260409020546001600160a01b0316156129a35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161086c565b6001600160a01b03821660009081526003602052604081208054600192906129cc908490612f70565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114611b1d57600080fd5b600060208284031215612a5257600080fd5b813561210481612a2a565b60005b83811015612a78578181015183820152602001612a60565b50506000910152565b60008151808452612a99816020860160208601612a5d565b601f01601f19169290920160200192915050565b6020815260006121046020830184612a81565b600060208284031215612ad257600080fd5b5035919050565b80356001600160a01b0381168114612af057600080fd5b919050565b60008060408385031215612b0857600080fd5b612b1183612ad9565b946020939093013593505050565b600060208284031215612b3157600080fd5b61210482612ad9565b600080600060608486031215612b4f57600080fd5b612b5884612ad9565b9250612b6660208501612ad9565b9150604084013590509250925092565b60008060408385031215612b8957600080fd5b50508035926020909101359150565b60008083601f840112612baa57600080fd5b50813567ffffffffffffffff811115612bc257600080fd5b60208301915083602082850101111561098257600080fd5b60008060208385031215612bed57600080fd5b823567ffffffffffffffff811115612c0457600080fd5b612c1085828601612b98565b90969095509350505050565b600080600083850360a0811215612c3257600080fd5b843567ffffffffffffffff811115612c4957600080fd5b612c5587828801612b98565b9095509350506080601f1982011215612c6d57600080fd5b506020840190509250925092565b600060208284031215612c8d57600080fd5b813563ffffffff8116811461210457600080fd5b60008060208385031215612cb457600080fd5b823567ffffffffffffffff80821115612ccc57600080fd5b818501915085601f830112612ce057600080fd5b813581811115612cef57600080fd5b8660208260051b8501011115612d0457600080fd5b60209290920196919550909350505050565b60008060008385036101a0811215612d2d57600080fd5b843567ffffffffffffffff811115612d4457600080fd5b612d5087828801612b98565b909550935050610180601f1982011215612c6d57600080fd5b600060208284031215612d7b57600080fd5b813561ffff8116811461210457600080fd5b60008060408385031215612da057600080fd5b612da983612ad9565b915060208301358015158114612dbe57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612df557600080fd5b612dfe85612ad9565b9350612e0c60208601612ad9565b925060408501359150606085013567ffffffffffffffff80821115612e3057600080fd5b818701915087601f830112612e4457600080fd5b813581811115612e5657612e56612dc9565b604051601f8201601f19908116603f01168101908382118183101715612e7e57612e7e612dc9565b816040528281528a6020848701011115612e9757600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612ece57600080fd5b612ed783612ad9565b9150612ee560208401612ad9565b90509250929050565b600181811c90821680612f0257607f821691505b602082108103612f2257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156106ea576106ea612f28565b6000816000190483118215151615612f6b57612f6b612f28565b500290565b808201808211156106ea576106ea612f28565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612ff657612ff6612fd1565b500490565b601f82111561090d57600081815260208120601f850160051c810160208610156130225750805b601f850160051c820191505b818110156130415782815560010161302e565b505050505050565b67ffffffffffffffff83111561306157613061612dc9565b6130758361306f8354612eee565b83612ffb565b6000601f8411600181146130a957600085156130915750838201355b600019600387901b1c1916600186901b178355613103565b600083815260209020601f19861690835b828110156130da57868501358255602094850194600190920191016130ba565b50868210156130f75760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052603260045260246000fd5b60208082526013908201527214d15151081053149150511648135253951151606a1b604082015260600190565b600061ffff80831681810361316457613164612f28565b6001019392505050565b60006001820161318057613180612f28565b5060010190565b600060ff821660ff810361319d5761319d612f28565b60010192915050565b61ffff8181168382160190808211156131c1576131c1612f28565b5092915050565b6000602082840312156131da57600080fd5b5051919050565b600061ffff8216806131f5576131f5612f28565b6000190192915050565b600080845461320d81612eee565b60018281168015613225576001811461323a57613269565b60ff1984168752821515830287019450613269565b8860005260208060002060005b858110156132605781548a820152908401908201613247565b50505082870194505b50505050835161327d818360208801612a5d565b64173539b7b760d91b9101908152600501949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826132f7576132f7612fd1565b500690565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061334590830184612a81565b9695505050505050565b60006020828403121561336157600080fd5b815161210481612a2a56fea26469706673582212208ed03fd32076a2975f705918472f29a016301e4c855449cec93ba3dc0b668b5964736f6c6343000810003300000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000005c863ba28f926d235550426f0b3e2b27786b66a500000000000000000000000071916104e789e1028079efb19a133281d4cd237a00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000001600000000000000000000000002efa07cac3395599db83035d196f2a0e7263f7660000000000000000000000000000000000000000000000000000000000000004534545440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045345454400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003468747470733a2f2f6e796674692e78797a2f6170692f76312f78702f7072657365727665645f736565642f6d657461646174612f000000000000000000000000
Deployed Bytecode
0x6080604052600436106101f25760003560e01c80636352211e1161010d5780639875f3c7116100a0578063c87b56dd1161006f578063c87b56dd14610607578063e985e9c514610627578063f0f4426014610670578063f2fde38b14610690578063f698da25146106b057610230565b80639875f3c714610587578063a22cb465146105a7578063aeea8090146105c7578063b88d4fde146105e757610230565b806377c30627116100dc57806377c30627146105215780638da5cb5b14610534578063913300101461055257806395d89b411461057257610230565b80636352211e146104b95780636c49ec69146104d957806370a08231146104ec578063715018a61461050c57610230565b80632a55205a1161018557806342842e0e1161015457806342842e0e146104395780634e668b9c1461045957806355454fa31461047957806359419fce1461049957610230565b80632a55205a146103bf57806330176e13146103fe5780633408e4701461041e5780633ccfd60b1461043157610230565b8063095ea7b3116101c1578063095ea7b31461031957806318160ddd14610339578063194359461461036757806323b872dd1461039f57610230565b806301ffc9a71461026757806306fdde031461029c578063070a8a85146102be578063081812fc146102e157610230565b3661023057341561022e576009546040516001600160a01b03909116903480156108fc02916000818181858888f1935050505061022e57600080fd5b005b341561022e576009546040516001600160a01b03909116903480156108fc02916000818181858888f1935050505061022e57600080fd5b34801561027357600080fd5b50610287610282366004612a40565b6106c5565b60405190151581526020015b60405180910390f35b3480156102a857600080fd5b506102b16106f0565b6040516102939190612aad565b3480156102ca57600080fd5b506102d3610782565b604051908152602001610293565b3480156102ed57600080fd5b506103016102fc366004612ac0565b6107d1565b6040516001600160a01b039091168152602001610293565b34801561032557600080fd5b5061022e610334366004612af5565b6107f8565b34801561034557600080fd5b50600754600160a01b900461ffff1660405161ffff9091168152602001610293565b34801561037357600080fd5b50610287610382366004612b1f565b6001600160a01b03166000908152600d6020526040902054151590565b3480156103ab57600080fd5b5061022e6103ba366004612b3a565b610912565b3480156103cb57600080fd5b506103df6103da366004612b76565b610943565b604080516001600160a01b039093168352602083019190915201610293565b34801561040a57600080fd5b5061022e610419366004612bda565b610989565b34801561042a57600080fd5b50466102d3565b61022e61099e565b34801561044557600080fd5b5061022e610454366004612b3a565b6109d1565b34801561046557600080fd5b50610287610474366004612c1c565b6109ec565b34801561048557600080fd5b50610287610494366004612c7b565b610aef565b3480156104a557600080fd5b5061022e6104b4366004612ca1565b610b15565b3480156104c557600080fd5b506103016104d4366004612ac0565b610c7b565b61022e6104e7366004612c1c565b610cdb565b3480156104f857600080fd5b506102d3610507366004612b1f565b610f10565b34801561051857600080fd5b5061022e610f96565b61022e61052f366004612d16565b610fa8565b34801561054057600080fd5b506006546001600160a01b0316610301565b34801561055e57600080fd5b5061022e61056d366004612d69565b611644565b34801561057e57600080fd5b506102b161166e565b34801561059357600080fd5b506102d36105a2366004612af5565b61167d565b3480156105b357600080fd5b5061022e6105c2366004612d8d565b611880565b3480156105d357600080fd5b5061022e6105e2366004612ca1565b61188f565b3480156105f357600080fd5b5061022e610602366004612ddf565b61199a565b34801561061357600080fd5b506102b1610622366004612ac0565b6119cc565b34801561063357600080fd5b50610287610642366004612ebb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561067c57600080fd5b5061022e61068b366004612b1f565b611a7d565b34801561069c57600080fd5b5061022e6106ab366004612b1f565b611aa7565b3480156106bc57600080fd5b506102d3611b20565b60006001600160e01b0319821663152a902d60e11b14806106ea57506106ea82611b2a565b92915050565b6060600080546106ff90612eee565b80601f016020809104026020016040519081016040528092919081815260200182805461072b90612eee565b80156107785780601f1061074d57610100808354040283529160200191610778565b820191906000526020600020905b81548152906001019060200180831161075b57829003601f168201915b5050505050905090565b6000600c5460646107939190612f3e565b6007546107ab9190600160a01b900461ffff16612f3e565b6107bb9065746a52880000612f51565b6107cc90662386f26fc10000612f70565b905090565b60006107dc82611b7a565b506000908152600460205260409020546001600160a01b031690565b600061080382610c7b565b9050806001600160a01b0316836001600160a01b0316036108755760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061089157506108918133610642565b6109035760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161086c565b61090d8383611bd9565b505050565b61091c3382611c47565b6109385760405162461bcd60e51b815260040161086c90612f83565b61090d838383611cc6565b60095460075460009182916001600160a01b03909116906127109061097390600160b01b900461ffff1686612f51565b61097d9190612fe7565b915091505b9250929050565b610991611e62565b600a61090d828483613049565b6009546040516001600160a01b03909116904780156108fc02916000818181858888f193505050506109cf57600080fd5b565b61090d8383836040518060200160405280600081525061199a565b600080610a8a7f47e29f73d2249180ac68ca287710e43519026a49b14e0aed84991a0bf837ff5c610a206020860186612c7b565b610a306040870160208801612b1f565b60408051602081019490945263ffffffff909216838301526001600160a01b031660608381019190915290860135608083015285013560a082015260c0015b60405160208183030381529060405280519060200120611ebc565b600854604080516020601f89018190048102820181019092528781529293506001600160a01b0390911691610adc918491908990899081908401838280828437600092019190915250611f0a92505050565b6001600160a01b03161495945050505050565b63ffffffff81166000908152600260205260408120546001600160a01b031615156106ea565b610b1d611e62565b8015801590610b2e5750600c548111155b610b7a5760405162461bcd60e51b815260206004820152601d60248201527f4e4f5420454e4f5547482052455345525645532052454d41494e494e47000000604482015260640161086c565b60005b81811015610c5c57610baf838383818110610b9a57610b9a61310a565b90506020020160208101906104949190612c7b565b15610bcc5760405162461bcd60e51b815260040161086c90613120565b610c13610be16006546001600160a01b031690565b848484818110610bf357610bf361310a565b9050602002016020810190610c089190612c7b565b63ffffffff16611f2e565b60078054600160a01b900461ffff16906014610c2e8361314d565b91906101000a81548161ffff021916908361ffff160217905550508080610c549061316e565b915050610b7d565b5081819050600c6000828254610c729190612f3e565b90915550505050565b6000818152600260205260408120546001600160a01b0316806106ea5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161086c565b8060400135341015610d255760405162461bcd60e51b815260206004820152601360248201527253454e5420414d4f554e5420544f4f204c4f5760681b604482015260640161086c565b4281606001351015610d9157610d4b610d446040830160208401612b1f565b600161167d565b81604001351015610d915760405162461bcd60e51b815260206004820152601060248201526f45585049524544204d494e54204b455960801b604482015260640161086c565b610da16104946020830183612c7b565b15610dbe5760405162461bcd60e51b815260040161086c90613120565b610dde610dd16040830160208401612b1f565b610c086020840184612c7b565b60078054600160a01b900461ffff16906014610df98361314d565b91906101000a81548161ffff021916908361ffff16021790555050610e1f8383836109ec565b610e5e5760405162461bcd60e51b815260206004820152601060248201526f494e56414c4944204d494e54204b455960801b604482015260640161086c565b600d6000610e726040840160208501612b1f565b6001600160a01b0316815260208101919091526040016000908120805491610e998361316e565b90915550339050610eb06040830160208401612b1f565b6001600160a01b031614610edf57336000908152600d60205260408120805491610ed98361316e565b91905055505b6009546040516001600160a01b03909116903480156108fc02916000818181858888f1935050505061090d57600080fd5b60006001600160a01b038216610f7a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161086c565b506001600160a01b031660009081526003602052604090205490565b610f9e611e62565b6109cf6000611f48565b806101400135341015610ff35760405162461bcd60e51b815260206004820152601360248201527253454e5420414d4f554e5420544f4f204c4f5760681b604482015260640161086c565b6000806110036020840184612c7b565b63ffffffff16111561147d5761101f6104946020840184612c7b565b1561103c5760405162461bcd60e51b815260040161086c90613120565b61105e61105161014084016101208501612b1f565b610c086020850185612c7b565b8061106881613187565b91506000905061107e6040840160208501612c7b565b63ffffffff16111561147d5761109d6104946040840160208501612c7b565b156110ba5760405162461bcd60e51b815260040161086c90613120565b6110df6110cf61014084016101208501612b1f565b610c086040850160208601612c7b565b806110e981613187565b9150600090506110ff6060840160408501612c7b565b63ffffffff16111561147d5761111e6104946060840160408501612c7b565b1561113b5760405162461bcd60e51b815260040161086c90613120565b61116061115061014084016101208501612b1f565b610c086060850160408601612c7b565b8061116a81613187565b9150600090506111806080840160608501612c7b565b63ffffffff16111561147d5761119f6104946080840160608501612c7b565b156111bc5760405162461bcd60e51b815260040161086c90613120565b6111e16111d161014084016101208501612b1f565b610c086080850160608601612c7b565b806111eb81613187565b91506000905061120160a0840160808501612c7b565b63ffffffff16111561147d5761122061049460a0840160808501612c7b565b1561123d5760405162461bcd60e51b815260040161086c90613120565b61126261125261014084016101208501612b1f565b610c0860a0850160808601612c7b565b8061126c81613187565b91506000905061128260c0840160a08501612c7b565b63ffffffff16111561147d576112a161049460c0840160a08501612c7b565b156112be5760405162461bcd60e51b815260040161086c90613120565b6112e36112d361014084016101208501612b1f565b610c0860c0850160a08601612c7b565b806112ed81613187565b91506000905061130360e0840160c08501612c7b565b63ffffffff16111561147d5761132261049460e0840160c08501612c7b565b1561133f5760405162461bcd60e51b815260040161086c90613120565b61136461135461014084016101208501612b1f565b610c0860e0850160c08601612c7b565b8061136e81613187565b915060009050611385610100840160e08501612c7b565b63ffffffff16111561147d576113a5610494610100840160e08501612c7b565b156113c25760405162461bcd60e51b815260040161086c90613120565b6113e86113d761014084016101208501612b1f565b610c08610100850160e08601612c7b565b806113f281613187565b91506000905061140a61012084016101008501612c7b565b63ffffffff16111561147d5761142b61049461012084016101008501612c7b565b156114485760405162461bcd60e51b815260040161086c90613120565b61146f61145d61014084016101208501612b1f565b610c0861012085016101008601612c7b565b8061147981613187565b9150505b8060ff16600760148282829054906101000a900461ffff1661149f91906131a6565b92506101000a81548161ffff021916908361ffff16021790555042826101600135101561152b576114e46114db61014084016101208501612b1f565b8260ff1661167d565b826101400135101561152b5760405162461bcd60e51b815260206004820152601060248201526f45585049524544204d494e54204b455960801b604482015260640161086c565b611536848484611f9a565b6115755760405162461bcd60e51b815260206004820152601060248201526f494e56414c4944204d494e54204b455960801b604482015260640161086c565b60ff8116600d600061158f61014086016101208701612b1f565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546115be9190612f70565b909155503390506115d761014084016101208501612b1f565b6001600160a01b03161461160d57336000908152600d60205260408120805460ff84169290611607908490612f70565b90915550505b6009546040516001600160a01b03909116903480156108fc02916000818181858888f1935050505061163e57600080fd5b50505050565b61164c611e62565b6007805461ffff909216600160b01b0261ffff60b01b19909216919091179055565b6060600180546106ff90612eee565b60008082116116ce5760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742063616c63756c61746520636f737420666f72207a65726f0000604482015260640161086c565b6007546040516370a0823160e01b81526001600160a01b0385811660048301526000926117b3929116906370a0823190602401602060405180830381865afa15801561171e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174291906131c8565b6007546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561178a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ae91906131c8565b6120f2565b6001600160a01b0385166000908152600d602052604090205490915081111561186e576001600160a01b0384166000908152600d60205260409020548301811115611809575050662386f26fc1000081026106ea565b6001600160a01b0384166000908152600d602052604090205483018190038303611831610782565b028184600d6000886001600160a01b03166001600160a01b03168152602001908152602001600020540103662386f26fc1000002019150506106ea565b611876610782565b9092029392505050565b61188b33838361210b565b5050565b60005b8181101561090d576118d0338484848181106118b0576118b061310a565b90506020020160208101906118c59190612c7b565b63ffffffff16611c47565b61191c5760405162461bcd60e51b815260206004820152601860248201527f4e4f5420415050524f56454420464f5220534545442049440000000000000000604482015260640161086c565b6119518383838181106119315761193161310a565b90506020020160208101906119469190612c7b565b63ffffffff166121d9565b60078054600160a01b900461ffff1690601461196c836131e1565b91906101000a81548161ffff021916908361ffff1602179055505080806119929061316e565b915050611892565b6119a43383611c47565b6119c05760405162461bcd60e51b815260040161086c90612f83565b61163e84848484612274565b6000818152600260205260409020546060906001600160a01b0316611a4b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161086c565b600a611a56836122a7565b604051602001611a679291906131ff565b6040516020818303038152906040529050919050565b611a85611e62565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b611aaf611e62565b6001600160a01b038116611b145760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161086c565b611b1d81611f48565b50565b60006107cc6123a8565b60006001600160e01b031982166380ac58cd60e01b1480611b5b57506001600160e01b03198216635b5e139f60e01b145b806106ea57506301ffc9a760e01b6001600160e01b03198316146106ea565b6000818152600260205260409020546001600160a01b0316611b1d5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161086c565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c0e82610c7b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611c5383610c7b565b9050806001600160a01b0316846001600160a01b03161480611c9a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611cbe5750836001600160a01b0316611cb3846107d1565b6001600160a01b0316145b949350505050565b826001600160a01b0316611cd982610c7b565b6001600160a01b031614611d3d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161086c565b6001600160a01b038216611d9f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161086c565b611daa600082611bd9565b6001600160a01b0383166000908152600360205260408120805460019290611dd3908490612f3e565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e01908490612f70565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b031633146109cf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161086c565b60006106ea611ec96123a8565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611f1985856124cf565b91509150611f2681612511565b509392505050565b61188b8282604051806020016040528060008152506126c7565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080610a8a7fa019fdf27259c4c0c783b2deed2d17da279320bb9472369f6a2bdcdf7771ac3e611fce6020860186612c7b565b611fde6040870160208801612c7b565b611fee6060880160408901612c7b565b611ffe6080890160608a01612c7b565b61200e60a08a0160808b01612c7b565b61201e60c08b0160a08c01612c7b565b61202e60e08c0160c08d01612c7b565b61203f6101008d0160e08e01612c7b565b6120516101208e016101008f01612c7b565b8d6101200160208101906120659190612b1f565b60408051602081019c909c5263ffffffff9a8b16908c015297891660608b015295881660808a015293871660a089015291861660c0880152851660e087015284166101008601528316610120850152909116610140808401919091526001600160a01b0390911661016080840191909152908601356101808301528501356101a08201526101c001610a6f565b6000818310156121025781612104565b825b9392505050565b816001600160a01b0316836001600160a01b03160361216c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161086c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006121e482610c7b565b90506121f1600083611bd9565b6001600160a01b038116600090815260036020526040812080546001929061221a908490612f3e565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b61227f848484611cc6565b61228b848484846126fa565b61163e5760405162461bcd60e51b815260040161086c90613296565b6060816000036122ce5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122f857806122e28161316e565b91506122f19050600a83612fe7565b91506122d2565b60008167ffffffffffffffff81111561231357612313612dc9565b6040519080825280601f01601f19166020018201604052801561233d576020820181803683370190505b5090505b8415611cbe57612352600183612f3e565b915061235f600a866132e8565b61236a906030612f70565b60f81b81838151811061237f5761237f61310a565b60200101906001600160f81b031916908160001a9053506123a1600a86612fe7565b9450612341565b6000306001600160a01b037f0000000000000000000000004fcb3939240b3daa790d0b7005a939e2842a7a0d1614801561240157507f000000000000000000000000000000000000000000000000000000000000000146145b1561242b57507f48f6c0f748b274ef9985921a1d7b24005befa88544e66e30e55cc4789d1dd2db90565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527fb4f9163b703772b483a6ee342644f2aca217818660634e57ab3d1a17732a8bce828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60008082516041036125055760208301516040840151606085015160001a6124f9878285856127fb565b94509450505050610982565b50600090506002610982565b6000816004811115612525576125256132fc565b0361252d5750565b6001816004811115612541576125416132fc565b0361258e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161086c565b60028160048111156125a2576125a26132fc565b036125ef5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161086c565b6003816004811115612603576126036132fc565b0361265b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161086c565b600481600481111561266f5761266f6132fc565b03611b1d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161086c565b6126d183836128e8565b6126de60008484846126fa565b61090d5760405162461bcd60e51b815260040161086c90613296565b60006001600160a01b0384163b156127f057604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061273e903390899088908890600401613312565b6020604051808303816000875af1925050508015612779575060408051601f3d908101601f191682019092526127769181019061334f565b60015b6127d6573d8080156127a7576040519150601f19603f3d011682016040523d82523d6000602084013e6127ac565b606091505b5080516000036127ce5760405162461bcd60e51b815260040161086c90613296565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611cbe565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561283257506000905060036128df565b8460ff16601b1415801561284a57508460ff16601c14155b1561285b57506000905060046128df565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128af573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d8576000600192509250506128df565b9150600090505b94509492505050565b6001600160a01b03821661293e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161086c565b6000818152600260205260409020546001600160a01b0316156129a35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161086c565b6001600160a01b03821660009081526003602052604081208054600192906129cc908490612f70565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114611b1d57600080fd5b600060208284031215612a5257600080fd5b813561210481612a2a565b60005b83811015612a78578181015183820152602001612a60565b50506000910152565b60008151808452612a99816020860160208601612a5d565b601f01601f19169290920160200192915050565b6020815260006121046020830184612a81565b600060208284031215612ad257600080fd5b5035919050565b80356001600160a01b0381168114612af057600080fd5b919050565b60008060408385031215612b0857600080fd5b612b1183612ad9565b946020939093013593505050565b600060208284031215612b3157600080fd5b61210482612ad9565b600080600060608486031215612b4f57600080fd5b612b5884612ad9565b9250612b6660208501612ad9565b9150604084013590509250925092565b60008060408385031215612b8957600080fd5b50508035926020909101359150565b60008083601f840112612baa57600080fd5b50813567ffffffffffffffff811115612bc257600080fd5b60208301915083602082850101111561098257600080fd5b60008060208385031215612bed57600080fd5b823567ffffffffffffffff811115612c0457600080fd5b612c1085828601612b98565b90969095509350505050565b600080600083850360a0811215612c3257600080fd5b843567ffffffffffffffff811115612c4957600080fd5b612c5587828801612b98565b9095509350506080601f1982011215612c6d57600080fd5b506020840190509250925092565b600060208284031215612c8d57600080fd5b813563ffffffff8116811461210457600080fd5b60008060208385031215612cb457600080fd5b823567ffffffffffffffff80821115612ccc57600080fd5b818501915085601f830112612ce057600080fd5b813581811115612cef57600080fd5b8660208260051b8501011115612d0457600080fd5b60209290920196919550909350505050565b60008060008385036101a0811215612d2d57600080fd5b843567ffffffffffffffff811115612d4457600080fd5b612d5087828801612b98565b909550935050610180601f1982011215612c6d57600080fd5b600060208284031215612d7b57600080fd5b813561ffff8116811461210457600080fd5b60008060408385031215612da057600080fd5b612da983612ad9565b915060208301358015158114612dbe57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612df557600080fd5b612dfe85612ad9565b9350612e0c60208601612ad9565b925060408501359150606085013567ffffffffffffffff80821115612e3057600080fd5b818701915087601f830112612e4457600080fd5b813581811115612e5657612e56612dc9565b604051601f8201601f19908116603f01168101908382118183101715612e7e57612e7e612dc9565b816040528281528a6020848701011115612e9757600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612ece57600080fd5b612ed783612ad9565b9150612ee560208401612ad9565b90509250929050565b600181811c90821680612f0257607f821691505b602082108103612f2257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156106ea576106ea612f28565b6000816000190483118215151615612f6b57612f6b612f28565b500290565b808201808211156106ea576106ea612f28565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612ff657612ff6612fd1565b500490565b601f82111561090d57600081815260208120601f850160051c810160208610156130225750805b601f850160051c820191505b818110156130415782815560010161302e565b505050505050565b67ffffffffffffffff83111561306157613061612dc9565b6130758361306f8354612eee565b83612ffb565b6000601f8411600181146130a957600085156130915750838201355b600019600387901b1c1916600186901b178355613103565b600083815260209020601f19861690835b828110156130da57868501358255602094850194600190920191016130ba565b50868210156130f75760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052603260045260246000fd5b60208082526013908201527214d15151081053149150511648135253951151606a1b604082015260600190565b600061ffff80831681810361316457613164612f28565b6001019392505050565b60006001820161318057613180612f28565b5060010190565b600060ff821660ff810361319d5761319d612f28565b60010192915050565b61ffff8181168382160190808211156131c1576131c1612f28565b5092915050565b6000602082840312156131da57600080fd5b5051919050565b600061ffff8216806131f5576131f5612f28565b6000190192915050565b600080845461320d81612eee565b60018281168015613225576001811461323a57613269565b60ff1984168752821515830287019450613269565b8860005260208060002060005b858110156132605781548a820152908401908201613247565b50505082870194505b50505050835161327d818360208801612a5d565b64173539b7b760d91b9101908152600501949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826132f7576132f7612fd1565b500690565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061334590830184612a81565b9695505050505050565b60006020828403121561336157600080fd5b815161210481612a2a56fea26469706673582212208ed03fd32076a2975f705918472f29a016301e4c855449cec93ba3dc0b668b5964736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000005c863ba28f926d235550426f0b3e2b27786b66a500000000000000000000000071916104e789e1028079efb19a133281d4cd237a00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000001600000000000000000000000002efa07cac3395599db83035d196f2a0e7263f7660000000000000000000000000000000000000000000000000000000000000004534545440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045345454400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003468747470733a2f2f6e796674692e78797a2f6170692f76312f78702f7072657365727665645f736565642f6d657461646174612f000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): SEED
Arg [1] : symbol (string): SEED
Arg [2] : signer (address): 0x5c863Ba28f926d235550426f0B3e2B27786b66a5
Arg [3] : treasury (address): 0x71916104E789E1028079eFb19a133281d4CD237A
Arg [4] : royaltyBPS (uint16): 1000
Arg [5] : baseTokenURI (string): https://nyfti.xyz/api/v1/xp/preserved_seed/metadata/
Arg [6] : fgs_contract (address): 0x2eFa07CaC3395599db83035D196F2A0e7263F766
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000005c863ba28f926d235550426f0b3e2b27786b66a5
Arg [3] : 00000000000000000000000071916104e789e1028079efb19a133281d4cd237a
Arg [4] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [6] : 0000000000000000000000002efa07cac3395599db83035d196f2a0e7263f766
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 5345454400000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [10] : 5345454400000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000034
Arg [12] : 68747470733a2f2f6e796674692e78797a2f6170692f76312f78702f70726573
Arg [13] : 65727665645f736565642f6d657461646174612f000000000000000000000000
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.