ETH Price: $3,332.17 (-2.64%)
 

Overview

Max Total Supply

25 GENOS

Holders

11

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 GENOS
0x4140d60509c293fe34ee122745201083f2746839
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:
Genos

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
byzantium EvmVersion
File 1 of 16 : Genos.sol
// SPDX-License-Identifier: AGPL-3.0

pragma solidity ^0.8.0;

import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol";
import "openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "openzeppelin-solidity/contracts/access/Ownable.sol";
import "openzeppelin-solidity/contracts/security/ReentrancyGuard.sol";
import "openzeppelin-solidity/contracts/utils/Address.sol";
import "openzeppelin-solidity/contracts/utils/math/SafeMath.sol";
import "./opensea/ProxyRegistry.sol";

contract Genos is ERC721Enumerable, Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using Address for address;
    using Address for address payable;

    uint256 public PRICE;
    uint256 public MAX_TOTAL_MINT;

    // Fair distribution, thundering-herd mitigation and gas-wars prevention
    uint256 public MAX_TOTAL_MINT_PER_ADDRESS;
    uint256 public MAX_ALLOWED_GAS_FEE;

    bool public isPreSaleActive;
    uint256 public _publicSaleTime = 0;
    bool public isPurchaseEnabled;
    string private _contractURI;
    string private _placeholderURI;
    string private _baseTokenURI;
    address private _openSeaProxyRegistryAddress;

    uint256 private _currentTokenId = 0;
    address[] _payees;
    uint256[] _shares;

    mapping(address => bool) private _preSaleAllowList;

    constructor(
        string memory name,
        string memory symbol,
        string memory baseTokenURI,
        uint256 price,
        uint256 maxTotalMint,
        address openSeaProxyRegistryAddress,
        uint256 publicSaleTime,
        bool presaleActive,
        uint256 maxTotalMintPerAddress
    ) ERC721(name, symbol) {
        _baseTokenURI = baseTokenURI;
        PRICE = price;
        MAX_TOTAL_MINT = maxTotalMint;
        MAX_ALLOWED_GAS_FEE = 0;

        _openSeaProxyRegistryAddress = openSeaProxyRegistryAddress;

        _publicSaleTime = publicSaleTime;
        isPurchaseEnabled = true;
        isPreSaleActive = presaleActive;
        MAX_TOTAL_MINT_PER_ADDRESS = maxTotalMintPerAddress;
    }

    function setSaleInformation(
      uint256 publicSaleTime, bool purchaseEnabled, bool presaleActive,
      uint256 maxTotalMintPerAddress
    ) external onlyOwner {
      _publicSaleTime = publicSaleTime;
      isPurchaseEnabled = purchaseEnabled;
      isPreSaleActive = presaleActive;
      MAX_TOTAL_MINT_PER_ADDRESS = maxTotalMintPerAddress;
    }

    function setPayoutInformation(
      address[] calldata payees, uint256[] calldata shares
    ) external onlyOwner {
      require(payees.length == shares.length, "Withdraw: payees and shares length mismatch");

      _payees = payees;
      _shares = shares;
    }

    function setPublicSaleTime(uint256 publicSaleTime) external onlyOwner {
      _publicSaleTime = publicSaleTime;
    }

    function togglePreSale(bool isActive) external onlyOwner {
        isPreSaleActive = isActive;
    }

    function togglePurchaseEnabled(bool isActive) external onlyOwner {
        isPurchaseEnabled = isActive;
    }

    function isPublicSaleActive() public view returns (bool) {
      return (_publicSaleTime != 0 && _publicSaleTime < block.timestamp);
    }

    function setBaseURI(string memory baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }

    function setPlaceholderURI(string memory placeholderURI) external onlyOwner {
        _placeholderURI = placeholderURI;
    }

    function setContractURI(string memory uri) external onlyOwner {
        _contractURI = uri;
    }

    function setMaxAllowedGasFee(uint256 maxFeeGwei) external onlyOwner {
        MAX_ALLOWED_GAS_FEE = maxFeeGwei;
    }

    function setOpenSeaProxyRegistryAddress(address addr) external onlyOwner {
      _openSeaProxyRegistryAddress = addr;
    }

    function withdraw() external onlyOwner {
      require(_payees.length > 0, "Withdraw: no payees");
      uint256 currentBalance = address(this).balance;
      require(currentBalance > 0, "Withdraw: balance is zero");

      uint256 totalShares = 0;
      for (uint256 i = 0; i < _shares.length; i++) {
        totalShares += _shares[i];
      }

      for (uint256 i = 0; i < _payees.length; i++) {
        payable(_payees[i]).transfer(currentBalance * _shares[i] / totalShares);
      }
    }

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

    function tokenURI(uint256 _tokenId) override public view returns (string memory) {
      if (bytes(_baseTokenURI).length > 0) {
        return string(
          abi.encodePacked(
            _baseTokenURI,
            Strings.toHexString(uint256(uint160(address(this))), 20),
            '/',
            Strings.toString(_tokenId)
          )
        );
      }

      return _placeholderURI;
    }

    /**
     * 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(_openSeaProxyRegistryAddress);
      if (address(proxyRegistry.proxies(owner)) == operator) {
        return true;
      }

      return super.isApprovedForAll(owner, operator);
    }

    function addToPreSaleAllowList(address[] calldata addresses) external onlyOwner {
      for (uint256 i = 0; i < addresses.length; i++) {
        require(addresses[i] != address(0), "Can't add the null address");

        _preSaleAllowList[addresses[i]] = true;
      }
    }

    function onPreSaleAllowList(address addr) external view returns (bool) {
      return _preSaleAllowList[addr];
    }

    function mint(address to, uint256 count) external nonReentrant onlyOwner {
      // Make sure minting is allowed
      requireMintingConditions(to, count);

      for (uint256 i = 0; i < count; i++) {
        uint256 newTokenId = _getNextTokenId();
        _safeMint(to, newTokenId);
        _incrementTokenId();
      }
    }

    /**
     * Accepts required payment and mints a specified number of tokens to an address.
     * This method also checks if direct purchase is enabled.
     */
    function purchase(uint256 count) public payable nonReentrant {
      require(!msg.sender.isContract(), 'BASE_COLLECTION/CONTRACT_CANNOT_CALL');
      requireMintingConditions(msg.sender, count);

      require(isPurchaseEnabled, 'BASE_COLLECTION/PURCHASE_DISABLED');

      require(
        isPublicSaleActive() || (isPreSaleActive && _preSaleAllowList[msg.sender]),
        "BASE_COLLECTION/CANNOT_MINT"
      );

      // Sent value matches required ETH amount
      require(PRICE * count <= msg.value, 'BASE_COLLECTION/INSUFFICIENT_ETH_AMOUNT');

      for (uint256 i = 0; i < count; i++) {
        uint256 newTokenId = _getNextTokenId();
        _safeMint(msg.sender, newTokenId);
        _incrementTokenId();
      }
    }

    function transferFromBulk(
        address from,
        address to,
        uint256[] memory tokenIds
    ) public virtual {
        for (uint256 i = 0; i < tokenIds.length; i++) {
          //solhint-disable-next-line max-line-length
          require(_isApprovedOrOwner(_msgSender(), tokenIds[i]), "ERC721: transfer caller is not owner nor approved");
          _transfer(from, to, tokenIds[i]);
        }
    }

    function requireMintingConditions(address to, uint256 count) internal view {
      require(totalSupply() + count <= MAX_TOTAL_MINT, "BASE_COLLECTION/EXCEEDS_MAX_SUPPLY");

      uint totalMintFromAddress = balanceOf(to) + count;
      require (totalMintFromAddress <= MAX_TOTAL_MINT_PER_ADDRESS, "BASE_COLLECTION/EXCEEDS_INDIVIDUAL_SUPPLY");

      if (MAX_ALLOWED_GAS_FEE > 0)
          require(tx.gasprice < MAX_ALLOWED_GAS_FEE * 1000000000, "BASE_COLLECTION/GAS_FEE_NOT_ALLOWED");
    }

    function _getNextTokenId() private view returns (uint256) {
        return _currentTokenId.add(1);
    }

    function _incrementTokenId() private {
        _currentTokenId++;
    }
}

File 2 of 16 : ProxyRegistry.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract OwnableDelegateProxy {}

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

File 3 of 16 : 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. 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 4 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 5 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 6 of 16 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 16 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 8 of 16 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {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.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) 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) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 12 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 13 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        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 = ERC721.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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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 _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 = ERC721.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, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

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

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

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

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @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 15 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxTotalMint","type":"uint256"},{"internalType":"address","name":"openSeaProxyRegistryAddress","type":"address"},{"internalType":"uint256","name":"publicSaleTime","type":"uint256"},{"internalType":"bool","name":"presaleActive","type":"bool"},{"internalType":"uint256","name":"maxTotalMintPerAddress","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_ALLOWED_GAS_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_MINT_PER_ADDRESS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_publicSaleTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"addToPreSaleAllowList","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPreSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPurchaseEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"onPreSaleAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"count","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxFeeGwei","type":"uint256"}],"name":"setMaxAllowedGasFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setOpenSeaProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"}],"name":"setPayoutInformation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"placeholderURI","type":"string"}],"name":"setPlaceholderURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"publicSaleTime","type":"uint256"}],"name":"setPublicSaleTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"publicSaleTime","type":"uint256"},{"internalType":"bool","name":"purchaseEnabled","type":"bool"},{"internalType":"bool","name":"presaleActive","type":"bool"},{"internalType":"uint256","name":"maxTotalMintPerAddress","type":"uint256"}],"name":"setSaleInformation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"togglePreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"togglePurchaseEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","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":"","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"transferFromBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600060115560006017553480156200001b57600080fd5b506040516200391b3803806200391b8339810160408190526200003e9162000329565b885189908990620000579060009060208501906200016f565b5080516200006d9060019060208401906200016f565b5050506200009c6200008d62000119640100000000026401000000009004565b6401000000006200011d810204565b6001600b558651620000b69060159060208a01906200016f565b50600c95909555600d939093556000600f5560168054600160a060020a031916600160a060020a0393909316929092179091556011556012805460ff1990811660011790915560108054909116911515919091179055600e55506200045d915050565b3390565b600a8054600160a060020a03838116600160a060020a0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200017d9062000407565b90600052602060002090601f016020900481019282620001a15760008555620001ec565b82601f10620001bc57805160ff1916838001178555620001ec565b82800160010185558215620001ec579182015b82811115620001ec578251825591602001919060010190620001cf565b50620001fa929150620001fe565b5090565b5b80821115620001fa5760008155600101620001ff565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f8301126200025657600080fd5b81516001604060020a038082111562000273576200027362000215565b604051601f8301601f19908116603f011681019082821181831017156200029e576200029e62000215565b81604052838152602092508683858801011115620002bb57600080fd5b600091505b83821015620002df5785820183015181830184015290820190620002c0565b83821115620002f15760008385830101525b9695505050505050565b8051600160a060020a03811681146200031357600080fd5b919050565b805180151581146200031357600080fd5b60008060008060008060008060006101208a8c0312156200034957600080fd5b89516001604060020a03808211156200036157600080fd5b6200036f8d838e0162000244565b9a5060208c01519150808211156200038657600080fd5b620003948d838e0162000244565b995060408c0151915080821115620003ab57600080fd5b50620003ba8c828d0162000244565b97505060608a0151955060808a01519450620003d960a08b01620002fb565b935060c08a01519250620003f060e08b0162000318565b91506101008a015190509295985092959850929598565b6002810460018216806200041c57607f821691505b6020821081141562000457577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6134ae806200046d6000396000f3fe608060405260043610610284576000357c0100000000000000000000000000000000000000000000000000000000900480636352211e11610161578063b85ef036116100d3578063e8a3d48511610097578063e8a3d48514610726578063e985e9c51461073b578063efef39a11461075b578063f02b18601461076e578063f1ace7191461078e578063f2fde38b146107ae57600080fd5b8063b85ef0361461069a578063b88d4fde146106b0578063c87b56dd146106d0578063cf9e8e69146106f0578063d35ea4561461070657600080fd5b80638d859f3e116101255780638d859f3e146105f75780638da5cb5b1461060d578063938e3d7b1461062b57806395d89b411461064b5780639d044ed314610660578063a22cb4651461067a57600080fd5b80636352211e1461056c57806366cfb1f31461058c5780636a8db7eb146105a257806370a08231146105c2578063715018a6146105e257600080fd5b806327ae2b79116101fa5780633ccfd60b116101be5780633ccfd60b146104bd57806340c10f19146104d257806342842e0e146104f25780634f6ccce71461051257806355f804b3146105325780635f14b71a1461055257600080fd5b806327ae2b79146104045780632f745c591461042457806331b56fe6146104445780633574a2dd146104645780633b5f21881461048457600080fd5b8063095ea7b31161024c578063095ea7b31461035a57806311b7e5e71461037a57806318160ddd1461039a5780631e84c413146103b957806323b872dd146103ce5780632439ee56146103ee57600080fd5b806301ffc9a714610289578063059fb6f7146102be57806306fdde03146102e0578063081812fc1461030257806308abf0261461033a575b600080fd5b34801561029557600080fd5b506102a96102a4366004612b85565b6107ce565b60405190151581526020015b60405180910390f35b3480156102ca57600080fd5b506102de6102d9366004612c01565b610812565b005b3480156102ec57600080fd5b506102f56108a5565b6040516102b59190612d25565b34801561030e57600080fd5b5061032261031d366004612d38565b610937565b604051600160a060020a0390911681526020016102b5565b34801561034657600080fd5b506102de610355366004612d51565b6109e0565b34801561036657600080fd5b506102de610375366004612d6e565b610a3c565b34801561038657600080fd5b506102de610395366004612d38565b610b74565b3480156103a657600080fd5b506008545b6040519081526020016102b5565b3480156103c557600080fd5b506102a9610ba6565b3480156103da57600080fd5b506102de6103e9366004612d9a565b610bc1565b3480156103fa57600080fd5b506103ab600f5481565b34801561041057600080fd5b506102de61041f366004612d38565b610bf5565b34801561043057600080fd5b506103ab61043f366004612d6e565b610c27565b34801561045057600080fd5b506102de61045f366004612e26565b610cd2565b34801561047057600080fd5b506102de61047f366004612eea565b610d97565b34801561049057600080fd5b506102a961049f366004612d51565b600160a060020a03166000908152601a602052604090205460ff1690565b3480156104c957600080fd5b506102de610ddb565b3480156104de57600080fd5b506102de6104ed366004612d6e565b610fa5565b3480156104fe57600080fd5b506102de61050d366004612d9a565b61107d565b34801561051e57600080fd5b506103ab61052d366004612d38565b611098565b34801561053e57600080fd5b506102de61054d366004612eea565b61113f565b34801561055e57600080fd5b506012546102a99060ff1681565b34801561057857600080fd5b50610322610587366004612d38565b61117f565b34801561059857600080fd5b506103ab600e5481565b3480156105ae57600080fd5b506102de6105bd366004612f33565b61120d565b3480156105ce57600080fd5b506103ab6105dd366004612d51565b61132f565b3480156105ee57600080fd5b506102de6113cc565b34801561060357600080fd5b506103ab600c5481565b34801561061957600080fd5b50600a54600160a060020a0316610322565b34801561063757600080fd5b506102de610646366004612eea565b611405565b34801561065757600080fd5b506102f5611445565b34801561066c57600080fd5b506010546102a99060ff1681565b34801561068657600080fd5b506102de610695366004612f8a565b611454565b3480156106a657600080fd5b506103ab60115481565b3480156106bc57600080fd5b506102de6106cb366004612fbf565b61151c565b3480156106dc57600080fd5b506102f56106eb366004612d38565b611551565b3480156106fc57600080fd5b506103ab600d5481565b34801561071257600080fd5b506102de61072136600461303f565b61163a565b34801561073257600080fd5b506102f561167a565b34801561074757600080fd5b506102a961075636600461305a565b611689565b6102de610769366004612d38565b611772565b34801561077a57600080fd5b506102de610789366004613093565b611a12565b34801561079a57600080fd5b506102de6107a936600461303f565b611a68565b3480156107ba57600080fd5b506102de6107c9366004612d51565b611aa8565b6000600160e060020a031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061080c575061080c82611b60565b92915050565b60005b815181101561089f5761084133838381518110610834576108346130d7565b6020026020010151611bfb565b6108695760405160e560020a62461bcd028152600401610860906130f0565b60405180910390fd5b61088d8484848481518110610880576108806130d7565b6020026020010151611cde565b8061089781613166565b915050610815565b50505050565b6060600080546108b490613181565b80601f01602080910402602001604051908101604052809291908181526020018280546108e090613181565b801561092d5780601f106109025761010080835404028352916020019161092d565b820191906000526020600020905b81548152906001019060200180831161091057829003601f168201915b5050505050905090565b600081815260026020526040812054600160a060020a03166109c45760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610860565b50600090815260046020526040902054600160a060020a031690565b600a54600160a060020a03163314610a0d5760405160e560020a62461bcd028152600401610860906131bf565b6016805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000610a478261117f565b905080600160a060020a031683600160a060020a03161415610ad45760405160e560020a62461bcd02815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610860565b33600160a060020a0382161480610af05750610af08133611689565b610b655760405160e560020a62461bcd02815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610860565b610b6f8383611ec9565b505050565b600a54600160a060020a03163314610ba15760405160e560020a62461bcd028152600401610860906131bf565b601155565b6000601154600014158015610bbc575042601154105b905090565b610bcb3382611bfb565b610bea5760405160e560020a62461bcd028152600401610860906130f0565b610b6f838383611cde565b600a54600160a060020a03163314610c225760405160e560020a62461bcd028152600401610860906131bf565b600f55565b6000610c328361132f565b8210610ca95760405160e560020a62461bcd02815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610860565b50600160a060020a03919091166000908152600660209081526040808320938352929052205490565b600a54600160a060020a03163314610cff5760405160e560020a62461bcd028152600401610860906131bf565b828114610d775760405160e560020a62461bcd02815260206004820152602b60248201527f57697468647261773a2070617965657320616e6420736861726573206c656e6760448201527f7468206d69736d617463680000000000000000000000000000000000000000006064820152608401610860565b610d8360188585612a3b565b50610d9060198383612aab565b5050505050565b600a54600160a060020a03163314610dc45760405160e560020a62461bcd028152600401610860906131bf565b8051610dd7906014906020840190612ae6565b5050565b600a54600160a060020a03163314610e085760405160e560020a62461bcd028152600401610860906131bf565b601854610e5a5760405160e560020a62461bcd02815260206004820152601360248201527f57697468647261773a206e6f20706179656573000000000000000000000000006044820152606401610860565b303180610eac5760405160e560020a62461bcd02815260206004820152601960248201527f57697468647261773a2062616c616e6365206973207a65726f000000000000006044820152606401610860565b6000805b601954811015610ef75760198181548110610ecd57610ecd6130d7565b906000526020600020015482610ee391906131f4565b915080610eef81613166565b915050610eb0565b5060005b601854811015610b6f5760188181548110610f1857610f186130d7565b60009182526020909120015460198054600160a060020a03909216916108fc91859185908110610f4a57610f4a6130d7565b906000526020600020015486610f60919061320c565b610f6a9190613244565b6040518115909202916000818181858888f19350505050158015610f92573d6000803e3d6000fd5b5080610f9d81613166565b915050610efb565b6002600b541415610ffb5760405160e560020a62461bcd02815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610860565b6002600b55600a54600160a060020a0316331461102d5760405160e560020a62461bcd028152600401610860906131bf565b6110378282611f44565b60005b8181101561107357600061104c6120f5565b90506110588482612106565b611060612120565b508061106b81613166565b91505061103a565b50506001600b5550565b610b6f8383836040518060200160405280600081525061151c565b60006110a360085490565b821061111a5760405160e560020a62461bcd02815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610860565b6008828154811061112d5761112d6130d7565b90600052602060002001549050919050565b600a54600160a060020a0316331461116c5760405160e560020a62461bcd028152600401610860906131bf565b8051610dd7906015906020840190612ae6565b600081815260026020526040812054600160a060020a03168061080c5760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610860565b600a54600160a060020a0316331461123a5760405160e560020a62461bcd028152600401610860906131bf565b60005b81811015610b6f576000838383818110611259576112596130d7565b905060200201602081019061126e9190612d51565b600160a060020a031614156112c85760405160e560020a62461bcd02815260206004820152601a60248201527f43616e27742061646420746865206e756c6c20616464726573730000000000006044820152606401610860565b6001601a60008585858181106112e0576112e06130d7565b90506020020160208101906112f59190612d51565b600160a060020a031681526020810191909152604001600020805460ff19169115159190911790558061132781613166565b91505061123d565b6000600160a060020a0382166113b05760405160e560020a62461bcd02815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610860565b50600160a060020a031660009081526003602052604090205490565b600a54600160a060020a031633146113f95760405160e560020a62461bcd028152600401610860906131bf565b6114036000612137565b565b600a54600160a060020a031633146114325760405160e560020a62461bcd028152600401610860906131bf565b8051610dd7906013906020840190612ae6565b6060600180546108b490613181565b600160a060020a0382163314156114b05760405160e560020a62461bcd02815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610860565b336000818152600560209081526040808320600160a060020a03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115263383611bfb565b6115455760405160e560020a62461bcd028152600401610860906130f0565b61089f84848484612196565b606060006015805461156290613181565b905011156115a85760156115773060146121cc565b611580846123d5565b60405160200161159293929190613274565b6040516020818303038152906040529050919050565b601480546115b590613181565b80601f01602080910402602001604051908101604052809291908181526020018280546115e190613181565b801561162e5780601f106116035761010080835404028352916020019161162e565b820191906000526020600020905b81548152906001019060200180831161161157829003601f168201915b50505050509050919050565b600a54600160a060020a031633146116675760405160e560020a62461bcd028152600401610860906131bf565b6010805460ff1916911515919091179055565b6060601380546108b490613181565b6016546040517fc4552791000000000000000000000000000000000000000000000000000000008152600160a060020a03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b1580156116ef57600080fd5b505afa158015611703573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117279190613354565b600160a060020a0316141561174057600191505061080c565b600160a060020a0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6002600b5414156117c85760405160e560020a62461bcd02815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610860565b6002600b55333b156118445760405160e560020a62461bcd028152602060048201526024808201527f424153455f434f4c4c454354494f4e2f434f4e54524143545f43414e4e4f545f60448201527f43414c4c000000000000000000000000000000000000000000000000000000006064820152608401610860565b61184e3382611f44565b60125460ff166118c95760405160e560020a62461bcd02815260206004820152602160248201527f424153455f434f4c4c454354494f4e2f50555243484153455f44495341424c4560448201527f44000000000000000000000000000000000000000000000000000000000000006064820152608401610860565b6118d1610ba6565b806118f8575060105460ff1680156118f85750336000908152601a602052604090205460ff165b6119475760405160e560020a62461bcd02815260206004820152601b60248201527f424153455f434f4c4c454354494f4e2f43414e4e4f545f4d494e5400000000006044820152606401610860565b3481600c54611956919061320c565b11156119cd5760405160e560020a62461bcd02815260206004820152602760248201527f424153455f434f4c4c454354494f4e2f494e53554646494349454e545f45544860448201527f5f414d4f554e54000000000000000000000000000000000000000000000000006064820152608401610860565b60005b81811015611a095760006119e26120f5565b90506119ee3382612106565b6119f6612120565b5080611a0181613166565b9150506119d0565b50506001600b55565b600a54600160a060020a03163314611a3f5760405160e560020a62461bcd028152600401610860906131bf565b6011939093556012805492151560ff199384161790556010805491151591909216179055600e55565b600a54600160a060020a03163314611a955760405160e560020a62461bcd028152600401610860906131bf565b6012805460ff1916911515919091179055565b600a54600160a060020a03163314611ad55760405160e560020a62461bcd028152600401610860906131bf565b600160a060020a038116611b545760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610860565b611b5d81612137565b50565b6000600160e060020a031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611bc35750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061080c57507f01ffc9a700000000000000000000000000000000000000000000000000000000600160e060020a031983161461080c565b600081815260026020526040812054600160a060020a0316611c885760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610860565b6000611c938361117f565b905080600160a060020a031684600160a060020a03161480611cce575083600160a060020a0316611cc384610937565b600160a060020a0316145b8061176a575061176a8185611689565b82600160a060020a0316611cf18261117f565b600160a060020a031614611d705760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610860565b600160a060020a038216611dee5760405160e560020a62461bcd028152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610860565b611df983838361250e565b611e04600082611ec9565b600160a060020a0383166000908152600360205260408120805460019290611e2d908490613371565b9091555050600160a060020a0382166000908152600360205260408120805460019290611e5b9084906131f4565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384169081179091558190611f0b8261117f565b600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600d5481611f5160085490565b611f5b91906131f4565b1115611fd25760405160e560020a62461bcd02815260206004820152602260248201527f424153455f434f4c4c454354494f4e2f455843454544535f4d41585f5355505060448201527f4c590000000000000000000000000000000000000000000000000000000000006064820152608401610860565b600081611fde8461132f565b611fe891906131f4565b9050600e548111156120655760405160e560020a62461bcd02815260206004820152602960248201527f424153455f434f4c4c454354494f4e2f455843454544535f494e44495649445560448201527f414c5f535550504c5900000000000000000000000000000000000000000000006064820152608401610860565b600f5415610b6f57600f5461207e90633b9aca0061320c565b3a10610b6f5760405160e560020a62461bcd02815260206004820152602360248201527f424153455f434f4c4c454354494f4e2f4741535f4645455f4e4f545f414c4c4f60448201527f57454400000000000000000000000000000000000000000000000000000000006064820152608401610860565b601754600090610bbc9060016125c6565b610dd78282604051806020016040528060008152506125d2565b6017805490600061213083613166565b9190505550565b600a8054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6121a1848484611cde565b6121ad84848484612608565b61089f5760405160e560020a62461bcd02815260040161086090613388565b606060006121db83600261320c565b6121e69060026131f4565b67ffffffffffffffff8111156121fe576121fe612bb7565b6040519080825280601f01601f191660200182016040528015612228576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061225f5761225f6130d7565b6020010190600160f860020a031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106122aa576122aa6130d7565b6020010190600160f860020a031916908160001a90535060006122ce84600261320c565b6122d99060016131f4565b90505b600181111561237c577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061231a5761231a6130d7565b1a7f01000000000000000000000000000000000000000000000000000000000000000282828151811061234f5761234f6130d7565b6020010190600160f860020a031916908160001a905350601090940493612375816133e5565b90506122dc565b5083156123ce5760405160e560020a62461bcd02815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610860565b9392505050565b60608161241557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561243f578061242981613166565b91506124389050600a83613244565b9150612419565b60008167ffffffffffffffff81111561245a5761245a612bb7565b6040519080825280601f01601f191660200182016040528015612484576020820181803683370190505b5090505b841561176a57612499600183613371565b91506124a6600a866133fc565b6124b19060306131f4565b7f0100000000000000000000000000000000000000000000000000000000000000028183815181106124e5576124e56130d7565b6020010190600160f860020a031916908160001a905350612507600a86613244565b9450612488565b600160a060020a0383166125695761256481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61258c565b81600160a060020a031683600160a060020a03161461258c5761258c838261274a565b600160a060020a0382166125a357610b6f816127e7565b82600160a060020a031682600160a060020a031614610b6f57610b6f8282612896565b60006123ce82846131f4565b6125dc83836128da565b6125e96000848484612608565b610b6f5760405160e560020a62461bcd02815260040161086090613388565b6000600160a060020a0384163b1561273f576040517f150b7a02000000000000000000000000000000000000000000000000000000008152600160a060020a0385169063150b7a0290612665903390899088908890600401613410565b602060405180830381600087803b15801561267f57600080fd5b505af19250505080156126af575060408051601f3d908101601f191682019092526126ac91810190613442565b60015b61270c573d8080156126dd576040519150601f19603f3d011682016040523d82523d6000602084013e6126e2565b606091505b5080516127045760405160e560020a62461bcd02815260040161086090613388565b805181602001fd5b600160e060020a0319167f150b7a020000000000000000000000000000000000000000000000000000000014905061176a565b506001949350505050565b600060016127578461132f565b6127619190613371565b6000838152600760205260409020549091508082146127b457600160a060020a03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b506000918252600760209081526040808420849055600160a060020a039094168352600681528383209183525290812055565b6008546000906127f990600190613371565b60008381526009602052604081205460088054939450909284908110612821576128216130d7565b906000526020600020015490508060088381548110612842576128426130d7565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061287a5761287a61345f565b6001900381819060005260206000200160009055905550505050565b60006128a18361132f565b600160a060020a039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b600160a060020a0382166129335760405160e560020a62461bcd02815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610860565b600081815260026020526040902054600160a060020a03161561299b5760405160e560020a62461bcd02815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610860565b6129a76000838361250e565b600160a060020a03821660009081526003602052604081208054600192906129d09084906131f4565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054828255906000526020600020908101928215612a9b579160200282015b82811115612a9b57815473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03843516178255602090920191600190910190612a5b565b50612aa7929150612b5a565b5090565b828054828255906000526020600020908101928215612a9b579160200282015b82811115612a9b578235825591602001919060010190612acb565b828054612af290613181565b90600052602060002090601f016020900481019282612b145760008555612a9b565b82601f10612b2d57805160ff1916838001178555612a9b565b82800160010185558215612a9b579182015b82811115612a9b578251825591602001919060010190612b3f565b5b80821115612aa75760008155600101612b5b565b600160e060020a031981168114611b5d57600080fd5b600060208284031215612b9757600080fd5b81356123ce81612b6f565b600160a060020a0381168114611b5d57600080fd5b60e060020a634e487b7102600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612bf957612bf9612bb7565b604052919050565b600080600060608486031215612c1657600080fd5b8335612c2181612ba2565b9250602084810135612c3281612ba2565b9250604085013567ffffffffffffffff80821115612c4f57600080fd5b818701915087601f830112612c6357600080fd5b813581811115612c7557612c75612bb7565b8381029150612c85848301612bd0565b818152918301840191848101908a841115612c9f57600080fd5b938501935b83851015612cbd57843582529385019390850190612ca4565b8096505050505050509250925092565b60005b83811015612ce8578181015183820152602001612cd0565b8381111561089f5750506000910152565b60008151808452612d11816020860160208601612ccd565b601f01601f19169290920160200192915050565b6020815260006123ce6020830184612cf9565b600060208284031215612d4a57600080fd5b5035919050565b600060208284031215612d6357600080fd5b81356123ce81612ba2565b60008060408385031215612d8157600080fd5b8235612d8c81612ba2565b946020939093013593505050565b600080600060608486031215612daf57600080fd5b8335612dba81612ba2565b92506020840135612dca81612ba2565b929592945050506040919091013590565b60008083601f840112612ded57600080fd5b50813567ffffffffffffffff811115612e0557600080fd5b6020830191508360208083028501011115612e1f57600080fd5b9250929050565b60008060008060408587031215612e3c57600080fd5b843567ffffffffffffffff80821115612e5457600080fd5b612e6088838901612ddb565b90965094506020870135915080821115612e7957600080fd5b50612e8687828801612ddb565b95989497509550505050565b600067ffffffffffffffff831115612eac57612eac612bb7565b612ebf601f8401601f1916602001612bd0565b9050828152838383011115612ed357600080fd5b828260208301376000602084830101529392505050565b600060208284031215612efc57600080fd5b813567ffffffffffffffff811115612f1357600080fd5b8201601f81018413612f2457600080fd5b61176a84823560208401612e92565b60008060208385031215612f4657600080fd5b823567ffffffffffffffff811115612f5d57600080fd5b612f6985828601612ddb565b90969095509350505050565b80358015158114612f8557600080fd5b919050565b60008060408385031215612f9d57600080fd5b8235612fa881612ba2565b9150612fb660208401612f75565b90509250929050565b60008060008060808587031215612fd557600080fd5b8435612fe081612ba2565b93506020850135612ff081612ba2565b925060408501359150606085013567ffffffffffffffff81111561301357600080fd5b8501601f8101871361302457600080fd5b61303387823560208401612e92565b91505092959194509250565b60006020828403121561305157600080fd5b6123ce82612f75565b6000806040838503121561306d57600080fd5b823561307881612ba2565b9150602083013561308881612ba2565b809150509250929050565b600080600080608085870312156130a957600080fd5b843593506130b960208601612f75565b92506130c760408601612f75565b9396929550929360600135925050565b60e060020a634e487b7102600052603260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b60e060020a634e487b7102600052601160045260246000fd5b600060001982141561317a5761317a61314d565b5060010190565b60028104600182168061319557607f821691505b602082108114156131b95760e060020a634e487b7102600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156132075761320761314d565b500190565b60008160001904831182151516156132265761322661314d565b500290565b60e060020a634e487b7102600052601260045260246000fd5b6000826132535761325361322b565b500490565b6000815161326a818560208601612ccd565b9290920192915050565b835460009081906002810460018083168061329057607f831692505b60208084108214156132b35760e060020a634e487b710286526022600452602486fd5b8180156132c757600181146132d857613305565b60ff19861689528489019650613305565b60008c81526020902060005b868110156132fd5781548b8201529085019083016132e4565b505084890196505b50505050505061334a61334461331b8388613258565b7f2f00000000000000000000000000000000000000000000000000000000000000815260010190565b85613258565b9695505050505050565b60006020828403121561336657600080fd5b81516123ce81612ba2565b6000828210156133835761338361314d565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b6000816133f4576133f461314d565b506000190190565b60008261340b5761340b61322b565b500690565b6000600160a060020a0380871683528086166020840152508360408301526080606083015261334a6080830184612cf9565b60006020828403121561345457600080fd5b81516123ce81612b6f565b60e060020a634e487b7102600052603160045260246000fdfea26469706673582212206d30ff049bf09f755ec21b51c6fc1f96eb432c389d436bd2afd7401405a98b8d64736f6c634300080900330000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000061bc322d0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001447454e4f53204e465420436f6c6c656374696f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000547454e4f53000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f67656e6f732e68616e676e66742e78797a2f636f6e7472616374732f00000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405260043610610284576000357c0100000000000000000000000000000000000000000000000000000000900480636352211e11610161578063b85ef036116100d3578063e8a3d48511610097578063e8a3d48514610726578063e985e9c51461073b578063efef39a11461075b578063f02b18601461076e578063f1ace7191461078e578063f2fde38b146107ae57600080fd5b8063b85ef0361461069a578063b88d4fde146106b0578063c87b56dd146106d0578063cf9e8e69146106f0578063d35ea4561461070657600080fd5b80638d859f3e116101255780638d859f3e146105f75780638da5cb5b1461060d578063938e3d7b1461062b57806395d89b411461064b5780639d044ed314610660578063a22cb4651461067a57600080fd5b80636352211e1461056c57806366cfb1f31461058c5780636a8db7eb146105a257806370a08231146105c2578063715018a6146105e257600080fd5b806327ae2b79116101fa5780633ccfd60b116101be5780633ccfd60b146104bd57806340c10f19146104d257806342842e0e146104f25780634f6ccce71461051257806355f804b3146105325780635f14b71a1461055257600080fd5b806327ae2b79146104045780632f745c591461042457806331b56fe6146104445780633574a2dd146104645780633b5f21881461048457600080fd5b8063095ea7b31161024c578063095ea7b31461035a57806311b7e5e71461037a57806318160ddd1461039a5780631e84c413146103b957806323b872dd146103ce5780632439ee56146103ee57600080fd5b806301ffc9a714610289578063059fb6f7146102be57806306fdde03146102e0578063081812fc1461030257806308abf0261461033a575b600080fd5b34801561029557600080fd5b506102a96102a4366004612b85565b6107ce565b60405190151581526020015b60405180910390f35b3480156102ca57600080fd5b506102de6102d9366004612c01565b610812565b005b3480156102ec57600080fd5b506102f56108a5565b6040516102b59190612d25565b34801561030e57600080fd5b5061032261031d366004612d38565b610937565b604051600160a060020a0390911681526020016102b5565b34801561034657600080fd5b506102de610355366004612d51565b6109e0565b34801561036657600080fd5b506102de610375366004612d6e565b610a3c565b34801561038657600080fd5b506102de610395366004612d38565b610b74565b3480156103a657600080fd5b506008545b6040519081526020016102b5565b3480156103c557600080fd5b506102a9610ba6565b3480156103da57600080fd5b506102de6103e9366004612d9a565b610bc1565b3480156103fa57600080fd5b506103ab600f5481565b34801561041057600080fd5b506102de61041f366004612d38565b610bf5565b34801561043057600080fd5b506103ab61043f366004612d6e565b610c27565b34801561045057600080fd5b506102de61045f366004612e26565b610cd2565b34801561047057600080fd5b506102de61047f366004612eea565b610d97565b34801561049057600080fd5b506102a961049f366004612d51565b600160a060020a03166000908152601a602052604090205460ff1690565b3480156104c957600080fd5b506102de610ddb565b3480156104de57600080fd5b506102de6104ed366004612d6e565b610fa5565b3480156104fe57600080fd5b506102de61050d366004612d9a565b61107d565b34801561051e57600080fd5b506103ab61052d366004612d38565b611098565b34801561053e57600080fd5b506102de61054d366004612eea565b61113f565b34801561055e57600080fd5b506012546102a99060ff1681565b34801561057857600080fd5b50610322610587366004612d38565b61117f565b34801561059857600080fd5b506103ab600e5481565b3480156105ae57600080fd5b506102de6105bd366004612f33565b61120d565b3480156105ce57600080fd5b506103ab6105dd366004612d51565b61132f565b3480156105ee57600080fd5b506102de6113cc565b34801561060357600080fd5b506103ab600c5481565b34801561061957600080fd5b50600a54600160a060020a0316610322565b34801561063757600080fd5b506102de610646366004612eea565b611405565b34801561065757600080fd5b506102f5611445565b34801561066c57600080fd5b506010546102a99060ff1681565b34801561068657600080fd5b506102de610695366004612f8a565b611454565b3480156106a657600080fd5b506103ab60115481565b3480156106bc57600080fd5b506102de6106cb366004612fbf565b61151c565b3480156106dc57600080fd5b506102f56106eb366004612d38565b611551565b3480156106fc57600080fd5b506103ab600d5481565b34801561071257600080fd5b506102de61072136600461303f565b61163a565b34801561073257600080fd5b506102f561167a565b34801561074757600080fd5b506102a961075636600461305a565b611689565b6102de610769366004612d38565b611772565b34801561077a57600080fd5b506102de610789366004613093565b611a12565b34801561079a57600080fd5b506102de6107a936600461303f565b611a68565b3480156107ba57600080fd5b506102de6107c9366004612d51565b611aa8565b6000600160e060020a031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061080c575061080c82611b60565b92915050565b60005b815181101561089f5761084133838381518110610834576108346130d7565b6020026020010151611bfb565b6108695760405160e560020a62461bcd028152600401610860906130f0565b60405180910390fd5b61088d8484848481518110610880576108806130d7565b6020026020010151611cde565b8061089781613166565b915050610815565b50505050565b6060600080546108b490613181565b80601f01602080910402602001604051908101604052809291908181526020018280546108e090613181565b801561092d5780601f106109025761010080835404028352916020019161092d565b820191906000526020600020905b81548152906001019060200180831161091057829003601f168201915b5050505050905090565b600081815260026020526040812054600160a060020a03166109c45760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610860565b50600090815260046020526040902054600160a060020a031690565b600a54600160a060020a03163314610a0d5760405160e560020a62461bcd028152600401610860906131bf565b6016805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000610a478261117f565b905080600160a060020a031683600160a060020a03161415610ad45760405160e560020a62461bcd02815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610860565b33600160a060020a0382161480610af05750610af08133611689565b610b655760405160e560020a62461bcd02815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610860565b610b6f8383611ec9565b505050565b600a54600160a060020a03163314610ba15760405160e560020a62461bcd028152600401610860906131bf565b601155565b6000601154600014158015610bbc575042601154105b905090565b610bcb3382611bfb565b610bea5760405160e560020a62461bcd028152600401610860906130f0565b610b6f838383611cde565b600a54600160a060020a03163314610c225760405160e560020a62461bcd028152600401610860906131bf565b600f55565b6000610c328361132f565b8210610ca95760405160e560020a62461bcd02815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610860565b50600160a060020a03919091166000908152600660209081526040808320938352929052205490565b600a54600160a060020a03163314610cff5760405160e560020a62461bcd028152600401610860906131bf565b828114610d775760405160e560020a62461bcd02815260206004820152602b60248201527f57697468647261773a2070617965657320616e6420736861726573206c656e6760448201527f7468206d69736d617463680000000000000000000000000000000000000000006064820152608401610860565b610d8360188585612a3b565b50610d9060198383612aab565b5050505050565b600a54600160a060020a03163314610dc45760405160e560020a62461bcd028152600401610860906131bf565b8051610dd7906014906020840190612ae6565b5050565b600a54600160a060020a03163314610e085760405160e560020a62461bcd028152600401610860906131bf565b601854610e5a5760405160e560020a62461bcd02815260206004820152601360248201527f57697468647261773a206e6f20706179656573000000000000000000000000006044820152606401610860565b303180610eac5760405160e560020a62461bcd02815260206004820152601960248201527f57697468647261773a2062616c616e6365206973207a65726f000000000000006044820152606401610860565b6000805b601954811015610ef75760198181548110610ecd57610ecd6130d7565b906000526020600020015482610ee391906131f4565b915080610eef81613166565b915050610eb0565b5060005b601854811015610b6f5760188181548110610f1857610f186130d7565b60009182526020909120015460198054600160a060020a03909216916108fc91859185908110610f4a57610f4a6130d7565b906000526020600020015486610f60919061320c565b610f6a9190613244565b6040518115909202916000818181858888f19350505050158015610f92573d6000803e3d6000fd5b5080610f9d81613166565b915050610efb565b6002600b541415610ffb5760405160e560020a62461bcd02815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610860565b6002600b55600a54600160a060020a0316331461102d5760405160e560020a62461bcd028152600401610860906131bf565b6110378282611f44565b60005b8181101561107357600061104c6120f5565b90506110588482612106565b611060612120565b508061106b81613166565b91505061103a565b50506001600b5550565b610b6f8383836040518060200160405280600081525061151c565b60006110a360085490565b821061111a5760405160e560020a62461bcd02815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610860565b6008828154811061112d5761112d6130d7565b90600052602060002001549050919050565b600a54600160a060020a0316331461116c5760405160e560020a62461bcd028152600401610860906131bf565b8051610dd7906015906020840190612ae6565b600081815260026020526040812054600160a060020a03168061080c5760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610860565b600a54600160a060020a0316331461123a5760405160e560020a62461bcd028152600401610860906131bf565b60005b81811015610b6f576000838383818110611259576112596130d7565b905060200201602081019061126e9190612d51565b600160a060020a031614156112c85760405160e560020a62461bcd02815260206004820152601a60248201527f43616e27742061646420746865206e756c6c20616464726573730000000000006044820152606401610860565b6001601a60008585858181106112e0576112e06130d7565b90506020020160208101906112f59190612d51565b600160a060020a031681526020810191909152604001600020805460ff19169115159190911790558061132781613166565b91505061123d565b6000600160a060020a0382166113b05760405160e560020a62461bcd02815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610860565b50600160a060020a031660009081526003602052604090205490565b600a54600160a060020a031633146113f95760405160e560020a62461bcd028152600401610860906131bf565b6114036000612137565b565b600a54600160a060020a031633146114325760405160e560020a62461bcd028152600401610860906131bf565b8051610dd7906013906020840190612ae6565b6060600180546108b490613181565b600160a060020a0382163314156114b05760405160e560020a62461bcd02815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610860565b336000818152600560209081526040808320600160a060020a03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115263383611bfb565b6115455760405160e560020a62461bcd028152600401610860906130f0565b61089f84848484612196565b606060006015805461156290613181565b905011156115a85760156115773060146121cc565b611580846123d5565b60405160200161159293929190613274565b6040516020818303038152906040529050919050565b601480546115b590613181565b80601f01602080910402602001604051908101604052809291908181526020018280546115e190613181565b801561162e5780601f106116035761010080835404028352916020019161162e565b820191906000526020600020905b81548152906001019060200180831161161157829003601f168201915b50505050509050919050565b600a54600160a060020a031633146116675760405160e560020a62461bcd028152600401610860906131bf565b6010805460ff1916911515919091179055565b6060601380546108b490613181565b6016546040517fc4552791000000000000000000000000000000000000000000000000000000008152600160a060020a03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b1580156116ef57600080fd5b505afa158015611703573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117279190613354565b600160a060020a0316141561174057600191505061080c565b600160a060020a0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6002600b5414156117c85760405160e560020a62461bcd02815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610860565b6002600b55333b156118445760405160e560020a62461bcd028152602060048201526024808201527f424153455f434f4c4c454354494f4e2f434f4e54524143545f43414e4e4f545f60448201527f43414c4c000000000000000000000000000000000000000000000000000000006064820152608401610860565b61184e3382611f44565b60125460ff166118c95760405160e560020a62461bcd02815260206004820152602160248201527f424153455f434f4c4c454354494f4e2f50555243484153455f44495341424c4560448201527f44000000000000000000000000000000000000000000000000000000000000006064820152608401610860565b6118d1610ba6565b806118f8575060105460ff1680156118f85750336000908152601a602052604090205460ff165b6119475760405160e560020a62461bcd02815260206004820152601b60248201527f424153455f434f4c4c454354494f4e2f43414e4e4f545f4d494e5400000000006044820152606401610860565b3481600c54611956919061320c565b11156119cd5760405160e560020a62461bcd02815260206004820152602760248201527f424153455f434f4c4c454354494f4e2f494e53554646494349454e545f45544860448201527f5f414d4f554e54000000000000000000000000000000000000000000000000006064820152608401610860565b60005b81811015611a095760006119e26120f5565b90506119ee3382612106565b6119f6612120565b5080611a0181613166565b9150506119d0565b50506001600b55565b600a54600160a060020a03163314611a3f5760405160e560020a62461bcd028152600401610860906131bf565b6011939093556012805492151560ff199384161790556010805491151591909216179055600e55565b600a54600160a060020a03163314611a955760405160e560020a62461bcd028152600401610860906131bf565b6012805460ff1916911515919091179055565b600a54600160a060020a03163314611ad55760405160e560020a62461bcd028152600401610860906131bf565b600160a060020a038116611b545760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610860565b611b5d81612137565b50565b6000600160e060020a031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611bc35750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061080c57507f01ffc9a700000000000000000000000000000000000000000000000000000000600160e060020a031983161461080c565b600081815260026020526040812054600160a060020a0316611c885760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610860565b6000611c938361117f565b905080600160a060020a031684600160a060020a03161480611cce575083600160a060020a0316611cc384610937565b600160a060020a0316145b8061176a575061176a8185611689565b82600160a060020a0316611cf18261117f565b600160a060020a031614611d705760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610860565b600160a060020a038216611dee5760405160e560020a62461bcd028152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610860565b611df983838361250e565b611e04600082611ec9565b600160a060020a0383166000908152600360205260408120805460019290611e2d908490613371565b9091555050600160a060020a0382166000908152600360205260408120805460019290611e5b9084906131f4565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384169081179091558190611f0b8261117f565b600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600d5481611f5160085490565b611f5b91906131f4565b1115611fd25760405160e560020a62461bcd02815260206004820152602260248201527f424153455f434f4c4c454354494f4e2f455843454544535f4d41585f5355505060448201527f4c590000000000000000000000000000000000000000000000000000000000006064820152608401610860565b600081611fde8461132f565b611fe891906131f4565b9050600e548111156120655760405160e560020a62461bcd02815260206004820152602960248201527f424153455f434f4c4c454354494f4e2f455843454544535f494e44495649445560448201527f414c5f535550504c5900000000000000000000000000000000000000000000006064820152608401610860565b600f5415610b6f57600f5461207e90633b9aca0061320c565b3a10610b6f5760405160e560020a62461bcd02815260206004820152602360248201527f424153455f434f4c4c454354494f4e2f4741535f4645455f4e4f545f414c4c4f60448201527f57454400000000000000000000000000000000000000000000000000000000006064820152608401610860565b601754600090610bbc9060016125c6565b610dd78282604051806020016040528060008152506125d2565b6017805490600061213083613166565b9190505550565b600a8054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6121a1848484611cde565b6121ad84848484612608565b61089f5760405160e560020a62461bcd02815260040161086090613388565b606060006121db83600261320c565b6121e69060026131f4565b67ffffffffffffffff8111156121fe576121fe612bb7565b6040519080825280601f01601f191660200182016040528015612228576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061225f5761225f6130d7565b6020010190600160f860020a031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106122aa576122aa6130d7565b6020010190600160f860020a031916908160001a90535060006122ce84600261320c565b6122d99060016131f4565b90505b600181111561237c577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061231a5761231a6130d7565b1a7f01000000000000000000000000000000000000000000000000000000000000000282828151811061234f5761234f6130d7565b6020010190600160f860020a031916908160001a905350601090940493612375816133e5565b90506122dc565b5083156123ce5760405160e560020a62461bcd02815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610860565b9392505050565b60608161241557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561243f578061242981613166565b91506124389050600a83613244565b9150612419565b60008167ffffffffffffffff81111561245a5761245a612bb7565b6040519080825280601f01601f191660200182016040528015612484576020820181803683370190505b5090505b841561176a57612499600183613371565b91506124a6600a866133fc565b6124b19060306131f4565b7f0100000000000000000000000000000000000000000000000000000000000000028183815181106124e5576124e56130d7565b6020010190600160f860020a031916908160001a905350612507600a86613244565b9450612488565b600160a060020a0383166125695761256481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61258c565b81600160a060020a031683600160a060020a03161461258c5761258c838261274a565b600160a060020a0382166125a357610b6f816127e7565b82600160a060020a031682600160a060020a031614610b6f57610b6f8282612896565b60006123ce82846131f4565b6125dc83836128da565b6125e96000848484612608565b610b6f5760405160e560020a62461bcd02815260040161086090613388565b6000600160a060020a0384163b1561273f576040517f150b7a02000000000000000000000000000000000000000000000000000000008152600160a060020a0385169063150b7a0290612665903390899088908890600401613410565b602060405180830381600087803b15801561267f57600080fd5b505af19250505080156126af575060408051601f3d908101601f191682019092526126ac91810190613442565b60015b61270c573d8080156126dd576040519150601f19603f3d011682016040523d82523d6000602084013e6126e2565b606091505b5080516127045760405160e560020a62461bcd02815260040161086090613388565b805181602001fd5b600160e060020a0319167f150b7a020000000000000000000000000000000000000000000000000000000014905061176a565b506001949350505050565b600060016127578461132f565b6127619190613371565b6000838152600760205260409020549091508082146127b457600160a060020a03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b506000918252600760209081526040808420849055600160a060020a039094168352600681528383209183525290812055565b6008546000906127f990600190613371565b60008381526009602052604081205460088054939450909284908110612821576128216130d7565b906000526020600020015490508060088381548110612842576128426130d7565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061287a5761287a61345f565b6001900381819060005260206000200160009055905550505050565b60006128a18361132f565b600160a060020a039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b600160a060020a0382166129335760405160e560020a62461bcd02815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610860565b600081815260026020526040902054600160a060020a03161561299b5760405160e560020a62461bcd02815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610860565b6129a76000838361250e565b600160a060020a03821660009081526003602052604081208054600192906129d09084906131f4565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054828255906000526020600020908101928215612a9b579160200282015b82811115612a9b57815473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03843516178255602090920191600190910190612a5b565b50612aa7929150612b5a565b5090565b828054828255906000526020600020908101928215612a9b579160200282015b82811115612a9b578235825591602001919060010190612acb565b828054612af290613181565b90600052602060002090601f016020900481019282612b145760008555612a9b565b82601f10612b2d57805160ff1916838001178555612a9b565b82800160010185558215612a9b579182015b82811115612a9b578251825591602001919060010190612b3f565b5b80821115612aa75760008155600101612b5b565b600160e060020a031981168114611b5d57600080fd5b600060208284031215612b9757600080fd5b81356123ce81612b6f565b600160a060020a0381168114611b5d57600080fd5b60e060020a634e487b7102600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612bf957612bf9612bb7565b604052919050565b600080600060608486031215612c1657600080fd5b8335612c2181612ba2565b9250602084810135612c3281612ba2565b9250604085013567ffffffffffffffff80821115612c4f57600080fd5b818701915087601f830112612c6357600080fd5b813581811115612c7557612c75612bb7565b8381029150612c85848301612bd0565b818152918301840191848101908a841115612c9f57600080fd5b938501935b83851015612cbd57843582529385019390850190612ca4565b8096505050505050509250925092565b60005b83811015612ce8578181015183820152602001612cd0565b8381111561089f5750506000910152565b60008151808452612d11816020860160208601612ccd565b601f01601f19169290920160200192915050565b6020815260006123ce6020830184612cf9565b600060208284031215612d4a57600080fd5b5035919050565b600060208284031215612d6357600080fd5b81356123ce81612ba2565b60008060408385031215612d8157600080fd5b8235612d8c81612ba2565b946020939093013593505050565b600080600060608486031215612daf57600080fd5b8335612dba81612ba2565b92506020840135612dca81612ba2565b929592945050506040919091013590565b60008083601f840112612ded57600080fd5b50813567ffffffffffffffff811115612e0557600080fd5b6020830191508360208083028501011115612e1f57600080fd5b9250929050565b60008060008060408587031215612e3c57600080fd5b843567ffffffffffffffff80821115612e5457600080fd5b612e6088838901612ddb565b90965094506020870135915080821115612e7957600080fd5b50612e8687828801612ddb565b95989497509550505050565b600067ffffffffffffffff831115612eac57612eac612bb7565b612ebf601f8401601f1916602001612bd0565b9050828152838383011115612ed357600080fd5b828260208301376000602084830101529392505050565b600060208284031215612efc57600080fd5b813567ffffffffffffffff811115612f1357600080fd5b8201601f81018413612f2457600080fd5b61176a84823560208401612e92565b60008060208385031215612f4657600080fd5b823567ffffffffffffffff811115612f5d57600080fd5b612f6985828601612ddb565b90969095509350505050565b80358015158114612f8557600080fd5b919050565b60008060408385031215612f9d57600080fd5b8235612fa881612ba2565b9150612fb660208401612f75565b90509250929050565b60008060008060808587031215612fd557600080fd5b8435612fe081612ba2565b93506020850135612ff081612ba2565b925060408501359150606085013567ffffffffffffffff81111561301357600080fd5b8501601f8101871361302457600080fd5b61303387823560208401612e92565b91505092959194509250565b60006020828403121561305157600080fd5b6123ce82612f75565b6000806040838503121561306d57600080fd5b823561307881612ba2565b9150602083013561308881612ba2565b809150509250929050565b600080600080608085870312156130a957600080fd5b843593506130b960208601612f75565b92506130c760408601612f75565b9396929550929360600135925050565b60e060020a634e487b7102600052603260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b60e060020a634e487b7102600052601160045260246000fd5b600060001982141561317a5761317a61314d565b5060010190565b60028104600182168061319557607f821691505b602082108114156131b95760e060020a634e487b7102600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156132075761320761314d565b500190565b60008160001904831182151516156132265761322661314d565b500290565b60e060020a634e487b7102600052601260045260246000fd5b6000826132535761325361322b565b500490565b6000815161326a818560208601612ccd565b9290920192915050565b835460009081906002810460018083168061329057607f831692505b60208084108214156132b35760e060020a634e487b710286526022600452602486fd5b8180156132c757600181146132d857613305565b60ff19861689528489019650613305565b60008c81526020902060005b868110156132fd5781548b8201529085019083016132e4565b505084890196505b50505050505061334a61334461331b8388613258565b7f2f00000000000000000000000000000000000000000000000000000000000000815260010190565b85613258565b9695505050505050565b60006020828403121561336657600080fd5b81516123ce81612ba2565b6000828210156133835761338361314d565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b6000816133f4576133f461314d565b506000190190565b60008261340b5761340b61322b565b500690565b6000600160a060020a0380871683528086166020840152508360408301526080606083015261334a6080830184612cf9565b60006020828403121561345457600080fd5b81516123ce81612b6f565b60e060020a634e487b7102600052603160045260246000fdfea26469706673582212206d30ff049bf09f755ec21b51c6fc1f96eb432c389d436bd2afd7401405a98b8d64736f6c63430008090033

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

0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000061bc322d0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001447454e4f53204e465420436f6c6c656374696f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000547454e4f53000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f67656e6f732e68616e676e66742e78797a2f636f6e7472616374732f00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): GENOS NFT Collection
Arg [1] : symbol (string): GENOS
Arg [2] : baseTokenURI (string): https://genos.hangnft.xyz/contracts/
Arg [3] : price (uint256): 100000000000000000
Arg [4] : maxTotalMint (uint256): 500
Arg [5] : openSeaProxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [6] : publicSaleTime (uint256): 1639723565
Arg [7] : presaleActive (bool): True
Arg [8] : maxTotalMintPerAddress (uint256): 10

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [5] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [6] : 0000000000000000000000000000000000000000000000000000000061bc322d
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [10] : 47454e4f53204e465420436f6c6c656374696f6e000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [12] : 47454e4f53000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000024
Arg [14] : 68747470733a2f2f67656e6f732e68616e676e66742e78797a2f636f6e747261
Arg [15] : 6374732f00000000000000000000000000000000000000000000000000000000


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.