ETH Price: $2,688.78 (+0.76%)

Token

Serene Animo (GCP11)
 

Overview

Max Total Supply

830 GCP11

Holders

317

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
4 GCP11
0x41f96a5ea2edea578bd1cc5be5c070ee99df805c
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
SereneAnimo

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 800 runs

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

pragma solidity ^0.8.0;

//-----------------------------------------------------------------------------
// geneticchain.io - NextGen Generative NFT Platform
//-----------------------------------------------------------------------------
 /*\_____________________________________________________________   .¿yy¿.   __
 MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM```````/MMM\\\\\  \\$$$$$$S/  .
 MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM``   `/  yyyy    ` _____J$$$^^^^/%#//
 MMMMMMMMMMMMMMMMMMMYYYMMM````      `\/  .¿yü  /  $ùpüüü%%% | ``|//|` __
 MMMMMYYYYMMMMMMM/`     `| ___.¿yüy¿.  .d$$$$  /  $$$$SSSSM |   | ||  MMNNNNNNM
 M/``      ``\/`  .¿ù%%/.  |.d$$$$$$$b.$$$*°^  /  o$$$  __  |   | ||  MMMMMMMMM
 M   .¿yy¿.     .dX$$$$$$7.|$$$$"^"$$$$$$o`  /MM  o$$$  MM  |   | ||  MMYYYYYYM
   \\$$$$$$S/  .S$$o"^"4$$$$$$$` _ `SSSSS\        ____  MM  |___|_||  MM  ____
  J$$$^^^^/%#//oSSS`    YSSSSSS  /  pyyyüüü%%%XXXÙ$$$$  MM  pyyyyyyy, `` ,$$$o
 .$$$` ___     pyyyyyyyyyyyy//+  /  $$$$$$SSSSSSSÙM$$$. `` .S&&T$T$$$byyd$$$$\
 \$$7  ``     //o$$SSXMMSSSS  |  /  $$/&&X  _  ___ %$$$byyd$$$X\$`/S$$$$$$$S\
 o$$l   .\\YS$$X>$X  _  ___|  |  /  $$/%$$b.,.d$$$\`7$$$$$$$$7`.$   `"***"`  __
 o$$l  __  7$$$X>$$b.,.d$$$\  |  /  $$.`7$$$$$$$$%`  `*+SX+*|_\\$  /.     ..\MM
 o$$L  MM  !$$$$\$$$$$$$$$%|__|  /  $$// `*+XX*\'`  `____           ` `/MMMMMMM
 /$$X, `` ,S$$$$\ `*+XX*\'`____  /  %SXX .      .,   NERV   ___.¿yüy¿.   /MMMMM
  7$$$byyd$$$>$X\  .,,_    $$$$  `    ___ .y%%ü¿.  _______  $.d$$$$$$$S.  `MMMM
  `/S$$$$$$$\\$J`.\\$$$ :  $\`.¿yüy¿. `\\  $$$$$$S.//XXSSo  $$$$$"^"$$$$.  /MMM
 y   `"**"`"Xo$7J$$$$$\    $.d$$$$$$$b.    ^``/$$$$.`$$$$o  $$$$\ _ 'SSSo  /MMM
 M/.__   .,\Y$$$\\$$O` _/  $d$$$*°\ pyyyüüü%%%W $$$o.$$$$/  S$$$. `  S$To   MMM
 MMMM`  \$P*$$X+ b$$l  MM  $$$$` _  $$$$$$SSSSM $$$X.$T&&X  o$$$. `  S$To   MMM
 MMMX`  $<.\X\` -X$$l  MM  $$$$  /  $$/&&X      X$$$/$/X$$dyS$$>. `  S$X%/  `MM
 MMMM/   `"`  . -$$$l  MM  yyyy  /  $$/%$$b.__.d$$$$/$.'7$$$$$$$. `  %SXXX.  MM
 MMMMM//   ./M  .<$$S, `` ,S$$>  /  $$.`7$$$$$$$$$$$/S//_'*+%%XX\ `._       /MM
 MMMMMMMMMMMMM\  /$$$$byyd$$$$\  /  $$// `*+XX+*XXXX      ,.      .\MMMMMMMMMMM
 GENETIC/MMMMM\.  /$$$$$$$$$$\|  /  %SXX  ,_  .      .\MMMMMMMMMMMMMMMMMMMMMMMM
 CHAIN/MMMMMMMM/__  `*+YY+*`_\|  /_______//MMMMMMMMMMMMMMMMMMMMMMMMMMM/-/-/-\*/
//-----------------------------------------------------------------------------
// Genetic Chain: SereneAnimo
//-----------------------------------------------------------------------------
// Author: papaver (@tronicdreams)
//-----------------------------------------------------------------------------

import "./GeneticChain721.sol";

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

/**
 * @title GeneticChain | Project #11 | SereneAnimo
 */
contract SereneAnimo is GeneticChain721
{

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

    struct IpfsAsset {
        string name;
        string hash;
    }

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

    struct ArtState {
        int64 sdfblend;
        int64 speed;
        int64 size;
        bool _set;
    }

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

    event StateChange(address indexed owner, uint256 tokenId, ArtState state);

    //-------------------------------------------------------------------------
    // constants
    //-------------------------------------------------------------------------

    // erc721 metadata
    string constant private __name   = "Serene Animo";
    string constant private __symbol = "GCP11";

    // metadata
    uint256 constant public projectId  = 11;
    string constant public artist      = "atara";
    string constant public description = "Calming shapes and colors inspire to relax and let the mind wonder.";

    // addresses
    address constant private _artistAddress = 0xceC15d87719feDEcA61F7d11D2d205a4C0628517;

    // token data
    uint256 private immutable _seed;

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

    string public code;
    string private _baseUri;
    IpfsAsset[] public libraries;

    // token state
    mapping(uint256 => ArtState) _state;

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

    constructor(
        IpfsAsset memory lib,
        string memory baseUri_,
        uint256[3] memory tokenMax_,
        uint256 seed,
        address proxyRegistryAddress)
        GeneticChain721(
          __name,
          __symbol,
          tokenMax_,
          proxyRegistryAddress)
    {
        _baseUri = baseUri_;
        _seed    = seed;
        addLibrary(lib.name, lib.hash);
        registerArtistAddress(_artistAddress);
    }

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

    function setCode(string memory code_)
        public
        onlyOwner
        notLocked
    {
        code = code_;
    }

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

    function addLibrary(string memory name, string memory hash)
        public
        onlyOwner
        notLocked
    {
        IpfsAsset memory lib = IpfsAsset(name, hash);
        libraries.push(lib);
    }

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

    function removeLibrary(uint256 index)
        public
        onlyOwner
        notLocked
    {
        require(index < libraries.length);
        libraries[index] = libraries[libraries.length-1];
        libraries.pop();
    }

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

    function getLibraryCount()
        public
        view
        returns (uint256)
    {
        return libraries.length;
    }

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

    function getLibraries()
        public
        view
        returns (IpfsAsset[] memory)
    {
        IpfsAsset[] memory libs = new IpfsAsset[](libraries.length);
        for (uint256 i = 0; i < libraries.length; ++i) {
          IpfsAsset storage lib = libraries[i];
          libs[i] = lib;
        }
        return libs;
    }

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

    function setBaseTokenURI(string memory baseUri)
        public
        onlyOwner
    {
        _baseUri = baseUri;
    }

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

    function baseTokenURI()
        public
        view
        returns (string memory)
    {
        return _baseUri;
    }

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

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

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

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

    //-------------------------------------------------------------------------
    // state
    //-------------------------------------------------------------------------

    function state(uint256 tokenId)
        public
        view
        validTokenId(tokenId)
        returns (int64 sdfblend, int64 speed, int64 size)
    {
        if (_state[tokenId]._set == false) {
            sdfblend = 50;
            speed    = 0;
            size     = 75;
        } else {
            sdfblend = _state[tokenId].sdfblend;
            speed    = _state[tokenId].speed;
            size     = _state[tokenId].size;
        }
    }

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

    /**
     * Updates state of token, only owner or approved is allowed.
     * @param tokenId - token to update state on
     * @param sdfblend - sign distance field blend; 0-100
     * @param speed - speed; 0-200
     * @param size - size of shapes; 15-150
     *
     * Emits a {StateUpdated} event.
     */
    function updateState(uint256 tokenId, int64 sdfblend, int64 speed, int64 size)
        public
        approvedOrOwner(_msgSender(), tokenId)
    {
        require(0 <= sdfblend && sdfblend <= 100, "invalid sdfblend");
        require(0 <= speed && speed <= 200, "invalid speed");
        require(15 <= size && size <= 150, "invalid size");
        _state[tokenId].sdfblend = sdfblend;
        _state[tokenId].speed    = speed;
        _state[tokenId].size     = size;
        _state[tokenId]._set     = true;

        emit StateChange(msg.sender, tokenId, _state[tokenId]);
    }

}

File 2 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

File 3 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 5 of 21 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

File 6 of 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

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

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

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

File 7 of 21 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 21 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 9 of 21 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

}

File 10 of 21 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            // solhint-disable-next-line no-inline-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
        } else if (signature.length == 64) {
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            // solhint-disable-next-line no-inline-assembly
            assembly {
                let vs := mload(add(signature, 0x40))
                r := mload(add(signature, 0x20))
                s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
                v := add(shr(255, vs), 27)
            }
        } else {
            revert("ECDSA: invalid signature length");
        }

        return recover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value");
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 11 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 12 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

//-----------------------------------------------------------------------------
// geneticchain.io - NextGen Generative NFT Platform
//-----------------------------------------------------------------------------
 /*\_____________________________________________________________   .¿yy¿.   __
 MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM```````/MMM\\\\\  \\$$$$$$S/  .
 MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM``   `/  yyyy    ` _____J$$$^^^^/%#//
 MMMMMMMMMMMMMMMMMMMYYYMMM````      `\/  .¿yü  /  $ùpüüü%%% | ``|//|` __
 MMMMMYYYYMMMMMMM/`     `| ___.¿yüy¿.  .d$$$$  /  $$$$SSSSM |   | ||  MMNNNNNNM
 M/``      ``\/`  .¿ù%%/.  |.d$$$$$$$b.$$$*°^  /  o$$$  __  |   | ||  MMMMMMMMM
 M   .¿yy¿.     .dX$$$$$$7.|$$$$"^"$$$$$$o`  /MM  o$$$  MM  |   | ||  MMYYYYYYM
   \\$$$$$$S/  .S$$o"^"4$$$$$$$` _ `SSSSS\        ____  MM  |___|_||  MM  ____
  J$$$^^^^/%#//oSSS`    YSSSSSS  /  pyyyüüü%%%XXXÙ$$$$  MM  pyyyyyyy, `` ,$$$o
 .$$$` ___     pyyyyyyyyyyyy//+  /  $$$$$$SSSSSSSÙM$$$. `` .S&&T$T$$$byyd$$$$\
 \$$7  ``     //o$$SSXMMSSSS  |  /  $$/&&X  _  ___ %$$$byyd$$$X\$`/S$$$$$$$S\
 o$$l   .\\YS$$X>$X  _  ___|  |  /  $$/%$$b.,.d$$$\`7$$$$$$$$7`.$   `"***"`  __
 o$$l  __  7$$$X>$$b.,.d$$$\  |  /  $$.`7$$$$$$$$%`  `*+SX+*|_\\$  /.     ..\MM
 o$$L  MM  !$$$$\$$$$$$$$$%|__|  /  $$// `*+XX*\'`  `____           ` `/MMMMMMM
 /$$X, `` ,S$$$$\ `*+XX*\'`____  /  %SXX .      .,   NERV   ___.¿yüy¿.   /MMMMM
  7$$$byyd$$$>$X\  .,,_    $$$$  `    ___ .y%%ü¿.  _______  $.d$$$$$$$S.  `MMMM
  `/S$$$$$$$\\$J`.\\$$$ :  $\`.¿yüy¿. `\\  $$$$$$S.//XXSSo  $$$$$"^"$$$$.  /MMM
 y   `"**"`"Xo$7J$$$$$\    $.d$$$$$$$b.    ^``/$$$$.`$$$$o  $$$$\ _ 'SSSo  /MMM
 M/.__   .,\Y$$$\\$$O` _/  $d$$$*°\ pyyyüüü%%%W $$$o.$$$$/  S$$$. `  S$To   MMM
 MMMM`  \$P*$$X+ b$$l  MM  $$$$` _  $$$$$$SSSSM $$$X.$T&&X  o$$$. `  S$To   MMM
 MMMX`  $<.\X\` -X$$l  MM  $$$$  /  $$/&&X      X$$$/$/X$$dyS$$>. `  S$X%/  `MM
 MMMM/   `"`  . -$$$l  MM  yyyy  /  $$/%$$b.__.d$$$$/$.'7$$$$$$$. `  %SXXX.  MM
 MMMMM//   ./M  .<$$S, `` ,S$$>  /  $$.`7$$$$$$$$$$$/S//_'*+%%XX\ `._       /MM
 MMMMMMMMMMMMM\  /$$$$byyd$$$$\  /  $$// `*+XX+*XXXX      ,.      .\MMMMMMMMMMM
 GENETIC/MMMMM\.  /$$$$$$$$$$\|  /  %SXX  ,_  .      .\MMMMMMMMMMMMMMMMMMMMMMMM
 CHAIN/MMMMMMMM/__  `*+YY+*`_\|  /_______//MMMMMMMMMMMMMMMMMMMMMMMMMMM/-/-/-\*/
//-----------------------------------------------------------------------------
// Genetic Chain: GeneticChain721
//-----------------------------------------------------------------------------
// Author: papaver (@tronicdreams)
//-----------------------------------------------------------------------------

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

import "./common/meta-transactions/ContentMixin.sol";
import "./common/meta-transactions/NativeMetaTransaction.sol";
import "./geneticchain/ERC721Sequential.sol";
import "./geneticchain/ERC721SeqEnumerable.sol";
import "./libraries/State.sol";

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

contract OwnableDelegateProxy {}

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

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

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

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

    //-------------------------------------------------------------------------
    // constants
    //-------------------------------------------------------------------------

    // mint price
    uint256 constant public memberPrice = .03 ether;
    uint256 constant public publicPrice = .06 ether;

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

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

    // opensea proxy
    address private immutable _proxyRegistryAddress;

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

    // contract state
    State.Data private _state;

    // roles
    mapping (address => bool) private _burnerAddress;
    mapping (address => bool) private _artistAddress;

    // track mint count per address
    mapping (address => uint256) private _mints;

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

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

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

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

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

    modifier isArtist() {
        require(_artistAddress[_msgSender()], "caller not artist");
        _;
    }

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

    modifier isBurner() {
        require(_burnerAddress[_msgSender()], "caller not burner");
        _;
    }

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

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

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

    constructor(
        string memory __name,
        string memory __symbol,
        uint256[3] memory tokenMax_,
        address proxyRegistryAddress)
        ERC721Sequential(__name, __symbol)
    {
        publicMax             = tokenMax_[0];
        artistMax             = tokenMax_[1];
        galleryMax            = tokenMax_[2];
        _proxyRegistryAddress = proxyRegistryAddress;
        _initializeEIP712(__name);

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

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

    /**
     * Authorize artist address.
     */
    function registerArtistAddress(address artist)
        public onlyOwner
    {
        require(!_artistAddress[artist], "address already registered");
        _artistAddress[artist] = true;
    }

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

    /**
     * Remove artist address.
     */
    function revokeArtistAddress(address artist)
        public onlyOwner
    {
        require(_artistAddress[artist], "address not registered");
        delete _artistAddress[artist];
    }

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

    /**
     * Authorize artist address.
     */
    function registerBurnerAddress(address burner)
        public onlyOwner
    {
        require(!_burnerAddress[burner], "address already registered");
        _burnerAddress[burner] = true;
    }

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

    /**
     * Remove burner address.
     */
    function revokeBurnerAddress(address burner)
        public onlyOwner
    {
        require(_burnerAddress[burner], "address not registered");
        delete _burnerAddress[burner];
    }

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

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

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

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

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

    /**
     * Lock contract.  Disable public/member minting.
     */
    function lockContract()
        public onlyOwner
    {
        _state.setLocked(1);
    }

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

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

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

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

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

    /**
     * Get total artist has minted.
     */
    function artistMinted()
        public view returns (uint256)
    {
        return _state._artist;
    }

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

    /**
     * Get total public has minted.
     */
    function publicMinted()
        public view returns (uint256)
    {
        return _state._public;
    }

    //-------------------------------------------------------------------------
    // security
    //-------------------------------------------------------------------------

    /**
     * Validate hash contains input data.
     */
    function validateHash(
            bytes32 msgHash,
            address sender,
            uint256 allocation,
            uint256 count)
        private pure returns(bool)
    {
        return ECDSA.toEthSignedMessageHash(
            keccak256(abi.encodePacked(sender, allocation, count))) == msgHash;
    }

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

    /**
     * Validate message was signed by signer.
     */
    function validateSigner(bytes32 msgHash, bytes memory signature)
        private pure returns(bool)
    {
        return msgHash.recover(signature) == _signer;
    }

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

    /**
     * Allow anyone to mint tokens for the right price.
     */
    function mint(uint256 count)
        payable public notLocked
    {
        require(_state._live == 1, "public mint not live");
        require(publicPrice * count == msg.value, "insufficient funds");
        require(_state._public + count <= publicMax, "exceed public supply");
        _state.addPublic(count);
        for (uint256 i = 0; i < count; ++i) {
            _safeMint(msg.sender);
        }
    }

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

    /**
     * Mint count tokens using securely signed message.
     */
    function secureMint(
            bytes32 msgHash,
            bytes calldata signature,
            uint256 allocation,
            uint256 count)
        payable external notLocked
    {
        require(memberPrice * count == msg.value, "insufficient funds");
        require(_state._public + count <= publicMax, "exceed public supply");
        require(_mints[msg.sender] + count <= allocation, "exceed allocation");
        require(validateSigner(msgHash, signature), "invalid signer");
        require(validateHash(msgHash, msg.sender, allocation, count), "invalid hash");
        _state.addPublic(count);
        unchecked {
            _mints[msg.sender] += count;
        }
        for (uint256 i = 0; i < count; ++i) {
            _safeMint(msg.sender);
        }
    }

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

    /**
     * @dev Mints a token to an address.
     * @param _to address of the future owner of the token
     */
    function galleryMintTo(address _to, uint256 count)
        public onlyOwner
    {
        require(_state._gallery + count <= galleryMax, "exceed gallery supply");
        _state.addGallery(count);
        for (uint256 i = 0; i < count; ++i) {
            _safeMint(_to);
        }
    }

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

    /**
     * @dev Mints a token to an address.
     * @param _to address of the future owner of the token
     */
    function artistMintTo(address _to, uint256 count)
        public isArtist
    {
        require(_state._artist + count <= artistMax, "exceed artist supply");
        _state.addArtist(count);
        for (uint256 i = 0; i < count; ++i) {
            _safeMint(_to);
        }
    }

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

    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     */
    function burn(uint256 tokenId)
        public isBurner
    {
        _burn(tokenId);
    }

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

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

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

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

        return super.isApprovedForAll(owner, operator);
    }

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

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

}

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 : ERC721SeqEnumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

/**
 * @dev This is a no storage implemntation of the optional extension {ERC721}
 * defined in the EIP that adds enumerability of all the token ids in the
 * contract as well as all token ids owned by each account. These functions
 * are mainly for convienence and should NEVER be called from inside a
 * contract on the chain.
 */
abstract contract ERC721SeqEnumerable is ERC721Sequential, IERC721Enumerable {

    address constant zero = address(0);

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(
        address owner,
        uint256 index
    ) public view virtual override returns (uint256 tokenId) {
        uint256 length = _owners.length;

        unchecked {
            for (; tokenId < length; ++tokenId) {
                if (_owners[tokenId] == owner) {
                    if (index-- == 0) {
                        break;
                    }
                }
            }
        }

        require(tokenId < length, "ERC721Enumerable: owner index out of bounds");
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256 supply) {
        unchecked {
            uint256 length = _owners.length;
            for (uint256 tokenId = 0; tokenId < length; ++tokenId) {
                if (_owners[tokenId] != zero) {
                    ++supply;
                }
            }
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(
        uint256 index
    ) public view virtual override returns (uint256 tokenId) {
        uint256 length = _owners.length;

        unchecked {
            for (; tokenId < length; ++tokenId) {
                if (_owners[tokenId] != zero) {
                    if (index-- == 0) {
                        break;
                    }
                }
            }
        }

        require(tokenId < length, "ERC721Enumerable: global index out of bounds");
    }

    /**
     * @dev Get all tokens owned by owner.
     */
    function ownerTokens(
        address owner
    ) public view returns (uint256[] memory) {
        uint256 tokenCount = ERC721Sequential.balanceOf(owner);
        require(tokenCount != 0, "ERC721Enumerable: owner owns no tokens");

        uint256 length = _owners.length;
        uint256[] memory tokenIds = new uint256[](tokenCount);
        unchecked {
            uint256 i = 0;
            for (uint256 tokenId = 0; tokenId < length; ++tokenId) {
                if (_owners[tokenId] == owner) {
                    tokenIds[i++] = tokenId;
                }
            }
        }

        return tokenIds;
    }

}

File 20 of 21 : ERC721Sequential.sol
// SPDX-License-Identifier: MIT
// Forked from: OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

import "openzeppelin-solidity/contracts/token/ERC721/IERC721.sol";
import "openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol";
import "openzeppelin-solidity/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "openzeppelin-solidity/contracts/utils/Address.sol";
import "openzeppelin-solidity/contracts/utils/Context.sol";
import "openzeppelin-solidity/contracts/utils/Strings.sol";
import "openzeppelin-solidity/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721
 *  [ERC721] Non-Fungible Token Standard
 *
 *  This implmentation of ERC721 assumes sequencial token creation to provide
 *  efficient minting.  Storage for balance are no longer required reducing
 *  gas significantly.  This comes at the price of calculating the balance by
 *  iterating through the entire array.  The balanceOf function should NOT
 *  be used inside a contract.  Gas usage will explode as the size of tokens
 *  increase.  A convineiance function is provided which returns the entire
 *  list of owners whose index maps tokenIds to thier owners.  Zero addresses
 *  indicate burned tokens.
 *
 */
contract ERC721Sequential is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    address[] _owners;

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

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

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

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

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

        unchecked {
            uint256 length = _owners.length;
            for (uint256 i = 0; i < length; ++i) {
                if (_owners[i] == owner) {
                    ++balance;
                }
            }
        }

    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: owner query for nonexistent token");
        address owner = _owners[tokenId];
        return owner;
    }

    /**
     * @dev Returns entire list of owner enumerated by thier tokenIds.  Burned tokens
     * will have a zero address.
     */
    function owners() public view returns (address[] memory) {
        address[] memory owners_ = _owners;
        return owners_;
    }

    /**
     * @dev Return largest tokenId minted.
     */
    function maxTokenId() public view returns (uint256) {
        return _owners.length - 1;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721Sequential.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _owners.length && _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721Sequential.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to) internal virtual returns (uint256 tokenId) {
        tokenId = _safeMint(to, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        bytes memory _data
    ) internal virtual returns (uint256 tokenId) {
        tokenId = _mint(to);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to) internal virtual returns (uint256 tokenId) {
        require(to != address(0), "ERC721: mint to the zero address");
        tokenId = _owners.length;

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

        _owners.push(to);

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721Sequential.ownerOf(tokenId);

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

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

        delete _owners[tokenId];

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721Sequential.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721Sequential.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 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 {

    struct Data {
        uint16  _gallery;
        uint16  _artist;
        uint16  _public;
        uint16  _live;
        uint16  _locked;
        uint176 _unused;
    }

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

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

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

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

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

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

}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"hash","type":"string"}],"internalType":"struct SereneAnimo.IpfsAsset","name":"lib","type":"tuple"},{"internalType":"string","name":"baseUri_","type":"string"},{"internalType":"uint256[3]","name":"tokenMax_","type":"uint256[3]"},{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"address","name":"proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"int64","name":"sdfblend","type":"int64"},{"internalType":"int64","name":"speed","type":"int64"},{"internalType":"int64","name":"size","type":"int64"},{"internalType":"bool","name":"_set","type":"bool"}],"indexed":false,"internalType":"struct SereneAnimo.ArtState","name":"state","type":"tuple"}],"name":"StateChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"hash","type":"string"}],"name":"addLibrary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artist","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"artistMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"artistMintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"code","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enablePublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"galleryMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"galleryMintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gallryMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLibraries","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"hash","type":"string"}],"internalType":"struct SereneAnimo.IpfsAsset[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLibraryCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"libraries","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"hash","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"memberPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ownerTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"projectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"artist","type":"address"}],"name":"registerArtistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"registerBurnerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"removeLibrary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"artist","type":"address"}],"name":"revokeArtistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"revokeBurnerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"msgHash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"secureMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"code_","type":"string"}],"name":"setCode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"state","outputs":[{"internalType":"int64","name":"sdfblend","type":"int64"},{"internalType":"int64","name":"speed","type":"int64"},{"internalType":"int64","name":"size","type":"int64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"int64","name":"sdfblend","type":"int64"},{"internalType":"int64","name":"speed","type":"int64"},{"internalType":"int64","name":"size","type":"int64"}],"name":"updateState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101206040526005805460ff191690553480156200001c57600080fd5b5060405162005720380380620057208339810160408190526200003f91620007b5565b6040518060400160405280600c81526020016b536572656e6520416e696d6f60a01b81525060405180604001604052806005815260200164474350313160d81b8152508483838381600090805190602001906200009e92919062000575565b508051620000b490600190602084019062000575565b5050506000620000c9620001ad60201b60201c565b600880546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508151608052602082015160a052604082015160c0526001600160a01b03811660e0526200014484620001c9565b5050600280546001018155600052505083516200016990600e90602087019062000575565b50610100829052845160208601516200018391906200022e565b620001a273cec15d87719fedeca61f7d11d2d205a4c062851762000378565b5050505050620008e7565b6000620001c46200047460201b6200347a1760201c565b905090565b60055460ff1615620002135760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b60448201526064015b60405180910390fd5b6200021e81620004d3565b506005805460ff19166001179055565b62000238620001ad565b6001600160a01b0316620002546008546001600160a01b031690565b6001600160a01b0316146200029b5760405162461bcd60e51b815260206004820181905260248201526000805160206200570083398151915260448201526064016200020a565b60095468010000000000000000900461ffff1615620002f25760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b60448201526064016200020a565b604080518082019091528281526020808201839052600f805460018101825560009190915282518051849360029093027f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80201926200035592849291019062000575565b50602082810151805162000370926001850192019062000575565b505050505050565b62000382620001ad565b6001600160a01b03166200039e6008546001600160a01b031690565b6001600160a01b031614620003e55760405162461bcd60e51b815260206004820181905260248201526000805160206200570083398151915260448201526064016200020a565b6001600160a01b0381166000908152600b602052604090205460ff1615620004505760405162461bcd60e51b815260206004820152601a60248201527f6164647265737320616c7265616479207265676973746572656400000000000060448201526064016200020a565b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b600033301415620004cd57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620004d09050565b50335b90565b6040518060800160405280604f8152602001620056b1604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600655565b8280546200058390620008aa565b90600052602060002090601f016020900481019282620005a75760008555620005f2565b82601f10620005c257805160ff1916838001178555620005f2565b82800160010185558215620005f2579182015b82811115620005f2578251825591602001919060010190620005d5565b506200060092915062000604565b5090565b5b8082111562000600576000815560010162000605565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156200065657620006566200061b565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200068757620006876200061b565b604052919050565b600082601f830112620006a157600080fd5b81516001600160401b03811115620006bd57620006bd6200061b565b6020620006d3601f8301601f191682016200065c565b8281528582848701011115620006e857600080fd5b60005b8381101562000708578581018301518282018401528201620006eb565b838111156200071a5760008385840101525b5095945050505050565b600082601f8301126200073657600080fd5b604051606081016001600160401b03811182821017156200075b576200075b6200061b565b6040528060608401858111156200077157600080fd5b845b818110156200078d57805183526020928301920162000773565b509195945050505050565b80516001600160a01b0381168114620007b057600080fd5b919050565b600080600080600060e08688031215620007ce57600080fd5b85516001600160401b0380821115620007e657600080fd5b908701906040828a031215620007fb57600080fd5b6200080562000631565b8251828111156200081557600080fd5b620008238b8286016200068f565b8252506020830151828111156200083957600080fd5b620008478b8286016200068f565b6020830152508097505060208801519150808211156200086657600080fd5b5062000875888289016200068f565b94505062000887876040880162000724565b925060a086015191506200089e60c0870162000798565b90509295509295909350565b600181811c90821680620008bf57607f821691505b60208210811415620008e157634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051614d6962000948600039600061247d01526000612fe80152600081816107d5015261183a015260008181610b6001526110e6015260008181610aed015281816123510152612cca0152614d696000f3fe6080604052600436106103c35760003560e01c8063753868e3116101f2578063bba7723e1161010d578063e985e9c5116100a0578063f3fef3a31161006f578063f3fef3a314610ba2578063f593bd5314610bc2578063f685137314610bdb578063f8f0b80e14610bfb57600080fd5b8063e985e9c514610b0f578063ed329fa814610b2f578063ef3c662414610b4e578063f2fde38b14610b8257600080fd5b8063d62f3b1c116100dc578063d62f3b1c14610a93578063d81bc66314610aa8578063e403f1a714610abb578063e527c6dd14610adb57600080fd5b8063bba7723e14610a11578063c87b56dd14610a3e578063c93ed70a14610a5e578063d547cfb714610a7e57600080fd5b8063a4e2d63411610185578063b1fbe72d11610154578063b1fbe72d1461097d578063b7f751d8146109ab578063b88d4fde146109d1578063ba8bce55146109f157600080fd5b8063a4e2d634146108fc578063a4f4f8af1461091f578063a945bf8014610940578063affe39c11461095b57600080fd5b8063a05f9f08116101c1578063a05f9f0814610889578063a0712d68146108a9578063a22cb465146108bc578063a3864397146108dc57600080fd5b8063753868e31461082c5780638da5cb5b1461084157806391ba317a1461085f57806395d89b411461087457600080fd5b80633e4f49e6116102e25780636352211e11610275578063715018a611610244578063715018a6146107ae57806371dedace146107c35780637284e416146107f757806374e8b80d1461080c57600080fd5b80636352211e14610733578063636e746b14610753578063638e19b41461076e57806370a082311461078e57600080fd5b806343bc1612116102b157806343bc16121461068a57806344be774f146106d35780634b457935146106f35780634f6ccce71461071357600080fd5b80633e4f49e6146105f15780633fafa1271461063557806342842e0e1461064a57806342966c681461066a57600080fd5b806320379ee51161035a5780632f745c59116103295780632f745c591461057c57806330176e131461059c5780633408e470146105bc5780633e02bc38146105cf57600080fd5b806320379ee5146104fc57806323b872dd1461051157806324c12bf6146105315780632d0335ab1461054657600080fd5b80630c53c51c116103965780630c53c51c146104795780630f7e59701461048c57806314d7d517146104b957806318160ddd146104d957600080fd5b806301ffc9a7146103c857806306fdde03146103fd578063081812fc1461041f578063095ea7b314610457575b600080fd5b3480156103d457600080fd5b506103e86103e336600461442e565b610c10565b60405190151581526020015b60405180910390f35b34801561040957600080fd5b50610412610c3b565b6040516103f491906144a3565b34801561042b57600080fd5b5061043f61043a3660046144b6565b610ccd565b6040516001600160a01b0390911681526020016103f4565b34801561046357600080fd5b506104776104723660046144e4565b610d5a565b005b6104126104873660046145b3565b610e82565b34801561049857600080fd5b50610412604051806040016040528060018152602001603160f81b81525081565b3480156104c557600080fd5b506104776104d43660046144e4565b61106c565b3480156104e557600080fd5b506104ee6111b0565b6040519081526020016103f4565b34801561050857600080fd5b506006546104ee565b34801561051d57600080fd5b5061047761052c366004614631565b61120c565b34801561053d57600080fd5b5061041261129a565b34801561055257600080fd5b506104ee610561366004614672565b6001600160a01b031660009081526007602052604090205490565b34801561058857600080fd5b506104ee6105973660046144e4565b611328565b3480156105a857600080fd5b506104776105b736600461468f565b611405565b3480156105c857600080fd5b50466104ee565b3480156105db57600080fd5b506105e4611483565b6040516103f491906146c4565b3480156105fd57600080fd5b5061061161060c3660046144b6565b611683565b60408051600794850b815292840b6020840152920b918101919091526060016103f4565b34801561064157600080fd5b506104ee600b81565b34801561065657600080fd5b50610477610665366004614631565b611732565b34801561067657600080fd5b506104776106853660046144b6565b61174d565b34801561069657600080fd5b506104126040518060400160405280600581526020017f617461726100000000000000000000000000000000000000000000000000000081525081565b3480156106df57600080fd5b506104776106ee3660046144e4565b6117ce565b3480156106ff57600080fd5b5061047761070e366004614672565b6118f3565b34801561071f57600080fd5b506104ee61072e3660046144b6565b6119e7565b34801561073f57600080fd5b5061043f61074e3660046144b6565b611abd565b34801561075f57600080fd5b506104ee666a94d74f43000081565b34801561077a57600080fd5b50610477610789366004614749565b611b6b565b34801561079a57600080fd5b506104ee6107a9366004614672565b611ca4565b3480156107ba57600080fd5b50610477611d7e565b3480156107cf57600080fd5b506104ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561080357600080fd5b50610412611e2f565b34801561081857600080fd5b506104776108273660046147c4565b611e4b565b34801561083857600080fd5b506104776120a5565b34801561084d57600080fd5b506008546001600160a01b031661043f565b34801561086b57600080fd5b506104ee612127565b34801561088057600080fd5b5061041261213e565b34801561089557600080fd5b506104776108a4366004614672565b61214d565b6104776108b73660046144b6565b61223d565b3480156108c857600080fd5b506104776108d7366004614811565b612421565b3480156108e857600080fd5b506104ee6108f73660046144b6565b612433565b34801561090857600080fd5b50600954600160401b900461ffff166001146103e8565b34801561092b57600080fd5b50600954640100000000900461ffff166104ee565b34801561094c57600080fd5b506104ee66d529ae9e86000081565b34801561096757600080fd5b50610970612535565b6040516103f4919061484f565b34801561098957600080fd5b5061099d6109983660046144b6565b61259b565b6040516103f492919061489c565b3480156109b757600080fd5b506009546601000000000000900461ffff166001146103e8565b3480156109dd57600080fd5b506104776109ec3660046148c1565b6126df565b3480156109fd57600080fd5b50610477610a0c366004614672565b612774565b348015610a1d57600080fd5b50610a31610a2c366004614672565b612864565b6040516103f4919061492d565b348015610a4a57600080fd5b50610412610a593660046144b6565b6129ad565b348015610a6a57600080fd5b50610477610a793660046144b6565b6129e7565b348015610a8a57600080fd5b50610412612b84565b348015610a9f57600080fd5b50610477612b93565b610477610ab6366004614965565b612c16565b348015610ac757600080fd5b50610477610ad636600461468f565b612efc565b348015610ae757600080fd5b506104ee7f000000000000000000000000000000000000000000000000000000000000000081565b348015610b1b57600080fd5b506103e8610b2a3660046149f0565b612fc6565b348015610b3b57600080fd5b5060095462010000900461ffff166104ee565b348015610b5a57600080fd5b506104ee7f000000000000000000000000000000000000000000000000000000000000000081565b348015610b8e57600080fd5b50610477610b9d366004614672565b6130b4565b348015610bae57600080fd5b50610477610bbd3660046144e4565b6131f3565b348015610bce57600080fd5b5060095461ffff166104ee565b348015610be757600080fd5b50610477610bf6366004614672565b613386565b348015610c0757600080fd5b50600f546104ee565b60006001600160e01b0319821663780e9d6360e01b1480610c355750610c35826134d7565b92915050565b606060008054610c4a90614a1e565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7690614a1e565b8015610cc35780601f10610c9857610100808354040283529160200191610cc3565b820191906000526020600020905b815481529060010190602001808311610ca657829003601f168201915b5050505050905090565b6000610cd882613527565b610d3e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610d6582611abd565b9050806001600160a01b0316836001600160a01b03161415610dd35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d35565b806001600160a01b0316610de5613571565b6001600160a01b03161480610e015750610e0181610b2a613571565b610e735760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d35565b610e7d838361357b565b505050565b60408051606081810183526001600160a01b03881660008181526007602090815290859020548452830152918101869052610ec087828787876135e9565b610f165760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610d35565b6001600160a01b038716600090815260076020526040902054610f3a9060016136f1565b6001600160a01b0388166000908152600760205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610f8a90899033908a90614a53565b60405180910390a1600080306001600160a01b0316888a604051602001610fb2929190614a7f565b60408051601f1981840301815290829052610fcc91614ab6565b6000604051808303816000865af19150503d8060008114611009576040519150601f19603f3d011682016040523d82523d6000602084013e61100e565b606091505b5091509150816110605760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610d35565b98975050505050505050565b600b6000611078613571565b6001600160a01b0316815260208101919091526040016000205460ff166110e15760405162461bcd60e51b815260206004820152601160248201527f63616c6c6572206e6f74206172746973740000000000000000000000000000006044820152606401610d35565b6009547f00000000000000000000000000000000000000000000000000000000000000009061111b90839062010000900461ffff16614ae8565b11156111695760405162461bcd60e51b815260206004820152601460248201527f6578636565642061727469737420737570706c790000000000000000000000006044820152606401610d35565b6009805461ffff62010000808304821685019091160263ffff00001990911617905560005b81811015610e7d5761119f83613704565b506111a981614b00565b905061118e565b600254600090815b818110156112075760006001600160a01b0316600282815481106111de576111de614b1b565b6000918252602090912001546001600160a01b0316146111ff578260010192505b6001016111b8565b505090565b61121d611217613571565b8261371f565b61128f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d35565b610e7d8383836137e1565b600d80546112a790614a1e565b80601f01602080910402602001604051908101604052809291908181526020018280546112d390614a1e565b80156113205780601f106112f557610100808354040283529160200191611320565b820191906000526020600020905b81548152906001019060200180831161130357829003601f168201915b505050505081565b6002546000905b8082101561138957836001600160a01b03166002838154811061135457611354614b1b565b6000918252602090912001546001600160a01b0316141561137e5760001983019261137e57611389565b81600101915061132f565b8082106113fe5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610d35565b5092915050565b61140d613571565b6001600160a01b03166114286008546001600160a01b031690565b6001600160a01b03161461146c5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b805161147f90600e9060208401906142ce565b5050565b600f5460609060009067ffffffffffffffff8111156114a4576114a4614510565b6040519080825280602002602001820160405280156114e957816020015b60408051808201909152606080825260208201528152602001906001900390816114c25790505b50905060005b600f5481101561167d576000600f828154811061150e5761150e614b1b565b906000526020600020906002020190508060405180604001604052908160008201805461153a90614a1e565b80601f016020809104026020016040519081016040528092919081815260200182805461156690614a1e565b80156115b35780601f10611588576101008083540402835291602001916115b3565b820191906000526020600020905b81548152906001019060200180831161159657829003601f168201915b505050505081526020016001820180546115cc90614a1e565b80601f01602080910402602001604051908101604052809291908181526020018280546115f890614a1e565b80156116455780601f1061161a57610100808354040283529160200191611645565b820191906000526020600020905b81548152906001019060200180831161162857829003601f168201915b50505050508152505083838151811061166057611660614b1b565b6020026020010181905250508061167690614b00565b90506114ef565b50919050565b60008060008361169281613527565b6116ce5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610d35565b600085815260106020526040902054600160c01b900460ff166116fc576032935060009250604b915061172a565b600085815260106020526040902054600781810b9550600160401b8204810b9450600160801b909104900b91505b509193909250565b610e7d838383604051806020016040528060008152506126df565b600a6000611759613571565b6001600160a01b0316815260208101919091526040016000205460ff166117c25760405162461bcd60e51b815260206004820152601160248201527f63616c6c6572206e6f74206275726e65720000000000000000000000000000006044820152606401610d35565b6117cb8161394b565b50565b6117d6613571565b6001600160a01b03166117f16008546001600160a01b031690565b6001600160a01b0316146118355760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6009547f00000000000000000000000000000000000000000000000000000000000000009061186990839061ffff16614ae8565b11156118b75760405162461bcd60e51b815260206004820152601560248201527f6578636565642067616c6c65727920737570706c7900000000000000000000006044820152606401610d35565b6009805461ffff80821684011661ffff1990911617905560005b81811015610e7d576118e283613704565b506118ec81614b00565b90506118d1565b6118fb613571565b6001600160a01b03166119166008546001600160a01b031690565b6001600160a01b03161461195a5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6001600160a01b0381166000908152600a602052604090205460ff16156119c35760405162461bcd60e51b815260206004820152601a60248201527f6164647265737320616c726561647920726567697374657265640000000000006044820152606401610d35565b6001600160a01b03166000908152600a60205260409020805460ff19166001179055565b6002546000905b80821015611a485760006001600160a01b031660028381548110611a1457611a14614b1b565b6000918252602090912001546001600160a01b031614611a3d57600019830192611a3d57611a48565b8160010191506119ee565b80821061167d5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610d35565b6000611ac882613527565b611b3a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d35565b600060028381548110611b4f57611b4f614b1b565b6000918252602090912001546001600160a01b03169392505050565b611b73613571565b6001600160a01b0316611b8e6008546001600160a01b031690565b6001600160a01b031614611bd25760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b600954600160401b900461ffff1615611c225760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610d35565b604080518082019091528281526020808201839052600f805460018101825560009190915282518051849360029093027f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020192611c839284929101906142ce565b506020828101518051611c9c92600185019201906142ce565b505050505050565b60006001600160a01b038216611d225760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d35565b60025460005b81811015611d7757836001600160a01b031660028281548110611d4d57611d4d614b1b565b6000918252602090912001546001600160a01b03161415611d6f578260010192505b600101611d28565b5050919050565b611d86613571565b6001600160a01b0316611da16008546001600160a01b031690565b6001600160a01b031614611de55760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b604051806080016040528060438152602001614cf16043913981565b611e53613571565b84611e5e828261371f565b611e6757600080fd5b8460070b600013158015611e7f575060648560070b13155b611ecb5760405162461bcd60e51b815260206004820152601060248201527f696e76616c696420736466626c656e64000000000000000000000000000000006044820152606401610d35565b8360070b600013158015611ee3575060c88460070b13155b611f2f5760405162461bcd60e51b815260206004820152600d60248201527f696e76616c6964207370656564000000000000000000000000000000000000006044820152606401610d35565b8260070b600f13158015611f47575060968360070b13155b611f935760405162461bcd60e51b815260206004820152600c60248201527f696e76616c69642073697a6500000000000000000000000000000000000000006044820152606401610d35565b6000868152601060205260409081902080547fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff878116600160801b02919091167fffffffffffffff000000000000000000ffffffffffffffffffffffffffffffff898316600160401b026fffffffffffffffffffffffffffffffff19909416928b1692909217929092171617600160c01b178155905133917f0a0ab264f1b605d1ed87554cfe65e653378facce2e3a450c62613f4010ccda0491612095918a825254600781810b6020840152604082811c820b90840152608082811c90910b606084015260c09190911c60ff1615159082015260a00190565b60405180910390a2505050505050565b6120ad613571565b6001600160a01b03166120c86008546001600160a01b031690565b6001600160a01b03161461210c5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6009805469ffff00000000000000001916600160401b179055565b60025460009061213990600190614b31565b905090565b606060018054610c4a90614a1e565b612155613571565b6001600160a01b03166121706008546001600160a01b031690565b6001600160a01b0316146121b45760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6001600160a01b0381166000908152600b602052604090205460ff1661221c5760405162461bcd60e51b815260206004820152601660248201527f61646472657373206e6f742072656769737465726564000000000000000000006044820152606401610d35565b6001600160a01b03166000908152600b60205260409020805460ff19169055565b600954600160401b900461ffff161561228d5760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610d35565b6009546601000000000000900461ffff166001146122ed5760405162461bcd60e51b815260206004820152601460248201527f7075626c6963206d696e74206e6f74206c6976650000000000000000000000006044820152606401610d35565b346122ff8266d529ae9e860000614b48565b1461234c5760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e742066756e647300000000000000000000000000006044820152606401610d35565b6009547f000000000000000000000000000000000000000000000000000000000000000090612388908390640100000000900461ffff16614ae8565b11156123d65760405162461bcd60e51b815260206004820152601460248201527f657863656564207075626c696320737570706c790000000000000000000000006044820152606401610d35565b6009805461ffff640100000000808304821685019091160265ffff000000001990911617905560005b8181101561147f5761241033613704565b5061241a81614b00565b90506123ff565b61147f61242c613571565b83836139c8565b60008161243f81613527565b61247b5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610d35565b7f0000000000000000000000000000000000000000000000000000000000000000836124a8600182614b31565b856124b4600182614b31565b60408051602081019390935282015260600160408051808303601f1901815282825280516020918201209083019590955281019290925260608083019190915260808201929092523090911b6bffffffffffffffffffffffff191660a082015260b40160405160208183030381529060405280519060200120915050919050565b60606000600280548060200260200160405190810160405280929190818152602001828054801561258f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612571575b50939695505050505050565b600f81815481106125ab57600080fd5b90600052602060002090600202016000915090508060000180546125ce90614a1e565b80601f01602080910402602001604051908101604052809291908181526020018280546125fa90614a1e565b80156126475780601f1061261c57610100808354040283529160200191612647565b820191906000526020600020905b81548152906001019060200180831161262a57829003601f168201915b50505050509080600101805461265c90614a1e565b80601f016020809104026020016040519081016040528092919081815260200182805461268890614a1e565b80156126d55780601f106126aa576101008083540402835291602001916126d5565b820191906000526020600020905b8154815290600101906020018083116126b857829003601f168201915b5050505050905082565b6126f06126ea613571565b8361371f565b6127625760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d35565b61276e84848484613a97565b50505050565b61277c613571565b6001600160a01b03166127976008546001600160a01b031690565b6001600160a01b0316146127db5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6001600160a01b0381166000908152600a602052604090205460ff166128435760405162461bcd60e51b815260206004820152601660248201527f61646472657373206e6f742072656769737465726564000000000000000000006044820152606401610d35565b6001600160a01b03166000908152600a60205260409020805460ff19169055565b6060600061287183611ca4565b9050806128e65760405162461bcd60e51b815260206004820152602660248201527f455243373231456e756d657261626c653a206f776e6572206f776e73206e6f2060448201527f746f6b656e7300000000000000000000000000000000000000000000000000006064820152608401610d35565b60025460008267ffffffffffffffff81111561290457612904614510565b60405190808252806020026020018201604052801561292d578160200160208202803683370190505b5090506000805b838110156129a257866001600160a01b03166002828154811061295957612959614b1b565b6000918252602090912001546001600160a01b0316141561299a578083838060010194508151811061298d5761298d614b1b565b6020026020010181815250505b600101612934565b509095945050505050565b60606129b7612b84565b6129c083613b15565b6040516020016129d1929190614b67565b6040516020818303038152906040529050919050565b6129ef613571565b6001600160a01b0316612a0a6008546001600160a01b031690565b6001600160a01b031614612a4e5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b600954600160401b900461ffff1615612a9e5760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610d35565b600f548110612aac57600080fd5b600f8054612abc90600190614b31565b81548110612acc57612acc614b1b565b9060005260206000209060020201600f8281548110612aed57612aed614b1b565b90600052602060002090600202016000820181600001908054612b0f90614a1e565b612b1a929190614352565b506001820181600101908054612b2f90614a1e565b612b3a929190614352565b50905050600f805480612b4f57612b4f614bcd565b60008281526020812060001990920191600283020190612b6f82826143cd565b612b7d6001830160006143cd565b5050905550565b6060600e8054610c4a90614a1e565b612b9b613571565b6001600160a01b0316612bb66008546001600160a01b031690565b6001600160a01b031614612bfa5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6009805467ffff00000000000019166601000000000000179055565b600954600160401b900461ffff1615612c665760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610d35565b34612c7882666a94d74f430000614b48565b14612cc55760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e742066756e647300000000000000000000000000006044820152606401610d35565b6009547f000000000000000000000000000000000000000000000000000000000000000090612d01908390640100000000900461ffff16614ae8565b1115612d4f5760405162461bcd60e51b815260206004820152601460248201527f657863656564207075626c696320737570706c790000000000000000000000006044820152606401610d35565b336000908152600c60205260409020548290612d6c908390614ae8565b1115612dba5760405162461bcd60e51b815260206004820152601160248201527f65786365656420616c6c6f636174696f6e0000000000000000000000000000006044820152606401610d35565b612dfa8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613c2b92505050565b612e465760405162461bcd60e51b815260206004820152600e60248201527f696e76616c6964207369676e65720000000000000000000000000000000000006044820152606401610d35565b612e5285338484613c5d565b612e9e5760405162461bcd60e51b815260206004820152600c60248201527f696e76616c6964206861736800000000000000000000000000000000000000006044820152606401610d35565b6009805461ffff640100000000808304821685019091160265ffff0000000019909116179055336000908152600c602052604081208054830190555b81811015611c9c57612eeb33613704565b50612ef581614b00565b9050612eda565b612f04613571565b6001600160a01b0316612f1f6008546001600160a01b031690565b6001600160a01b031614612f635760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b600954600160401b900461ffff1615612fb35760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610d35565b805161147f90600d9060208401906142ce565b60405163c455279160e01b81526001600160a01b0383811660048301526000917f000000000000000000000000000000000000000000000000000000000000000091848116919083169063c45527919060240160206040518083038186803b15801561303157600080fd5b505afa158015613045573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130699190614be3565b6001600160a01b03161415613082576001915050610c35565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b6130bc613571565b6001600160a01b03166130d76008546001600160a01b031690565b6001600160a01b03161461311b5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6001600160a01b0381166131975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d35565b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b6131fb613571565b6001600160a01b03166132166008546001600160a01b031690565b6001600160a01b03161461325a5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b600081116132aa5760405162461bcd60e51b815260206004820152600c60248201527f616d6f756e7420656d70747900000000000000000000000000000000000000006044820152606401610d35565b478111156132fa5760405162461bcd60e51b815260206004820152601660248201527f616d6f756e7420657863656564732062616c616e6365000000000000000000006044820152606401610d35565b6001600160a01b0382166133505760405162461bcd60e51b815260206004820152600c60248201527f61646472657373206e756c6c00000000000000000000000000000000000000006044820152606401610d35565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610e7d573d6000803e3d6000fd5b61338e613571565b6001600160a01b03166133a96008546001600160a01b031690565b6001600160a01b0316146133ed5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6001600160a01b0381166000908152600b602052604090205460ff16156134565760405162461bcd60e51b815260206004820152601a60248201527f6164647265737320616c726561647920726567697374657265640000000000006044820152606401610d35565b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b6000333014156134d157600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506134d49050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b148061350857506001600160e01b03198216635b5e139f60e01b145b80610c3557506301ffc9a760e01b6001600160e01b0319831614610c35565b60025460009082108015610c35575060006001600160a01b03166002838154811061355457613554614b1b565b6000918252602090912001546001600160a01b0316141592915050565b600061213961347a565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906135b082611abd565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166136675760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610d35565b600161367a61367587613cb8565b613d35565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa1580156136c8573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006136fd8284614ae8565b9392505050565b6000610c358260405180602001604052806000815250613d65565b600061372a82613527565b61378b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d35565b600061379683611abd565b9050806001600160a01b0316846001600160a01b031614806137d15750836001600160a01b03166137c684610ccd565b6001600160a01b0316145b806130ac57506130ac8185612fc6565b826001600160a01b03166137f482611abd565b6001600160a01b0316146138705760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610d35565b6001600160a01b0382166138d25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d35565b6138dd60008261357b565b81600282815481106138f1576138f1614b1b565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600061395682611abd565b905061396360008361357b565b6002828154811061397657613976614b1b565b6000918252602082200180546001600160a01b03191690556040518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b816001600160a01b0316836001600160a01b03161415613a2a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d35565b6001600160a01b03838116600081815260046020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613aa28484846137e1565b613aae84848484613de6565b61276e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d35565b606081613b395750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613b635780613b4d81614b00565b9150613b5c9050600a83614c16565b9150613b3d565b60008167ffffffffffffffff811115613b7e57613b7e614510565b6040519080825280601f01601f191660200182016040528015613ba8576020820181803683370190505b5090505b84156130ac57613bbd600183614b31565b9150613bca600a86614c2a565b613bd5906030614ae8565b60f81b818381518110613bea57613bea614b1b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613c24600a86614c16565b9450613bac565b600073e4db0e0ba9c3b378642cf2a45e73a88f9fb6ae45613c4c8484613f42565b6001600160a01b0316149392505050565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052605481018290526000908590613cae9060740160405160208183030381529060405280519060200120614011565b1495945050505050565b6000604051806080016040528060438152602001614c8e6043913980516020918201208351848301516040808701518051908601209051613d18950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000613d4060065490565b60405161190160f01b6020820152602281019190915260428101839052606201613d18565b6000613d708361404c565b9050613d7f6000848385613de6565b610c355760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d35565b60006001600160a01b0384163b15613f3a57836001600160a01b031663150b7a02613e0f613571565b8786866040518563ffffffff1660e01b8152600401613e319493929190614c3e565b602060405180830381600087803b158015613e4b57600080fd5b505af1925050508015613e7b575060408051601f3d908101601f19168201909252613e7891810190614c70565b60015b613f20573d808015613ea9576040519150601f19603f3d011682016040523d82523d6000602084013e613eae565b606091505b508051613f185760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d35565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506130ac565b5060016130ac565b600080600080845160411415613f6c5750505060208201516040830151606084015160001a613ffb565b845160401415613fb35750505060408201516020830151907f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81169060ff1c601b01613ffb565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d35565b61400786828585614125565b9695505050505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01613d18565b60006001600160a01b0382166140a45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d35565b506002546002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156141a25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d35565b8360ff16601b14806141b757508360ff16601c145b61420e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d35565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015614262573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166142c55760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d35565b95945050505050565b8280546142da90614a1e565b90600052602060002090601f0160209004810192826142fc5760008555614342565b82601f1061431557805160ff1916838001178555614342565b82800160010185558215614342579182015b82811115614342578251825591602001919060010190614327565b5061434e929150614403565b5090565b82805461435e90614a1e565b90600052602060002090601f0160209004810192826143805760008555614342565b82601f106143915780548555614342565b8280016001018555821561434257600052602060002091601f016020900482015b828111156143425782548255916001019190600101906143b2565b5080546143d990614a1e565b6000825580601f106143e9575050565b601f0160209004906000526020600020908101906117cb91905b5b8082111561434e5760008155600101614404565b6001600160e01b0319811681146117cb57600080fd5b60006020828403121561444057600080fd5b81356136fd81614418565b60005b8381101561446657818101518382015260200161444e565b8381111561276e5750506000910152565b6000815180845261448f81602086016020860161444b565b601f01601f19169290920160200192915050565b6020815260006136fd6020830184614477565b6000602082840312156144c857600080fd5b5035919050565b6001600160a01b03811681146117cb57600080fd5b600080604083850312156144f757600080fd5b8235614502816144cf565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261453757600080fd5b813567ffffffffffffffff8082111561455257614552614510565b604051601f8301601f19908116603f0116810190828211818310171561457a5761457a614510565b8160405283815286602085880101111561459357600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a086880312156145cb57600080fd5b85356145d6816144cf565b9450602086013567ffffffffffffffff8111156145f257600080fd5b6145fe88828901614526565b9450506040860135925060608601359150608086013560ff8116811461462357600080fd5b809150509295509295909350565b60008060006060848603121561464657600080fd5b8335614651816144cf565b92506020840135614661816144cf565b929592945050506040919091013590565b60006020828403121561468457600080fd5b81356136fd816144cf565b6000602082840312156146a157600080fd5b813567ffffffffffffffff8111156146b857600080fd5b6130ac84828501614526565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561473b57888303603f190185528151805187855261470f88860182614477565b91890151858303868b01529190506147278183614477565b9689019694505050908601906001016146eb565b509098975050505050505050565b6000806040838503121561475c57600080fd5b823567ffffffffffffffff8082111561477457600080fd5b61478086838701614526565b9350602085013591508082111561479657600080fd5b506147a385828601614526565b9150509250929050565b8035600781900b81146147bf57600080fd5b919050565b600080600080608085870312156147da57600080fd5b843593506147ea602086016147ad565b92506147f8604086016147ad565b9150614806606086016147ad565b905092959194509250565b6000806040838503121561482457600080fd5b823561482f816144cf565b91506020830135801515811461484457600080fd5b809150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156148905783516001600160a01b03168352928401929184019160010161486b565b50909695505050505050565b6040815260006148af6040830185614477565b82810360208401526142c58185614477565b600080600080608085870312156148d757600080fd5b84356148e2816144cf565b935060208501356148f2816144cf565b925060408501359150606085013567ffffffffffffffff81111561491557600080fd5b61492187828801614526565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b8181101561489057835183529284019291840191600101614949565b60008060008060006080868803121561497d57600080fd5b85359450602086013567ffffffffffffffff8082111561499c57600080fd5b818801915088601f8301126149b057600080fd5b8135818111156149bf57600080fd5b8960208285010111156149d157600080fd5b9699602092909201985095966040810135965060600135945092505050565b60008060408385031215614a0357600080fd5b8235614a0e816144cf565b91506020830135614844816144cf565b600181811c90821680614a3257607f821691505b6020821081141561167d57634e487b7160e01b600052602260045260246000fd5b60006001600160a01b038086168352808516602084015250606060408301526142c56060830184614477565b60008351614a9181846020880161444b565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60008251614ac881846020870161444b565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b60008219821115614afb57614afb614ad2565b500190565b6000600019821415614b1457614b14614ad2565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600082821015614b4357614b43614ad2565b500390565b6000816000190483118215151615614b6257614b62614ad2565b500290565b60008351614b7981846020880161444b565b602f60f81b9083019081528351614b9781600184016020880161444b565b7f2f6d65746100000000000000000000000000000000000000000000000000000060019290910191820152600601949350505050565b634e487b7160e01b600052603160045260246000fd5b600060208284031215614bf557600080fd5b81516136fd816144cf565b634e487b7160e01b600052601260045260246000fd5b600082614c2557614c25614c00565b500490565b600082614c3957614c39614c00565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526140076080830184614477565b600060208284031215614c8257600080fd5b81516136fd8161441856fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657243616c6d696e672073686170657320616e6420636f6c6f727320696e737069726520746f2072656c617820616e64206c657420746865206d696e6420776f6e6465722ea2646970667358221220c008f69dcfa14a8a635c4d122b136dd438706d54bbd5e8c5f024264c585de74864736f6c63430008090033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c74294f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000f1f48337d13d73ac58b6077b906c9eff1c3b291c3e33b9284240aaef66d730c61000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001174687265652d723132382e6d696e2e6a73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d5957614a3672467a51357552726144514d4d446f4b39575365485936585741486e424c587766516b31696253000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68747470733a2f2f67656e65746963636861696e2e696f2f6170692f70726f6a6563742f31312f746f6b656e0000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103c35760003560e01c8063753868e3116101f2578063bba7723e1161010d578063e985e9c5116100a0578063f3fef3a31161006f578063f3fef3a314610ba2578063f593bd5314610bc2578063f685137314610bdb578063f8f0b80e14610bfb57600080fd5b8063e985e9c514610b0f578063ed329fa814610b2f578063ef3c662414610b4e578063f2fde38b14610b8257600080fd5b8063d62f3b1c116100dc578063d62f3b1c14610a93578063d81bc66314610aa8578063e403f1a714610abb578063e527c6dd14610adb57600080fd5b8063bba7723e14610a11578063c87b56dd14610a3e578063c93ed70a14610a5e578063d547cfb714610a7e57600080fd5b8063a4e2d63411610185578063b1fbe72d11610154578063b1fbe72d1461097d578063b7f751d8146109ab578063b88d4fde146109d1578063ba8bce55146109f157600080fd5b8063a4e2d634146108fc578063a4f4f8af1461091f578063a945bf8014610940578063affe39c11461095b57600080fd5b8063a05f9f08116101c1578063a05f9f0814610889578063a0712d68146108a9578063a22cb465146108bc578063a3864397146108dc57600080fd5b8063753868e31461082c5780638da5cb5b1461084157806391ba317a1461085f57806395d89b411461087457600080fd5b80633e4f49e6116102e25780636352211e11610275578063715018a611610244578063715018a6146107ae57806371dedace146107c35780637284e416146107f757806374e8b80d1461080c57600080fd5b80636352211e14610733578063636e746b14610753578063638e19b41461076e57806370a082311461078e57600080fd5b806343bc1612116102b157806343bc16121461068a57806344be774f146106d35780634b457935146106f35780634f6ccce71461071357600080fd5b80633e4f49e6146105f15780633fafa1271461063557806342842e0e1461064a57806342966c681461066a57600080fd5b806320379ee51161035a5780632f745c59116103295780632f745c591461057c57806330176e131461059c5780633408e470146105bc5780633e02bc38146105cf57600080fd5b806320379ee5146104fc57806323b872dd1461051157806324c12bf6146105315780632d0335ab1461054657600080fd5b80630c53c51c116103965780630c53c51c146104795780630f7e59701461048c57806314d7d517146104b957806318160ddd146104d957600080fd5b806301ffc9a7146103c857806306fdde03146103fd578063081812fc1461041f578063095ea7b314610457575b600080fd5b3480156103d457600080fd5b506103e86103e336600461442e565b610c10565b60405190151581526020015b60405180910390f35b34801561040957600080fd5b50610412610c3b565b6040516103f491906144a3565b34801561042b57600080fd5b5061043f61043a3660046144b6565b610ccd565b6040516001600160a01b0390911681526020016103f4565b34801561046357600080fd5b506104776104723660046144e4565b610d5a565b005b6104126104873660046145b3565b610e82565b34801561049857600080fd5b50610412604051806040016040528060018152602001603160f81b81525081565b3480156104c557600080fd5b506104776104d43660046144e4565b61106c565b3480156104e557600080fd5b506104ee6111b0565b6040519081526020016103f4565b34801561050857600080fd5b506006546104ee565b34801561051d57600080fd5b5061047761052c366004614631565b61120c565b34801561053d57600080fd5b5061041261129a565b34801561055257600080fd5b506104ee610561366004614672565b6001600160a01b031660009081526007602052604090205490565b34801561058857600080fd5b506104ee6105973660046144e4565b611328565b3480156105a857600080fd5b506104776105b736600461468f565b611405565b3480156105c857600080fd5b50466104ee565b3480156105db57600080fd5b506105e4611483565b6040516103f491906146c4565b3480156105fd57600080fd5b5061061161060c3660046144b6565b611683565b60408051600794850b815292840b6020840152920b918101919091526060016103f4565b34801561064157600080fd5b506104ee600b81565b34801561065657600080fd5b50610477610665366004614631565b611732565b34801561067657600080fd5b506104776106853660046144b6565b61174d565b34801561069657600080fd5b506104126040518060400160405280600581526020017f617461726100000000000000000000000000000000000000000000000000000081525081565b3480156106df57600080fd5b506104776106ee3660046144e4565b6117ce565b3480156106ff57600080fd5b5061047761070e366004614672565b6118f3565b34801561071f57600080fd5b506104ee61072e3660046144b6565b6119e7565b34801561073f57600080fd5b5061043f61074e3660046144b6565b611abd565b34801561075f57600080fd5b506104ee666a94d74f43000081565b34801561077a57600080fd5b50610477610789366004614749565b611b6b565b34801561079a57600080fd5b506104ee6107a9366004614672565b611ca4565b3480156107ba57600080fd5b50610477611d7e565b3480156107cf57600080fd5b506104ee7f000000000000000000000000000000000000000000000000000000000000000f81565b34801561080357600080fd5b50610412611e2f565b34801561081857600080fd5b506104776108273660046147c4565b611e4b565b34801561083857600080fd5b506104776120a5565b34801561084d57600080fd5b506008546001600160a01b031661043f565b34801561086b57600080fd5b506104ee612127565b34801561088057600080fd5b5061041261213e565b34801561089557600080fd5b506104776108a4366004614672565b61214d565b6104776108b73660046144b6565b61223d565b3480156108c857600080fd5b506104776108d7366004614811565b612421565b3480156108e857600080fd5b506104ee6108f73660046144b6565b612433565b34801561090857600080fd5b50600954600160401b900461ffff166001146103e8565b34801561092b57600080fd5b50600954640100000000900461ffff166104ee565b34801561094c57600080fd5b506104ee66d529ae9e86000081565b34801561096757600080fd5b50610970612535565b6040516103f4919061484f565b34801561098957600080fd5b5061099d6109983660046144b6565b61259b565b6040516103f492919061489c565b3480156109b757600080fd5b506009546601000000000000900461ffff166001146103e8565b3480156109dd57600080fd5b506104776109ec3660046148c1565b6126df565b3480156109fd57600080fd5b50610477610a0c366004614672565b612774565b348015610a1d57600080fd5b50610a31610a2c366004614672565b612864565b6040516103f4919061492d565b348015610a4a57600080fd5b50610412610a593660046144b6565b6129ad565b348015610a6a57600080fd5b50610477610a793660046144b6565b6129e7565b348015610a8a57600080fd5b50610412612b84565b348015610a9f57600080fd5b50610477612b93565b610477610ab6366004614965565b612c16565b348015610ac757600080fd5b50610477610ad636600461468f565b612efc565b348015610ae757600080fd5b506104ee7f000000000000000000000000000000000000000000000000000000000000032081565b348015610b1b57600080fd5b506103e8610b2a3660046149f0565b612fc6565b348015610b3b57600080fd5b5060095462010000900461ffff166104ee565b348015610b5a57600080fd5b506104ee7f000000000000000000000000000000000000000000000000000000000000000f81565b348015610b8e57600080fd5b50610477610b9d366004614672565b6130b4565b348015610bae57600080fd5b50610477610bbd3660046144e4565b6131f3565b348015610bce57600080fd5b5060095461ffff166104ee565b348015610be757600080fd5b50610477610bf6366004614672565b613386565b348015610c0757600080fd5b50600f546104ee565b60006001600160e01b0319821663780e9d6360e01b1480610c355750610c35826134d7565b92915050565b606060008054610c4a90614a1e565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7690614a1e565b8015610cc35780601f10610c9857610100808354040283529160200191610cc3565b820191906000526020600020905b815481529060010190602001808311610ca657829003601f168201915b5050505050905090565b6000610cd882613527565b610d3e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610d6582611abd565b9050806001600160a01b0316836001600160a01b03161415610dd35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d35565b806001600160a01b0316610de5613571565b6001600160a01b03161480610e015750610e0181610b2a613571565b610e735760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d35565b610e7d838361357b565b505050565b60408051606081810183526001600160a01b03881660008181526007602090815290859020548452830152918101869052610ec087828787876135e9565b610f165760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610d35565b6001600160a01b038716600090815260076020526040902054610f3a9060016136f1565b6001600160a01b0388166000908152600760205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610f8a90899033908a90614a53565b60405180910390a1600080306001600160a01b0316888a604051602001610fb2929190614a7f565b60408051601f1981840301815290829052610fcc91614ab6565b6000604051808303816000865af19150503d8060008114611009576040519150601f19603f3d011682016040523d82523d6000602084013e61100e565b606091505b5091509150816110605760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610d35565b98975050505050505050565b600b6000611078613571565b6001600160a01b0316815260208101919091526040016000205460ff166110e15760405162461bcd60e51b815260206004820152601160248201527f63616c6c6572206e6f74206172746973740000000000000000000000000000006044820152606401610d35565b6009547f000000000000000000000000000000000000000000000000000000000000000f9061111b90839062010000900461ffff16614ae8565b11156111695760405162461bcd60e51b815260206004820152601460248201527f6578636565642061727469737420737570706c790000000000000000000000006044820152606401610d35565b6009805461ffff62010000808304821685019091160263ffff00001990911617905560005b81811015610e7d5761119f83613704565b506111a981614b00565b905061118e565b600254600090815b818110156112075760006001600160a01b0316600282815481106111de576111de614b1b565b6000918252602090912001546001600160a01b0316146111ff578260010192505b6001016111b8565b505090565b61121d611217613571565b8261371f565b61128f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d35565b610e7d8383836137e1565b600d80546112a790614a1e565b80601f01602080910402602001604051908101604052809291908181526020018280546112d390614a1e565b80156113205780601f106112f557610100808354040283529160200191611320565b820191906000526020600020905b81548152906001019060200180831161130357829003601f168201915b505050505081565b6002546000905b8082101561138957836001600160a01b03166002838154811061135457611354614b1b565b6000918252602090912001546001600160a01b0316141561137e5760001983019261137e57611389565b81600101915061132f565b8082106113fe5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610d35565b5092915050565b61140d613571565b6001600160a01b03166114286008546001600160a01b031690565b6001600160a01b03161461146c5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b805161147f90600e9060208401906142ce565b5050565b600f5460609060009067ffffffffffffffff8111156114a4576114a4614510565b6040519080825280602002602001820160405280156114e957816020015b60408051808201909152606080825260208201528152602001906001900390816114c25790505b50905060005b600f5481101561167d576000600f828154811061150e5761150e614b1b565b906000526020600020906002020190508060405180604001604052908160008201805461153a90614a1e565b80601f016020809104026020016040519081016040528092919081815260200182805461156690614a1e565b80156115b35780601f10611588576101008083540402835291602001916115b3565b820191906000526020600020905b81548152906001019060200180831161159657829003601f168201915b505050505081526020016001820180546115cc90614a1e565b80601f01602080910402602001604051908101604052809291908181526020018280546115f890614a1e565b80156116455780601f1061161a57610100808354040283529160200191611645565b820191906000526020600020905b81548152906001019060200180831161162857829003601f168201915b50505050508152505083838151811061166057611660614b1b565b6020026020010181905250508061167690614b00565b90506114ef565b50919050565b60008060008361169281613527565b6116ce5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610d35565b600085815260106020526040902054600160c01b900460ff166116fc576032935060009250604b915061172a565b600085815260106020526040902054600781810b9550600160401b8204810b9450600160801b909104900b91505b509193909250565b610e7d838383604051806020016040528060008152506126df565b600a6000611759613571565b6001600160a01b0316815260208101919091526040016000205460ff166117c25760405162461bcd60e51b815260206004820152601160248201527f63616c6c6572206e6f74206275726e65720000000000000000000000000000006044820152606401610d35565b6117cb8161394b565b50565b6117d6613571565b6001600160a01b03166117f16008546001600160a01b031690565b6001600160a01b0316146118355760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6009547f000000000000000000000000000000000000000000000000000000000000000f9061186990839061ffff16614ae8565b11156118b75760405162461bcd60e51b815260206004820152601560248201527f6578636565642067616c6c65727920737570706c7900000000000000000000006044820152606401610d35565b6009805461ffff80821684011661ffff1990911617905560005b81811015610e7d576118e283613704565b506118ec81614b00565b90506118d1565b6118fb613571565b6001600160a01b03166119166008546001600160a01b031690565b6001600160a01b03161461195a5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6001600160a01b0381166000908152600a602052604090205460ff16156119c35760405162461bcd60e51b815260206004820152601a60248201527f6164647265737320616c726561647920726567697374657265640000000000006044820152606401610d35565b6001600160a01b03166000908152600a60205260409020805460ff19166001179055565b6002546000905b80821015611a485760006001600160a01b031660028381548110611a1457611a14614b1b565b6000918252602090912001546001600160a01b031614611a3d57600019830192611a3d57611a48565b8160010191506119ee565b80821061167d5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610d35565b6000611ac882613527565b611b3a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d35565b600060028381548110611b4f57611b4f614b1b565b6000918252602090912001546001600160a01b03169392505050565b611b73613571565b6001600160a01b0316611b8e6008546001600160a01b031690565b6001600160a01b031614611bd25760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b600954600160401b900461ffff1615611c225760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610d35565b604080518082019091528281526020808201839052600f805460018101825560009190915282518051849360029093027f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020192611c839284929101906142ce565b506020828101518051611c9c92600185019201906142ce565b505050505050565b60006001600160a01b038216611d225760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d35565b60025460005b81811015611d7757836001600160a01b031660028281548110611d4d57611d4d614b1b565b6000918252602090912001546001600160a01b03161415611d6f578260010192505b600101611d28565b5050919050565b611d86613571565b6001600160a01b0316611da16008546001600160a01b031690565b6001600160a01b031614611de55760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b604051806080016040528060438152602001614cf16043913981565b611e53613571565b84611e5e828261371f565b611e6757600080fd5b8460070b600013158015611e7f575060648560070b13155b611ecb5760405162461bcd60e51b815260206004820152601060248201527f696e76616c696420736466626c656e64000000000000000000000000000000006044820152606401610d35565b8360070b600013158015611ee3575060c88460070b13155b611f2f5760405162461bcd60e51b815260206004820152600d60248201527f696e76616c6964207370656564000000000000000000000000000000000000006044820152606401610d35565b8260070b600f13158015611f47575060968360070b13155b611f935760405162461bcd60e51b815260206004820152600c60248201527f696e76616c69642073697a6500000000000000000000000000000000000000006044820152606401610d35565b6000868152601060205260409081902080547fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff878116600160801b02919091167fffffffffffffff000000000000000000ffffffffffffffffffffffffffffffff898316600160401b026fffffffffffffffffffffffffffffffff19909416928b1692909217929092171617600160c01b178155905133917f0a0ab264f1b605d1ed87554cfe65e653378facce2e3a450c62613f4010ccda0491612095918a825254600781810b6020840152604082811c820b90840152608082811c90910b606084015260c09190911c60ff1615159082015260a00190565b60405180910390a2505050505050565b6120ad613571565b6001600160a01b03166120c86008546001600160a01b031690565b6001600160a01b03161461210c5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6009805469ffff00000000000000001916600160401b179055565b60025460009061213990600190614b31565b905090565b606060018054610c4a90614a1e565b612155613571565b6001600160a01b03166121706008546001600160a01b031690565b6001600160a01b0316146121b45760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6001600160a01b0381166000908152600b602052604090205460ff1661221c5760405162461bcd60e51b815260206004820152601660248201527f61646472657373206e6f742072656769737465726564000000000000000000006044820152606401610d35565b6001600160a01b03166000908152600b60205260409020805460ff19169055565b600954600160401b900461ffff161561228d5760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610d35565b6009546601000000000000900461ffff166001146122ed5760405162461bcd60e51b815260206004820152601460248201527f7075626c6963206d696e74206e6f74206c6976650000000000000000000000006044820152606401610d35565b346122ff8266d529ae9e860000614b48565b1461234c5760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e742066756e647300000000000000000000000000006044820152606401610d35565b6009547f000000000000000000000000000000000000000000000000000000000000032090612388908390640100000000900461ffff16614ae8565b11156123d65760405162461bcd60e51b815260206004820152601460248201527f657863656564207075626c696320737570706c790000000000000000000000006044820152606401610d35565b6009805461ffff640100000000808304821685019091160265ffff000000001990911617905560005b8181101561147f5761241033613704565b5061241a81614b00565b90506123ff565b61147f61242c613571565b83836139c8565b60008161243f81613527565b61247b5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610d35565b7f1f48337d13d73ac58b6077b906c9eff1c3b291c3e33b9284240aaef66d730c61836124a8600182614b31565b856124b4600182614b31565b60408051602081019390935282015260600160408051808303601f1901815282825280516020918201209083019590955281019290925260608083019190915260808201929092523090911b6bffffffffffffffffffffffff191660a082015260b40160405160208183030381529060405280519060200120915050919050565b60606000600280548060200260200160405190810160405280929190818152602001828054801561258f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612571575b50939695505050505050565b600f81815481106125ab57600080fd5b90600052602060002090600202016000915090508060000180546125ce90614a1e565b80601f01602080910402602001604051908101604052809291908181526020018280546125fa90614a1e565b80156126475780601f1061261c57610100808354040283529160200191612647565b820191906000526020600020905b81548152906001019060200180831161262a57829003601f168201915b50505050509080600101805461265c90614a1e565b80601f016020809104026020016040519081016040528092919081815260200182805461268890614a1e565b80156126d55780601f106126aa576101008083540402835291602001916126d5565b820191906000526020600020905b8154815290600101906020018083116126b857829003601f168201915b5050505050905082565b6126f06126ea613571565b8361371f565b6127625760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d35565b61276e84848484613a97565b50505050565b61277c613571565b6001600160a01b03166127976008546001600160a01b031690565b6001600160a01b0316146127db5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6001600160a01b0381166000908152600a602052604090205460ff166128435760405162461bcd60e51b815260206004820152601660248201527f61646472657373206e6f742072656769737465726564000000000000000000006044820152606401610d35565b6001600160a01b03166000908152600a60205260409020805460ff19169055565b6060600061287183611ca4565b9050806128e65760405162461bcd60e51b815260206004820152602660248201527f455243373231456e756d657261626c653a206f776e6572206f776e73206e6f2060448201527f746f6b656e7300000000000000000000000000000000000000000000000000006064820152608401610d35565b60025460008267ffffffffffffffff81111561290457612904614510565b60405190808252806020026020018201604052801561292d578160200160208202803683370190505b5090506000805b838110156129a257866001600160a01b03166002828154811061295957612959614b1b565b6000918252602090912001546001600160a01b0316141561299a578083838060010194508151811061298d5761298d614b1b565b6020026020010181815250505b600101612934565b509095945050505050565b60606129b7612b84565b6129c083613b15565b6040516020016129d1929190614b67565b6040516020818303038152906040529050919050565b6129ef613571565b6001600160a01b0316612a0a6008546001600160a01b031690565b6001600160a01b031614612a4e5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b600954600160401b900461ffff1615612a9e5760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610d35565b600f548110612aac57600080fd5b600f8054612abc90600190614b31565b81548110612acc57612acc614b1b565b9060005260206000209060020201600f8281548110612aed57612aed614b1b565b90600052602060002090600202016000820181600001908054612b0f90614a1e565b612b1a929190614352565b506001820181600101908054612b2f90614a1e565b612b3a929190614352565b50905050600f805480612b4f57612b4f614bcd565b60008281526020812060001990920191600283020190612b6f82826143cd565b612b7d6001830160006143cd565b5050905550565b6060600e8054610c4a90614a1e565b612b9b613571565b6001600160a01b0316612bb66008546001600160a01b031690565b6001600160a01b031614612bfa5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6009805467ffff00000000000019166601000000000000179055565b600954600160401b900461ffff1615612c665760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610d35565b34612c7882666a94d74f430000614b48565b14612cc55760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e742066756e647300000000000000000000000000006044820152606401610d35565b6009547f000000000000000000000000000000000000000000000000000000000000032090612d01908390640100000000900461ffff16614ae8565b1115612d4f5760405162461bcd60e51b815260206004820152601460248201527f657863656564207075626c696320737570706c790000000000000000000000006044820152606401610d35565b336000908152600c60205260409020548290612d6c908390614ae8565b1115612dba5760405162461bcd60e51b815260206004820152601160248201527f65786365656420616c6c6f636174696f6e0000000000000000000000000000006044820152606401610d35565b612dfa8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613c2b92505050565b612e465760405162461bcd60e51b815260206004820152600e60248201527f696e76616c6964207369676e65720000000000000000000000000000000000006044820152606401610d35565b612e5285338484613c5d565b612e9e5760405162461bcd60e51b815260206004820152600c60248201527f696e76616c6964206861736800000000000000000000000000000000000000006044820152606401610d35565b6009805461ffff640100000000808304821685019091160265ffff0000000019909116179055336000908152600c602052604081208054830190555b81811015611c9c57612eeb33613704565b50612ef581614b00565b9050612eda565b612f04613571565b6001600160a01b0316612f1f6008546001600160a01b031690565b6001600160a01b031614612f635760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b600954600160401b900461ffff1615612fb35760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610d35565b805161147f90600d9060208401906142ce565b60405163c455279160e01b81526001600160a01b0383811660048301526000917f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c191848116919083169063c45527919060240160206040518083038186803b15801561303157600080fd5b505afa158015613045573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130699190614be3565b6001600160a01b03161415613082576001915050610c35565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b6130bc613571565b6001600160a01b03166130d76008546001600160a01b031690565b6001600160a01b03161461311b5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6001600160a01b0381166131975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d35565b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b6131fb613571565b6001600160a01b03166132166008546001600160a01b031690565b6001600160a01b03161461325a5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b600081116132aa5760405162461bcd60e51b815260206004820152600c60248201527f616d6f756e7420656d70747900000000000000000000000000000000000000006044820152606401610d35565b478111156132fa5760405162461bcd60e51b815260206004820152601660248201527f616d6f756e7420657863656564732062616c616e6365000000000000000000006044820152606401610d35565b6001600160a01b0382166133505760405162461bcd60e51b815260206004820152600c60248201527f61646472657373206e756c6c00000000000000000000000000000000000000006044820152606401610d35565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610e7d573d6000803e3d6000fd5b61338e613571565b6001600160a01b03166133a96008546001600160a01b031690565b6001600160a01b0316146133ed5760405162461bcd60e51b81526020600482018190526024820152600080516020614cd18339815191526044820152606401610d35565b6001600160a01b0381166000908152600b602052604090205460ff16156134565760405162461bcd60e51b815260206004820152601a60248201527f6164647265737320616c726561647920726567697374657265640000000000006044820152606401610d35565b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b6000333014156134d157600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506134d49050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b148061350857506001600160e01b03198216635b5e139f60e01b145b80610c3557506301ffc9a760e01b6001600160e01b0319831614610c35565b60025460009082108015610c35575060006001600160a01b03166002838154811061355457613554614b1b565b6000918252602090912001546001600160a01b0316141592915050565b600061213961347a565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906135b082611abd565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166136675760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610d35565b600161367a61367587613cb8565b613d35565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa1580156136c8573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006136fd8284614ae8565b9392505050565b6000610c358260405180602001604052806000815250613d65565b600061372a82613527565b61378b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d35565b600061379683611abd565b9050806001600160a01b0316846001600160a01b031614806137d15750836001600160a01b03166137c684610ccd565b6001600160a01b0316145b806130ac57506130ac8185612fc6565b826001600160a01b03166137f482611abd565b6001600160a01b0316146138705760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610d35565b6001600160a01b0382166138d25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d35565b6138dd60008261357b565b81600282815481106138f1576138f1614b1b565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600061395682611abd565b905061396360008361357b565b6002828154811061397657613976614b1b565b6000918252602082200180546001600160a01b03191690556040518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b816001600160a01b0316836001600160a01b03161415613a2a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d35565b6001600160a01b03838116600081815260046020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613aa28484846137e1565b613aae84848484613de6565b61276e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d35565b606081613b395750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613b635780613b4d81614b00565b9150613b5c9050600a83614c16565b9150613b3d565b60008167ffffffffffffffff811115613b7e57613b7e614510565b6040519080825280601f01601f191660200182016040528015613ba8576020820181803683370190505b5090505b84156130ac57613bbd600183614b31565b9150613bca600a86614c2a565b613bd5906030614ae8565b60f81b818381518110613bea57613bea614b1b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613c24600a86614c16565b9450613bac565b600073e4db0e0ba9c3b378642cf2a45e73a88f9fb6ae45613c4c8484613f42565b6001600160a01b0316149392505050565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052605481018290526000908590613cae9060740160405160208183030381529060405280519060200120614011565b1495945050505050565b6000604051806080016040528060438152602001614c8e6043913980516020918201208351848301516040808701518051908601209051613d18950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000613d4060065490565b60405161190160f01b6020820152602281019190915260428101839052606201613d18565b6000613d708361404c565b9050613d7f6000848385613de6565b610c355760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d35565b60006001600160a01b0384163b15613f3a57836001600160a01b031663150b7a02613e0f613571565b8786866040518563ffffffff1660e01b8152600401613e319493929190614c3e565b602060405180830381600087803b158015613e4b57600080fd5b505af1925050508015613e7b575060408051601f3d908101601f19168201909252613e7891810190614c70565b60015b613f20573d808015613ea9576040519150601f19603f3d011682016040523d82523d6000602084013e613eae565b606091505b508051613f185760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d35565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506130ac565b5060016130ac565b600080600080845160411415613f6c5750505060208201516040830151606084015160001a613ffb565b845160401415613fb35750505060408201516020830151907f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81169060ff1c601b01613ffb565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d35565b61400786828585614125565b9695505050505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01613d18565b60006001600160a01b0382166140a45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d35565b506002546002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156141a25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d35565b8360ff16601b14806141b757508360ff16601c145b61420e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d35565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015614262573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166142c55760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d35565b95945050505050565b8280546142da90614a1e565b90600052602060002090601f0160209004810192826142fc5760008555614342565b82601f1061431557805160ff1916838001178555614342565b82800160010185558215614342579182015b82811115614342578251825591602001919060010190614327565b5061434e929150614403565b5090565b82805461435e90614a1e565b90600052602060002090601f0160209004810192826143805760008555614342565b82601f106143915780548555614342565b8280016001018555821561434257600052602060002091601f016020900482015b828111156143425782548255916001019190600101906143b2565b5080546143d990614a1e565b6000825580601f106143e9575050565b601f0160209004906000526020600020908101906117cb91905b5b8082111561434e5760008155600101614404565b6001600160e01b0319811681146117cb57600080fd5b60006020828403121561444057600080fd5b81356136fd81614418565b60005b8381101561446657818101518382015260200161444e565b8381111561276e5750506000910152565b6000815180845261448f81602086016020860161444b565b601f01601f19169290920160200192915050565b6020815260006136fd6020830184614477565b6000602082840312156144c857600080fd5b5035919050565b6001600160a01b03811681146117cb57600080fd5b600080604083850312156144f757600080fd5b8235614502816144cf565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261453757600080fd5b813567ffffffffffffffff8082111561455257614552614510565b604051601f8301601f19908116603f0116810190828211818310171561457a5761457a614510565b8160405283815286602085880101111561459357600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a086880312156145cb57600080fd5b85356145d6816144cf565b9450602086013567ffffffffffffffff8111156145f257600080fd5b6145fe88828901614526565b9450506040860135925060608601359150608086013560ff8116811461462357600080fd5b809150509295509295909350565b60008060006060848603121561464657600080fd5b8335614651816144cf565b92506020840135614661816144cf565b929592945050506040919091013590565b60006020828403121561468457600080fd5b81356136fd816144cf565b6000602082840312156146a157600080fd5b813567ffffffffffffffff8111156146b857600080fd5b6130ac84828501614526565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561473b57888303603f190185528151805187855261470f88860182614477565b91890151858303868b01529190506147278183614477565b9689019694505050908601906001016146eb565b509098975050505050505050565b6000806040838503121561475c57600080fd5b823567ffffffffffffffff8082111561477457600080fd5b61478086838701614526565b9350602085013591508082111561479657600080fd5b506147a385828601614526565b9150509250929050565b8035600781900b81146147bf57600080fd5b919050565b600080600080608085870312156147da57600080fd5b843593506147ea602086016147ad565b92506147f8604086016147ad565b9150614806606086016147ad565b905092959194509250565b6000806040838503121561482457600080fd5b823561482f816144cf565b91506020830135801515811461484457600080fd5b809150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156148905783516001600160a01b03168352928401929184019160010161486b565b50909695505050505050565b6040815260006148af6040830185614477565b82810360208401526142c58185614477565b600080600080608085870312156148d757600080fd5b84356148e2816144cf565b935060208501356148f2816144cf565b925060408501359150606085013567ffffffffffffffff81111561491557600080fd5b61492187828801614526565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b8181101561489057835183529284019291840191600101614949565b60008060008060006080868803121561497d57600080fd5b85359450602086013567ffffffffffffffff8082111561499c57600080fd5b818801915088601f8301126149b057600080fd5b8135818111156149bf57600080fd5b8960208285010111156149d157600080fd5b9699602092909201985095966040810135965060600135945092505050565b60008060408385031215614a0357600080fd5b8235614a0e816144cf565b91506020830135614844816144cf565b600181811c90821680614a3257607f821691505b6020821081141561167d57634e487b7160e01b600052602260045260246000fd5b60006001600160a01b038086168352808516602084015250606060408301526142c56060830184614477565b60008351614a9181846020880161444b565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60008251614ac881846020870161444b565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b60008219821115614afb57614afb614ad2565b500190565b6000600019821415614b1457614b14614ad2565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600082821015614b4357614b43614ad2565b500390565b6000816000190483118215151615614b6257614b62614ad2565b500290565b60008351614b7981846020880161444b565b602f60f81b9083019081528351614b9781600184016020880161444b565b7f2f6d65746100000000000000000000000000000000000000000000000000000060019290910191820152600601949350505050565b634e487b7160e01b600052603160045260246000fd5b600060208284031215614bf557600080fd5b81516136fd816144cf565b634e487b7160e01b600052601260045260246000fd5b600082614c2557614c25614c00565b500490565b600082614c3957614c39614c00565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526140076080830184614477565b600060208284031215614c8257600080fd5b81516136fd8161441856fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657243616c6d696e672073686170657320616e6420636f6c6f727320696e737069726520746f2072656c617820616e64206c657420746865206d696e6420776f6e6465722ea2646970667358221220c008f69dcfa14a8a635c4d122b136dd438706d54bbd5e8c5f024264c585de74864736f6c63430008090033

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

00000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000f1f48337d13d73ac58b6077b906c9eff1c3b291c3e33b9284240aaef66d730c61000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001174687265652d723132382e6d696e2e6a73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d5957614a3672467a51357552726144514d4d446f4b39575365485936585741486e424c587766516b31696253000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68747470733a2f2f67656e65746963636861696e2e696f2f6170692f70726f6a6563742f31312f746f6b656e0000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : lib (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [1] : baseUri_ (string): https://geneticchain.io/api/project/11/token
Arg [2] : tokenMax_ (uint256[3]): 800,15,15
Arg [3] : seed (uint256): 14149266655891795277957900006246889514999484571235329560566259756090380192865
Arg [4] : proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000320
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [5] : 1f48337d13d73ac58b6077b906c9eff1c3b291c3e33b9284240aaef66d730c61
Arg [6] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [10] : 74687265652d723132382e6d696e2e6a73000000000000000000000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [12] : 516d5957614a3672467a51357552726144514d4d446f4b395753654859365857
Arg [13] : 41486e424c587766516b31696253000000000000000000000000000000000000
Arg [14] : 000000000000000000000000000000000000000000000000000000000000002c
Arg [15] : 68747470733a2f2f67656e65746963636861696e2e696f2f6170692f70726f6a
Arg [16] : 6563742f31312f746f6b656e0000000000000000000000000000000000000000


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.