ETH Price: $2,283.90 (-2.56%)

Token

Pixel Personalities (PIXELPERSON)
 

Overview

Max Total Supply

75 PIXELPERSON

Holders

70

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
xdotscott.eth
Balance
1 PIXELPERSON
0xD26c639cC3e088310b3ce03A1446eC6dd87555da
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
PixelPersonalities

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 150 runs

Other Settings:
default evmVersion
File 1 of 16 : PixelPersonalities.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

//-----------------------------------------------------------------------------
// geneticchain.io - NextGen Generative NFT Platform
//-----------------------------------------------------------------------------
 /*\_/-|-\_____________________________________________________________________
 ______  __             __
 |   __ \__.--.--.-----.  |
 |    __/  |_   _|  -__|  |
 |___|  |__|__.__|_____|__|
  ______                                     __ __ __   __
 |   __ \.-----.----.-----.-----.-----.---.-.  |__|  |_|__.-----.-----.
 |    __/|  -__|   _|__ --|  _  |     |  _  |  |  |   _|  |  -__|__ --|
 |___|   |_____|__| |_____|_____|__|__|___._|__|__|____|__|_____|_____|
 ---------------------------------------------------------------------/-/-/-\*/
//-----------------------------------------------------------------------------
// Genetic Chain: Pixel Personalities
//-----------------------------------------------------------------------------
// Author: papaver (@tronicdreams)
//-----------------------------------------------------------------------------

import "./GeneticChain721.sol";

//------------------------------------------------------------------------------
// GeneticChainMetadata
//------------------------------------------------------------------------------

/**
 * @title GeneticChain - Project #13 - Pixel Personalities
 */
contract PixelPersonalities is GeneticChain721
{

    //-------------------------------------------------------------------------
    // fields
    //-------------------------------------------------------------------------

    // token info
    string private _baseUri;

    // contract info
    string public _contractUri;

    //-------------------------------------------------------------------------
    // ctor
    //-------------------------------------------------------------------------

    constructor(
        string memory baseUri_,
        string memory contractUri_,
        uint256[2] memory tokenMax_)
        GeneticChain721(
          tokenMax_)
    {
        _baseUri     = baseUri_;
        _contractUri = contractUri_;
    }

    //-------------------------------------------------------------------------
    // accessors
    //-------------------------------------------------------------------------

    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)));
    }

    //-------------------------------------------------------------------------
    // contractUri
    //-------------------------------------------------------------------------

    function setContractURI(string memory contractUri)
        external onlyOwner
    {
        _contractUri = contractUri;
    }

    //-------------------------------------------------------------------------

    function contractURI()
        public view
        returns (string memory)
    {
        return _contractUri;
    }

}

File 2 of 16 : Ownable.sol
// 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;
    }
}

File 3 of 16 : IERC721.sol
// 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;
}

File 4 of 16 : IERC721Receiver.sol
// 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);
}

File 5 of 16 : IERC721Enumerable.sol
// 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);
}

File 6 of 16 : IERC721Metadata.sol
// 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);
}

File 7 of 16 : Address.sol
// 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);
            }
        }
    }
}

File 8 of 16 : Context.sol
// 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;
    }
}

File 9 of 16 : Strings.sol
// 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);
    }

}

File 10 of 16 : ECDSA.sol
// 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));
    }
}

File 11 of 16 : ERC165.sol
// 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;
    }
}

File 12 of 16 : IERC165.sol
// 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);
}

File 13 of 16 : GeneticChain721.sol
// 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+*`_\|  /_______//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//------------------------------------------------------------------------------
// 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 "./geneticchain/ERC721Sequential.sol";
import "./geneticchain/ERC721SeqEnumerable.sol";
import "./libraries/State.sol";

//------------------------------------------------------------------------------
// GeneticChain721
//------------------------------------------------------------------------------

/**
 * @title GeneticChain721
 *
 * ERC721 contract with various features:
 *  - low-gas implmentation
 *  - off-chain whitelist verify (secure minting)
 *  - dynamic token allocation
 *  - gallery allocation
 *  - protected controlled burns
 *  - simple funds withdrawl
 */
abstract contract GeneticChain721 is
    ERC721SeqEnumerable,
    Ownable
{
    using ECDSA for bytes32;
    using State for State.Data;

    //-------------------------------------------------------------------------
    // fields
    //-------------------------------------------------------------------------

    // erc721 metadata
    string constant private __name   = "Pixel Personalities";
    string constant private __symbol = "PIXELPERSON";

    // metadata
    uint256 constant public projectId  = 13;
    string constant public artist      = "Silver";
    string constant public description = "1/1 animated pixels characters expressing their personality.";

    // mint price
    uint256 constant public memberPrice = .1 ether;

    // verification address
    address constant private _signer = 0x1A6d7E583aA172C00289DC7857A3D2f79772Da5c;

    // token limits
    uint256 public immutable publicMax;
    uint256 public immutable galleryMax;

    // contract state
    State.Data private _state;

    // 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));
        _;
    }

    //-------------------------------------------------------------------------
    // ctor
    //-------------------------------------------------------------------------

    constructor(
        uint256[2] memory tokenMax_)
        ERC721Sequential(__name, __symbol)
    {
        publicMax  = tokenMax_[0];
        galleryMax = tokenMax_[1];

        // start tokens at 1 index
        _owners.push();
    }

    //-------------------------------------------------------------------------
    // accessors
    //-------------------------------------------------------------------------

    /**
     * Get total gallery has minted.
     */
    function galleryMinted()
        public view returns (uint256)
    {
        return _state._gallery;
    }

    //-------------------------------------------------------------------------

    /**
     * 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
    //-------------------------------------------------------------------------

    /**
     * Mint count tokens using securely signed message.
     */
    function secureMint(
            bytes32 msgHash,
            bytes calldata signature,
            uint256 allocation,
            uint256 count)
        payable external
    {
        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);
        }
    }

    //-------------------------------------------------------------------------
    // 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);
    }

}

File 14 of 16 : ERC721SeqEnumerable.sol
// 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;
    }

}

File 15 of 16 : ERC721Sequential.sol
// 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 {}
}

File 16 of 16 : State.sol
// 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  _public;
        uint224 _unused;
    }

    function addGallery(Data storage data, uint256 count)
        internal
    {
        unchecked {
            data._gallery += uint16(count);
        }
    }

    function addPublic(Data storage data, uint256 count)
        internal
     {
        unchecked {
            data._public += uint16(count);
        }
    }

    function set(Data storage data, uint256 _gallery, uint256 _public)
        internal
    {
        data._gallery = uint16(_gallery);
        data._public  = uint16(_public);
    }

}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 150
  },
  "evmVersion": "london",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseUri_","type":"string"},{"internalType":"string","name":"contractUri_","type":"string"},{"internalType":"uint256[2]","name":"tokenMax_","type":"uint256[2]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_contractUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":[{"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":[],"name":"contractURI","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":"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":"galleryMinted","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":[{"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":"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":[],"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":"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":"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":"string","name":"baseUri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractUri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b5060405162002cd638038062002cd6833981016040819052620000349162000317565b604080518082018252601381527f506978656c20506572736f6e616c69746965730000000000000000000000000060208083019182528351808501909452600b84526a2824ac22a62822a929a7a760a91b9084015281518493916200009d916000919062000168565b508051620000b390600190602084019062000168565b5050506000620000c86200016460201b60201c565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350805160805260209081015160a052600280546001018155600052835162000144916008919086019062000168565b5081516200015a90600990602085019062000168565b5050505062000414565b3390565b8280546200017690620003d7565b90600052602060002090601f0160209004810192826200019a5760008555620001e5565b82601f10620001b557805160ff1916838001178555620001e5565b82800160010185558215620001e5579182015b82811115620001e5578251825591602001919060010190620001c8565b50620001f3929150620001f7565b5090565b5b80821115620001f35760008155600101620001f8565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156200024957620002496200020e565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200027a576200027a6200020e565b604052919050565b600082601f8301126200029457600080fd5b81516001600160401b03811115620002b057620002b06200020e565b6020620002c6601f8301601f191682016200024f565b8281528582848701011115620002db57600080fd5b60005b83811015620002fb578581018301518282018401528201620002de565b838111156200030d5760008385840101525b5095945050505050565b6000806000608084860312156200032d57600080fd5b83516001600160401b03808211156200034557600080fd5b620003538783880162000282565b94506020915081860151818111156200036b57600080fd5b620003798882890162000282565b9450505085605f8601126200038d57600080fd5b6200039762000224565b806080870188811115620003aa57600080fd5b604088015b81811015620003c85780518452928401928401620003af565b50508093505050509250925092565b600181811c90821680620003ec57607f821691505b602082108114156200040e57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05161288e62000448600039600081816104a10152610b3201526000818161065d0152611180015261288e6000f3fe6080604052600436106102255760003560e01c80637284e41611610123578063bba7723e116100ab578063e527c6dd1161006f578063e527c6dd1461064b578063e8a3d4851461067f578063e985e9c514610694578063f2fde38b146106b4578063f3fef3a3146106d457600080fd5b8063bba7723e146105c1578063c87b56dd146105ee578063d547cfb71461060e578063d81bc66314610623578063d9ce2f6d1461063657600080fd5b806395d89b41116100f257806395d89b411461052b578063a22cb46514610540578063a4f4f8af14610560578063affe39c11461057f578063b88d4fde146105a157600080fd5b80637284e416146104c35780638da5cb5b146104d857806391ba317a146104f6578063938e3d7b1461050b57600080fd5b80633fafa127116101b15780636352211e116101755780636352211e1461041e578063636e746b1461043e57806370a082311461045a578063715018a61461047a57806371dedace1461048f57600080fd5b80633fafa1271461037757806342842e0e1461038c57806343bc1612146103ac57806344be774f146103de5780634f6ccce7146103fe57600080fd5b806318160ddd116101f857806318160ddd146102db57806323b872dd146102fe5780632f745c591461031e57806330176e131461033e5780633763e75b1461035e57600080fd5b806301ffc9a71461022a57806306fdde031461025f578063081812fc14610281578063095ea7b3146102b9575b600080fd5b34801561023657600080fd5b5061024a61024536600461219b565b6106f4565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b5061027461071f565b6040516102569190612217565b34801561028d57600080fd5b506102a161029c36600461222a565b6107b1565b6040516001600160a01b039091168152602001610256565b3480156102c557600080fd5b506102d96102d436600461225f565b61083e565b005b3480156102e757600080fd5b506102f061094f565b604051908152602001610256565b34801561030a57600080fd5b506102d9610319366004612289565b6109ab565b34801561032a57600080fd5b506102f061033936600461225f565b6109dc565b34801561034a57600080fd5b506102d9610359366004612351565b610aa7565b34801561036a57600080fd5b5060065461ffff166102f0565b34801561038357600080fd5b506102f0600d81565b34801561039857600080fd5b506102d96103a7366004612289565b610ae8565b3480156103b857600080fd5b506102746040518060400160405280600681526020016529b4b63b32b960d11b81525081565b3480156103ea57600080fd5b506102d96103f936600461225f565b610b03565b34801561040a57600080fd5b506102f061041936600461222a565b610be3565b34801561042a57600080fd5b506102a161043936600461222a565b610cae565b34801561044a57600080fd5b506102f067016345785d8a000081565b34801561046657600080fd5b506102f061047536600461239a565b610d48565b34801561048657600080fd5b506102d9610e0f565b34801561049b57600080fd5b506102f07f000000000000000000000000000000000000000000000000000000000000000081565b3480156104cf57600080fd5b50610274610e83565b3480156104e457600080fd5b506005546001600160a01b03166102a1565b34801561050257600080fd5b506102f0610e9f565b34801561051757600080fd5b506102d9610526366004612351565b610eb6565b34801561053757600080fd5b50610274610ef3565b34801561054c57600080fd5b506102d961055b3660046123b5565b610f02565b34801561056c57600080fd5b5060065462010000900461ffff166102f0565b34801561058b57600080fd5b50610594610f0d565b60405161025691906123f1565b3480156105ad57600080fd5b506102d96105bc36600461243e565b610f73565b3480156105cd57600080fd5b506105e16105dc36600461239a565b610fab565b60405161025691906124ba565b3480156105fa57600080fd5b5061027461060936600461222a565b6110dd565b34801561061a57600080fd5b50610274611117565b6102d96106313660046124f2565b611126565b34801561064257600080fd5b5061027461137f565b34801561065757600080fd5b506102f07f000000000000000000000000000000000000000000000000000000000000000081565b34801561068b57600080fd5b5061027461140d565b3480156106a057600080fd5b5061024a6106af36600461257d565b61141c565b3480156106c057600080fd5b506102d96106cf36600461239a565b61144a565b3480156106e057600080fd5b506102d96106ef36600461225f565b611535565b60006001600160e01b0319821663780e9d6360e01b1480610719575061071982611662565b92915050565b60606000805461072e906125b0565b80601f016020809104026020016040519081016040528092919081815260200182805461075a906125b0565b80156107a75780601f1061077c576101008083540402835291602001916107a7565b820191906000526020600020905b81548152906001019060200180831161078a57829003601f168201915b5050505050905090565b60006107bc826116b2565b6108225760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061084982610cae565b9050806001600160a01b0316836001600160a01b031614156108b75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610819565b336001600160a01b03821614806108d357506108d3813361141c565b6109405760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610819565b61094a83836116fc565b505050565b600254600090815b818110156109a65760006001600160a01b03166002828154811061097d5761097d6125e5565b6000918252602090912001546001600160a01b03161461099e578260010192505b600101610957565b505090565b6109b5338261176a565b6109d15760405162461bcd60e51b8152600401610819906125fb565b61094a838383611834565b6002546000905b80821015610a3d57836001600160a01b031660028381548110610a0857610a086125e5565b6000918252602090912001546001600160a01b03161415610a3257600019830192610a3257610a3d565b8160010191506109e3565b808210610aa05760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610819565b5092915050565b6005546001600160a01b03163314610ad15760405162461bcd60e51b81526004016108199061264c565b8051610ae49060089060208401906120e9565b5050565b61094a83838360405180602001604052806000815250610f73565b6005546001600160a01b03163314610b2d5760405162461bcd60e51b81526004016108199061264c565b6006547f000000000000000000000000000000000000000000000000000000000000000090610b6190839061ffff16612697565b1115610ba75760405162461bcd60e51b81526020600482015260156024820152746578636565642067616c6c65727920737570706c7960581b6044820152606401610819565b6006805461ffff80821684011661ffff1990911617905560005b8181101561094a57610bd28361198a565b50610bdc816126af565b9050610bc1565b6002546000905b80821015610c445760006001600160a01b031660028381548110610c1057610c106125e5565b6000918252602090912001546001600160a01b031614610c3957600019830192610c3957610c44565b816001019150610bea565b808210610ca85760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610819565b50919050565b6000610cb9826116b2565b610d175760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610819565b600060028381548110610d2c57610d2c6125e5565b6000918252602090912001546001600160a01b03169392505050565b60006001600160a01b038216610db35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610819565b60025460005b81811015610e0857836001600160a01b031660028281548110610dde57610dde6125e5565b6000918252602090912001546001600160a01b03161415610e00578260010192505b600101610db9565b5050919050565b6005546001600160a01b03163314610e395760405162461bcd60e51b81526004016108199061264c565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6040518060600160405280603c815260200161281d603c913981565b600254600090610eb1906001906126ca565b905090565b6005546001600160a01b03163314610ee05760405162461bcd60e51b81526004016108199061264c565b8051610ae49060099060208401906120e9565b60606001805461072e906125b0565b610ae43383836119a5565b606060006002805480602002602001604051908101604052809291908181526020018280548015610f6757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610f49575b50939695505050505050565b610f7d338361176a565b610f995760405162461bcd60e51b8152600401610819906125fb565b610fa584848484611a74565b50505050565b60606000610fb883610d48565b9050806110165760405162461bcd60e51b815260206004820152602660248201527f455243373231456e756d657261626c653a206f776e6572206f776e73206e6f20604482015265746f6b656e7360d01b6064820152608401610819565b60025460008267ffffffffffffffff811115611034576110346122c5565b60405190808252806020026020018201604052801561105d578160200160208202803683370190505b5090506000805b838110156110d257866001600160a01b031660028281548110611089576110896125e5565b6000918252602090912001546001600160a01b031614156110ca57808383806001019450815181106110bd576110bd6125e5565b6020026020010181815250505b600101611064565b509095945050505050565b60606110e7611117565b6110f083611aa7565b6040516020016111019291906126e1565b6040516020818303038152906040529050919050565b60606008805461072e906125b0565b346111398267016345785d8a000061271d565b1461117b5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610819565b6006547f0000000000000000000000000000000000000000000000000000000000000000906111b590839062010000900461ffff16612697565b11156111fa5760405162461bcd60e51b8152602060048201526014602482015273657863656564207075626c696320737570706c7960601b6044820152606401610819565b336000908152600760205260409020548290611217908390612697565b11156112595760405162461bcd60e51b815260206004820152601160248201527032bc31b2b2b21030b63637b1b0ba34b7b760791b6044820152606401610819565b6112998585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ba592505050565b6112d65760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21039b4b3b732b960911b6044820152606401610819565b6112e285338484611bd7565b61131d5760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c840d0c2e6d60a31b6044820152606401610819565b6006805461ffff62010000808304821685019091160263ffff0000199091161790553360009081526007602052604081208054830190555b81811015611377576113663361198a565b50611370816126af565b9050611355565b505050505050565b6009805461138c906125b0565b80601f01602080910402602001604051908101604052809291908181526020018280546113b8906125b0565b80156114055780601f106113da57610100808354040283529160200191611405565b820191906000526020600020905b8154815290600101906020018083116113e857829003601f168201915b505050505081565b60606009805461072e906125b0565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b6005546001600160a01b031633146114745760405162461bcd60e51b81526004016108199061264c565b6001600160a01b0381166114d95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610819565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b0316331461155f5760405162461bcd60e51b81526004016108199061264c565b6000811161159e5760405162461bcd60e51b815260206004820152600c60248201526b616d6f756e7420656d70747960a01b6044820152606401610819565b478111156115e75760405162461bcd60e51b8152602060048201526016602482015275616d6f756e7420657863656564732062616c616e636560501b6044820152606401610819565b6001600160a01b03821661162c5760405162461bcd60e51b815260206004820152600c60248201526b1859191c995cdcc81b9d5b1b60a21b6044820152606401610819565b6040516001600160a01b0383169082156108fc029083906000818181858888f1935050505015801561094a573d6000803e3d6000fd5b60006001600160e01b031982166380ac58cd60e01b148061169357506001600160e01b03198216635b5e139f60e01b145b8061071957506301ffc9a760e01b6001600160e01b0319831614610719565b60025460009082108015610719575060006001600160a01b0316600283815481106116df576116df6125e5565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061173182610cae565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611775826116b2565b6117d65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610819565b60006117e183610cae565b9050806001600160a01b0316846001600160a01b0316148061181c5750836001600160a01b0316611811846107b1565b6001600160a01b0316145b8061182c575061182c818561141c565b949350505050565b826001600160a01b031661184782610cae565b6001600160a01b0316146118af5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610819565b6001600160a01b0382166119115760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610819565b61191c6000826116fc565b8160028281548110611930576119306125e5565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60006107198260405180602001604052806000815250611c80565b816001600160a01b0316836001600160a01b03161415611a075760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610819565b6001600160a01b03838116600081815260046020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611a7f848484611834565b611a8b84848484611cb6565b610fa55760405162461bcd60e51b81526004016108199061273c565b606081611acb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611af55780611adf816126af565b9150611aee9050600a836127a4565b9150611acf565b60008167ffffffffffffffff811115611b1057611b106122c5565b6040519080825280601f01601f191660200182016040528015611b3a576020820181803683370190505b5090505b841561182c57611b4f6001836126ca565b9150611b5c600a866127b8565b611b67906030612697565b60f81b818381518110611b7c57611b7c6125e5565b60200101906001600160f81b031916908160001a905350611b9e600a866127a4565b9450611b3e565b6000731a6d7e583aa172c00289dc7857a3d2f79772da5c611bc68484611dc0565b6001600160a01b0316149392505050565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052605481018290526000908590611c7690607401604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b1495945050505050565b6000611c8b83611e76565b9050611c9a6000848385611cb6565b6107195760405162461bcd60e51b81526004016108199061273c565b60006001600160a01b0384163b15611db857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cfa9033908990889088906004016127cc565b602060405180830381600087803b158015611d1457600080fd5b505af1925050508015611d44575060408051601f3d908101601f19168201909252611d41918101906127ff565b60015b611d9e573d808015611d72576040519150601f19603f3d011682016040523d82523d6000602084013e611d77565b606091505b508051611d965760405162461bcd60e51b81526004016108199061273c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061182c565b50600161182c565b600080600080845160411415611dea5750505060208201516040830151606084015160001a611e60565b845160401415611e185750505060408201516020830151906001600160ff1b0381169060ff1c601b01611e60565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610819565b611e6c86828585611f4f565b9695505050505050565b60006001600160a01b038216611ece5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610819565b506002546002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b60006fa2a8918ca85bafe22016d0b997e4df60600160ff1b03821115611fc25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610819565b8360ff16601b1480611fd757508360ff16601c145b61202e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610819565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612082573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166120e05760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610819565b95945050505050565b8280546120f5906125b0565b90600052602060002090601f016020900481019282612117576000855561215d565b82601f1061213057805160ff191683800117855561215d565b8280016001018555821561215d579182015b8281111561215d578251825591602001919060010190612142565b5061216992915061216d565b5090565b5b80821115612169576000815560010161216e565b6001600160e01b03198116811461219857600080fd5b50565b6000602082840312156121ad57600080fd5b81356121b881612182565b9392505050565b60005b838110156121da5781810151838201526020016121c2565b83811115610fa55750506000910152565b600081518084526122038160208601602086016121bf565b601f01601f19169290920160200192915050565b6020815260006121b860208301846121eb565b60006020828403121561223c57600080fd5b5035919050565b80356001600160a01b038116811461225a57600080fd5b919050565b6000806040838503121561227257600080fd5b61227b83612243565b946020939093013593505050565b60008060006060848603121561229e57600080fd5b6122a784612243565b92506122b560208501612243565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156122f6576122f66122c5565b604051601f8501601f19908116603f0116810190828211818310171561231e5761231e6122c5565b8160405280935085815286868601111561233757600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561236357600080fd5b813567ffffffffffffffff81111561237a57600080fd5b8201601f8101841361238b57600080fd5b61182c848235602084016122db565b6000602082840312156123ac57600080fd5b6121b882612243565b600080604083850312156123c857600080fd5b6123d183612243565b9150602083013580151581146123e657600080fd5b809150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156124325783516001600160a01b03168352928401929184019160010161240d565b50909695505050505050565b6000806000806080858703121561245457600080fd5b61245d85612243565b935061246b60208601612243565b925060408501359150606085013567ffffffffffffffff81111561248e57600080fd5b8501601f8101871361249f57600080fd5b6124ae878235602084016122db565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b81811015612432578351835292840192918401916001016124d6565b60008060008060006080868803121561250a57600080fd5b85359450602086013567ffffffffffffffff8082111561252957600080fd5b818801915088601f83011261253d57600080fd5b81358181111561254c57600080fd5b89602082850101111561255e57600080fd5b9699602092909201985095966040810135965060600135945092505050565b6000806040838503121561259057600080fd5b61259983612243565b91506125a760208401612243565b90509250929050565b600181811c908216806125c457607f821691505b60208210811415610ca857634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156126aa576126aa612681565b500190565b60006000198214156126c3576126c3612681565b5060010190565b6000828210156126dc576126dc612681565b500390565b600083516126f38184602088016121bf565b602f60f81b90830190815283516127118160018401602088016121bf565b01600101949350505050565b600081600019048311821515161561273757612737612681565b500290565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826127b3576127b361278e565b500490565b6000826127c7576127c761278e565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e6c908301846121eb565b60006020828403121561281157600080fd5b81516121b88161218256fe312f3120616e696d6174656420706978656c7320636861726163746572732065787072657373696e6720746865697220706572736f6e616c6974792ea2646970667358221220cc3ce4c63c9502e45384da0e19f5ec1c97c8e4a66a9a7317d6c297549e8fb74064736f6c63430008090033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000460000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000002d68747470733a2f2f706978656c706572736f6e732e67656e65746963636861696e2e696f2f6170692f6d657461000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d52484a4853466f32483859426e4e524a3246373833454234366833526f693142537146634d717373423732630000000000000000000000

Deployed Bytecode

0x6080604052600436106102255760003560e01c80637284e41611610123578063bba7723e116100ab578063e527c6dd1161006f578063e527c6dd1461064b578063e8a3d4851461067f578063e985e9c514610694578063f2fde38b146106b4578063f3fef3a3146106d457600080fd5b8063bba7723e146105c1578063c87b56dd146105ee578063d547cfb71461060e578063d81bc66314610623578063d9ce2f6d1461063657600080fd5b806395d89b41116100f257806395d89b411461052b578063a22cb46514610540578063a4f4f8af14610560578063affe39c11461057f578063b88d4fde146105a157600080fd5b80637284e416146104c35780638da5cb5b146104d857806391ba317a146104f6578063938e3d7b1461050b57600080fd5b80633fafa127116101b15780636352211e116101755780636352211e1461041e578063636e746b1461043e57806370a082311461045a578063715018a61461047a57806371dedace1461048f57600080fd5b80633fafa1271461037757806342842e0e1461038c57806343bc1612146103ac57806344be774f146103de5780634f6ccce7146103fe57600080fd5b806318160ddd116101f857806318160ddd146102db57806323b872dd146102fe5780632f745c591461031e57806330176e131461033e5780633763e75b1461035e57600080fd5b806301ffc9a71461022a57806306fdde031461025f578063081812fc14610281578063095ea7b3146102b9575b600080fd5b34801561023657600080fd5b5061024a61024536600461219b565b6106f4565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b5061027461071f565b6040516102569190612217565b34801561028d57600080fd5b506102a161029c36600461222a565b6107b1565b6040516001600160a01b039091168152602001610256565b3480156102c557600080fd5b506102d96102d436600461225f565b61083e565b005b3480156102e757600080fd5b506102f061094f565b604051908152602001610256565b34801561030a57600080fd5b506102d9610319366004612289565b6109ab565b34801561032a57600080fd5b506102f061033936600461225f565b6109dc565b34801561034a57600080fd5b506102d9610359366004612351565b610aa7565b34801561036a57600080fd5b5060065461ffff166102f0565b34801561038357600080fd5b506102f0600d81565b34801561039857600080fd5b506102d96103a7366004612289565b610ae8565b3480156103b857600080fd5b506102746040518060400160405280600681526020016529b4b63b32b960d11b81525081565b3480156103ea57600080fd5b506102d96103f936600461225f565b610b03565b34801561040a57600080fd5b506102f061041936600461222a565b610be3565b34801561042a57600080fd5b506102a161043936600461222a565b610cae565b34801561044a57600080fd5b506102f067016345785d8a000081565b34801561046657600080fd5b506102f061047536600461239a565b610d48565b34801561048657600080fd5b506102d9610e0f565b34801561049b57600080fd5b506102f07f000000000000000000000000000000000000000000000000000000000000000581565b3480156104cf57600080fd5b50610274610e83565b3480156104e457600080fd5b506005546001600160a01b03166102a1565b34801561050257600080fd5b506102f0610e9f565b34801561051757600080fd5b506102d9610526366004612351565b610eb6565b34801561053757600080fd5b50610274610ef3565b34801561054c57600080fd5b506102d961055b3660046123b5565b610f02565b34801561056c57600080fd5b5060065462010000900461ffff166102f0565b34801561058b57600080fd5b50610594610f0d565b60405161025691906123f1565b3480156105ad57600080fd5b506102d96105bc36600461243e565b610f73565b3480156105cd57600080fd5b506105e16105dc36600461239a565b610fab565b60405161025691906124ba565b3480156105fa57600080fd5b5061027461060936600461222a565b6110dd565b34801561061a57600080fd5b50610274611117565b6102d96106313660046124f2565b611126565b34801561064257600080fd5b5061027461137f565b34801561065757600080fd5b506102f07f000000000000000000000000000000000000000000000000000000000000004681565b34801561068b57600080fd5b5061027461140d565b3480156106a057600080fd5b5061024a6106af36600461257d565b61141c565b3480156106c057600080fd5b506102d96106cf36600461239a565b61144a565b3480156106e057600080fd5b506102d96106ef36600461225f565b611535565b60006001600160e01b0319821663780e9d6360e01b1480610719575061071982611662565b92915050565b60606000805461072e906125b0565b80601f016020809104026020016040519081016040528092919081815260200182805461075a906125b0565b80156107a75780601f1061077c576101008083540402835291602001916107a7565b820191906000526020600020905b81548152906001019060200180831161078a57829003601f168201915b5050505050905090565b60006107bc826116b2565b6108225760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061084982610cae565b9050806001600160a01b0316836001600160a01b031614156108b75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610819565b336001600160a01b03821614806108d357506108d3813361141c565b6109405760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610819565b61094a83836116fc565b505050565b600254600090815b818110156109a65760006001600160a01b03166002828154811061097d5761097d6125e5565b6000918252602090912001546001600160a01b03161461099e578260010192505b600101610957565b505090565b6109b5338261176a565b6109d15760405162461bcd60e51b8152600401610819906125fb565b61094a838383611834565b6002546000905b80821015610a3d57836001600160a01b031660028381548110610a0857610a086125e5565b6000918252602090912001546001600160a01b03161415610a3257600019830192610a3257610a3d565b8160010191506109e3565b808210610aa05760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610819565b5092915050565b6005546001600160a01b03163314610ad15760405162461bcd60e51b81526004016108199061264c565b8051610ae49060089060208401906120e9565b5050565b61094a83838360405180602001604052806000815250610f73565b6005546001600160a01b03163314610b2d5760405162461bcd60e51b81526004016108199061264c565b6006547f000000000000000000000000000000000000000000000000000000000000000590610b6190839061ffff16612697565b1115610ba75760405162461bcd60e51b81526020600482015260156024820152746578636565642067616c6c65727920737570706c7960581b6044820152606401610819565b6006805461ffff80821684011661ffff1990911617905560005b8181101561094a57610bd28361198a565b50610bdc816126af565b9050610bc1565b6002546000905b80821015610c445760006001600160a01b031660028381548110610c1057610c106125e5565b6000918252602090912001546001600160a01b031614610c3957600019830192610c3957610c44565b816001019150610bea565b808210610ca85760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610819565b50919050565b6000610cb9826116b2565b610d175760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610819565b600060028381548110610d2c57610d2c6125e5565b6000918252602090912001546001600160a01b03169392505050565b60006001600160a01b038216610db35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610819565b60025460005b81811015610e0857836001600160a01b031660028281548110610dde57610dde6125e5565b6000918252602090912001546001600160a01b03161415610e00578260010192505b600101610db9565b5050919050565b6005546001600160a01b03163314610e395760405162461bcd60e51b81526004016108199061264c565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6040518060600160405280603c815260200161281d603c913981565b600254600090610eb1906001906126ca565b905090565b6005546001600160a01b03163314610ee05760405162461bcd60e51b81526004016108199061264c565b8051610ae49060099060208401906120e9565b60606001805461072e906125b0565b610ae43383836119a5565b606060006002805480602002602001604051908101604052809291908181526020018280548015610f6757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610f49575b50939695505050505050565b610f7d338361176a565b610f995760405162461bcd60e51b8152600401610819906125fb565b610fa584848484611a74565b50505050565b60606000610fb883610d48565b9050806110165760405162461bcd60e51b815260206004820152602660248201527f455243373231456e756d657261626c653a206f776e6572206f776e73206e6f20604482015265746f6b656e7360d01b6064820152608401610819565b60025460008267ffffffffffffffff811115611034576110346122c5565b60405190808252806020026020018201604052801561105d578160200160208202803683370190505b5090506000805b838110156110d257866001600160a01b031660028281548110611089576110896125e5565b6000918252602090912001546001600160a01b031614156110ca57808383806001019450815181106110bd576110bd6125e5565b6020026020010181815250505b600101611064565b509095945050505050565b60606110e7611117565b6110f083611aa7565b6040516020016111019291906126e1565b6040516020818303038152906040529050919050565b60606008805461072e906125b0565b346111398267016345785d8a000061271d565b1461117b5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610819565b6006547f0000000000000000000000000000000000000000000000000000000000000046906111b590839062010000900461ffff16612697565b11156111fa5760405162461bcd60e51b8152602060048201526014602482015273657863656564207075626c696320737570706c7960601b6044820152606401610819565b336000908152600760205260409020548290611217908390612697565b11156112595760405162461bcd60e51b815260206004820152601160248201527032bc31b2b2b21030b63637b1b0ba34b7b760791b6044820152606401610819565b6112998585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ba592505050565b6112d65760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21039b4b3b732b960911b6044820152606401610819565b6112e285338484611bd7565b61131d5760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c840d0c2e6d60a31b6044820152606401610819565b6006805461ffff62010000808304821685019091160263ffff0000199091161790553360009081526007602052604081208054830190555b81811015611377576113663361198a565b50611370816126af565b9050611355565b505050505050565b6009805461138c906125b0565b80601f01602080910402602001604051908101604052809291908181526020018280546113b8906125b0565b80156114055780601f106113da57610100808354040283529160200191611405565b820191906000526020600020905b8154815290600101906020018083116113e857829003601f168201915b505050505081565b60606009805461072e906125b0565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b6005546001600160a01b031633146114745760405162461bcd60e51b81526004016108199061264c565b6001600160a01b0381166114d95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610819565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b0316331461155f5760405162461bcd60e51b81526004016108199061264c565b6000811161159e5760405162461bcd60e51b815260206004820152600c60248201526b616d6f756e7420656d70747960a01b6044820152606401610819565b478111156115e75760405162461bcd60e51b8152602060048201526016602482015275616d6f756e7420657863656564732062616c616e636560501b6044820152606401610819565b6001600160a01b03821661162c5760405162461bcd60e51b815260206004820152600c60248201526b1859191c995cdcc81b9d5b1b60a21b6044820152606401610819565b6040516001600160a01b0383169082156108fc029083906000818181858888f1935050505015801561094a573d6000803e3d6000fd5b60006001600160e01b031982166380ac58cd60e01b148061169357506001600160e01b03198216635b5e139f60e01b145b8061071957506301ffc9a760e01b6001600160e01b0319831614610719565b60025460009082108015610719575060006001600160a01b0316600283815481106116df576116df6125e5565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061173182610cae565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611775826116b2565b6117d65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610819565b60006117e183610cae565b9050806001600160a01b0316846001600160a01b0316148061181c5750836001600160a01b0316611811846107b1565b6001600160a01b0316145b8061182c575061182c818561141c565b949350505050565b826001600160a01b031661184782610cae565b6001600160a01b0316146118af5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610819565b6001600160a01b0382166119115760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610819565b61191c6000826116fc565b8160028281548110611930576119306125e5565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60006107198260405180602001604052806000815250611c80565b816001600160a01b0316836001600160a01b03161415611a075760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610819565b6001600160a01b03838116600081815260046020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611a7f848484611834565b611a8b84848484611cb6565b610fa55760405162461bcd60e51b81526004016108199061273c565b606081611acb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611af55780611adf816126af565b9150611aee9050600a836127a4565b9150611acf565b60008167ffffffffffffffff811115611b1057611b106122c5565b6040519080825280601f01601f191660200182016040528015611b3a576020820181803683370190505b5090505b841561182c57611b4f6001836126ca565b9150611b5c600a866127b8565b611b67906030612697565b60f81b818381518110611b7c57611b7c6125e5565b60200101906001600160f81b031916908160001a905350611b9e600a866127a4565b9450611b3e565b6000731a6d7e583aa172c00289dc7857a3d2f79772da5c611bc68484611dc0565b6001600160a01b0316149392505050565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052605481018290526000908590611c7690607401604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b1495945050505050565b6000611c8b83611e76565b9050611c9a6000848385611cb6565b6107195760405162461bcd60e51b81526004016108199061273c565b60006001600160a01b0384163b15611db857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cfa9033908990889088906004016127cc565b602060405180830381600087803b158015611d1457600080fd5b505af1925050508015611d44575060408051601f3d908101601f19168201909252611d41918101906127ff565b60015b611d9e573d808015611d72576040519150601f19603f3d011682016040523d82523d6000602084013e611d77565b606091505b508051611d965760405162461bcd60e51b81526004016108199061273c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061182c565b50600161182c565b600080600080845160411415611dea5750505060208201516040830151606084015160001a611e60565b845160401415611e185750505060408201516020830151906001600160ff1b0381169060ff1c601b01611e60565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610819565b611e6c86828585611f4f565b9695505050505050565b60006001600160a01b038216611ece5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610819565b506002546002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b60006fa2a8918ca85bafe22016d0b997e4df60600160ff1b03821115611fc25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610819565b8360ff16601b1480611fd757508360ff16601c145b61202e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610819565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612082573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166120e05760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610819565b95945050505050565b8280546120f5906125b0565b90600052602060002090601f016020900481019282612117576000855561215d565b82601f1061213057805160ff191683800117855561215d565b8280016001018555821561215d579182015b8281111561215d578251825591602001919060010190612142565b5061216992915061216d565b5090565b5b80821115612169576000815560010161216e565b6001600160e01b03198116811461219857600080fd5b50565b6000602082840312156121ad57600080fd5b81356121b881612182565b9392505050565b60005b838110156121da5781810151838201526020016121c2565b83811115610fa55750506000910152565b600081518084526122038160208601602086016121bf565b601f01601f19169290920160200192915050565b6020815260006121b860208301846121eb565b60006020828403121561223c57600080fd5b5035919050565b80356001600160a01b038116811461225a57600080fd5b919050565b6000806040838503121561227257600080fd5b61227b83612243565b946020939093013593505050565b60008060006060848603121561229e57600080fd5b6122a784612243565b92506122b560208501612243565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156122f6576122f66122c5565b604051601f8501601f19908116603f0116810190828211818310171561231e5761231e6122c5565b8160405280935085815286868601111561233757600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561236357600080fd5b813567ffffffffffffffff81111561237a57600080fd5b8201601f8101841361238b57600080fd5b61182c848235602084016122db565b6000602082840312156123ac57600080fd5b6121b882612243565b600080604083850312156123c857600080fd5b6123d183612243565b9150602083013580151581146123e657600080fd5b809150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156124325783516001600160a01b03168352928401929184019160010161240d565b50909695505050505050565b6000806000806080858703121561245457600080fd5b61245d85612243565b935061246b60208601612243565b925060408501359150606085013567ffffffffffffffff81111561248e57600080fd5b8501601f8101871361249f57600080fd5b6124ae878235602084016122db565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b81811015612432578351835292840192918401916001016124d6565b60008060008060006080868803121561250a57600080fd5b85359450602086013567ffffffffffffffff8082111561252957600080fd5b818801915088601f83011261253d57600080fd5b81358181111561254c57600080fd5b89602082850101111561255e57600080fd5b9699602092909201985095966040810135965060600135945092505050565b6000806040838503121561259057600080fd5b61259983612243565b91506125a760208401612243565b90509250929050565b600181811c908216806125c457607f821691505b60208210811415610ca857634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156126aa576126aa612681565b500190565b60006000198214156126c3576126c3612681565b5060010190565b6000828210156126dc576126dc612681565b500390565b600083516126f38184602088016121bf565b602f60f81b90830190815283516127118160018401602088016121bf565b01600101949350505050565b600081600019048311821515161561273757612737612681565b500290565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826127b3576127b361278e565b500490565b6000826127c7576127c761278e565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e6c908301846121eb565b60006020828403121561281157600080fd5b81516121b88161218256fe312f3120616e696d6174656420706978656c7320636861726163746572732065787072657373696e6720746865697220706572736f6e616c6974792ea2646970667358221220cc3ce4c63c9502e45384da0e19f5ec1c97c8e4a66a9a7317d6c297549e8fb74064736f6c63430008090033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000460000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000002d68747470733a2f2f706978656c706572736f6e732e67656e65746963636861696e2e696f2f6170692f6d657461000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d52484a4853466f32483859426e4e524a3246373833454234366833526f693142537146634d717373423732630000000000000000000000

-----Decoded View---------------
Arg [0] : baseUri_ (string): https://pixelpersons.geneticchain.io/api/meta
Arg [1] : contractUri_ (string): ipfs://QmRHJHSFo2H8YBnNRJ2F783EB46h3Roi1BSqFcMqssB72c
Arg [2] : tokenMax_ (uint256[2]): 70,5

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000046
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [4] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [5] : 68747470733a2f2f706978656c706572736f6e732e67656e6574696363686169
Arg [6] : 6e2e696f2f6170692f6d65746100000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [8] : 697066733a2f2f516d52484a4853466f32483859426e4e524a32463738334542
Arg [9] : 34366833526f693142537146634d717373423732630000000000000000000000


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.