ETH Price: $3,479.20 (+3.99%)

Token

BlackSquare (B2)
 

Overview

Max Total Supply

0 B2

Holders

800

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
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:
BlackSquareNFT

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 22 : BlackSquareNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import './ERC2981/ERC2981ContractWideRoyalties.sol';
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./Erc721OperatorFilter/IOperatorFilter.sol";
import "./OBYToken.sol";


contract BlackSquareNFT is ERC721, Ownable, ERC2981ContractWideRoyalties {
    using Strings for uint256;
    using Counters for Counters.Counter;

    uint256 private rewardPerCycle;
    uint256 public totalCycleCount = 0;
    uint256 constant THRESHOLD = 25;
    uint256 constant TOKENS_PER_EDITION = 25;
    uint256 constant MAX_NUMBER_EDITIONS = 58;

    address private treasury;

    string public openSeaContractURI;
    string public baseURI;

    OBYToken obyToken;
    IOperatorFilter operatorFilter;
    Counters.Counter private _editionIds;
    Counters.Counter private _tokenIds;

   struct Edition {
        uint256[TOKENS_PER_EDITION] tokens;
        uint256 illuminationTimeStamp;
        uint256 lastUpdateTimestamp;
        uint256 cycle;
        uint256 id;
        string editionThumbnail;
        string illumination;
    }

    struct OwnerReward {
        uint256 rewardPaid;
        uint256 rewardStored;
    }

    struct CreateEditionStruct {
        uint256[TOKENS_PER_EDITION] tokens;
        uint256 illuminationMoment;
        string editionThumbnail;
        string illumination;
    }

    mapping(uint256 => mapping(uint256 => OwnerReward)) private _ownersReward;
    mapping(address => bool) private _eligibles;
    mapping(uint256 => Edition) private _editions;
    mapping(uint256 => uint256) private _editionOfToken;
    mapping(address => uint256) private _totalRewardsClaimed;

    event RewardWithdrawn(uint256 amount, address sender);
    event EditionCreated(uint256 editionId);


    constructor(address obyAddress, address _treasury, uint256 _royaltyValue, string memory _openSeaContractURI, string memory _blackSquareBaseURI,
    uint256 _rewardPerCycle, address _operatorFilter) ERC721("BlackSquare", "B2") {
        obyToken = OBYToken(obyAddress);
        operatorFilter = IOperatorFilter(_operatorFilter);
        treasury = _treasury;
        openSeaContractURI = _openSeaContractURI;
        baseURI = _blackSquareBaseURI;
        rewardPerCycle = _rewardPerCycle;
        _setRoyalties(_treasury, _royaltyValue);
    }

    modifier onlyEligible() {
        require(owner() == _msgSender() || _eligibles[_msgSender()] == true, "BlackSquareNFT: caller is not eligible");
        _;
    }

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

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721, ERC2981)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

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

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


    function setRewardPerCycle(uint256 _rewardPerCycle) external onlyOwner {
        rewardPerCycle = _rewardPerCycle;
    }

    function setRoyalties(address recipient, uint256 value) external onlyOwner {
        _setRoyalties(recipient, value);
    }

    function setEligibles(address _eligible) external onlyOwner  {
        _eligibles[_eligible] = true;

        
    }

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

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override(ERC721) {
        if (
            from != address(0) &&
            to != address(0) &&
            !_mayTransfer(msg.sender, tokenId)
        ) {
            revert("ERC721OperatorFilter: illegal operator");
        }
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function _mayTransfer(address operator, uint256 tokenId)
        private
        view
        returns (bool)
    {
        IOperatorFilter filter = operatorFilter;
        if (address(filter) == address(0)) return true;
        if (operator == ownerOf(tokenId)) return true;
        return filter.mayTransfer(msg.sender);
    }

    function getEditions() public view returns (Edition[] memory) {
        Edition[] memory editions = new Edition[](_editionIds.current() + 1);

        for (uint256 editionCounter = 1; editionCounter <= _editionIds.current(); editionCounter++){
            editions[editionCounter] = _editions[editionCounter];
        }
        return editions;
    }

    function deleteEdition (uint256 editionId) public onlyOwner {
        delete _editions[editionId];
    }

    function createEdition(CreateEditionStruct memory _createEditionStruct) public onlyOwner  {
        _editionIds.increment();
        uint256 editionId = _editionIds.current();
        

        for (uint256 i = 0; i < _createEditionStruct.tokens.length; i++) {
            _editionOfToken[_createEditionStruct.tokens[i]] = _editionIds.current();
        }

        _editions[editionId].tokens = _createEditionStruct.tokens;
        _editions[editionId].illuminationTimeStamp = _createEditionStruct.illuminationMoment;
        _editions[editionId].lastUpdateTimestamp = block.timestamp;
        _editions[editionId].cycle = 1;
        _editions[editionId].id = editionId;
        _editions[editionId].editionThumbnail = _createEditionStruct.editionThumbnail;
        _editions[editionId].illumination = _createEditionStruct.illumination;

        emit EditionCreated(editionId);
    }


    function getCurrentTokenId() external view returns (uint256) {
        return _tokenIds.current();
    }

    function getRewardInOBY () public view returns (uint256, uint256) {
        uint256[] memory tokens = getTokensHeldByUser(_msgSender());

        require(tokens.length > 0, 'NO BlackSquares held');
        uint256 availableReward = 0;

        uint256 paidReward = _totalRewardsClaimed[_msgSender()];

        for (uint256 i = 0; i < tokens.length; i++) {
            (uint256 rewardPertoken, ,) = _getAvailableRewardInOby(tokens[i]);
            availableReward += rewardPertoken;
            
        }
        return (availableReward, paidReward);
    }

    function claimRewardInOBY () public returns (uint256) {
        uint256[] memory tokens = getTokensHeldByUser(_msgSender());

        require(tokens.length > 0, 'NO BlackSquares held');
        uint256 availableReward = 0;

        for (uint256 i = 0; i < tokens.length; i++) {
            (uint256 rewardPertoken, uint256 cycle, uint256 rewardStoredPrev) = _getAvailableRewardInOby(tokens[i]);
            availableReward += rewardPertoken;

            uint256 tokenId = tokens[i];

            uint256 previousCycle = cycle > 1 ? cycle - 1 : 1;
            uint256 rewardPaid = rewardPertoken - rewardStoredPrev;

            _ownersReward[tokenId][cycle].rewardPaid += rewardPaid;

            _totalRewardsClaimed[_msgSender()] += rewardPertoken;
            _ownersReward[tokenId][cycle].rewardStored = 0;
            if (cycle > 1) {
                _ownersReward[tokenId][previousCycle].rewardStored = 0;
            }
        }

        require(availableReward > 0, 'No OBY available to mint');

        if (availableReward > 0) {
            obyToken.mint(_msgSender(), availableReward);
        }

        emit RewardWithdrawn(availableReward, _msgSender());
        
        return availableReward;
    }

    function getTokensHeldByUser(address user) public view returns (uint256[] memory) {
        uint256 balance = balanceOf(user);
        uint256[] memory emptyTokens = new uint256[](0);
        uint256[] memory tokenIds = new uint256[](balance);
        uint256 j = 0;

        for (uint256 i = 1; i <= _tokenIds.current(); i++ ) {
            address tokenOwner = ownerOf(i);

            if (tokenOwner == user) {
                tokenIds[j] = i;
                j++;
            }
        }
        if (tokenIds.length > 0) {
            return tokenIds;
        }  else {
            return emptyTokens;
        }
    }

    function mintAndDrop(address[] memory recipients, CreateEditionStruct[] memory _createEditionStruct) public onlyOwner {
        uint256 editionCount = 0;

        if(_editionIds.current() <= MAX_NUMBER_EDITIONS) {
            for (uint256 i = 0; i < recipients.length; i++) {
                _tokenIds.increment();
                uint256 currentTokenId = _tokenIds.current();

                unchecked {
                    _mint(recipients[i], currentTokenId);

                    if (currentTokenId == 25 || currentTokenId > 25 && currentTokenId % 25 ==  0) {
                        createEdition(_createEditionStruct[editionCount]);
                        editionCount++;
                    }
                }
            }
        }
    }

    function editEdition(uint256 _editionId, uint256 _illuminationTimeStamp) public onlyEligible returns (uint256) {
        updateStoredReward(_editionId);

        _editions[_editionId].illuminationTimeStamp = _illuminationTimeStamp;
        _editions[_editionId].lastUpdateTimestamp = block.timestamp;
        _editions[_editionId].cycle += 1;

        totalCycleCount ++;

        return _editionId;
    }

    function updateStoredReward(uint256 editionId) public onlyEligible  {
        uint256 editionCycle = _editions[editionId].cycle;
        for (uint256 tokenId = 0; tokenId < _editions[editionId].tokens.length; tokenId++ ) {
            uint256 currentToken = _editions[editionId].tokens[tokenId];

            // Normal update where cycle is > 1, Up to the normal rewardPerPeriod was paid out & There is a stored reward >= 0
            if (_ownersReward[currentToken][editionCycle].rewardPaid <= (rewardPerCycle / 10000) && editionCycle > 1 && _ownersReward[currentToken][editionCycle - 1].rewardStored >= 0) {
                _ownersReward[currentToken][editionCycle].rewardStored =  (rewardPerCycle / 10000) -  _ownersReward[currentToken][editionCycle].rewardPaid + _ownersReward[currentToken][editionCycle - 1].rewardStored;

            // We are in Cycle one, so there is no previously stored reward. Now everything gets stored which is a positive amount or 0
            } else if (_ownersReward[currentToken][editionCycle].rewardPaid <= (rewardPerCycle / 10000) && editionCycle == 1) {
                _ownersReward[currentToken][editionCycle].rewardStored = (rewardPerCycle / 10000) -  _ownersReward[currentToken][editionCycle].rewardPaid;

            // In case due to some rounding errors etc. RewardPaid > Reward, Only Stored Reward is carried over if Cycle > 1 and Stored Reward is bigger than 0
            } else if (_ownersReward[currentToken][editionCycle].rewardPaid > (rewardPerCycle / 10000) && editionCycle > 1 && _ownersReward[currentToken][editionCycle - 1].rewardStored > 0) {
                _ownersReward[currentToken][editionCycle].rewardStored = _ownersReward[currentToken][editionCycle - 1].rewardStored;

            // Handle the Edge Cases
            } else {
                _ownersReward[currentToken][editionCycle].rewardStored = 0;
            }
            
        }
        
    }

    function getFirstEditionToSetIlluminationDate() public view returns (uint256) {
        for (uint256 editionCounter = 1; editionCounter <= _editionIds.current(); editionCounter++){
            if (_editions[editionCounter].illuminationTimeStamp < block.timestamp) {
                return editionCounter;
            }
        }
        return 0;
    }

    function getAvailableIlluminaCount() public view returns (uint256) {
        uint256 availableIlluminas = totalCycleCount * THRESHOLD;
        for (uint256 editionCounter = 1; editionCounter <= _editionIds.current(); editionCounter++){
            if (_editions[editionCounter].illuminationTimeStamp < block.timestamp) {
                availableIlluminas += THRESHOLD;
            }
        }
        return availableIlluminas;
    }

    function setIlluminationTimeStamp(uint256 _editionId, uint256 _illuminationTimeStamp) public onlyOwner {
        _editions[_editionId].illuminationTimeStamp = _illuminationTimeStamp;
    }

     function _getAvailableRewardInOby(uint256 tokenId) internal view returns (uint256, uint256, uint256) {
        uint256 editionId = _editionOfToken[tokenId];

        require(editionId != 0, 'Token Not associated with any Edition');

        uint256 illuminationTimeStamp = _editions[editionId].illuminationTimeStamp;
        uint256 cycle = _editions[editionId].cycle;
        uint256 previousCycle = cycle > 1 ? cycle - 1 : 1;
        uint256 lastUpdateTimestamp = _editions[editionId].lastUpdateTimestamp;

        uint256 rewardPaid = _ownersReward[tokenId][cycle].rewardPaid > 0 ? _ownersReward[tokenId][cycle].rewardPaid : 0;
        uint256 rewardStoredPrev = cycle > 1 ? _ownersReward[tokenId][previousCycle].rewardStored : 0;

        // We are in the normal distribution Cycle
        if (lastUpdateTimestamp < illuminationTimeStamp && block.timestamp < illuminationTimeStamp && block.timestamp > lastUpdateTimestamp) {
            uint256 rewardPerSecond = rewardPerCycle / (illuminationTimeStamp - lastUpdateTimestamp);

            uint256 rewardPayableFromCycle = (((rewardPerSecond) * ((block.timestamp) - lastUpdateTimestamp)) / 10000) - rewardPaid;

            uint256 returnableAmount = rewardPayableFromCycle >= 1 ? rewardPayableFromCycle + rewardStoredPrev : rewardStoredPrev;

            return (returnableAmount, cycle, rewardStoredPrev);
        // We are outside the normal cycle, during time of Illumina sale
        } else if (lastUpdateTimestamp < illuminationTimeStamp && block.timestamp > illuminationTimeStamp && block.timestamp > lastUpdateTimestamp) {

            uint256 returnableAmount = rewardStoredPrev + (rewardPerCycle / 10000) - rewardPaid;
            return (returnableAmount, cycle, rewardStoredPrev);
        // Handle all edge cases
        } else {
            return (rewardStoredPrev, cycle, rewardStoredPrev);
        }
    }
}

File 2 of 22 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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: balance query for the zero address");
        return _balances[owner];
    }

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

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

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

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

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

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be 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 owner nor approved for all"
        );

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || 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 a {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 a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

    /**
     * @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 3 of 22 : ERC2981ContractWideRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

import './ERC2981.sol';

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
/// @dev This implementation has the same royalties for each and every tokens
abstract contract ERC2981ContractWideRoyalties is ERC2981 {
    RoyaltyInfo private _royalties;

    /// @dev Sets token royalties
    /// @param recipient recipient of the royalties
    /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0)
    function _setRoyalties(address recipient, uint256 value) internal {
        require(value <= 10000, 'ERC2981Royalties: Too high');
        _royalties = RoyaltyInfo(recipient, uint24(value));
    }

    /// @inheritdoc	IERC2981Royalties
    function royaltyInfo(uint256, uint256 value)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        RoyaltyInfo memory royalties = _royalties;
        receiver = royalties.recipient;
        royaltyAmount = (value * royalties.amount) / 10000;
    }
}

File 4 of 22 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 5 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 6 of 22 : IOperatorFilter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

interface IOperatorFilter {
    function mayTransfer(address operator) external view returns (bool);
}

File 7 of 22 : OBYToken.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";


contract OBYToken is ERC20, Ownable {
    mapping(address => bool) private _eligibles;

    event Destruction(uint256 amount);

    constructor() ERC20("OBYToken", "OBY") {}

    modifier onlyEligible() {
        require(owner() == _msgSender() || _eligibles[msg.sender], "OBYToken: caller is not eligible");
        _;
    }

    function setEligibles(address _eligible) public onlyOwner {
        _eligibles[_eligible] = true;
    }

    function mint(address account, uint256 amount) external onlyEligible {
        uint256 sendAmount = amount * (10**18);
        _mint(account, sendAmount);
    }

    function checkBalances(uint256 tokenPrice, address account) external onlyEligible view returns (bool) {
        if (balanceOf(account) >= tokenPrice) {
            return true;
        }
        return false;
    }

    function burnToken(uint256 amount, address account) external onlyEligible {
        uint256 sendAmount = amount * (10**18);
        _burn(account, sendAmount);

        emit Destruction(amount);
    }

    function getEligibles(address account) public view onlyEligible returns (bool) {
        require (account != address(0), "OBYToken: address must not be empty");
        return _eligibles[account];
    }
}

File 8 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

    /**
     * @dev 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 9 of 22 : 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 10 of 22 : 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 11 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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

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

File 12 of 22 : 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 13 of 22 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 15 of 22 : 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 16 of 22 : ERC2981.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

import './IERC2981Royalties.sol';

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
abstract contract ERC2981 is ERC165, IERC2981Royalties {
    struct RoyaltyInfo {
        address recipient;
        uint24 amount;
    }

    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            interfaceId == type(IERC2981Royalties).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

File 17 of 22 : IERC2981Royalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

/// @title IERC2981Royalties
/// @dev Interface for the ERC2981 - Token Royalty standard
interface IERC2981Royalties {
    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        returns (address _receiver, uint256 _royaltyAmount);
}

File 18 of 22 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens 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 amount
    ) 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, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 19 of 22 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 20 of 22 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 21 of 22 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 22 of 22 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"obyAddress","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_royaltyValue","type":"uint256"},{"internalType":"string","name":"_openSeaContractURI","type":"string"},{"internalType":"string","name":"_blackSquareBaseURI","type":"string"},{"internalType":"uint256","name":"_rewardPerCycle","type":"uint256"},{"internalType":"address","name":"_operatorFilter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"editionId","type":"uint256"}],"name":"EditionCreated","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":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"RewardWithdrawn","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRewardInOBY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256[25]","name":"tokens","type":"uint256[25]"},{"internalType":"uint256","name":"illuminationMoment","type":"uint256"},{"internalType":"string","name":"editionThumbnail","type":"string"},{"internalType":"string","name":"illumination","type":"string"}],"internalType":"struct BlackSquareNFT.CreateEditionStruct","name":"_createEditionStruct","type":"tuple"}],"name":"createEdition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"editionId","type":"uint256"}],"name":"deleteEdition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint256","name":"_illuminationTimeStamp","type":"uint256"}],"name":"editEdition","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAvailableIlluminaCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEditions","outputs":[{"components":[{"internalType":"uint256[25]","name":"tokens","type":"uint256[25]"},{"internalType":"uint256","name":"illuminationTimeStamp","type":"uint256"},{"internalType":"uint256","name":"lastUpdateTimestamp","type":"uint256"},{"internalType":"uint256","name":"cycle","type":"uint256"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"editionThumbnail","type":"string"},{"internalType":"string","name":"illumination","type":"string"}],"internalType":"struct BlackSquareNFT.Edition[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFirstEditionToSetIlluminationDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardInOBY","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getTokensHeldByUser","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":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"components":[{"internalType":"uint256[25]","name":"tokens","type":"uint256[25]"},{"internalType":"uint256","name":"illuminationMoment","type":"uint256"},{"internalType":"string","name":"editionThumbnail","type":"string"},{"internalType":"string","name":"illumination","type":"string"}],"internalType":"struct BlackSquareNFT.CreateEditionStruct[]","name":"_createEditionStruct","type":"tuple[]"}],"name":"mintAndDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openSeaContractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_blackSquareBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_eligible","type":"address"}],"name":"setEligibles","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint256","name":"_illuminationTimeStamp","type":"uint256"}],"name":"setIlluminationTimeStamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerCycle","type":"uint256"}],"name":"setRewardPerCycle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setRoyalties","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":"totalCycleCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"editionId","type":"uint256"}],"name":"updateStoredReward","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006009553480156200001657600080fd5b50604051620065493803806200654983398181016040528101906200003c91906200052e565b6040518060400160405280600b81526020017f426c61636b5371756172650000000000000000000000000000000000000000008152506040518060400160405280600281526020017f42320000000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000c0929190620003d2565b508060019080519060200190620000d9929190620003d2565b505050620000fc620000f06200021760201b60201c565b6200021f60201b60201c565b86600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600b9080519060200190620001d7929190620003d2565b5082600c9080519060200190620001f0929190620003d2565b50816008819055506200020a8686620002e560201b60201c565b5050505050505062000898565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6127108111156200032d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003249062000646565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff1681526020018262ffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548162ffffff021916908362ffffff1602179055509050505050565b828054620003e0906200074c565b90600052602060002090601f01602090048101928262000404576000855562000450565b82601f106200041f57805160ff191683800117855562000450565b8280016001018555821562000450579182015b828111156200044f57825182559160200191906001019062000432565b5b5090506200045f919062000463565b5090565b5b808211156200047e57600081600090555060010162000464565b5090565b600062000499620004938462000691565b62000668565b905082815260208101848484011115620004b857620004b76200081b565b5b620004c584828562000716565b509392505050565b600081519050620004de8162000864565b92915050565b600082601f830112620004fc57620004fb62000816565b5b81516200050e84826020860162000482565b91505092915050565b60008151905062000528816200087e565b92915050565b600080600080600080600060e0888a03121562000550576200054f62000825565b5b6000620005608a828b01620004cd565b9750506020620005738a828b01620004cd565b9650506040620005868a828b0162000517565b955050606088015167ffffffffffffffff811115620005aa57620005a962000820565b5b620005b88a828b01620004e4565b945050608088015167ffffffffffffffff811115620005dc57620005db62000820565b5b620005ea8a828b01620004e4565b93505060a0620005fd8a828b0162000517565b92505060c0620006108a828b01620004cd565b91505092959891949750929550565b60006200062e601a83620006c7565b91506200063b826200083b565b602082019050919050565b6000602082019050818103600083015262000661816200061f565b9050919050565b60006200067462000687565b905062000682828262000782565b919050565b6000604051905090565b600067ffffffffffffffff821115620006af57620006ae620007e7565b5b620006ba826200082a565b9050602081019050919050565b600082825260208201905092915050565b6000620006e582620006ec565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b838110156200073657808201518184015260208101905062000719565b8381111562000746576000848401525b50505050565b600060028204905060018216806200076557607f821691505b602082108114156200077c576200077b620007b8565b5b50919050565b6200078d826200082a565b810181811067ffffffffffffffff82111715620007af57620007ae620007e7565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f45524332393831526f79616c746965733a20546f6f2068696768000000000000600082015250565b6200086f81620006d8565b81146200087b57600080fd5b50565b62000889816200070c565b81146200089557600080fd5b50565b615ca180620008a86000396000f3fe608060405234801561001057600080fd5b506004361061023d5760003560e01c80637b9659eb1161013b578063c631341d116100b8578063df6efc6c1161007c578063df6efc6c1461069e578063e10b54f8146106bc578063e8a3d485146106da578063e985e9c5146106f8578063f2fde38b146107285761023d565b8063c631341d146105fc578063c87b56dd14610618578063d26264ef14610648578063d675fee714610666578063daacb9c8146106825761023d565b806395d89b41116100ff57806395d89b411461056c578063a22cb4651461058a578063a75d551a146105a6578063aa31ddcf146105c2578063b88d4fde146105e05761023d565b80637b9659eb146104ca5780638c7ea24b146104fa5780638d10c96b146105165780638da5cb5b14610532578063938e3d7b146105505761023d565b80634566e2a5116101c95780635e5873341161018d5780635e587334146104235780636352211e146104425780636c0360eb1461047257806370a0823114610490578063715018a6146104c05761023d565b80634566e2a5146103915780634f6f6ced146103ad5780634f904031146103cb57806355f804b3146103e957806356189236146104055761023d565b806323b872dd1161021057806323b872dd146102dc57806326e98ec7146102f8578063299716c9146103145780632a55205a1461034457806342842e0e146103755761023d565b806301ffc9a71461024257806306fdde0314610272578063081812fc14610290578063095ea7b3146102c0575b600080fd5b61025c600480360381019061025791906144bb565b610744565b6040516102699190614d26565b60405180910390f35b61027a610756565b6040516102879190614d41565b60405180910390f35b6102aa60048036038101906102a591906145a7565b6107e8565b6040516102b79190614c52565b60405180910390f35b6102da60048036038101906102d591906143d6565b61086d565b005b6102f660048036038101906102f191906142c0565b610985565b005b610312600480360381019061030d9190614253565b6109e5565b005b61032e600480360381019061032991906145d4565b610abc565b60405161033b9190615023565b60405180910390f35b61035e600480360381019061035991906145d4565b610c2a565b60405161036c929190614cb9565b60405180910390f35b61038f600480360381019061038a91906142c0565b610cea565b005b6103ab60048036038101906103a691906145a7565b610d0a565b005b6103b5610d90565b6040516103c29190615023565b60405180910390f35b6103d36110c6565b6040516103e09190615023565b60405180910390f35b61040360048036038101906103fe9190614515565b611121565b005b61040d6111b7565b60405161041a9190615023565b60405180910390f35b61042b6111c8565b604051610439929190615067565b60405180910390f35b61045c600480360381019061045791906145a7565b6112d4565b6040516104699190614c52565b60405180910390f35b61047a611386565b6040516104879190614d41565b60405180910390f35b6104aa60048036038101906104a59190614253565b611414565b6040516104b79190615023565b60405180910390f35b6104c86114cc565b005b6104e460048036038101906104df9190614253565b611554565b6040516104f19190614d04565b60405180910390f35b610514600480360381019061050f91906143d6565b6116bd565b005b610530600480360381019061052b91906145d4565b611747565b005b61053a6117e2565b6040516105479190614c52565b60405180910390f35b61056a60048036038101906105659190614515565b61180c565b005b6105746118a2565b6040516105819190614d41565b60405180910390f35b6105a4600480360381019061059f9190614396565b611934565b005b6105c060048036038101906105bb9190614416565b61194a565b005b6105ca611a99565b6040516105d79190615023565b60405180910390f35b6105fa60048036038101906105f59190614313565b611b0d565b005b610616600480360381019061061191906145a7565b611b6f565b005b610632600480360381019061062d91906145a7565b611fe4565b60405161063f9190614d41565b60405180910390f35b61065061208b565b60405161065d9190614d41565b60405180910390f35b610680600480360381019061067b91906145a7565b612119565b005b61069c6004803603810190610697919061455e565b6121fe565b005b6106a6612428565b6040516106b39190614ce2565b60405180910390f35b6106c4612696565b6040516106d19190615023565b60405180910390f35b6106e261269c565b6040516106ef9190614d41565b60405180910390f35b610712600480360381019061070d9190614280565b61272e565b60405161071f9190614d26565b60405180910390f35b610742600480360381019061073d9190614253565b6127c2565b005b600061074f826128ba565b9050919050565b60606000805461076590615453565b80601f016020809104026020016040519081016040528092919081815260200182805461079190615453565b80156107de5780601f106107b3576101008083540402835291602001916107de565b820191906000526020600020905b8154815290600101906020018083116107c157829003601f168201915b5050505050905090565b60006107f382612934565b610832576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082990614f23565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610878826112d4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156108e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e090614fa3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109086129a0565b73ffffffffffffffffffffffffffffffffffffffff1614806109375750610936816109316129a0565b61272e565b5b610976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096d90614ea3565b60405180910390fd5b61098083836129a8565b505050565b6109966109906129a0565b82612a61565b6109d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109cc90614fe3565b60405180910390fd5b6109e0838383612b3f565b505050565b6109ed6129a0565b73ffffffffffffffffffffffffffffffffffffffff16610a0b6117e2565b73ffffffffffffffffffffffffffffffffffffffff1614610a61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5890614f43565b60405180910390fd5b6001601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000610ac66129a0565b73ffffffffffffffffffffffffffffffffffffffff16610ae46117e2565b73ffffffffffffffffffffffffffffffffffffffff161480610b5d57506001151560126000610b116129a0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515145b610b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9390614f63565b60405180910390fd5b610ba583611b6f565b8160136000858152602001908152602001600020601901819055504260136000858152602001908152602001600020601a0181905550600160136000858152602001908152602001600020601b016000828254610c029190615288565b9250508190555060096000815480929190610c1c906154b6565b919050555082905092915050565b600080600060076040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900462ffffff1662ffffff1662ffffff1681525050905080600001519250612710816020015162ffffff1685610cd6919061530f565b610ce091906152de565b9150509250929050565b610d0583838360405180602001604052806000815250611b0d565b505050565b610d126129a0565b73ffffffffffffffffffffffffffffffffffffffff16610d306117e2565b73ffffffffffffffffffffffffffffffffffffffff1614610d86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7d90614f43565b60405180910390fd5b8060088190555050565b600080610da3610d9e6129a0565b611554565b90506000815111610de9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de090614e03565b60405180910390fd5b6000805b8251811015610f9a576000806000610e1e868581518110610e1157610e106155bd565b5b6020026020010151612da6565b9250925092508285610e309190615288565b94506000868581518110610e4757610e466155bd565b5b60200260200101519050600060018411610e62576001610e70565b600184610e6f9190615369565b5b905060008386610e809190615369565b9050806011600085815260200190815260200160002060008781526020019081526020016000206000016000828254610eb99190615288565b925050819055508560156000610ecd6129a0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610f169190615288565b925050819055506000601160008581526020019081526020016000206000878152602001908152602001600020600101819055506001851115610f81576000601160008581526020019081526020016000206000848152602001908152602001600020600101819055505b5050505050508080610f92906154b6565b915050610ded565b5060008111610fde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd590614fc3565b60405180910390fd5b600081111561107e57600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1961102d6129a0565b836040518363ffffffff1660e01b815260040161104b929190614cb9565b600060405180830381600087803b15801561106557600080fd5b505af1158015611079573d6000803e3d6000fd5b505050505b7f7500c4319132adbe5ee377dbd33a4a90bfe57b88551d814b444a80a6c4c6cfa0816110a86129a0565b6040516110b692919061503e565b60405180910390a1809250505090565b600080600190505b6110d8600f613032565b8111611118574260136000838152602001908152602001600020601901541015611105578091505061111e565b8080611110906154b6565b9150506110ce565b50600090505b90565b6111296129a0565b73ffffffffffffffffffffffffffffffffffffffff166111476117e2565b73ffffffffffffffffffffffffffffffffffffffff161461119d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119490614f43565b60405180910390fd5b80600c90805190602001906111b3929190613cb9565b5050565b60006111c36010613032565b905090565b60008060006111dd6111d86129a0565b611554565b90506000815111611223576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121a90614e03565b60405180910390fd5b600080601560006112326129a0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060005b83518110156112c65760006112a0858381518110611293576112926155bd565b5b6020026020010151612da6565b5050905080846112b09190615288565b93505080806112be906154b6565b915050611272565b508181945094505050509091565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561137d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137490614ee3565b60405180910390fd5b80915050919050565b600c805461139390615453565b80601f01602080910402602001604051908101604052809291908181526020018280546113bf90615453565b801561140c5780601f106113e15761010080835404028352916020019161140c565b820191906000526020600020905b8154815290600101906020018083116113ef57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147c90614ec3565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6114d46129a0565b73ffffffffffffffffffffffffffffffffffffffff166114f26117e2565b73ffffffffffffffffffffffffffffffffffffffff1614611548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153f90614f43565b60405180910390fd5b6115526000613040565b565b6060600061156183611414565b905060008067ffffffffffffffff81111561157f5761157e6155ec565b5b6040519080825280602002602001820160405280156115ad5781602001602082028036833780820191505090505b50905060008267ffffffffffffffff8111156115cc576115cb6155ec565b5b6040519080825280602002602001820160405280156115fa5781602001602082028036833780820191505090505b509050600080600190505b61160f6010613032565b8111611699576000611620826112d4565b90508773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611685578184848151811061166a576116696155bd565b5b6020026020010181815250508280611681906154b6565b9350505b508080611691906154b6565b915050611605565b506000825111156116b057819450505050506116b8565b829450505050505b919050565b6116c56129a0565b73ffffffffffffffffffffffffffffffffffffffff166116e36117e2565b73ffffffffffffffffffffffffffffffffffffffff1614611739576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173090614f43565b60405180910390fd5b6117438282613106565b5050565b61174f6129a0565b73ffffffffffffffffffffffffffffffffffffffff1661176d6117e2565b73ffffffffffffffffffffffffffffffffffffffff16146117c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ba90614f43565b60405180910390fd5b8060136000848152602001908152602001600020601901819055505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118146129a0565b73ffffffffffffffffffffffffffffffffffffffff166118326117e2565b73ffffffffffffffffffffffffffffffffffffffff1614611888576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187f90614f43565b60405180910390fd5b80600b908051906020019061189e929190613cb9565b5050565b6060600180546118b190615453565b80601f01602080910402602001604051908101604052809291908181526020018280546118dd90615453565b801561192a5780601f106118ff5761010080835404028352916020019161192a565b820191906000526020600020905b81548152906001019060200180831161190d57829003601f168201915b5050505050905090565b61194661193f6129a0565b83836131f0565b5050565b6119526129a0565b73ffffffffffffffffffffffffffffffffffffffff166119706117e2565b73ffffffffffffffffffffffffffffffffffffffff16146119c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bd90614f43565b60405180910390fd5b6000603a6119d4600f613032565b11611a945760005b8351811015611a92576119ef601061335d565b60006119fb6010613032565b9050611a21858381518110611a1357611a126155bd565b5b602002602001015182613373565b6019811480611a4d5750601981118015611a4c5750600060198281611a4957611a4861555f565b5b06145b5b15611a7e57611a75848481518110611a6857611a676155bd565b5b60200260200101516121fe565b82806001019350505b508080611a8a906154b6565b9150506119dc565b505b505050565b6000806019600954611aab919061530f565b90506000600190505b611abe600f613032565b8111611b05574260136000838152602001908152602001600020601901541015611af257601982611aef9190615288565b91505b8080611afd906154b6565b915050611ab4565b508091505090565b611b1e611b186129a0565b83612a61565b611b5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5490614fe3565b60405180910390fd5b611b698484848461354d565b50505050565b611b776129a0565b73ffffffffffffffffffffffffffffffffffffffff16611b956117e2565b73ffffffffffffffffffffffffffffffffffffffff161480611c0e57506001151560126000611bc26129a0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515145b611c4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4490614f63565b60405180910390fd5b600060136000838152602001908152602001600020601b0154905060005b60136000848152602001908152602001600020506019811015611fdf576000601360008581526020019081526020016000206000018260198110611cb257611cb16155bd565b5b01549050612710600854611cc691906152de565b6011600083815260200190815260200160002060008581526020019081526020016000206000015411158015611cfc5750600183115b8015611d3c57506000601160008381526020019081526020016000206000600186611d279190615369565b81526020019081526020016000206001015410155b15611df157601160008281526020019081526020016000206000600185611d639190615369565b81526020019081526020016000206001015460116000838152602001908152602001600020600085815260200190815260200160002060000154612710600854611dad91906152de565b611db79190615369565b611dc19190615288565b60116000838152602001908152602001600020600085815260200190815260200160002060010181905550611fcb565b612710600854611e0191906152de565b6011600083815260200190815260200160002060008581526020019081526020016000206000015411158015611e375750600183145b15611eae5760116000828152602001908152602001600020600084815260200190815260200160002060000154612710600854611e7491906152de565b611e7e9190615369565b60116000838152602001908152602001600020600085815260200190815260200160002060010181905550611fca565b612710600854611ebe91906152de565b60116000838152602001908152602001600020600085815260200190815260200160002060000154118015611ef35750600183115b8015611f3257506000601160008381526020019081526020016000206000600186611f1e9190615369565b815260200190815260200160002060010154115b15611f9b57601160008281526020019081526020016000206000600185611f599190615369565b81526020019081526020016000206001015460116000838152602001908152602001600020600085815260200190815260200160002060010181905550611fc9565b6000601160008381526020019081526020016000206000858152602001908152602001600020600101819055505b5b5b508080611fd7906154b6565b915050611c6b565b505050565b6060611fef82612934565b61202e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202590614f83565b60405180910390fd5b60006120386135a9565b905060008151116120585760405180602001604052806000815250612083565b806120628461363b565b604051602001612073929190614c2e565b6040516020818303038152906040525b915050919050565b600b805461209890615453565b80601f01602080910402602001604051908101604052809291908181526020018280546120c490615453565b80156121115780601f106120e657610100808354040283529160200191612111565b820191906000526020600020905b8154815290600101906020018083116120f457829003601f168201915b505050505081565b6121216129a0565b73ffffffffffffffffffffffffffffffffffffffff1661213f6117e2565b73ffffffffffffffffffffffffffffffffffffffff1614612195576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218c90614f43565b60405180910390fd5b60136000828152602001908152602001600020600080820160006121b99190613d3f565b6019820160009055601a820160009055601b820160009055601c820160009055601d820160006121e99190613d52565b601e820160006121f99190613d52565b505050565b6122066129a0565b73ffffffffffffffffffffffffffffffffffffffff166122246117e2565b73ffffffffffffffffffffffffffffffffffffffff161461227a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227190614f43565b60405180910390fd5b612284600f61335d565b6000612290600f613032565b905060005b82600001515060198110156122f3576122ae600f613032565b60146000856000015184601981106122c9576122c86155bd565b5b602002015181526020019081526020016000208190555080806122eb906154b6565b915050612295565b5081600001516013600083815260200190815260200160002060000190601961231d929190613d92565b50816020015160136000838152602001908152602001600020601901819055504260136000838152602001908152602001600020601a0181905550600160136000838152602001908152602001600020601b01819055508060136000838152602001908152602001600020601c0181905550816040015160136000838152602001908152602001600020601d0190805190602001906123bd929190613cb9565b50816060015160136000838152602001908152602001600020601e0190805190602001906123ec929190613cb9565b507f962bb64b059ad60d491bef43125921210925c52b11ff1cc093409113c8c5fe378160405161241c9190615023565b60405180910390a15050565b606060006001612438600f613032565b6124429190615288565b67ffffffffffffffff81111561245b5761245a6155ec565b5b60405190808252806020026020018201604052801561249457816020015b612481613dd2565b8152602001906001900390816124795790505b5090506000600190505b6124a8600f613032565b811161268e57601360008281526020019081526020016000206040518060e001604052908160008201601980602002604051908101604052809291908260198015612508576020028201915b8154815260200190600101908083116124f4575b5050505050815260200160198201548152602001601a8201548152602001601b8201548152602001601c8201548152602001601d8201805461254990615453565b80601f016020809104026020016040519081016040528092919081815260200182805461257590615453565b80156125c25780601f10612597576101008083540402835291602001916125c2565b820191906000526020600020905b8154815290600101906020018083116125a557829003601f168201915b50505050508152602001601e820180546125db90615453565b80601f016020809104026020016040519081016040528092919081815260200182805461260790615453565b80156126545780601f1061262957610100808354040283529160200191612654565b820191906000526020600020905b81548152906001019060200180831161263757829003601f168201915b5050505050815250508282815181106126705761266f6155bd565b5b60200260200101819052508080612686906154b6565b91505061249e565b508091505090565b60095481565b6060600b80546126ab90615453565b80601f01602080910402602001604051908101604052809291908181526020018280546126d790615453565b80156127245780601f106126f957610100808354040283529160200191612724565b820191906000526020600020905b81548152906001019060200180831161270757829003601f168201915b5050505050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6127ca6129a0565b73ffffffffffffffffffffffffffffffffffffffff166127e86117e2565b73ffffffffffffffffffffffffffffffffffffffff161461283e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283590614f43565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156128ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a590614da3565b60405180910390fd5b6128b781613040565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061292d575061292c8261379c565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612a1b836112d4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612a6c82612934565b612aab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa290614e83565b60405180910390fd5b6000612ab6836112d4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612af85750612af7818561272e565b5b80612b3657508373ffffffffffffffffffffffffffffffffffffffff16612b1e846107e8565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612b5f826112d4565b73ffffffffffffffffffffffffffffffffffffffff1614612bb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bac90614dc3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c1c90614e43565b60405180910390fd5b612c3083838361387e565b612c3b6000826129a8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c8b9190615369565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ce29190615288565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612da183838361394b565b505050565b600080600080601460008681526020019081526020016000205490506000811415612e06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dfd90614e23565b60405180910390fd5b600060136000838152602001908152602001600020601901549050600060136000848152602001908152602001600020601b01549050600060018211612e4d576001612e5b565b600182612e5a9190615369565b5b9050600060136000868152602001908152602001600020601a01549050600080601160008c815260200190815260200160002060008681526020019081526020016000206000015411612eaf576000612ed8565b601160008b81526020019081526020016000206000858152602001908152602001600020600001545b9050600060018511612eeb576000612f14565b601160008c81526020019081526020016000206000858152602001908152602001600020600101545b90508583108015612f2457508542105b8015612f2f57508242115b15612fbc5760008387612f429190615369565b600854612f4f91906152de565b90506000836127108642612f639190615369565b84612f6e919061530f565b612f7891906152de565b612f829190615369565b905060006001821015612f955783612fa2565b8382612fa19190615288565b5b90508088859c509c509c505050505050505050505061302b565b8583108015612fca57508542115b8015612fd557508242115b1561301a57600082612710600854612fed91906152de565b83612ff89190615288565b6130029190615369565b90508086839a509a509a50505050505050505061302b565b808582995099509950505050505050505b9193909250565b600081600001549050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61271081111561314b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314290614d63565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff1681526020018262ffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548162ffffff021916908362ffffff1602179055509050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561325f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161325690614e63565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516133509190614d26565b60405180910390a3505050565b6001816000016000828254019250508190555050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156133e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133da90614f03565b60405180910390fd5b6133ec81612934565b1561342c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161342390614de3565b60405180910390fd5b6134386000838361387e565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134889190615288565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135496000838361394b565b5050565b613558848484612b3f565b61356484848484613950565b6135a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161359a90614d83565b60405180910390fd5b50505050565b6060600c80546135b890615453565b80601f01602080910402602001604051908101604052809291908181526020018280546135e490615453565b80156136315780601f1061360657610100808354040283529160200191613631565b820191906000526020600020905b81548152906001019060200180831161361457829003601f168201915b5050505050905090565b60606000821415613683576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613797565b600082905060005b600082146136b557808061369e906154b6565b915050600a826136ae91906152de565b915061368b565b60008167ffffffffffffffff8111156136d1576136d06155ec565b5b6040519080825280601f01601f1916602001820160405280156137035781602001600182028036833780820191505090505b5090505b600085146137905760018261371c9190615369565b9150600a8561372b91906154ff565b60306137379190615288565b60f81b81838151811061374d5761374c6155bd565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561378991906152de565b9450613707565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061386757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613877575061387682613ae7565b5b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156138e85750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156138fb57506138f93382613b51565b155b1561393b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161393290615003565b60405180910390fd5b613946838383613c91565b505050565b505050565b60006139718473ffffffffffffffffffffffffffffffffffffffff16613c96565b15613ada578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261399a6129a0565b8786866040518563ffffffff1660e01b81526004016139bc9493929190614c6d565b602060405180830381600087803b1580156139d657600080fd5b505af1925050508015613a0757506040513d601f19601f82011682018060405250810190613a0491906144e8565b60015b613a8a573d8060008114613a37576040519150601f19603f3d011682016040523d82523d6000602084013e613a3c565b606091505b50600081511415613a82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a7990614d83565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613adf565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613bb8576001915050613c8b565b613bc1836112d4565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613bfe576001915050613c8b565b8073ffffffffffffffffffffffffffffffffffffffff1663192c596e336040518263ffffffff1660e01b8152600401613c379190614c52565b60206040518083038186803b158015613c4f57600080fd5b505afa158015613c63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c87919061448e565b9150505b92915050565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054613cc590615453565b90600052602060002090601f016020900481019282613ce75760008555613d2e565b82601f10613d0057805160ff1916838001178555613d2e565b82800160010185558215613d2e579182015b82811115613d2d578251825591602001919060010190613d12565b5b509050613d3b9190613e15565b5090565b508060190190613d4f9190613e15565b50565b508054613d5e90615453565b6000825580601f10613d705750613d8f565b601f016020900490600052602060002090810190613d8e9190613e15565b5b50565b8260198101928215613dc1579160200282015b82811115613dc0578251825591602001919060010190613da5565b5b509050613dce9190613e15565b5090565b6040518060e00160405280613de5613e32565b81526020016000815260200160008152602001600081526020016000815260200160608152602001606081525090565b5b80821115613e2e576000816000905550600101613e16565b5090565b604051806103200160405280601990602082028036833780820191505090505090565b6000613e68613e63846150b5565b615090565b90508083825260208201905082856020860282011115613e8b57613e8a61562a565b5b60005b85811015613ebb5781613ea1888261403e565b845260208401935060208301925050600181019050613e8e565b5050509392505050565b6000613ed8613ed3846150e1565b615090565b90508083825260208201905082856020860282011115613efb57613efa61562a565b5b60005b85811015613f4957813567ffffffffffffffff811115613f2157613f2061561b565b5b808601613f2e898261418a565b85526020850194506020840193505050600181019050613efe565b5050509392505050565b6000613f66613f618461510d565b615090565b90508082856020860282011115613f8057613f7f61562a565b5b60005b85811015613fb05781613f96888261423e565b845260208401935060208301925050600181019050613f83565b5050509392505050565b6000613fcd613fc884615133565b615090565b905082815260208101848484011115613fe957613fe861562f565b5b613ff4848285615411565b509392505050565b600061400f61400a84615164565b615090565b90508281526020810184848401111561402b5761402a61562f565b5b614036848285615411565b509392505050565b60008135905061404d81615c0f565b92915050565b600082601f8301126140685761406761561b565b5b8135614078848260208601613e55565b91505092915050565b600082601f8301126140965761409561561b565b5b81356140a6848260208601613ec5565b91505092915050565b600082601f8301126140c4576140c361561b565b5b60196140d1848285613f53565b91505092915050565b6000813590506140e981615c26565b92915050565b6000815190506140fe81615c26565b92915050565b60008135905061411381615c3d565b92915050565b60008151905061412881615c3d565b92915050565b600082601f8301126141435761414261561b565b5b8135614153848260208601613fba565b91505092915050565b600082601f8301126141715761417061561b565b5b8135614181848260208601613ffc565b91505092915050565b600061038082840312156141a1576141a0615620565b5b6141ab6080615090565b905060006141bb848285016140af565b6000830152506103206141d08482850161423e565b60208301525061034082013567ffffffffffffffff8111156141f5576141f4615625565b5b6142018482850161415c565b60408301525061036082013567ffffffffffffffff81111561422657614225615625565b5b6142328482850161415c565b60608301525092915050565b60008135905061424d81615c54565b92915050565b60006020828403121561426957614268615639565b5b60006142778482850161403e565b91505092915050565b6000806040838503121561429757614296615639565b5b60006142a58582860161403e565b92505060206142b68582860161403e565b9150509250929050565b6000806000606084860312156142d9576142d8615639565b5b60006142e78682870161403e565b93505060206142f88682870161403e565b92505060406143098682870161423e565b9150509250925092565b6000806000806080858703121561432d5761432c615639565b5b600061433b8782880161403e565b945050602061434c8782880161403e565b935050604061435d8782880161423e565b925050606085013567ffffffffffffffff81111561437e5761437d615634565b5b61438a8782880161412e565b91505092959194509250565b600080604083850312156143ad576143ac615639565b5b60006143bb8582860161403e565b92505060206143cc858286016140da565b9150509250929050565b600080604083850312156143ed576143ec615639565b5b60006143fb8582860161403e565b925050602061440c8582860161423e565b9150509250929050565b6000806040838503121561442d5761442c615639565b5b600083013567ffffffffffffffff81111561444b5761444a615634565b5b61445785828601614053565b925050602083013567ffffffffffffffff81111561447857614477615634565b5b61448485828601614081565b9150509250929050565b6000602082840312156144a4576144a3615639565b5b60006144b2848285016140ef565b91505092915050565b6000602082840312156144d1576144d0615639565b5b60006144df84828501614104565b91505092915050565b6000602082840312156144fe576144fd615639565b5b600061450c84828501614119565b91505092915050565b60006020828403121561452b5761452a615639565b5b600082013567ffffffffffffffff81111561454957614548615634565b5b6145558482850161415c565b91505092915050565b60006020828403121561457457614573615639565b5b600082013567ffffffffffffffff81111561459257614591615634565b5b61459e8482850161418a565b91505092915050565b6000602082840312156145bd576145bc615639565b5b60006145cb8482850161423e565b91505092915050565b600080604083850312156145eb576145ea615639565b5b60006145f98582860161423e565b925050602061460a8582860161423e565b9150509250929050565b60006146208383614b66565b905092915050565b60006146348383614c10565b60208301905092915050565b6146498161539d565b82525050565b600061465a826151bf565b614664818561521d565b93508360208202850161467685615195565b8060005b858110156146b257848403895281516146938582614614565b945061469e836151f6565b925060208a0199505060018101905061467a565b50829750879550505050505092915050565b6146cd816151ca565b6146d7818461522e565b92506146e2826151a5565b8060005b838110156147135781516146fa8782614628565b965061470583615203565b9250506001810190506146e6565b505050505050565b6000614726826151d5565b6147308185615239565b935061473b836151af565b8060005b8381101561476c5781516147538882614628565b975061475e83615210565b92505060018101905061473f565b5085935050505092915050565b614782816153af565b82525050565b6000614793826151e0565b61479d818561524a565b93506147ad818560208601615420565b6147b68161563e565b840191505092915050565b60006147cc826151eb565b6147d6818561525b565b93506147e6818560208601615420565b6147ef8161563e565b840191505092915050565b6000614805826151eb565b61480f818561526c565b935061481f818560208601615420565b6148288161563e565b840191505092915050565b600061483e826151eb565b614848818561527d565b9350614858818560208601615420565b80840191505092915050565b6000614871601a8361526c565b915061487c8261564f565b602082019050919050565b600061489460328361526c565b915061489f82615678565b604082019050919050565b60006148b760268361526c565b91506148c2826156c7565b604082019050919050565b60006148da60258361526c565b91506148e582615716565b604082019050919050565b60006148fd601c8361526c565b915061490882615765565b602082019050919050565b600061492060148361526c565b915061492b8261578e565b602082019050919050565b600061494360258361526c565b915061494e826157b7565b604082019050919050565b600061496660248361526c565b915061497182615806565b604082019050919050565b600061498960198361526c565b915061499482615855565b602082019050919050565b60006149ac602c8361526c565b91506149b78261587e565b604082019050919050565b60006149cf60388361526c565b91506149da826158cd565b604082019050919050565b60006149f2602a8361526c565b91506149fd8261591c565b604082019050919050565b6000614a1560298361526c565b9150614a208261596b565b604082019050919050565b6000614a3860208361526c565b9150614a43826159ba565b602082019050919050565b6000614a5b602c8361526c565b9150614a66826159e3565b604082019050919050565b6000614a7e60208361526c565b9150614a8982615a32565b602082019050919050565b6000614aa160268361526c565b9150614aac82615a5b565b604082019050919050565b6000614ac4602f8361526c565b9150614acf82615aaa565b604082019050919050565b6000614ae760218361526c565b9150614af282615af9565b604082019050919050565b6000614b0a60188361526c565b9150614b1582615b48565b602082019050919050565b6000614b2d60318361526c565b9150614b3882615b71565b604082019050919050565b6000614b5060268361526c565b9150614b5b82615bc0565b604082019050919050565b60006103e083016000830151614b7f60008601826146c4565b506020830151614b93610320860182614c10565b506040830151614ba7610340860182614c10565b506060830151614bbb610360860182614c10565b506080830151614bcf610380860182614c10565b5060a08301518482036103a0860152614be882826147c1565b91505060c08301518482036103c0860152614c0382826147c1565b9150508091505092915050565b614c1981615407565b82525050565b614c2881615407565b82525050565b6000614c3a8285614833565b9150614c468284614833565b91508190509392505050565b6000602082019050614c676000830184614640565b92915050565b6000608082019050614c826000830187614640565b614c8f6020830186614640565b614c9c6040830185614c1f565b8181036060830152614cae8184614788565b905095945050505050565b6000604082019050614cce6000830185614640565b614cdb6020830184614c1f565b9392505050565b60006020820190508181036000830152614cfc818461464f565b905092915050565b60006020820190508181036000830152614d1e818461471b565b905092915050565b6000602082019050614d3b6000830184614779565b92915050565b60006020820190508181036000830152614d5b81846147fa565b905092915050565b60006020820190508181036000830152614d7c81614864565b9050919050565b60006020820190508181036000830152614d9c81614887565b9050919050565b60006020820190508181036000830152614dbc816148aa565b9050919050565b60006020820190508181036000830152614ddc816148cd565b9050919050565b60006020820190508181036000830152614dfc816148f0565b9050919050565b60006020820190508181036000830152614e1c81614913565b9050919050565b60006020820190508181036000830152614e3c81614936565b9050919050565b60006020820190508181036000830152614e5c81614959565b9050919050565b60006020820190508181036000830152614e7c8161497c565b9050919050565b60006020820190508181036000830152614e9c8161499f565b9050919050565b60006020820190508181036000830152614ebc816149c2565b9050919050565b60006020820190508181036000830152614edc816149e5565b9050919050565b60006020820190508181036000830152614efc81614a08565b9050919050565b60006020820190508181036000830152614f1c81614a2b565b9050919050565b60006020820190508181036000830152614f3c81614a4e565b9050919050565b60006020820190508181036000830152614f5c81614a71565b9050919050565b60006020820190508181036000830152614f7c81614a94565b9050919050565b60006020820190508181036000830152614f9c81614ab7565b9050919050565b60006020820190508181036000830152614fbc81614ada565b9050919050565b60006020820190508181036000830152614fdc81614afd565b9050919050565b60006020820190508181036000830152614ffc81614b20565b9050919050565b6000602082019050818103600083015261501c81614b43565b9050919050565b60006020820190506150386000830184614c1f565b92915050565b60006040820190506150536000830185614c1f565b6150606020830184614640565b9392505050565b600060408201905061507c6000830185614c1f565b6150896020830184614c1f565b9392505050565b600061509a6150ab565b90506150a68282615485565b919050565b6000604051905090565b600067ffffffffffffffff8211156150d0576150cf6155ec565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156150fc576150fb6155ec565b5b602082029050602081019050919050565b600067ffffffffffffffff821115615128576151276155ec565b5b602082029050919050565b600067ffffffffffffffff82111561514e5761514d6155ec565b5b6151578261563e565b9050602081019050919050565b600067ffffffffffffffff82111561517f5761517e6155ec565b5b6151888261563e565b9050602081019050919050565b6000819050602082019050919050565b6000819050919050565b6000819050602082019050919050565b600081519050919050565b600060199050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061529382615407565b915061529e83615407565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156152d3576152d2615530565b5b828201905092915050565b60006152e982615407565b91506152f483615407565b9250826153045761530361555f565b5b828204905092915050565b600061531a82615407565b915061532583615407565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561535e5761535d615530565b5b828202905092915050565b600061537482615407565b915061537f83615407565b92508282101561539257615391615530565b5b828203905092915050565b60006153a8826153e7565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561543e578082015181840152602081019050615423565b8381111561544d576000848401525b50505050565b6000600282049050600182168061546b57607f821691505b6020821081141561547f5761547e61558e565b5b50919050565b61548e8261563e565b810181811067ffffffffffffffff821117156154ad576154ac6155ec565b5b80604052505050565b60006154c182615407565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156154f4576154f3615530565b5b600182019050919050565b600061550a82615407565b915061551583615407565b9250826155255761552461555f565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f45524332393831526f79616c746965733a20546f6f2068696768000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4e4f20426c61636b537175617265732068656c64000000000000000000000000600082015250565b7f546f6b656e204e6f74206173736f636961746564207769746820616e7920456460008201527f6974696f6e000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f426c61636b5371756172654e46543a2063616c6c6572206973206e6f7420656c60008201527f696769626c650000000000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4e6f204f425920617661696c61626c6520746f206d696e740000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4552433732314f70657261746f7246696c7465723a20696c6c6567616c206f7060008201527f657261746f720000000000000000000000000000000000000000000000000000602082015250565b615c188161539d565b8114615c2357600080fd5b50565b615c2f816153af565b8114615c3a57600080fd5b50565b615c46816153bb565b8114615c5157600080fd5b50565b615c5d81615407565b8114615c6857600080fd5b5056fea26469706673582212207ddbd06ec1305450b7484c9084057696cc2605ebf4f54cf734a6cdf20c4ee82664736f6c634300080700330000000000000000000000001768312bd4e292375b0321a0998d27f5e80b509100000000000000000000000024bfc3d97b27a3e4c1807c7462896ace7b4803fd00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000002dc6c00000000000000000000000008c01f22acb041d49d9590095ecc2fa0489bc2e23000000000000000000000000000000000000000000000000000000000000005a68747470733a2f2f68636976656c616d72696d697a616b2e6d7970696e6174612e636c6f75642f697066732f516d544c6a324d35666433564d75625a324a6a3459744a5338714658655363435152564d7a4e514d546f686a7543000000000000000000000000000000000000000000000000000000000000000000000000005b68747470733a2f2f68636976656c616d72696d697a616b2e6d7970696e6174612e636c6f75642f697066732f516d61616f32536148456a6f54714351624d63485966775166456d3941685139536e5178724d55564475665759782f0000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061023d5760003560e01c80637b9659eb1161013b578063c631341d116100b8578063df6efc6c1161007c578063df6efc6c1461069e578063e10b54f8146106bc578063e8a3d485146106da578063e985e9c5146106f8578063f2fde38b146107285761023d565b8063c631341d146105fc578063c87b56dd14610618578063d26264ef14610648578063d675fee714610666578063daacb9c8146106825761023d565b806395d89b41116100ff57806395d89b411461056c578063a22cb4651461058a578063a75d551a146105a6578063aa31ddcf146105c2578063b88d4fde146105e05761023d565b80637b9659eb146104ca5780638c7ea24b146104fa5780638d10c96b146105165780638da5cb5b14610532578063938e3d7b146105505761023d565b80634566e2a5116101c95780635e5873341161018d5780635e587334146104235780636352211e146104425780636c0360eb1461047257806370a0823114610490578063715018a6146104c05761023d565b80634566e2a5146103915780634f6f6ced146103ad5780634f904031146103cb57806355f804b3146103e957806356189236146104055761023d565b806323b872dd1161021057806323b872dd146102dc57806326e98ec7146102f8578063299716c9146103145780632a55205a1461034457806342842e0e146103755761023d565b806301ffc9a71461024257806306fdde0314610272578063081812fc14610290578063095ea7b3146102c0575b600080fd5b61025c600480360381019061025791906144bb565b610744565b6040516102699190614d26565b60405180910390f35b61027a610756565b6040516102879190614d41565b60405180910390f35b6102aa60048036038101906102a591906145a7565b6107e8565b6040516102b79190614c52565b60405180910390f35b6102da60048036038101906102d591906143d6565b61086d565b005b6102f660048036038101906102f191906142c0565b610985565b005b610312600480360381019061030d9190614253565b6109e5565b005b61032e600480360381019061032991906145d4565b610abc565b60405161033b9190615023565b60405180910390f35b61035e600480360381019061035991906145d4565b610c2a565b60405161036c929190614cb9565b60405180910390f35b61038f600480360381019061038a91906142c0565b610cea565b005b6103ab60048036038101906103a691906145a7565b610d0a565b005b6103b5610d90565b6040516103c29190615023565b60405180910390f35b6103d36110c6565b6040516103e09190615023565b60405180910390f35b61040360048036038101906103fe9190614515565b611121565b005b61040d6111b7565b60405161041a9190615023565b60405180910390f35b61042b6111c8565b604051610439929190615067565b60405180910390f35b61045c600480360381019061045791906145a7565b6112d4565b6040516104699190614c52565b60405180910390f35b61047a611386565b6040516104879190614d41565b60405180910390f35b6104aa60048036038101906104a59190614253565b611414565b6040516104b79190615023565b60405180910390f35b6104c86114cc565b005b6104e460048036038101906104df9190614253565b611554565b6040516104f19190614d04565b60405180910390f35b610514600480360381019061050f91906143d6565b6116bd565b005b610530600480360381019061052b91906145d4565b611747565b005b61053a6117e2565b6040516105479190614c52565b60405180910390f35b61056a60048036038101906105659190614515565b61180c565b005b6105746118a2565b6040516105819190614d41565b60405180910390f35b6105a4600480360381019061059f9190614396565b611934565b005b6105c060048036038101906105bb9190614416565b61194a565b005b6105ca611a99565b6040516105d79190615023565b60405180910390f35b6105fa60048036038101906105f59190614313565b611b0d565b005b610616600480360381019061061191906145a7565b611b6f565b005b610632600480360381019061062d91906145a7565b611fe4565b60405161063f9190614d41565b60405180910390f35b61065061208b565b60405161065d9190614d41565b60405180910390f35b610680600480360381019061067b91906145a7565b612119565b005b61069c6004803603810190610697919061455e565b6121fe565b005b6106a6612428565b6040516106b39190614ce2565b60405180910390f35b6106c4612696565b6040516106d19190615023565b60405180910390f35b6106e261269c565b6040516106ef9190614d41565b60405180910390f35b610712600480360381019061070d9190614280565b61272e565b60405161071f9190614d26565b60405180910390f35b610742600480360381019061073d9190614253565b6127c2565b005b600061074f826128ba565b9050919050565b60606000805461076590615453565b80601f016020809104026020016040519081016040528092919081815260200182805461079190615453565b80156107de5780601f106107b3576101008083540402835291602001916107de565b820191906000526020600020905b8154815290600101906020018083116107c157829003601f168201915b5050505050905090565b60006107f382612934565b610832576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082990614f23565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610878826112d4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156108e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e090614fa3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109086129a0565b73ffffffffffffffffffffffffffffffffffffffff1614806109375750610936816109316129a0565b61272e565b5b610976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096d90614ea3565b60405180910390fd5b61098083836129a8565b505050565b6109966109906129a0565b82612a61565b6109d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109cc90614fe3565b60405180910390fd5b6109e0838383612b3f565b505050565b6109ed6129a0565b73ffffffffffffffffffffffffffffffffffffffff16610a0b6117e2565b73ffffffffffffffffffffffffffffffffffffffff1614610a61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5890614f43565b60405180910390fd5b6001601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000610ac66129a0565b73ffffffffffffffffffffffffffffffffffffffff16610ae46117e2565b73ffffffffffffffffffffffffffffffffffffffff161480610b5d57506001151560126000610b116129a0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515145b610b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9390614f63565b60405180910390fd5b610ba583611b6f565b8160136000858152602001908152602001600020601901819055504260136000858152602001908152602001600020601a0181905550600160136000858152602001908152602001600020601b016000828254610c029190615288565b9250508190555060096000815480929190610c1c906154b6565b919050555082905092915050565b600080600060076040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900462ffffff1662ffffff1662ffffff1681525050905080600001519250612710816020015162ffffff1685610cd6919061530f565b610ce091906152de565b9150509250929050565b610d0583838360405180602001604052806000815250611b0d565b505050565b610d126129a0565b73ffffffffffffffffffffffffffffffffffffffff16610d306117e2565b73ffffffffffffffffffffffffffffffffffffffff1614610d86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7d90614f43565b60405180910390fd5b8060088190555050565b600080610da3610d9e6129a0565b611554565b90506000815111610de9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de090614e03565b60405180910390fd5b6000805b8251811015610f9a576000806000610e1e868581518110610e1157610e106155bd565b5b6020026020010151612da6565b9250925092508285610e309190615288565b94506000868581518110610e4757610e466155bd565b5b60200260200101519050600060018411610e62576001610e70565b600184610e6f9190615369565b5b905060008386610e809190615369565b9050806011600085815260200190815260200160002060008781526020019081526020016000206000016000828254610eb99190615288565b925050819055508560156000610ecd6129a0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610f169190615288565b925050819055506000601160008581526020019081526020016000206000878152602001908152602001600020600101819055506001851115610f81576000601160008581526020019081526020016000206000848152602001908152602001600020600101819055505b5050505050508080610f92906154b6565b915050610ded565b5060008111610fde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd590614fc3565b60405180910390fd5b600081111561107e57600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1961102d6129a0565b836040518363ffffffff1660e01b815260040161104b929190614cb9565b600060405180830381600087803b15801561106557600080fd5b505af1158015611079573d6000803e3d6000fd5b505050505b7f7500c4319132adbe5ee377dbd33a4a90bfe57b88551d814b444a80a6c4c6cfa0816110a86129a0565b6040516110b692919061503e565b60405180910390a1809250505090565b600080600190505b6110d8600f613032565b8111611118574260136000838152602001908152602001600020601901541015611105578091505061111e565b8080611110906154b6565b9150506110ce565b50600090505b90565b6111296129a0565b73ffffffffffffffffffffffffffffffffffffffff166111476117e2565b73ffffffffffffffffffffffffffffffffffffffff161461119d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119490614f43565b60405180910390fd5b80600c90805190602001906111b3929190613cb9565b5050565b60006111c36010613032565b905090565b60008060006111dd6111d86129a0565b611554565b90506000815111611223576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121a90614e03565b60405180910390fd5b600080601560006112326129a0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060005b83518110156112c65760006112a0858381518110611293576112926155bd565b5b6020026020010151612da6565b5050905080846112b09190615288565b93505080806112be906154b6565b915050611272565b508181945094505050509091565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561137d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137490614ee3565b60405180910390fd5b80915050919050565b600c805461139390615453565b80601f01602080910402602001604051908101604052809291908181526020018280546113bf90615453565b801561140c5780601f106113e15761010080835404028352916020019161140c565b820191906000526020600020905b8154815290600101906020018083116113ef57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147c90614ec3565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6114d46129a0565b73ffffffffffffffffffffffffffffffffffffffff166114f26117e2565b73ffffffffffffffffffffffffffffffffffffffff1614611548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153f90614f43565b60405180910390fd5b6115526000613040565b565b6060600061156183611414565b905060008067ffffffffffffffff81111561157f5761157e6155ec565b5b6040519080825280602002602001820160405280156115ad5781602001602082028036833780820191505090505b50905060008267ffffffffffffffff8111156115cc576115cb6155ec565b5b6040519080825280602002602001820160405280156115fa5781602001602082028036833780820191505090505b509050600080600190505b61160f6010613032565b8111611699576000611620826112d4565b90508773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611685578184848151811061166a576116696155bd565b5b6020026020010181815250508280611681906154b6565b9350505b508080611691906154b6565b915050611605565b506000825111156116b057819450505050506116b8565b829450505050505b919050565b6116c56129a0565b73ffffffffffffffffffffffffffffffffffffffff166116e36117e2565b73ffffffffffffffffffffffffffffffffffffffff1614611739576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173090614f43565b60405180910390fd5b6117438282613106565b5050565b61174f6129a0565b73ffffffffffffffffffffffffffffffffffffffff1661176d6117e2565b73ffffffffffffffffffffffffffffffffffffffff16146117c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ba90614f43565b60405180910390fd5b8060136000848152602001908152602001600020601901819055505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118146129a0565b73ffffffffffffffffffffffffffffffffffffffff166118326117e2565b73ffffffffffffffffffffffffffffffffffffffff1614611888576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187f90614f43565b60405180910390fd5b80600b908051906020019061189e929190613cb9565b5050565b6060600180546118b190615453565b80601f01602080910402602001604051908101604052809291908181526020018280546118dd90615453565b801561192a5780601f106118ff5761010080835404028352916020019161192a565b820191906000526020600020905b81548152906001019060200180831161190d57829003601f168201915b5050505050905090565b61194661193f6129a0565b83836131f0565b5050565b6119526129a0565b73ffffffffffffffffffffffffffffffffffffffff166119706117e2565b73ffffffffffffffffffffffffffffffffffffffff16146119c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bd90614f43565b60405180910390fd5b6000603a6119d4600f613032565b11611a945760005b8351811015611a92576119ef601061335d565b60006119fb6010613032565b9050611a21858381518110611a1357611a126155bd565b5b602002602001015182613373565b6019811480611a4d5750601981118015611a4c5750600060198281611a4957611a4861555f565b5b06145b5b15611a7e57611a75848481518110611a6857611a676155bd565b5b60200260200101516121fe565b82806001019350505b508080611a8a906154b6565b9150506119dc565b505b505050565b6000806019600954611aab919061530f565b90506000600190505b611abe600f613032565b8111611b05574260136000838152602001908152602001600020601901541015611af257601982611aef9190615288565b91505b8080611afd906154b6565b915050611ab4565b508091505090565b611b1e611b186129a0565b83612a61565b611b5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5490614fe3565b60405180910390fd5b611b698484848461354d565b50505050565b611b776129a0565b73ffffffffffffffffffffffffffffffffffffffff16611b956117e2565b73ffffffffffffffffffffffffffffffffffffffff161480611c0e57506001151560126000611bc26129a0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515145b611c4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4490614f63565b60405180910390fd5b600060136000838152602001908152602001600020601b0154905060005b60136000848152602001908152602001600020506019811015611fdf576000601360008581526020019081526020016000206000018260198110611cb257611cb16155bd565b5b01549050612710600854611cc691906152de565b6011600083815260200190815260200160002060008581526020019081526020016000206000015411158015611cfc5750600183115b8015611d3c57506000601160008381526020019081526020016000206000600186611d279190615369565b81526020019081526020016000206001015410155b15611df157601160008281526020019081526020016000206000600185611d639190615369565b81526020019081526020016000206001015460116000838152602001908152602001600020600085815260200190815260200160002060000154612710600854611dad91906152de565b611db79190615369565b611dc19190615288565b60116000838152602001908152602001600020600085815260200190815260200160002060010181905550611fcb565b612710600854611e0191906152de565b6011600083815260200190815260200160002060008581526020019081526020016000206000015411158015611e375750600183145b15611eae5760116000828152602001908152602001600020600084815260200190815260200160002060000154612710600854611e7491906152de565b611e7e9190615369565b60116000838152602001908152602001600020600085815260200190815260200160002060010181905550611fca565b612710600854611ebe91906152de565b60116000838152602001908152602001600020600085815260200190815260200160002060000154118015611ef35750600183115b8015611f3257506000601160008381526020019081526020016000206000600186611f1e9190615369565b815260200190815260200160002060010154115b15611f9b57601160008281526020019081526020016000206000600185611f599190615369565b81526020019081526020016000206001015460116000838152602001908152602001600020600085815260200190815260200160002060010181905550611fc9565b6000601160008381526020019081526020016000206000858152602001908152602001600020600101819055505b5b5b508080611fd7906154b6565b915050611c6b565b505050565b6060611fef82612934565b61202e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202590614f83565b60405180910390fd5b60006120386135a9565b905060008151116120585760405180602001604052806000815250612083565b806120628461363b565b604051602001612073929190614c2e565b6040516020818303038152906040525b915050919050565b600b805461209890615453565b80601f01602080910402602001604051908101604052809291908181526020018280546120c490615453565b80156121115780601f106120e657610100808354040283529160200191612111565b820191906000526020600020905b8154815290600101906020018083116120f457829003601f168201915b505050505081565b6121216129a0565b73ffffffffffffffffffffffffffffffffffffffff1661213f6117e2565b73ffffffffffffffffffffffffffffffffffffffff1614612195576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218c90614f43565b60405180910390fd5b60136000828152602001908152602001600020600080820160006121b99190613d3f565b6019820160009055601a820160009055601b820160009055601c820160009055601d820160006121e99190613d52565b601e820160006121f99190613d52565b505050565b6122066129a0565b73ffffffffffffffffffffffffffffffffffffffff166122246117e2565b73ffffffffffffffffffffffffffffffffffffffff161461227a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227190614f43565b60405180910390fd5b612284600f61335d565b6000612290600f613032565b905060005b82600001515060198110156122f3576122ae600f613032565b60146000856000015184601981106122c9576122c86155bd565b5b602002015181526020019081526020016000208190555080806122eb906154b6565b915050612295565b5081600001516013600083815260200190815260200160002060000190601961231d929190613d92565b50816020015160136000838152602001908152602001600020601901819055504260136000838152602001908152602001600020601a0181905550600160136000838152602001908152602001600020601b01819055508060136000838152602001908152602001600020601c0181905550816040015160136000838152602001908152602001600020601d0190805190602001906123bd929190613cb9565b50816060015160136000838152602001908152602001600020601e0190805190602001906123ec929190613cb9565b507f962bb64b059ad60d491bef43125921210925c52b11ff1cc093409113c8c5fe378160405161241c9190615023565b60405180910390a15050565b606060006001612438600f613032565b6124429190615288565b67ffffffffffffffff81111561245b5761245a6155ec565b5b60405190808252806020026020018201604052801561249457816020015b612481613dd2565b8152602001906001900390816124795790505b5090506000600190505b6124a8600f613032565b811161268e57601360008281526020019081526020016000206040518060e001604052908160008201601980602002604051908101604052809291908260198015612508576020028201915b8154815260200190600101908083116124f4575b5050505050815260200160198201548152602001601a8201548152602001601b8201548152602001601c8201548152602001601d8201805461254990615453565b80601f016020809104026020016040519081016040528092919081815260200182805461257590615453565b80156125c25780601f10612597576101008083540402835291602001916125c2565b820191906000526020600020905b8154815290600101906020018083116125a557829003601f168201915b50505050508152602001601e820180546125db90615453565b80601f016020809104026020016040519081016040528092919081815260200182805461260790615453565b80156126545780601f1061262957610100808354040283529160200191612654565b820191906000526020600020905b81548152906001019060200180831161263757829003601f168201915b5050505050815250508282815181106126705761266f6155bd565b5b60200260200101819052508080612686906154b6565b91505061249e565b508091505090565b60095481565b6060600b80546126ab90615453565b80601f01602080910402602001604051908101604052809291908181526020018280546126d790615453565b80156127245780601f106126f957610100808354040283529160200191612724565b820191906000526020600020905b81548152906001019060200180831161270757829003601f168201915b5050505050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6127ca6129a0565b73ffffffffffffffffffffffffffffffffffffffff166127e86117e2565b73ffffffffffffffffffffffffffffffffffffffff161461283e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283590614f43565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156128ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a590614da3565b60405180910390fd5b6128b781613040565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061292d575061292c8261379c565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612a1b836112d4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612a6c82612934565b612aab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa290614e83565b60405180910390fd5b6000612ab6836112d4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612af85750612af7818561272e565b5b80612b3657508373ffffffffffffffffffffffffffffffffffffffff16612b1e846107e8565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612b5f826112d4565b73ffffffffffffffffffffffffffffffffffffffff1614612bb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bac90614dc3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c1c90614e43565b60405180910390fd5b612c3083838361387e565b612c3b6000826129a8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c8b9190615369565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ce29190615288565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612da183838361394b565b505050565b600080600080601460008681526020019081526020016000205490506000811415612e06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dfd90614e23565b60405180910390fd5b600060136000838152602001908152602001600020601901549050600060136000848152602001908152602001600020601b01549050600060018211612e4d576001612e5b565b600182612e5a9190615369565b5b9050600060136000868152602001908152602001600020601a01549050600080601160008c815260200190815260200160002060008681526020019081526020016000206000015411612eaf576000612ed8565b601160008b81526020019081526020016000206000858152602001908152602001600020600001545b9050600060018511612eeb576000612f14565b601160008c81526020019081526020016000206000858152602001908152602001600020600101545b90508583108015612f2457508542105b8015612f2f57508242115b15612fbc5760008387612f429190615369565b600854612f4f91906152de565b90506000836127108642612f639190615369565b84612f6e919061530f565b612f7891906152de565b612f829190615369565b905060006001821015612f955783612fa2565b8382612fa19190615288565b5b90508088859c509c509c505050505050505050505061302b565b8583108015612fca57508542115b8015612fd557508242115b1561301a57600082612710600854612fed91906152de565b83612ff89190615288565b6130029190615369565b90508086839a509a509a50505050505050505061302b565b808582995099509950505050505050505b9193909250565b600081600001549050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61271081111561314b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314290614d63565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff1681526020018262ffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548162ffffff021916908362ffffff1602179055509050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561325f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161325690614e63565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516133509190614d26565b60405180910390a3505050565b6001816000016000828254019250508190555050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156133e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133da90614f03565b60405180910390fd5b6133ec81612934565b1561342c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161342390614de3565b60405180910390fd5b6134386000838361387e565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134889190615288565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135496000838361394b565b5050565b613558848484612b3f565b61356484848484613950565b6135a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161359a90614d83565b60405180910390fd5b50505050565b6060600c80546135b890615453565b80601f01602080910402602001604051908101604052809291908181526020018280546135e490615453565b80156136315780601f1061360657610100808354040283529160200191613631565b820191906000526020600020905b81548152906001019060200180831161361457829003601f168201915b5050505050905090565b60606000821415613683576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613797565b600082905060005b600082146136b557808061369e906154b6565b915050600a826136ae91906152de565b915061368b565b60008167ffffffffffffffff8111156136d1576136d06155ec565b5b6040519080825280601f01601f1916602001820160405280156137035781602001600182028036833780820191505090505b5090505b600085146137905760018261371c9190615369565b9150600a8561372b91906154ff565b60306137379190615288565b60f81b81838151811061374d5761374c6155bd565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561378991906152de565b9450613707565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061386757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613877575061387682613ae7565b5b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156138e85750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156138fb57506138f93382613b51565b155b1561393b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161393290615003565b60405180910390fd5b613946838383613c91565b505050565b505050565b60006139718473ffffffffffffffffffffffffffffffffffffffff16613c96565b15613ada578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261399a6129a0565b8786866040518563ffffffff1660e01b81526004016139bc9493929190614c6d565b602060405180830381600087803b1580156139d657600080fd5b505af1925050508015613a0757506040513d601f19601f82011682018060405250810190613a0491906144e8565b60015b613a8a573d8060008114613a37576040519150601f19603f3d011682016040523d82523d6000602084013e613a3c565b606091505b50600081511415613a82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a7990614d83565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613adf565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613bb8576001915050613c8b565b613bc1836112d4565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613bfe576001915050613c8b565b8073ffffffffffffffffffffffffffffffffffffffff1663192c596e336040518263ffffffff1660e01b8152600401613c379190614c52565b60206040518083038186803b158015613c4f57600080fd5b505afa158015613c63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c87919061448e565b9150505b92915050565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054613cc590615453565b90600052602060002090601f016020900481019282613ce75760008555613d2e565b82601f10613d0057805160ff1916838001178555613d2e565b82800160010185558215613d2e579182015b82811115613d2d578251825591602001919060010190613d12565b5b509050613d3b9190613e15565b5090565b508060190190613d4f9190613e15565b50565b508054613d5e90615453565b6000825580601f10613d705750613d8f565b601f016020900490600052602060002090810190613d8e9190613e15565b5b50565b8260198101928215613dc1579160200282015b82811115613dc0578251825591602001919060010190613da5565b5b509050613dce9190613e15565b5090565b6040518060e00160405280613de5613e32565b81526020016000815260200160008152602001600081526020016000815260200160608152602001606081525090565b5b80821115613e2e576000816000905550600101613e16565b5090565b604051806103200160405280601990602082028036833780820191505090505090565b6000613e68613e63846150b5565b615090565b90508083825260208201905082856020860282011115613e8b57613e8a61562a565b5b60005b85811015613ebb5781613ea1888261403e565b845260208401935060208301925050600181019050613e8e565b5050509392505050565b6000613ed8613ed3846150e1565b615090565b90508083825260208201905082856020860282011115613efb57613efa61562a565b5b60005b85811015613f4957813567ffffffffffffffff811115613f2157613f2061561b565b5b808601613f2e898261418a565b85526020850194506020840193505050600181019050613efe565b5050509392505050565b6000613f66613f618461510d565b615090565b90508082856020860282011115613f8057613f7f61562a565b5b60005b85811015613fb05781613f96888261423e565b845260208401935060208301925050600181019050613f83565b5050509392505050565b6000613fcd613fc884615133565b615090565b905082815260208101848484011115613fe957613fe861562f565b5b613ff4848285615411565b509392505050565b600061400f61400a84615164565b615090565b90508281526020810184848401111561402b5761402a61562f565b5b614036848285615411565b509392505050565b60008135905061404d81615c0f565b92915050565b600082601f8301126140685761406761561b565b5b8135614078848260208601613e55565b91505092915050565b600082601f8301126140965761409561561b565b5b81356140a6848260208601613ec5565b91505092915050565b600082601f8301126140c4576140c361561b565b5b60196140d1848285613f53565b91505092915050565b6000813590506140e981615c26565b92915050565b6000815190506140fe81615c26565b92915050565b60008135905061411381615c3d565b92915050565b60008151905061412881615c3d565b92915050565b600082601f8301126141435761414261561b565b5b8135614153848260208601613fba565b91505092915050565b600082601f8301126141715761417061561b565b5b8135614181848260208601613ffc565b91505092915050565b600061038082840312156141a1576141a0615620565b5b6141ab6080615090565b905060006141bb848285016140af565b6000830152506103206141d08482850161423e565b60208301525061034082013567ffffffffffffffff8111156141f5576141f4615625565b5b6142018482850161415c565b60408301525061036082013567ffffffffffffffff81111561422657614225615625565b5b6142328482850161415c565b60608301525092915050565b60008135905061424d81615c54565b92915050565b60006020828403121561426957614268615639565b5b60006142778482850161403e565b91505092915050565b6000806040838503121561429757614296615639565b5b60006142a58582860161403e565b92505060206142b68582860161403e565b9150509250929050565b6000806000606084860312156142d9576142d8615639565b5b60006142e78682870161403e565b93505060206142f88682870161403e565b92505060406143098682870161423e565b9150509250925092565b6000806000806080858703121561432d5761432c615639565b5b600061433b8782880161403e565b945050602061434c8782880161403e565b935050604061435d8782880161423e565b925050606085013567ffffffffffffffff81111561437e5761437d615634565b5b61438a8782880161412e565b91505092959194509250565b600080604083850312156143ad576143ac615639565b5b60006143bb8582860161403e565b92505060206143cc858286016140da565b9150509250929050565b600080604083850312156143ed576143ec615639565b5b60006143fb8582860161403e565b925050602061440c8582860161423e565b9150509250929050565b6000806040838503121561442d5761442c615639565b5b600083013567ffffffffffffffff81111561444b5761444a615634565b5b61445785828601614053565b925050602083013567ffffffffffffffff81111561447857614477615634565b5b61448485828601614081565b9150509250929050565b6000602082840312156144a4576144a3615639565b5b60006144b2848285016140ef565b91505092915050565b6000602082840312156144d1576144d0615639565b5b60006144df84828501614104565b91505092915050565b6000602082840312156144fe576144fd615639565b5b600061450c84828501614119565b91505092915050565b60006020828403121561452b5761452a615639565b5b600082013567ffffffffffffffff81111561454957614548615634565b5b6145558482850161415c565b91505092915050565b60006020828403121561457457614573615639565b5b600082013567ffffffffffffffff81111561459257614591615634565b5b61459e8482850161418a565b91505092915050565b6000602082840312156145bd576145bc615639565b5b60006145cb8482850161423e565b91505092915050565b600080604083850312156145eb576145ea615639565b5b60006145f98582860161423e565b925050602061460a8582860161423e565b9150509250929050565b60006146208383614b66565b905092915050565b60006146348383614c10565b60208301905092915050565b6146498161539d565b82525050565b600061465a826151bf565b614664818561521d565b93508360208202850161467685615195565b8060005b858110156146b257848403895281516146938582614614565b945061469e836151f6565b925060208a0199505060018101905061467a565b50829750879550505050505092915050565b6146cd816151ca565b6146d7818461522e565b92506146e2826151a5565b8060005b838110156147135781516146fa8782614628565b965061470583615203565b9250506001810190506146e6565b505050505050565b6000614726826151d5565b6147308185615239565b935061473b836151af565b8060005b8381101561476c5781516147538882614628565b975061475e83615210565b92505060018101905061473f565b5085935050505092915050565b614782816153af565b82525050565b6000614793826151e0565b61479d818561524a565b93506147ad818560208601615420565b6147b68161563e565b840191505092915050565b60006147cc826151eb565b6147d6818561525b565b93506147e6818560208601615420565b6147ef8161563e565b840191505092915050565b6000614805826151eb565b61480f818561526c565b935061481f818560208601615420565b6148288161563e565b840191505092915050565b600061483e826151eb565b614848818561527d565b9350614858818560208601615420565b80840191505092915050565b6000614871601a8361526c565b915061487c8261564f565b602082019050919050565b600061489460328361526c565b915061489f82615678565b604082019050919050565b60006148b760268361526c565b91506148c2826156c7565b604082019050919050565b60006148da60258361526c565b91506148e582615716565b604082019050919050565b60006148fd601c8361526c565b915061490882615765565b602082019050919050565b600061492060148361526c565b915061492b8261578e565b602082019050919050565b600061494360258361526c565b915061494e826157b7565b604082019050919050565b600061496660248361526c565b915061497182615806565b604082019050919050565b600061498960198361526c565b915061499482615855565b602082019050919050565b60006149ac602c8361526c565b91506149b78261587e565b604082019050919050565b60006149cf60388361526c565b91506149da826158cd565b604082019050919050565b60006149f2602a8361526c565b91506149fd8261591c565b604082019050919050565b6000614a1560298361526c565b9150614a208261596b565b604082019050919050565b6000614a3860208361526c565b9150614a43826159ba565b602082019050919050565b6000614a5b602c8361526c565b9150614a66826159e3565b604082019050919050565b6000614a7e60208361526c565b9150614a8982615a32565b602082019050919050565b6000614aa160268361526c565b9150614aac82615a5b565b604082019050919050565b6000614ac4602f8361526c565b9150614acf82615aaa565b604082019050919050565b6000614ae760218361526c565b9150614af282615af9565b604082019050919050565b6000614b0a60188361526c565b9150614b1582615b48565b602082019050919050565b6000614b2d60318361526c565b9150614b3882615b71565b604082019050919050565b6000614b5060268361526c565b9150614b5b82615bc0565b604082019050919050565b60006103e083016000830151614b7f60008601826146c4565b506020830151614b93610320860182614c10565b506040830151614ba7610340860182614c10565b506060830151614bbb610360860182614c10565b506080830151614bcf610380860182614c10565b5060a08301518482036103a0860152614be882826147c1565b91505060c08301518482036103c0860152614c0382826147c1565b9150508091505092915050565b614c1981615407565b82525050565b614c2881615407565b82525050565b6000614c3a8285614833565b9150614c468284614833565b91508190509392505050565b6000602082019050614c676000830184614640565b92915050565b6000608082019050614c826000830187614640565b614c8f6020830186614640565b614c9c6040830185614c1f565b8181036060830152614cae8184614788565b905095945050505050565b6000604082019050614cce6000830185614640565b614cdb6020830184614c1f565b9392505050565b60006020820190508181036000830152614cfc818461464f565b905092915050565b60006020820190508181036000830152614d1e818461471b565b905092915050565b6000602082019050614d3b6000830184614779565b92915050565b60006020820190508181036000830152614d5b81846147fa565b905092915050565b60006020820190508181036000830152614d7c81614864565b9050919050565b60006020820190508181036000830152614d9c81614887565b9050919050565b60006020820190508181036000830152614dbc816148aa565b9050919050565b60006020820190508181036000830152614ddc816148cd565b9050919050565b60006020820190508181036000830152614dfc816148f0565b9050919050565b60006020820190508181036000830152614e1c81614913565b9050919050565b60006020820190508181036000830152614e3c81614936565b9050919050565b60006020820190508181036000830152614e5c81614959565b9050919050565b60006020820190508181036000830152614e7c8161497c565b9050919050565b60006020820190508181036000830152614e9c8161499f565b9050919050565b60006020820190508181036000830152614ebc816149c2565b9050919050565b60006020820190508181036000830152614edc816149e5565b9050919050565b60006020820190508181036000830152614efc81614a08565b9050919050565b60006020820190508181036000830152614f1c81614a2b565b9050919050565b60006020820190508181036000830152614f3c81614a4e565b9050919050565b60006020820190508181036000830152614f5c81614a71565b9050919050565b60006020820190508181036000830152614f7c81614a94565b9050919050565b60006020820190508181036000830152614f9c81614ab7565b9050919050565b60006020820190508181036000830152614fbc81614ada565b9050919050565b60006020820190508181036000830152614fdc81614afd565b9050919050565b60006020820190508181036000830152614ffc81614b20565b9050919050565b6000602082019050818103600083015261501c81614b43565b9050919050565b60006020820190506150386000830184614c1f565b92915050565b60006040820190506150536000830185614c1f565b6150606020830184614640565b9392505050565b600060408201905061507c6000830185614c1f565b6150896020830184614c1f565b9392505050565b600061509a6150ab565b90506150a68282615485565b919050565b6000604051905090565b600067ffffffffffffffff8211156150d0576150cf6155ec565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156150fc576150fb6155ec565b5b602082029050602081019050919050565b600067ffffffffffffffff821115615128576151276155ec565b5b602082029050919050565b600067ffffffffffffffff82111561514e5761514d6155ec565b5b6151578261563e565b9050602081019050919050565b600067ffffffffffffffff82111561517f5761517e6155ec565b5b6151888261563e565b9050602081019050919050565b6000819050602082019050919050565b6000819050919050565b6000819050602082019050919050565b600081519050919050565b600060199050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061529382615407565b915061529e83615407565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156152d3576152d2615530565b5b828201905092915050565b60006152e982615407565b91506152f483615407565b9250826153045761530361555f565b5b828204905092915050565b600061531a82615407565b915061532583615407565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561535e5761535d615530565b5b828202905092915050565b600061537482615407565b915061537f83615407565b92508282101561539257615391615530565b5b828203905092915050565b60006153a8826153e7565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561543e578082015181840152602081019050615423565b8381111561544d576000848401525b50505050565b6000600282049050600182168061546b57607f821691505b6020821081141561547f5761547e61558e565b5b50919050565b61548e8261563e565b810181811067ffffffffffffffff821117156154ad576154ac6155ec565b5b80604052505050565b60006154c182615407565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156154f4576154f3615530565b5b600182019050919050565b600061550a82615407565b915061551583615407565b9250826155255761552461555f565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f45524332393831526f79616c746965733a20546f6f2068696768000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4e4f20426c61636b537175617265732068656c64000000000000000000000000600082015250565b7f546f6b656e204e6f74206173736f636961746564207769746820616e7920456460008201527f6974696f6e000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f426c61636b5371756172654e46543a2063616c6c6572206973206e6f7420656c60008201527f696769626c650000000000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4e6f204f425920617661696c61626c6520746f206d696e740000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4552433732314f70657261746f7246696c7465723a20696c6c6567616c206f7060008201527f657261746f720000000000000000000000000000000000000000000000000000602082015250565b615c188161539d565b8114615c2357600080fd5b50565b615c2f816153af565b8114615c3a57600080fd5b50565b615c46816153bb565b8114615c5157600080fd5b50565b615c5d81615407565b8114615c6857600080fd5b5056fea26469706673582212207ddbd06ec1305450b7484c9084057696cc2605ebf4f54cf734a6cdf20c4ee82664736f6c63430008070033

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

0000000000000000000000001768312bd4e292375b0321a0998d27f5e80b509100000000000000000000000024bfc3d97b27a3e4c1807c7462896ace7b4803fd00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000002dc6c00000000000000000000000008c01f22acb041d49d9590095ecc2fa0489bc2e23000000000000000000000000000000000000000000000000000000000000005a68747470733a2f2f68636976656c616d72696d697a616b2e6d7970696e6174612e636c6f75642f697066732f516d544c6a324d35666433564d75625a324a6a3459744a5338714658655363435152564d7a4e514d546f686a7543000000000000000000000000000000000000000000000000000000000000000000000000005b68747470733a2f2f68636976656c616d72696d697a616b2e6d7970696e6174612e636c6f75642f697066732f516d61616f32536148456a6f54714351624d63485966775166456d3941685139536e5178724d55564475665759782f0000000000

-----Decoded View---------------
Arg [0] : obyAddress (address): 0x1768312bD4e292375B0321a0998d27f5E80b5091
Arg [1] : _treasury (address): 0x24bFc3D97B27a3e4C1807C7462896acE7B4803fd
Arg [2] : _royaltyValue (uint256): 1000
Arg [3] : _openSeaContractURI (string): https://hcivelamrimizak.mypinata.cloud/ipfs/QmTLj2M5fd3VMubZ2Jj4YtJS8qFXeScCQRVMzNQMTohjuC
Arg [4] : _blackSquareBaseURI (string): https://hcivelamrimizak.mypinata.cloud/ipfs/Qmaao2SaHEjoTqCQbMcHYfwQfEm9AhQ9SnQxrMUVDufWYx/
Arg [5] : _rewardPerCycle (uint256): 3000000
Arg [6] : _operatorFilter (address): 0x8C01f22aCB041D49d9590095ecC2Fa0489Bc2E23

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 0000000000000000000000001768312bd4e292375b0321a0998d27f5e80b5091
Arg [1] : 00000000000000000000000024bfc3d97b27a3e4c1807c7462896ace7b4803fd
Arg [2] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [5] : 00000000000000000000000000000000000000000000000000000000002dc6c0
Arg [6] : 0000000000000000000000008c01f22acb041d49d9590095ecc2fa0489bc2e23
Arg [7] : 000000000000000000000000000000000000000000000000000000000000005a
Arg [8] : 68747470733a2f2f68636976656c616d72696d697a616b2e6d7970696e617461
Arg [9] : 2e636c6f75642f697066732f516d544c6a324d35666433564d75625a324a6a34
Arg [10] : 59744a5338714658655363435152564d7a4e514d546f686a7543000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000005b
Arg [12] : 68747470733a2f2f68636976656c616d72696d697a616b2e6d7970696e617461
Arg [13] : 2e636c6f75642f697066732f516d61616f32536148456a6f54714351624d6348
Arg [14] : 5966775166456d3941685139536e5178724d55564475665759782f0000000000


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.