ETH Price: $2,474.67 (+0.82%)
 

Overview

Max Total Supply

568 GCP7

Holders

130

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
itsbeef.eth
Balance
1 GCP7
0x5514aff68284eDdFcd7bd46EA6Fc58AA941e0fED
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Next Gen NFT Platform.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MidnightRunner

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.0;

//------------------------------------------------------------------------------
// geneticchain.io - NextGen Generative NFT Platform
//------------------------------------------------------------------------------
//    _______                   __   __        ______ __          __
//   |     __|-----.-----.-----|  |_|__|----. |      |  |--.---.-|__|-----.
//   |    |  |  -__|     |  -__|   _|  |  __| |   ---|     |  _  |  |     |
//   |_______|_____|__|__|_____|____|__|____| |______|__|__|___._|__|__|__|
//
//------------------------------------------------------------------------------
// Genetic Chain: Midnight Runner
//------------------------------------------------------------------------------
// Author: papaver (@tronicdreams)
//------------------------------------------------------------------------------

import "./GeneticChainMetadata.sol";

//------------------------------------------------------------------------------
// Loomways
//------------------------------------------------------------------------------

/**
 * @title Midnight Runner
 * GeneticChain - Project #7 - Midnight Runner
 */
contract MidnightRunner is GeneticChainMetadata
{

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

    constructor(
        address[3] memory cards,
        string memory tokenIpfsHash,
        string memory baseUri,
        uint256 seed,
        address proxyRegistryAddress)
        GeneticChainMetadata(
          cards,
          tokenIpfsHash,
          baseUri,
          seed,
          proxyRegistryAddress)
    {
    }

}

File 2 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 4 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 5 of 21 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 6 of 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 7 of 21 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 21 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 9 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 10 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 11 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 12 of 21 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 13 of 21 : GeneticChain721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

//------------------------------------------------------------------------------
// geneticchain.io - NextGen Generative NFT Platform
//------------------------------------------------------------------------------
//    _______                   __   __        ______ __          __
//   |     __|-----.-----.-----|  |_|__|----. |      |  |--.---.-|__|-----.
//   |    |  |  -__|     |  -__|   _|  |  __| |   ---|     |  _  |  |     |
//   |_______|_____|__|__|_____|____|__|____| |______|__|__|___._|__|__|__|
//
//------------------------------------------------------------------------------
// Genetic Chain: GeneticChain721
//------------------------------------------------------------------------------
// Author: papaver (@tronicdreams)
//------------------------------------------------------------------------------

import "openzeppelin-solidity/contracts/access/Ownable.sol";
import "openzeppelin-solidity/contracts/utils/Strings.sol";

import "./common/meta-transactions/ContentMixin.sol";
import "./common/meta-transactions/NativeMetaTransaction.sol";
import "./geneticchain/ERC721SequentialB.sol";
import "./geneticchain/ERC721SeqEnumerableB.sol";
import "./libraries/State.sol";

//------------------------------------------------------------------------------
// helper contracts
//------------------------------------------------------------------------------

contract OwnableDelegateProxy {}

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

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

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

/**
 * Burn baby burn.
 */
interface IBurnable {
  function burn(uint256 tokenId) external;
}

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

/**
 * @title GeneticChain721
 *
 * ERC721 contract with various features:
 *  - lower-gas implmentation
 *  - low-gas generative token hash
 *  - opensea proxy setup
 *  - simple funds withdrawl
 */
abstract contract GeneticChain721 is
    ContextMixin,
    ERC721SeqEnumerableB,
    NativeMetaTransaction,
    Ownable
{
    using State for State.Data;

    //-------------------------------------------------------------------------
    // events
    //-------------------------------------------------------------------------

    // track original pass ids
    event MidnightAssemble(address indexed owner,
        uint256 tokenId, uint256 foundersId, uint256 chaingangId, uint256 geneticistsId);

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

    // token data
    uint256 private immutable _seed;

    // opensea proxy
    address private immutable _proxyRegistryAddress;

    // card addresses
    address private immutable _founders;
    address private immutable _chaingang;
    address private immutable _geneticists;

    // contract state
    State.Data private _state;

    //-------------------------------------------------------------------------
    // modifiers
    //-------------------------------------------------------------------------

    modifier validTokenId(uint256 tokenId) {
        require(_exists(tokenId), "invalid token");
        _;
    }

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

    modifier approvedOrOwner(address operator, uint256 tokenId) {
        require(_isApprovedOrOwner(operator, tokenId));
        _;
    }

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

    modifier isLive() {
        require(_state._live == 1, "minting not live");
        _;
    }

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

    modifier notLocked() {
        require(_state._locked == 0, "contract is locked");
        _;
    }

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

    modifier ownsPass(address pass, uint256 tokenId) {
        require(IERC721(pass).ownerOf(tokenId) == msg.sender, "invalid pass");
        _;
    }

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

    constructor(
        address[3] memory cards,
        uint256 seed,
        address proxyRegistryAddress)
        ERC721SequentialB("Midnight Runner Pass", "GCP7")
    {
        _founders             = cards[0];
        _chaingang            = cards[1];
        _geneticists          = cards[2];
        _seed                 = seed;
        _proxyRegistryAddress = proxyRegistryAddress;
        _initializeEIP712("Midnight Runner Pass");

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

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

    /**
     * Enable public minting.
     */
    function enablePublicMint()
        public onlyOwner
    {
        _state.setLive(1);
    }

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

    /**
     * Lock contract.  Disable public/member minting. Disallow on-chain
     *  code/library updates.
     */
    function lockContract()
        public onlyOwner
    {
        _state.setLocked(1);
    }

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

    /**
     * Check if public minting is live.
     */
    function publicLive()
        public view returns (bool)
    {
        return _state._live == 1;
    }

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

    /**
     * Check if contract is locked.
     */
    function isLocked()
        public view returns (bool)
    {
        return _state._locked == 1;
    }

    //-------------------------------------------------------------------------
    // minting
    //-------------------------------------------------------------------------

    /**
     * Upgrade Standard 3 passes to Elite.  Admin call.
     */
    function galleryMint(address to,
            uint256 foundersId, uint256 chaingangId, uint256 geneticistsId)
        external
        onlyOwner
        ownsPass(_founders, foundersId)
        ownsPass(_chaingang, chaingangId)
        ownsPass(_geneticists, geneticistsId)
    {
        // burn
        IBurnable(_founders).burn(foundersId);
        IBurnable(_chaingang).burn(chaingangId);
        IBurnable(_geneticists).burn(geneticistsId);

        // mint
        uint256 tokenId = _safeMint(to);

        // track original pass ids
        emit MidnightAssemble(to, tokenId,
            foundersId, chaingangId, geneticistsId);
    }

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

    /**
     * Upgrade Standard 3 passes to Elite.
     */
    function mint(uint256 foundersId, uint256 chaingangId, uint256 geneticistsId)
        external
        isLive
        notLocked
        ownsPass(_founders, foundersId)
        ownsPass(_chaingang, chaingangId)
        ownsPass(_geneticists, geneticistsId)
    {
        // burn
        IBurnable(_founders).burn(foundersId);
        IBurnable(_chaingang).burn(chaingangId);
        IBurnable(_geneticists).burn(geneticistsId);

        // mint
        uint256 tokenId = _safeMint(msg.sender);

        // track original pass ids
        emit MidnightAssemble(msg.sender, tokenId,
            foundersId, chaingangId, geneticistsId);
    }

    //-------------------------------------------------------------------------
    // ERC721Metadata
    //-------------------------------------------------------------------------

    function baseTokenURI()
        virtual public view returns (string memory);

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

    /**
     * @dev Returns uri of a token.  Not guarenteed token exists.
     */
    function tokenURI(uint256 tokenId)
        override public view returns (string memory)
    {
        return string(abi.encodePacked(
            baseTokenURI(), "/", Strings.toString(tokenId), "/meta"));
    }

    //-------------------------------------------------------------------------
    // generative
    //-------------------------------------------------------------------------

    /**
     * @dev Low-Gas alternative to storing the hash on the chain.
     * @return generated hash associated with valid a token.
     */
    function tokenHash(uint256 tokenId)
        public view validTokenId(tokenId) returns (bytes32)
    {
      return keccak256(
          abi.encodePacked(
              _seed,
              tokenId,
              address(this)));
    }

    //-------------------------------------------------------------------------
    // money
    //-------------------------------------------------------------------------

    /**
     * Pull money out of this contract.
     */
    function withdraw(address to, uint256 amount)
        public onlyOwner
    {
        require(amount > 0, "amount empty");
        require(amount <= address(this).balance, "amount exceeds balance");
        require(to != address(0), "address null");
        payable(to).transfer(amount);
    }

    //-------------------------------------------------------------------------
    // approval
    //-------------------------------------------------------------------------

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts
     *  to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator)
        override public view returns (bool)
    {
        // whitelist OpenSea proxy contract for easy trading
        ProxyRegistry proxyRegistry = ProxyRegistry(_proxyRegistryAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

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

    /**
     * This is used instead of msg.sender as transactions won't be sent by
     *  the original token owner, but by OpenSea.
     */
    function _msgSender()
        override internal view returns (address sender)
    {
        return ContextMixin.msgSender();
    }

}

File 14 of 21 : GeneticChainMetadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

//------------------------------------------------------------------------------
// geneticchain.io - NextGen Generative NFT Platform
//------------------------------------------------------------------------------
//    _______                   __   __        ______ __          __
//   |     __|-----.-----.-----|  |_|__|----. |      |  |--.---.-|__|-----.
//   |    |  |  -__|     |  -__|   _|  |  __| |   ---|     |  _  |  |     |
//   |_______|_____|__|__|_____|____|__|____| |______|__|__|___._|__|__|__|
//
//------------------------------------------------------------------------------
// Genetic Chain: GeneticChainMetadata
//------------------------------------------------------------------------------
// Author: papaver (@tronicdreams)
//------------------------------------------------------------------------------

import "./GeneticChain721.sol";

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

/**
 * @title GeneticChainMetadata
 * Holds all required metadata for Genetic Chain projects.
 */
abstract contract GeneticChainMetadata is GeneticChain721
{

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

    uint256 constant public projectId  = 7;
    string constant public artist      = "Matt Griffin";
    string constant public description = "The Midnight Runner Pass provides holders with membership to the Genetic Chain Platform.  Passes will unlock access to pre-sales, free mints, future GC programs, as well as access to live events at the GC gallery.";

    string private _tokenIpfsHash;
    string private _baseUri;

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

    constructor(
        address[3] memory cards,
        string memory tokenIpfsHash_,
        string memory baseUri_,
        uint256 seed,
        address proxyRegistryAddress)
        GeneticChain721(
          cards,
          seed,
          proxyRegistryAddress)
    {
        _tokenIpfsHash = tokenIpfsHash_;
        _baseUri       = baseUri_;
    }

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

    function tokenIpfsHash(uint256 /*tokenId*/)
        public
        view
        virtual
        returns (string memory)
    {
        return _tokenIpfsHash;
    }

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

    function baseTokenURI()
        override public view returns (string memory)
    {
        return string(abi.encodePacked(_baseUri, "/api/project/", Strings.toString(projectId), "/token"));
    }

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

    function contractURI()
        public view returns (string memory)
    {
        return string(abi.encodePacked(_baseUri, "/api/project/", Strings.toString(projectId), "/contract"));
    }

}

File 15 of 21 : ContentMixin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

File 16 of 21 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {Initializable} from "./Initializable.sol";

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contracts that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 17 of 21 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

File 18 of 21 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {SafeMath} from  "openzeppelin-solidity/contracts/utils/math/SafeMath.sol";
import {EIP712Base} from "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 19 of 21 : ERC721SeqEnumerableB.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

//------------------------------------------------------------------------------
// geneticchain.io - NextGen Generative NFT Platform
//------------------------------------------------------------------------------
//    _______                   __   __        ______ __          __
//   |     __|-----.-----.-----|  |_|__|----. |      |  |--.---.-|__|-----.
//   |    |  |  -__|     |  -__|   _|  |  __| |   ---|     |  _  |  |     |
//   |_______|_____|__|__|_____|____|__|____| |______|__|__|___._|__|__|__|
//
//------------------------------------------------------------------------------
// Genetic Chain: ERC721SeqEnumerableB
//------------------------------------------------------------------------------
// Author: papaver (@tronicdreams)
//------------------------------------------------------------------------------

import "openzeppelin-solidity/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "./ERC721SequentialB.sol";

/**
 * @dev This is a no storage implementation of the optional extension {ERC721}
 * defined in the EIP that adds enumerability of all the token ids in the
 * contract as well as their owners. These functions are all O(n) and mainly
 * for convenience and should not be called from a contract on the chain.
 */
abstract contract ERC721SeqEnumerableB is ERC721SequentialB, IERC721Enumerable {

    address constant zero = address(0);

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(
        bytes4 interfaceId
    ) public view virtual override(IERC165, ERC721SequentialB) 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 = ERC721SequentialB.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 20 of 21 : ERC721SequentialB.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: ERC721SequentialB
//------------------------------------------------------------------------------
// 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 sequential token creation to provide
 *  efficient minting.  Balances are still stored on chain to allow contract
 *  calls to be efficient.  Good for collections like passes which may need
 *  to check if addresses are valid holders of a token. A convenience
 *  function is provided which returns the list of owners and their token ids.
 *  The zero address indicates burned tokens.
 */
contract ERC721SequentialB 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[] internal _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @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 = ERC721SequentialB.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 = ERC721SequentialB.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);

        _balances[to] += 1;
        _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 = ERC721SequentialB.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @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(ERC721SequentialB.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);

        _balances[from] -= 1;
        _balances[to] += 1;
        _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(ERC721SequentialB.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 21 of 21 : 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 {

    //-------------------------------------------------------------------------
    // structs
    //-------------------------------------------------------------------------

    struct Data {
        uint16  _live;
        uint16  _locked;
        uint240 _unused;
    }

    //-------------------------------------------------------------------------
    // interface
    //-------------------------------------------------------------------------

    function setLive(Data storage data, uint256 enable)
        internal
     {
        data._live = uint16(enable);
    }

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

    function setLocked(Data storage data, uint256 locked)
        internal
    {
        data._locked = uint16(locked);
    }

}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[3]","name":"cards","type":"address[3]"},{"internalType":"string","name":"tokenIpfsHash","type":"string"},{"internalType":"string","name":"baseUri","type":"string"},{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"address","name":"proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"foundersId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"chaingangId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"geneticistsId","type":"uint256"}],"name":"MidnightAssemble","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":"ERC712_VERSION","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":"","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":"enablePublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"foundersId","type":"uint256"},{"internalType":"uint256","name":"chaingangId","type":"uint256"},{"internalType":"uint256","name":"geneticistsId","type":"uint256"}],"name":"galleryMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"foundersId","type":"uint256"},{"internalType":"uint256","name":"chaingangId","type":"uint256"},{"internalType":"uint256","name":"geneticistsId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ownerTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"projectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIpfsHash","outputs":[{"internalType":"string","name":"","type":"string"}],"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"}]

6101206040526006805460ff191690553480156200001c57600080fd5b5060405162003bc438038062003bc48339810160408190526200003f916200053d565b84848484848482826040518060400160405280601481526020017f4d69646e696768742052756e6e65722050617373000000000000000000000000815250604051806040016040528060048152602001634743503760e01b8152508160009080519060200190620000b292919062000371565b508051620000c890600190602084019062000371565b505050620000e5620000df6200019e60201b60201c565b620001ba565b82516001600160a01b0390811660c052602080850151821660e052604080860151831661010052608085905291831660a0528151808301909252601482527f4d69646e696768742052756e6e657220506173730000000000000000000000009082015262000153906200020c565b50506002805460010181556000525083516200017790600c90602087019062000371565b5082516200018d90600d90602086019062000371565b50505050505050505050506200065a565b6000620001b56200027060201b620020481760201c565b905090565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff1615620002555760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015260640160405180910390fd5b6200026081620002cf565b506006805460ff19166001179055565b600033301415620002c957600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620002cc9050565b50335b90565b6040518060800160405280604f815260200162003b75604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600755565b8280546200037f906200061d565b90600052602060002090601f016020900481019282620003a35760008555620003ee565b82601f10620003be57805160ff1916838001178555620003ee565b82800160010185558215620003ee579182015b82811115620003ee578251825591602001919060010190620003d1565b50620003fc92915062000400565b5090565b5b80821115620003fc576000815560010162000401565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b038111828210171562000452576200045262000417565b60405290565b604051601f8201601f191681016001600160401b038111828210171562000483576200048362000417565b604052919050565b80516001600160a01b0381168114620004a357600080fd5b919050565b600082601f830112620004ba57600080fd5b81516001600160401b03811115620004d657620004d662000417565b6020620004ec601f8301601f1916820162000458565b82815285828487010111156200050157600080fd5b60005b838110156200052157858101830151828201840152820162000504565b83811115620005335760008385840101525b5095945050505050565b600080600080600060e086880312156200055657600080fd5b86601f8701126200056657600080fd5b620005706200042d565b8060608801898111156200058357600080fd5b885b81811015620005a85762000599816200048b565b84526020938401930162000585565b505190965090506001600160401b0380821115620005c557600080fd5b620005d389838a01620004a8565b95506080880151915080821115620005ea57600080fd5b50620005f988828901620004a8565b93505060a086015191506200061160c087016200048b565b90509295509295909350565b600181811c908216806200063257607f821691505b602082108114156200065457634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051613497620006de600039600081816109c401528181610b7a015281816118740152611a2a01526000818161090001528181610b00015281816117b001526119b001526000818161083c01528181610a88015281816116ec015261193801526000611d76015260006115c301526134976000f3fe6080604052600436106102465760003560e01c8063715018a611610139578063b67193f3116100b6578063d547cfb71161007a578063d547cfb7146106bf578063d62f3b1c146106d4578063e8a3d485146106e9578063e985e9c5146106fe578063f2fde38b1461071e578063f3fef3a31461073e57600080fd5b8063b67193f314610615578063b7f751d814610635578063b88d4fde14610652578063bba7723e14610672578063c87b56dd1461069f57600080fd5b806395d89b41116100fd57806395d89b411461057c578063a22cb46514610591578063a3864397146105b1578063a4e2d634146105d1578063affe39c1146105f357600080fd5b8063715018a61461050a5780637284e4161461051f578063753868e3146105345780638da5cb5b1461054957806391ba317a1461056757600080fd5b80632d0335ab116101c757806343bc16121161018b57806343bc1612146104525780634f6ccce71461048a5780635a19e315146104aa5780636352211e146104ca57806370a08231146104ea57600080fd5b80632d0335ab146103b45780632f745c59146103ea5780633408e4701461040a5780633fafa1271461041d57806342842e0e1461043257600080fd5b80630c53c51c1161020e5780630c53c51c1461031c5780630f7e59701461032f57806318160ddd1461035c57806320379ee51461037f57806323b872dd1461039457600080fd5b806301ffc9a71461024b57806302acc94b1461028057806306fdde03146102a2578063081812fc146102c4578063095ea7b3146102fc575b600080fd5b34801561025757600080fd5b5061026b610266366004612ab1565b61075e565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102a061029b366004612ace565b610789565b005b3480156102ae57600080fd5b506102b7610c44565b6040516102779190612b52565b3480156102d057600080fd5b506102e46102df366004612b65565b610cd6565b6040516001600160a01b039091168152602001610277565b34801561030857600080fd5b506102a0610317366004612b93565b610d5e565b6102b761032a366004612c62565b610e86565b34801561033b57600080fd5b506102b7604051806040016040528060018152602001603160f81b81525081565b34801561036857600080fd5b50610371611070565b604051908152602001610277565b34801561038b57600080fd5b50600754610371565b3480156103a057600080fd5b506102a06103af366004612ce0565b6110cc565b3480156103c057600080fd5b506103716103cf366004612d21565b6001600160a01b031660009081526008602052604090205490565b3480156103f657600080fd5b50610371610405366004612b93565b611104565b34801561041657600080fd5b5046610371565b34801561042957600080fd5b50610371600781565b34801561043e57600080fd5b506102a061044d366004612ce0565b6111cf565b34801561045e57600080fd5b506102b76040518060400160405280600c81526020016b26b0ba3a1023b934b33334b760a11b81525081565b34801561049657600080fd5b506103716104a5366004612b65565b6111ea565b3480156104b657600080fd5b506102b76104c5366004612b65565b6112b5565b3480156104d657600080fd5b506102e46104e5366004612b65565b611349565b3480156104f657600080fd5b50610371610505366004612d21565b6113e3565b34801561051657600080fd5b506102a061146a565b34801561052b57600080fd5b506102b76114bf565b34801561054057600080fd5b506102a06114dc565b34801561055557600080fd5b506009546001600160a01b03166102e4565b34801561057357600080fd5b50610371611539565b34801561058857600080fd5b506102b7611550565b34801561059d57600080fd5b506102a06105ac366004612d3e565b61155f565b3480156105bd57600080fd5b506103716105cc366004612b65565b611575565b3480156105dd57600080fd5b50600a5462010000900461ffff1660011461026b565b3480156105ff57600080fd5b50610608611627565b6040516102779190612d7c565b34801561062157600080fd5b506102a0610630366004612dc9565b61168d565b34801561064157600080fd5b5061026b600a5461ffff1660011490565b34801561065e57600080fd5b506102a061066d366004612e04565b611afe565b34801561067e57600080fd5b5061069261068d366004612d21565b611b3d565b6040516102779190612e70565b3480156106ab57600080fd5b506102b76106ba366004612b65565b611c6f565b3480156106cb57600080fd5b506102b7611ca9565b3480156106e057600080fd5b506102a0611cdc565b3480156106f557600080fd5b506102b7611d35565b34801561070a57600080fd5b5061026b610719366004612ea8565b611d54565b34801561072a57600080fd5b506102a0610739366004612d21565b611e42565b34801561074a57600080fd5b506102a0610759366004612b93565b611efc565b60006001600160e01b0319821663780e9d6360e01b14806107835750610783826120a5565b92915050565b600a5461ffff166001146107d75760405162461bcd60e51b815260206004820152601060248201526f6d696e74696e67206e6f74206c69766560801b60448201526064015b60405180910390fd5b600a5462010000900461ffff16156108265760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b60448201526064016107ce565b6040516331a9108f60e11b8152600481018490527f000000000000000000000000000000000000000000000000000000000000000090849033906001600160a01b03841690636352211e9060240160206040518083038186803b15801561088c57600080fd5b505afa1580156108a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c49190612ed6565b6001600160a01b0316146108ea5760405162461bcd60e51b81526004016107ce90612ef3565b6040516331a9108f60e11b8152600481018590527f000000000000000000000000000000000000000000000000000000000000000090859033906001600160a01b03841690636352211e9060240160206040518083038186803b15801561095057600080fd5b505afa158015610964573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109889190612ed6565b6001600160a01b0316146109ae5760405162461bcd60e51b81526004016107ce90612ef3565b6040516331a9108f60e11b8152600481018690527f000000000000000000000000000000000000000000000000000000000000000090869033906001600160a01b03841690636352211e9060240160206040518083038186803b158015610a1457600080fd5b505afa158015610a28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4c9190612ed6565b6001600160a01b031614610a725760405162461bcd60e51b81526004016107ce90612ef3565b604051630852cd8d60e31b8152600481018a90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342966c6890602401600060405180830381600087803b158015610ad457600080fd5b505af1158015610ae8573d6000803e3d6000fd5b5050604051630852cd8d60e31b8152600481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506342966c689150602401600060405180830381600087803b158015610b4e57600080fd5b505af1158015610b62573d6000803e3d6000fd5b5050604051630852cd8d60e31b8152600481018a90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506342966c689150602401600060405180830381600087803b158015610bc857600080fd5b505af1158015610bdc573d6000803e3d6000fd5b505050506000610beb336120f5565b60408051828152602081018d90529081018b9052606081018a905290915033907f051b52da7b150734dba705c2404f2664da58db3c4388365d111b17584fdcdc929060800160405180910390a250505050505050505050565b606060008054610c5390612f19565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7f90612f19565b8015610ccc5780601f10610ca157610100808354040283529160200191610ccc565b820191906000526020600020905b815481529060010190602001808311610caf57829003601f168201915b5050505050905090565b6000610ce182612110565b610d425760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107ce565b506000908152600460205260409020546001600160a01b031690565b6000610d6982611349565b9050806001600160a01b0316836001600160a01b03161415610dd75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107ce565b806001600160a01b0316610de961215a565b6001600160a01b03161480610e055750610e058161071961215a565b610e775760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107ce565b610e818383612164565b505050565b60408051606081810183526001600160a01b03881660008181526008602090815290859020548452830152918101869052610ec487828787876121d2565b610f1a5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b60648201526084016107ce565b6001600160a01b038716600090815260086020526040902054610f3e9060016122c2565b6001600160a01b0388166000908152600860205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610f8e90899033908a90612f4e565b60405180910390a1600080306001600160a01b0316888a604051602001610fb6929190612f83565b60408051601f1981840301815290829052610fd091612fba565b6000604051808303816000865af19150503d806000811461100d576040519150601f19603f3d011682016040523d82523d6000602084013e611012565b606091505b5091509150816110645760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c0000000060448201526064016107ce565b98975050505050505050565b600254600090815b818110156110c75760006001600160a01b03166002828154811061109e5761109e612fd6565b6000918252602090912001546001600160a01b0316146110bf578260010192505b600101611078565b505090565b6110dd6110d761215a565b826122d5565b6110f95760405162461bcd60e51b81526004016107ce90612fec565b610e81838383612397565b6002546000905b8082101561116557836001600160a01b03166002838154811061113057611130612fd6565b6000918252602090912001546001600160a01b0316141561115a5760001983019261115a57611165565b81600101915061110b565b8082106111c85760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107ce565b5092915050565b610e8183838360405180602001604052806000815250611afe565b6002546000905b8082101561124b5760006001600160a01b03166002838154811061121757611217612fd6565b6000918252602090912001546001600160a01b031614611240576000198301926112405761124b565b8160010191506111f1565b8082106112af5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107ce565b50919050565b6060600c80546112c490612f19565b80601f01602080910402602001604051908101604052809291908181526020018280546112f090612f19565b801561133d5780601f106113125761010080835404028352916020019161133d565b820191906000526020600020905b81548152906001019060200180831161132057829003601f168201915b50505050509050919050565b600061135482612110565b6113b25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107ce565b6000600283815481106113c7576113c7612fd6565b6000918252602090912001546001600160a01b03169392505050565b60006001600160a01b03821661144e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107ce565b506001600160a01b031660009081526003602052604090205490565b61147261215a565b6001600160a01b031661148d6009546001600160a01b031690565b6001600160a01b0316146114b35760405162461bcd60e51b81526004016107ce9061303d565b6114bd600061254b565b565b60405180610100016040528060d5815260200161338d60d5913981565b6114e461215a565b6001600160a01b03166114ff6009546001600160a01b031690565b6001600160a01b0316146115255760405162461bcd60e51b81526004016107ce9061303d565b600a805463ffff0000191662010000179055565b60025460009061154b90600190613088565b905090565b606060018054610c5390612f19565b61157161156a61215a565b838361259d565b5050565b60008161158181612110565b6115bd5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b60448201526064016107ce565b604080517f0000000000000000000000000000000000000000000000000000000000000000602082015290810184905230606090811b6bffffffffffffffffffffffff19169082015260740160405160208183030381529060405280519060200120915050919050565b60606000600280548060200260200160405190810160405280929190818152602001828054801561168157602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611663575b50939695505050505050565b61169561215a565b6001600160a01b03166116b06009546001600160a01b031690565b6001600160a01b0316146116d65760405162461bcd60e51b81526004016107ce9061303d565b6040516331a9108f60e11b8152600481018490527f000000000000000000000000000000000000000000000000000000000000000090849033906001600160a01b03841690636352211e9060240160206040518083038186803b15801561173c57600080fd5b505afa158015611750573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117749190612ed6565b6001600160a01b03161461179a5760405162461bcd60e51b81526004016107ce90612ef3565b6040516331a9108f60e11b8152600481018590527f000000000000000000000000000000000000000000000000000000000000000090859033906001600160a01b03841690636352211e9060240160206040518083038186803b15801561180057600080fd5b505afa158015611814573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118389190612ed6565b6001600160a01b03161461185e5760405162461bcd60e51b81526004016107ce90612ef3565b6040516331a9108f60e11b8152600481018690527f000000000000000000000000000000000000000000000000000000000000000090869033906001600160a01b03841690636352211e9060240160206040518083038186803b1580156118c457600080fd5b505afa1580156118d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118fc9190612ed6565b6001600160a01b0316146119225760405162461bcd60e51b81526004016107ce90612ef3565b604051630852cd8d60e31b8152600481018a90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342966c6890602401600060405180830381600087803b15801561198457600080fd5b505af1158015611998573d6000803e3d6000fd5b5050604051630852cd8d60e31b8152600481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506342966c689150602401600060405180830381600087803b1580156119fe57600080fd5b505af1158015611a12573d6000803e3d6000fd5b5050604051630852cd8d60e31b8152600481018a90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506342966c689150602401600060405180830381600087803b158015611a7857600080fd5b505af1158015611a8c573d6000803e3d6000fd5b505050506000611a9b8b6120f5565b60408051828152602081018d90529081018b9052606081018a90529091506001600160a01b038c16907f051b52da7b150734dba705c2404f2664da58db3c4388365d111b17584fdcdc929060800160405180910390a25050505050505050505050565b611b0f611b0961215a565b836122d5565b611b2b5760405162461bcd60e51b81526004016107ce90612fec565b611b378484848461266c565b50505050565b60606000611b4a836113e3565b905080611ba85760405162461bcd60e51b815260206004820152602660248201527f455243373231456e756d657261626c653a206f776e6572206f776e73206e6f20604482015265746f6b656e7360d01b60648201526084016107ce565b60025460008267ffffffffffffffff811115611bc657611bc6612bbf565b604051908082528060200260200182016040528015611bef578160200160208202803683370190505b5090506000805b83811015611c6457866001600160a01b031660028281548110611c1b57611c1b612fd6565b6000918252602090912001546001600160a01b03161415611c5c5780838380600101945081518110611c4f57611c4f612fd6565b6020026020010181815250505b600101611bf6565b509095945050505050565b6060611c79611ca9565b611c828361269f565b604051602001611c9392919061309f565b6040516020818303038152906040529050919050565b6060600d611cb7600761269f565b604051602001611cc8929190613187565b604051602081830303815290604052905090565b611ce461215a565b6001600160a01b0316611cff6009546001600160a01b031690565b6001600160a01b031614611d255760405162461bcd60e51b81526004016107ce9061303d565b600a805461ffff19166001179055565b6060600d611d43600761269f565b604051602001611cc89291906131d8565b60405163c455279160e01b81526001600160a01b0383811660048301526000917f000000000000000000000000000000000000000000000000000000000000000091848116919083169063c45527919060240160206040518083038186803b158015611dbf57600080fd5b505afa158015611dd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611df79190612ed6565b6001600160a01b03161415611e10576001915050610783565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b611e4a61215a565b6001600160a01b0316611e656009546001600160a01b031690565b6001600160a01b031614611e8b5760405162461bcd60e51b81526004016107ce9061303d565b6001600160a01b038116611ef05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ce565b611ef98161254b565b50565b611f0461215a565b6001600160a01b0316611f1f6009546001600160a01b031690565b6001600160a01b031614611f455760405162461bcd60e51b81526004016107ce9061303d565b60008111611f845760405162461bcd60e51b815260206004820152600c60248201526b616d6f756e7420656d70747960a01b60448201526064016107ce565b47811115611fcd5760405162461bcd60e51b8152602060048201526016602482015275616d6f756e7420657863656564732062616c616e636560501b60448201526064016107ce565b6001600160a01b0382166120125760405162461bcd60e51b815260206004820152600c60248201526b1859191c995cdcc81b9d5b1b60a21b60448201526064016107ce565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610e81573d6000803e3d6000fd5b60003330141561209f57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506120a29050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b14806120d657506001600160e01b03198216635b5e139f60e01b145b8061078357506301ffc9a760e01b6001600160e01b0319831614610783565b6000610783826040518060200160405280600081525061279d565b60025460009082108015610783575060006001600160a01b03166002838154811061213d5761213d612fd6565b6000918252602090912001546001600160a01b0316141592915050565b600061154b612048565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061219982611349565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166122385760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b60648201526084016107ce565b600161224b612246876127d3565b612850565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612299573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006122ce828461322c565b9392505050565b60006122e082612110565b6123415760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107ce565b600061234c83611349565b9050806001600160a01b0316846001600160a01b031614806123875750836001600160a01b031661237c84610cd6565b6001600160a01b0316145b80611e3a5750611e3a8185611d54565b826001600160a01b03166123aa82611349565b6001600160a01b0316146124125760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107ce565b6001600160a01b0382166124745760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107ce565b61247f600082612164565b6001600160a01b03831660009081526003602052604081208054600192906124a8908490613088565b90915550506001600160a01b03821660009081526003602052604081208054600192906124d690849061322c565b9250508190555081600282815481106124f1576124f1612fd6565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156125ff5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107ce565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612677848484612397565b61268384848484612880565b611b375760405162461bcd60e51b81526004016107ce90613244565b6060816126c35750506040805180820190915260018152600360fc1b602082015290565b8160005b81156126ed57806126d781613296565b91506126e69050600a836132c7565b91506126c7565b60008167ffffffffffffffff81111561270857612708612bbf565b6040519080825280601f01601f191660200182016040528015612732576020820181803683370190505b5090505b8415611e3a57612747600183613088565b9150612754600a866132db565b61275f90603061322c565b60f81b81838151811061277457612774612fd6565b60200101906001600160f81b031916908160001a905350612796600a866132c7565b9450612736565b60006127a883612994565b90506127b76000848385612880565b6107835760405162461bcd60e51b81526004016107ce90613244565b600060405180608001604052806043815260200161334a6043913980516020918201208351848301516040808701518051908601209051612833950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061285b60075490565b60405161190160f01b6020820152602281019190915260428101839052606201612833565b60006001600160a01b0384163b1561298957836001600160a01b031663150b7a026128a961215a565b8786866040518563ffffffff1660e01b81526004016128cb94939291906132ef565b602060405180830381600087803b1580156128e557600080fd5b505af1925050508015612915575060408051601f3d908101601f191682019092526129129181019061332c565b60015b61296f573d808015612943576040519150601f19603f3d011682016040523d82523d6000602084013e612948565b606091505b5080516129675760405162461bcd60e51b81526004016107ce90613244565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e3a565b506001949350505050565b60006001600160a01b0382166129ec5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107ce565b506002546001600160a01b0382166000908152600360205260408120805460019290612a1990849061322c565b90915550506002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b6001600160e01b031981168114611ef957600080fd5b600060208284031215612ac357600080fd5b81356122ce81612a9b565b600080600060608486031215612ae357600080fd5b505081359360208301359350604090920135919050565b60005b83811015612b15578181015183820152602001612afd565b83811115611b375750506000910152565b60008151808452612b3e816020860160208601612afa565b601f01601f19169290920160200192915050565b6020815260006122ce6020830184612b26565b600060208284031215612b7757600080fd5b5035919050565b6001600160a01b0381168114611ef957600080fd5b60008060408385031215612ba657600080fd5b8235612bb181612b7e565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112612be657600080fd5b813567ffffffffffffffff80821115612c0157612c01612bbf565b604051601f8301601f19908116603f01168101908282118183101715612c2957612c29612bbf565b81604052838152866020858801011115612c4257600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a08688031215612c7a57600080fd5b8535612c8581612b7e565b9450602086013567ffffffffffffffff811115612ca157600080fd5b612cad88828901612bd5565b9450506040860135925060608601359150608086013560ff81168114612cd257600080fd5b809150509295509295909350565b600080600060608486031215612cf557600080fd5b8335612d0081612b7e565b92506020840135612d1081612b7e565b929592945050506040919091013590565b600060208284031215612d3357600080fd5b81356122ce81612b7e565b60008060408385031215612d5157600080fd5b8235612d5c81612b7e565b915060208301358015158114612d7157600080fd5b809150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015612dbd5783516001600160a01b031683529284019291840191600101612d98565b50909695505050505050565b60008060008060808587031215612ddf57600080fd5b8435612dea81612b7e565b966020860135965060408601359560600135945092505050565b60008060008060808587031215612e1a57600080fd5b8435612e2581612b7e565b93506020850135612e3581612b7e565b925060408501359150606085013567ffffffffffffffff811115612e5857600080fd5b612e6487828801612bd5565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b81811015612dbd57835183529284019291840191600101612e8c565b60008060408385031215612ebb57600080fd5b8235612ec681612b7e565b91506020830135612d7181612b7e565b600060208284031215612ee857600080fd5b81516122ce81612b7e565b6020808252600c908201526b696e76616c6964207061737360a01b604082015260600190565b600181811c90821680612f2d57607f821691505b602082108114156112af57634e487b7160e01b600052602260045260246000fd5b6001600160a01b03848116825283166020820152606060408201819052600090612f7a90830184612b26565b95945050505050565b60008351612f95818460208801612afa565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60008251612fcc818460208701612afa565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008282101561309a5761309a613072565b500390565b600083516130b1818460208801612afa565b602f60f81b90830190815283516130cf816001840160208801612afa565b642f6d65746160d81b60019290910191820152600601949350505050565b8054600090600181811c908083168061310757607f831692505b602080841082141561312957634e487b7160e01b600052602260045260246000fd5b81801561313d576001811461314e5761317b565b60ff1986168952848901965061317b565b60008881526020902060005b868110156131735781548b82015290850190830161315a565b505084890196505b50505050505092915050565b600061319382856130ed565b6c2f6170692f70726f6a6563742f60981b815283516131b981600d840160208801612afa565b6517ba37b5b2b760d11b600d9290910191820152601301949350505050565b60006131e482856130ed565b6c2f6170692f70726f6a6563742f60981b8152835161320a81600d840160208801612afa565b680bd8dbdb9d1c9858dd60ba1b600d9290910191820152601601949350505050565b6000821982111561323f5761323f613072565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006000198214156132aa576132aa613072565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826132d6576132d66132b1565b500490565b6000826132ea576132ea6132b1565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061332290830184612b26565b9695505050505050565b60006020828403121561333e57600080fd5b81516122ce81612a9b56fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529546865204d69646e696768742052756e6e657220506173732070726f766964657320686f6c646572732077697468206d656d6265727368697020746f207468652047656e6574696320436861696e20506c6174666f726d2e20205061737365732077696c6c20756e6c6f636b2061636365737320746f207072652d73616c65732c2066726565206d696e74732c206675747572652047432070726f6772616d732c2061732077656c6c2061732061636365737320746f206c697665206576656e7473206174207468652047432067616c6c6572792ea2646970667358221220c40a75a51fa18667b270eabf2c75154e173d66d448d45fadf4ef2c4bf2d2872b64736f6c63430008090033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000f91180a67a2c607523b5e32f98732d8cddd6538a000000000000000000000000a9833d5d3ff75a32709a8da2e66a7df9d2c83aa00000000000000000000000001bc2f28fb7e3be8b5905541a90e4312a9976ace100000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001400741e69101af6b9b7cde00f7656d22895fc525063bc067110e99b22586f9d6b0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000002e516d566432583334725373375277414e467239706e52704b6f624743347a59446264534334576753566250374473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001768747470733a2f2f67656e65746963636861696e2e696f000000000000000000

Deployed Bytecode

0x6080604052600436106102465760003560e01c8063715018a611610139578063b67193f3116100b6578063d547cfb71161007a578063d547cfb7146106bf578063d62f3b1c146106d4578063e8a3d485146106e9578063e985e9c5146106fe578063f2fde38b1461071e578063f3fef3a31461073e57600080fd5b8063b67193f314610615578063b7f751d814610635578063b88d4fde14610652578063bba7723e14610672578063c87b56dd1461069f57600080fd5b806395d89b41116100fd57806395d89b411461057c578063a22cb46514610591578063a3864397146105b1578063a4e2d634146105d1578063affe39c1146105f357600080fd5b8063715018a61461050a5780637284e4161461051f578063753868e3146105345780638da5cb5b1461054957806391ba317a1461056757600080fd5b80632d0335ab116101c757806343bc16121161018b57806343bc1612146104525780634f6ccce71461048a5780635a19e315146104aa5780636352211e146104ca57806370a08231146104ea57600080fd5b80632d0335ab146103b45780632f745c59146103ea5780633408e4701461040a5780633fafa1271461041d57806342842e0e1461043257600080fd5b80630c53c51c1161020e5780630c53c51c1461031c5780630f7e59701461032f57806318160ddd1461035c57806320379ee51461037f57806323b872dd1461039457600080fd5b806301ffc9a71461024b57806302acc94b1461028057806306fdde03146102a2578063081812fc146102c4578063095ea7b3146102fc575b600080fd5b34801561025757600080fd5b5061026b610266366004612ab1565b61075e565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102a061029b366004612ace565b610789565b005b3480156102ae57600080fd5b506102b7610c44565b6040516102779190612b52565b3480156102d057600080fd5b506102e46102df366004612b65565b610cd6565b6040516001600160a01b039091168152602001610277565b34801561030857600080fd5b506102a0610317366004612b93565b610d5e565b6102b761032a366004612c62565b610e86565b34801561033b57600080fd5b506102b7604051806040016040528060018152602001603160f81b81525081565b34801561036857600080fd5b50610371611070565b604051908152602001610277565b34801561038b57600080fd5b50600754610371565b3480156103a057600080fd5b506102a06103af366004612ce0565b6110cc565b3480156103c057600080fd5b506103716103cf366004612d21565b6001600160a01b031660009081526008602052604090205490565b3480156103f657600080fd5b50610371610405366004612b93565b611104565b34801561041657600080fd5b5046610371565b34801561042957600080fd5b50610371600781565b34801561043e57600080fd5b506102a061044d366004612ce0565b6111cf565b34801561045e57600080fd5b506102b76040518060400160405280600c81526020016b26b0ba3a1023b934b33334b760a11b81525081565b34801561049657600080fd5b506103716104a5366004612b65565b6111ea565b3480156104b657600080fd5b506102b76104c5366004612b65565b6112b5565b3480156104d657600080fd5b506102e46104e5366004612b65565b611349565b3480156104f657600080fd5b50610371610505366004612d21565b6113e3565b34801561051657600080fd5b506102a061146a565b34801561052b57600080fd5b506102b76114bf565b34801561054057600080fd5b506102a06114dc565b34801561055557600080fd5b506009546001600160a01b03166102e4565b34801561057357600080fd5b50610371611539565b34801561058857600080fd5b506102b7611550565b34801561059d57600080fd5b506102a06105ac366004612d3e565b61155f565b3480156105bd57600080fd5b506103716105cc366004612b65565b611575565b3480156105dd57600080fd5b50600a5462010000900461ffff1660011461026b565b3480156105ff57600080fd5b50610608611627565b6040516102779190612d7c565b34801561062157600080fd5b506102a0610630366004612dc9565b61168d565b34801561064157600080fd5b5061026b600a5461ffff1660011490565b34801561065e57600080fd5b506102a061066d366004612e04565b611afe565b34801561067e57600080fd5b5061069261068d366004612d21565b611b3d565b6040516102779190612e70565b3480156106ab57600080fd5b506102b76106ba366004612b65565b611c6f565b3480156106cb57600080fd5b506102b7611ca9565b3480156106e057600080fd5b506102a0611cdc565b3480156106f557600080fd5b506102b7611d35565b34801561070a57600080fd5b5061026b610719366004612ea8565b611d54565b34801561072a57600080fd5b506102a0610739366004612d21565b611e42565b34801561074a57600080fd5b506102a0610759366004612b93565b611efc565b60006001600160e01b0319821663780e9d6360e01b14806107835750610783826120a5565b92915050565b600a5461ffff166001146107d75760405162461bcd60e51b815260206004820152601060248201526f6d696e74696e67206e6f74206c69766560801b60448201526064015b60405180910390fd5b600a5462010000900461ffff16156108265760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b60448201526064016107ce565b6040516331a9108f60e11b8152600481018490527f000000000000000000000000f91180a67a2c607523b5e32f98732d8cddd6538a90849033906001600160a01b03841690636352211e9060240160206040518083038186803b15801561088c57600080fd5b505afa1580156108a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c49190612ed6565b6001600160a01b0316146108ea5760405162461bcd60e51b81526004016107ce90612ef3565b6040516331a9108f60e11b8152600481018590527f000000000000000000000000a9833d5d3ff75a32709a8da2e66a7df9d2c83aa090859033906001600160a01b03841690636352211e9060240160206040518083038186803b15801561095057600080fd5b505afa158015610964573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109889190612ed6565b6001600160a01b0316146109ae5760405162461bcd60e51b81526004016107ce90612ef3565b6040516331a9108f60e11b8152600481018690527f0000000000000000000000001bc2f28fb7e3be8b5905541a90e4312a9976ace190869033906001600160a01b03841690636352211e9060240160206040518083038186803b158015610a1457600080fd5b505afa158015610a28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4c9190612ed6565b6001600160a01b031614610a725760405162461bcd60e51b81526004016107ce90612ef3565b604051630852cd8d60e31b8152600481018a90527f000000000000000000000000f91180a67a2c607523b5e32f98732d8cddd6538a6001600160a01b0316906342966c6890602401600060405180830381600087803b158015610ad457600080fd5b505af1158015610ae8573d6000803e3d6000fd5b5050604051630852cd8d60e31b8152600481018b90527f000000000000000000000000a9833d5d3ff75a32709a8da2e66a7df9d2c83aa06001600160a01b031692506342966c689150602401600060405180830381600087803b158015610b4e57600080fd5b505af1158015610b62573d6000803e3d6000fd5b5050604051630852cd8d60e31b8152600481018a90527f0000000000000000000000001bc2f28fb7e3be8b5905541a90e4312a9976ace16001600160a01b031692506342966c689150602401600060405180830381600087803b158015610bc857600080fd5b505af1158015610bdc573d6000803e3d6000fd5b505050506000610beb336120f5565b60408051828152602081018d90529081018b9052606081018a905290915033907f051b52da7b150734dba705c2404f2664da58db3c4388365d111b17584fdcdc929060800160405180910390a250505050505050505050565b606060008054610c5390612f19565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7f90612f19565b8015610ccc5780601f10610ca157610100808354040283529160200191610ccc565b820191906000526020600020905b815481529060010190602001808311610caf57829003601f168201915b5050505050905090565b6000610ce182612110565b610d425760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107ce565b506000908152600460205260409020546001600160a01b031690565b6000610d6982611349565b9050806001600160a01b0316836001600160a01b03161415610dd75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107ce565b806001600160a01b0316610de961215a565b6001600160a01b03161480610e055750610e058161071961215a565b610e775760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107ce565b610e818383612164565b505050565b60408051606081810183526001600160a01b03881660008181526008602090815290859020548452830152918101869052610ec487828787876121d2565b610f1a5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b60648201526084016107ce565b6001600160a01b038716600090815260086020526040902054610f3e9060016122c2565b6001600160a01b0388166000908152600860205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610f8e90899033908a90612f4e565b60405180910390a1600080306001600160a01b0316888a604051602001610fb6929190612f83565b60408051601f1981840301815290829052610fd091612fba565b6000604051808303816000865af19150503d806000811461100d576040519150601f19603f3d011682016040523d82523d6000602084013e611012565b606091505b5091509150816110645760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c0000000060448201526064016107ce565b98975050505050505050565b600254600090815b818110156110c75760006001600160a01b03166002828154811061109e5761109e612fd6565b6000918252602090912001546001600160a01b0316146110bf578260010192505b600101611078565b505090565b6110dd6110d761215a565b826122d5565b6110f95760405162461bcd60e51b81526004016107ce90612fec565b610e81838383612397565b6002546000905b8082101561116557836001600160a01b03166002838154811061113057611130612fd6565b6000918252602090912001546001600160a01b0316141561115a5760001983019261115a57611165565b81600101915061110b565b8082106111c85760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107ce565b5092915050565b610e8183838360405180602001604052806000815250611afe565b6002546000905b8082101561124b5760006001600160a01b03166002838154811061121757611217612fd6565b6000918252602090912001546001600160a01b031614611240576000198301926112405761124b565b8160010191506111f1565b8082106112af5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107ce565b50919050565b6060600c80546112c490612f19565b80601f01602080910402602001604051908101604052809291908181526020018280546112f090612f19565b801561133d5780601f106113125761010080835404028352916020019161133d565b820191906000526020600020905b81548152906001019060200180831161132057829003601f168201915b50505050509050919050565b600061135482612110565b6113b25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107ce565b6000600283815481106113c7576113c7612fd6565b6000918252602090912001546001600160a01b03169392505050565b60006001600160a01b03821661144e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107ce565b506001600160a01b031660009081526003602052604090205490565b61147261215a565b6001600160a01b031661148d6009546001600160a01b031690565b6001600160a01b0316146114b35760405162461bcd60e51b81526004016107ce9061303d565b6114bd600061254b565b565b60405180610100016040528060d5815260200161338d60d5913981565b6114e461215a565b6001600160a01b03166114ff6009546001600160a01b031690565b6001600160a01b0316146115255760405162461bcd60e51b81526004016107ce9061303d565b600a805463ffff0000191662010000179055565b60025460009061154b90600190613088565b905090565b606060018054610c5390612f19565b61157161156a61215a565b838361259d565b5050565b60008161158181612110565b6115bd5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b60448201526064016107ce565b604080517f0741e69101af6b9b7cde00f7656d22895fc525063bc067110e99b22586f9d6b0602082015290810184905230606090811b6bffffffffffffffffffffffff19169082015260740160405160208183030381529060405280519060200120915050919050565b60606000600280548060200260200160405190810160405280929190818152602001828054801561168157602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611663575b50939695505050505050565b61169561215a565b6001600160a01b03166116b06009546001600160a01b031690565b6001600160a01b0316146116d65760405162461bcd60e51b81526004016107ce9061303d565b6040516331a9108f60e11b8152600481018490527f000000000000000000000000f91180a67a2c607523b5e32f98732d8cddd6538a90849033906001600160a01b03841690636352211e9060240160206040518083038186803b15801561173c57600080fd5b505afa158015611750573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117749190612ed6565b6001600160a01b03161461179a5760405162461bcd60e51b81526004016107ce90612ef3565b6040516331a9108f60e11b8152600481018590527f000000000000000000000000a9833d5d3ff75a32709a8da2e66a7df9d2c83aa090859033906001600160a01b03841690636352211e9060240160206040518083038186803b15801561180057600080fd5b505afa158015611814573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118389190612ed6565b6001600160a01b03161461185e5760405162461bcd60e51b81526004016107ce90612ef3565b6040516331a9108f60e11b8152600481018690527f0000000000000000000000001bc2f28fb7e3be8b5905541a90e4312a9976ace190869033906001600160a01b03841690636352211e9060240160206040518083038186803b1580156118c457600080fd5b505afa1580156118d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118fc9190612ed6565b6001600160a01b0316146119225760405162461bcd60e51b81526004016107ce90612ef3565b604051630852cd8d60e31b8152600481018a90527f000000000000000000000000f91180a67a2c607523b5e32f98732d8cddd6538a6001600160a01b0316906342966c6890602401600060405180830381600087803b15801561198457600080fd5b505af1158015611998573d6000803e3d6000fd5b5050604051630852cd8d60e31b8152600481018b90527f000000000000000000000000a9833d5d3ff75a32709a8da2e66a7df9d2c83aa06001600160a01b031692506342966c689150602401600060405180830381600087803b1580156119fe57600080fd5b505af1158015611a12573d6000803e3d6000fd5b5050604051630852cd8d60e31b8152600481018a90527f0000000000000000000000001bc2f28fb7e3be8b5905541a90e4312a9976ace16001600160a01b031692506342966c689150602401600060405180830381600087803b158015611a7857600080fd5b505af1158015611a8c573d6000803e3d6000fd5b505050506000611a9b8b6120f5565b60408051828152602081018d90529081018b9052606081018a90529091506001600160a01b038c16907f051b52da7b150734dba705c2404f2664da58db3c4388365d111b17584fdcdc929060800160405180910390a25050505050505050505050565b611b0f611b0961215a565b836122d5565b611b2b5760405162461bcd60e51b81526004016107ce90612fec565b611b378484848461266c565b50505050565b60606000611b4a836113e3565b905080611ba85760405162461bcd60e51b815260206004820152602660248201527f455243373231456e756d657261626c653a206f776e6572206f776e73206e6f20604482015265746f6b656e7360d01b60648201526084016107ce565b60025460008267ffffffffffffffff811115611bc657611bc6612bbf565b604051908082528060200260200182016040528015611bef578160200160208202803683370190505b5090506000805b83811015611c6457866001600160a01b031660028281548110611c1b57611c1b612fd6565b6000918252602090912001546001600160a01b03161415611c5c5780838380600101945081518110611c4f57611c4f612fd6565b6020026020010181815250505b600101611bf6565b509095945050505050565b6060611c79611ca9565b611c828361269f565b604051602001611c9392919061309f565b6040516020818303038152906040529050919050565b6060600d611cb7600761269f565b604051602001611cc8929190613187565b604051602081830303815290604052905090565b611ce461215a565b6001600160a01b0316611cff6009546001600160a01b031690565b6001600160a01b031614611d255760405162461bcd60e51b81526004016107ce9061303d565b600a805461ffff19166001179055565b6060600d611d43600761269f565b604051602001611cc89291906131d8565b60405163c455279160e01b81526001600160a01b0383811660048301526000917f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c191848116919083169063c45527919060240160206040518083038186803b158015611dbf57600080fd5b505afa158015611dd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611df79190612ed6565b6001600160a01b03161415611e10576001915050610783565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b611e4a61215a565b6001600160a01b0316611e656009546001600160a01b031690565b6001600160a01b031614611e8b5760405162461bcd60e51b81526004016107ce9061303d565b6001600160a01b038116611ef05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ce565b611ef98161254b565b50565b611f0461215a565b6001600160a01b0316611f1f6009546001600160a01b031690565b6001600160a01b031614611f455760405162461bcd60e51b81526004016107ce9061303d565b60008111611f845760405162461bcd60e51b815260206004820152600c60248201526b616d6f756e7420656d70747960a01b60448201526064016107ce565b47811115611fcd5760405162461bcd60e51b8152602060048201526016602482015275616d6f756e7420657863656564732062616c616e636560501b60448201526064016107ce565b6001600160a01b0382166120125760405162461bcd60e51b815260206004820152600c60248201526b1859191c995cdcc81b9d5b1b60a21b60448201526064016107ce565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610e81573d6000803e3d6000fd5b60003330141561209f57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506120a29050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b14806120d657506001600160e01b03198216635b5e139f60e01b145b8061078357506301ffc9a760e01b6001600160e01b0319831614610783565b6000610783826040518060200160405280600081525061279d565b60025460009082108015610783575060006001600160a01b03166002838154811061213d5761213d612fd6565b6000918252602090912001546001600160a01b0316141592915050565b600061154b612048565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061219982611349565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166122385760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b60648201526084016107ce565b600161224b612246876127d3565b612850565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612299573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006122ce828461322c565b9392505050565b60006122e082612110565b6123415760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107ce565b600061234c83611349565b9050806001600160a01b0316846001600160a01b031614806123875750836001600160a01b031661237c84610cd6565b6001600160a01b0316145b80611e3a5750611e3a8185611d54565b826001600160a01b03166123aa82611349565b6001600160a01b0316146124125760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107ce565b6001600160a01b0382166124745760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107ce565b61247f600082612164565b6001600160a01b03831660009081526003602052604081208054600192906124a8908490613088565b90915550506001600160a01b03821660009081526003602052604081208054600192906124d690849061322c565b9250508190555081600282815481106124f1576124f1612fd6565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156125ff5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107ce565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612677848484612397565b61268384848484612880565b611b375760405162461bcd60e51b81526004016107ce90613244565b6060816126c35750506040805180820190915260018152600360fc1b602082015290565b8160005b81156126ed57806126d781613296565b91506126e69050600a836132c7565b91506126c7565b60008167ffffffffffffffff81111561270857612708612bbf565b6040519080825280601f01601f191660200182016040528015612732576020820181803683370190505b5090505b8415611e3a57612747600183613088565b9150612754600a866132db565b61275f90603061322c565b60f81b81838151811061277457612774612fd6565b60200101906001600160f81b031916908160001a905350612796600a866132c7565b9450612736565b60006127a883612994565b90506127b76000848385612880565b6107835760405162461bcd60e51b81526004016107ce90613244565b600060405180608001604052806043815260200161334a6043913980516020918201208351848301516040808701518051908601209051612833950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061285b60075490565b60405161190160f01b6020820152602281019190915260428101839052606201612833565b60006001600160a01b0384163b1561298957836001600160a01b031663150b7a026128a961215a565b8786866040518563ffffffff1660e01b81526004016128cb94939291906132ef565b602060405180830381600087803b1580156128e557600080fd5b505af1925050508015612915575060408051601f3d908101601f191682019092526129129181019061332c565b60015b61296f573d808015612943576040519150601f19603f3d011682016040523d82523d6000602084013e612948565b606091505b5080516129675760405162461bcd60e51b81526004016107ce90613244565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e3a565b506001949350505050565b60006001600160a01b0382166129ec5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107ce565b506002546001600160a01b0382166000908152600360205260408120805460019290612a1990849061322c565b90915550506002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b6001600160e01b031981168114611ef957600080fd5b600060208284031215612ac357600080fd5b81356122ce81612a9b565b600080600060608486031215612ae357600080fd5b505081359360208301359350604090920135919050565b60005b83811015612b15578181015183820152602001612afd565b83811115611b375750506000910152565b60008151808452612b3e816020860160208601612afa565b601f01601f19169290920160200192915050565b6020815260006122ce6020830184612b26565b600060208284031215612b7757600080fd5b5035919050565b6001600160a01b0381168114611ef957600080fd5b60008060408385031215612ba657600080fd5b8235612bb181612b7e565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112612be657600080fd5b813567ffffffffffffffff80821115612c0157612c01612bbf565b604051601f8301601f19908116603f01168101908282118183101715612c2957612c29612bbf565b81604052838152866020858801011115612c4257600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a08688031215612c7a57600080fd5b8535612c8581612b7e565b9450602086013567ffffffffffffffff811115612ca157600080fd5b612cad88828901612bd5565b9450506040860135925060608601359150608086013560ff81168114612cd257600080fd5b809150509295509295909350565b600080600060608486031215612cf557600080fd5b8335612d0081612b7e565b92506020840135612d1081612b7e565b929592945050506040919091013590565b600060208284031215612d3357600080fd5b81356122ce81612b7e565b60008060408385031215612d5157600080fd5b8235612d5c81612b7e565b915060208301358015158114612d7157600080fd5b809150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015612dbd5783516001600160a01b031683529284019291840191600101612d98565b50909695505050505050565b60008060008060808587031215612ddf57600080fd5b8435612dea81612b7e565b966020860135965060408601359560600135945092505050565b60008060008060808587031215612e1a57600080fd5b8435612e2581612b7e565b93506020850135612e3581612b7e565b925060408501359150606085013567ffffffffffffffff811115612e5857600080fd5b612e6487828801612bd5565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b81811015612dbd57835183529284019291840191600101612e8c565b60008060408385031215612ebb57600080fd5b8235612ec681612b7e565b91506020830135612d7181612b7e565b600060208284031215612ee857600080fd5b81516122ce81612b7e565b6020808252600c908201526b696e76616c6964207061737360a01b604082015260600190565b600181811c90821680612f2d57607f821691505b602082108114156112af57634e487b7160e01b600052602260045260246000fd5b6001600160a01b03848116825283166020820152606060408201819052600090612f7a90830184612b26565b95945050505050565b60008351612f95818460208801612afa565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60008251612fcc818460208701612afa565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008282101561309a5761309a613072565b500390565b600083516130b1818460208801612afa565b602f60f81b90830190815283516130cf816001840160208801612afa565b642f6d65746160d81b60019290910191820152600601949350505050565b8054600090600181811c908083168061310757607f831692505b602080841082141561312957634e487b7160e01b600052602260045260246000fd5b81801561313d576001811461314e5761317b565b60ff1986168952848901965061317b565b60008881526020902060005b868110156131735781548b82015290850190830161315a565b505084890196505b50505050505092915050565b600061319382856130ed565b6c2f6170692f70726f6a6563742f60981b815283516131b981600d840160208801612afa565b6517ba37b5b2b760d11b600d9290910191820152601301949350505050565b60006131e482856130ed565b6c2f6170692f70726f6a6563742f60981b8152835161320a81600d840160208801612afa565b680bd8dbdb9d1c9858dd60ba1b600d9290910191820152601601949350505050565b6000821982111561323f5761323f613072565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006000198214156132aa576132aa613072565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826132d6576132d66132b1565b500490565b6000826132ea576132ea6132b1565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061332290830184612b26565b9695505050505050565b60006020828403121561333e57600080fd5b81516122ce81612a9b56fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529546865204d69646e696768742052756e6e657220506173732070726f766964657320686f6c646572732077697468206d656d6265727368697020746f207468652047656e6574696320436861696e20506c6174666f726d2e20205061737365732077696c6c20756e6c6f636b2061636365737320746f207072652d73616c65732c2066726565206d696e74732c206675747572652047432070726f6772616d732c2061732077656c6c2061732061636365737320746f206c697665206576656e7473206174207468652047432067616c6c6572792ea2646970667358221220c40a75a51fa18667b270eabf2c75154e173d66d448d45fadf4ef2c4bf2d2872b64736f6c63430008090033

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

000000000000000000000000f91180a67a2c607523b5e32f98732d8cddd6538a000000000000000000000000a9833d5d3ff75a32709a8da2e66a7df9d2c83aa00000000000000000000000001bc2f28fb7e3be8b5905541a90e4312a9976ace100000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001400741e69101af6b9b7cde00f7656d22895fc525063bc067110e99b22586f9d6b0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000002e516d566432583334725373375277414e467239706e52704b6f624743347a59446264534334576753566250374473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001768747470733a2f2f67656e65746963636861696e2e696f000000000000000000

-----Decoded View---------------
Arg [0] : cards (address[3]): 0xF91180A67A2c607523b5e32f98732D8cDDD6538A,0xa9833D5D3ff75A32709A8dA2E66A7dF9D2c83Aa0,0x1bC2f28Fb7E3be8b5905541a90e4312A9976ACE1
Arg [1] : tokenIpfsHash (string): QmVd2X34rSs7RwANFr9pnRpKobGC4zYDbdSC4WgSVbP7Ds
Arg [2] : baseUri (string): https://geneticchain.io
Arg [3] : seed (uint256): 3282626310322964300984663217659694312773201881534941964639673737601426773680
Arg [4] : proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 000000000000000000000000f91180a67a2c607523b5e32f98732d8cddd6538a
Arg [1] : 000000000000000000000000a9833d5d3ff75a32709a8da2e66a7df9d2c83aa0
Arg [2] : 0000000000000000000000001bc2f28fb7e3be8b5905541a90e4312a9976ace1
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [5] : 0741e69101af6b9b7cde00f7656d22895fc525063bc067110e99b22586f9d6b0
Arg [6] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [7] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [8] : 516d566432583334725373375277414e467239706e52704b6f624743347a5944
Arg [9] : 6264534334576753566250374473000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [11] : 68747470733a2f2f67656e65746963636861696e2e696f000000000000000000


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.