ERC-721
NFT
Overview
Max Total Supply
1,200 GCP10
Holders
669
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 GCP10Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PixelClouds
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 666 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //----------------------------------------------------------------------------- // geneticchain.io - NextGen Generative NFT Platform //----------------------------------------------------------------------------- /*\_____________________________________________________________ .¿yy¿. __ MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM```````/MMM\\\\\ \\$$$$$$S/ . MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM`` `/ yyyy ` _____J$$$^^^^/%#// MMMMMMMMMMMMMMMMMMMYYYMMM```` `\/ .¿yü / $ùpüüü%%% | ``|//|` __ MMMMMYYYYMMMMMMM/` `| ___.¿yüy¿. .d$$$$ / $$$$SSSSM | | || MMNNNNNNM M/`` ``\/` .¿ù%%/. |.d$$$$$$$b.$$$*°^ / o$$$ __ | | || MMMMMMMMM M .¿yy¿. .dX$$$$$$7.|$$$$"^"$$$$$$o` /MM o$$$ MM | | || MMYYYYYYM \\$$$$$$S/ .S$$o"^"4$$$$$$$` _ `SSSSS\ ____ MM |___|_|| MM ____ J$$$^^^^/%#//oSSS` YSSSSSS / pyyyüüü%%%XXXÙ$$$$ MM pyyyyyyy, `` ,$$$o .$$$` ___ pyyyyyyyyyyyy//+ / $$$$$$SSSSSSSÙM$$$. `` .S&&T$T$$$byyd$$$$\ \$$7 `` //o$$SSXMMSSSS | / $$/&&X _ ___ %$$$byyd$$$X\$`/S$$$$$$$S\ o$$l .\\YS$$X>$X _ ___| | / $$/%$$b.,.d$$$\`7$$$$$$$$7`.$ `"***"` __ o$$l __ 7$$$X>$$b.,.d$$$\ | / $$.`7$$$$$$$$%` `*+SX+*|_\\$ /. ..\MM o$$L MM !$$$$\$$$$$$$$$%|__| / $$// `*+XX*\'` `____ ` `/MMMMMMM /$$X, `` ,S$$$$\ `*+XX*\'`____ / %SXX . ., NERV ___.¿yüy¿. /MMMMM 7$$$byyd$$$>$X\ .,,_ $$$$ ` ___ .y%%ü¿. _______ $.d$$$$$$$S. `MMMM `/S$$$$$$$\\$J`.\\$$$ : $\`.¿yüy¿. `\\ $$$$$$S.//XXSSo $$$$$"^"$$$$. /MMM y `"**"`"Xo$7J$$$$$\ $.d$$$$$$$b. ^``/$$$$.`$$$$o $$$$\ _ 'SSSo /MMM M/.__ .,\Y$$$\\$$O` _/ $d$$$*°\ pyyyüüü%%%W $$$o.$$$$/ S$$$. ` S$To MMM MMMM` \$P*$$X+ b$$l MM $$$$` _ $$$$$$SSSSM $$$X.$T&&X o$$$. ` S$To MMM MMMX` $<.\X\` -X$$l MM $$$$ / $$/&&X X$$$/$/X$$dyS$$>. ` S$X%/ `MM MMMM/ `"` . -$$$l MM yyyy / $$/%$$b.__.d$$$$/$.'7$$$$$$$. ` %SXXX. MM MMMMM// ./M .<$$S, `` ,S$$> / $$.`7$$$$$$$$$$$/S//_'*+%%XX\ `._ /MM MMMMMMMMMMMMM\ /$$$$byyd$$$$\ / $$// `*+XX+*XXXX ,. .\MMMMMMMMMMM GENETIC/MMMMM\. /$$$$$$$$$$\| / %SXX ,_ . .\MMMMMMMMMMMMMMMMMMMMMMMM CHAIN/MMMMMMMM/__ `*+YY+*`_\| /_______//MMMMMMMMMMMMMMMMMMMMMMMMMMM/-/-/-\*/ //----------------------------------------------------------------------------- // Genetic Chain: PixelClouds //----------------------------------------------------------------------------- // Author: papaver (@tronicdreams) //----------------------------------------------------------------------------- import "./GeneticChain721.sol"; //------------------------------------------------------------------------------ // GeneticChainMetadata //------------------------------------------------------------------------------ /** * @title PixelClouds * GeneticChain - Project #10 - Pixel Clouds */ contract PixelClouds is GeneticChain721 { //------------------------------------------------------------------------- // structs //------------------------------------------------------------------------- struct IpfsAsset { string name; string hash; } //------------------------------------------------------------------------- struct ArtState { int64 rainMeter; bool rain; bool _set; } //------------------------------------------------------------------------- // events //------------------------------------------------------------------------- event StateChange(address indexed owner, uint256 tokenId, ArtState state); //------------------------------------------------------------------------- // constants //------------------------------------------------------------------------- // metadata uint256 constant public projectId = 10; string constant public artist = "Cano"; string constant public description = "Pixel Clouds aim to create a new form of culture based on a shared aesthetic utilizing decentralized ownership of clouds with the option to control rain."; // token data uint256 private immutable _seed; //------------------------------------------------------------------------- // fields //------------------------------------------------------------------------- string public code; string private _baseUri; IpfsAsset[] public libraries; // token state mapping(uint256 => ArtState) _state; //------------------------------------------------------------------------- // ctor //------------------------------------------------------------------------- constructor( IpfsAsset memory lib, string memory baseUri_, uint256[3] memory tokenMax_, uint256 seed, address proxyRegistryAddress) GeneticChain721( tokenMax_, proxyRegistryAddress) { _baseUri = baseUri_; _seed = seed; addLibrary(lib.name, lib.hash); } //------------------------------------------------------------------------- // accessors //------------------------------------------------------------------------- function setCode(string memory code_) public onlyOwner notLocked { code = code_; } //------------------------------------------------------------------------- function addLibrary(string memory name, string memory hash) public onlyOwner notLocked { IpfsAsset memory lib = IpfsAsset(name, hash); libraries.push(lib); } //------------------------------------------------------------------------- function removeLibrary(uint256 index) public onlyOwner notLocked { require(index < libraries.length); libraries[index] = libraries[libraries.length-1]; libraries.pop(); } //------------------------------------------------------------------------- function getLibraryCount() public view returns (uint256) { return libraries.length; } //------------------------------------------------------------------------- function getLibraries() public view returns (IpfsAsset[] memory) { IpfsAsset[] memory libs = new IpfsAsset[](libraries.length); for (uint256 i = 0; i < libraries.length; ++i) { IpfsAsset storage lib = libraries[i]; libs[i] = lib; } return libs; } //------------------------------------------------------------------------- function setBaseTokenURI(string memory baseUri) public onlyOwner { _baseUri = baseUri; } //------------------------------------------------------------------------- // ERC721Metadata //------------------------------------------------------------------------- function baseTokenURI() public view returns (string memory) { return _baseUri; } //------------------------------------------------------------------------- /** * @dev Returns uri of a token. Not guarenteed token exists. */ function tokenURI(uint256 tokenId) override public view returns (string memory) { return string(abi.encodePacked( baseTokenURI(), "/", Strings.toString(tokenId), "/meta")); } //------------------------------------------------------------------------- // generative //------------------------------------------------------------------------- /** * @dev Low-Gas alternative to storing the hash on the chain. * @return generated hash associated with valid a token. */ function tokenHash(uint256 tokenId) public view validTokenId(tokenId) returns (bytes32) { return keccak256( abi.encodePacked( _seed, tokenId, address(this))); } //------------------------------------------------------------------------- // state //------------------------------------------------------------------------- function state(uint256 tokenId) public view validTokenId(tokenId) returns (int64 rainMeter, bool rain) { if (_state[tokenId]._set == false) { rain = false; rainMeter = 0; } else { rain = _state[tokenId].rain; rainMeter = _state[tokenId].rainMeter; } } //------------------------------------------------------------------------- /** * Updates state of token, only owner or approved is allowed. * @param tokenId - token to update state on * @param rainMeter - rain meter; 0-89 * @param rain - control rain; true/false * * Emits a {StateUpdated} event. */ function updateState(uint256 tokenId, int64 rainMeter, bool rain) public approvedOrOwner(_msgSender(), tokenId) { require(0 <= rainMeter && rainMeter <= 89, "invalid rainMeter"); _state[tokenId].rain = rain; _state[tokenId].rainMeter = rainMeter; _state[tokenId]._set = true; emit StateChange(msg.sender, tokenId, _state[tokenId]); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @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) { // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } } else if (signature.length == 64) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { let vs := mload(add(signature, 0x40)) r := mload(add(signature, 0x20)) s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } } else { revert("ECDSA: invalid signature length"); } return recover(hash, v, r, s); } /** * @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) { // 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 (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): 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. require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value"); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //----------------------------------------------------------------------------- // geneticchain.io - NextGen Generative NFT Platform //----------------------------------------------------------------------------- /*\_____________________________________________________________ .¿yy¿. __ MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM```````/MMM\\\\\ \\$$$$$$S/ . MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM`` `/ yyyy ` _____J$$$^^^^/%#// MMMMMMMMMMMMMMMMMMMYYYMMM```` `\/ .¿yü / $ùpüüü%%% | ``|//|` __ MMMMMYYYYMMMMMMM/` `| ___.¿yüy¿. .d$$$$ / $$$$SSSSM | | || MMNNNNNNM M/`` ``\/` .¿ù%%/. |.d$$$$$$$b.$$$*°^ / o$$$ __ | | || MMMMMMMMM M .¿yy¿. .dX$$$$$$7.|$$$$"^"$$$$$$o` /MM o$$$ MM | | || MMYYYYYYM \\$$$$$$S/ .S$$o"^"4$$$$$$$` _ `SSSSS\ ____ MM |___|_|| MM ____ J$$$^^^^/%#//oSSS` YSSSSSS / pyyyüüü%%%XXXÙ$$$$ MM pyyyyyyy, `` ,$$$o .$$$` ___ pyyyyyyyyyyyy//+ / $$$$$$SSSSSSSÙM$$$. `` .S&&T$T$$$byyd$$$$\ \$$7 `` //o$$SSXMMSSSS | / $$/&&X _ ___ %$$$byyd$$$X\$`/S$$$$$$$S\ o$$l .\\YS$$X>$X _ ___| | / $$/%$$b.,.d$$$\`7$$$$$$$$7`.$ `"***"` __ o$$l __ 7$$$X>$$b.,.d$$$\ | / $$.`7$$$$$$$$%` `*+SX+*|_\\$ /. ..\MM o$$L MM !$$$$\$$$$$$$$$%|__| / $$// `*+XX*\'` `____ ` `/MMMMMMM /$$X, `` ,S$$$$\ `*+XX*\'`____ / %SXX . ., NERV ___.¿yüy¿. /MMMMM 7$$$byyd$$$>$X\ .,,_ $$$$ ` ___ .y%%ü¿. _______ $.d$$$$$$$S. `MMMM `/S$$$$$$$\\$J`.\\$$$ : $\`.¿yüy¿. `\\ $$$$$$S.//XXSSo $$$$$"^"$$$$. /MMM y `"**"`"Xo$7J$$$$$\ $.d$$$$$$$b. ^``/$$$$.`$$$$o $$$$\ _ 'SSSo /MMM M/.__ .,\Y$$$\\$$O` _/ $d$$$*°\ pyyyüüü%%%W $$$o.$$$$/ S$$$. ` S$To MMM MMMM` \$P*$$X+ b$$l MM $$$$` _ $$$$$$SSSSM $$$X.$T&&X o$$$. ` S$To MMM MMMX` $<.\X\` -X$$l MM $$$$ / $$/&&X X$$$/$/X$$dyS$$>. ` S$X%/ `MM MMMM/ `"` . -$$$l MM yyyy / $$/%$$b.__.d$$$$/$.'7$$$$$$$. ` %SXXX. MM MMMMM// ./M .<$$S, `` ,S$$> / $$.`7$$$$$$$$$$$/S//_'*+%%XX\ `._ /MM MMMMMMMMMMMMM\ /$$$$byyd$$$$\ / $$// `*+XX+*XXXX ,. .\MMMMMMMMMMM GENETIC/MMMMM\. /$$$$$$$$$$\| / %SXX ,_ . .\MMMMMMMMMMMMMMMMMMMMMMMM CHAIN/MMMMMMMM/__ `*+YY+*`_\| /_______//MMMMMMMMMMMMMMMMMMMMMMMMMMM/-/-/-\*/ //----------------------------------------------------------------------------- // Genetic Chain: GeneticChain721 //----------------------------------------------------------------------------- // Author: papaver (@tronicdreams) //----------------------------------------------------------------------------- import "openzeppelin-solidity/contracts/access/Ownable.sol"; import "openzeppelin-solidity/contracts/utils/cryptography/ECDSA.sol"; import "openzeppelin-solidity/contracts/utils/Strings.sol"; import "./common/meta-transactions/ContentMixin.sol"; import "./common/meta-transactions/NativeMetaTransaction.sol"; import "./geneticchain/ERC721Sequential.sol"; import "./geneticchain/ERC721SeqEnumerable.sol"; import "./libraries/State.sol"; //------------------------------------------------------------------------------ // helper contracts //------------------------------------------------------------------------------ contract OwnableDelegateProxy {} //------------------------------------------------------------------------------ contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } //------------------------------------------------------------------------------ // GeneticChain721 //------------------------------------------------------------------------------ /** * @title GeneticChain721 * * ERC721 contract with various features: * - low-gas implmentation * - off-chain whitelist verify (secure minting) * - dynamic token allocation * - artist allocation * - gallery allocation * - low-gas generative token hash * - protected controlled burns * - opensea proxy setup * - simple funds withdrawl */ abstract contract GeneticChain721 is ContextMixin, ERC721SeqEnumerable, NativeMetaTransaction, Ownable { using ECDSA for bytes32; using State for State.Data; //------------------------------------------------------------------------- // constants //------------------------------------------------------------------------- // erc721 metadata string constant private __name = "Pixel Clouds"; string constant private __symbol = "GCP10"; // mint price uint256 constant public memberPrice = .03 ether; uint256 constant public publicPrice = .05 ether; // verification address address constant private _signer = 0x29a64385e02e7018F6Ec71e3Bf032790Fe42bF27; // token limits uint256 public immutable publicMax; uint256 public immutable artistMax; uint256 public immutable galleryMax; // opensea proxy address private immutable _proxyRegistryAddress; //------------------------------------------------------------------------- // fields //------------------------------------------------------------------------- // contract state State.Data private _state; // roles address private _burnerAddress; address[2] private _artistAddresses = [ 0x324110e8A2f9D0D93ba9cba21688540b39cb79cb, 0x11102104A66De741479D9b73521A1e2a75d16E4e]; // track mint count per address mapping (address => uint256) private _mints; //------------------------------------------------------------------------- // modifiers //------------------------------------------------------------------------- modifier validTokenId(uint256 tokenId) { require(_exists(tokenId), "invalid token"); _; } //------------------------------------------------------------------------- modifier approvedOrOwner(address operator, uint256 tokenId) { require(_isApprovedOrOwner(operator, tokenId)); _; } //------------------------------------------------------------------------- modifier isArtist() { require(_msgSender() == _artistAddresses[0] || _msgSender() == _artistAddresses[1], "caller not artist"); _; } //------------------------------------------------------------------------- modifier isBurner() { require(_msgSender() == _burnerAddress, "caller not burner"); _; } //------------------------------------------------------------------------- modifier notLocked() { require(_state._locked == 0, "contract is locked"); _; } //------------------------------------------------------------------------- // ctor //------------------------------------------------------------------------- constructor( uint256[3] memory tokenMax_, address proxyRegistryAddress) ERC721Sequential(__name, __symbol) { publicMax = tokenMax_[0]; artistMax = tokenMax_[1]; galleryMax = tokenMax_[2]; _proxyRegistryAddress = proxyRegistryAddress; _initializeEIP712(__name); // start tokens at 1 index _owners.push(); } //------------------------------------------------------------------------- // accessors //------------------------------------------------------------------------- /** * Set artist address. */ function setArtistAddress(address artistAddress, uint256 index) public onlyOwner { require(index < _artistAddresses.length, "invalid index"); _artistAddresses[index] = artistAddress; } //------------------------------------------------------------------------- /** * Set burner address. */ function setBurnerAddress(address burner) public onlyOwner { _burnerAddress = burner; } //------------------------------------------------------------------------- /** * Enable public minting. */ function enablePublicMint() public onlyOwner { _state.setLive(1); } //------------------------------------------------------------------------- /** * Check if public minting is live. */ function publicLive() public view returns (bool) { return _state._live == 1; } //------------------------------------------------------------------------- /** * Lock contract. Disable public/member minting. */ function lockContract() public onlyOwner { _state.setLocked(1); } //------------------------------------------------------------------------- /** * Check if contract is locked. */ function isLocked() public view returns (bool) { return _state._locked == 1; } //------------------------------------------------------------------------- /** * Get total gallery has minted. */ function gallryMinted() public view returns (uint256) { return _state._gallery; } //------------------------------------------------------------------------- /** * Get total artist has minted. */ function artistMinted() public view returns (uint256) { return _state._artist; } //------------------------------------------------------------------------- /** * Get total public has minted. */ function publicMinted() public view returns (uint256) { return _state._public; } //------------------------------------------------------------------------- // security //------------------------------------------------------------------------- /** * Validate hash contains input data. */ function validateHash( bytes32 msgHash, address sender, uint256 allocation, uint256 count) private pure returns(bool) { return ECDSA.toEthSignedMessageHash( keccak256(abi.encodePacked(sender, allocation, count))) == msgHash; } //------------------------------------------------------------------------- /** * Validate message was signed by signer. */ function validateSigner(bytes32 msgHash, bytes memory signature) private pure returns(bool) { return msgHash.recover(signature) == _signer; } //------------------------------------------------------------------------- // minting //------------------------------------------------------------------------- /** * Allow anyone to mint tokens for the right price. */ function mint(uint256 count) payable public notLocked { require(_state._live == 1, "public mint not live"); require(publicPrice * count == msg.value, "insufficient funds"); require(_state._public + count <= publicMax, "exceed public supply"); _state.addPublic(count); for (uint256 i = 0; i < count; ++i) { _safeMint(msg.sender); } } //------------------------------------------------------------------------- /** * Mint count tokens using securely signed message. */ function secureMint( bytes32 msgHash, bytes calldata signature, uint256 allocation, uint256 count) payable external notLocked { require(memberPrice * count == msg.value, "insufficient funds"); require(_state._public + count <= publicMax, "exceed public supply"); require(_mints[msg.sender] + count <= allocation, "exceed allocation"); require(validateSigner(msgHash, signature), "invalid signer"); require(validateHash(msgHash, msg.sender, allocation, count), "invalid hash"); _state.addPublic(count); unchecked { _mints[msg.sender] += count; } for (uint256 i = 0; i < count; ++i) { _safeMint(msg.sender); } } //------------------------------------------------------------------------- /** * @dev Mints a token to an address. * @param _to address of the future owner of the token */ function galleryMintTo(address _to, uint256 count) public onlyOwner { require(_state._gallery + count <= galleryMax, "exceed gallery supply"); _state.addGallery(count); for (uint256 i = 0; i < count; ++i) { _safeMint(_to); } } //------------------------------------------------------------------------- /** * @dev Mints a token to an address. * @param _to address of the future owner of the token */ function artistMintTo(address _to, uint256 count) public isArtist { require(_state._artist + count <= artistMax, "exceed artist supply"); _state.addArtist(count); for (uint256 i = 0; i < count; ++i) { _safeMint(_to); } } //------------------------------------------------------------------------- /** * @dev Burns `tokenId`. See {ERC721-_burn}. */ function burn(uint256 tokenId) public isBurner { _burn(tokenId); } //------------------------------------------------------------------------- // money //------------------------------------------------------------------------- /** * Pull money out of this contract. */ function withdraw(address to, uint256 amount) public onlyOwner { require(amount > 0, "amount empty"); require(amount <= address(this).balance, "amount exceeds balance"); require(to != address(0), "address null"); payable(to).transfer(amount); } //------------------------------------------------------------------------- // approval //------------------------------------------------------------------------- /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts * to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) override public view returns (bool) { // whitelist OpenSea proxy contract for easy trading ProxyRegistry proxyRegistry = ProxyRegistry(_proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } //------------------------------------------------------------------------- /** * This is used instead of msg.sender as transactions won't be sent by * the original token owner, but by OpenSea. */ function _msgSender() override internal view returns (address sender) { return ContextMixin.msgSender(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contracts that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {SafeMath} from "openzeppelin-solidity/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //------------------------------------------------------------------------------ // geneticchain.io - NextGen Generative NFT Platform //------------------------------------------------------------------------------ // _______ __ __ ______ __ __ // | __|-----.-----.-----| |_|__|----. | | |--.---.-|__|-----. // | | | -__| | -__| _| | __| | ---| | _ | | | // |_______|_____|__|__|_____|____|__|____| |______|__|__|___._|__|__|__| // //------------------------------------------------------------------------------ // Genetic Chain: ERC721SeqEnumerable //------------------------------------------------------------------------------ // Author: papaver (@tronicdreams) //------------------------------------------------------------------------------ import "openzeppelin-solidity/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "./ERC721Sequential.sol"; /** * @dev This is a no storage implemntation of the optional extension {ERC721} * defined in the EIP that adds enumerability of all the token ids in the * contract as well as all token ids owned by each account. These functions * are mainly for convienence and should NEVER be called from inside a * contract on the chain. */ abstract contract ERC721SeqEnumerable is ERC721Sequential, IERC721Enumerable { address constant zero = address(0); /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface( bytes4 interfaceId ) public view virtual override(IERC165, ERC721Sequential) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex( address owner, uint256 index ) public view virtual override returns (uint256 tokenId) { uint256 length = _owners.length; unchecked { for (; tokenId < length; ++tokenId) { if (_owners[tokenId] == owner) { if (index-- == 0) { break; } } } } require(tokenId < length, "ERC721Enumerable: owner index out of bounds"); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256 supply) { unchecked { uint256 length = _owners.length; for (uint256 tokenId = 0; tokenId < length; ++tokenId) { if (_owners[tokenId] != zero) { ++supply; } } } } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex( uint256 index ) public view virtual override returns (uint256 tokenId) { uint256 length = _owners.length; unchecked { for (; tokenId < length; ++tokenId) { if (_owners[tokenId] != zero) { if (index-- == 0) { break; } } } } require(tokenId < length, "ERC721Enumerable: global index out of bounds"); } /** * @dev Get all tokens owned by owner. */ function ownerTokens( address owner ) public view returns (uint256[] memory) { uint256 tokenCount = ERC721Sequential.balanceOf(owner); require(tokenCount != 0, "ERC721Enumerable: owner owns no tokens"); uint256 length = _owners.length; uint256[] memory tokenIds = new uint256[](tokenCount); unchecked { uint256 i = 0; for (uint256 tokenId = 0; tokenId < length; ++tokenId) { if (_owners[tokenId] == owner) { tokenIds[i++] = tokenId; } } } return tokenIds; } }
// SPDX-License-Identifier: MIT // Forked from: OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; //------------------------------------------------------------------------------ // geneticchain.io - NextGen Generative NFT Platform //------------------------------------------------------------------------------ // _______ __ __ ______ __ __ // | __|-----.-----.-----| |_|__|----. | | |--.---.-|__|-----. // | | | -__| | -__| _| | __| | ---| | _ | | | // |_______|_____|__|__|_____|____|__|____| |______|__|__|___._|__|__|__| // //------------------------------------------------------------------------------ // Genetic Chain: ERC721Sequential //------------------------------------------------------------------------------ // Author: papaver (@tronicdreams) //------------------------------------------------------------------------------ import "openzeppelin-solidity/contracts/token/ERC721/IERC721.sol"; import "openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol"; import "openzeppelin-solidity/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "openzeppelin-solidity/contracts/utils/Address.sol"; import "openzeppelin-solidity/contracts/utils/Context.sol"; import "openzeppelin-solidity/contracts/utils/Strings.sol"; import "openzeppelin-solidity/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721 * [ERC721] Non-Fungible Token Standard * * This implmentation of ERC721 assumes sequencial token creation to provide * efficient minting. Storage for balance are no longer required reducing * gas significantly. This comes at the price of calculating the balance by * iterating through the entire array. The balanceOf function should NOT * be used inside a contract. Gas usage will explode as the size of tokens * increase. A convineiance function is provided which returns the entire * list of owners whose index maps tokenIds to thier owners. Zero addresses * indicate burned tokens. * */ contract ERC721Sequential 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 address[] _owners; // 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 balance) { require(owner != address(0), "ERC721: balance query for the zero address"); unchecked { uint256 length = _owners.length; for (uint256 i = 0; i < length; ++i) { if (_owners[i] == owner) { ++balance; } } } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: owner query for nonexistent token"); address owner = _owners[tokenId]; return owner; } /** * @dev Returns entire list of owner enumerated by thier tokenIds. Burned tokens * will have a zero address. */ function owners() public view returns (address[] memory) { address[] memory owners_ = _owners; return owners_; } /** * @dev Return largest tokenId minted. */ function maxTokenId() public view returns (uint256) { return _owners.length - 1; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721Sequential.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); 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: transfer caller is not 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: transfer caller is not 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 tokenId < _owners.length && _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) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721Sequential.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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) internal virtual returns (uint256 tokenId) { tokenId = _safeMint(to, ""); } /** * @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, bytes memory _data ) internal virtual returns (uint256 tokenId) { tokenId = _mint(to); 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) internal virtual returns (uint256 tokenId) { require(to != address(0), "ERC721: mint to the zero address"); tokenId = _owners.length; _beforeTokenTransfer(address(0), to, tokenId); _owners.push(to); emit Transfer(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 = ERC721Sequential.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); delete _owners[tokenId]; emit Transfer(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(ERC721Sequential.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Sequential.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {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 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 { 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 {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //------------------------------------------------------------------------------ // geneticchain.io - NextGen Generative NFT Platform //------------------------------------------------------------------------------ // _______ __ __ ______ __ __ // | __|-----.-----.-----| |_|__|----. | | |--.---.-|__|-----. // | | | -__| | -__| _| | __| | ---| | _ | | | // |_______|_____|__|__|_____|____|__|____| |______|__|__|___._|__|__|__| // //------------------------------------------------------------------------------ // Genetic Chain: library/State //------------------------------------------------------------------------------ // Author: papaver (@tronicdreams) //------------------------------------------------------------------------------ /** * @dev Handle contract state efficiently as possbile. */ library State { struct Data { uint16 _gallery; uint16 _artist; uint16 _public; uint16 _live; uint16 _locked; uint176 _unused; } function addGallery(Data storage data, uint256 count) internal { unchecked { data._gallery += uint16(count); } } function addArtist(Data storage data, uint256 count) internal { unchecked { data._artist += uint16(count); } } function addPublic(Data storage data, uint256 count) internal { unchecked { data._public += uint16(count); } } function setLive(Data storage data, uint256 enable) internal { data._live = uint16(enable); } function setLocked(Data storage data, uint256 enable) internal { data._locked = uint16(enable); } function set(Data storage data, uint256 _gallery, uint256 _artist, uint256 _public) internal { data._gallery = uint16(_gallery); data._artist = uint16(_artist); data._public = uint16(_public); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 666 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"hash","type":"string"}],"internalType":"struct PixelClouds.IpfsAsset","name":"lib","type":"tuple"},{"internalType":"string","name":"baseUri_","type":"string"},{"internalType":"uint256[3]","name":"tokenMax_","type":"uint256[3]"},{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"address","name":"proxyRegistryAddress","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":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"int64","name":"rainMeter","type":"int64"},{"internalType":"bool","name":"rain","type":"bool"},{"internalType":"bool","name":"_set","type":"bool"}],"indexed":false,"internalType":"struct PixelClouds.ArtState","name":"state","type":"tuple"}],"name":"StateChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"hash","type":"string"}],"name":"addLibrary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artist","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"artistMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"artistMintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"code","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enablePublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"galleryMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"galleryMintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gallryMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLibraries","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"hash","type":"string"}],"internalType":"struct PixelClouds.IpfsAsset[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLibraryCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"libraries","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"hash","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"memberPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","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":"address","name":"owner","type":"address"}],"name":"ownerTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"projectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"removeLibrary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"msgHash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"secureMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"setArtistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"setBurnerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"code_","type":"string"}],"name":"setCode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"state","outputs":[{"internalType":"int64","name":"rainMeter","type":"int64"},{"internalType":"bool","name":"rain","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"int64","name":"rainMeter","type":"int64"},{"internalType":"bool","name":"rain","type":"bool"}],"name":"updateState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6005805460ff1916905561016060405273324110e8a2f9d0d93ba9cba21688540b39cb79cb6101209081527311102104a66de741479d9b73521a1e2a75d16e4e610140526200005390600b906002620004c9565b503480156200006157600080fd5b506040516200520638038062005206833981016040819052620000849162000754565b604080518082018252600c81526b506978656c20436c6f75647360a01b602080830191825283518085019094526005845264047435031360dc1b90840152815186938593929091620000d99160009162000526565b508051620000ef90600190602084019062000526565b505050600062000104620001ec60201b60201c565b600880546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350815160805260208083015160a05260408084015160c0526001600160a01b03831660e0528051808201909152600c81526b506978656c20436c6f75647360a01b91810191909152620001a49062000208565b50506002805460010181556000528351620001c790600f90602087019062000526565b5061010082905284516020860151620001e191906200026d565b505050505062000886565b600062000203620003c860201b62002fd81760201c565b905090565b60055460ff1615620002525760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b60448201526064015b60405180910390fd5b6200025d8162000427565b506005805460ff19166001179055565b62000277620001ec565b6001600160a01b0316620002936008546001600160a01b031690565b6001600160a01b031614620002eb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000249565b60095468010000000000000000900461ffff1615620003425760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b604482015260640162000249565b6040805180820190915282815260208082018390526010805460018101825560009190915282518051849360029093027f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720192620003a592849291019062000526565b506020828101518051620003c0926001850192019062000526565b505050505050565b6000333014156200042157600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620004249050565b50335b90565b6040518060800160405280604f8152602001620051b7604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600655565b826002810192821562000514579160200282015b828111156200051457825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620004dd565b5062000522929150620005a3565b5090565b828054620005349062000849565b90600052602060002090601f01602090048101928262000558576000855562000514565b82601f106200057357805160ff191683800117855562000514565b8280016001018555821562000514579182015b828111156200051457825182559160200191906001019062000586565b5b80821115620005225760008155600101620005a4565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715620005f557620005f5620005ba565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620006265762000626620005ba565b604052919050565b600082601f8301126200064057600080fd5b81516001600160401b038111156200065c576200065c620005ba565b602062000672601f8301601f19168201620005fb565b82815285828487010111156200068757600080fd5b60005b83811015620006a75785810183015182820184015282016200068a565b83811115620006b95760008385840101525b5095945050505050565b600082601f830112620006d557600080fd5b604051606081016001600160401b0381118282101715620006fa57620006fa620005ba565b6040528060608401858111156200071057600080fd5b845b818110156200072c57805183526020928301920162000712565b509195945050505050565b80516001600160a01b03811681146200074f57600080fd5b919050565b600080600080600060e086880312156200076d57600080fd5b85516001600160401b03808211156200078557600080fd5b908701906040828a0312156200079a57600080fd5b620007a4620005d0565b825182811115620007b457600080fd5b620007c28b8286016200062e565b825250602083015182811115620007d857600080fd5b620007e68b8286016200062e565b6020830152508097505060208801519150808211156200080557600080fd5b5062000814888289016200062e565b945050620008268760408801620006c3565b925060a086015191506200083d60c0870162000737565b90509295509295909350565b600181811c908216806200085e57607f821691505b602082108114156200088057634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516148d0620008e7600039600061216a01526000612c5101526000818161079c01526118f7015260008181610b070152611087015260008181610a940152818161203a015261293301526148d06000f3fe6080604052600436106103ad5760003560e01c8063753868e3116101e7578063bba7723e1161010d578063e527c6dd116100a0578063f2fde38b1161006f578063f2fde38b14610b29578063f3fef3a314610b49578063f593bd5314610b69578063f8f0b80e14610b8257600080fd5b8063e527c6dd14610a82578063e985e9c514610ab6578063ed329fa814610ad6578063ef3c662414610af557600080fd5b8063d547cfb7116100dc578063d547cfb714610a25578063d62f3b1c14610a3a578063d81bc66314610a4f578063e403f1a714610a6257600080fd5b8063bba7723e14610998578063c6ed3d68146109c5578063c87b56dd146109e5578063c93ed70a14610a0557600080fd5b8063a386439711610185578063affe39c111610154578063affe39c114610902578063b1fbe72d14610924578063b7f751d814610952578063b88d4fde1461097857600080fd5b8063a386439714610883578063a4e2d634146108a3578063a4f4f8af146108c6578063a945bf80146108e757600080fd5b806395d89b41116101c157806395d89b411461081b5780639df806d614610830578063a0712d6814610850578063a22cb4651461086357600080fd5b8063753868e3146107d35780638da5cb5b146107e857806391ba317a1461080657600080fd5b80633408e470116102d75780634f6ccce71161026a57806370a082311161023957806370a0823114610755578063715018a61461077557806371dedace1461078a5780637284e416146107be57600080fd5b80634f6ccce7146106da5780636352211e146106fa578063636e746b1461071a578063638e19b41461073557600080fd5b806342842e0e116102a657806342842e0e1461064a57806342966c681461066a57806343bc16121461068a57806344be774f146106ba57600080fd5b80633408e470146105c65780633e02bc38146105d95780633e4f49e6146105fb5780633fafa1271461063557600080fd5b806317ce96081161034f57806324c12bf61161031e57806324c12bf61461053b5780632d0335ab146105505780632f745c591461058657806330176e13146105a657600080fd5b806317ce9608146104c357806318160ddd146104e357806320379ee51461050657806323b872dd1461051b57600080fd5b8063095ea7b31161038b578063095ea7b3146104415780630c53c51c146104635780630f7e59701461047657806314d7d517146104a357600080fd5b806301ffc9a7146103b257806306fdde03146103e7578063081812fc14610409575b600080fd5b3480156103be57600080fd5b506103d26103cd366004613f60565b610b97565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506103fc610bc2565b6040516103de9190613fd5565b34801561041557600080fd5b50610429610424366004613fe8565b610c54565b6040516001600160a01b0390911681526020016103de565b34801561044d57600080fd5b5061046161045c366004614016565b610ce1565b005b6103fc6104713660046140e5565b610e09565b34801561048257600080fd5b506103fc604051806040016040528060018152602001603160f81b81525081565b3480156104af57600080fd5b506104616104be366004614016565b610ff3565b3480156104cf57600080fd5b506104616104de366004614178565b611151565b3480156104ef57600080fd5b506104f8611291565b6040519081526020016103de565b34801561051257600080fd5b506006546104f8565b34801561052757600080fd5b506104616105363660046141bc565b6112ed565b34801561054757600080fd5b506103fc61136f565b34801561055c57600080fd5b506104f861056b3660046141fd565b6001600160a01b031660009081526007602052604090205490565b34801561059257600080fd5b506104f86105a1366004614016565b6113fd565b3480156105b257600080fd5b506104616105c136600461421a565b6114da565b3480156105d257600080fd5b50466104f8565b3480156105e557600080fd5b506105ee611558565b6040516103de919061424f565b34801561060757600080fd5b5061061b610616366004613fe8565b611758565b6040805160079390930b83529015156020830152016103de565b34801561064157600080fd5b506104f8600a81565b34801561065657600080fd5b506104616106653660046141bc565b6117fa565b34801561067657600080fd5b50610461610685366004613fe8565b611815565b34801561069657600080fd5b506103fc6040518060400160405280600481526020016343616e6f60e01b81525081565b3480156106c657600080fd5b506104616106d5366004614016565b61188b565b3480156106e657600080fd5b506104f86106f5366004613fe8565b6119b0565b34801561070657600080fd5b50610429610715366004613fe8565b611a86565b34801561072657600080fd5b506104f8666a94d74f43000081565b34801561074157600080fd5b506104616107503660046142d4565b611b20565b34801561076157600080fd5b506104f86107703660046141fd565b611c59565b34801561078157600080fd5b50610461611d33565b34801561079657600080fd5b506104f87f000000000000000000000000000000000000000000000000000000000000000081565b3480156107ca57600080fd5b506103fc611de4565b3480156107df57600080fd5b50610461611e00565b3480156107f457600080fd5b506008546001600160a01b0316610429565b34801561081257600080fd5b506104f8611e82565b34801561082757600080fd5b506103fc611e99565b34801561083c57600080fd5b5061046161084b3660046141fd565b611ea8565b61046161085e366004613fe8565b611f31565b34801561086f57600080fd5b5061046161087e366004614338565b61210a565b34801561088f57600080fd5b506104f861089e366004613fe8565b61211c565b3480156108af57600080fd5b50600954600160401b900461ffff166001146103d2565b3480156108d257600080fd5b50600954640100000000900461ffff166104f8565b3480156108f357600080fd5b506104f866b1a2bc2ec5000081565b34801561090e57600080fd5b506109176121ce565b6040516103de919061436d565b34801561093057600080fd5b5061094461093f366004613fe8565b612234565b6040516103de9291906143ba565b34801561095e57600080fd5b506009546601000000000000900461ffff166001146103d2565b34801561098457600080fd5b506104616109933660046143df565b612378565b3480156109a457600080fd5b506109b86109b33660046141fd565b612401565b6040516103de919061444b565b3480156109d157600080fd5b506104616109e0366004614016565b612533565b3480156109f157600080fd5b506103fc610a00366004613fe8565b612621565b348015610a1157600080fd5b50610461610a20366004613fe8565b61265b565b348015610a3157600080fd5b506103fc6127f8565b348015610a4657600080fd5b50610461612807565b610461610a5d366004614483565b61288a565b348015610a6e57600080fd5b50610461610a7d36600461421a565b612b65565b348015610a8e57600080fd5b506104f87f000000000000000000000000000000000000000000000000000000000000000081565b348015610ac257600080fd5b506103d2610ad136600461450e565b612c2f565b348015610ae257600080fd5b5060095462010000900461ffff166104f8565b348015610b0157600080fd5b506104f87f000000000000000000000000000000000000000000000000000000000000000081565b348015610b3557600080fd5b50610461610b443660046141fd565b612d1d565b348015610b5557600080fd5b50610461610b64366004614016565b612e45565b348015610b7557600080fd5b5060095461ffff166104f8565b348015610b8e57600080fd5b506010546104f8565b60006001600160e01b0319821663780e9d6360e01b1480610bbc5750610bbc82613035565b92915050565b606060008054610bd190614547565b80601f0160208091040260200160405190810160405280929190818152602001828054610bfd90614547565b8015610c4a5780601f10610c1f57610100808354040283529160200191610c4a565b820191906000526020600020905b815481529060010190602001808311610c2d57829003601f168201915b5050505050905090565b6000610c5f82613085565b610cc55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610cec82611a86565b9050806001600160a01b0316836001600160a01b03161415610d5a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cbc565b806001600160a01b0316610d6c6130cf565b6001600160a01b03161480610d885750610d8881610ad16130cf565b610dfa5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610cbc565b610e0483836130d9565b505050565b60408051606081810183526001600160a01b03881660008181526007602090815290859020548452830152918101869052610e478782878787613147565b610e9d5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610cbc565b6001600160a01b038716600090815260076020526040902054610ec1906001613237565b6001600160a01b0388166000908152600760205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610f1190899033908a9061457c565b60405180910390a1600080306001600160a01b0316888a604051602001610f399291906145a8565b60408051601f1981840301815290829052610f53916145df565b6000604051808303816000865af19150503d8060008114610f90576040519150601f19603f3d011682016040523d82523d6000602084013e610f95565b606091505b509150915081610fe75760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610cbc565b98975050505050505050565b600b546001600160a01b03166110076130cf565b6001600160a01b031614806110365750600c546001600160a01b031661102b6130cf565b6001600160a01b0316145b6110825760405162461bcd60e51b815260206004820152601160248201527f63616c6c6572206e6f74206172746973740000000000000000000000000000006044820152606401610cbc565b6009547f0000000000000000000000000000000000000000000000000000000000000000906110bc90839062010000900461ffff16614627565b111561110a5760405162461bcd60e51b815260206004820152601460248201527f6578636565642061727469737420737570706c790000000000000000000000006044820152606401610cbc565b6009805461ffff62010000808304821685019091160263ffff00001990911617905560005b81811015610e04576111408361324a565b5061114a8161463f565b905061112f565b6111596130cf565b836111648282613265565b61116d57600080fd5b8360070b600013158015611185575060598460070b13155b6111d15760405162461bcd60e51b815260206004820152601160248201527f696e76616c6964207261696e4d657465720000000000000000000000000000006044820152606401610cbc565b60008581526011602052604090819020805469ff00ffffffffffffffff19861515600160401b021669ffffffffffffffffffff199091161767ffffffffffffffff8716176901000000000000000000178155905133917f4e2cbfb80e3b7aa20b5a07f1442134eef4728a28241665a4017277c3106b05bd916112829189825254600781900b6020830152604081811c60ff90811615159184019190915260489190911c161515606082015260800190565b60405180910390a25050505050565b600254600090815b818110156112e85760006001600160a01b0316600282815481106112bf576112bf6145fb565b6000918252602090912001546001600160a01b0316146112e0578260010192505b600101611299565b505090565b6112fe6112f86130cf565b82613265565b6113645760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610cbc565b610e04838383613327565b600e805461137c90614547565b80601f01602080910402602001604051908101604052809291908181526020018280546113a890614547565b80156113f55780601f106113ca576101008083540402835291602001916113f5565b820191906000526020600020905b8154815290600101906020018083116113d857829003601f168201915b505050505081565b6002546000905b8082101561145e57836001600160a01b031660028381548110611429576114296145fb565b6000918252602090912001546001600160a01b03161415611453576000198301926114535761145e565b816001019150611404565b8082106114d35760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610cbc565b5092915050565b6114e26130cf565b6001600160a01b03166114fd6008546001600160a01b031690565b6001600160a01b0316146115415760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b805161155490600f906020840190613e00565b5050565b60105460609060009067ffffffffffffffff81111561157957611579614042565b6040519080825280602002602001820160405280156115be57816020015b60408051808201909152606080825260208201528152602001906001900390816115975790505b50905060005b601054811015611752576000601082815481106115e3576115e36145fb565b906000526020600020906002020190508060405180604001604052908160008201805461160f90614547565b80601f016020809104026020016040519081016040528092919081815260200182805461163b90614547565b80156116885780601f1061165d57610100808354040283529160200191611688565b820191906000526020600020905b81548152906001019060200180831161166b57829003601f168201915b505050505081526020016001820180546116a190614547565b80601f01602080910402602001604051908101604052809291908181526020018280546116cd90614547565b801561171a5780601f106116ef5761010080835404028352916020019161171a565b820191906000526020600020905b8154815290600101906020018083116116fd57829003601f168201915b505050505081525050838381518110611735576117356145fb565b6020026020010181905250508061174b9061463f565b90506115c4565b50919050565b6000808261176581613085565b6117a15760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610cbc565b6000848152601160205260409020546901000000000000000000900460ff166117d15760009150600092506117f4565b600084815260116020526040902054600781900b9350600160401b900460ff1691505b50915091565b610e0483838360405180602001604052806000815250612378565b600a546001600160a01b03166118296130cf565b6001600160a01b03161461187f5760405162461bcd60e51b815260206004820152601160248201527f63616c6c6572206e6f74206275726e65720000000000000000000000000000006044820152606401610cbc565b6118888161347d565b50565b6118936130cf565b6001600160a01b03166118ae6008546001600160a01b031690565b6001600160a01b0316146118f25760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b6009547f00000000000000000000000000000000000000000000000000000000000000009061192690839061ffff16614627565b11156119745760405162461bcd60e51b815260206004820152601560248201527f6578636565642067616c6c65727920737570706c7900000000000000000000006044820152606401610cbc565b6009805461ffff80821684011661ffff1990911617905560005b81811015610e045761199f8361324a565b506119a98161463f565b905061198e565b6002546000905b80821015611a115760006001600160a01b0316600283815481106119dd576119dd6145fb565b6000918252602090912001546001600160a01b031614611a0657600019830192611a0657611a11565b8160010191506119b7565b8082106117525760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610cbc565b6000611a9182613085565b611aef5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610cbc565b600060028381548110611b0457611b046145fb565b6000918252602090912001546001600160a01b03169392505050565b611b286130cf565b6001600160a01b0316611b436008546001600160a01b031690565b6001600160a01b031614611b875760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b600954600160401b900461ffff1615611bd75760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610cbc565b6040805180820190915282815260208082018390526010805460018101825560009190915282518051849360029093027f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720192611c38928492910190613e00565b506020828101518051611c519260018501920190613e00565b505050505050565b60006001600160a01b038216611cd75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610cbc565b60025460005b81811015611d2c57836001600160a01b031660028281548110611d0257611d026145fb565b6000918252602090912001546001600160a01b03161415611d24578260010192505b600101611cdd565b5050919050565b611d3b6130cf565b6001600160a01b0316611d566008546001600160a01b031690565b6001600160a01b031614611d9a5760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b6040518060c001604052806099815260200161479f6099913981565b611e086130cf565b6001600160a01b0316611e236008546001600160a01b031690565b6001600160a01b031614611e675760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b6009805469ffff00000000000000001916600160401b179055565b600254600090611e949060019061465a565b905090565b606060018054610bd190614547565b611eb06130cf565b6001600160a01b0316611ecb6008546001600160a01b031690565b6001600160a01b031614611f0f5760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600954600160401b900461ffff1615611f815760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610cbc565b6009546601000000000000900461ffff16600114611fe15760405162461bcd60e51b815260206004820152601460248201527f7075626c6963206d696e74206e6f74206c6976650000000000000000000000006044820152606401610cbc565b34611ff38266b1a2bc2ec50000614671565b146120355760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610cbc565b6009547f000000000000000000000000000000000000000000000000000000000000000090612071908390640100000000900461ffff16614627565b11156120bf5760405162461bcd60e51b815260206004820152601460248201527f657863656564207075626c696320737570706c790000000000000000000000006044820152606401610cbc565b6009805461ffff640100000000808304821685019091160265ffff000000001990911617905560005b81811015611554576120f93361324a565b506121038161463f565b90506120e8565b6115546121156130cf565b83836134fa565b60008161212881613085565b6121645760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610cbc565b604080517f0000000000000000000000000000000000000000000000000000000000000000602082015290810184905230606090811b6bffffffffffffffffffffffff19169082015260740160405160208183030381529060405280519060200120915050919050565b60606000600280548060200260200160405190810160405280929190818152602001828054801561222857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161220a575b50939695505050505050565b6010818154811061224457600080fd5b906000526020600020906002020160009150905080600001805461226790614547565b80601f016020809104026020016040519081016040528092919081815260200182805461229390614547565b80156122e05780601f106122b5576101008083540402835291602001916122e0565b820191906000526020600020905b8154815290600101906020018083116122c357829003601f168201915b5050505050908060010180546122f590614547565b80601f016020809104026020016040519081016040528092919081815260200182805461232190614547565b801561236e5780601f106123435761010080835404028352916020019161236e565b820191906000526020600020905b81548152906001019060200180831161235157829003601f168201915b5050505050905082565b6123896123836130cf565b83613265565b6123ef5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610cbc565b6123fb848484846135c9565b50505050565b6060600061240e83611c59565b90508061246c5760405162461bcd60e51b815260206004820152602660248201527f455243373231456e756d657261626c653a206f776e6572206f776e73206e6f20604482015265746f6b656e7360d01b6064820152608401610cbc565b60025460008267ffffffffffffffff81111561248a5761248a614042565b6040519080825280602002602001820160405280156124b3578160200160208202803683370190505b5090506000805b8381101561252857866001600160a01b0316600282815481106124df576124df6145fb565b6000918252602090912001546001600160a01b031614156125205780838380600101945081518110612513576125136145fb565b6020026020010181815250505b6001016124ba565b509095945050505050565b61253b6130cf565b6001600160a01b03166125566008546001600160a01b031690565b6001600160a01b03161461259a5760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b600281106125ea5760405162461bcd60e51b815260206004820152600d60248201527f696e76616c696420696e646578000000000000000000000000000000000000006044820152606401610cbc565b81600b82600281106125fe576125fe6145fb565b0180546001600160a01b0319166001600160a01b03929092169190911790555050565b606061262b6127f8565b61263483613647565b604051602001612645929190614690565b6040516020818303038152906040529050919050565b6126636130cf565b6001600160a01b031661267e6008546001600160a01b031690565b6001600160a01b0316146126c25760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b600954600160401b900461ffff16156127125760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610cbc565b601054811061272057600080fd5b601080546127309060019061465a565b81548110612740576127406145fb565b906000526020600020906002020160108281548110612761576127616145fb565b9060005260206000209060020201600082018160000190805461278390614547565b61278e929190613e84565b5060018201816001019080546127a390614547565b6127ae929190613e84565b5090505060108054806127c3576127c36146de565b600082815260208120600019909201916002830201906127e38282613eff565b6127f1600183016000613eff565b5050905550565b6060600f8054610bd190614547565b61280f6130cf565b6001600160a01b031661282a6008546001600160a01b031690565b6001600160a01b03161461286e5760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b6009805467ffff00000000000019166601000000000000179055565b600954600160401b900461ffff16156128da5760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610cbc565b346128ec82666a94d74f430000614671565b1461292e5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610cbc565b6009547f00000000000000000000000000000000000000000000000000000000000000009061296a908390640100000000900461ffff16614627565b11156129b85760405162461bcd60e51b815260206004820152601460248201527f657863656564207075626c696320737570706c790000000000000000000000006044820152606401610cbc565b336000908152600d602052604090205482906129d5908390614627565b1115612a235760405162461bcd60e51b815260206004820152601160248201527f65786365656420616c6c6f636174696f6e0000000000000000000000000000006044820152606401610cbc565b612a638585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061375d92505050565b612aaf5760405162461bcd60e51b815260206004820152600e60248201527f696e76616c6964207369676e65720000000000000000000000000000000000006044820152606401610cbc565b612abb8533848461378f565b612b075760405162461bcd60e51b815260206004820152600c60248201527f696e76616c6964206861736800000000000000000000000000000000000000006044820152606401610cbc565b6009805461ffff640100000000808304821685019091160265ffff0000000019909116179055336000908152600d602052604081208054830190555b81811015611c5157612b543361324a565b50612b5e8161463f565b9050612b43565b612b6d6130cf565b6001600160a01b0316612b886008546001600160a01b031690565b6001600160a01b031614612bcc5760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b600954600160401b900461ffff1615612c1c5760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610cbc565b805161155490600e906020840190613e00565b60405163c455279160e01b81526001600160a01b0383811660048301526000917f000000000000000000000000000000000000000000000000000000000000000091848116919083169063c45527919060240160206040518083038186803b158015612c9a57600080fd5b505afa158015612cae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cd291906146f4565b6001600160a01b03161415612ceb576001915050610bbc565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b612d256130cf565b6001600160a01b0316612d406008546001600160a01b031690565b6001600160a01b031614612d845760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b6001600160a01b038116612de95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cbc565b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b612e4d6130cf565b6001600160a01b0316612e686008546001600160a01b031690565b6001600160a01b031614612eac5760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b60008111612efc5760405162461bcd60e51b815260206004820152600c60248201527f616d6f756e7420656d70747900000000000000000000000000000000000000006044820152606401610cbc565b47811115612f4c5760405162461bcd60e51b815260206004820152601660248201527f616d6f756e7420657863656564732062616c616e6365000000000000000000006044820152606401610cbc565b6001600160a01b038216612fa25760405162461bcd60e51b815260206004820152600c60248201527f61646472657373206e756c6c00000000000000000000000000000000000000006044820152606401610cbc565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610e04573d6000803e3d6000fd5b60003330141561302f57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506130329050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b148061306657506001600160e01b03198216635b5e139f60e01b145b80610bbc57506301ffc9a760e01b6001600160e01b0319831614610bbc565b60025460009082108015610bbc575060006001600160a01b0316600283815481106130b2576130b26145fb565b6000918252602090912001546001600160a01b0316141592915050565b6000611e94612fd8565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061310e82611a86565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166131ad5760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610cbc565b60016131c06131bb876137ea565b613867565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa15801561320e573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006132438284614627565b9392505050565b6000610bbc8260405180602001604052806000815250613897565b600061327082613085565b6132d15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cbc565b60006132dc83611a86565b9050806001600160a01b0316846001600160a01b031614806133175750836001600160a01b031661330c84610c54565b6001600160a01b0316145b80612d155750612d158185612c2f565b826001600160a01b031661333a82611a86565b6001600160a01b0316146133a25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610cbc565b6001600160a01b0382166134045760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cbc565b61340f6000826130d9565b8160028281548110613423576134236145fb565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600061348882611a86565b90506134956000836130d9565b600282815481106134a8576134a86145fb565b6000918252602082200180546001600160a01b03191690556040518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b816001600160a01b0316836001600160a01b0316141561355c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cbc565b6001600160a01b03838116600081815260046020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6135d4848484613327565b6135e084848484613918565b6123fb5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610cbc565b60608161366b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613695578061367f8161463f565b915061368e9050600a83614727565b915061366f565b60008167ffffffffffffffff8111156136b0576136b0614042565b6040519080825280601f01601f1916602001820160405280156136da576020820181803683370190505b5090505b8415612d15576136ef60018361465a565b91506136fc600a8661473b565b613707906030614627565b60f81b81838151811061371c5761371c6145fb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613756600a86614727565b94506136de565b60007329a64385e02e7018f6ec71e3bf032790fe42bf2761377e8484613a74565b6001600160a01b0316149392505050565b6040516bffffffffffffffffffffffff19606085901b166020820152603481018390526054810182905260009085906137e09060740160405160208183030381529060405280519060200120613b43565b1495945050505050565b6000604051806080016040528060438152602001614838604391398051602091820120835184830151604080870151805190860120905161384a950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061387260065490565b60405161190160f01b602082015260228101919091526042810183905260620161384a565b60006138a283613b7e565b90506138b16000848385613918565b610bbc5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610cbc565b60006001600160a01b0384163b15613a6c57836001600160a01b031663150b7a026139416130cf565b8786866040518563ffffffff1660e01b8152600401613963949392919061474f565b602060405180830381600087803b15801561397d57600080fd5b505af19250505080156139ad575060408051601f3d908101601f191682019092526139aa91810190614781565b60015b613a52573d8080156139db576040519150601f19603f3d011682016040523d82523d6000602084013e6139e0565b606091505b508051613a4a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610cbc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612d15565b506001612d15565b600080600080845160411415613a9e5750505060208201516040830151606084015160001a613b2d565b845160401415613ae55750505060408201516020830151907f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81169060ff1c601b01613b2d565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610cbc565b613b3986828585613c57565b9695505050505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c0161384a565b60006001600160a01b038216613bd65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cbc565b506002546002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115613cd45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610cbc565b8360ff16601b1480613ce957508360ff16601c145b613d405760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610cbc565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015613d94573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613df75760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610cbc565b95945050505050565b828054613e0c90614547565b90600052602060002090601f016020900481019282613e2e5760008555613e74565b82601f10613e4757805160ff1916838001178555613e74565b82800160010185558215613e74579182015b82811115613e74578251825591602001919060010190613e59565b50613e80929150613f35565b5090565b828054613e9090614547565b90600052602060002090601f016020900481019282613eb25760008555613e74565b82601f10613ec35780548555613e74565b82800160010185558215613e7457600052602060002091601f016020900482015b82811115613e74578254825591600101919060010190613ee4565b508054613f0b90614547565b6000825580601f10613f1b575050565b601f01602090049060005260206000209081019061188891905b5b80821115613e805760008155600101613f36565b6001600160e01b03198116811461188857600080fd5b600060208284031215613f7257600080fd5b813561324381613f4a565b60005b83811015613f98578181015183820152602001613f80565b838111156123fb5750506000910152565b60008151808452613fc1816020860160208601613f7d565b601f01601f19169290920160200192915050565b6020815260006132436020830184613fa9565b600060208284031215613ffa57600080fd5b5035919050565b6001600160a01b038116811461188857600080fd5b6000806040838503121561402957600080fd5b823561403481614001565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261406957600080fd5b813567ffffffffffffffff8082111561408457614084614042565b604051601f8301601f19908116603f011681019082821181831017156140ac576140ac614042565b816040528381528660208588010111156140c557600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a086880312156140fd57600080fd5b853561410881614001565b9450602086013567ffffffffffffffff81111561412457600080fd5b61413088828901614058565b9450506040860135925060608601359150608086013560ff8116811461415557600080fd5b809150509295509295909350565b8035801515811461417357600080fd5b919050565b60008060006060848603121561418d57600080fd5b8335925060208401358060070b81146141a557600080fd5b91506141b360408501614163565b90509250925092565b6000806000606084860312156141d157600080fd5b83356141dc81614001565b925060208401356141ec81614001565b929592945050506040919091013590565b60006020828403121561420f57600080fd5b813561324381614001565b60006020828403121561422c57600080fd5b813567ffffffffffffffff81111561424357600080fd5b612d1584828501614058565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b838110156142c657888303603f190185528151805187855261429a88860182613fa9565b91890151858303868b01529190506142b28183613fa9565b968901969450505090860190600101614276565b509098975050505050505050565b600080604083850312156142e757600080fd5b823567ffffffffffffffff808211156142ff57600080fd5b61430b86838701614058565b9350602085013591508082111561432157600080fd5b5061432e85828601614058565b9150509250929050565b6000806040838503121561434b57600080fd5b823561435681614001565b915061436460208401614163565b90509250929050565b6020808252825182820181905260009190848201906040850190845b818110156143ae5783516001600160a01b031683529284019291840191600101614389565b50909695505050505050565b6040815260006143cd6040830185613fa9565b8281036020840152613df78185613fa9565b600080600080608085870312156143f557600080fd5b843561440081614001565b9350602085013561441081614001565b925060408501359150606085013567ffffffffffffffff81111561443357600080fd5b61443f87828801614058565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b818110156143ae57835183529284019291840191600101614467565b60008060008060006080868803121561449b57600080fd5b85359450602086013567ffffffffffffffff808211156144ba57600080fd5b818801915088601f8301126144ce57600080fd5b8135818111156144dd57600080fd5b8960208285010111156144ef57600080fd5b9699602092909201985095966040810135965060600135945092505050565b6000806040838503121561452157600080fd5b823561452c81614001565b9150602083013561453c81614001565b809150509250929050565b600181811c9082168061455b57607f821691505b6020821081141561175257634e487b7160e01b600052602260045260246000fd5b60006001600160a01b03808616835280851660208401525060606040830152613df76060830184613fa9565b600083516145ba818460208801613f7d565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600082516145f1818460208701613f7d565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561463a5761463a614611565b500190565b600060001982141561465357614653614611565b5060010190565b60008282101561466c5761466c614611565b500390565b600081600019048311821515161561468b5761468b614611565b500290565b600083516146a2818460208801613f7d565b602f60f81b90830190815283516146c0816001840160208801613f7d565b642f6d65746160d81b60019290910191820152600601949350505050565b634e487b7160e01b600052603160045260246000fd5b60006020828403121561470657600080fd5b815161324381614001565b634e487b7160e01b600052601260045260246000fd5b60008261473657614736614711565b500490565b60008261474a5761474a614711565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613b396080830184613fa9565b60006020828403121561479357600080fd5b815161324381613f4a56fe506978656c20436c6f7564732061696d20746f206372656174652061206e657720666f726d206f662063756c74757265206261736564206f6e20612073686172656420616573746865746963207574696c697a696e6720646563656e7472616c697a6564206f776e657273686970206f6620636c6f756473207769746820746865206f7074696f6e20746f20636f6e74726f6c207261696e2e4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220504702e5fb3d59152273d43cfd81520f0424b6c93c70796029650a6df203242764736f6c63430008090033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c742900000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000046f0000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000000f574b2765bc9b79f990e14f08132e1577b46ae9ba621e912135f1e4948102f7ee000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001070352d76312e342e302e6d696e2e6a7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d65596b4435614c386465395a4778567244484e316a773267704a654d7a574e3848767152577237554e444c53000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68747470733a2f2f67656e65746963636861696e2e696f2f6170692f70726f6a6563742f31302f746f6b656e0000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103ad5760003560e01c8063753868e3116101e7578063bba7723e1161010d578063e527c6dd116100a0578063f2fde38b1161006f578063f2fde38b14610b29578063f3fef3a314610b49578063f593bd5314610b69578063f8f0b80e14610b8257600080fd5b8063e527c6dd14610a82578063e985e9c514610ab6578063ed329fa814610ad6578063ef3c662414610af557600080fd5b8063d547cfb7116100dc578063d547cfb714610a25578063d62f3b1c14610a3a578063d81bc66314610a4f578063e403f1a714610a6257600080fd5b8063bba7723e14610998578063c6ed3d68146109c5578063c87b56dd146109e5578063c93ed70a14610a0557600080fd5b8063a386439711610185578063affe39c111610154578063affe39c114610902578063b1fbe72d14610924578063b7f751d814610952578063b88d4fde1461097857600080fd5b8063a386439714610883578063a4e2d634146108a3578063a4f4f8af146108c6578063a945bf80146108e757600080fd5b806395d89b41116101c157806395d89b411461081b5780639df806d614610830578063a0712d6814610850578063a22cb4651461086357600080fd5b8063753868e3146107d35780638da5cb5b146107e857806391ba317a1461080657600080fd5b80633408e470116102d75780634f6ccce71161026a57806370a082311161023957806370a0823114610755578063715018a61461077557806371dedace1461078a5780637284e416146107be57600080fd5b80634f6ccce7146106da5780636352211e146106fa578063636e746b1461071a578063638e19b41461073557600080fd5b806342842e0e116102a657806342842e0e1461064a57806342966c681461066a57806343bc16121461068a57806344be774f146106ba57600080fd5b80633408e470146105c65780633e02bc38146105d95780633e4f49e6146105fb5780633fafa1271461063557600080fd5b806317ce96081161034f57806324c12bf61161031e57806324c12bf61461053b5780632d0335ab146105505780632f745c591461058657806330176e13146105a657600080fd5b806317ce9608146104c357806318160ddd146104e357806320379ee51461050657806323b872dd1461051b57600080fd5b8063095ea7b31161038b578063095ea7b3146104415780630c53c51c146104635780630f7e59701461047657806314d7d517146104a357600080fd5b806301ffc9a7146103b257806306fdde03146103e7578063081812fc14610409575b600080fd5b3480156103be57600080fd5b506103d26103cd366004613f60565b610b97565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506103fc610bc2565b6040516103de9190613fd5565b34801561041557600080fd5b50610429610424366004613fe8565b610c54565b6040516001600160a01b0390911681526020016103de565b34801561044d57600080fd5b5061046161045c366004614016565b610ce1565b005b6103fc6104713660046140e5565b610e09565b34801561048257600080fd5b506103fc604051806040016040528060018152602001603160f81b81525081565b3480156104af57600080fd5b506104616104be366004614016565b610ff3565b3480156104cf57600080fd5b506104616104de366004614178565b611151565b3480156104ef57600080fd5b506104f8611291565b6040519081526020016103de565b34801561051257600080fd5b506006546104f8565b34801561052757600080fd5b506104616105363660046141bc565b6112ed565b34801561054757600080fd5b506103fc61136f565b34801561055c57600080fd5b506104f861056b3660046141fd565b6001600160a01b031660009081526007602052604090205490565b34801561059257600080fd5b506104f86105a1366004614016565b6113fd565b3480156105b257600080fd5b506104616105c136600461421a565b6114da565b3480156105d257600080fd5b50466104f8565b3480156105e557600080fd5b506105ee611558565b6040516103de919061424f565b34801561060757600080fd5b5061061b610616366004613fe8565b611758565b6040805160079390930b83529015156020830152016103de565b34801561064157600080fd5b506104f8600a81565b34801561065657600080fd5b506104616106653660046141bc565b6117fa565b34801561067657600080fd5b50610461610685366004613fe8565b611815565b34801561069657600080fd5b506103fc6040518060400160405280600481526020016343616e6f60e01b81525081565b3480156106c657600080fd5b506104616106d5366004614016565b61188b565b3480156106e657600080fd5b506104f86106f5366004613fe8565b6119b0565b34801561070657600080fd5b50610429610715366004613fe8565b611a86565b34801561072657600080fd5b506104f8666a94d74f43000081565b34801561074157600080fd5b506104616107503660046142d4565b611b20565b34801561076157600080fd5b506104f86107703660046141fd565b611c59565b34801561078157600080fd5b50610461611d33565b34801561079657600080fd5b506104f87f000000000000000000000000000000000000000000000000000000000000000f81565b3480156107ca57600080fd5b506103fc611de4565b3480156107df57600080fd5b50610461611e00565b3480156107f457600080fd5b506008546001600160a01b0316610429565b34801561081257600080fd5b506104f8611e82565b34801561082757600080fd5b506103fc611e99565b34801561083c57600080fd5b5061046161084b3660046141fd565b611ea8565b61046161085e366004613fe8565b611f31565b34801561086f57600080fd5b5061046161087e366004614338565b61210a565b34801561088f57600080fd5b506104f861089e366004613fe8565b61211c565b3480156108af57600080fd5b50600954600160401b900461ffff166001146103d2565b3480156108d257600080fd5b50600954640100000000900461ffff166104f8565b3480156108f357600080fd5b506104f866b1a2bc2ec5000081565b34801561090e57600080fd5b506109176121ce565b6040516103de919061436d565b34801561093057600080fd5b5061094461093f366004613fe8565b612234565b6040516103de9291906143ba565b34801561095e57600080fd5b506009546601000000000000900461ffff166001146103d2565b34801561098457600080fd5b506104616109933660046143df565b612378565b3480156109a457600080fd5b506109b86109b33660046141fd565b612401565b6040516103de919061444b565b3480156109d157600080fd5b506104616109e0366004614016565b612533565b3480156109f157600080fd5b506103fc610a00366004613fe8565b612621565b348015610a1157600080fd5b50610461610a20366004613fe8565b61265b565b348015610a3157600080fd5b506103fc6127f8565b348015610a4657600080fd5b50610461612807565b610461610a5d366004614483565b61288a565b348015610a6e57600080fd5b50610461610a7d36600461421a565b612b65565b348015610a8e57600080fd5b506104f87f000000000000000000000000000000000000000000000000000000000000046f81565b348015610ac257600080fd5b506103d2610ad136600461450e565b612c2f565b348015610ae257600080fd5b5060095462010000900461ffff166104f8565b348015610b0157600080fd5b506104f87f000000000000000000000000000000000000000000000000000000000000003281565b348015610b3557600080fd5b50610461610b443660046141fd565b612d1d565b348015610b5557600080fd5b50610461610b64366004614016565b612e45565b348015610b7557600080fd5b5060095461ffff166104f8565b348015610b8e57600080fd5b506010546104f8565b60006001600160e01b0319821663780e9d6360e01b1480610bbc5750610bbc82613035565b92915050565b606060008054610bd190614547565b80601f0160208091040260200160405190810160405280929190818152602001828054610bfd90614547565b8015610c4a5780601f10610c1f57610100808354040283529160200191610c4a565b820191906000526020600020905b815481529060010190602001808311610c2d57829003601f168201915b5050505050905090565b6000610c5f82613085565b610cc55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610cec82611a86565b9050806001600160a01b0316836001600160a01b03161415610d5a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cbc565b806001600160a01b0316610d6c6130cf565b6001600160a01b03161480610d885750610d8881610ad16130cf565b610dfa5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610cbc565b610e0483836130d9565b505050565b60408051606081810183526001600160a01b03881660008181526007602090815290859020548452830152918101869052610e478782878787613147565b610e9d5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610cbc565b6001600160a01b038716600090815260076020526040902054610ec1906001613237565b6001600160a01b0388166000908152600760205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610f1190899033908a9061457c565b60405180910390a1600080306001600160a01b0316888a604051602001610f399291906145a8565b60408051601f1981840301815290829052610f53916145df565b6000604051808303816000865af19150503d8060008114610f90576040519150601f19603f3d011682016040523d82523d6000602084013e610f95565b606091505b509150915081610fe75760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610cbc565b98975050505050505050565b600b546001600160a01b03166110076130cf565b6001600160a01b031614806110365750600c546001600160a01b031661102b6130cf565b6001600160a01b0316145b6110825760405162461bcd60e51b815260206004820152601160248201527f63616c6c6572206e6f74206172746973740000000000000000000000000000006044820152606401610cbc565b6009547f0000000000000000000000000000000000000000000000000000000000000032906110bc90839062010000900461ffff16614627565b111561110a5760405162461bcd60e51b815260206004820152601460248201527f6578636565642061727469737420737570706c790000000000000000000000006044820152606401610cbc565b6009805461ffff62010000808304821685019091160263ffff00001990911617905560005b81811015610e04576111408361324a565b5061114a8161463f565b905061112f565b6111596130cf565b836111648282613265565b61116d57600080fd5b8360070b600013158015611185575060598460070b13155b6111d15760405162461bcd60e51b815260206004820152601160248201527f696e76616c6964207261696e4d657465720000000000000000000000000000006044820152606401610cbc565b60008581526011602052604090819020805469ff00ffffffffffffffff19861515600160401b021669ffffffffffffffffffff199091161767ffffffffffffffff8716176901000000000000000000178155905133917f4e2cbfb80e3b7aa20b5a07f1442134eef4728a28241665a4017277c3106b05bd916112829189825254600781900b6020830152604081811c60ff90811615159184019190915260489190911c161515606082015260800190565b60405180910390a25050505050565b600254600090815b818110156112e85760006001600160a01b0316600282815481106112bf576112bf6145fb565b6000918252602090912001546001600160a01b0316146112e0578260010192505b600101611299565b505090565b6112fe6112f86130cf565b82613265565b6113645760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610cbc565b610e04838383613327565b600e805461137c90614547565b80601f01602080910402602001604051908101604052809291908181526020018280546113a890614547565b80156113f55780601f106113ca576101008083540402835291602001916113f5565b820191906000526020600020905b8154815290600101906020018083116113d857829003601f168201915b505050505081565b6002546000905b8082101561145e57836001600160a01b031660028381548110611429576114296145fb565b6000918252602090912001546001600160a01b03161415611453576000198301926114535761145e565b816001019150611404565b8082106114d35760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610cbc565b5092915050565b6114e26130cf565b6001600160a01b03166114fd6008546001600160a01b031690565b6001600160a01b0316146115415760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b805161155490600f906020840190613e00565b5050565b60105460609060009067ffffffffffffffff81111561157957611579614042565b6040519080825280602002602001820160405280156115be57816020015b60408051808201909152606080825260208201528152602001906001900390816115975790505b50905060005b601054811015611752576000601082815481106115e3576115e36145fb565b906000526020600020906002020190508060405180604001604052908160008201805461160f90614547565b80601f016020809104026020016040519081016040528092919081815260200182805461163b90614547565b80156116885780601f1061165d57610100808354040283529160200191611688565b820191906000526020600020905b81548152906001019060200180831161166b57829003601f168201915b505050505081526020016001820180546116a190614547565b80601f01602080910402602001604051908101604052809291908181526020018280546116cd90614547565b801561171a5780601f106116ef5761010080835404028352916020019161171a565b820191906000526020600020905b8154815290600101906020018083116116fd57829003601f168201915b505050505081525050838381518110611735576117356145fb565b6020026020010181905250508061174b9061463f565b90506115c4565b50919050565b6000808261176581613085565b6117a15760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610cbc565b6000848152601160205260409020546901000000000000000000900460ff166117d15760009150600092506117f4565b600084815260116020526040902054600781900b9350600160401b900460ff1691505b50915091565b610e0483838360405180602001604052806000815250612378565b600a546001600160a01b03166118296130cf565b6001600160a01b03161461187f5760405162461bcd60e51b815260206004820152601160248201527f63616c6c6572206e6f74206275726e65720000000000000000000000000000006044820152606401610cbc565b6118888161347d565b50565b6118936130cf565b6001600160a01b03166118ae6008546001600160a01b031690565b6001600160a01b0316146118f25760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b6009547f000000000000000000000000000000000000000000000000000000000000000f9061192690839061ffff16614627565b11156119745760405162461bcd60e51b815260206004820152601560248201527f6578636565642067616c6c65727920737570706c7900000000000000000000006044820152606401610cbc565b6009805461ffff80821684011661ffff1990911617905560005b81811015610e045761199f8361324a565b506119a98161463f565b905061198e565b6002546000905b80821015611a115760006001600160a01b0316600283815481106119dd576119dd6145fb565b6000918252602090912001546001600160a01b031614611a0657600019830192611a0657611a11565b8160010191506119b7565b8082106117525760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610cbc565b6000611a9182613085565b611aef5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610cbc565b600060028381548110611b0457611b046145fb565b6000918252602090912001546001600160a01b03169392505050565b611b286130cf565b6001600160a01b0316611b436008546001600160a01b031690565b6001600160a01b031614611b875760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b600954600160401b900461ffff1615611bd75760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610cbc565b6040805180820190915282815260208082018390526010805460018101825560009190915282518051849360029093027f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720192611c38928492910190613e00565b506020828101518051611c519260018501920190613e00565b505050505050565b60006001600160a01b038216611cd75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610cbc565b60025460005b81811015611d2c57836001600160a01b031660028281548110611d0257611d026145fb565b6000918252602090912001546001600160a01b03161415611d24578260010192505b600101611cdd565b5050919050565b611d3b6130cf565b6001600160a01b0316611d566008546001600160a01b031690565b6001600160a01b031614611d9a5760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b6040518060c001604052806099815260200161479f6099913981565b611e086130cf565b6001600160a01b0316611e236008546001600160a01b031690565b6001600160a01b031614611e675760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b6009805469ffff00000000000000001916600160401b179055565b600254600090611e949060019061465a565b905090565b606060018054610bd190614547565b611eb06130cf565b6001600160a01b0316611ecb6008546001600160a01b031690565b6001600160a01b031614611f0f5760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600954600160401b900461ffff1615611f815760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610cbc565b6009546601000000000000900461ffff16600114611fe15760405162461bcd60e51b815260206004820152601460248201527f7075626c6963206d696e74206e6f74206c6976650000000000000000000000006044820152606401610cbc565b34611ff38266b1a2bc2ec50000614671565b146120355760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610cbc565b6009547f000000000000000000000000000000000000000000000000000000000000046f90612071908390640100000000900461ffff16614627565b11156120bf5760405162461bcd60e51b815260206004820152601460248201527f657863656564207075626c696320737570706c790000000000000000000000006044820152606401610cbc565b6009805461ffff640100000000808304821685019091160265ffff000000001990911617905560005b81811015611554576120f93361324a565b506121038161463f565b90506120e8565b6115546121156130cf565b83836134fa565b60008161212881613085565b6121645760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610cbc565b604080517f574b2765bc9b79f990e14f08132e1577b46ae9ba621e912135f1e4948102f7ee602082015290810184905230606090811b6bffffffffffffffffffffffff19169082015260740160405160208183030381529060405280519060200120915050919050565b60606000600280548060200260200160405190810160405280929190818152602001828054801561222857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161220a575b50939695505050505050565b6010818154811061224457600080fd5b906000526020600020906002020160009150905080600001805461226790614547565b80601f016020809104026020016040519081016040528092919081815260200182805461229390614547565b80156122e05780601f106122b5576101008083540402835291602001916122e0565b820191906000526020600020905b8154815290600101906020018083116122c357829003601f168201915b5050505050908060010180546122f590614547565b80601f016020809104026020016040519081016040528092919081815260200182805461232190614547565b801561236e5780601f106123435761010080835404028352916020019161236e565b820191906000526020600020905b81548152906001019060200180831161235157829003601f168201915b5050505050905082565b6123896123836130cf565b83613265565b6123ef5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610cbc565b6123fb848484846135c9565b50505050565b6060600061240e83611c59565b90508061246c5760405162461bcd60e51b815260206004820152602660248201527f455243373231456e756d657261626c653a206f776e6572206f776e73206e6f20604482015265746f6b656e7360d01b6064820152608401610cbc565b60025460008267ffffffffffffffff81111561248a5761248a614042565b6040519080825280602002602001820160405280156124b3578160200160208202803683370190505b5090506000805b8381101561252857866001600160a01b0316600282815481106124df576124df6145fb565b6000918252602090912001546001600160a01b031614156125205780838380600101945081518110612513576125136145fb565b6020026020010181815250505b6001016124ba565b509095945050505050565b61253b6130cf565b6001600160a01b03166125566008546001600160a01b031690565b6001600160a01b03161461259a5760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b600281106125ea5760405162461bcd60e51b815260206004820152600d60248201527f696e76616c696420696e646578000000000000000000000000000000000000006044820152606401610cbc565b81600b82600281106125fe576125fe6145fb565b0180546001600160a01b0319166001600160a01b03929092169190911790555050565b606061262b6127f8565b61263483613647565b604051602001612645929190614690565b6040516020818303038152906040529050919050565b6126636130cf565b6001600160a01b031661267e6008546001600160a01b031690565b6001600160a01b0316146126c25760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b600954600160401b900461ffff16156127125760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610cbc565b601054811061272057600080fd5b601080546127309060019061465a565b81548110612740576127406145fb565b906000526020600020906002020160108281548110612761576127616145fb565b9060005260206000209060020201600082018160000190805461278390614547565b61278e929190613e84565b5060018201816001019080546127a390614547565b6127ae929190613e84565b5090505060108054806127c3576127c36146de565b600082815260208120600019909201916002830201906127e38282613eff565b6127f1600183016000613eff565b5050905550565b6060600f8054610bd190614547565b61280f6130cf565b6001600160a01b031661282a6008546001600160a01b031690565b6001600160a01b03161461286e5760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b6009805467ffff00000000000019166601000000000000179055565b600954600160401b900461ffff16156128da5760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610cbc565b346128ec82666a94d74f430000614671565b1461292e5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610cbc565b6009547f000000000000000000000000000000000000000000000000000000000000046f9061296a908390640100000000900461ffff16614627565b11156129b85760405162461bcd60e51b815260206004820152601460248201527f657863656564207075626c696320737570706c790000000000000000000000006044820152606401610cbc565b336000908152600d602052604090205482906129d5908390614627565b1115612a235760405162461bcd60e51b815260206004820152601160248201527f65786365656420616c6c6f636174696f6e0000000000000000000000000000006044820152606401610cbc565b612a638585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061375d92505050565b612aaf5760405162461bcd60e51b815260206004820152600e60248201527f696e76616c6964207369676e65720000000000000000000000000000000000006044820152606401610cbc565b612abb8533848461378f565b612b075760405162461bcd60e51b815260206004820152600c60248201527f696e76616c6964206861736800000000000000000000000000000000000000006044820152606401610cbc565b6009805461ffff640100000000808304821685019091160265ffff0000000019909116179055336000908152600d602052604081208054830190555b81811015611c5157612b543361324a565b50612b5e8161463f565b9050612b43565b612b6d6130cf565b6001600160a01b0316612b886008546001600160a01b031690565b6001600160a01b031614612bcc5760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b600954600160401b900461ffff1615612c1c5760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610cbc565b805161155490600e906020840190613e00565b60405163c455279160e01b81526001600160a01b0383811660048301526000917f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c191848116919083169063c45527919060240160206040518083038186803b158015612c9a57600080fd5b505afa158015612cae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cd291906146f4565b6001600160a01b03161415612ceb576001915050610bbc565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b612d256130cf565b6001600160a01b0316612d406008546001600160a01b031690565b6001600160a01b031614612d845760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b6001600160a01b038116612de95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cbc565b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b612e4d6130cf565b6001600160a01b0316612e686008546001600160a01b031690565b6001600160a01b031614612eac5760405162461bcd60e51b8152602060048201819052602482015260008051602061487b8339815191526044820152606401610cbc565b60008111612efc5760405162461bcd60e51b815260206004820152600c60248201527f616d6f756e7420656d70747900000000000000000000000000000000000000006044820152606401610cbc565b47811115612f4c5760405162461bcd60e51b815260206004820152601660248201527f616d6f756e7420657863656564732062616c616e6365000000000000000000006044820152606401610cbc565b6001600160a01b038216612fa25760405162461bcd60e51b815260206004820152600c60248201527f61646472657373206e756c6c00000000000000000000000000000000000000006044820152606401610cbc565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610e04573d6000803e3d6000fd5b60003330141561302f57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506130329050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b148061306657506001600160e01b03198216635b5e139f60e01b145b80610bbc57506301ffc9a760e01b6001600160e01b0319831614610bbc565b60025460009082108015610bbc575060006001600160a01b0316600283815481106130b2576130b26145fb565b6000918252602090912001546001600160a01b0316141592915050565b6000611e94612fd8565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061310e82611a86565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166131ad5760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610cbc565b60016131c06131bb876137ea565b613867565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa15801561320e573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006132438284614627565b9392505050565b6000610bbc8260405180602001604052806000815250613897565b600061327082613085565b6132d15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cbc565b60006132dc83611a86565b9050806001600160a01b0316846001600160a01b031614806133175750836001600160a01b031661330c84610c54565b6001600160a01b0316145b80612d155750612d158185612c2f565b826001600160a01b031661333a82611a86565b6001600160a01b0316146133a25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610cbc565b6001600160a01b0382166134045760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cbc565b61340f6000826130d9565b8160028281548110613423576134236145fb565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600061348882611a86565b90506134956000836130d9565b600282815481106134a8576134a86145fb565b6000918252602082200180546001600160a01b03191690556040518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b816001600160a01b0316836001600160a01b0316141561355c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cbc565b6001600160a01b03838116600081815260046020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6135d4848484613327565b6135e084848484613918565b6123fb5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610cbc565b60608161366b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613695578061367f8161463f565b915061368e9050600a83614727565b915061366f565b60008167ffffffffffffffff8111156136b0576136b0614042565b6040519080825280601f01601f1916602001820160405280156136da576020820181803683370190505b5090505b8415612d15576136ef60018361465a565b91506136fc600a8661473b565b613707906030614627565b60f81b81838151811061371c5761371c6145fb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613756600a86614727565b94506136de565b60007329a64385e02e7018f6ec71e3bf032790fe42bf2761377e8484613a74565b6001600160a01b0316149392505050565b6040516bffffffffffffffffffffffff19606085901b166020820152603481018390526054810182905260009085906137e09060740160405160208183030381529060405280519060200120613b43565b1495945050505050565b6000604051806080016040528060438152602001614838604391398051602091820120835184830151604080870151805190860120905161384a950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061387260065490565b60405161190160f01b602082015260228101919091526042810183905260620161384a565b60006138a283613b7e565b90506138b16000848385613918565b610bbc5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610cbc565b60006001600160a01b0384163b15613a6c57836001600160a01b031663150b7a026139416130cf565b8786866040518563ffffffff1660e01b8152600401613963949392919061474f565b602060405180830381600087803b15801561397d57600080fd5b505af19250505080156139ad575060408051601f3d908101601f191682019092526139aa91810190614781565b60015b613a52573d8080156139db576040519150601f19603f3d011682016040523d82523d6000602084013e6139e0565b606091505b508051613a4a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610cbc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612d15565b506001612d15565b600080600080845160411415613a9e5750505060208201516040830151606084015160001a613b2d565b845160401415613ae55750505060408201516020830151907f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81169060ff1c601b01613b2d565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610cbc565b613b3986828585613c57565b9695505050505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c0161384a565b60006001600160a01b038216613bd65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cbc565b506002546002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115613cd45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610cbc565b8360ff16601b1480613ce957508360ff16601c145b613d405760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610cbc565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015613d94573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613df75760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610cbc565b95945050505050565b828054613e0c90614547565b90600052602060002090601f016020900481019282613e2e5760008555613e74565b82601f10613e4757805160ff1916838001178555613e74565b82800160010185558215613e74579182015b82811115613e74578251825591602001919060010190613e59565b50613e80929150613f35565b5090565b828054613e9090614547565b90600052602060002090601f016020900481019282613eb25760008555613e74565b82601f10613ec35780548555613e74565b82800160010185558215613e7457600052602060002091601f016020900482015b82811115613e74578254825591600101919060010190613ee4565b508054613f0b90614547565b6000825580601f10613f1b575050565b601f01602090049060005260206000209081019061188891905b5b80821115613e805760008155600101613f36565b6001600160e01b03198116811461188857600080fd5b600060208284031215613f7257600080fd5b813561324381613f4a565b60005b83811015613f98578181015183820152602001613f80565b838111156123fb5750506000910152565b60008151808452613fc1816020860160208601613f7d565b601f01601f19169290920160200192915050565b6020815260006132436020830184613fa9565b600060208284031215613ffa57600080fd5b5035919050565b6001600160a01b038116811461188857600080fd5b6000806040838503121561402957600080fd5b823561403481614001565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261406957600080fd5b813567ffffffffffffffff8082111561408457614084614042565b604051601f8301601f19908116603f011681019082821181831017156140ac576140ac614042565b816040528381528660208588010111156140c557600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a086880312156140fd57600080fd5b853561410881614001565b9450602086013567ffffffffffffffff81111561412457600080fd5b61413088828901614058565b9450506040860135925060608601359150608086013560ff8116811461415557600080fd5b809150509295509295909350565b8035801515811461417357600080fd5b919050565b60008060006060848603121561418d57600080fd5b8335925060208401358060070b81146141a557600080fd5b91506141b360408501614163565b90509250925092565b6000806000606084860312156141d157600080fd5b83356141dc81614001565b925060208401356141ec81614001565b929592945050506040919091013590565b60006020828403121561420f57600080fd5b813561324381614001565b60006020828403121561422c57600080fd5b813567ffffffffffffffff81111561424357600080fd5b612d1584828501614058565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b838110156142c657888303603f190185528151805187855261429a88860182613fa9565b91890151858303868b01529190506142b28183613fa9565b968901969450505090860190600101614276565b509098975050505050505050565b600080604083850312156142e757600080fd5b823567ffffffffffffffff808211156142ff57600080fd5b61430b86838701614058565b9350602085013591508082111561432157600080fd5b5061432e85828601614058565b9150509250929050565b6000806040838503121561434b57600080fd5b823561435681614001565b915061436460208401614163565b90509250929050565b6020808252825182820181905260009190848201906040850190845b818110156143ae5783516001600160a01b031683529284019291840191600101614389565b50909695505050505050565b6040815260006143cd6040830185613fa9565b8281036020840152613df78185613fa9565b600080600080608085870312156143f557600080fd5b843561440081614001565b9350602085013561441081614001565b925060408501359150606085013567ffffffffffffffff81111561443357600080fd5b61443f87828801614058565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b818110156143ae57835183529284019291840191600101614467565b60008060008060006080868803121561449b57600080fd5b85359450602086013567ffffffffffffffff808211156144ba57600080fd5b818801915088601f8301126144ce57600080fd5b8135818111156144dd57600080fd5b8960208285010111156144ef57600080fd5b9699602092909201985095966040810135965060600135945092505050565b6000806040838503121561452157600080fd5b823561452c81614001565b9150602083013561453c81614001565b809150509250929050565b600181811c9082168061455b57607f821691505b6020821081141561175257634e487b7160e01b600052602260045260246000fd5b60006001600160a01b03808616835280851660208401525060606040830152613df76060830184613fa9565b600083516145ba818460208801613f7d565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600082516145f1818460208701613f7d565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561463a5761463a614611565b500190565b600060001982141561465357614653614611565b5060010190565b60008282101561466c5761466c614611565b500390565b600081600019048311821515161561468b5761468b614611565b500290565b600083516146a2818460208801613f7d565b602f60f81b90830190815283516146c0816001840160208801613f7d565b642f6d65746160d81b60019290910191820152600601949350505050565b634e487b7160e01b600052603160045260246000fd5b60006020828403121561470657600080fd5b815161324381614001565b634e487b7160e01b600052601260045260246000fd5b60008261473657614736614711565b500490565b60008261474a5761474a614711565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613b396080830184613fa9565b60006020828403121561479357600080fd5b815161324381613f4a56fe506978656c20436c6f7564732061696d20746f206372656174652061206e657720666f726d206f662063756c74757265206261736564206f6e20612073686172656420616573746865746963207574696c697a696e6720646563656e7472616c697a6564206f776e657273686970206f6620636c6f756473207769746820746865206f7074696f6e20746f20636f6e74726f6c207261696e2e4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220504702e5fb3d59152273d43cfd81520f0424b6c93c70796029650a6df203242764736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000046f0000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000000f574b2765bc9b79f990e14f08132e1577b46ae9ba621e912135f1e4948102f7ee000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001070352d76312e342e302e6d696e2e6a7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d65596b4435614c386465395a4778567244484e316a773267704a654d7a574e3848767152577237554e444c53000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68747470733a2f2f67656e65746963636861696e2e696f2f6170692f70726f6a6563742f31302f746f6b656e0000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : lib (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [1] : baseUri_ (string): https://geneticchain.io/api/project/10/token
Arg [2] : tokenMax_ (uint256[3]): 1135,50,15
Arg [3] : seed (uint256): 39484003267527362968739363762307157198623349197518638042151266703984239507438
Arg [4] : proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [2] : 000000000000000000000000000000000000000000000000000000000000046f
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [5] : 574b2765bc9b79f990e14f08132e1577b46ae9ba621e912135f1e4948102f7ee
Arg [6] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [10] : 70352d76312e342e302e6d696e2e6a7300000000000000000000000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [12] : 516d65596b4435614c386465395a4778567244484e316a773267704a654d7a57
Arg [13] : 4e3848767152577237554e444c53000000000000000000000000000000000000
Arg [14] : 000000000000000000000000000000000000000000000000000000000000002c
Arg [15] : 68747470733a2f2f67656e65746963636861696e2e696f2f6170692f70726f6a
Arg [16] : 6563742f31302f746f6b656e0000000000000000000000000000000000000000
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.