ETH Price: $2,624.76 (+7.05%)

Token

MONONOKE CHIMERA (CHIMERA)
 

Overview

Max Total Supply

140 CHIMERA

Holders

73

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 CHIMERA
0x04ab2090d3aa89f7804794e3822dda7a3d46af33
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:
MONONOKE_CHIMERA

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : mononoke_chimera.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/token/common/ERC2981.sol';
import 'erc721psi/contracts/ERC721Psi.sol';
import 'operator-filter-registry/src/DefaultOperatorFilterer.sol';

contract MONONOKE_CHIMERA is
  ERC721Psi,
  ERC2981,
  Ownable,
  ReentrancyGuard,
  DefaultOperatorFilterer
{
  using Strings for uint256;

  string private _baseTokenURI;
  bool pubSaleStart;
  uint256 maxSupply = 120;
  uint256 pubPrice = 0.02 ether;
  uint256 mintLimit = 1;

  mapping(address => uint256) public claimed;

  constructor() ERC721Psi('MONONOKE CHIMERA', 'CHIMERA') {
    _setDefaultRoyalty(
      address(0xd2Cf1aa09dC1494E43a74cDa7Dc75c8d54E3099B),
      1000
    );
  }

  function _baseURI() internal view virtual override returns (string memory) {
    return _baseTokenURI;
  }

  function tokenURI(
    uint256 _tokenId
  ) public view virtual override(ERC721Psi) returns (string memory) {
    return string(abi.encodePacked(ERC721Psi.tokenURI(_tokenId), '.json'));
  }

  function pubMint() public payable nonReentrant {
    uint256 supply = totalSupply();
    require(pubSaleStart, 'Before sale begin.');
    _mintCheck(1, supply, pubPrice);

    claimed[msg.sender] += 1;
    _safeMint(msg.sender, 1);
  }

  function _mintCheck(
    uint256 _quantity,
    uint256 _supply,
    uint256 _cost
  ) private view {
    require(_supply + _quantity <= maxSupply, 'Max supply over');
    require(_quantity <= mintLimit, 'Mint quantity over');
    require(msg.value >= _cost, 'Not enough funds');
    require(
      claimed[msg.sender] + _quantity <= mintLimit,
      'Already claimed max'
    );
  }

  function ownerMint(address _address, uint256 _quantity) public onlyOwner {
    uint256 supply = totalSupply();
    require(supply + _quantity <= maxSupply, 'Max supply over');
    _safeMint(_address, _quantity);
  }

  // only owner
  function setBaseURI(string calldata _uri) external onlyOwner {
    _baseTokenURI = _uri;
  }

  function setPubsale(bool _state) public onlyOwner {
    pubSaleStart = _state;
  }

  function setMintLimit(uint256 _quantity) public onlyOwner {
    mintLimit = _quantity;
  }

  function setMaxSupply(uint256 _quantity) public onlyOwner {
    maxSupply = _quantity;
  }

  struct ProjectMember {
    address founder;
    address dev;
  }
  ProjectMember private _member;

  function setMemberAddress(address _founder, address _dev) public onlyOwner {
    _member.founder = _founder;
    _member.dev = _dev;
  }

  function withdraw() external onlyOwner {
    require(
      _member.founder != address(0) && _member.dev != address(0),
      'Please set member address'
    );

    uint256 balance = address(this).balance;
    Address.sendValue(payable(_member.founder), ((balance * 6000) / 10000));
    Address.sendValue(payable(_member.dev), ((balance * 4000) / 10000));
  }

  // OperatorFilterer
  function setApprovalForAll(
    address operator,
    bool approved
  ) public override onlyAllowedOperatorApproval(operator) {
    super.setApprovalForAll(operator, approved);
  }

  function approve(
    address operator,
    uint256 tokenId
  ) public override onlyAllowedOperatorApproval(operator) {
    super.approve(operator, tokenId);
  }

  function transferFrom(
    address from,
    address to,
    uint256 tokenId
  ) public override onlyAllowedOperator(from) {
    super.transferFrom(from, to, tokenId);
  }

  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId
  ) public override onlyAllowedOperator(from) {
    super.safeTransferFrom(from, to, tokenId);
  }

  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId,
    bytes memory data
  ) public override onlyAllowedOperator(from) {
    super.safeTransferFrom(from, to, tokenId, data);
  }

  // Royality
  function setRoyalty(
    address _royaltyAddress,
    uint96 _feeNumerator
  ) external onlyOwner {
    _setDefaultRoyalty(_royaltyAddress, _feeNumerator);
  }

  function supportsInterface(
    bytes4 _interfaceId
  ) public view virtual override(ERC721Psi, ERC2981) returns (bool) {
    return
      ERC721Psi.supportsInterface(_interfaceId) ||
      ERC2981.supportsInterface(_interfaceId);
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 3 of 21 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 4 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 5 of 21 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

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 making 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 6 of 21 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 7 of 21 : ERC721Psi.sol
// SPDX-License-Identifier: MIT
/**
  ______ _____   _____ ______ ___  __ _  _  _ 
 |  ____|  __ \ / ____|____  |__ \/_ | || || |
 | |__  | |__) | |        / /   ) || | \| |/ |
 |  __| |  _  /| |       / /   / / | |\_   _/ 
 | |____| | \ \| |____  / /   / /_ | |  | |   
 |______|_|  \_\\_____|/_/   |____||_|  |_|   

 - github: https://github.com/estarriolvetch/ERC721Psi
 - npm: https://www.npmjs.com/package/erc721psi
                                          
 */

pragma solidity ^0.8.0;

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


contract ERC721Psi is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;
    using BitMaps for BitMaps.BitMap;

    BitMaps.BitMap private _batchHead;

    string private _name;
    string private _symbol;

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

    mapping(uint256 => address) private _tokenApprovals;
    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_;
        _currentIndex = _startTokenId();
    }

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal pure returns (uint256) {
        // It will become modifiable in the future versions
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        return _currentIndex - _startTokenId();
    }


    /**
     * @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 (uint) 
    {
        require(owner != address(0), "ERC721Psi: balance query for the zero address");

        uint count;
        for( uint i = _startTokenId(); i < _nextTokenId(); ++i ){
            if(_exists(i)){
                if( owner == ownerOf(i)){
                    ++count;
                }
            }
        }
        return count;
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        (address owner, ) = _ownerAndBatchHeadOf(tokenId);
        return owner;
    }

    function _ownerAndBatchHeadOf(uint256 tokenId) internal view returns (address owner, uint256 tokenIdBatchHead){
        require(_exists(tokenId), "ERC721Psi: owner query for nonexistent token");
        tokenIdBatchHead = _getBatchHead(tokenId);
        owner = _owners[tokenIdBatchHead];
    }

    /**
     * @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), "ERC721Psi: 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 = ownerOf(tokenId);
        require(to != owner, "ERC721Psi: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721Psi: 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),
            "ERC721Psi: approved query for nonexistent token"
        );

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(operator != _msgSender(), "ERC721Psi: 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),
            "ERC721Psi: 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),
            "ERC721Psi: 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, 1,_data),
            "ERC721Psi: 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`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _nextTokenId() && _startTokenId() <= tokenId;
    }

    /**
     * @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),
            "ERC721Psi: operator query for nonexistent token"
        );
        address owner = ownerOf(tokenId);
        return (spender == owner ||
            getApproved(tokenId) == spender ||
            isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, "");
    }

    
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        uint256 nextTokenId = _nextTokenId();
        _mint(to, quantity);
        require(
            _checkOnERC721Received(address(0), to, nextTokenId, quantity, _data),
            "ERC721Psi: transfer to non ERC721Receiver implementer"
        );
    }


    function _mint(
        address to,
        uint256 quantity
    ) internal virtual {
        uint256 nextTokenId = _nextTokenId();
        
        require(quantity > 0, "ERC721Psi: quantity must be greater 0");
        require(to != address(0), "ERC721Psi: mint to the zero address");
        
        _beforeTokenTransfers(address(0), to, nextTokenId, quantity);
        _currentIndex += quantity;
        _owners[nextTokenId] = to;
        _batchHead.set(nextTokenId);
        _afterTokenTransfers(address(0), to, nextTokenId, quantity);
        
        // Emit events
        for(uint256 tokenId=nextTokenId; tokenId < nextTokenId + quantity; tokenId++){
            emit Transfer(address(0), to, 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 {
        (address owner, uint256 tokenIdBatchHead) = _ownerAndBatchHeadOf(tokenId);

        require(
            owner == from,
            "ERC721Psi: transfer of token that is not own"
        );
        require(to != address(0), "ERC721Psi: transfer to the zero address");

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        uint256 subsequentTokenId = tokenId + 1;

        if(!_batchHead.get(subsequentTokenId) &&  
            subsequentTokenId < _nextTokenId()
        ) {
            _owners[subsequentTokenId] = from;
            _batchHead.set(subsequentTokenId);
        }

        _owners[tokenId] = to;
        if(tokenId != tokenIdBatchHead) {
            _batchHead.set(tokenId);
        }

        emit Transfer(from, to, tokenId);

        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(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 startTokenId uint256 the first ID of the tokens to be transferred
     * @param quantity uint256 amount of the tokens to be transfered.
     * @param _data bytes optional data to send along with the call
     * @return r bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity,
        bytes memory _data
    ) private returns (bool r) {
        if (to.isContract()) {
            r = true;
            for(uint256 tokenId = startTokenId; tokenId < startTokenId + quantity; tokenId++){
                try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                    r = r && retval == IERC721Receiver.onERC721Received.selector;
                } catch (bytes memory reason) {
                    if (reason.length == 0) {
                        revert("ERC721Psi: transfer to non ERC721Receiver implementer");
                    } else {
                        assembly {
                            revert(add(32, reason), mload(reason))
                        }
                    }
                }
            }
            return r;
        } else {
            return true;
        }
    }

    function _getBatchHead(uint256 tokenId) internal view returns (uint256 tokenIdBatchHead) {
        tokenIdBatchHead = _batchHead.scanForward(tokenId); 
    }


    function totalSupply() public virtual view returns (uint256) {
        return _totalMinted();
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * This function is compatiable with ERC721AQueryable.
     */
    function tokensOfOwner(address owner) external view virtual returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                if (_exists(i)) {
                    if (ownerOf(i) == owner) {
                        tokenIds[tokenIdsIdx++] = i;
                    }
                }
            }
            return tokenIds;   
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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`.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 8 of 21 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

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

pragma solidity ^0.8.0;

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

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

File 10 of 21 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 13 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * 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;

    /**
     * @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 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 14 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 16 of 21 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }
}

File 17 of 21 : BitMaps.sol
// SPDX-License-Identifier: MIT
/**
   _____       ___     ___ __           ____  _ __      
  / ___/____  / (_)___/ (_) /___  __   / __ )(_) /______
  \__ \/ __ \/ / / __  / / __/ / / /  / __  / / __/ ___/
 ___/ / /_/ / / / /_/ / / /_/ /_/ /  / /_/ / / /_(__  ) 
/____/\____/_/_/\__,_/_/\__/\__, /  /_____/_/\__/____/  
                           /____/                        

- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits

 */
pragma solidity ^0.8.0;

import "./BitScan.sol";

/**
 * @dev This Library is a modified version of Openzeppelin's BitMaps library.
 * Functions of finding the index of the closest set bit from a given index are added.
 * The indexing of each bucket is modifed to count from the MSB to the LSB instead of from the LSB to the MSB.
 * The modification of indexing makes finding the closest previous set bit more efficient in gas usage.
*/

/**
 * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
 * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
 */

library BitMaps {
    using BitScan for uint256;
    uint256 private constant MASK_INDEX_ZERO = (1 << 255);
    uint256 private constant MASK_FULL = type(uint256).max;

    struct BitMap {
        mapping(uint256 => uint256) _data;
    }

    /**
     * @dev Returns whether the bit at `index` is set.
     */
    function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        return bitmap._data[bucket] & mask != 0;
    }

    /**
     * @dev Sets the bit at `index` to the boolean `value`.
     */
    function setTo(
        BitMap storage bitmap,
        uint256 index,
        bool value
    ) internal {
        if (value) {
            set(bitmap, index);
        } else {
            unset(bitmap, index);
        }
    }

    /**
     * @dev Sets the bit at `index`.
     */
    function set(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        bitmap._data[bucket] |= mask;
    }

    /**
     * @dev Unsets the bit at `index`.
     */
    function unset(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        bitmap._data[bucket] &= ~mask;
    }


    /**
     * @dev Consecutively sets `amount` of bits starting from the bit at `startIndex`.
     */    
    function setBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal {
        uint256 bucket = startIndex >> 8;

        uint256 bucketStartIndex = (startIndex & 0xff);

        unchecked {
            if(bucketStartIndex + amount < 256) {
                bitmap._data[bucket] |= MASK_FULL << (256 - amount) >> bucketStartIndex;
            } else {
                bitmap._data[bucket] |= MASK_FULL >> bucketStartIndex;
                amount -= (256 - bucketStartIndex);
                bucket++;

                while(amount > 256) {
                    bitmap._data[bucket] = MASK_FULL;
                    amount -= 256;
                    bucket++;
                }

                bitmap._data[bucket] |= MASK_FULL << (256 - amount);
            }
        }
    }


    /**
     * @dev Consecutively unsets `amount` of bits starting from the bit at `startIndex`.
     */    
    function unsetBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal {
        uint256 bucket = startIndex >> 8;

        uint256 bucketStartIndex = (startIndex & 0xff);

        unchecked {
            if(bucketStartIndex + amount < 256) {
                bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount) >> bucketStartIndex);
            } else {
                bitmap._data[bucket] &= ~(MASK_FULL >> bucketStartIndex);
                amount -= (256 - bucketStartIndex);
                bucket++;

                while(amount > 256) {
                    bitmap._data[bucket] = 0;
                    amount -= 256;
                    bucket++;
                }

                bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount));
            }
        }
    }


    /**
     * @dev Find the closest index of the set bit before `index`.
     */
    function scanForward(BitMap storage bitmap, uint256 index) internal view returns (uint256 setBitIndex) {
        uint256 bucket = index >> 8;

        // index within the bucket
        uint256 bucketIndex = (index & 0xff);

        // load a bitboard from the bitmap.
        uint256 bb = bitmap._data[bucket];

        // offset the bitboard to scan from `bucketIndex`.
        bb = bb >> (0xff ^ bucketIndex); // bb >> (255 - bucketIndex)
        
        if(bb > 0) {
            unchecked {
                setBitIndex = (bucket << 8) | (bucketIndex -  bb.bitScanForward256());    
            }
        } else {
            while(true) {
                require(bucket > 0, "BitMaps: The set bit before the index doesn't exist.");
                unchecked {
                    bucket--;
                }
                // No offset. Always scan from the least significiant bit now.
                bb = bitmap._data[bucket];
                
                if(bb > 0) {
                    unchecked {
                        setBitIndex = (bucket << 8) | (255 -  bb.bitScanForward256());
                        break;
                    }
                } 
            }
        }
    }

    function getBucket(BitMap storage bitmap, uint256 bucket) internal view returns (uint256) {
        return bitmap._data[bucket];
    }
}

File 18 of 21 : BitScan.sol
// SPDX-License-Identifier: MIT
/**
   _____       ___     ___ __           ____  _ __      
  / ___/____  / (_)___/ (_) /___  __   / __ )(_) /______
  \__ \/ __ \/ / / __  / / __/ / / /  / __  / / __/ ___/
 ___/ / /_/ / / / /_/ / / /_/ /_/ /  / /_/ / / /_(__  ) 
/____/\____/_/_/\__,_/_/\__/\__, /  /_____/_/\__/____/  
                           /____/                        

- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits

 */

pragma solidity ^0.8.0;


library BitScan {
    uint256 constant private DEBRUIJN_256 = 0x818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff;
    bytes constant private LOOKUP_TABLE_256 = hex"0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8";

    /**
        @dev Isolate the least significant set bit.
     */ 
    function isolateLS1B256(uint256 bb) pure internal returns (uint256) {
        require(bb > 0);
        unchecked {
            return bb & (0 - bb);
        }
    } 

    /**
        @dev Isolate the most significant set bit.
     */ 
    function isolateMS1B256(uint256 bb) pure internal returns (uint256) {
        require(bb > 0);
        unchecked {
            bb |= bb >> 128;
            bb |= bb >> 64;
            bb |= bb >> 32;
            bb |= bb >> 16;
            bb |= bb >> 8;
            bb |= bb >> 4;
            bb |= bb >> 2;
            bb |= bb >> 1;
            
            return (bb >> 1) + 1;
        }
    } 

    /**
        @dev Find the index of the lest significant set bit. (trailing zero count)
     */ 
    function bitScanForward256(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return uint8(LOOKUP_TABLE_256[(isolateLS1B256(bb) * DEBRUIJN_256) >> 248]);
        }   
    }

    /**
        @dev Find the index of the most significant set bit.
     */ 
    function bitScanReverse256(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return 255 - uint8(LOOKUP_TABLE_256[((isolateMS1B256(bb) * DEBRUIJN_256) >> 248)]);
        }   
    }

    function log2(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return uint8(LOOKUP_TABLE_256[(isolateMS1B256(bb) * DEBRUIJN_256) >> 248]);
        } 
    }
}

File 19 of 21 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 20 of 21 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 21 of 21 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"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":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pubMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_founder","type":"address"},{"internalType":"address","name":"_dev","type":"address"}],"name":"setMemberAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"setMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPubsale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyAddress","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526078600d5566470de4df820000600e556001600f553480156200002657600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280601081526020017f4d4f4e4f4e4f4b45204348494d455241000000000000000000000000000000008152506040518060400160405280600781526020017f4348494d455241000000000000000000000000000000000000000000000000008152508160019080519060200190620000c2929190620005c1565b508060029080519060200190620000db929190620005c1565b50620000ec6200034160201b60201c565b600481905550505062000114620001086200034660201b60201c565b6200034e60201b60201c565b6001600a8190555060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111562000311578015620001d7576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200019d929190620006b6565b600060405180830381600087803b158015620001b857600080fd5b505af1158015620001cd573d6000803e3d6000fd5b5050505062000310565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000291576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b815260040162000257929190620006b6565b600060405180830381600087803b1580156200027257600080fd5b505af115801562000287573d6000803e3d6000fd5b505050506200030f565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002da9190620006e3565b600060405180830381600087803b158015620002f557600080fd5b505af11580156200030a573d6000803e3d6000fd5b505050505b5b5b50506200033b73d2cf1aa09dc1494e43a74cda7dc75c8d54e3099b6103e86200041460201b60201c565b6200087f565b600090565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000424620005b760201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000485576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200047c9062000787565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620004f7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004ee90620007f9565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b828054620005cf906200084a565b90600052602060002090601f016020900481019282620005f357600085556200063f565b82601f106200060e57805160ff19168380011785556200063f565b828001600101855582156200063f579182015b828111156200063e57825182559160200191906001019062000621565b5b5090506200064e919062000652565b5090565b5b808211156200066d57600081600090555060010162000653565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200069e8262000671565b9050919050565b620006b08162000691565b82525050565b6000604082019050620006cd6000830185620006a5565b620006dc6020830184620006a5565b9392505050565b6000602082019050620006fa6000830184620006a5565b92915050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006200076f602a8362000700565b91506200077c8262000711565b604082019050919050565b60006020820190508181036000830152620007a28162000760565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000620007e160198362000700565b9150620007ee82620007a9565b602082019050919050565b600060208201905081810360008301526200081481620007d2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200086357607f821691505b6020821081036200087957620008786200081b565b5b50919050565b614c23806200088f6000396000f3fe6080604052600436106101cd5760003560e01c80636f8b44b0116100f75780639e6a1d7d11610095578063c87b56dd11610064578063c87b56dd1461063c578063c884ef8314610679578063e985e9c5146106b6578063f2fde38b146106f3576101cd565b80639e6a1d7d14610598578063a22cb465146105c1578063add1e709146105ea578063b88d4fde14610613576101cd565b80638462151c116100d15780638462151c146104dc5780638da5cb5b146105195780638f2fc60b1461054457806395d89b411461056d576101cd565b80636f8b44b01461045f57806370a0823114610488578063715018a6146104c5576101cd565b80632a55205a1161016f57806342842e0e1161013e57806342842e0e146103a7578063484b973c146103d057806355f804b3146103f95780636352211e14610422576101cd565b80632a55205a1461031d5780633ccfd60b1461035b5780633fc55f6e1461037257806341f434341461037c576101cd565b8063095ea7b3116101ab578063095ea7b31461027757806318160ddd146102a05780631ad4de59146102cb57806323b872dd146102f4576101cd565b806301ffc9a7146101d257806306fdde031461020f578063081812fc1461023a575b600080fd5b3480156101de57600080fd5b506101f960048036038101906101f49190612f42565b61071c565b6040516102069190612f8a565b60405180910390f35b34801561021b57600080fd5b5061022461073e565b604051610231919061303e565b60405180910390f35b34801561024657600080fd5b50610261600480360381019061025c9190613096565b6107d0565b60405161026e9190613104565b60405180910390f35b34801561028357600080fd5b5061029e6004803603810190610299919061314b565b610855565b005b3480156102ac57600080fd5b506102b561086e565b6040516102c2919061319a565b60405180910390f35b3480156102d757600080fd5b506102f260048036038101906102ed91906131e1565b61087d565b005b34801561030057600080fd5b5061031b6004803603810190610316919061320e565b6108a2565b005b34801561032957600080fd5b50610344600480360381019061033f9190613261565b6108f1565b6040516103529291906132a1565b60405180910390f35b34801561036757600080fd5b50610370610adb565b005b61037a610c70565b005b34801561038857600080fd5b50610391610d93565b60405161039e9190613329565b60405180910390f35b3480156103b357600080fd5b506103ce60048036038101906103c9919061320e565b610da5565b005b3480156103dc57600080fd5b506103f760048036038101906103f2919061314b565b610df4565b005b34801561040557600080fd5b50610420600480360381019061041b91906133a9565b610e67565b005b34801561042e57600080fd5b5061044960048036038101906104449190613096565b610e85565b6040516104569190613104565b60405180910390f35b34801561046b57600080fd5b5061048660048036038101906104819190613096565b610e9d565b005b34801561049457600080fd5b506104af60048036038101906104aa91906133f6565b610eaf565b6040516104bc919061319a565b60405180910390f35b3480156104d157600080fd5b506104da610fae565b005b3480156104e857600080fd5b5061050360048036038101906104fe91906133f6565b610fc2565b60405161051091906134e1565b60405180910390f35b34801561052557600080fd5b5061052e6110bb565b60405161053b9190613104565b60405180910390f35b34801561055057600080fd5b5061056b60048036038101906105669190613547565b6110e5565b005b34801561057957600080fd5b506105826110fb565b60405161058f919061303e565b60405180910390f35b3480156105a457600080fd5b506105bf60048036038101906105ba9190613096565b61118d565b005b3480156105cd57600080fd5b506105e860048036038101906105e39190613587565b61119f565b005b3480156105f657600080fd5b50610611600480360381019061060c91906135c7565b6111b8565b005b34801561061f57600080fd5b5061063a60048036038101906106359190613737565b61124c565b005b34801561064857600080fd5b50610663600480360381019061065e9190613096565b61129d565b604051610670919061303e565b60405180910390f35b34801561068557600080fd5b506106a0600480360381019061069b91906133f6565b6112ce565b6040516106ad919061319a565b60405180910390f35b3480156106c257600080fd5b506106dd60048036038101906106d891906135c7565b6112e6565b6040516106ea9190612f8a565b60405180910390f35b3480156106ff57600080fd5b5061071a600480360381019061071591906133f6565b61137a565b005b6000610727826113fd565b806107375750610736826114df565b5b9050919050565b60606001805461074d906137e9565b80601f0160208091040260200160405190810160405280929190818152602001828054610779906137e9565b80156107c65780601f1061079b576101008083540402835291602001916107c6565b820191906000526020600020905b8154815290600101906020018083116107a957829003601f168201915b5050505050905090565b60006107db82611559565b61081a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108119061388c565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8161085f8161157f565b610869838361167c565b505050565b6000610878611793565b905090565b6108856117af565b80600c60006101000a81548160ff02191690831515021790555050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108e0576108df3361157f565b5b6108eb84848461182d565b50505050565b6000806000600860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610a865760076040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610a9061188d565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610abc91906138db565b610ac69190613964565b90508160000151819350935050509250929050565b610ae36117af565b600073ffffffffffffffffffffffffffffffffffffffff16601160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614158015610b975750600073ffffffffffffffffffffffffffffffffffffffff16601160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b610bd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcd906139e1565b60405180910390fd5b6000479050610c24601160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661271061177084610c1591906138db565b610c1f9190613964565b611897565b610c6d601160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612710610fa084610c5e91906138db565b610c689190613964565b611897565b50565b6002600a5403610cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cac90613a4d565b60405180910390fd5b6002600a819055506000610cc761086e565b9050600c60009054906101000a900460ff16610d18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0f90613ab9565b60405180910390fd5b610d26600182600e5461198b565b6001601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610d769190613ad9565b92505081905550610d88336001611af7565b506001600a81905550565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610de357610de23361157f565b5b610dee848484611b15565b50505050565b610dfc6117af565b6000610e0661086e565b9050600d548282610e179190613ad9565b1115610e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4f90613b7b565b60405180910390fd5b610e628383611af7565b505050565b610e6f6117af565b8181600b9190610e80929190612e33565b505050565b600080610e9183611b35565b50905080915050919050565b610ea56117af565b80600d8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1690613c0d565b60405180910390fd5b600080610f2a611bc6565b90505b610f35611bcb565b811015610fa457610f4581611559565b15610f9357610f5381610e85565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610f925781610f8f90613c2d565b91505b5b80610f9d90613c2d565b9050610f2d565b5080915050919050565b610fb66117af565b610fc06000611bd5565b565b6060600080610fd084610eaf565b905060008167ffffffffffffffff811115610fee57610fed61360c565b5b60405190808252806020026020018201604052801561101c5781602001602082028036833780820191505090505b5090506000611029611bc6565b90505b8284146110af5761103c81611559565b156110a4578573ffffffffffffffffffffffffffffffffffffffff1661106182610e85565b73ffffffffffffffffffffffffffffffffffffffff16036110a3578082858060010196508151811061109657611095613c75565b5b6020026020010181815250505b5b80600101905061102c565b50809350505050919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6110ed6117af565b6110f78282611c9b565b5050565b60606002805461110a906137e9565b80601f0160208091040260200160405190810160405280929190818152602001828054611136906137e9565b80156111835780601f1061115857610100808354040283529160200191611183565b820191906000526020600020905b81548152906001019060200180831161116657829003601f168201915b5050505050905090565b6111956117af565b80600f8190555050565b816111a98161157f565b6111b38383611e30565b505050565b6111c06117af565b81601160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461128a576112893361157f565b5b61129685858585611fb0565b5050505050565b60606112a882612012565b6040516020016112b89190613d2c565b6040516020818303038152906040529050919050565b60106020528060005260406000206000915090505481565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6113826117af565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036113f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e890613dc0565b60405180910390fd5b6113fa81611bd5565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806114c857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806114d857506114d7826120b9565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806115525750611551826113fd565b5b9050919050565b6000611563611bcb565b82108015611578575081611575611bc6565b11155b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611679576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016115f6929190613de0565b602060405180830381865afa158015611613573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116379190613e1e565b61167857806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161166f9190613104565b60405180910390fd5b5b50565b600061168782610e85565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036116f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ee90613ebd565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16611716612123565b73ffffffffffffffffffffffffffffffffffffffff16148061174557506117448161173f612123565b6112e6565b5b611784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177b90613f4f565b60405180910390fd5b61178e838361212b565b505050565b600061179d611bc6565b6004546117aa9190613f6f565b905090565b6117b7612123565b73ffffffffffffffffffffffffffffffffffffffff166117d56110bb565b73ffffffffffffffffffffffffffffffffffffffff161461182b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182290613fef565b60405180910390fd5b565b61183e611838612123565b826121e4565b61187d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187490614081565b60405180910390fd5b6118888383836122c2565b505050565b6000612710905090565b804710156118da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d1906140ed565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516119009061413e565b60006040518083038185875af1925050503d806000811461193d576040519150601f19603f3d011682016040523d82523d6000602084013e611942565b606091505b5050905080611986576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197d906141c5565b60405180910390fd5b505050565b600d54838361199a9190613ad9565b11156119db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d290613b7b565b60405180910390fd5b600f54831115611a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1790614231565b60405180910390fd5b80341015611a63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5a9061429d565b60405180910390fd5b600f5483601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ab19190613ad9565b1115611af2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae990614309565b60405180910390fd5b505050565b611b11828260405180602001604052806000815250612549565b5050565b611b308383836040518060200160405280600081525061124c565b505050565b600080611b4183611559565b611b80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b779061439b565b60405180910390fd5b611b89836125b2565b90506003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b600090565b6000600454905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611ca361188d565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611d01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf89061442d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6790614499565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b611e38612123565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ea5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9c90614505565b60405180910390fd5b8060066000611eb2612123565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611f5f612123565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611fa49190612f8a565b60405180910390a35050565b611fc1611fbb612123565b836121e4565b612000576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff790614081565b60405180910390fd5b61200c848484846125cf565b50505050565b606061201d82611559565b61205c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205390614597565b60405180910390fd5b600061206661262d565b9050600081511161208657604051806020016040528060008152506120b1565b80612090846126bf565b6040516020016120a19291906145b7565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661219e83610e85565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006121ef82611559565b61222e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122259061464d565b60405180910390fd5b600061223983610e85565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806122a857508373ffffffffffffffffffffffffffffffffffffffff16612290846107d0565b73ffffffffffffffffffffffffffffffffffffffff16145b806122b957506122b881856112e6565b5b91505092915050565b6000806122ce83611b35565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612340576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612337906146df565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036123af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a690614771565b60405180910390fd5b6123bc858585600161281f565b6123c760008461212b565b60006001846123d69190613ad9565b90506123ec81600061282590919063ffffffff16565b1580156123ff57506123fc611bcb565b81105b1561246b57856003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061246a81600061288090919063ffffffff16565b5b846003600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508184146124d9576124d884600061288090919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461254186868660016128dd565b505050505050565b6000612553611bcb565b905061255f84846128e3565b61256d600085838686612ac8565b6125ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a390614803565b60405180910390fd5b50505050565b60006125c8826000612c8a90919063ffffffff16565b9050919050565b6125da8484846122c2565b6125e8848484600185612ac8565b612627576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261e90614803565b60405180910390fd5b50505050565b6060600b805461263c906137e9565b80601f0160208091040260200160405190810160405280929190818152602001828054612668906137e9565b80156126b55780601f1061268a576101008083540402835291602001916126b5565b820191906000526020600020905b81548152906001019060200180831161269857829003601f168201915b5050505050905090565b606060008203612706576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061281a565b600082905060005b6000821461273857808061272190613c2d565b915050600a826127319190613964565b915061270e565b60008167ffffffffffffffff8111156127545761275361360c565b5b6040519080825280601f01601f1916602001820160405280156127865781602001600182028036833780820191505090505b5090505b600085146128135760018261279f9190613f6f565b9150600a856127ae9190614823565b60306127ba9190613ad9565b60f81b8183815181106127d0576127cf613c75565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561280c9190613964565b945061278a565b8093505050505b919050565b50505050565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b50505050565b60006128ed611bcb565b905060008211612932576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612929906148c6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036129a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299890614958565b60405180910390fd5b6129ae600084838561281f565b81600460008282546129c09190613ad9565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612a2d81600061288090919063ffffffff16565b612a3a60008483856128dd565b60008190505b8282612a4c9190613ad9565b811015612ac257808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48080612aba90613c2d565b915050612a40565b50505050565b6000612ae98573ffffffffffffffffffffffffffffffffffffffff16612d83565b15612c7c576001905060008490505b8385612b049190613ad9565b811015612c76578573ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b2f612123565b8984876040518563ffffffff1660e01b8152600401612b5194939291906149cd565b6020604051808303816000875af1925050508015612b8d57506040513d601f19601f82011682018060405250810190612b8a9190614a2e565b60015b612c0f573d8060008114612bbd576040519150601f19603f3d011682016040523d82523d6000602084013e612bc2565b606091505b506000815103612c07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bfe90614803565b60405180910390fd5b805181602001fd5b828015612c60575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9250508080612c6e90613c2d565b915050612af8565b50612c81565b600190505b95945050505050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c90506000811115612ce357612cd181612da6565b60ff168203600884901b179350612d7a565b5b600115612d795760008311612d2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2590614acd565b60405180910390fd5b8280600190039350508560000160008481526020019081526020016000205490506000811115612d7457612d6181612da6565b60ff0360ff16600884901b179350612d79565b612ce4565b5b50505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006040518061012001604052806101008152602001614aee610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff612def85612e18565b02901c81518110612e0357612e02613c75565b5b602001015160f81c60f81b60f81c9050919050565b6000808211612e2657600080fd5b8160000382169050919050565b828054612e3f906137e9565b90600052602060002090601f016020900481019282612e615760008555612ea8565b82601f10612e7a57803560ff1916838001178555612ea8565b82800160010185558215612ea8579182015b82811115612ea7578235825591602001919060010190612e8c565b5b509050612eb59190612eb9565b5090565b5b80821115612ed2576000816000905550600101612eba565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612f1f81612eea565b8114612f2a57600080fd5b50565b600081359050612f3c81612f16565b92915050565b600060208284031215612f5857612f57612ee0565b5b6000612f6684828501612f2d565b91505092915050565b60008115159050919050565b612f8481612f6f565b82525050565b6000602082019050612f9f6000830184612f7b565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612fdf578082015181840152602081019050612fc4565b83811115612fee576000848401525b50505050565b6000601f19601f8301169050919050565b600061301082612fa5565b61301a8185612fb0565b935061302a818560208601612fc1565b61303381612ff4565b840191505092915050565b600060208201905081810360008301526130588184613005565b905092915050565b6000819050919050565b61307381613060565b811461307e57600080fd5b50565b6000813590506130908161306a565b92915050565b6000602082840312156130ac576130ab612ee0565b5b60006130ba84828501613081565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006130ee826130c3565b9050919050565b6130fe816130e3565b82525050565b600060208201905061311960008301846130f5565b92915050565b613128816130e3565b811461313357600080fd5b50565b6000813590506131458161311f565b92915050565b6000806040838503121561316257613161612ee0565b5b600061317085828601613136565b925050602061318185828601613081565b9150509250929050565b61319481613060565b82525050565b60006020820190506131af600083018461318b565b92915050565b6131be81612f6f565b81146131c957600080fd5b50565b6000813590506131db816131b5565b92915050565b6000602082840312156131f7576131f6612ee0565b5b6000613205848285016131cc565b91505092915050565b60008060006060848603121561322757613226612ee0565b5b600061323586828701613136565b935050602061324686828701613136565b925050604061325786828701613081565b9150509250925092565b6000806040838503121561327857613277612ee0565b5b600061328685828601613081565b925050602061329785828601613081565b9150509250929050565b60006040820190506132b660008301856130f5565b6132c3602083018461318b565b9392505050565b6000819050919050565b60006132ef6132ea6132e5846130c3565b6132ca565b6130c3565b9050919050565b6000613301826132d4565b9050919050565b6000613313826132f6565b9050919050565b61332381613308565b82525050565b600060208201905061333e600083018461331a565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261336957613368613344565b5b8235905067ffffffffffffffff81111561338657613385613349565b5b6020830191508360018202830111156133a2576133a161334e565b5b9250929050565b600080602083850312156133c0576133bf612ee0565b5b600083013567ffffffffffffffff8111156133de576133dd612ee5565b5b6133ea85828601613353565b92509250509250929050565b60006020828403121561340c5761340b612ee0565b5b600061341a84828501613136565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61345881613060565b82525050565b600061346a838361344f565b60208301905092915050565b6000602082019050919050565b600061348e82613423565b613498818561342e565b93506134a38361343f565b8060005b838110156134d45781516134bb888261345e565b97506134c683613476565b9250506001810190506134a7565b5085935050505092915050565b600060208201905081810360008301526134fb8184613483565b905092915050565b60006bffffffffffffffffffffffff82169050919050565b61352481613503565b811461352f57600080fd5b50565b6000813590506135418161351b565b92915050565b6000806040838503121561355e5761355d612ee0565b5b600061356c85828601613136565b925050602061357d85828601613532565b9150509250929050565b6000806040838503121561359e5761359d612ee0565b5b60006135ac85828601613136565b92505060206135bd858286016131cc565b9150509250929050565b600080604083850312156135de576135dd612ee0565b5b60006135ec85828601613136565b92505060206135fd85828601613136565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61364482612ff4565b810181811067ffffffffffffffff821117156136635761366261360c565b5b80604052505050565b6000613676612ed6565b9050613682828261363b565b919050565b600067ffffffffffffffff8211156136a2576136a161360c565b5b6136ab82612ff4565b9050602081019050919050565b82818337600083830152505050565b60006136da6136d584613687565b61366c565b9050828152602081018484840111156136f6576136f5613607565b5b6137018482856136b8565b509392505050565b600082601f83011261371e5761371d613344565b5b813561372e8482602086016136c7565b91505092915050565b6000806000806080858703121561375157613750612ee0565b5b600061375f87828801613136565b945050602061377087828801613136565b935050604061378187828801613081565b925050606085013567ffffffffffffffff8111156137a2576137a1612ee5565b5b6137ae87828801613709565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061380157607f821691505b602082108103613814576138136137ba565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613876602f83612fb0565b91506138818261381a565b604082019050919050565b600060208201905081810360008301526138a581613869565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006138e682613060565b91506138f183613060565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561392a576139296138ac565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061396f82613060565b915061397a83613060565b92508261398a57613989613935565b5b828204905092915050565b7f506c6561736520736574206d656d626572206164647265737300000000000000600082015250565b60006139cb601983612fb0565b91506139d682613995565b602082019050919050565b600060208201905081810360008301526139fa816139be565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613a37601f83612fb0565b9150613a4282613a01565b602082019050919050565b60006020820190508181036000830152613a6681613a2a565b9050919050565b7f4265666f72652073616c6520626567696e2e0000000000000000000000000000600082015250565b6000613aa3601283612fb0565b9150613aae82613a6d565b602082019050919050565b60006020820190508181036000830152613ad281613a96565b9050919050565b6000613ae482613060565b9150613aef83613060565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613b2457613b236138ac565b5b828201905092915050565b7f4d617820737570706c79206f7665720000000000000000000000000000000000600082015250565b6000613b65600f83612fb0565b9150613b7082613b2f565b602082019050919050565b60006020820190508181036000830152613b9481613b58565b9050919050565b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b6000613bf7602d83612fb0565b9150613c0282613b9b565b604082019050919050565b60006020820190508181036000830152613c2681613bea565b9050919050565b6000613c3882613060565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613c6a57613c696138ac565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b6000613cba82612fa5565b613cc48185613ca4565b9350613cd4818560208601612fc1565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000613d16600583613ca4565b9150613d2182613ce0565b600582019050919050565b6000613d388284613caf565b9150613d4382613d09565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613daa602683612fb0565b9150613db582613d4e565b604082019050919050565b60006020820190508181036000830152613dd981613d9d565b9050919050565b6000604082019050613df560008301856130f5565b613e0260208301846130f5565b9392505050565b600081519050613e18816131b5565b92915050565b600060208284031215613e3457613e33612ee0565b5b6000613e4284828501613e09565b91505092915050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b6000613ea7602483612fb0565b9150613eb282613e4b565b604082019050919050565b60006020820190508181036000830152613ed681613e9a565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b6000613f39603b83612fb0565b9150613f4482613edd565b604082019050919050565b60006020820190508181036000830152613f6881613f2c565b9050919050565b6000613f7a82613060565b9150613f8583613060565b925082821015613f9857613f976138ac565b5b828203905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613fd9602083612fb0565b9150613fe482613fa3565b602082019050919050565b6000602082019050818103600083015261400881613fcc565b9050919050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b600061406b603483612fb0565b91506140768261400f565b604082019050919050565b6000602082019050818103600083015261409a8161405e565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b60006140d7601d83612fb0565b91506140e2826140a1565b602082019050919050565b60006020820190508181036000830152614106816140ca565b9050919050565b600081905092915050565b50565b600061412860008361410d565b915061413382614118565b600082019050919050565b60006141498261411b565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b60006141af603a83612fb0565b91506141ba82614153565b604082019050919050565b600060208201905081810360008301526141de816141a2565b9050919050565b7f4d696e74207175616e74697479206f7665720000000000000000000000000000600082015250565b600061421b601283612fb0565b9150614226826141e5565b602082019050919050565b6000602082019050818103600083015261424a8161420e565b9050919050565b7f4e6f7420656e6f7567682066756e647300000000000000000000000000000000600082015250565b6000614287601083612fb0565b915061429282614251565b602082019050919050565b600060208201905081810360008301526142b68161427a565b9050919050565b7f416c726561647920636c61696d6564206d617800000000000000000000000000600082015250565b60006142f3601383612fb0565b91506142fe826142bd565b602082019050919050565b60006020820190508181036000830152614322816142e6565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614385602c83612fb0565b915061439082614329565b604082019050919050565b600060208201905081810360008301526143b481614378565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614417602a83612fb0565b9150614422826143bb565b604082019050919050565b600060208201905081810360008301526144468161440a565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614483601983612fb0565b915061448e8261444d565b602082019050919050565b600060208201905081810360008301526144b281614476565b9050919050565b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b60006144ef601c83612fb0565b91506144fa826144b9565b602082019050919050565b6000602082019050818103600083015261451e816144e2565b9050919050565b7f4552433732315073693a2055524920717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000614581602a83612fb0565b915061458c82614525565b604082019050919050565b600060208201905081810360008301526145b081614574565b9050919050565b60006145c38285613caf565b91506145cf8284613caf565b91508190509392505050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614637602f83612fb0565b9150614642826145db565b604082019050919050565b600060208201905081810360008301526146668161462a565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b60006146c9602c83612fb0565b91506146d48261466d565b604082019050919050565b600060208201905081810360008301526146f8816146bc565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b600061475b602783612fb0565b9150614766826146ff565b604082019050919050565b6000602082019050818103600083015261478a8161474e565b9050919050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b60006147ed603583612fb0565b91506147f882614791565b604082019050919050565b6000602082019050818103600083015261481c816147e0565b9050919050565b600061482e82613060565b915061483983613060565b92508261484957614848613935565b5b828206905092915050565b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b60006148b0602583612fb0565b91506148bb82614854565b604082019050919050565b600060208201905081810360008301526148df816148a3565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614942602383612fb0565b915061494d826148e6565b604082019050919050565b6000602082019050818103600083015261497181614935565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061499f82614978565b6149a98185614983565b93506149b9818560208601612fc1565b6149c281612ff4565b840191505092915050565b60006080820190506149e260008301876130f5565b6149ef60208301866130f5565b6149fc604083018561318b565b8181036060830152614a0e8184614994565b905095945050505050565b600081519050614a2881612f16565b92915050565b600060208284031215614a4457614a43612ee0565b5b6000614a5284828501614a19565b91505092915050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b6000614ab7603483612fb0565b9150614ac282614a5b565b604082019050919050565b60006020820190508181036000830152614ae681614aaa565b905091905056fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a264697066735822122027690230928ad68dd327f2b1ccfaec96eb0e2b8050872f4dcde6c196bf729ec164736f6c634300080d0033

Deployed Bytecode

0x6080604052600436106101cd5760003560e01c80636f8b44b0116100f75780639e6a1d7d11610095578063c87b56dd11610064578063c87b56dd1461063c578063c884ef8314610679578063e985e9c5146106b6578063f2fde38b146106f3576101cd565b80639e6a1d7d14610598578063a22cb465146105c1578063add1e709146105ea578063b88d4fde14610613576101cd565b80638462151c116100d15780638462151c146104dc5780638da5cb5b146105195780638f2fc60b1461054457806395d89b411461056d576101cd565b80636f8b44b01461045f57806370a0823114610488578063715018a6146104c5576101cd565b80632a55205a1161016f57806342842e0e1161013e57806342842e0e146103a7578063484b973c146103d057806355f804b3146103f95780636352211e14610422576101cd565b80632a55205a1461031d5780633ccfd60b1461035b5780633fc55f6e1461037257806341f434341461037c576101cd565b8063095ea7b3116101ab578063095ea7b31461027757806318160ddd146102a05780631ad4de59146102cb57806323b872dd146102f4576101cd565b806301ffc9a7146101d257806306fdde031461020f578063081812fc1461023a575b600080fd5b3480156101de57600080fd5b506101f960048036038101906101f49190612f42565b61071c565b6040516102069190612f8a565b60405180910390f35b34801561021b57600080fd5b5061022461073e565b604051610231919061303e565b60405180910390f35b34801561024657600080fd5b50610261600480360381019061025c9190613096565b6107d0565b60405161026e9190613104565b60405180910390f35b34801561028357600080fd5b5061029e6004803603810190610299919061314b565b610855565b005b3480156102ac57600080fd5b506102b561086e565b6040516102c2919061319a565b60405180910390f35b3480156102d757600080fd5b506102f260048036038101906102ed91906131e1565b61087d565b005b34801561030057600080fd5b5061031b6004803603810190610316919061320e565b6108a2565b005b34801561032957600080fd5b50610344600480360381019061033f9190613261565b6108f1565b6040516103529291906132a1565b60405180910390f35b34801561036757600080fd5b50610370610adb565b005b61037a610c70565b005b34801561038857600080fd5b50610391610d93565b60405161039e9190613329565b60405180910390f35b3480156103b357600080fd5b506103ce60048036038101906103c9919061320e565b610da5565b005b3480156103dc57600080fd5b506103f760048036038101906103f2919061314b565b610df4565b005b34801561040557600080fd5b50610420600480360381019061041b91906133a9565b610e67565b005b34801561042e57600080fd5b5061044960048036038101906104449190613096565b610e85565b6040516104569190613104565b60405180910390f35b34801561046b57600080fd5b5061048660048036038101906104819190613096565b610e9d565b005b34801561049457600080fd5b506104af60048036038101906104aa91906133f6565b610eaf565b6040516104bc919061319a565b60405180910390f35b3480156104d157600080fd5b506104da610fae565b005b3480156104e857600080fd5b5061050360048036038101906104fe91906133f6565b610fc2565b60405161051091906134e1565b60405180910390f35b34801561052557600080fd5b5061052e6110bb565b60405161053b9190613104565b60405180910390f35b34801561055057600080fd5b5061056b60048036038101906105669190613547565b6110e5565b005b34801561057957600080fd5b506105826110fb565b60405161058f919061303e565b60405180910390f35b3480156105a457600080fd5b506105bf60048036038101906105ba9190613096565b61118d565b005b3480156105cd57600080fd5b506105e860048036038101906105e39190613587565b61119f565b005b3480156105f657600080fd5b50610611600480360381019061060c91906135c7565b6111b8565b005b34801561061f57600080fd5b5061063a60048036038101906106359190613737565b61124c565b005b34801561064857600080fd5b50610663600480360381019061065e9190613096565b61129d565b604051610670919061303e565b60405180910390f35b34801561068557600080fd5b506106a0600480360381019061069b91906133f6565b6112ce565b6040516106ad919061319a565b60405180910390f35b3480156106c257600080fd5b506106dd60048036038101906106d891906135c7565b6112e6565b6040516106ea9190612f8a565b60405180910390f35b3480156106ff57600080fd5b5061071a600480360381019061071591906133f6565b61137a565b005b6000610727826113fd565b806107375750610736826114df565b5b9050919050565b60606001805461074d906137e9565b80601f0160208091040260200160405190810160405280929190818152602001828054610779906137e9565b80156107c65780601f1061079b576101008083540402835291602001916107c6565b820191906000526020600020905b8154815290600101906020018083116107a957829003601f168201915b5050505050905090565b60006107db82611559565b61081a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108119061388c565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8161085f8161157f565b610869838361167c565b505050565b6000610878611793565b905090565b6108856117af565b80600c60006101000a81548160ff02191690831515021790555050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108e0576108df3361157f565b5b6108eb84848461182d565b50505050565b6000806000600860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610a865760076040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610a9061188d565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610abc91906138db565b610ac69190613964565b90508160000151819350935050509250929050565b610ae36117af565b600073ffffffffffffffffffffffffffffffffffffffff16601160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614158015610b975750600073ffffffffffffffffffffffffffffffffffffffff16601160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b610bd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcd906139e1565b60405180910390fd5b6000479050610c24601160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661271061177084610c1591906138db565b610c1f9190613964565b611897565b610c6d601160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612710610fa084610c5e91906138db565b610c689190613964565b611897565b50565b6002600a5403610cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cac90613a4d565b60405180910390fd5b6002600a819055506000610cc761086e565b9050600c60009054906101000a900460ff16610d18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0f90613ab9565b60405180910390fd5b610d26600182600e5461198b565b6001601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610d769190613ad9565b92505081905550610d88336001611af7565b506001600a81905550565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610de357610de23361157f565b5b610dee848484611b15565b50505050565b610dfc6117af565b6000610e0661086e565b9050600d548282610e179190613ad9565b1115610e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4f90613b7b565b60405180910390fd5b610e628383611af7565b505050565b610e6f6117af565b8181600b9190610e80929190612e33565b505050565b600080610e9183611b35565b50905080915050919050565b610ea56117af565b80600d8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1690613c0d565b60405180910390fd5b600080610f2a611bc6565b90505b610f35611bcb565b811015610fa457610f4581611559565b15610f9357610f5381610e85565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610f925781610f8f90613c2d565b91505b5b80610f9d90613c2d565b9050610f2d565b5080915050919050565b610fb66117af565b610fc06000611bd5565b565b6060600080610fd084610eaf565b905060008167ffffffffffffffff811115610fee57610fed61360c565b5b60405190808252806020026020018201604052801561101c5781602001602082028036833780820191505090505b5090506000611029611bc6565b90505b8284146110af5761103c81611559565b156110a4578573ffffffffffffffffffffffffffffffffffffffff1661106182610e85565b73ffffffffffffffffffffffffffffffffffffffff16036110a3578082858060010196508151811061109657611095613c75565b5b6020026020010181815250505b5b80600101905061102c565b50809350505050919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6110ed6117af565b6110f78282611c9b565b5050565b60606002805461110a906137e9565b80601f0160208091040260200160405190810160405280929190818152602001828054611136906137e9565b80156111835780601f1061115857610100808354040283529160200191611183565b820191906000526020600020905b81548152906001019060200180831161116657829003601f168201915b5050505050905090565b6111956117af565b80600f8190555050565b816111a98161157f565b6111b38383611e30565b505050565b6111c06117af565b81601160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461128a576112893361157f565b5b61129685858585611fb0565b5050505050565b60606112a882612012565b6040516020016112b89190613d2c565b6040516020818303038152906040529050919050565b60106020528060005260406000206000915090505481565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6113826117af565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036113f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e890613dc0565b60405180910390fd5b6113fa81611bd5565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806114c857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806114d857506114d7826120b9565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806115525750611551826113fd565b5b9050919050565b6000611563611bcb565b82108015611578575081611575611bc6565b11155b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611679576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016115f6929190613de0565b602060405180830381865afa158015611613573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116379190613e1e565b61167857806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161166f9190613104565b60405180910390fd5b5b50565b600061168782610e85565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036116f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ee90613ebd565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16611716612123565b73ffffffffffffffffffffffffffffffffffffffff16148061174557506117448161173f612123565b6112e6565b5b611784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177b90613f4f565b60405180910390fd5b61178e838361212b565b505050565b600061179d611bc6565b6004546117aa9190613f6f565b905090565b6117b7612123565b73ffffffffffffffffffffffffffffffffffffffff166117d56110bb565b73ffffffffffffffffffffffffffffffffffffffff161461182b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182290613fef565b60405180910390fd5b565b61183e611838612123565b826121e4565b61187d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187490614081565b60405180910390fd5b6118888383836122c2565b505050565b6000612710905090565b804710156118da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d1906140ed565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516119009061413e565b60006040518083038185875af1925050503d806000811461193d576040519150601f19603f3d011682016040523d82523d6000602084013e611942565b606091505b5050905080611986576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197d906141c5565b60405180910390fd5b505050565b600d54838361199a9190613ad9565b11156119db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d290613b7b565b60405180910390fd5b600f54831115611a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1790614231565b60405180910390fd5b80341015611a63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5a9061429d565b60405180910390fd5b600f5483601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ab19190613ad9565b1115611af2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae990614309565b60405180910390fd5b505050565b611b11828260405180602001604052806000815250612549565b5050565b611b308383836040518060200160405280600081525061124c565b505050565b600080611b4183611559565b611b80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b779061439b565b60405180910390fd5b611b89836125b2565b90506003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b600090565b6000600454905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611ca361188d565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611d01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf89061442d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6790614499565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b611e38612123565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ea5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9c90614505565b60405180910390fd5b8060066000611eb2612123565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611f5f612123565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611fa49190612f8a565b60405180910390a35050565b611fc1611fbb612123565b836121e4565b612000576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff790614081565b60405180910390fd5b61200c848484846125cf565b50505050565b606061201d82611559565b61205c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205390614597565b60405180910390fd5b600061206661262d565b9050600081511161208657604051806020016040528060008152506120b1565b80612090846126bf565b6040516020016120a19291906145b7565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661219e83610e85565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006121ef82611559565b61222e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122259061464d565b60405180910390fd5b600061223983610e85565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806122a857508373ffffffffffffffffffffffffffffffffffffffff16612290846107d0565b73ffffffffffffffffffffffffffffffffffffffff16145b806122b957506122b881856112e6565b5b91505092915050565b6000806122ce83611b35565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612340576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612337906146df565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036123af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a690614771565b60405180910390fd5b6123bc858585600161281f565b6123c760008461212b565b60006001846123d69190613ad9565b90506123ec81600061282590919063ffffffff16565b1580156123ff57506123fc611bcb565b81105b1561246b57856003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061246a81600061288090919063ffffffff16565b5b846003600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508184146124d9576124d884600061288090919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461254186868660016128dd565b505050505050565b6000612553611bcb565b905061255f84846128e3565b61256d600085838686612ac8565b6125ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a390614803565b60405180910390fd5b50505050565b60006125c8826000612c8a90919063ffffffff16565b9050919050565b6125da8484846122c2565b6125e8848484600185612ac8565b612627576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261e90614803565b60405180910390fd5b50505050565b6060600b805461263c906137e9565b80601f0160208091040260200160405190810160405280929190818152602001828054612668906137e9565b80156126b55780601f1061268a576101008083540402835291602001916126b5565b820191906000526020600020905b81548152906001019060200180831161269857829003601f168201915b5050505050905090565b606060008203612706576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061281a565b600082905060005b6000821461273857808061272190613c2d565b915050600a826127319190613964565b915061270e565b60008167ffffffffffffffff8111156127545761275361360c565b5b6040519080825280601f01601f1916602001820160405280156127865781602001600182028036833780820191505090505b5090505b600085146128135760018261279f9190613f6f565b9150600a856127ae9190614823565b60306127ba9190613ad9565b60f81b8183815181106127d0576127cf613c75565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561280c9190613964565b945061278a565b8093505050505b919050565b50505050565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b50505050565b60006128ed611bcb565b905060008211612932576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612929906148c6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036129a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299890614958565b60405180910390fd5b6129ae600084838561281f565b81600460008282546129c09190613ad9565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612a2d81600061288090919063ffffffff16565b612a3a60008483856128dd565b60008190505b8282612a4c9190613ad9565b811015612ac257808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48080612aba90613c2d565b915050612a40565b50505050565b6000612ae98573ffffffffffffffffffffffffffffffffffffffff16612d83565b15612c7c576001905060008490505b8385612b049190613ad9565b811015612c76578573ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b2f612123565b8984876040518563ffffffff1660e01b8152600401612b5194939291906149cd565b6020604051808303816000875af1925050508015612b8d57506040513d601f19601f82011682018060405250810190612b8a9190614a2e565b60015b612c0f573d8060008114612bbd576040519150601f19603f3d011682016040523d82523d6000602084013e612bc2565b606091505b506000815103612c07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bfe90614803565b60405180910390fd5b805181602001fd5b828015612c60575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9250508080612c6e90613c2d565b915050612af8565b50612c81565b600190505b95945050505050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c90506000811115612ce357612cd181612da6565b60ff168203600884901b179350612d7a565b5b600115612d795760008311612d2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2590614acd565b60405180910390fd5b8280600190039350508560000160008481526020019081526020016000205490506000811115612d7457612d6181612da6565b60ff0360ff16600884901b179350612d79565b612ce4565b5b50505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006040518061012001604052806101008152602001614aee610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff612def85612e18565b02901c81518110612e0357612e02613c75565b5b602001015160f81c60f81b60f81c9050919050565b6000808211612e2657600080fd5b8160000382169050919050565b828054612e3f906137e9565b90600052602060002090601f016020900481019282612e615760008555612ea8565b82601f10612e7a57803560ff1916838001178555612ea8565b82800160010185558215612ea8579182015b82811115612ea7578235825591602001919060010190612e8c565b5b509050612eb59190612eb9565b5090565b5b80821115612ed2576000816000905550600101612eba565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612f1f81612eea565b8114612f2a57600080fd5b50565b600081359050612f3c81612f16565b92915050565b600060208284031215612f5857612f57612ee0565b5b6000612f6684828501612f2d565b91505092915050565b60008115159050919050565b612f8481612f6f565b82525050565b6000602082019050612f9f6000830184612f7b565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612fdf578082015181840152602081019050612fc4565b83811115612fee576000848401525b50505050565b6000601f19601f8301169050919050565b600061301082612fa5565b61301a8185612fb0565b935061302a818560208601612fc1565b61303381612ff4565b840191505092915050565b600060208201905081810360008301526130588184613005565b905092915050565b6000819050919050565b61307381613060565b811461307e57600080fd5b50565b6000813590506130908161306a565b92915050565b6000602082840312156130ac576130ab612ee0565b5b60006130ba84828501613081565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006130ee826130c3565b9050919050565b6130fe816130e3565b82525050565b600060208201905061311960008301846130f5565b92915050565b613128816130e3565b811461313357600080fd5b50565b6000813590506131458161311f565b92915050565b6000806040838503121561316257613161612ee0565b5b600061317085828601613136565b925050602061318185828601613081565b9150509250929050565b61319481613060565b82525050565b60006020820190506131af600083018461318b565b92915050565b6131be81612f6f565b81146131c957600080fd5b50565b6000813590506131db816131b5565b92915050565b6000602082840312156131f7576131f6612ee0565b5b6000613205848285016131cc565b91505092915050565b60008060006060848603121561322757613226612ee0565b5b600061323586828701613136565b935050602061324686828701613136565b925050604061325786828701613081565b9150509250925092565b6000806040838503121561327857613277612ee0565b5b600061328685828601613081565b925050602061329785828601613081565b9150509250929050565b60006040820190506132b660008301856130f5565b6132c3602083018461318b565b9392505050565b6000819050919050565b60006132ef6132ea6132e5846130c3565b6132ca565b6130c3565b9050919050565b6000613301826132d4565b9050919050565b6000613313826132f6565b9050919050565b61332381613308565b82525050565b600060208201905061333e600083018461331a565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261336957613368613344565b5b8235905067ffffffffffffffff81111561338657613385613349565b5b6020830191508360018202830111156133a2576133a161334e565b5b9250929050565b600080602083850312156133c0576133bf612ee0565b5b600083013567ffffffffffffffff8111156133de576133dd612ee5565b5b6133ea85828601613353565b92509250509250929050565b60006020828403121561340c5761340b612ee0565b5b600061341a84828501613136565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61345881613060565b82525050565b600061346a838361344f565b60208301905092915050565b6000602082019050919050565b600061348e82613423565b613498818561342e565b93506134a38361343f565b8060005b838110156134d45781516134bb888261345e565b97506134c683613476565b9250506001810190506134a7565b5085935050505092915050565b600060208201905081810360008301526134fb8184613483565b905092915050565b60006bffffffffffffffffffffffff82169050919050565b61352481613503565b811461352f57600080fd5b50565b6000813590506135418161351b565b92915050565b6000806040838503121561355e5761355d612ee0565b5b600061356c85828601613136565b925050602061357d85828601613532565b9150509250929050565b6000806040838503121561359e5761359d612ee0565b5b60006135ac85828601613136565b92505060206135bd858286016131cc565b9150509250929050565b600080604083850312156135de576135dd612ee0565b5b60006135ec85828601613136565b92505060206135fd85828601613136565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61364482612ff4565b810181811067ffffffffffffffff821117156136635761366261360c565b5b80604052505050565b6000613676612ed6565b9050613682828261363b565b919050565b600067ffffffffffffffff8211156136a2576136a161360c565b5b6136ab82612ff4565b9050602081019050919050565b82818337600083830152505050565b60006136da6136d584613687565b61366c565b9050828152602081018484840111156136f6576136f5613607565b5b6137018482856136b8565b509392505050565b600082601f83011261371e5761371d613344565b5b813561372e8482602086016136c7565b91505092915050565b6000806000806080858703121561375157613750612ee0565b5b600061375f87828801613136565b945050602061377087828801613136565b935050604061378187828801613081565b925050606085013567ffffffffffffffff8111156137a2576137a1612ee5565b5b6137ae87828801613709565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061380157607f821691505b602082108103613814576138136137ba565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613876602f83612fb0565b91506138818261381a565b604082019050919050565b600060208201905081810360008301526138a581613869565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006138e682613060565b91506138f183613060565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561392a576139296138ac565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061396f82613060565b915061397a83613060565b92508261398a57613989613935565b5b828204905092915050565b7f506c6561736520736574206d656d626572206164647265737300000000000000600082015250565b60006139cb601983612fb0565b91506139d682613995565b602082019050919050565b600060208201905081810360008301526139fa816139be565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613a37601f83612fb0565b9150613a4282613a01565b602082019050919050565b60006020820190508181036000830152613a6681613a2a565b9050919050565b7f4265666f72652073616c6520626567696e2e0000000000000000000000000000600082015250565b6000613aa3601283612fb0565b9150613aae82613a6d565b602082019050919050565b60006020820190508181036000830152613ad281613a96565b9050919050565b6000613ae482613060565b9150613aef83613060565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613b2457613b236138ac565b5b828201905092915050565b7f4d617820737570706c79206f7665720000000000000000000000000000000000600082015250565b6000613b65600f83612fb0565b9150613b7082613b2f565b602082019050919050565b60006020820190508181036000830152613b9481613b58565b9050919050565b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b6000613bf7602d83612fb0565b9150613c0282613b9b565b604082019050919050565b60006020820190508181036000830152613c2681613bea565b9050919050565b6000613c3882613060565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613c6a57613c696138ac565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b6000613cba82612fa5565b613cc48185613ca4565b9350613cd4818560208601612fc1565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000613d16600583613ca4565b9150613d2182613ce0565b600582019050919050565b6000613d388284613caf565b9150613d4382613d09565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613daa602683612fb0565b9150613db582613d4e565b604082019050919050565b60006020820190508181036000830152613dd981613d9d565b9050919050565b6000604082019050613df560008301856130f5565b613e0260208301846130f5565b9392505050565b600081519050613e18816131b5565b92915050565b600060208284031215613e3457613e33612ee0565b5b6000613e4284828501613e09565b91505092915050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b6000613ea7602483612fb0565b9150613eb282613e4b565b604082019050919050565b60006020820190508181036000830152613ed681613e9a565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b6000613f39603b83612fb0565b9150613f4482613edd565b604082019050919050565b60006020820190508181036000830152613f6881613f2c565b9050919050565b6000613f7a82613060565b9150613f8583613060565b925082821015613f9857613f976138ac565b5b828203905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613fd9602083612fb0565b9150613fe482613fa3565b602082019050919050565b6000602082019050818103600083015261400881613fcc565b9050919050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b600061406b603483612fb0565b91506140768261400f565b604082019050919050565b6000602082019050818103600083015261409a8161405e565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b60006140d7601d83612fb0565b91506140e2826140a1565b602082019050919050565b60006020820190508181036000830152614106816140ca565b9050919050565b600081905092915050565b50565b600061412860008361410d565b915061413382614118565b600082019050919050565b60006141498261411b565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b60006141af603a83612fb0565b91506141ba82614153565b604082019050919050565b600060208201905081810360008301526141de816141a2565b9050919050565b7f4d696e74207175616e74697479206f7665720000000000000000000000000000600082015250565b600061421b601283612fb0565b9150614226826141e5565b602082019050919050565b6000602082019050818103600083015261424a8161420e565b9050919050565b7f4e6f7420656e6f7567682066756e647300000000000000000000000000000000600082015250565b6000614287601083612fb0565b915061429282614251565b602082019050919050565b600060208201905081810360008301526142b68161427a565b9050919050565b7f416c726561647920636c61696d6564206d617800000000000000000000000000600082015250565b60006142f3601383612fb0565b91506142fe826142bd565b602082019050919050565b60006020820190508181036000830152614322816142e6565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614385602c83612fb0565b915061439082614329565b604082019050919050565b600060208201905081810360008301526143b481614378565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614417602a83612fb0565b9150614422826143bb565b604082019050919050565b600060208201905081810360008301526144468161440a565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614483601983612fb0565b915061448e8261444d565b602082019050919050565b600060208201905081810360008301526144b281614476565b9050919050565b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b60006144ef601c83612fb0565b91506144fa826144b9565b602082019050919050565b6000602082019050818103600083015261451e816144e2565b9050919050565b7f4552433732315073693a2055524920717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000614581602a83612fb0565b915061458c82614525565b604082019050919050565b600060208201905081810360008301526145b081614574565b9050919050565b60006145c38285613caf565b91506145cf8284613caf565b91508190509392505050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614637602f83612fb0565b9150614642826145db565b604082019050919050565b600060208201905081810360008301526146668161462a565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b60006146c9602c83612fb0565b91506146d48261466d565b604082019050919050565b600060208201905081810360008301526146f8816146bc565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b600061475b602783612fb0565b9150614766826146ff565b604082019050919050565b6000602082019050818103600083015261478a8161474e565b9050919050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b60006147ed603583612fb0565b91506147f882614791565b604082019050919050565b6000602082019050818103600083015261481c816147e0565b9050919050565b600061482e82613060565b915061483983613060565b92508261484957614848613935565b5b828206905092915050565b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b60006148b0602583612fb0565b91506148bb82614854565b604082019050919050565b600060208201905081810360008301526148df816148a3565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614942602383612fb0565b915061494d826148e6565b604082019050919050565b6000602082019050818103600083015261497181614935565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061499f82614978565b6149a98185614983565b93506149b9818560208601612fc1565b6149c281612ff4565b840191505092915050565b60006080820190506149e260008301876130f5565b6149ef60208301866130f5565b6149fc604083018561318b565b8181036060830152614a0e8184614994565b905095945050505050565b600081519050614a2881612f16565b92915050565b600060208284031215614a4457614a43612ee0565b5b6000614a5284828501614a19565b91505092915050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b6000614ab7603483612fb0565b9150614ac282614a5b565b604082019050919050565b60006020820190508181036000830152614ae681614aaa565b905091905056fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a264697066735822122027690230928ad68dd327f2b1ccfaec96eb0e2b8050872f4dcde6c196bf729ec164736f6c634300080d0033

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.