ETH Price: $3,492.92 (+4.40%)

Token

On-Chain Alphabet (ALPHABET)
 

Overview

Max Total Supply

500 ALPHABET

Holders

430

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 ALPHABET
0x1C6D8d942410248A3487c880Ad9FbBd1e913FE86
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:
AlphabetToken

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

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

/*
 * Created by Satoshi Nakajima (@snakajima)
 */

pragma solidity ^0.8.6;

import "@openzeppelin/contracts/utils/Strings.sol";
import './libs/ProviderToken2.sol';
import "./interfaces/ITokenGate.sol";

contract AlphabetToken is ProviderToken2 {
  using Strings for uint256;
  ITokenGate immutable tokenGate;

  constructor(
    ITokenGate _tokenGate,
    IAssetProvider _assetProvider
  ) ProviderToken2(_assetProvider, "On-Chain Alphabet", "ALPHABET") {
    tokenGate = _tokenGate;
    description = "This is a part of Fully On-chain Generative Art project (https://fullyonchain.xyz/). All images are dymically generated on the blockchain.";
    mintPrice = 1e16; //0.01 ether, updatable
    mintLimit = 250; // initial limit, updatable with a hard limit of 2,500
  }

  function tokenName(uint256 _tokenId) internal pure override returns(string memory) {
    return string(abi.encodePacked('Alphabet ', _tokenId.toString()));
  }

  function mint() public override virtual payable returns(uint256 tokenId) {
    require(nextTokenId < 2500, "Sold out"); // hard limit, regardless of updatable "mintLimit"
    require(msg.value >= mintPriceFor(msg.sender), 'Must send the mint price');
    require(balanceOf(msg.sender) < 3, "Too many tokens");
    tokenId = super.mint();
    assetProvider.processPayout{value:msg.value}(tokenId); // 100% distribution to the asset provider
  }

  function mintPriceFor(address _wallet) public override view virtual returns(uint256) {
    if (balanceOf(_wallet) == 1) {
      return mintPrice * 2; // x2 for second
    } else if (balanceOf(_wallet) == 2) {
      return mintPrice * 4; // x4 for third
    }
    if (tokenGate.balanceOf(_wallet) > 0) {
      return mintPrice / 2; // 50% off
    }
    return mintPrice;
  }

  function _processRoyalty(uint _salesPrice, uint _tokenId) internal override returns(uint256 royalty) {
    royalty = _salesPrice * 50 / 1000; // 5.0%
    assetProvider.processPayout{value:royalty}(_tokenId);
  }
}

File 2 of 20 : ITokenGate.sol
// SPDX-License-Identifier: MIT

/*
 * Created by Satoshi Nakajima (@snakajima)
 */

pragma solidity ^0.8.6;

interface ITokenGate {
  // Intentially same as ERC721's balanceOf
  function balanceOf(address _wallet) external view returns (uint256 balance);
}

File 3 of 20 : ProviderToken2.sol
// SPDX-License-Identifier: MIT

/**
 * This is a part of an effort to create a decentralized autonomous marketplace for digital assets,
 * which allows artists and developers to sell their arts and generative arts.
 *
 * Please see "https://fullyonchain.xyz/" for details. 
 *
 * Created by Satoshi Nakajima (@snakajima)
 */

pragma solidity ^0.8.6;

// import { Ownable } from '@openzeppelin/contracts/access/Ownable.sol';
// import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "../packages/ERC721P2P/ERC721P2P.sol";
import { Base64 } from 'base64-sol/base64.sol';
import "@openzeppelin/contracts/utils/Strings.sol";
import "assetprovider.sol/IAssetProvider.sol";

/**
 * ProviderToken is an abstract implentation of ERC721, which is built on top of an asset provider.
 * The specified asset provider is responsible in providing images for NFTs in SVG format,
 * which turns them into fully on-chain NFTs.
 *
 * When implementing the mint method, and it should call processPayout method of the asset provider like this:
 *
 *   provider.processPayout{value:msg.value}(assetId)
 *
 */
abstract contract ProviderToken2 is ERC721P2P {
  using Strings for uint256;
  using Strings for uint16;

  uint public nextTokenId;

  // To be specified by the concrete contract
  string public description; 
  uint public mintPrice; 
  uint public mintLimit; 

  IAssetProvider public immutable assetProvider;

  constructor(
    IAssetProvider _assetProvider,
    string memory _title,
    string memory _shortTitle
  ) ERC721(_title, _shortTitle)  {
    assetProvider = _assetProvider;
  }

  function setDescription(string memory _description) external onlyOwner {
      description = _description;
  }

  function setMintPrice(uint256 _price) external onlyOwner {
    mintPrice = _price;
  }

  function setMintLimit(uint256 _limit) external onlyOwner {
    mintLimit = _limit;
  }

  string constant SVGHeader = '<svg viewBox="0 0 1024 1024'
      '"  xmlns="http://www.w3.org/2000/svg">\n'
      '<defs>\n';

  /*
   * A function of IAssetStoreToken interface.
   * It generates SVG with the specified style, using the given "SVG Part".
   */
  function generateSVG(uint256 _assetId) internal view returns (string memory) {
    // Constants of non-value type not yet implemented by Solidity
    (string memory svgPart, string memory tag) = assetProvider.generateSVGPart(_assetId);
    return string(abi.encodePacked(
      SVGHeader, 
      svgPart,
      '</defs>\n'
      '<use href="#', tag, '" />\n'
      '</svg>\n'));
  }

  /**
    * @notice A distinct Uniform Resource Identifier (URI) for a given asset.
    * @dev See {IERC721Metadata-tokenURI}.
    */
  function tokenURI(uint256 _tokenId) public view override returns (string memory) {
    require(_exists(_tokenId), 'ProviderToken.tokenURI: nonexistent token');
    bytes memory image = bytes(generateSVG(_tokenId));

    return string(
      abi.encodePacked(
        'data:application/json;base64,',
        Base64.encode(
          bytes(
            abi.encodePacked(
              '{"name":"', tokenName(_tokenId), 
                '","description":"', description, 
                '","attributes":[', generateTraits(_tokenId), 
                '],"image":"data:image/svg+xml;base64,', 
                Base64.encode(image), 
              '"}')
          )
        )
      )
    );
  }

  function tokenName(uint256 _tokenId) internal view virtual returns(string memory) {
    return _tokenId.toString();
  }

  /**
   * For non-free minting,
   * 1. Override this method
   * 2. Check for the required payment, by calling mintPriceFor()
   * 3. Call the processPayout method of the asset provider with appropriate value
   */
  function mint() public virtual payable returns(uint256 tokenId) {
    require(nextTokenId < mintLimit, "Sold out");
    tokenId = nextTokenId++; 
    _safeMint(msg.sender, tokenId);
  }

  /**
   * The concreate contract may override to offer custom pricing,
   * such as token-gated discount. 
   */
  function mintPriceFor(address) public virtual view returns(uint256) {
    return mintPrice;
  }

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

  function generateTraits(uint256 _tokenId) internal view returns (bytes memory traits) {
    traits = bytes(assetProvider.generateTraits(_tokenId));
  }

  function debugTokenURI(uint256 _tokenId) public view returns (string memory uri, uint256 gas) {
    gas = gasleft();
    uri = tokenURI(_tokenId);
    gas -= gasleft();
  }
}

File 4 of 20 : 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 20 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE_ENCODE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(        input,  0x3F))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

File 6 of 20 : IAssetProvider.sol
// SPDX-License-Identifier: MIT

/**
 * This is a part of an effort to create a decentralized autonomous marketplace for digital assets,
 * which allows artists and developers to sell their arts and generative arts.
 *
 * Please see "https://fullyonchain.xyz/" for details. 
 *
 * Created by Satoshi Nakajima (@snakajima)
 */
pragma solidity ^0.8.6;

/**
 * IAssetProvider is the interface each asset provider implements.
 * We assume there are three types of asset providers.
 * 1. Static asset provider, which has a collection of assets (either in the storage or the code) and returns them.
 * 2. Generative provider, which dynamically (but deterministically from the seed) generates assets.
 * 3. Data visualizer, which generates assets based on various data on the blockchain.
 *
 * Note: Asset providers MUST implements IERC165 (supportsInterface method) as well. 
 */
interface IAssetProvider {
  struct ProviderInfo {
    string key;  // short and unique identifier of this provider (e.g., "asset")
    string name; // human readable display name (e.g., "Asset Store")
    IAssetProvider provider;
  }
  function getProviderInfo() external view returns(ProviderInfo memory);

  /**
   * This function returns SVGPart and the tag. The SVGPart consists of one or more SVG elements.
   * The tag specifies the identifier of the SVG element to be displayed (using <use> tag).
   * The tag is the combination of the provider key and assetId (e.e., "asset123")
   */
  function generateSVGPart(uint256 _assetId) external view returns(string memory svgPart, string memory tag);

  /**
   * This is an optional function, which returns various traits of the image for ERC721 token.
   * Format: {"trait_type":"TRAIL_TYPE","value":"VALUE"},{...}
   */
  function generateTraits(uint256 _assetId) external view returns (string memory);
  
  /**
   * This function returns the number of assets available from this provider. 
   * If the total supply is 100, assetIds of available assets are 0,1,...99.
   * The generative providers may returns 0, which indicates the provider dynamically but
   * deterministically generates assets using the given assetId as the random seed.
   */
  function totalSupply() external view returns(uint256);

  /**
   * Returns the onwer. The registration update is possible only if both contracts have the same owner. 
   */
  function getOwner() external view returns (address);

  /**
   * This function processes the royalty payment from the decentralized autonomous marketplace. 
   */
  function processPayout(uint256 _assetId) external payable;

  event Payout(string providerKey, uint256 assetId, address payable to, uint256 amount);
}

interface IAssetProviderEx is IAssetProvider {
  function generateSVGDocument(uint256 _assetId) external view returns(string memory document);
}

File 7 of 20 : ERC721P2P.sol
// SPDX-License-Identifier: MIT

/**
 * This is a part of an effort to update ERC271 so that the sales transaction
 * becomes decentralized and trustless, which makes it possible to enforce
 * royalities without relying on marketplaces. 
 *
 * Please see "https://hackmd.io/@snakajima/BJqG3fkSo" for details. 
 *
 * Created by Satoshi Nakajima (@snakajima)
 */

pragma solidity ^0.8.6;

import "./IERC721P2P.sol";
import { Ownable } from '@openzeppelin/contracts/access/Ownable.sol';
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "./opensea/DefaultOperatorFilterer.sol";

// From https://github.com/ProjectOpenSea/operator-filter-registry/blob/main/src/example/ExampleERC721.sol
abstract contract ERC721WithOperatorFilter is ERC721, DefaultOperatorFilterer {
  function setApprovalForAll(address operator, bool approved) public override virtual onlyAllowedOperatorApproval(operator) {
      super.setApprovalForAll(operator, approved);
  }

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

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

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

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

abstract contract ERC721P2P is IERC721P2P, ERC721WithOperatorFilter, Ownable {
  mapping (uint256 => uint256) prices;

  function setPriceOf(uint256 _tokenId, uint256 _price) public override {
    require(ownerOf(_tokenId) == msg.sender, "Only the onwer can set the price");
    prices[_tokenId] = _price;
  }

  function getPriceOf(uint256 _tokenId) external view override returns(uint256) {
    return prices[_tokenId];
  }

  function purchase(uint256 _tokenId, address _buyer, address _facilitator) external payable override {
    uint256 price = prices[_tokenId];
    require(price > 0, "Token is not on sale");
    require(msg.value >= price, "Not enough fund");
    uint256 comission = _processSalesCommission(msg.value, _facilitator);
    uint256 royalty = _processRoyalty(msg.value, _tokenId);
    address tokenOwner = ownerOf(_tokenId);
    address payable payableTo = payable(tokenOwner);
    payableTo.transfer(msg.value - comission - royalty);

    _transfer(tokenOwner, _buyer, _tokenId);
    prices[_tokenId] = 0; // not on sale any more
  }

  // 2.5% to the facilitator (marketplace)
  function _processSalesCommission(uint _salesPrice, address _facilitator) internal virtual returns(uint256 comission) {    
    if (_facilitator != address(0)) {
      comission = _salesPrice * 25 / 1000; // 2.5%
      address payable payableTo = payable(_facilitator);
      payableTo.transfer(comission);
    }
  }

  // Subclass needs to override to pay royalties to creator(s) here
  function _processRoyalty(uint _salesPrice, uint _tokenId) internal virtual returns(uint256 royalty) {
    /*
    royalty = _salesPrice * 50 / 1000; // 5.0%
    address payable payableTo = payable(address(_creator));
    payableTo.transfer(royalty);
    */
  }

  function acceptOffer(uint256 _tokenId, IERC721Marketplace _dealer, uint256 _price) external override {
    setPriceOf(_tokenId, _price);
    _dealer.acceptOffer(this, _tokenId, _price);
  }

  /**
  * If you want to completely disable all the transfers via marketplaces, 
  * override _isApprovedOrOwner like this.
  *
  function _isApprovedOrOwner(address spender, uint256 tokenId) internal view override returns (bool) {
    require(_exists(tokenId), "ERC721: operator query for nonexistent token");
    address owner = ERC721.ownerOf(tokenId);
    return (spender == owner); // only owner can transfer it
  }
  */
}

File 8 of 20 : IERC721P2P.sol
// SPDX-License-Identifier: MIT

/**
 * This is a part of an effort to update ERC271 so that the sales transaction
 * becomes decentralized and trustless, which makes it possible to enforce
 * royalities without relying on marketplaces. 
 *
 * Please see "https://hackmd.io/@snakajima/BJqG3fkSo" for details. 
 *
 * Created by Satoshi Nakajima (@snakajima)
 */

pragma solidity ^0.8.6;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

interface IERC721Marketplace {
  // Make an offer to a specific token
  function makeAnOffer(IERC721P2P _contract, uint256 _tokenId, uint256 _price) external payable;
  // Withdraw an offer to a specific token (onlyOfferMaker)
  function withdrawAnOffer(IERC721P2P _contract, uint256 _tokenId) external;
  // Get the current offer to the specifiedToken
  function getTheBestOffer(IERC721P2P _contract, uint256 _tokenId) external view 
      returns(uint256, address);
  // It will call the purchase method of _contract with the specified amount of payment.
  function acceptOffer(IERC721P2P _contract, uint256 _tokenId, uint256 _price) external;
}

interface IERC721P2P is IERC721 {
  // Set the price of the specified token (onlyTokenOwner)
  function setPriceOf(uint256 _tokenId, uint256 _price) external;
  // Get the current price of the specified token
  function getPriceOf(uint256 _tokenId) external view returns(uint256);
  // It will transfer the token and distribute the money, including royalties
  function purchase(uint256 _tokenId, address _buyer, address _facilitator) external payable;
  // It sets the price and calls the acceptOffer method of _dealer (onlyTokenOwner)
  function acceptOffer(uint256 _tokenId, IERC721Marketplace _dealer, uint256 _price) external;
}

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

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

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 10 of 20 : 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 11 of 20 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        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 overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 12 of 20 : 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 13 of 20 : 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 14 of 20 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.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.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

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

    modifier onlyAllowedOperator(address from) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // 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) {
                _;
                return;
            }
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
        _;
    }
}

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

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 16 of 20 : 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 17 of 20 : 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 18 of 20 : 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 19 of 20 : 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 20 of 20 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ITokenGate","name":"_tokenGate","type":"address"},{"internalType":"contract IAssetProvider","name":"_assetProvider","type":"address"}],"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":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"contract IERC721Marketplace","name":"_dealer","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"acceptOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"assetProvider","outputs":[{"internalType":"contract IAssetProvider","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"debugTokenURI","outputs":[{"internalType":"string","name":"uri","type":"string"},{"internalType":"uint256","name":"gas","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getPriceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"mintPriceFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_buyer","type":"address"},{"internalType":"address","name":"_facilitator","type":"address"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_description","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPriceOf","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":[],"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"}]

60c06040523480156200001157600080fd5b506040516200583b3803806200583b83398181016040528101906200003791906200053f565b806040518060400160405280601181526020017f4f6e2d436861696e20416c7068616265740000000000000000000000000000008152506040518060400160405280600881526020017f414c504841424554000000000000000000000000000000000000000000000000815250733cc6cdda760b79bafa08df41ecfa224f810dceb6600183838160009081620000ce919062000800565b508060019081620000e0919062000800565b50505060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620002d85780156200019e576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b815260040162000164929190620008f8565b600060405180830381600087803b1580156200017f57600080fd5b505af115801562000194573d6000803e3d6000fd5b50505050620002d7565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000258576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200021e929190620008f8565b600060405180830381600087803b1580156200023957600080fd5b505af11580156200024e573d6000803e3d6000fd5b50505050620002d6565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002a1919062000925565b600060405180830381600087803b158015620002bc57600080fd5b505af1158015620002d1573d6000803e3d6000fd5b505050505b5b5b5050620002fa620002ee620003ae60201b60201c565b620003b660201b60201c565b8273ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250505050508173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250506040518060c00160405280608a8152602001620057b1608a9139600990816200038f919062000800565b50662386f26fc10000600a8190555060fa600b81905550505062000942565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004ae8262000481565b9050919050565b6000620004c282620004a1565b9050919050565b620004d481620004b5565b8114620004e057600080fd5b50565b600081519050620004f481620004c9565b92915050565b60006200050782620004a1565b9050919050565b6200051981620004fa565b81146200052557600080fd5b50565b60008151905062000539816200050e565b92915050565b600080604083850312156200055957620005586200047c565b5b60006200056985828601620004e3565b92505060206200057c8582860162000528565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200060857607f821691505b6020821081036200061e576200061d620005c0565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006887fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000649565b62000694868362000649565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620006e1620006db620006d584620006ac565b620006b6565b620006ac565b9050919050565b6000819050919050565b620006fd83620006c0565b620007156200070c82620006e8565b84845462000656565b825550505050565b600090565b6200072c6200071d565b62000739818484620006f2565b505050565b5b8181101562000761576200075560008262000722565b6001810190506200073f565b5050565b601f821115620007b0576200077a8162000624565b620007858462000639565b8101602085101562000795578190505b620007ad620007a48562000639565b8301826200073e565b50505b505050565b600082821c905092915050565b6000620007d560001984600802620007b5565b1980831691505092915050565b6000620007f08383620007c2565b9150826002028217905092915050565b6200080b8262000586565b67ffffffffffffffff81111562000827576200082662000591565b5b620008338254620005ef565b6200084082828562000765565b600060209050601f83116001811462000878576000841562000863578287015190505b6200086f8582620007e2565b865550620008df565b601f198416620008888662000624565b60005b82811015620008b2578489015182556001820191506020850194506020810190506200088b565b86831015620008d25784890151620008ce601f891682620007c2565b8355505b6001600288020188555050505b505050505050565b620008f281620004a1565b82525050565b60006040820190506200090f6000830185620008e7565b6200091e6020830184620008e7565b9392505050565b60006020820190506200093c6000830184620008e7565b92915050565b60805160a051614e2d620009846000396000610c68015260008181610b89015281816115c901528181611d5f015281816122a401526123bf0152614e2d6000f3fe6080604052600436106101ee5760003560e01c806375794a3c1161010d578063a370f7d7116100a0578063cc44ab411161006f578063cc44ab41146106e5578063e985e9c514610723578063f2fde38b14610760578063f4a0a52814610789578063fba49e4f146107b2576101ee565b8063a370f7d714610617578063b54b4fb914610642578063b88d4fde1461067f578063c87b56dd146106a8576101ee565b806395d89b41116100dc57806395d89b411461056f578063996517cf1461059a5780639e6a1d7d146105c5578063a22cb465146105ee576101ee565b806375794a3c146104c75780638da5cb5b146104f257806390c3f38f1461051d5780639589d7b914610546576101ee565b80633b7f8f15116101855780636817c76c116101545780636817c76c1461041d57806370a0823114610448578063715018a6146104855780637284e4161461049c576101ee565b80633b7f8f151461037057806341f434341461038c57806342842e0e146103b75780636352211e146103e0576101ee565b80631249c58b116101c15780631249c58b146102c15780631346d8ea146102df57806318160ddd1461031c57806323b872dd14610347576101ee565b806301ffc9a7146101f357806306fdde0314610230578063081812fc1461025b578063095ea7b314610298575b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190612ecb565b6107db565b6040516102279190612f13565b60405180910390f35b34801561023c57600080fd5b506102456108bd565b6040516102529190612fbe565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d9190613016565b61094f565b60405161028f9190613084565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba91906130cb565b610995565b005b6102c9610a9f565b6040516102d6919061311a565b60405180910390f35b3480156102eb57600080fd5b5061030660048036038101906103019190613135565b610c16565b604051610313919061311a565b60405180910390f35b34801561032857600080fd5b50610331610d27565b60405161033e919061311a565b60405180910390f35b34801561035357600080fd5b5061036e60048036038101906103699190613162565b610d31565b005b61038a600480360381019061038591906131b5565b610e81565b005b34801561039857600080fd5b506103a1610fd8565b6040516103ae9190613267565b60405180910390f35b3480156103c357600080fd5b506103de60048036038101906103d99190613162565b610fea565b005b3480156103ec57600080fd5b5061040760048036038101906104029190613016565b61113a565b6040516104149190613084565b60405180910390f35b34801561042957600080fd5b506104326111eb565b60405161043f919061311a565b60405180910390f35b34801561045457600080fd5b5061046f600480360381019061046a9190613135565b6111f1565b60405161047c919061311a565b60405180910390f35b34801561049157600080fd5b5061049a6112a8565b005b3480156104a857600080fd5b506104b16112bc565b6040516104be9190612fbe565b60405180910390f35b3480156104d357600080fd5b506104dc61134a565b6040516104e9919061311a565b60405180910390f35b3480156104fe57600080fd5b50610507611350565b6040516105149190613084565b60405180910390f35b34801561052957600080fd5b50610544600480360381019061053f91906133b7565b61137a565b005b34801561055257600080fd5b5061056d6004803603810190610568919061343e565b611395565b005b34801561057b57600080fd5b50610584611413565b6040516105919190612fbe565b60405180910390f35b3480156105a657600080fd5b506105af6114a5565b6040516105bc919061311a565b60405180910390f35b3480156105d157600080fd5b506105ec60048036038101906105e79190613016565b6114ab565b005b3480156105fa57600080fd5b50610615600480360381019061061091906134bd565b6114bd565b005b34801561062357600080fd5b5061062c6115c7565b604051610639919061351e565b60405180910390f35b34801561064e57600080fd5b5061066960048036038101906106649190613016565b6115eb565b604051610676919061311a565b60405180910390f35b34801561068b57600080fd5b506106a660048036038101906106a191906135da565b611608565b005b3480156106b457600080fd5b506106cf60048036038101906106ca9190613016565b61175b565b6040516106dc9190612fbe565b60405180910390f35b3480156106f157600080fd5b5061070c60048036038101906107079190613016565b611820565b60405161071a92919061365d565b60405180910390f35b34801561072f57600080fd5b5061074a6004803603810190610745919061368d565b611845565b6040516107579190612f13565b60405180910390f35b34801561076c57600080fd5b5061078760048036038101906107829190613135565b6118d9565b005b34801561079557600080fd5b506107b060048036038101906107ab9190613016565b61195c565b005b3480156107be57600080fd5b506107d960048036038101906107d491906136cd565b61196e565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108a657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108b657506108b582611a00565b5b9050919050565b6060600080546108cc9061373c565b80601f01602080910402602001604051908101604052809291908181526020018280546108f89061373c565b80156109455780601f1061091a57610100808354040283529160200191610945565b820191906000526020600020905b81548152906001019060200180831161092857829003601f168201915b5050505050905090565b600061095a82611a6a565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8160006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610a90576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610a0d92919061376d565b602060405180830381865afa158015610a2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4e91906137ab565b610a8f57806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610a869190613084565b60405180910390fd5b5b610a9a8383611ab5565b505050565b60006109c460085410610ae7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ade90613824565b60405180910390fd5b610af033610c16565b341015610b32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2990613890565b60405180910390fd5b6003610b3d336111f1565b10610b7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b74906138fc565b60405180910390fd5b610b85611bcc565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166389ee68bf34836040518363ffffffff1660e01b8152600401610be1919061311a565b6000604051808303818588803b158015610bfa57600080fd5b505af1158015610c0e573d6000803e3d6000fd5b505050505090565b60006001610c23836111f1565b03610c3e576002600a54610c37919061394b565b9050610d22565b6002610c49836111f1565b03610c64576004600a54610c5d919061394b565b9050610d22565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401610cbf9190613084565b602060405180830381865afa158015610cdc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0091906139a2565b1115610d1c576002600a54610d1591906139fe565b9050610d22565b600a5490505b919050565b6000600854905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610e6f573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610da357610d9e848484611c3a565b610e7b565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610dec92919061376d565b602060405180830381865afa158015610e09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2d91906137ab565b610e6e57336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610e659190613084565b60405180910390fd5b5b610e7a848484611c3a565b5b50505050565b60006007600085815260200190815260200160002054905060008111610edc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed390613a7b565b60405180910390fd5b80341015610f1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1690613ae7565b60405180910390fd5b6000610f2b3484611c9a565b90506000610f393487611d3f565b90506000610f468761113a565b905060008190508073ffffffffffffffffffffffffffffffffffffffff166108fc848634610f749190613b07565b610f7e9190613b07565b9081150290604051600060405180830381858888f19350505050158015610fa9573d6000803e3d6000fd5b50610fb582888a611def565b6000600760008a8152602001908152602001600020819055505050505050505050565b6daaeb6d7670e522a718067333cd4e81565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611128573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361105c57611057848484612055565b611134565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b81526004016110a592919061376d565b602060405180830381865afa1580156110c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e691906137ab565b61112757336040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161111e9190613084565b60405180910390fd5b5b611133848484612055565b5b50505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d990613b87565b60405180910390fd5b80915050919050565b600a5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611261576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125890613c19565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112b0612075565b6112ba60006120f3565b565b600980546112c99061373c565b80601f01602080910402602001604051908101604052809291908181526020018280546112f59061373c565b80156113425780601f1061131757610100808354040283529160200191611342565b820191906000526020600020905b81548152906001019060200180831161132557829003601f168201915b505050505081565b60085481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611382612075565b80600990816113919190613ddb565b5050565b61139f838261196e565b8173ffffffffffffffffffffffffffffffffffffffff16633c6fc8173085846040518463ffffffff1660e01b81526004016113dc93929190613ece565b600060405180830381600087803b1580156113f657600080fd5b505af115801561140a573d6000803e3d6000fd5b50505050505050565b6060600180546114229061373c565b80601f016020809104026020016040519081016040528092919081815260200182805461144e9061373c565b801561149b5780601f106114705761010080835404028352916020019161149b565b820191906000526020600020905b81548152906001019060200180831161147e57829003601f168201915b5050505050905090565b600b5481565b6114b3612075565b80600b8190555050565b8160006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156115b8576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161153592919061376d565b602060405180830381865afa158015611552573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157691906137ab565b6115b757806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016115ae9190613084565b60405180910390fd5b5b6115c283836121b9565b505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600060076000838152602001908152602001600020549050919050565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611747573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361167b57611676858585856121cf565b611754565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b81526004016116c492919061376d565b602060405180830381865afa1580156116e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170591906137ab565b61174657336040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161173d9190613084565b60405180910390fd5b5b611753858585856121cf565b5b5050505050565b606061176682612231565b6117a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179c90613f77565b60405180910390fd5b60006117b08361229d565b90506117f96117be8461238a565b60096117c9866123bb565b6117d285612463565b6040516020016117e5949392919061423f565b604051602081830303815290604052612463565b6040516020016118099190614300565b604051602081830303815290604052915050919050565b606060005a90506118308361175b565b91505a8161183e9190613b07565b9050915091565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6118e1612075565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194790614394565b60405180910390fd5b611959816120f3565b50565b611964612075565b80600a8190555050565b3373ffffffffffffffffffffffffffffffffffffffff1661198e8361113a565b73ffffffffffffffffffffffffffffffffffffffff16146119e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119db90614400565b60405180910390fd5b8060076000848152602001908152602001600020819055505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611a7381612231565b611ab2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa990613b87565b60405180910390fd5b50565b6000611ac08261113a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611b30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2790614492565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16611b4f6125db565b73ffffffffffffffffffffffffffffffffffffffff161480611b7e5750611b7d81611b786125db565b611845565b5b611bbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb490614524565b60405180910390fd5b611bc783836125e3565b505050565b6000600b5460085410611c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0b90613824565b60405180910390fd5b60086000815480929190611c2790614544565b919050559050611c37338261269c565b90565b611c4b611c456125db565b826126ba565b611c8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c81906145fe565b60405180910390fd5b611c95838383611def565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611d39576103e8601984611cdf919061394b565b611ce991906139fe565b905060008290508073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611d36573d6000803e3d6000fd5b50505b92915050565b60006103e8603284611d51919061394b565b611d5b91906139fe565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166389ee68bf82846040518363ffffffff1660e01b8152600401611db7919061311a565b6000604051808303818588803b158015611dd057600080fd5b505af1158015611de4573d6000803e3d6000fd5b505050505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611e0f8261113a565b73ffffffffffffffffffffffffffffffffffffffff1614611e65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5c90614690565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ed4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ecb90614722565b60405180910390fd5b611edf83838361274f565b611eea6000826125e3565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f3a9190613b07565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f919190614742565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612050838383612754565b505050565b61207083838360405180602001604052806000815250611608565b505050565b61207d6125db565b73ffffffffffffffffffffffffffffffffffffffff1661209b611350565b73ffffffffffffffffffffffffffffffffffffffff16146120f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e8906147c2565b60405180910390fd5b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6121cb6121c46125db565b8383612759565b5050565b6121e06121da6125db565b836126ba565b61221f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612216906145fe565b60405180910390fd5b61222b848484846128c5565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60606000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663e3f24f02856040518263ffffffff1660e01b81526004016122fb919061311a565b600060405180830381865afa158015612318573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906123419190614852565b91509150604051806080016040528060498152602001614daf60499139828260405160200161237293929190614962565b60405160208183030381529060405292505050919050565b606061239582612921565b6040516020016123a591906149f5565b6040516020818303038152906040529050919050565b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166379b92f27836040518263ffffffff1660e01b8152600401612416919061311a565b600060405180830381865afa158015612433573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061245c9190614a17565b9050919050565b60606000825103612485576040518060200160405280600081525090506125d6565b6000604051806060016040528060408152602001614d6f60409139905060006003600285516124b49190614742565b6124be91906139fe565b60046124ca919061394b565b905060006020826124db9190614742565b67ffffffffffffffff8111156124f4576124f361328c565b5b6040519080825280601f01601f1916602001820160405280156125265781602001600182028036833780820191505090505b509050818152600183018586518101602084015b81831015612595576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f811685015182536001820191505061253a565b6003895106600181146125af57600281146125bf576125ca565b613d3d60f01b60028303526125ca565b603d60f81b60018303525b50505050508093505050505b919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166126568361113a565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6126b6828260405180602001604052806000815250612a81565b5050565b6000806126c68361113a565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061270857506127078185611845565b5b8061274657508373ffffffffffffffffffffffffffffffffffffffff1661272e8461094f565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b505050565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036127c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127be90614aac565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516128b89190612f13565b60405180910390a3505050565b6128d0848484611def565b6128dc84848484612adc565b61291b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291290614b3e565b60405180910390fd5b50505050565b606060008203612968576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a7c565b600082905060005b6000821461299a57808061298390614544565b915050600a8261299391906139fe565b9150612970565b60008167ffffffffffffffff8111156129b6576129b561328c565b5b6040519080825280601f01601f1916602001820160405280156129e85781602001600182028036833780820191505090505b5090505b60008514612a7557600182612a019190613b07565b9150600a85612a109190614b5e565b6030612a1c9190614742565b60f81b818381518110612a3257612a31614b8f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a6e91906139fe565b94506129ec565b8093505050505b919050565b612a8b8383612c63565b612a986000848484612adc565b612ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ace90614b3e565b60405180910390fd5b505050565b6000612afd8473ffffffffffffffffffffffffffffffffffffffff16612e3c565b15612c56578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b266125db565b8786866040518563ffffffff1660e01b8152600401612b489493929190614c08565b6020604051808303816000875af1925050508015612b8457506040513d601f19601f82011682018060405250810190612b819190614c69565b60015b612c06573d8060008114612bb4576040519150601f19603f3d011682016040523d82523d6000602084013e612bb9565b606091505b506000815103612bfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf590614b3e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612c5b565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612cd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc990614ce2565b60405180910390fd5b612cdb81612231565b15612d1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1290614d4e565b60405180910390fd5b612d276000838361274f565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d779190614742565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e3860008383612754565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612ea881612e73565b8114612eb357600080fd5b50565b600081359050612ec581612e9f565b92915050565b600060208284031215612ee157612ee0612e69565b5b6000612eef84828501612eb6565b91505092915050565b60008115159050919050565b612f0d81612ef8565b82525050565b6000602082019050612f286000830184612f04565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f68578082015181840152602081019050612f4d565b60008484015250505050565b6000601f19601f8301169050919050565b6000612f9082612f2e565b612f9a8185612f39565b9350612faa818560208601612f4a565b612fb381612f74565b840191505092915050565b60006020820190508181036000830152612fd88184612f85565b905092915050565b6000819050919050565b612ff381612fe0565b8114612ffe57600080fd5b50565b60008135905061301081612fea565b92915050565b60006020828403121561302c5761302b612e69565b5b600061303a84828501613001565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061306e82613043565b9050919050565b61307e81613063565b82525050565b60006020820190506130996000830184613075565b92915050565b6130a881613063565b81146130b357600080fd5b50565b6000813590506130c58161309f565b92915050565b600080604083850312156130e2576130e1612e69565b5b60006130f0858286016130b6565b925050602061310185828601613001565b9150509250929050565b61311481612fe0565b82525050565b600060208201905061312f600083018461310b565b92915050565b60006020828403121561314b5761314a612e69565b5b6000613159848285016130b6565b91505092915050565b60008060006060848603121561317b5761317a612e69565b5b6000613189868287016130b6565b935050602061319a868287016130b6565b92505060406131ab86828701613001565b9150509250925092565b6000806000606084860312156131ce576131cd612e69565b5b60006131dc86828701613001565b93505060206131ed868287016130b6565b92505060406131fe868287016130b6565b9150509250925092565b6000819050919050565b600061322d61322861322384613043565b613208565b613043565b9050919050565b600061323f82613212565b9050919050565b600061325182613234565b9050919050565b61326181613246565b82525050565b600060208201905061327c6000830184613258565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6132c482612f74565b810181811067ffffffffffffffff821117156132e3576132e261328c565b5b80604052505050565b60006132f6612e5f565b905061330282826132bb565b919050565b600067ffffffffffffffff8211156133225761332161328c565b5b61332b82612f74565b9050602081019050919050565b82818337600083830152505050565b600061335a61335584613307565b6132ec565b90508281526020810184848401111561337657613375613287565b5b613381848285613338565b509392505050565b600082601f83011261339e5761339d613282565b5b81356133ae848260208601613347565b91505092915050565b6000602082840312156133cd576133cc612e69565b5b600082013567ffffffffffffffff8111156133eb576133ea612e6e565b5b6133f784828501613389565b91505092915050565b600061340b82613063565b9050919050565b61341b81613400565b811461342657600080fd5b50565b60008135905061343881613412565b92915050565b60008060006060848603121561345757613456612e69565b5b600061346586828701613001565b935050602061347686828701613429565b925050604061348786828701613001565b9150509250925092565b61349a81612ef8565b81146134a557600080fd5b50565b6000813590506134b781613491565b92915050565b600080604083850312156134d4576134d3612e69565b5b60006134e2858286016130b6565b92505060206134f3858286016134a8565b9150509250929050565b600061350882613234565b9050919050565b613518816134fd565b82525050565b6000602082019050613533600083018461350f565b92915050565b600067ffffffffffffffff8211156135545761355361328c565b5b61355d82612f74565b9050602081019050919050565b600061357d61357884613539565b6132ec565b90508281526020810184848401111561359957613598613287565b5b6135a4848285613338565b509392505050565b600082601f8301126135c1576135c0613282565b5b81356135d184826020860161356a565b91505092915050565b600080600080608085870312156135f4576135f3612e69565b5b6000613602878288016130b6565b9450506020613613878288016130b6565b935050604061362487828801613001565b925050606085013567ffffffffffffffff81111561364557613644612e6e565b5b613651878288016135ac565b91505092959194509250565b600060408201905081810360008301526136778185612f85565b9050613686602083018461310b565b9392505050565b600080604083850312156136a4576136a3612e69565b5b60006136b2858286016130b6565b92505060206136c3858286016130b6565b9150509250929050565b600080604083850312156136e4576136e3612e69565b5b60006136f285828601613001565b925050602061370385828601613001565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061375457607f821691505b6020821081036137675761376661370d565b5b50919050565b60006040820190506137826000830185613075565b61378f6020830184613075565b9392505050565b6000815190506137a581613491565b92915050565b6000602082840312156137c1576137c0612e69565b5b60006137cf84828501613796565b91505092915050565b7f536f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b600061380e600883612f39565b9150613819826137d8565b602082019050919050565b6000602082019050818103600083015261383d81613801565b9050919050565b7f4d7573742073656e6420746865206d696e742070726963650000000000000000600082015250565b600061387a601883612f39565b915061388582613844565b602082019050919050565b600060208201905081810360008301526138a98161386d565b9050919050565b7f546f6f206d616e7920746f6b656e730000000000000000000000000000000000600082015250565b60006138e6600f83612f39565b91506138f1826138b0565b602082019050919050565b60006020820190508181036000830152613915816138d9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061395682612fe0565b915061396183612fe0565b925082820261396f81612fe0565b915082820484148315176139865761398561391c565b5b5092915050565b60008151905061399c81612fea565b92915050565b6000602082840312156139b8576139b7612e69565b5b60006139c68482850161398d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613a0982612fe0565b9150613a1483612fe0565b925082613a2457613a236139cf565b5b828204905092915050565b7f546f6b656e206973206e6f74206f6e2073616c65000000000000000000000000600082015250565b6000613a65601483612f39565b9150613a7082613a2f565b602082019050919050565b60006020820190508181036000830152613a9481613a58565b9050919050565b7f4e6f7420656e6f7567682066756e640000000000000000000000000000000000600082015250565b6000613ad1600f83612f39565b9150613adc82613a9b565b602082019050919050565b60006020820190508181036000830152613b0081613ac4565b9050919050565b6000613b1282612fe0565b9150613b1d83612fe0565b9250828203905081811115613b3557613b3461391c565b5b92915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613b71601883612f39565b9150613b7c82613b3b565b602082019050919050565b60006020820190508181036000830152613ba081613b64565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613c03602983612f39565b9150613c0e82613ba7565b604082019050919050565b60006020820190508181036000830152613c3281613bf6565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613c9b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613c5e565b613ca58683613c5e565b95508019841693508086168417925050509392505050565b6000613cd8613cd3613cce84612fe0565b613208565b612fe0565b9050919050565b6000819050919050565b613cf283613cbd565b613d06613cfe82613cdf565b848454613c6b565b825550505050565b600090565b613d1b613d0e565b613d26818484613ce9565b505050565b5b81811015613d4a57613d3f600082613d13565b600181019050613d2c565b5050565b601f821115613d8f57613d6081613c39565b613d6984613c4e565b81016020851015613d78578190505b613d8c613d8485613c4e565b830182613d2b565b50505b505050565b600082821c905092915050565b6000613db260001984600802613d94565b1980831691505092915050565b6000613dcb8383613da1565b9150826002028217905092915050565b613de482612f2e565b67ffffffffffffffff811115613dfd57613dfc61328c565b5b613e07825461373c565b613e12828285613d4e565b600060209050601f831160018114613e455760008415613e33578287015190505b613e3d8582613dbf565b865550613ea5565b601f198416613e5386613c39565b60005b82811015613e7b57848901518255600182019150602085019450602081019050613e56565b86831015613e985784890151613e94601f891682613da1565b8355505b6001600288020188555050505b505050505050565b6000613eb882613234565b9050919050565b613ec881613ead565b82525050565b6000606082019050613ee36000830186613ebf565b613ef0602083018561310b565b613efd604083018461310b565b949350505050565b7f50726f7669646572546f6b656e2e746f6b656e5552493a206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613f61602983612f39565b9150613f6c82613f05565b604082019050919050565b60006020820190508181036000830152613f9081613f54565b9050919050565b600081905092915050565b7f7b226e616d65223a220000000000000000000000000000000000000000000000600082015250565b6000613fd8600983613f97565b9150613fe382613fa2565b600982019050919050565b6000613ff982612f2e565b6140038185613f97565b9350614013818560208601612f4a565b80840191505092915050565b7f222c226465736372697074696f6e223a22000000000000000000000000000000600082015250565b6000614055601183613f97565b91506140608261401f565b601182019050919050565b600081546140788161373c565b6140828186613f97565b9450600182166000811461409d57600181146140b2576140e5565b60ff19831686528115158202860193506140e5565b6140bb85613c39565b60005b838110156140dd578154818901526001820191506020810190506140be565b838801955050505b50505092915050565b7f222c2261747472696275746573223a5b00000000000000000000000000000000600082015250565b6000614124601083613f97565b915061412f826140ee565b601082019050919050565b600081519050919050565b600081905092915050565b600061415b8261413a565b6141658185614145565b9350614175818560208601612f4a565b80840191505092915050565b7f5d2c22696d616765223a22646174613a696d6167652f7376672b786d6c3b626160008201527f736536342c000000000000000000000000000000000000000000000000000000602082015250565b60006141dd602583613f97565b91506141e882614181565b602582019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000614229600283613f97565b9150614234826141f3565b600282019050919050565b600061424a82613fcb565b91506142568287613fee565b915061426182614048565b915061426d828661406b565b915061427882614117565b91506142848285614150565b915061428f826141d0565b915061429b8284613fee565b91506142a68261421c565b915081905095945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b60006142ea601d83613f97565b91506142f5826142b4565b601d82019050919050565b600061430b826142dd565b91506143178284613fee565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061437e602683612f39565b915061438982614322565b604082019050919050565b600060208201905081810360008301526143ad81614371565b9050919050565b7f4f6e6c7920746865206f6e7765722063616e2073657420746865207072696365600082015250565b60006143ea602083612f39565b91506143f5826143b4565b602082019050919050565b60006020820190508181036000830152614419816143dd565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061447c602183612f39565b915061448782614420565b604082019050919050565b600060208201905081810360008301526144ab8161446f565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b600061450e603e83612f39565b9150614519826144b2565b604082019050919050565b6000602082019050818103600083015261453d81614501565b9050919050565b600061454f82612fe0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036145815761458061391c565b5b600182019050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006145e8602e83612f39565b91506145f38261458c565b604082019050919050565b60006020820190508181036000830152614617816145db565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061467a602583612f39565b91506146858261461e565b604082019050919050565b600060208201905081810360008301526146a98161466d565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061470c602483612f39565b9150614717826146b0565b604082019050919050565b6000602082019050818103600083015261473b816146ff565b9050919050565b600061474d82612fe0565b915061475883612fe0565b92508282019050808211156147705761476f61391c565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006147ac602083612f39565b91506147b782614776565b602082019050919050565b600060208201905081810360008301526147db8161479f565b9050919050565b60006147f56147f084613307565b6132ec565b90508281526020810184848401111561481157614810613287565b5b61481c848285612f4a565b509392505050565b600082601f83011261483957614838613282565b5b81516148498482602086016147e2565b91505092915050565b6000806040838503121561486957614868612e69565b5b600083015167ffffffffffffffff81111561488757614886612e6e565b5b61489385828601614824565b925050602083015167ffffffffffffffff8111156148b4576148b3612e6e565b5b6148c085828601614824565b9150509250929050565b7f3c2f646566733e0a3c75736520687265663d2223000000000000000000000000600082015250565b6000614900601483613f97565b915061490b826148ca565b601482019050919050565b7f22202f3e0a3c2f7376673e0a0000000000000000000000000000000000000000600082015250565b600061494c600c83613f97565b915061495782614916565b600c82019050919050565b600061496e8286613fee565b915061497a8285613fee565b9150614985826148f3565b91506149918284613fee565b915061499c8261493f565b9150819050949350505050565b7f416c706861626574200000000000000000000000000000000000000000000000600082015250565b60006149df600983613f97565b91506149ea826149a9565b600982019050919050565b6000614a00826149d2565b9150614a0c8284613fee565b915081905092915050565b600060208284031215614a2d57614a2c612e69565b5b600082015167ffffffffffffffff811115614a4b57614a4a612e6e565b5b614a5784828501614824565b91505092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614a96601983612f39565b9150614aa182614a60565b602082019050919050565b60006020820190508181036000830152614ac581614a89565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614b28603283612f39565b9150614b3382614acc565b604082019050919050565b60006020820190508181036000830152614b5781614b1b565b9050919050565b6000614b6982612fe0565b9150614b7483612fe0565b925082614b8457614b836139cf565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082825260208201905092915050565b6000614bda8261413a565b614be48185614bbe565b9350614bf4818560208601612f4a565b614bfd81612f74565b840191505092915050565b6000608082019050614c1d6000830187613075565b614c2a6020830186613075565b614c37604083018561310b565b8181036060830152614c498184614bcf565b905095945050505050565b600081519050614c6381612e9f565b92915050565b600060208284031215614c7f57614c7e612e69565b5b6000614c8d84828501614c54565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614ccc602083612f39565b9150614cd782614c96565b602082019050919050565b60006020820190508181036000830152614cfb81614cbf565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614d38601c83612f39565b9150614d4382614d02565b602082019050919050565b60006020820190508181036000830152614d6781614d2b565b905091905056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7376672076696577426f783d2230203020313032342031303234222020786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e0a3c646566733e0aa2646970667358221220aaa874c23492d412a25e0aeba7861ee35876009be98e9df528585f65675bfd3e64736f6c634300081100335468697320697320612070617274206f662046756c6c79204f6e2d636861696e2047656e65726174697665204172742070726f6a656374202868747470733a2f2f66756c6c796f6e636861696e2e78797a2f292e20416c6c20696d61676573206172652064796d6963616c6c792067656e657261746564206f6e2074686520626c6f636b636861696e2e0000000000000000000000005c8d7748bf07709d3adc3f74fa0255f9f358c8b1000000000000000000000000eaaf6d73fb5c63478d09e523a5fd8b28f9e5be9a

Deployed Bytecode

0x6080604052600436106101ee5760003560e01c806375794a3c1161010d578063a370f7d7116100a0578063cc44ab411161006f578063cc44ab41146106e5578063e985e9c514610723578063f2fde38b14610760578063f4a0a52814610789578063fba49e4f146107b2576101ee565b8063a370f7d714610617578063b54b4fb914610642578063b88d4fde1461067f578063c87b56dd146106a8576101ee565b806395d89b41116100dc57806395d89b411461056f578063996517cf1461059a5780639e6a1d7d146105c5578063a22cb465146105ee576101ee565b806375794a3c146104c75780638da5cb5b146104f257806390c3f38f1461051d5780639589d7b914610546576101ee565b80633b7f8f15116101855780636817c76c116101545780636817c76c1461041d57806370a0823114610448578063715018a6146104855780637284e4161461049c576101ee565b80633b7f8f151461037057806341f434341461038c57806342842e0e146103b75780636352211e146103e0576101ee565b80631249c58b116101c15780631249c58b146102c15780631346d8ea146102df57806318160ddd1461031c57806323b872dd14610347576101ee565b806301ffc9a7146101f357806306fdde0314610230578063081812fc1461025b578063095ea7b314610298575b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190612ecb565b6107db565b6040516102279190612f13565b60405180910390f35b34801561023c57600080fd5b506102456108bd565b6040516102529190612fbe565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d9190613016565b61094f565b60405161028f9190613084565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba91906130cb565b610995565b005b6102c9610a9f565b6040516102d6919061311a565b60405180910390f35b3480156102eb57600080fd5b5061030660048036038101906103019190613135565b610c16565b604051610313919061311a565b60405180910390f35b34801561032857600080fd5b50610331610d27565b60405161033e919061311a565b60405180910390f35b34801561035357600080fd5b5061036e60048036038101906103699190613162565b610d31565b005b61038a600480360381019061038591906131b5565b610e81565b005b34801561039857600080fd5b506103a1610fd8565b6040516103ae9190613267565b60405180910390f35b3480156103c357600080fd5b506103de60048036038101906103d99190613162565b610fea565b005b3480156103ec57600080fd5b5061040760048036038101906104029190613016565b61113a565b6040516104149190613084565b60405180910390f35b34801561042957600080fd5b506104326111eb565b60405161043f919061311a565b60405180910390f35b34801561045457600080fd5b5061046f600480360381019061046a9190613135565b6111f1565b60405161047c919061311a565b60405180910390f35b34801561049157600080fd5b5061049a6112a8565b005b3480156104a857600080fd5b506104b16112bc565b6040516104be9190612fbe565b60405180910390f35b3480156104d357600080fd5b506104dc61134a565b6040516104e9919061311a565b60405180910390f35b3480156104fe57600080fd5b50610507611350565b6040516105149190613084565b60405180910390f35b34801561052957600080fd5b50610544600480360381019061053f91906133b7565b61137a565b005b34801561055257600080fd5b5061056d6004803603810190610568919061343e565b611395565b005b34801561057b57600080fd5b50610584611413565b6040516105919190612fbe565b60405180910390f35b3480156105a657600080fd5b506105af6114a5565b6040516105bc919061311a565b60405180910390f35b3480156105d157600080fd5b506105ec60048036038101906105e79190613016565b6114ab565b005b3480156105fa57600080fd5b50610615600480360381019061061091906134bd565b6114bd565b005b34801561062357600080fd5b5061062c6115c7565b604051610639919061351e565b60405180910390f35b34801561064e57600080fd5b5061066960048036038101906106649190613016565b6115eb565b604051610676919061311a565b60405180910390f35b34801561068b57600080fd5b506106a660048036038101906106a191906135da565b611608565b005b3480156106b457600080fd5b506106cf60048036038101906106ca9190613016565b61175b565b6040516106dc9190612fbe565b60405180910390f35b3480156106f157600080fd5b5061070c60048036038101906107079190613016565b611820565b60405161071a92919061365d565b60405180910390f35b34801561072f57600080fd5b5061074a6004803603810190610745919061368d565b611845565b6040516107579190612f13565b60405180910390f35b34801561076c57600080fd5b5061078760048036038101906107829190613135565b6118d9565b005b34801561079557600080fd5b506107b060048036038101906107ab9190613016565b61195c565b005b3480156107be57600080fd5b506107d960048036038101906107d491906136cd565b61196e565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108a657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108b657506108b582611a00565b5b9050919050565b6060600080546108cc9061373c565b80601f01602080910402602001604051908101604052809291908181526020018280546108f89061373c565b80156109455780601f1061091a57610100808354040283529160200191610945565b820191906000526020600020905b81548152906001019060200180831161092857829003601f168201915b5050505050905090565b600061095a82611a6a565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8160006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610a90576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610a0d92919061376d565b602060405180830381865afa158015610a2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4e91906137ab565b610a8f57806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610a869190613084565b60405180910390fd5b5b610a9a8383611ab5565b505050565b60006109c460085410610ae7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ade90613824565b60405180910390fd5b610af033610c16565b341015610b32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2990613890565b60405180910390fd5b6003610b3d336111f1565b10610b7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b74906138fc565b60405180910390fd5b610b85611bcc565b90507f000000000000000000000000eaaf6d73fb5c63478d09e523a5fd8b28f9e5be9a73ffffffffffffffffffffffffffffffffffffffff166389ee68bf34836040518363ffffffff1660e01b8152600401610be1919061311a565b6000604051808303818588803b158015610bfa57600080fd5b505af1158015610c0e573d6000803e3d6000fd5b505050505090565b60006001610c23836111f1565b03610c3e576002600a54610c37919061394b565b9050610d22565b6002610c49836111f1565b03610c64576004600a54610c5d919061394b565b9050610d22565b60007f0000000000000000000000005c8d7748bf07709d3adc3f74fa0255f9f358c8b173ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401610cbf9190613084565b602060405180830381865afa158015610cdc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0091906139a2565b1115610d1c576002600a54610d1591906139fe565b9050610d22565b600a5490505b919050565b6000600854905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610e6f573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610da357610d9e848484611c3a565b610e7b565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610dec92919061376d565b602060405180830381865afa158015610e09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2d91906137ab565b610e6e57336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610e659190613084565b60405180910390fd5b5b610e7a848484611c3a565b5b50505050565b60006007600085815260200190815260200160002054905060008111610edc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed390613a7b565b60405180910390fd5b80341015610f1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1690613ae7565b60405180910390fd5b6000610f2b3484611c9a565b90506000610f393487611d3f565b90506000610f468761113a565b905060008190508073ffffffffffffffffffffffffffffffffffffffff166108fc848634610f749190613b07565b610f7e9190613b07565b9081150290604051600060405180830381858888f19350505050158015610fa9573d6000803e3d6000fd5b50610fb582888a611def565b6000600760008a8152602001908152602001600020819055505050505050505050565b6daaeb6d7670e522a718067333cd4e81565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611128573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361105c57611057848484612055565b611134565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b81526004016110a592919061376d565b602060405180830381865afa1580156110c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e691906137ab565b61112757336040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161111e9190613084565b60405180910390fd5b5b611133848484612055565b5b50505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d990613b87565b60405180910390fd5b80915050919050565b600a5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611261576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125890613c19565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112b0612075565b6112ba60006120f3565b565b600980546112c99061373c565b80601f01602080910402602001604051908101604052809291908181526020018280546112f59061373c565b80156113425780601f1061131757610100808354040283529160200191611342565b820191906000526020600020905b81548152906001019060200180831161132557829003601f168201915b505050505081565b60085481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611382612075565b80600990816113919190613ddb565b5050565b61139f838261196e565b8173ffffffffffffffffffffffffffffffffffffffff16633c6fc8173085846040518463ffffffff1660e01b81526004016113dc93929190613ece565b600060405180830381600087803b1580156113f657600080fd5b505af115801561140a573d6000803e3d6000fd5b50505050505050565b6060600180546114229061373c565b80601f016020809104026020016040519081016040528092919081815260200182805461144e9061373c565b801561149b5780601f106114705761010080835404028352916020019161149b565b820191906000526020600020905b81548152906001019060200180831161147e57829003601f168201915b5050505050905090565b600b5481565b6114b3612075565b80600b8190555050565b8160006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156115b8576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161153592919061376d565b602060405180830381865afa158015611552573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157691906137ab565b6115b757806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016115ae9190613084565b60405180910390fd5b5b6115c283836121b9565b505050565b7f000000000000000000000000eaaf6d73fb5c63478d09e523a5fd8b28f9e5be9a81565b600060076000838152602001908152602001600020549050919050565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611747573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361167b57611676858585856121cf565b611754565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b81526004016116c492919061376d565b602060405180830381865afa1580156116e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170591906137ab565b61174657336040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161173d9190613084565b60405180910390fd5b5b611753858585856121cf565b5b5050505050565b606061176682612231565b6117a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179c90613f77565b60405180910390fd5b60006117b08361229d565b90506117f96117be8461238a565b60096117c9866123bb565b6117d285612463565b6040516020016117e5949392919061423f565b604051602081830303815290604052612463565b6040516020016118099190614300565b604051602081830303815290604052915050919050565b606060005a90506118308361175b565b91505a8161183e9190613b07565b9050915091565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6118e1612075565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194790614394565b60405180910390fd5b611959816120f3565b50565b611964612075565b80600a8190555050565b3373ffffffffffffffffffffffffffffffffffffffff1661198e8361113a565b73ffffffffffffffffffffffffffffffffffffffff16146119e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119db90614400565b60405180910390fd5b8060076000848152602001908152602001600020819055505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611a7381612231565b611ab2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa990613b87565b60405180910390fd5b50565b6000611ac08261113a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611b30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2790614492565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16611b4f6125db565b73ffffffffffffffffffffffffffffffffffffffff161480611b7e5750611b7d81611b786125db565b611845565b5b611bbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb490614524565b60405180910390fd5b611bc783836125e3565b505050565b6000600b5460085410611c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0b90613824565b60405180910390fd5b60086000815480929190611c2790614544565b919050559050611c37338261269c565b90565b611c4b611c456125db565b826126ba565b611c8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c81906145fe565b60405180910390fd5b611c95838383611def565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611d39576103e8601984611cdf919061394b565b611ce991906139fe565b905060008290508073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611d36573d6000803e3d6000fd5b50505b92915050565b60006103e8603284611d51919061394b565b611d5b91906139fe565b90507f000000000000000000000000eaaf6d73fb5c63478d09e523a5fd8b28f9e5be9a73ffffffffffffffffffffffffffffffffffffffff166389ee68bf82846040518363ffffffff1660e01b8152600401611db7919061311a565b6000604051808303818588803b158015611dd057600080fd5b505af1158015611de4573d6000803e3d6000fd5b505050505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611e0f8261113a565b73ffffffffffffffffffffffffffffffffffffffff1614611e65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5c90614690565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ed4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ecb90614722565b60405180910390fd5b611edf83838361274f565b611eea6000826125e3565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f3a9190613b07565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f919190614742565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612050838383612754565b505050565b61207083838360405180602001604052806000815250611608565b505050565b61207d6125db565b73ffffffffffffffffffffffffffffffffffffffff1661209b611350565b73ffffffffffffffffffffffffffffffffffffffff16146120f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e8906147c2565b60405180910390fd5b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6121cb6121c46125db565b8383612759565b5050565b6121e06121da6125db565b836126ba565b61221f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612216906145fe565b60405180910390fd5b61222b848484846128c5565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60606000807f000000000000000000000000eaaf6d73fb5c63478d09e523a5fd8b28f9e5be9a73ffffffffffffffffffffffffffffffffffffffff1663e3f24f02856040518263ffffffff1660e01b81526004016122fb919061311a565b600060405180830381865afa158015612318573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906123419190614852565b91509150604051806080016040528060498152602001614daf60499139828260405160200161237293929190614962565b60405160208183030381529060405292505050919050565b606061239582612921565b6040516020016123a591906149f5565b6040516020818303038152906040529050919050565b60607f000000000000000000000000eaaf6d73fb5c63478d09e523a5fd8b28f9e5be9a73ffffffffffffffffffffffffffffffffffffffff166379b92f27836040518263ffffffff1660e01b8152600401612416919061311a565b600060405180830381865afa158015612433573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061245c9190614a17565b9050919050565b60606000825103612485576040518060200160405280600081525090506125d6565b6000604051806060016040528060408152602001614d6f60409139905060006003600285516124b49190614742565b6124be91906139fe565b60046124ca919061394b565b905060006020826124db9190614742565b67ffffffffffffffff8111156124f4576124f361328c565b5b6040519080825280601f01601f1916602001820160405280156125265781602001600182028036833780820191505090505b509050818152600183018586518101602084015b81831015612595576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f811685015182536001820191505061253a565b6003895106600181146125af57600281146125bf576125ca565b613d3d60f01b60028303526125ca565b603d60f81b60018303525b50505050508093505050505b919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166126568361113a565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6126b6828260405180602001604052806000815250612a81565b5050565b6000806126c68361113a565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061270857506127078185611845565b5b8061274657508373ffffffffffffffffffffffffffffffffffffffff1661272e8461094f565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b505050565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036127c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127be90614aac565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516128b89190612f13565b60405180910390a3505050565b6128d0848484611def565b6128dc84848484612adc565b61291b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291290614b3e565b60405180910390fd5b50505050565b606060008203612968576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a7c565b600082905060005b6000821461299a57808061298390614544565b915050600a8261299391906139fe565b9150612970565b60008167ffffffffffffffff8111156129b6576129b561328c565b5b6040519080825280601f01601f1916602001820160405280156129e85781602001600182028036833780820191505090505b5090505b60008514612a7557600182612a019190613b07565b9150600a85612a109190614b5e565b6030612a1c9190614742565b60f81b818381518110612a3257612a31614b8f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a6e91906139fe565b94506129ec565b8093505050505b919050565b612a8b8383612c63565b612a986000848484612adc565b612ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ace90614b3e565b60405180910390fd5b505050565b6000612afd8473ffffffffffffffffffffffffffffffffffffffff16612e3c565b15612c56578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b266125db565b8786866040518563ffffffff1660e01b8152600401612b489493929190614c08565b6020604051808303816000875af1925050508015612b8457506040513d601f19601f82011682018060405250810190612b819190614c69565b60015b612c06573d8060008114612bb4576040519150601f19603f3d011682016040523d82523d6000602084013e612bb9565b606091505b506000815103612bfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf590614b3e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612c5b565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612cd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc990614ce2565b60405180910390fd5b612cdb81612231565b15612d1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1290614d4e565b60405180910390fd5b612d276000838361274f565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d779190614742565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e3860008383612754565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612ea881612e73565b8114612eb357600080fd5b50565b600081359050612ec581612e9f565b92915050565b600060208284031215612ee157612ee0612e69565b5b6000612eef84828501612eb6565b91505092915050565b60008115159050919050565b612f0d81612ef8565b82525050565b6000602082019050612f286000830184612f04565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f68578082015181840152602081019050612f4d565b60008484015250505050565b6000601f19601f8301169050919050565b6000612f9082612f2e565b612f9a8185612f39565b9350612faa818560208601612f4a565b612fb381612f74565b840191505092915050565b60006020820190508181036000830152612fd88184612f85565b905092915050565b6000819050919050565b612ff381612fe0565b8114612ffe57600080fd5b50565b60008135905061301081612fea565b92915050565b60006020828403121561302c5761302b612e69565b5b600061303a84828501613001565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061306e82613043565b9050919050565b61307e81613063565b82525050565b60006020820190506130996000830184613075565b92915050565b6130a881613063565b81146130b357600080fd5b50565b6000813590506130c58161309f565b92915050565b600080604083850312156130e2576130e1612e69565b5b60006130f0858286016130b6565b925050602061310185828601613001565b9150509250929050565b61311481612fe0565b82525050565b600060208201905061312f600083018461310b565b92915050565b60006020828403121561314b5761314a612e69565b5b6000613159848285016130b6565b91505092915050565b60008060006060848603121561317b5761317a612e69565b5b6000613189868287016130b6565b935050602061319a868287016130b6565b92505060406131ab86828701613001565b9150509250925092565b6000806000606084860312156131ce576131cd612e69565b5b60006131dc86828701613001565b93505060206131ed868287016130b6565b92505060406131fe868287016130b6565b9150509250925092565b6000819050919050565b600061322d61322861322384613043565b613208565b613043565b9050919050565b600061323f82613212565b9050919050565b600061325182613234565b9050919050565b61326181613246565b82525050565b600060208201905061327c6000830184613258565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6132c482612f74565b810181811067ffffffffffffffff821117156132e3576132e261328c565b5b80604052505050565b60006132f6612e5f565b905061330282826132bb565b919050565b600067ffffffffffffffff8211156133225761332161328c565b5b61332b82612f74565b9050602081019050919050565b82818337600083830152505050565b600061335a61335584613307565b6132ec565b90508281526020810184848401111561337657613375613287565b5b613381848285613338565b509392505050565b600082601f83011261339e5761339d613282565b5b81356133ae848260208601613347565b91505092915050565b6000602082840312156133cd576133cc612e69565b5b600082013567ffffffffffffffff8111156133eb576133ea612e6e565b5b6133f784828501613389565b91505092915050565b600061340b82613063565b9050919050565b61341b81613400565b811461342657600080fd5b50565b60008135905061343881613412565b92915050565b60008060006060848603121561345757613456612e69565b5b600061346586828701613001565b935050602061347686828701613429565b925050604061348786828701613001565b9150509250925092565b61349a81612ef8565b81146134a557600080fd5b50565b6000813590506134b781613491565b92915050565b600080604083850312156134d4576134d3612e69565b5b60006134e2858286016130b6565b92505060206134f3858286016134a8565b9150509250929050565b600061350882613234565b9050919050565b613518816134fd565b82525050565b6000602082019050613533600083018461350f565b92915050565b600067ffffffffffffffff8211156135545761355361328c565b5b61355d82612f74565b9050602081019050919050565b600061357d61357884613539565b6132ec565b90508281526020810184848401111561359957613598613287565b5b6135a4848285613338565b509392505050565b600082601f8301126135c1576135c0613282565b5b81356135d184826020860161356a565b91505092915050565b600080600080608085870312156135f4576135f3612e69565b5b6000613602878288016130b6565b9450506020613613878288016130b6565b935050604061362487828801613001565b925050606085013567ffffffffffffffff81111561364557613644612e6e565b5b613651878288016135ac565b91505092959194509250565b600060408201905081810360008301526136778185612f85565b9050613686602083018461310b565b9392505050565b600080604083850312156136a4576136a3612e69565b5b60006136b2858286016130b6565b92505060206136c3858286016130b6565b9150509250929050565b600080604083850312156136e4576136e3612e69565b5b60006136f285828601613001565b925050602061370385828601613001565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061375457607f821691505b6020821081036137675761376661370d565b5b50919050565b60006040820190506137826000830185613075565b61378f6020830184613075565b9392505050565b6000815190506137a581613491565b92915050565b6000602082840312156137c1576137c0612e69565b5b60006137cf84828501613796565b91505092915050565b7f536f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b600061380e600883612f39565b9150613819826137d8565b602082019050919050565b6000602082019050818103600083015261383d81613801565b9050919050565b7f4d7573742073656e6420746865206d696e742070726963650000000000000000600082015250565b600061387a601883612f39565b915061388582613844565b602082019050919050565b600060208201905081810360008301526138a98161386d565b9050919050565b7f546f6f206d616e7920746f6b656e730000000000000000000000000000000000600082015250565b60006138e6600f83612f39565b91506138f1826138b0565b602082019050919050565b60006020820190508181036000830152613915816138d9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061395682612fe0565b915061396183612fe0565b925082820261396f81612fe0565b915082820484148315176139865761398561391c565b5b5092915050565b60008151905061399c81612fea565b92915050565b6000602082840312156139b8576139b7612e69565b5b60006139c68482850161398d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613a0982612fe0565b9150613a1483612fe0565b925082613a2457613a236139cf565b5b828204905092915050565b7f546f6b656e206973206e6f74206f6e2073616c65000000000000000000000000600082015250565b6000613a65601483612f39565b9150613a7082613a2f565b602082019050919050565b60006020820190508181036000830152613a9481613a58565b9050919050565b7f4e6f7420656e6f7567682066756e640000000000000000000000000000000000600082015250565b6000613ad1600f83612f39565b9150613adc82613a9b565b602082019050919050565b60006020820190508181036000830152613b0081613ac4565b9050919050565b6000613b1282612fe0565b9150613b1d83612fe0565b9250828203905081811115613b3557613b3461391c565b5b92915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613b71601883612f39565b9150613b7c82613b3b565b602082019050919050565b60006020820190508181036000830152613ba081613b64565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613c03602983612f39565b9150613c0e82613ba7565b604082019050919050565b60006020820190508181036000830152613c3281613bf6565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613c9b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613c5e565b613ca58683613c5e565b95508019841693508086168417925050509392505050565b6000613cd8613cd3613cce84612fe0565b613208565b612fe0565b9050919050565b6000819050919050565b613cf283613cbd565b613d06613cfe82613cdf565b848454613c6b565b825550505050565b600090565b613d1b613d0e565b613d26818484613ce9565b505050565b5b81811015613d4a57613d3f600082613d13565b600181019050613d2c565b5050565b601f821115613d8f57613d6081613c39565b613d6984613c4e565b81016020851015613d78578190505b613d8c613d8485613c4e565b830182613d2b565b50505b505050565b600082821c905092915050565b6000613db260001984600802613d94565b1980831691505092915050565b6000613dcb8383613da1565b9150826002028217905092915050565b613de482612f2e565b67ffffffffffffffff811115613dfd57613dfc61328c565b5b613e07825461373c565b613e12828285613d4e565b600060209050601f831160018114613e455760008415613e33578287015190505b613e3d8582613dbf565b865550613ea5565b601f198416613e5386613c39565b60005b82811015613e7b57848901518255600182019150602085019450602081019050613e56565b86831015613e985784890151613e94601f891682613da1565b8355505b6001600288020188555050505b505050505050565b6000613eb882613234565b9050919050565b613ec881613ead565b82525050565b6000606082019050613ee36000830186613ebf565b613ef0602083018561310b565b613efd604083018461310b565b949350505050565b7f50726f7669646572546f6b656e2e746f6b656e5552493a206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613f61602983612f39565b9150613f6c82613f05565b604082019050919050565b60006020820190508181036000830152613f9081613f54565b9050919050565b600081905092915050565b7f7b226e616d65223a220000000000000000000000000000000000000000000000600082015250565b6000613fd8600983613f97565b9150613fe382613fa2565b600982019050919050565b6000613ff982612f2e565b6140038185613f97565b9350614013818560208601612f4a565b80840191505092915050565b7f222c226465736372697074696f6e223a22000000000000000000000000000000600082015250565b6000614055601183613f97565b91506140608261401f565b601182019050919050565b600081546140788161373c565b6140828186613f97565b9450600182166000811461409d57600181146140b2576140e5565b60ff19831686528115158202860193506140e5565b6140bb85613c39565b60005b838110156140dd578154818901526001820191506020810190506140be565b838801955050505b50505092915050565b7f222c2261747472696275746573223a5b00000000000000000000000000000000600082015250565b6000614124601083613f97565b915061412f826140ee565b601082019050919050565b600081519050919050565b600081905092915050565b600061415b8261413a565b6141658185614145565b9350614175818560208601612f4a565b80840191505092915050565b7f5d2c22696d616765223a22646174613a696d6167652f7376672b786d6c3b626160008201527f736536342c000000000000000000000000000000000000000000000000000000602082015250565b60006141dd602583613f97565b91506141e882614181565b602582019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000614229600283613f97565b9150614234826141f3565b600282019050919050565b600061424a82613fcb565b91506142568287613fee565b915061426182614048565b915061426d828661406b565b915061427882614117565b91506142848285614150565b915061428f826141d0565b915061429b8284613fee565b91506142a68261421c565b915081905095945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b60006142ea601d83613f97565b91506142f5826142b4565b601d82019050919050565b600061430b826142dd565b91506143178284613fee565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061437e602683612f39565b915061438982614322565b604082019050919050565b600060208201905081810360008301526143ad81614371565b9050919050565b7f4f6e6c7920746865206f6e7765722063616e2073657420746865207072696365600082015250565b60006143ea602083612f39565b91506143f5826143b4565b602082019050919050565b60006020820190508181036000830152614419816143dd565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061447c602183612f39565b915061448782614420565b604082019050919050565b600060208201905081810360008301526144ab8161446f565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b600061450e603e83612f39565b9150614519826144b2565b604082019050919050565b6000602082019050818103600083015261453d81614501565b9050919050565b600061454f82612fe0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036145815761458061391c565b5b600182019050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006145e8602e83612f39565b91506145f38261458c565b604082019050919050565b60006020820190508181036000830152614617816145db565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061467a602583612f39565b91506146858261461e565b604082019050919050565b600060208201905081810360008301526146a98161466d565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061470c602483612f39565b9150614717826146b0565b604082019050919050565b6000602082019050818103600083015261473b816146ff565b9050919050565b600061474d82612fe0565b915061475883612fe0565b92508282019050808211156147705761476f61391c565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006147ac602083612f39565b91506147b782614776565b602082019050919050565b600060208201905081810360008301526147db8161479f565b9050919050565b60006147f56147f084613307565b6132ec565b90508281526020810184848401111561481157614810613287565b5b61481c848285612f4a565b509392505050565b600082601f83011261483957614838613282565b5b81516148498482602086016147e2565b91505092915050565b6000806040838503121561486957614868612e69565b5b600083015167ffffffffffffffff81111561488757614886612e6e565b5b61489385828601614824565b925050602083015167ffffffffffffffff8111156148b4576148b3612e6e565b5b6148c085828601614824565b9150509250929050565b7f3c2f646566733e0a3c75736520687265663d2223000000000000000000000000600082015250565b6000614900601483613f97565b915061490b826148ca565b601482019050919050565b7f22202f3e0a3c2f7376673e0a0000000000000000000000000000000000000000600082015250565b600061494c600c83613f97565b915061495782614916565b600c82019050919050565b600061496e8286613fee565b915061497a8285613fee565b9150614985826148f3565b91506149918284613fee565b915061499c8261493f565b9150819050949350505050565b7f416c706861626574200000000000000000000000000000000000000000000000600082015250565b60006149df600983613f97565b91506149ea826149a9565b600982019050919050565b6000614a00826149d2565b9150614a0c8284613fee565b915081905092915050565b600060208284031215614a2d57614a2c612e69565b5b600082015167ffffffffffffffff811115614a4b57614a4a612e6e565b5b614a5784828501614824565b91505092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614a96601983612f39565b9150614aa182614a60565b602082019050919050565b60006020820190508181036000830152614ac581614a89565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614b28603283612f39565b9150614b3382614acc565b604082019050919050565b60006020820190508181036000830152614b5781614b1b565b9050919050565b6000614b6982612fe0565b9150614b7483612fe0565b925082614b8457614b836139cf565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082825260208201905092915050565b6000614bda8261413a565b614be48185614bbe565b9350614bf4818560208601612f4a565b614bfd81612f74565b840191505092915050565b6000608082019050614c1d6000830187613075565b614c2a6020830186613075565b614c37604083018561310b565b8181036060830152614c498184614bcf565b905095945050505050565b600081519050614c6381612e9f565b92915050565b600060208284031215614c7f57614c7e612e69565b5b6000614c8d84828501614c54565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614ccc602083612f39565b9150614cd782614c96565b602082019050919050565b60006020820190508181036000830152614cfb81614cbf565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614d38601c83612f39565b9150614d4382614d02565b602082019050919050565b60006020820190508181036000830152614d6781614d2b565b905091905056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7376672076696577426f783d2230203020313032342031303234222020786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e0a3c646566733e0aa2646970667358221220aaa874c23492d412a25e0aeba7861ee35876009be98e9df528585f65675bfd3e64736f6c63430008110033

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

0000000000000000000000005c8d7748bf07709d3adc3f74fa0255f9f358c8b1000000000000000000000000eaaf6d73fb5c63478d09e523a5fd8b28f9e5be9a

-----Decoded View---------------
Arg [0] : _tokenGate (address): 0x5C8d7748bF07709D3adC3f74fa0255F9f358C8b1
Arg [1] : _assetProvider (address): 0xeAaf6D73fb5C63478D09e523a5Fd8b28f9E5Be9a

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000005c8d7748bf07709d3adc3f74fa0255f9f358c8b1
Arg [1] : 000000000000000000000000eaaf6d73fb5c63478d09e523a5fd8b28f9e5be9a


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.