ETH Price: $3,234.44 (-0.62%)
Gas: 1 Gwei

Token

MallCard Genesis Edition (mCard)
 

Overview

Max Total Supply

1,138 mCard

Holders

159

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
9000001000009.eth
0xFCFA4369EAa965AC4e36f1Dd9fd2852C6542b0F7
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Mallconomy aims to revolutionize the way we shop in the Metaverse. Become an early member of Mallconomy's Decentralized Society "DeSoc" retail and shopping community to empower creators and shoppers alike in the Metaverse.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MallCard

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : MallCard.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./operatorfilterer/DefaultOperatorFilterer.sol";


contract MallCard is ERC1155, ERC2981, DefaultOperatorFilterer, Ownable {
    struct ClaimDefinition {
        bytes32 merkleRootHash;
        uint256 startTime;
        uint256 endTime;
        bool revoked;
    }
    struct ClaimData {
        uint256 claimRecordIndex;
        uint256 silverAmount;
        uint256 goldAmount;
        uint256 diamondAmount;
        uint256 userExpireDate;
        bytes32[] merkleProof;
    }
    struct ReflinkUsage {
        address from;
        address to;
        uint256 token;
        uint256 amount;
        uint256 price;
        uint256 discount;
        string refCode;
    }
    struct Token {
        uint256 maxSupply;
        uint256 totalClaim;
        uint256 totalSale;
        mapping(uint256 => uint256) tierSales;
        uint256[] limits;
        uint256[] prices;
    }
    struct TokenSummary {
        uint256 token;
        uint256 currentPrice;
        uint256 discount;
        uint256 currentTier;
        uint256 maxSupply;
        uint256 totalClaim;
        uint256 totalSale;
        uint256[] tierSales;
        uint256[] limits;
        uint256[] prices;
    }
    struct TokenAmount {
        uint256 token;
        uint256 amount;
    }

    ClaimDefinition[] public claimDefinitions;
    mapping(uint256 => mapping(address => bool)) public claimRecords;

    uint256 public constant SILVER = 0;
    uint256 public constant GOLD = 1;
    uint256 public constant DIAMOND = 2;

    uint private constant TOKEN_LEN = 3;

    IERC20 public tokenContract;
    ReflinkUsage[] public reflinkRecords;
    mapping(uint256 => bool) public paused;
    mapping(uint256 => Token) public tokens;
    mapping(uint256 => uint256) public discountRates;
    mapping(address => uint256[]) public reflinkSourceRecords;
    mapping(uint256 => string) public tokenURIs;

    bool public useTicketBasedDiscountRates;

    uint256 public publicSaleStart;
    uint256 public transferOpenDate;
    uint256 public discountRate;

    address public mintIncomeWaletContract;

    string public name = "MallCard Genesis Edition";
    string public symbol = "mCard";

    event Claim(address indexed owner, TokenAmount[] claimed);

    event TokenMint(
        address indexed owner,
        uint256 token,
        uint256 amount,
        uint256 price,
        uint256 discount,
        address reflinkOwner,
        string refCode
    );

    event SetPrices(uint256[][] prices, uint256[][] limits);

    event Pause(uint256[] ids);

    event UnPause(uint256[] ids);

    event SetURI(uint256 indexed id, string uri);

    event SetTokenContract(address tokenContract);

    event SetDiscountRate(uint256 discountRate);

    event SetPublicSaleStart(uint256 transferOpenDate);

    event SetTransferOpenDate(uint256 publicSaleStart);

    event SetMaxSupplies(uint256 silver, uint256 gold, uint256 diamond);

    event SetMintIncomeWalletContract(address mintIncomeWaletContract);

    event SetRoyaltyInfo(address receiver, uint96 feeNumerator);

    event CreateClaim(ClaimDefinition claims);

    event RevokeClaim(uint256 indexed index);

    constructor(
        address _tokenContract,
        address _royaltyWaletContract,
        address _mintIncomeWalletContract,
        uint256 _publicSaleStart,
        uint96 _royalty,
        uint256 _discountRate
    ) ERC1155("") {
        require(_tokenContract != address(0), "MallCard: tokenContract zero address");
        require(_royaltyWaletContract != address(0), "MallCard: royaltyWaletContract zero address");
        require(_mintIncomeWalletContract != address(0), "MallCard: mintIncomeWalletContract zero address");
        if (_publicSaleStart == 0) {
            setPublicSaleStart(block.timestamp);
        } else {
            setPublicSaleStart(_publicSaleStart);
        }
        discountRate = _discountRate;
        mintIncomeWaletContract = _mintIncomeWalletContract;
        _setDefaultRoyalty(_royaltyWaletContract, _royalty);

        tokenContract = IERC20(_tokenContract);
    }

    // Modifiers
    modifier salesOpen(uint256 _id) {
        require(!paused[_id], "Sale is currently closed, please try again later");
        require(block.timestamp > publicSaleStart, "Public sale not started, please try again on the public sale date");
        _;
    }

    // Write Functions
    function setURI(uint256 _id, string calldata _uri) public onlyOwner {
        require(bytes(_uri).length > 0, "MallCard: uri empty");
        require(_id < TOKEN_LEN, "MallCard: invalid id");
        tokenURIs[_id] = _uri;
        emit SetURI(_id, _uri);
    }

    function setURIs(string[] calldata _uris) external onlyOwner {
        for (uint256 i = 0; i < _uris.length; i++) {
            setURI(i, _uris[i]);
        }
    }

    function setTokenContract(address _tokenContract) external onlyOwner {
        require(address(0) != _tokenContract, "MallCard: zero _tokenContract");
        tokenContract = IERC20(_tokenContract);
        emit SetTokenContract(_tokenContract);
    }

    function setDiscountRate(uint256 _discountRate) external onlyOwner {
        discountRate = _discountRate;
        emit SetDiscountRate(_discountRate);
    }

    function setTicketBasedDiscountRates(uint256[] calldata _discountRates, bool _enabled) external onlyOwner {
        require(_discountRates.length == TOKEN_LEN, "MallCard: _discountRates length mismatch");
        useTicketBasedDiscountRates = _enabled;
        for (uint256 r = 0; r < _discountRates.length; r++) {
            discountRates[r] = _discountRates[r];
        }
    }

    function setTransferOpenDate(uint256 _transferOpenDate) external onlyOwner {
        require(_transferOpenDate > block.timestamp, "MallCard: invalid _transferOpenDate");
        transferOpenDate = _transferOpenDate;
        emit SetTransferOpenDate(_transferOpenDate);
    }

    function setPublicSaleStart(uint256 _publicSaleStart) public onlyOwner {
        require(_publicSaleStart >= block.timestamp, "MallCard: invalid _publicSaleStart");
        publicSaleStart = _publicSaleStart;
        emit SetPublicSaleStart(_publicSaleStart);
    }

    function setMaxSupplies(uint256 _silver, uint256 _gold, uint256 _diamond) external onlyOwner {
        tokens[SILVER].maxSupply = _silver;
        tokens[GOLD].maxSupply = _gold;
        tokens[DIAMOND].maxSupply = _diamond;
        emit SetMaxSupplies(_silver, _gold, _diamond);
    }

    function setMintIncomeWalletContract(address _mintIncomeWaletContract) external onlyOwner {
        require(_mintIncomeWaletContract != address(0), "MallCard: to zero mintIncomeWaletContract");

        mintIncomeWaletContract = _mintIncomeWaletContract;
        emit SetMintIncomeWalletContract(_mintIncomeWaletContract);
    }

    function setRoyaltyInfo(address _receiver, uint96 _feeNumerator) external onlyOwner {
        _setDefaultRoyalty(_receiver, _feeNumerator);
        emit SetRoyaltyInfo(_receiver, _feeNumerator);
    }

    function setPrices(uint256[][] calldata _prices, uint256[][] calldata _limits) external onlyOwner {
        require(_prices.length == TOKEN_LEN, "MallCard: _prices length mismatch");
        require(_limits.length == TOKEN_LEN, "MallCard: _limits length mismatch");

        for (uint256 r = 0; r < _prices.length; r++) {
            require(_limits[r].length == _prices[r].length, "MallCard: _limit and _price length mismatch");
            tokens[r].prices = _prices[r];
            tokens[r].limits = _limits[r];
        }
        emit SetPrices(_prices, _limits);
    }

    function pause(uint256[] calldata _ids) external onlyOwner {
        require(_ids.length <= TOKEN_LEN, "MallCard: claim _ids length mismatch");
        for (uint256 r = 0; r < _ids.length; r++) {
            paused[_ids[r]] = true;
        }
        emit Pause(_ids);
    }

    function unPause(uint256[] calldata _ids) external onlyOwner {
        require(_ids.length <= TOKEN_LEN, "MallCard: claim _ids length mismatch");
        for (uint256 i = 0; i < _ids.length; i++) {
            paused[_ids[i]] = false;
        }
        emit UnPause(_ids);
    }

    function createClaim(bytes32 _merkleRootHash, uint256 _startTime, uint256 _endTime) external onlyOwner {
        require(_merkleRootHash.length > 0, "MallCard: invalid merkle root hash");
        require(_startTime > block.timestamp, "MallCard: start time must be in the future");
        require(_endTime > _startTime, "MallCard: end time must be later then start time");
        ClaimDefinition memory _claimRecord = ClaimDefinition({
            merkleRootHash: _merkleRootHash,
            startTime: _startTime,
            endTime: _endTime,
            revoked: false
        });
        claimDefinitions.push(_claimRecord);
        emit CreateClaim(_claimRecord);
    }

    function revokeClaim(uint256 _index) external onlyOwner {
        require(_index >= 0 && _index < claimDefinitions.length, "MallCard: invalid claim definition index");
        require(!claimDefinitions[_index].revoked, "MallCard: already revoked");
        require(claimDefinitions[_index].endTime > block.timestamp, "MallCard: already expired");
        claimDefinitions[_index].revoked = true;
        emit RevokeClaim(_index);
    }

    function mint(uint256 _id) external salesOpen(_id) {
        (uint256 _price, , uint256 _tier) = getCurrentPrice(_id, address(0));
        require(_hasTokenSupply(_id, _tier));
        require(
            tokenContract.transferFrom(msg.sender, mintIncomeWaletContract, _price),
            "Sorry, your wallet does not have enough balance to complete this transaction"
        );
        _mint(msg.sender, _id, 1, "");
        tokens[_id].totalSale = tokens[_id].totalSale + 1;
        tokens[_id].tierSales[_tier] = tokens[_id].tierSales[_tier] + 1;

        emit TokenMint(msg.sender, _id, 1, _price, 0, address(0), "");
    }

    function mintWithReflink(address _referral, uint256 _id, string calldata _refCode) external salesOpen(_id) {
        require(_referral != address(0), "Invalid referral code, your transaction could not be completed. Try again");
        require(
            bytes(_refCode).length > 0,
            "Referral code is required, your transaction could not be processed. Try again"
        );
        (uint256 _price, uint256 _discount, uint256 _tier) = getCurrentPrice(_id, _referral);
        require(_hasTokenSupply(_id, _tier));
        require(
            tokenContract.transferFrom(msg.sender, mintIncomeWaletContract, _price - _discount),
            "Sorry, your wallet does not have enough balance to complete this transaction"
        );
        _mint(msg.sender, _id, 1, bytes(_refCode));
        tokens[_id].totalSale = tokens[_id].totalSale + 1;
        tokens[_id].tierSales[_tier] = tokens[_id].tierSales[_tier] + 1;
        if (_discount > 0) {
            ReflinkUsage memory _reflinkRecord = ReflinkUsage({
                from: _referral,
                to: msg.sender,
                token: _id,
                refCode: _refCode,
                amount: 1,
                price: _price,
                discount: _discount
            });
            reflinkSourceRecords[_reflinkRecord.from].push(reflinkRecords.length);
            reflinkRecords.push(_reflinkRecord);
        }
        emit TokenMint(msg.sender, _id, 1, _price, _discount, _referral, _refCode);
    }

    function claim(ClaimData[] calldata _claimDatas) external {
        require(_claimDatas.length > 0, "MallCard: empty claim parameter data");
        uint256 _claimedSilverAmount = 0;
        uint256 _claimedGoldAmount = 0;
        uint256 _claimedDiamondAmount = 0;
        for (uint i = 0; i < _claimDatas.length; i++) {
            ClaimData memory _claimData = _claimDatas[i];
            uint256 _claimRecordIndex = _claimData.claimRecordIndex;
            require(claimRecords[_claimRecordIndex][msg.sender] == false, "MallCard: already claimed");
            claimRecords[_claimRecordIndex][msg.sender] = true;

            require(claimDefinitions[_claimRecordIndex].startTime < block.timestamp, "MallCard: claim not started");
            require(claimDefinitions[_claimRecordIndex].endTime > block.timestamp, "MallCard: claim expired");
            require(!claimDefinitions[_claimRecordIndex].revoked, "MallCard: claim definition revoked");

            uint256 _userExpireDate = _claimData.userExpireDate;
            require(_userExpireDate > block.timestamp, "MallCard: user claim definition expired");

            uint256 _silverAmount = _claimData.silverAmount;
            uint256 _goldAmount = _claimData.goldAmount;
            uint256 _diamondAmount = _claimData.diamondAmount;
            bytes32[] memory _merkleProof = _claimData.merkleProof;

            bytes32 _leaf = keccak256(
                abi.encodePacked(
                    msg.sender,
                    _claimRecordIndex,
                    _silverAmount,
                    _goldAmount,
                    _diamondAmount,
                    _userExpireDate
                )
            );
            require(
                MerkleProof.verify(_merkleProof, claimDefinitions[_claimRecordIndex].merkleRootHash, _leaf),
                "MallCard: invalid claim data or no allocation"
            );
            _claimedSilverAmount += _silverAmount;
            _claimedGoldAmount += _goldAmount;
            _claimedDiamondAmount += _diamondAmount;
        }
        _claimedSilverAmount = _minSupply(SILVER, _claimedSilverAmount);
        _claimedGoldAmount = _minSupply(GOLD, _claimedGoldAmount);
        _claimedDiamondAmount = _minSupply(DIAMOND, _claimedDiamondAmount);

        uint256 _totalClaim = _claimedSilverAmount + _claimedGoldAmount + _claimedDiamondAmount;
        require(
            _totalClaim > 0,
            "Sorry, no valid claim allocation was found for your wallet address. The expiration date may have passed or you may have already claimed all your tokens."
        );
        uint256[] memory _amounts = new uint256[](TOKEN_LEN);
        uint256[] memory _ids = new uint256[](TOKEN_LEN);

        _amounts[0] = _claimedSilverAmount;
        _amounts[1] = _claimedGoldAmount;
        _amounts[2] = _claimedDiamondAmount;

        TokenAmount[] memory _claimed = new TokenAmount[](TOKEN_LEN);
        for (uint256 i = 0; i < TOKEN_LEN; i++) {
            require(tokens[i].maxSupply == 0 || _amounts[i] <= _remainingToken(i), "MallCard: exceeds max supply");
            _ids[i] = i;
            _claimed[i] = TokenAmount({token: i, amount: _amounts[i]});
            tokens[i].totalClaim = tokens[i].totalClaim + _amounts[i];
        }

        _mintBatch(msg.sender, _ids, _amounts, "");

        emit Claim(msg.sender, _claimed);
    }

    // View Functions
    function getClaimRecordCount() public view returns (uint256) {
        return claimDefinitions.length;
    }

    function getTokenInfo(
        uint256 _id
    )
        public
        view
        returns (
            uint256 maxSupply,
            uint256 totalClaim,
            uint256 totalSale,
            uint256[] memory tierSales,
            uint256[] memory limits,
            uint256[] memory prices
        )
    {
        maxSupply = tokens[_id].maxSupply;
        totalClaim = tokens[_id].totalClaim;
        totalSale = tokens[_id].totalSale;
        tierSales = new uint256[](tokens[_id].limits.length);
        limits = new uint256[](tokens[_id].limits.length);
        prices = new uint256[](tokens[_id].limits.length);
        for (uint256 i = 0; i < limits.length; i++) {
            tierSales[i] = tokens[_id].tierSales[i];
            limits[i] = tokens[_id].limits[i];
            prices[i] = tokens[_id].prices[i];
        }
    }

    function getTokenSummary(address _referral) public view returns (TokenSummary[] memory total) {
        total = new TokenSummary[](TOKEN_LEN);
        for (uint256 i = 0; i < TOKEN_LEN; i++) {
            (uint256 _price, uint256 _discount, uint256 _tier) = getCurrentPrice(i, _referral);
            (
                uint256 _maxSupply,
                uint256 _totalClaim,
                uint256 _totalSale,
                uint256[] memory _tierSales,
                uint256[] memory _limits,
                uint256[] memory _prices
            ) = getTokenInfo(i);
            TokenSummary memory _s = TokenSummary({
                token: i,
                currentPrice: _price,
                discount: _discount,
                currentTier: _tier,
                maxSupply: _maxSupply,
                totalClaim: _totalClaim,
                totalSale: _totalSale,
                tierSales: _tierSales,
                limits: _limits,
                prices: _prices
            });

            total[i] = _s;
        }
    }

    function getBalanceInfo(address _address) public view returns (TokenAmount[] memory amounts) {
        amounts = new TokenAmount[](TOKEN_LEN);
        for (uint256 i = 0; i < TOKEN_LEN; i++) {
            amounts[i] = TokenAmount({token: i, amount: balanceOf(_address, i)});
        }
    }

    function uri(uint256 _id) public view virtual override returns (string memory) {
        return tokenURIs[_id];
    }

    function reflinkUsageCount() external view returns (uint256) {
        return reflinkRecords.length;
    }

    function userReflinkRecords(address _referral) external view returns (uint256[] memory) {
        return reflinkSourceRecords[_referral];
    }

    function userReflinkCount(address _referral) external view returns (uint256) {
        return reflinkSourceRecords[_referral].length;
    }

    function getCurrentPrice(
        uint256 _id,
        address _referral
    ) public view returns (uint256 price, uint256 discount, uint256 tier) {
        tier = _currentTier(_id);
        price = tokens[_id].prices[tier];

        // discount can only be appliable for public sale prices
        if (_referral != address(0) && tier == (tokens[_id].limits.length - 1)) {
            discount = _getReflinkDiscount(_referral, price);
        }
    }

    function _minSupply(uint256 _id, uint256 _requested) private view returns (uint256 _min) {
        if (_requested > 0) {
            uint256 _max = tokens[_id].maxSupply > 0 ? _remainingToken(_id) : _requested;
            _min = _requested < _max ? _requested : _max;
        }
    }

    function _remainingToken(uint256 _id) private view returns (uint256 _remaining) {
        if (tokens[_id].maxSupply > 0 && tokens[_id].maxSupply > (tokens[_id].totalClaim + tokens[_id].totalSale)) {
            _remaining = tokens[_id].maxSupply - tokens[_id].totalClaim - tokens[_id].totalSale;
        }
    }

    function _hasTokenSupply(uint256 _id, uint256 _tier) private view returns (bool) {
        require(
            tokens[_id].maxSupply == 0 || _remainingToken(_id) > 0,
            "Sorry, insufficient NFT supply, your transaction cannot be completed"
        );
        require(
            tokens[_id].limits[_tier] == 0 || tokens[_id].limits[_tier] > (tokens[_id].tierSales[_tier]),
            "Sorry, insufficient NFT supply, your transaction cannot be completed"
        );
        return true;
    }

    function _getReflinkDiscount(address _from, uint256 _price) private view returns (uint256) {
        require(_from != msg.sender, "You cannot refer yourself, the transaction has been rejected");
        uint256 _discountRate = 0;
        if (useTicketBasedDiscountRates) {
            for (uint256 r = TOKEN_LEN; r > 0; r--) {
                uint256 _balance = balanceOf(_from, r - 1);
                if (_balance > 0) {
                    _discountRate = discountRates[r - 1];
                    break;
                }
            }
        } else {
            _discountRate = discountRate;
        }

        return (_price * _discountRate) / _feeDenominator();
    }

    function _currentTier(uint256 _id) private view returns (uint256 _tier) {
        _tier = tokens[_id].limits.length - 1;
        for (uint256 i = 0; i < tokens[_id].limits.length; i++) {
            if (tokens[_id].limits[i] == 0 || tokens[_id].tierSales[i] < tokens[_id].limits[i]) {
                _tier = i;
                break;
            }
        }
    }

    function _beforeTokenTransfer(
        address,
        address from,
        address,
        uint256[] memory ids,
        uint256[] memory,
        bytes memory
    ) internal virtual override(ERC1155) {
        if (from != address(0)) {
            require(transferOpenDate > 0, "MallCard: ticket transfer not open!");
            require(transferOpenDate < block.timestamp, "MallCard: ticket transfer not open!");
            for (uint256 i = 0; i < ids.length; i++) {
                require(ids[i] != SILVER, "MallCard: transfer not allowed for SILVER ticket!");
            }
        }
    }

    //Royaltı registry
    function setOperatorFiltering(bool enabled) public onlyOwner {
        _operatorFiltering = enabled;
    }

    function registerOperatorFilter(
        address registry,
        address subscriptionOrRegistrantToCopy,
        bool subscribe
    ) public onlyOwner {
        _registerOperatorFilter(registry, subscriptionOrRegistrantToCopy, subscribe);
    }

    function unregisterOperatorFilter(address registry) public onlyOwner {
        _unregisterOperatorFilter(registry);
    }

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

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public override(ERC1155) onlyAllowedOperator(from) {
        ERC1155.safeTransferFrom(from, to, id, amount, data);
    }

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public override(ERC1155) onlyAllowedOperator(from) {
        ERC1155.safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    //royalty support
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, ERC2981) returns (bool) {
        return ERC1155.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 3 of 19 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: address zero is not a valid owner");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

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

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

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

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `ids` and `amounts` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

File 6 of 19 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 7 of 19 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

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

contract DefaultOperatorFilterer is OperatorFilterer {
    // constructor(
    //     address registry,
    //     address subscription
    // ) OperatorFilterer(registry, subscription, true) {}
}

File 8 of 19 : 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 9 of 19 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 10 of 19 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 19 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 19 : 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 14 of 19 : 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 15 of 19 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import "../v1/util/ArrayFind.sol";
import "../v1/util/Types.sol";

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

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

    using ArrayFind for address;
    OperatorRegistry[] public _operatorRegistries;
    bool _operatorFiltering = true;

    /// @dev The constructor that is called when the contract is being deployed.
    // constructor(
    //     address registry,
    //     address subscriptionOrRegistrantToCopy,
    //     bool subscribe
    // ) {
    //     _registerOperatorFilter(registry, subscriptionOrRegistrantToCopy, subscribe);
    // }

    function _registerOperatorFilter(
        address registry,
        address subscriptionOrRegistrantToCopy,
        bool subscribe
    ) internal virtual {
        if (registry.code.length == 0) return;

        IOperatorFilterRegistry filterRegistry = IOperatorFilterRegistry(
            registry
        );

        if (subscribe) {
            filterRegistry.registerAndSubscribe(
                address(this),
                subscriptionOrRegistrantToCopy
            );
        } else {
            if (subscriptionOrRegistrantToCopy != address(0)) {
                filterRegistry.registerAndCopyEntries(
                    address(this),
                    subscriptionOrRegistrantToCopy
                );
            } else {
                filterRegistry.register(address(this));
            }
        }

        _operatorRegistries.push(
            OperatorRegistry(
                registry,
                subscribe ? subscriptionOrRegistrantToCopy : address(0)
            )
        );
    }

    function _unregisterOperatorFilter(address registry) internal virtual {
        IOperatorFilterRegistry(registry).unregister(address(this));

        uint256 ind;
        uint256 len = _operatorRegistries.length;
        for (uint i = 0; i < len; i++) {
            if (_operatorRegistries[i].registry == registry) {
                ind = i + 1;
                break;
            }
        }

        if (ind == 0) return;
        if (ind < len)
            _operatorRegistries[ind - 1] = _operatorRegistries[len - 1];

        _operatorRegistries.pop();
    }

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

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

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        if (!_operatorFiltering) return;

        bool ok = false;
        for (uint i = 0; i < _operatorRegistries.length; i++) {
            address registry = _operatorRegistries[i].registry;
            ok = IOperatorFilterRegistry(registry).isOperatorAllowed(
                address(this),
                operator
            );

            // only one operator allowance is enough
            if (ok) break;
        }

        // if there is no operator allowance
        if (!ok) {
            revert OperatorNotAllowed(operator);
        }
    }
}

struct OperatorRegistry {
    address registry;
    address subscription;
}

File 17 of 19 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

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

File 18 of 19 : ArrayFind.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

import "./Types.sol";

library ArrayFind {
    function find(
        uint256[] memory arr,
        uint value
    ) internal pure returns (uint256) {
        uint256 ind = IndexNotFound;
        for (uint256 i = 0; i < arr.length; i++) {
            if (arr[i] == value) {
                ind = i;
                break;
            }
        }

        return ind;
    }

    function find(
        bytes32[] memory arr,
        bytes32 value
    ) internal pure returns (uint256) {
        uint256 ind = IndexNotFound;
        for (uint i = 0; i < arr.length; i++) {
            if (arr[i] == value) {
                ind = i;
                break;
            }
        }

        return ind;
    }

    function find(
        address[] memory arr,
        address value
    ) internal pure returns (uint256) {
        uint256 ind = IndexNotFound;
        for (uint i = 0; i < arr.length; i++) {
            if (arr[i] == value) {
                ind = i;
                break;
            }
        }

        return ind;
    }

    function exist(
        address[] memory arr,
        address value
    ) internal pure returns (bool) {
        return find(arr, value) != IndexNotFound;
    }

    function checkForDublicates(
        address[] memory arr
    ) internal pure returns (bool) {
        for (uint i = 0; i < arr.length; i++) {
            address _val = arr[i];

            for (uint j = i + 1; j < arr.length; j++) {
                if (arr[j] == _val) return true;
            }
        }

        return false;
    }
}

File 19 of 19 : Types.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.12;

uint256 constant IndexNotFound = 2 ^ (256 - 1);

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"},{"internalType":"address","name":"_royaltyWaletContract","type":"address"},{"internalType":"address","name":"_mintIncomeWalletContract","type":"address"},{"internalType":"uint256","name":"_publicSaleStart","type":"uint256"},{"internalType":"uint96","name":"_royalty","type":"uint96"},{"internalType":"uint256","name":"_discountRate","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"components":[{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"indexed":false,"internalType":"struct MallCard.TokenAmount[]","name":"claimed","type":"tuple[]"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"bytes32","name":"merkleRootHash","type":"bytes32"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bool","name":"revoked","type":"bool"}],"indexed":false,"internalType":"struct MallCard.ClaimDefinition","name":"claims","type":"tuple"}],"name":"CreateClaim","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":"ids","type":"uint256[]"}],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"}],"name":"RevokeClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"discountRate","type":"uint256"}],"name":"SetDiscountRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"silver","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"gold","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"diamond","type":"uint256"}],"name":"SetMaxSupplies","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"mintIncomeWaletContract","type":"address"}],"name":"SetMintIncomeWalletContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[][]","name":"prices","type":"uint256[][]"},{"indexed":false,"internalType":"uint256[][]","name":"limits","type":"uint256[][]"}],"name":"SetPrices","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"transferOpenDate","type":"uint256"}],"name":"SetPublicSaleStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"SetRoyaltyInfo","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenContract","type":"address"}],"name":"SetTokenContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"publicSaleStart","type":"uint256"}],"name":"SetTransferOpenDate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"SetURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"token","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"discount","type":"uint256"},{"indexed":false,"internalType":"address","name":"reflinkOwner","type":"address"},{"indexed":false,"internalType":"string","name":"refCode","type":"string"}],"name":"TokenMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"UnPause","type":"event"},{"inputs":[],"name":"DIAMOND","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GOLD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SILVER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_operatorRegistries","outputs":[{"internalType":"address","name":"registry","type":"address"},{"internalType":"address","name":"subscription","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"claimRecordIndex","type":"uint256"},{"internalType":"uint256","name":"silverAmount","type":"uint256"},{"internalType":"uint256","name":"goldAmount","type":"uint256"},{"internalType":"uint256","name":"diamondAmount","type":"uint256"},{"internalType":"uint256","name":"userExpireDate","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"internalType":"struct MallCard.ClaimData[]","name":"_claimDatas","type":"tuple[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimDefinitions","outputs":[{"internalType":"bytes32","name":"merkleRootHash","type":"bytes32"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bool","name":"revoked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"claimRecords","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRootHash","type":"bytes32"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"createClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"discountRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"discountRates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getBalanceInfo","outputs":[{"components":[{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct MallCard.TokenAmount[]","name":"amounts","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimRecordCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_referral","type":"address"}],"name":"getCurrentPrice","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"discount","type":"uint256"},{"internalType":"uint256","name":"tier","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getTokenInfo","outputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"totalClaim","type":"uint256"},{"internalType":"uint256","name":"totalSale","type":"uint256"},{"internalType":"uint256[]","name":"tierSales","type":"uint256[]"},{"internalType":"uint256[]","name":"limits","type":"uint256[]"},{"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_referral","type":"address"}],"name":"getTokenSummary","outputs":[{"components":[{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"uint256","name":"currentPrice","type":"uint256"},{"internalType":"uint256","name":"discount","type":"uint256"},{"internalType":"uint256","name":"currentTier","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"totalClaim","type":"uint256"},{"internalType":"uint256","name":"totalSale","type":"uint256"},{"internalType":"uint256[]","name":"tierSales","type":"uint256[]"},{"internalType":"uint256[]","name":"limits","type":"uint256[]"},{"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"internalType":"struct MallCard.TokenSummary[]","name":"total","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintIncomeWaletContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_referral","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_refCode","type":"string"}],"name":"mintWithReflink","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"reflinkRecords","outputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"discount","type":"uint256"},{"internalType":"string","name":"refCode","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"reflinkSourceRecords","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reflinkUsageCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"registry","type":"address"},{"internalType":"address","name":"subscriptionOrRegistrantToCopy","type":"address"},{"internalType":"bool","name":"subscribe","type":"bool"}],"name":"registerOperatorFilter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"revokeClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"uint256","name":"_discountRate","type":"uint256"}],"name":"setDiscountRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_silver","type":"uint256"},{"internalType":"uint256","name":"_gold","type":"uint256"},{"internalType":"uint256","name":"_diamond","type":"uint256"}],"name":"setMaxSupplies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mintIncomeWaletContract","type":"address"}],"name":"setMintIncomeWalletContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setOperatorFiltering","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[][]","name":"_prices","type":"uint256[][]"},{"internalType":"uint256[][]","name":"_limits","type":"uint256[][]"}],"name":"setPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSaleStart","type":"uint256"}],"name":"setPublicSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_discountRates","type":"uint256[]"},{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setTicketBasedDiscountRates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"}],"name":"setTokenContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_transferOpenDate","type":"uint256"}],"name":"setTransferOpenDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_uris","type":"string[]"}],"name":"setURIs","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":[],"name":"tokenContract","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenURIs","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"totalClaim","type":"uint256"},{"internalType":"uint256","name":"totalSale","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transferOpenDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"unPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"registry","type":"address"}],"name":"unregisterOperatorFilter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"useTicketBasedDiscountRates","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_referral","type":"address"}],"name":"userReflinkCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_referral","type":"address"}],"name":"userReflinkRecords","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]

6006805460ff1916600117905560c0604052601860808190527f4d616c6c436172642047656e657369732045646974696f6e000000000000000060a09081526200004d91601591906200050c565b50604080518082019091526005808252641b50d85c9960da1b60209092019182526200007c916016916200050c565b503480156200008a57600080fd5b506040516200625938038062006259833981016040819052620000ad91620005cf565b604080516020810190915260008152620000c78162000292565b50620000d333620002ab565b6001600160a01b0386166200013b5760405162461bcd60e51b8152602060048201526024808201527f4d616c6c436172643a20746f6b656e436f6e7472616374207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b6001600160a01b038516620001a75760405162461bcd60e51b815260206004820152602b60248201527f4d616c6c436172643a20726f79616c747957616c6574436f6e7472616374207a60448201526a65726f206164647265737360a81b606482015260840162000132565b6001600160a01b038416620002175760405162461bcd60e51b815260206004820152602f60248201527f4d616c6c436172643a206d696e74496e636f6d6557616c6c6574436f6e74726160448201526e6374207a65726f206164647265737360881b606482015260840162000132565b826200022e57620002284262000305565b62000239565b620002398362000305565b6013819055601480546001600160a01b0319166001600160a01b038616179055620002658583620003a7565b5050600980546001600160a01b0319166001600160a01b039590951694909417909355506200068b915050565b8051620002a79060029060208401906200050c565b5050565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200030f620004a8565b428110156200036c5760405162461bcd60e51b815260206004820152602260248201527f4d616c6c436172643a20696e76616c6964205f7075626c696353616c655374616044820152611c9d60f21b606482015260840162000132565b60118190556040518181527f25c89eb0b24ad51817695d1959485b64dff24d8baa95529f317e12e477ad6c9f9060200160405180910390a150565b6127106001600160601b0382161115620004175760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840162000132565b6001600160a01b0382166200046f5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000132565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b6006546001600160a01b036101009091041633146200050a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000132565b565b8280546200051a906200064e565b90600052602060002090601f0160209004810192826200053e576000855562000589565b82601f106200055957805160ff191683800117855562000589565b8280016001018555821562000589579182015b82811115620005895782518255916020019190600101906200056c565b50620005979291506200059b565b5090565b5b808211156200059757600081556001016200059c565b80516001600160a01b0381168114620005ca57600080fd5b919050565b60008060008060008060c08789031215620005e957600080fd5b620005f487620005b2565b95506200060460208801620005b2565b94506200061460408801620005b2565b6060880151608089015191955093506001600160601b03811681146200063957600080fd5b8092505060a087015190509295509295509295565b600181811c908216806200066357607f821691505b602082108114156200068557634e487b7160e01b600052602260045260246000fd5b50919050565b615bbe806200069b6000396000f3fe608060405234801561001057600080fd5b50600436106103ad5760003560e01c80637ec29890116101f4578063c21d89dd1161011a578063e3e55f08116100ad578063efc9e4111161007c578063efc9e41114610919578063f242432a1461092c578063f2fde38b1461093f578063f63a85911461095257600080fd5b8063e3e55f08146108ac578063e6c0e6d5146108b4578063e985e9c5146108bd578063e9aab1f5146108f957600080fd5b8063d64af26e116100e9578063d64af26e1461083d578063d6d2f97614610850578063ddd672c514610870578063e1baf0901461089957600080fd5b8063c21d89dd146107d1578063c381a7ec146107e4578063cd2bb70d146107f7578063d288e6191461082a57600080fd5b806395d89b4111610192578063b2bb9c0d11610161578063b2bb9c0d1461079a578063b9b40c1a146107a3578063bb5ac76d146107b6578063bbcd5bbe146107be57600080fd5b806395d89b411461073e578063a0712d6814610746578063a0ec0e0814610759578063a22cb4651461078757600080fd5b80638c7a63ae116101ce5780638c7a63ae146106dd5780638da5cb5b146107025780638f5509b714610718578063932c75eb1461072b57600080fd5b80637ec29890146106a457806381cf55f3146106b7578063862440e2146106ca57600080fd5b80633360caa0116102d95780634f64b2be116102775780635af646fe116102465780635af646fe146106635780636c8b703f14610676578063715018a6146106895780637c69febd1461069157600080fd5b80634f64b2be146105c85780635011be471461061257806354f197491461062557806355a373d61461063857600080fd5b80633e4bee38116102b35780633e4bee381461057a578063470659491461058257806349754a83146105955780634e1273f4146105a857600080fd5b80633360caa01461053e578063348abd561461054757806339adac4d1461055a57600080fd5b80630ca282f711610351578063206545c211610320578063206545c2146104cb57806329d8ad95146104d35780632a55205a146104f95780632eb2c2d61461052b57600080fd5b80630ca282f7146104855780630e89341c146104985780631aa7b98f146104ab5780631d6cb257146104b857600080fd5b806302fa7c471161038d57806302fa7c471461041e57806303b684af1461043357806306fdde031461043b57806307f0c3a41461045057600080fd5b8062dde10e146103b2578062fdd58e146103ea57806301ffc9a71461040b575b600080fd5b6103d56103c03660046147f1565b600b6020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6103fd6103f8366004614821565b610965565b6040519081526020016103e1565b6103d5610419366004614861565b6109fe565b61043161042c36600461487e565b610a18565b005b6007546103fd565b610443610a79565b6040516103e1919061490e565b61046361045e3660046147f1565b610b07565b60408051948552602085019390935291830152151560608201526080016103e1565b6104316104933660046147f1565b610b44565b6104436104a63660046147f1565b610be3565b6010546103d59060ff1681565b6104316104c636600461492f565b610c85565b6103fd600281565b6104e66104e13660046147f1565b610c9d565b6040516103e19796959493929190614976565b61050c6105073660046149c6565b610d86565b604080516001600160a01b0390931683526020830191909152016103e1565b610431610539366004614b56565b610e34565b6103fd60115481565b610431610555366004614c43565b610e63565b61056d610568366004614c84565b610f20565b6040516103e19190614c9f565b6103fd600181565b610431610590366004614cee565b610fc1565b6104316105a3366004614d39565b611089565b6105bb6105b6366004614da4565b6112d7565b6040516103e19190614ea9565b6105f76105d63660046147f1565b600c6020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016103e1565b610431610620366004614ebc565b611400565b6105bb610633366004614c84565b6115fc565b60095461064b906001600160a01b031681565b6040516001600160a01b0390911681526020016103e1565b6104316106713660046147f1565b611667565b6104436106843660046147f1565b6116ff565b610431611718565b61043161069f3660046147f1565b61172c565b60145461064b906001600160a01b031681565b6104316106c5366004614c43565b611769565b6104316106d8366004614f29565b611f83565b6106f06106eb3660046147f1565b61206e565b6040516103e196959493929190614f74565b60065461010090046001600160a01b031661064b565b610431610726366004614c43565b61228c565b610431610739366004614fbf565b612349565b610443612364565b6104316107543660046147f1565b612371565b6103d5610767366004614fdc565b600860209081526000928352604080842090915290825290205460ff1681565b610431610795366004615008565b612570565b6103fd60125481565b6104316107b1366004614c84565b612584565b600a546103fd565b6104316107cc366004614c84565b612642565b6104316107df3660046147f1565b6126ee565b6104316107f2366004614c43565b6128a5565b61080a6108053660046147f1565b6128f2565b604080516001600160a01b039384168152929091166020830152016103e1565b6103fd610838366004614821565b61292b565b61043161084b366004615034565b61295c565b6103fd61085e3660046147f1565b600d6020526000908152604090205481565b6103fd61087e366004614c84565b6001600160a01b03166000908152600e602052604090205490565b6104316108a7366004614ebc565b612ec2565b6103fd600081565b6103fd60135481565b6103d56108cb366004615081565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61090c610907366004614c84565b612f86565b6040516103e191906150ab565b6105f7610927366004614fdc565b6130cd565b61043161093a36600461519b565b61315d565b61043161094d366004614c84565b613184565b610431610960366004614c84565b6131fd565b60006001600160a01b0383166109d55760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b6000610a098261320e565b806109f857506109f88261325e565b610a20613283565b610a2a82826132e3565b604080516001600160a01b03841681526001600160601b03831660208201527f5801f2a9b591fde7d8a18a9ffc038c9889cade809e5364c1ea036feeb001ccc791015b60405180910390a15050565b60158054610a86906151ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab2906151ff565b8015610aff5780601f10610ad457610100808354040283529160200191610aff565b820191906000526020600020905b815481529060010190602001808311610ae257829003601f168201915b505050505081565b60078181548110610b1757600080fd5b60009182526020909120600490910201805460018201546002830154600390930154919350919060ff1684565b610b4c613283565b42811015610ba75760405162461bcd60e51b815260206004820152602260248201527f4d616c6c436172643a20696e76616c6964205f7075626c696353616c655374616044820152611c9d60f21b60648201526084016109cc565b60118190556040518181527f25c89eb0b24ad51817695d1959485b64dff24d8baa95529f317e12e477ad6c9f906020015b60405180910390a150565b6000818152600f60205260409020805460609190610c00906151ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2c906151ff565b8015610c795780601f10610c4e57610100808354040283529160200191610c79565b820191906000526020600020905b815481529060010190602001808311610c5c57829003601f168201915b50505050509050919050565b610c8d613283565b610c988383836133e0565b505050565b600a8181548110610cad57600080fd5b600091825260209091206007909102018054600182015460028301546003840154600485015460058601546006870180546001600160a01b039788169950959096169693959294919390929091610d03906151ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2f906151ff565b8015610d7c5780601f10610d5157610100808354040283529160200191610d7c565b820191906000526020600020905b815481529060010190602001808311610d5f57829003601f168201915b5050505050905087565b60008281526004602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610dfb5750604080518082019091526003546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610e1a906001600160601b03168761524a565b610e249190615269565b91519350909150505b9250929050565b846001600160a01b0381163314610e4e57610e4e33613583565b610e5b8686868686613687565b505050505050565b610e6b613283565b6003811115610e8c5760405162461bcd60e51b81526004016109cc9061528b565b60005b81811015610eee576001600b6000858585818110610eaf57610eaf6152cf565b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610ee6906152e5565b915050610e8f565b507f260bc671da8cfe8ee772f5b246f2661abdb74c7b598bf40a1537de668f03dfd48282604051610a6d929190615336565b60408051600380825260808201909252606091816020015b6040805180820190915260008082526020820152815260200190600190039081610f3857905050905060005b6003811015610fbb576040518060400160405280828152602001610f888584610965565b815250828281518110610f9d57610f9d6152cf565b60200260200101819052508080610fb3906152e5565b915050610f64565b50919050565b610fc9613283565b6003821461102a5760405162461bcd60e51b815260206004820152602860248201527f4d616c6c436172643a205f646973636f756e745261746573206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016109cc565b6010805460ff191682151517905560005b8281101561108357838382818110611055576110556152cf565b6000848152600d6020908152604090912091029290920135909155508061107b816152e5565b91505061103b565b50505050565b611091613283565b600383146110eb5760405162461bcd60e51b815260206004820152602160248201527f4d616c6c436172643a205f707269636573206c656e677468206d69736d6174636044820152600d60fb1b60648201526084016109cc565b600381146111455760405162461bcd60e51b815260206004820152602160248201527f4d616c6c436172643a205f6c696d697473206c656e677468206d69736d6174636044820152600d60fb1b60648201526084016109cc565b60005b8381101561129357848482818110611162576111626152cf565b9050602002810190611174919061534a565b9050838383818110611188576111886152cf565b905060200281019061119a919061534a565b9050146111fd5760405162461bcd60e51b815260206004820152602b60248201527f4d616c6c436172643a205f6c696d697420616e64205f7072696365206c656e6760448201526a0e8d040dad2e6dac2e8c6d60ab1b60648201526084016109cc565b84848281811061120f5761120f6152cf565b9050602002810190611221919061534a565b6000838152600c6020526040902061123e926005909101916146aa565b50828282818110611251576112516152cf565b9050602002810190611263919061534a565b6000838152600c60205260409020611280926004909101916146aa565b508061128b816152e5565b915050611148565b507f3bdfc6bec6408efcf58d7600faab8fb942107cfdcf6cc8f03cb3cef1ddfa1172848484846040516112c99493929190615419565b60405180910390a150505050565b6060815183511461133c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016109cc565b600083516001600160401b03811115611357576113576149e8565b604051908082528060200260200182016040528015611380578160200160208202803683370190505b50905060005b84518110156113f8576113cb8582815181106113a4576113a46152cf565b60200260200101518583815181106113be576113be6152cf565b6020026020010151610965565b8282815181106113dd576113dd6152cf565b60209081029190910101526113f1816152e5565b9050611386565b509392505050565b611408613283565b42821161146a5760405162461bcd60e51b815260206004820152602a60248201527f4d616c6c436172643a2073746172742074696d65206d75737420626520696e206044820152697468652066757475726560b01b60648201526084016109cc565b8181116114d25760405162461bcd60e51b815260206004820152603060248201527f4d616c6c436172643a20656e642074696d65206d757374206265206c6174657260448201526f207468656e2073746172742074696d6560801b60648201526084016109cc565b604080516080808201835285825260208083018681528385018681526000606080870182815260078054600181018255935287517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688600490940293840181905585517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68985015584517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a85015581517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68b909401805460ff19169415159490941790935588519283529351948201949094529051958101959095525115159084015290917f3cea2202adda0f407d67acf90a30a33880aefc956e042c3465de52255bf0490c91016112c9565b6001600160a01b0381166000908152600e6020908152604091829020805483518184028101840190945280845260609392830182828015610c7957602002820191906000526020600020905b8154815260200190600101908083116116485750505050509050919050565b61166f613283565b4281116116ca5760405162461bcd60e51b815260206004820152602360248201527f4d616c6c436172643a20696e76616c6964205f7472616e736665724f70656e4460448201526261746560e81b60648201526084016109cc565b60128190556040518181527f0a589af9357a7d6dcd1ea004b9fc70f883cead09b966afc1add0aa8ffb93848490602001610bd8565b600f6020526000908152604090208054610a86906151ff565b611720613283565b61172a60006136d3565b565b611734613283565b60138190556040518181527f21a8eefc17e9c864964b5a4c0769d87f39cc0a7576773159e12358bc0095ffc590602001610bd8565b806117c25760405162461bcd60e51b8152602060048201526024808201527f4d616c6c436172643a20656d70747920636c61696d20706172616d65746572206044820152636461746160e01b60648201526084016109cc565b6000806000805b84811015611bae5760008686838181106117e5576117e56152cf565b90506020028101906117f7919061544b565b6118009061546b565b805160008181526008602090815260408083203384529091529020549192509060ff16156118705760405162461bcd60e51b815260206004820152601960248201527f4d616c6c436172643a20616c726561647920636c61696d65640000000000000060448201526064016109cc565b60008181526008602090815260408083203384529091529020805460ff1916600117905560078054429190839081106118ab576118ab6152cf565b9060005260206000209060040201600101541061190a5760405162461bcd60e51b815260206004820152601b60248201527f4d616c6c436172643a20636c61696d206e6f742073746172746564000000000060448201526064016109cc565b426007828154811061191e5761191e6152cf565b9060005260206000209060040201600201541161197d5760405162461bcd60e51b815260206004820152601760248201527f4d616c6c436172643a20636c61696d206578706972656400000000000000000060448201526064016109cc565b60078181548110611990576119906152cf565b600091825260209091206003600490920201015460ff16156119ff5760405162461bcd60e51b815260206004820152602260248201527f4d616c6c436172643a20636c61696d20646566696e6974696f6e207265766f6b604482015261195960f21b60648201526084016109cc565b6080820151428111611a635760405162461bcd60e51b815260206004820152602760248201527f4d616c6c436172643a207573657220636c61696d20646566696e6974696f6e20604482015266195e1c1a5c995960ca1b60648201526084016109cc565b60208381015160408086015160608088015160a089015193513390921b6bffffffffffffffffffffffff1916958201959095526034810187905260548101849052607481018290526094810185905260b481018690529293909290919060009060d401604051602081830303815290604052805190602001209050611b0d8260078981548110611af557611af56152cf565b9060005260206000209060040201600001548361372d565b611b6f5760405162461bcd60e51b815260206004820152602d60248201527f4d616c6c436172643a20696e76616c696420636c61696d2064617461206f722060448201526c37379030b63637b1b0ba34b7b760991b60648201526084016109cc565b611b79858d615545565b9b50611b85848c615545565b9a50611b91838b615545565b995050505050505050508080611ba6906152e5565b9150506117c9565b50611bba600084613743565b9250611bc7600183613743565b9150611bd4600282613743565b9050600081611be38486615545565b611bed9190615545565b905060008111611cd75760405162461bcd60e51b815260206004820152609860248201527f536f7272792c206e6f2076616c696420636c61696d20616c6c6f636174696f6e60448201527f2077617320666f756e6420666f7220796f75722077616c6c657420616464726560648201527f73732e205468652065787069726174696f6e2064617465206d6179206861766560848201527f20706173736564206f7220796f75206d6179206861766520616c72656164792060a48201527f636c61696d656420616c6c20796f757220746f6b656e732e000000000000000060c482015260e4016109cc565b60408051600380825260808201909252600091602082016060803683375050604080516003808252608082019092529293506000929150602082016060803683370190505090508582600081518110611d3257611d326152cf565b6020026020010181815250508482600181518110611d5257611d526152cf565b6020026020010181815250508382600281518110611d7257611d726152cf565b602090810291909101015260408051600380825260808201909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081611d9557905050905060005b6003811015611f1b576000818152600c60205260409020541580611e065750611de981613786565b848281518110611dfb57611dfb6152cf565b602002602001015111155b611e525760405162461bcd60e51b815260206004820152601c60248201527f4d616c6c436172643a2065786365656473206d617820737570706c790000000060448201526064016109cc565b80838281518110611e6557611e656152cf565b6020026020010181815250506040518060400160405280828152602001858381518110611e9457611e946152cf565b6020026020010151815250828281518110611eb157611eb16152cf565b6020026020010181905250838181518110611ece57611ece6152cf565b6020026020010151600c600083815260200190815260200160002060010154611ef79190615545565b6000828152600c602052604090206001015580611f13816152e5565b915050611dc1565b50611f373383856040518060200160405280600081525061380b565b336001600160a01b03167f6530f00c5faf3984252b7db5d1990f5a5d0d8489d974403ded32ded468a5cbe882604051611f709190614c9f565b60405180910390a2505050505050505050565b611f8b613283565b80611fce5760405162461bcd60e51b81526020600482015260136024820152724d616c6c436172643a2075726920656d70747960681b60448201526064016109cc565b600383106120155760405162461bcd60e51b815260206004820152601460248201527313585b1b10d85c990e881a5b9d985b1a59081a5960621b60448201526064016109cc565b6000838152600f6020526040902061202e9083836146f5565b50827fee1bb82f380189104b74a7647d26f2f35679780e816626ffcaec7cafb7288e468383604051612061929190615586565b60405180910390a2505050565b6000818152600c6020526040902080546001820154600283015460049093015491929091606090819081906001600160401b038111156120b0576120b06149e8565b6040519080825280602002602001820160405280156120d9578160200160208202803683370190505b506000888152600c60205260409020600401549093506001600160401b03811115612106576121066149e8565b60405190808252806020026020018201604052801561212f578160200160208202803683370190505b506000888152600c60205260409020600401549092506001600160401b0381111561215c5761215c6149e8565b604051908082528060200260200182016040528015612185578160200160208202803683370190505b50905060005b8251811015612282576000888152600c6020908152604080832084845260030190915290205484518590839081106121c5576121c56152cf565b602002602001018181525050600c600089815260200190815260200160002060040181815481106121f8576121f86152cf565b9060005260206000200154838281518110612215576122156152cf565b602002602001018181525050600c60008981526020019081526020016000206005018181548110612248576122486152cf565b9060005260206000200154828281518110612265576122656152cf565b60209081029190910101528061227a816152e5565b91505061218b565b5091939550919395565b612294613283565b60038111156122b55760405162461bcd60e51b81526004016109cc9061528b565b60005b81811015612317576000600b60008585858181106122d8576122d86152cf565b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550808061230f906152e5565b9150506122b8565b507fafd72e0c018e0e910242560c3aee98538b9d64f6a5178d17cd4099135167ed2d8282604051610a6d929190615336565b612351613283565b6006805460ff1916911515919091179055565b60168054610a86906151ff565b6000818152600b6020526040902054819060ff16156123a25760405162461bcd60e51b81526004016109cc9061559a565b60115442116123c35760405162461bcd60e51b81526004016109cc906155ea565b6000806123d18460006130cd565b92505091506123e08482613965565b6123e957600080fd5b6009546014546040516323b872dd60e01b81523360048201526001600160a01b039182166024820152604481018590529116906323b872dd906064016020604051808303816000875af1158015612444573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124689190615651565b6124845760405162461bcd60e51b81526004016109cc9061566e565b6124a03385600160405180602001604052806000815250613a47565b6000848152600c60205260409020600201546124bd906001615545565b6000858152600c6020908152604080832060028101949094558483526003909301905220546124ed906001615545565b6000858152600c602090815260408083208584526003018252808320939093558251878152600191810191909152918201849052606082018190526080820181905260c060a0830181905282015233907fd7694fce96b32c7dc673e0ac2b5daa8ee3f8007f639f28deca345925a8008bec9060e00160405180910390a250505050565b8161257a81613583565b610c988383613b30565b61258c613283565b6001600160a01b0381166125f45760405162461bcd60e51b815260206004820152602960248201527f4d616c6c436172643a20746f207a65726f206d696e74496e636f6d6557616c656044820152681d10dbdb9d1c9858dd60ba1b60648201526084016109cc565b601480546001600160a01b0319166001600160a01b0383169081179091556040519081527f443cd708277299d932168df4b7c607ff06302029c5d98a204b664aeabc16414a90602001610bd8565b61264a613283565b6001600160a01b0381166126a05760405162461bcd60e51b815260206004820152601d60248201527f4d616c6c436172643a207a65726f205f746f6b656e436f6e747261637400000060448201526064016109cc565b600980546001600160a01b0319166001600160a01b0383169081179091556040519081527f3ecd68bacec5b275ee87ff92c4d603e9aecf0071defa83b4cbd6d0468807edf490602001610bd8565b6126f6613283565b60075481106127585760405162461bcd60e51b815260206004820152602860248201527f4d616c6c436172643a20696e76616c696420636c61696d20646566696e6974696044820152670dedc40d2dcc8caf60c31b60648201526084016109cc565b6007818154811061276b5761276b6152cf565b600091825260209091206003600490920201015460ff16156127cf5760405162461bcd60e51b815260206004820152601960248201527f4d616c6c436172643a20616c7265616479207265766f6b65640000000000000060448201526064016109cc565b42600782815481106127e3576127e36152cf565b906000526020600020906004020160020154116128425760405162461bcd60e51b815260206004820152601960248201527f4d616c6c436172643a20616c726561647920657870697265640000000000000060448201526064016109cc565b600160078281548110612857576128576152cf565b60009182526020822060049190910201600301805460ff19169215159290921790915560405182917f27a835be41b6aaa43b036cf6bbb17b3e89c97c8aa4ac3e55426bca77164be89a91a250565b6128ad613283565b60005b81811015610c98576128e0818484848181106128ce576128ce6152cf565b90506020028101906106d891906156e0565b806128ea816152e5565b9150506128b0565b6005818154811061290257600080fd5b6000918252602090912060029091020180546001909101546001600160a01b0391821692501682565b600e602052816000526040600020818154811061294757600080fd5b90600052602060002001600091509150505481565b6000838152600b6020526040902054839060ff161561298d5760405162461bcd60e51b81526004016109cc9061559a565b60115442116129ae5760405162461bcd60e51b81526004016109cc906155ea565b6001600160a01b038516612a3c5760405162461bcd60e51b815260206004820152604960248201527f496e76616c696420726566657272616c20636f64652c20796f7572207472616e60448201527f73616374696f6e20636f756c64206e6f7420626520636f6d706c657465642e206064820152682a393c9030b3b0b4b760b91b608482015260a4016109cc565b81612ac55760405162461bcd60e51b815260206004820152604d60248201527f526566657272616c20636f64652069732072657175697265642c20796f75722060448201527f7472616e73616374696f6e20636f756c64206e6f742062652070726f6365737360648201526c32b217102a393c9030b3b0b4b760991b608482015260a4016109cc565b6000806000612ad487896130cd565b925092509250612ae48782613965565b612aed57600080fd5b6009546014546001600160a01b03918216916323b872dd91339116612b128688615726565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015612b66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b8a9190615651565b612ba65760405162461bcd60e51b81526004016109cc9061566e565b612be93388600189898080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613a4792505050565b6000878152600c6020526040902060020154612c06906001615545565b6000888152600c602090815260408083206002810194909455848352600390930190522054612c36906001615545565b6000888152600c602090815260408083208584526003019091529020558115612e6a5760006040518060e001604052808a6001600160a01b03168152602001336001600160a01b031681526020018981526020016001815260200185815260200184815260200188888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525093909452505082516001600160a01b039081168252600e60209081526040808420600a8054825460018181018555938852858820015580549182018155909452855160079094027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8810180549585166001600160a01b0319968716178155838801517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a983018054919096169616959095179093558501517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2aa83015560608501517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ab83015560808501517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ac83015560a08501517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ad83015560c085015180519596508695939450612e65937fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ae90930192910190614768565b505050505b336001600160a01b03167fd7694fce96b32c7dc673e0ac2b5daa8ee3f8007f639f28deca345925a8008bec88600186868d8c8c604051612eb0979695949392919061573d565b60405180910390a25050505050505050565b612eca613283565b600c60209081527f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e88490557fd421a5181c571bba3f01190c922c3b2a896fc1d84e86c9f17ac10e67ebef8b5c83905560026000527f5d6016397a73f5e079297ac5a36fef17b4d9c3831618e63ab105738020ddd7208290556040805185815291820184905281018290527f3e6e85e51fee453631ed3a6b08d231a36ddf7b3e239f384bc4cb382d1e6893659060600160405180910390a1505050565b60408051600380825260808201909252606091816020015b612ff4604051806101400160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016060815260200160608152602001606081525090565b815260200190600190039081612f9e57905050905060005b6003811015610fbb57600080600061302484876130cd565b92509250925060008060008060008061303c8a61206e565b95509550955095509550955060006040518061014001604052808c81526020018b81526020018a8152602001898152602001888152602001878152602001868152602001858152602001848152602001838152509050808c8c815181106130a5576130a56152cf565b60200260200101819052505050505050505050505080806130c5906152e5565b91505061300c565b60008060006130db85613b3b565b6000868152600c6020526040902060050180549192509082908110613102576131026152cf565b60009182526020909120015492506001600160a01b0384161580159061314457506000858152600c602052604090206004015461314190600190615726565b81145b15613156576131538484613c18565b91505b9250925092565b846001600160a01b03811633146131775761317733613583565b610e5b8686868686613d24565b61318c613283565b6001600160a01b0381166131f15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109cc565b6131fa816136d3565b50565b613205613283565b6131fa81613d69565b60006001600160e01b03198216636cdb3d1360e11b148061323f57506001600160e01b031982166303a24d0760e21b145b806109f857506301ffc9a760e01b6001600160e01b03198316146109f8565b60006001600160e01b0319821663152a902d60e11b14806109f857506109f88261320e565b6006546001600160a01b0361010090910416331461172a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109cc565b6127106001600160601b03821611156133515760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016109cc565b6001600160a01b0382166133a75760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016109cc565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b6001600160a01b0383163b6133f457505050565b82811561346257604051633e9f1edf60e11b81523060048201526001600160a01b038481166024830152821690637d3e3dbe906044015b600060405180830381600087803b15801561344557600080fd5b505af1158015613459573d6000803e3d6000fd5b505050506134ff565b6001600160a01b038316156134a55760405163a0af290360e01b81523060048201526001600160a01b03848116602483015282169063a0af29039060440161342b565b604051632210724360e11b81523060048201526001600160a01b03821690634420e48690602401600060405180830381600087803b1580156134e657600080fd5b505af11580156134fa573d6000803e3d6000fd5b505050505b60056040518060400160405280866001600160a01b0316815260200184613527576000613529565b855b6001600160a01b039081169091528254600180820185556000948552602094859020845160029093020180546001600160a01b03199081169385169390931781559390940151929093018054909316911617905550505050565b60065460ff166135905750565b6000805b600554811015613659576000600582815481106135b3576135b36152cf565b6000918252602090912060029091020154604051633185c44d60e21b81523060048201526001600160a01b0386811660248301529091169150819063c617113490604401602060405180830381865afa158015613614573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136389190615651565b925082156136465750613659565b5080613651816152e5565b915050613594565b508061368357604051633b79c77360e21b81526001600160a01b03831660048201526024016109cc565b5050565b6001600160a01b0385163314806136a357506136a385336108cb565b6136bf5760405162461bcd60e51b81526004016109cc90615777565b6136cc8585858585613f22565b5050505050565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008261373a85846140c4565b14949350505050565b600081156109f8576000838152600c6020526040812054613764578261376d565b61376d84613786565b905080831061377c578061377e565b825b949350505050565b6000818152600c6020526040812054158015906137d257506000828152600c6020526040902060028101546001909101546137c19190615545565b6000838152600c6020526040902054115b15613806576000828152600c6020526040902060028101546001820154915490916137fc91615726565b6109f89190615726565b919050565b6001600160a01b0384166138315760405162461bcd60e51b81526004016109cc906157c6565b81518351146138525760405162461bcd60e51b81526004016109cc90615807565b3361386281600087878787614109565b60005b84518110156138fd57838181518110613880576138806152cf565b602002602001015160008087848151811061389d5761389d6152cf565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546138e59190615545565b909155508190506138f5816152e5565b915050613865565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161394e92919061584f565b60405180910390a46136cc816000878787876141fd565b6000828152600c602052604081205415806139885750600061398684613786565b115b6139a45760405162461bcd60e51b81526004016109cc9061587d565b6000838152600c602052604090206004018054839081106139c7576139c76152cf565b906000526020600020015460001480613a2257506000838152600c602081815260408084208685526003810183529084205493879052919052600401805484908110613a1557613a156152cf565b9060005260206000200154115b613a3e5760405162461bcd60e51b81526004016109cc9061587d565b50600192915050565b6001600160a01b038416613a6d5760405162461bcd60e51b81526004016109cc906157c6565b336000613a7985614359565b90506000613a8685614359565b9050613a9783600089858589614109565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290613ac7908490615545565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613b27836000898989896143a4565b50505050505050565b61368333838361445f565b6000818152600c6020526040812060040154613b5990600190615726565b905060005b6000838152600c6020526040902060040154811015610fbb576000838152600c60205260409020600401805482908110613b9a57613b9a6152cf565b906000526020600020015460001480613bf957506000838152600c60205260409020600401805482908110613bd157613bd16152cf565b6000918252602080832090910154858352600c82526040808420858552600301909252912054105b15613c0657809150610fbb565b80613c10816152e5565b915050613b5e565b60006001600160a01b038316331415613c995760405162461bcd60e51b815260206004820152603c60248201527f596f752063616e6e6f7420726566657220796f757273656c662c20746865207460448201527f72616e73616374696f6e20686173206265656e2072656a65637465640000000060648201526084016109cc565b60105460009060ff1615613d085760035b8015613d02576000613cc1866103f8600185615726565b90508015613cef57600d6000613cd8600185615726565b815260200190815260200160002054925050613d02565b5080613cfa816158e7565b915050613caa565b50613d0d565b506013545b612710613d1a828561524a565b61377e9190615269565b6001600160a01b038516331480613d405750613d4085336108cb565b613d5c5760405162461bcd60e51b81526004016109cc90615777565b6136cc8585858585614540565b604051631761612360e11b81523060048201526001600160a01b03821690632ec2c24690602401600060405180830381600087803b158015613daa57600080fd5b505af1158015613dbe573d6000803e3d6000fd5b5050600554600092509050815b81811015613e3457836001600160a01b031660058281548110613df057613df06152cf565b60009182526020909120600290910201546001600160a01b03161415613e2257613e1b816001615545565b9250613e34565b80613e2c816152e5565b915050613dcb565b5081613e3f57505050565b80821015613ed8576005613e54600183615726565b81548110613e6457613e646152cf565b90600052602060002090600202016005600184613e819190615726565b81548110613e9157613e916152cf565b60009182526020909120825460029092020180546001600160a01b039283166001600160a01b03199182161782556001938401549390910180549390921692169190911790555b6005805480613ee957613ee96158fe565b60008281526020902060026000199092019182020180546001600160a01b03199081168255600191909101805490911690559055505050565b8151835114613f435760405162461bcd60e51b81526004016109cc90615807565b6001600160a01b038416613f695760405162461bcd60e51b81526004016109cc90615914565b33613f78818787878787614109565b60005b845181101561405e576000858281518110613f9857613f986152cf565b602002602001015190506000858381518110613fb657613fb66152cf565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156140065760405162461bcd60e51b81526004016109cc90615959565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290614043908490615545565b9250508190555050505080614057906152e5565b9050613f7b565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516140ae92919061584f565b60405180910390a4610e5b8187878787876141fd565b600081815b84518110156113f8576140f5828683815181106140e8576140e86152cf565b6020026020010151614678565b915080614101816152e5565b9150506140c9565b6001600160a01b03851615610e5b5760006012541161413a5760405162461bcd60e51b81526004016109cc906159a3565b426012541061415b5760405162461bcd60e51b81526004016109cc906159a3565b60005b8351811015613b2757600084828151811061417b5761417b6152cf565b602002602001015114156141eb5760405162461bcd60e51b815260206004820152603160248201527f4d616c6c436172643a207472616e73666572206e6f7420616c6c6f77656420666044820152706f722053494c564552207469636b65742160781b60648201526084016109cc565b806141f5816152e5565b91505061415e565b6001600160a01b0384163b15610e5b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061424190899089908890889088906004016159e6565b6020604051808303816000875af192505050801561427c575060408051601f3d908101601f1916820190925261427991810190615a44565b60015b61432957614288615a61565b806308c379a014156142c2575061429d615a7d565b806142a857506142c4565b8060405162461bcd60e51b81526004016109cc919061490e565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016109cc565b6001600160e01b0319811663bc197c8160e01b14613b275760405162461bcd60e51b81526004016109cc90615b06565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110614393576143936152cf565b602090810291909101015292915050565b6001600160a01b0384163b15610e5b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906143e89089908990889088908890600401615b4e565b6020604051808303816000875af1925050508015614423575060408051601f3d908101601f1916820190925261442091810190615a44565b60015b61442f57614288615a61565b6001600160e01b0319811663f23a6e6160e01b14613b275760405162461bcd60e51b81526004016109cc90615b06565b816001600160a01b0316836001600160a01b031614156144d35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016109cc565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166145665760405162461bcd60e51b81526004016109cc90615914565b33600061457285614359565b9050600061457f85614359565b905061458f838989858589614109565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156145d05760405162461bcd60e51b81526004016109cc90615959565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a1682528120805488929061460d908490615545565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461466d848a8a8a8a8a6143a4565b505050505050505050565b60008183106146945760008281526020849052604090206146a3565b60008381526020839052604090205b9392505050565b8280548282559060005260206000209081019282156146e5579160200282015b828111156146e55782358255916020019190600101906146ca565b506146f19291506147dc565b5090565b828054614701906151ff565b90600052602060002090601f01602090048101928261472357600085556146e5565b82601f1061473c5782800160ff198235161785556146e5565b828001600101855582156146e557918201828111156146e55782358255916020019190600101906146ca565b828054614774906151ff565b90600052602060002090601f01602090048101928261479657600085556146e5565b82601f106147af57805160ff19168380011785556146e5565b828001600101855582156146e5579182015b828111156146e55782518255916020019190600101906147c1565b5b808211156146f157600081556001016147dd565b60006020828403121561480357600080fd5b5035919050565b80356001600160a01b038116811461380657600080fd5b6000806040838503121561483457600080fd5b61483d8361480a565b946020939093013593505050565b6001600160e01b0319811681146131fa57600080fd5b60006020828403121561487357600080fd5b81356146a38161484b565b6000806040838503121561489157600080fd5b61489a8361480a565b915060208301356001600160601b03811681146148b657600080fd5b809150509250929050565b6000815180845260005b818110156148e7576020818501810151868301820152016148cb565b818111156148f9576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006146a360208301846148c1565b80151581146131fa57600080fd5b60008060006060848603121561494457600080fd5b61494d8461480a565b925061495b6020850161480a565b9150604084013561496b81614921565b809150509250925092565b600060018060a01b03808a1683528089166020840152508660408301528560608301528460808301528360a083015260e060c08301526149b960e08301846148c1565b9998505050505050505050565b600080604083850312156149d957600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b60c081018181106001600160401b0382111715614a1d57614a1d6149e8565b60405250565b601f8201601f191681016001600160401b0381118282101715614a4857614a486149e8565b6040525050565b60006001600160401b03821115614a6857614a686149e8565b5060051b60200190565b600082601f830112614a8357600080fd5b81356020614a9082614a4f565b604051614a9d8282614a23565b83815260059390931b8501820192828101915086841115614abd57600080fd5b8286015b84811015614ad85780358352918301918301614ac1565b509695505050505050565b600082601f830112614af457600080fd5b81356001600160401b03811115614b0d57614b0d6149e8565b604051614b24601f8301601f191660200182614a23565b818152846020838601011115614b3957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215614b6e57600080fd5b614b778661480a565b9450614b856020870161480a565b935060408601356001600160401b0380821115614ba157600080fd5b614bad89838a01614a72565b94506060880135915080821115614bc357600080fd5b614bcf89838a01614a72565b93506080880135915080821115614be557600080fd5b50614bf288828901614ae3565b9150509295509295909350565b60008083601f840112614c1157600080fd5b5081356001600160401b03811115614c2857600080fd5b6020830191508360208260051b8501011115610e2d57600080fd5b60008060208385031215614c5657600080fd5b82356001600160401b03811115614c6c57600080fd5b614c7885828601614bff565b90969095509350505050565b600060208284031215614c9657600080fd5b6146a38261480a565b602080825282518282018190526000919060409081850190868401855b82811015614ce157815180518552860151868501529284019290850190600101614cbc565b5091979650505050505050565b600080600060408486031215614d0357600080fd5b83356001600160401b03811115614d1957600080fd5b614d2586828701614bff565b909450925050602084013561496b81614921565b60008060008060408587031215614d4f57600080fd5b84356001600160401b0380821115614d6657600080fd5b614d7288838901614bff565b90965094506020870135915080821115614d8b57600080fd5b50614d9887828801614bff565b95989497509550505050565b60008060408385031215614db757600080fd5b82356001600160401b0380821115614dce57600080fd5b818501915085601f830112614de257600080fd5b81356020614def82614a4f565b604051614dfc8282614a23565b83815260059390931b8501820192828101915089841115614e1c57600080fd5b948201945b83861015614e4157614e328661480a565b82529482019490820190614e21565b96505086013592505080821115614e5757600080fd5b50614e6485828601614a72565b9150509250929050565b600081518084526020808501945080840160005b83811015614e9e57815187529582019590820190600101614e82565b509495945050505050565b6020815260006146a36020830184614e6e565b600080600060608486031215614ed157600080fd5b505081359360208301359350604090920135919050565b60008083601f840112614efa57600080fd5b5081356001600160401b03811115614f1157600080fd5b602083019150836020828501011115610e2d57600080fd5b600080600060408486031215614f3e57600080fd5b8335925060208401356001600160401b03811115614f5b57600080fd5b614f6786828701614ee8565b9497909650939450505050565b86815285602082015284604082015260c060608201526000614f9960c0830186614e6e565b8281036080840152614fab8186614e6e565b905082810360a08401526149b98185614e6e565b600060208284031215614fd157600080fd5b81356146a381614921565b60008060408385031215614fef57600080fd5b82359150614fff6020840161480a565b90509250929050565b6000806040838503121561501b57600080fd5b6150248361480a565b915060208301356148b681614921565b6000806000806060858703121561504a57600080fd5b6150538561480a565b93506020850135925060408501356001600160401b0381111561507557600080fd5b614d9887828801614ee8565b6000806040838503121561509457600080fd5b61509d8361480a565b9150614fff6020840161480a565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561518d57888303603f1901855281518051845287810151888501528681015187850152606080820151908501526080808201519085015260a0808201519085015260c0808201519085015260e080820151610140828701819052919061513e83880182614e6e565b92505050610100808301518683038288015261515a8382614e6e565b9250505061012080830151925085820381870152506151798183614e6e565b9689019694505050908601906001016150d2565b509098975050505050505050565b600080600080600060a086880312156151b357600080fd5b6151bc8661480a565b94506151ca6020870161480a565b9350604086013592506060860135915060808601356001600160401b038111156151f357600080fd5b614bf288828901614ae3565b600181811c9082168061521357607f821691505b60208210811415610fbb57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561526457615264615234565b500290565b60008261528657634e487b7160e01b600052601260045260246000fd5b500490565b60208082526024908201527f4d616c6c436172643a20636c61696d205f696473206c656e677468206d69736d6040820152630c2e8c6d60e31b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156152f9576152f9615234565b5060010190565b81835260006001600160fb1b0383111561531957600080fd5b8260051b8083602087013760009401602001938452509192915050565b60208152600061377e602083018486615300565b6000808335601e1984360301811261536157600080fd5b8301803591506001600160401b0382111561537b57600080fd5b6020019150600581901b3603821315610e2d57600080fd5b81835260006020808501808196506005915085821b81018560005b8881101561518d578383038a528135601e198936030181126153cf57600080fd5b880180356001600160401b038111156153e757600080fd5b80871b36038a13156153f857600080fd5b61540585828a8501615300565b9b88019b94505050908501906001016153ae565b60408152600061542d604083018688615393565b8281036020840152615440818587615393565b979650505050505050565b6000823560be1983360301811261546157600080fd5b9190910192915050565b600060c0823603121561547d57600080fd5b604051615489816149fe565b823581526020808401358183015260408401356040830152606084013560608301526080840135608083015260a08401356001600160401b038111156154ce57600080fd5b840136601f8201126154df57600080fd5b80356154ea81614a4f565b6040516154f78282614a23565b82815260059290921b830184019184810191503683111561551757600080fd5b928401925b828410156155355783358252928401929084019061551c565b60a0860152509295945050505050565b6000821982111561555857615558615234565b500190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60208152600061377e60208301848661555d565b60208082526030908201527f53616c652069732063757272656e746c7920636c6f7365642c20706c6561736560408201526f103a393c9030b3b0b4b7103630ba32b960811b606082015260800190565b60208082526041908201527f5075626c69632073616c65206e6f7420737461727465642c20706c656173652060408201527f74727920616761696e206f6e20746865207075626c69632073616c65206461746060820152606560f81b608082015260a00190565b60006020828403121561566357600080fd5b81516146a381614921565b6020808252604c908201527f536f7272792c20796f75722077616c6c657420646f6573206e6f74206861766560408201527f20656e6f7567682062616c616e636520746f20636f6d706c657465207468697360608201526b103a3930b739b0b1ba34b7b760a11b608082015260a00190565b6000808335601e198436030181126156f757600080fd5b8301803591506001600160401b0382111561571157600080fd5b602001915036819003821315610e2d57600080fd5b60008282101561573857615738615234565b500390565b87815286602082015285604082015284606082015260018060a01b038416608082015260c060a082015260006149b960c08301848661555d565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b6040815260006158626040830185614e6e565b82810360208401526158748185614e6e565b95945050505050565b60208082526044908201527f536f7272792c20696e73756666696369656e74204e465420737570706c792c2060408201527f796f7572207472616e73616374696f6e2063616e6e6f7420626520636f6d706c606082015263195d195960e21b608082015260a00190565b6000816158f6576158f6615234565b506000190190565b634e487b7160e01b600052603160045260246000fd5b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526023908201527f4d616c6c436172643a207469636b6574207472616e73666572206e6f74206f70604082015262656e2160e81b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090615a1290830186614e6e565b8281036060840152615a248186614e6e565b90508281036080840152615a3881856148c1565b98975050505050505050565b600060208284031215615a5657600080fd5b81516146a38161484b565b600060033d1115615a7a5760046000803e5060005160e01c5b90565b600060443d1015615a8b5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715615aba57505050505090565b8285019150815181811115615ad25750505050505090565b843d8701016020828501011115615aec5750505050505090565b615afb60208286010187614a23565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090615440908301846148c156fea264697066735822122003de614107f85875f61c03cbbadb8ab4f8fed2d695933bf48b7c53eced31744f64736f6c634300080c0033000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000072c397b4875f54ef12e9d9c589e14a327a3b3ec300000000000000000000000051377c0d2484d1106d1af0f30c8c97e0472f419c000000000000000000000000000000000000000000000000000000006458e44000000000000000000000000000000000000000000000000000000000000001c200000000000000000000000000000000000000000000000000000000000003e8

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103ad5760003560e01c80637ec29890116101f4578063c21d89dd1161011a578063e3e55f08116100ad578063efc9e4111161007c578063efc9e41114610919578063f242432a1461092c578063f2fde38b1461093f578063f63a85911461095257600080fd5b8063e3e55f08146108ac578063e6c0e6d5146108b4578063e985e9c5146108bd578063e9aab1f5146108f957600080fd5b8063d64af26e116100e9578063d64af26e1461083d578063d6d2f97614610850578063ddd672c514610870578063e1baf0901461089957600080fd5b8063c21d89dd146107d1578063c381a7ec146107e4578063cd2bb70d146107f7578063d288e6191461082a57600080fd5b806395d89b4111610192578063b2bb9c0d11610161578063b2bb9c0d1461079a578063b9b40c1a146107a3578063bb5ac76d146107b6578063bbcd5bbe146107be57600080fd5b806395d89b411461073e578063a0712d6814610746578063a0ec0e0814610759578063a22cb4651461078757600080fd5b80638c7a63ae116101ce5780638c7a63ae146106dd5780638da5cb5b146107025780638f5509b714610718578063932c75eb1461072b57600080fd5b80637ec29890146106a457806381cf55f3146106b7578063862440e2146106ca57600080fd5b80633360caa0116102d95780634f64b2be116102775780635af646fe116102465780635af646fe146106635780636c8b703f14610676578063715018a6146106895780637c69febd1461069157600080fd5b80634f64b2be146105c85780635011be471461061257806354f197491461062557806355a373d61461063857600080fd5b80633e4bee38116102b35780633e4bee381461057a578063470659491461058257806349754a83146105955780634e1273f4146105a857600080fd5b80633360caa01461053e578063348abd561461054757806339adac4d1461055a57600080fd5b80630ca282f711610351578063206545c211610320578063206545c2146104cb57806329d8ad95146104d35780632a55205a146104f95780632eb2c2d61461052b57600080fd5b80630ca282f7146104855780630e89341c146104985780631aa7b98f146104ab5780631d6cb257146104b857600080fd5b806302fa7c471161038d57806302fa7c471461041e57806303b684af1461043357806306fdde031461043b57806307f0c3a41461045057600080fd5b8062dde10e146103b2578062fdd58e146103ea57806301ffc9a71461040b575b600080fd5b6103d56103c03660046147f1565b600b6020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6103fd6103f8366004614821565b610965565b6040519081526020016103e1565b6103d5610419366004614861565b6109fe565b61043161042c36600461487e565b610a18565b005b6007546103fd565b610443610a79565b6040516103e1919061490e565b61046361045e3660046147f1565b610b07565b60408051948552602085019390935291830152151560608201526080016103e1565b6104316104933660046147f1565b610b44565b6104436104a63660046147f1565b610be3565b6010546103d59060ff1681565b6104316104c636600461492f565b610c85565b6103fd600281565b6104e66104e13660046147f1565b610c9d565b6040516103e19796959493929190614976565b61050c6105073660046149c6565b610d86565b604080516001600160a01b0390931683526020830191909152016103e1565b610431610539366004614b56565b610e34565b6103fd60115481565b610431610555366004614c43565b610e63565b61056d610568366004614c84565b610f20565b6040516103e19190614c9f565b6103fd600181565b610431610590366004614cee565b610fc1565b6104316105a3366004614d39565b611089565b6105bb6105b6366004614da4565b6112d7565b6040516103e19190614ea9565b6105f76105d63660046147f1565b600c6020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016103e1565b610431610620366004614ebc565b611400565b6105bb610633366004614c84565b6115fc565b60095461064b906001600160a01b031681565b6040516001600160a01b0390911681526020016103e1565b6104316106713660046147f1565b611667565b6104436106843660046147f1565b6116ff565b610431611718565b61043161069f3660046147f1565b61172c565b60145461064b906001600160a01b031681565b6104316106c5366004614c43565b611769565b6104316106d8366004614f29565b611f83565b6106f06106eb3660046147f1565b61206e565b6040516103e196959493929190614f74565b60065461010090046001600160a01b031661064b565b610431610726366004614c43565b61228c565b610431610739366004614fbf565b612349565b610443612364565b6104316107543660046147f1565b612371565b6103d5610767366004614fdc565b600860209081526000928352604080842090915290825290205460ff1681565b610431610795366004615008565b612570565b6103fd60125481565b6104316107b1366004614c84565b612584565b600a546103fd565b6104316107cc366004614c84565b612642565b6104316107df3660046147f1565b6126ee565b6104316107f2366004614c43565b6128a5565b61080a6108053660046147f1565b6128f2565b604080516001600160a01b039384168152929091166020830152016103e1565b6103fd610838366004614821565b61292b565b61043161084b366004615034565b61295c565b6103fd61085e3660046147f1565b600d6020526000908152604090205481565b6103fd61087e366004614c84565b6001600160a01b03166000908152600e602052604090205490565b6104316108a7366004614ebc565b612ec2565b6103fd600081565b6103fd60135481565b6103d56108cb366004615081565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61090c610907366004614c84565b612f86565b6040516103e191906150ab565b6105f7610927366004614fdc565b6130cd565b61043161093a36600461519b565b61315d565b61043161094d366004614c84565b613184565b610431610960366004614c84565b6131fd565b60006001600160a01b0383166109d55760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b6000610a098261320e565b806109f857506109f88261325e565b610a20613283565b610a2a82826132e3565b604080516001600160a01b03841681526001600160601b03831660208201527f5801f2a9b591fde7d8a18a9ffc038c9889cade809e5364c1ea036feeb001ccc791015b60405180910390a15050565b60158054610a86906151ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab2906151ff565b8015610aff5780601f10610ad457610100808354040283529160200191610aff565b820191906000526020600020905b815481529060010190602001808311610ae257829003601f168201915b505050505081565b60078181548110610b1757600080fd5b60009182526020909120600490910201805460018201546002830154600390930154919350919060ff1684565b610b4c613283565b42811015610ba75760405162461bcd60e51b815260206004820152602260248201527f4d616c6c436172643a20696e76616c6964205f7075626c696353616c655374616044820152611c9d60f21b60648201526084016109cc565b60118190556040518181527f25c89eb0b24ad51817695d1959485b64dff24d8baa95529f317e12e477ad6c9f906020015b60405180910390a150565b6000818152600f60205260409020805460609190610c00906151ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2c906151ff565b8015610c795780601f10610c4e57610100808354040283529160200191610c79565b820191906000526020600020905b815481529060010190602001808311610c5c57829003601f168201915b50505050509050919050565b610c8d613283565b610c988383836133e0565b505050565b600a8181548110610cad57600080fd5b600091825260209091206007909102018054600182015460028301546003840154600485015460058601546006870180546001600160a01b039788169950959096169693959294919390929091610d03906151ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2f906151ff565b8015610d7c5780601f10610d5157610100808354040283529160200191610d7c565b820191906000526020600020905b815481529060010190602001808311610d5f57829003601f168201915b5050505050905087565b60008281526004602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610dfb5750604080518082019091526003546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610e1a906001600160601b03168761524a565b610e249190615269565b91519350909150505b9250929050565b846001600160a01b0381163314610e4e57610e4e33613583565b610e5b8686868686613687565b505050505050565b610e6b613283565b6003811115610e8c5760405162461bcd60e51b81526004016109cc9061528b565b60005b81811015610eee576001600b6000858585818110610eaf57610eaf6152cf565b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610ee6906152e5565b915050610e8f565b507f260bc671da8cfe8ee772f5b246f2661abdb74c7b598bf40a1537de668f03dfd48282604051610a6d929190615336565b60408051600380825260808201909252606091816020015b6040805180820190915260008082526020820152815260200190600190039081610f3857905050905060005b6003811015610fbb576040518060400160405280828152602001610f888584610965565b815250828281518110610f9d57610f9d6152cf565b60200260200101819052508080610fb3906152e5565b915050610f64565b50919050565b610fc9613283565b6003821461102a5760405162461bcd60e51b815260206004820152602860248201527f4d616c6c436172643a205f646973636f756e745261746573206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016109cc565b6010805460ff191682151517905560005b8281101561108357838382818110611055576110556152cf565b6000848152600d6020908152604090912091029290920135909155508061107b816152e5565b91505061103b565b50505050565b611091613283565b600383146110eb5760405162461bcd60e51b815260206004820152602160248201527f4d616c6c436172643a205f707269636573206c656e677468206d69736d6174636044820152600d60fb1b60648201526084016109cc565b600381146111455760405162461bcd60e51b815260206004820152602160248201527f4d616c6c436172643a205f6c696d697473206c656e677468206d69736d6174636044820152600d60fb1b60648201526084016109cc565b60005b8381101561129357848482818110611162576111626152cf565b9050602002810190611174919061534a565b9050838383818110611188576111886152cf565b905060200281019061119a919061534a565b9050146111fd5760405162461bcd60e51b815260206004820152602b60248201527f4d616c6c436172643a205f6c696d697420616e64205f7072696365206c656e6760448201526a0e8d040dad2e6dac2e8c6d60ab1b60648201526084016109cc565b84848281811061120f5761120f6152cf565b9050602002810190611221919061534a565b6000838152600c6020526040902061123e926005909101916146aa565b50828282818110611251576112516152cf565b9050602002810190611263919061534a565b6000838152600c60205260409020611280926004909101916146aa565b508061128b816152e5565b915050611148565b507f3bdfc6bec6408efcf58d7600faab8fb942107cfdcf6cc8f03cb3cef1ddfa1172848484846040516112c99493929190615419565b60405180910390a150505050565b6060815183511461133c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016109cc565b600083516001600160401b03811115611357576113576149e8565b604051908082528060200260200182016040528015611380578160200160208202803683370190505b50905060005b84518110156113f8576113cb8582815181106113a4576113a46152cf565b60200260200101518583815181106113be576113be6152cf565b6020026020010151610965565b8282815181106113dd576113dd6152cf565b60209081029190910101526113f1816152e5565b9050611386565b509392505050565b611408613283565b42821161146a5760405162461bcd60e51b815260206004820152602a60248201527f4d616c6c436172643a2073746172742074696d65206d75737420626520696e206044820152697468652066757475726560b01b60648201526084016109cc565b8181116114d25760405162461bcd60e51b815260206004820152603060248201527f4d616c6c436172643a20656e642074696d65206d757374206265206c6174657260448201526f207468656e2073746172742074696d6560801b60648201526084016109cc565b604080516080808201835285825260208083018681528385018681526000606080870182815260078054600181018255935287517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688600490940293840181905585517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68985015584517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a85015581517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68b909401805460ff19169415159490941790935588519283529351948201949094529051958101959095525115159084015290917f3cea2202adda0f407d67acf90a30a33880aefc956e042c3465de52255bf0490c91016112c9565b6001600160a01b0381166000908152600e6020908152604091829020805483518184028101840190945280845260609392830182828015610c7957602002820191906000526020600020905b8154815260200190600101908083116116485750505050509050919050565b61166f613283565b4281116116ca5760405162461bcd60e51b815260206004820152602360248201527f4d616c6c436172643a20696e76616c6964205f7472616e736665724f70656e4460448201526261746560e81b60648201526084016109cc565b60128190556040518181527f0a589af9357a7d6dcd1ea004b9fc70f883cead09b966afc1add0aa8ffb93848490602001610bd8565b600f6020526000908152604090208054610a86906151ff565b611720613283565b61172a60006136d3565b565b611734613283565b60138190556040518181527f21a8eefc17e9c864964b5a4c0769d87f39cc0a7576773159e12358bc0095ffc590602001610bd8565b806117c25760405162461bcd60e51b8152602060048201526024808201527f4d616c6c436172643a20656d70747920636c61696d20706172616d65746572206044820152636461746160e01b60648201526084016109cc565b6000806000805b84811015611bae5760008686838181106117e5576117e56152cf565b90506020028101906117f7919061544b565b6118009061546b565b805160008181526008602090815260408083203384529091529020549192509060ff16156118705760405162461bcd60e51b815260206004820152601960248201527f4d616c6c436172643a20616c726561647920636c61696d65640000000000000060448201526064016109cc565b60008181526008602090815260408083203384529091529020805460ff1916600117905560078054429190839081106118ab576118ab6152cf565b9060005260206000209060040201600101541061190a5760405162461bcd60e51b815260206004820152601b60248201527f4d616c6c436172643a20636c61696d206e6f742073746172746564000000000060448201526064016109cc565b426007828154811061191e5761191e6152cf565b9060005260206000209060040201600201541161197d5760405162461bcd60e51b815260206004820152601760248201527f4d616c6c436172643a20636c61696d206578706972656400000000000000000060448201526064016109cc565b60078181548110611990576119906152cf565b600091825260209091206003600490920201015460ff16156119ff5760405162461bcd60e51b815260206004820152602260248201527f4d616c6c436172643a20636c61696d20646566696e6974696f6e207265766f6b604482015261195960f21b60648201526084016109cc565b6080820151428111611a635760405162461bcd60e51b815260206004820152602760248201527f4d616c6c436172643a207573657220636c61696d20646566696e6974696f6e20604482015266195e1c1a5c995960ca1b60648201526084016109cc565b60208381015160408086015160608088015160a089015193513390921b6bffffffffffffffffffffffff1916958201959095526034810187905260548101849052607481018290526094810185905260b481018690529293909290919060009060d401604051602081830303815290604052805190602001209050611b0d8260078981548110611af557611af56152cf565b9060005260206000209060040201600001548361372d565b611b6f5760405162461bcd60e51b815260206004820152602d60248201527f4d616c6c436172643a20696e76616c696420636c61696d2064617461206f722060448201526c37379030b63637b1b0ba34b7b760991b60648201526084016109cc565b611b79858d615545565b9b50611b85848c615545565b9a50611b91838b615545565b995050505050505050508080611ba6906152e5565b9150506117c9565b50611bba600084613743565b9250611bc7600183613743565b9150611bd4600282613743565b9050600081611be38486615545565b611bed9190615545565b905060008111611cd75760405162461bcd60e51b815260206004820152609860248201527f536f7272792c206e6f2076616c696420636c61696d20616c6c6f636174696f6e60448201527f2077617320666f756e6420666f7220796f75722077616c6c657420616464726560648201527f73732e205468652065787069726174696f6e2064617465206d6179206861766560848201527f20706173736564206f7220796f75206d6179206861766520616c72656164792060a48201527f636c61696d656420616c6c20796f757220746f6b656e732e000000000000000060c482015260e4016109cc565b60408051600380825260808201909252600091602082016060803683375050604080516003808252608082019092529293506000929150602082016060803683370190505090508582600081518110611d3257611d326152cf565b6020026020010181815250508482600181518110611d5257611d526152cf565b6020026020010181815250508382600281518110611d7257611d726152cf565b602090810291909101015260408051600380825260808201909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081611d9557905050905060005b6003811015611f1b576000818152600c60205260409020541580611e065750611de981613786565b848281518110611dfb57611dfb6152cf565b602002602001015111155b611e525760405162461bcd60e51b815260206004820152601c60248201527f4d616c6c436172643a2065786365656473206d617820737570706c790000000060448201526064016109cc565b80838281518110611e6557611e656152cf565b6020026020010181815250506040518060400160405280828152602001858381518110611e9457611e946152cf565b6020026020010151815250828281518110611eb157611eb16152cf565b6020026020010181905250838181518110611ece57611ece6152cf565b6020026020010151600c600083815260200190815260200160002060010154611ef79190615545565b6000828152600c602052604090206001015580611f13816152e5565b915050611dc1565b50611f373383856040518060200160405280600081525061380b565b336001600160a01b03167f6530f00c5faf3984252b7db5d1990f5a5d0d8489d974403ded32ded468a5cbe882604051611f709190614c9f565b60405180910390a2505050505050505050565b611f8b613283565b80611fce5760405162461bcd60e51b81526020600482015260136024820152724d616c6c436172643a2075726920656d70747960681b60448201526064016109cc565b600383106120155760405162461bcd60e51b815260206004820152601460248201527313585b1b10d85c990e881a5b9d985b1a59081a5960621b60448201526064016109cc565b6000838152600f6020526040902061202e9083836146f5565b50827fee1bb82f380189104b74a7647d26f2f35679780e816626ffcaec7cafb7288e468383604051612061929190615586565b60405180910390a2505050565b6000818152600c6020526040902080546001820154600283015460049093015491929091606090819081906001600160401b038111156120b0576120b06149e8565b6040519080825280602002602001820160405280156120d9578160200160208202803683370190505b506000888152600c60205260409020600401549093506001600160401b03811115612106576121066149e8565b60405190808252806020026020018201604052801561212f578160200160208202803683370190505b506000888152600c60205260409020600401549092506001600160401b0381111561215c5761215c6149e8565b604051908082528060200260200182016040528015612185578160200160208202803683370190505b50905060005b8251811015612282576000888152600c6020908152604080832084845260030190915290205484518590839081106121c5576121c56152cf565b602002602001018181525050600c600089815260200190815260200160002060040181815481106121f8576121f86152cf565b9060005260206000200154838281518110612215576122156152cf565b602002602001018181525050600c60008981526020019081526020016000206005018181548110612248576122486152cf565b9060005260206000200154828281518110612265576122656152cf565b60209081029190910101528061227a816152e5565b91505061218b565b5091939550919395565b612294613283565b60038111156122b55760405162461bcd60e51b81526004016109cc9061528b565b60005b81811015612317576000600b60008585858181106122d8576122d86152cf565b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550808061230f906152e5565b9150506122b8565b507fafd72e0c018e0e910242560c3aee98538b9d64f6a5178d17cd4099135167ed2d8282604051610a6d929190615336565b612351613283565b6006805460ff1916911515919091179055565b60168054610a86906151ff565b6000818152600b6020526040902054819060ff16156123a25760405162461bcd60e51b81526004016109cc9061559a565b60115442116123c35760405162461bcd60e51b81526004016109cc906155ea565b6000806123d18460006130cd565b92505091506123e08482613965565b6123e957600080fd5b6009546014546040516323b872dd60e01b81523360048201526001600160a01b039182166024820152604481018590529116906323b872dd906064016020604051808303816000875af1158015612444573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124689190615651565b6124845760405162461bcd60e51b81526004016109cc9061566e565b6124a03385600160405180602001604052806000815250613a47565b6000848152600c60205260409020600201546124bd906001615545565b6000858152600c6020908152604080832060028101949094558483526003909301905220546124ed906001615545565b6000858152600c602090815260408083208584526003018252808320939093558251878152600191810191909152918201849052606082018190526080820181905260c060a0830181905282015233907fd7694fce96b32c7dc673e0ac2b5daa8ee3f8007f639f28deca345925a8008bec9060e00160405180910390a250505050565b8161257a81613583565b610c988383613b30565b61258c613283565b6001600160a01b0381166125f45760405162461bcd60e51b815260206004820152602960248201527f4d616c6c436172643a20746f207a65726f206d696e74496e636f6d6557616c656044820152681d10dbdb9d1c9858dd60ba1b60648201526084016109cc565b601480546001600160a01b0319166001600160a01b0383169081179091556040519081527f443cd708277299d932168df4b7c607ff06302029c5d98a204b664aeabc16414a90602001610bd8565b61264a613283565b6001600160a01b0381166126a05760405162461bcd60e51b815260206004820152601d60248201527f4d616c6c436172643a207a65726f205f746f6b656e436f6e747261637400000060448201526064016109cc565b600980546001600160a01b0319166001600160a01b0383169081179091556040519081527f3ecd68bacec5b275ee87ff92c4d603e9aecf0071defa83b4cbd6d0468807edf490602001610bd8565b6126f6613283565b60075481106127585760405162461bcd60e51b815260206004820152602860248201527f4d616c6c436172643a20696e76616c696420636c61696d20646566696e6974696044820152670dedc40d2dcc8caf60c31b60648201526084016109cc565b6007818154811061276b5761276b6152cf565b600091825260209091206003600490920201015460ff16156127cf5760405162461bcd60e51b815260206004820152601960248201527f4d616c6c436172643a20616c7265616479207265766f6b65640000000000000060448201526064016109cc565b42600782815481106127e3576127e36152cf565b906000526020600020906004020160020154116128425760405162461bcd60e51b815260206004820152601960248201527f4d616c6c436172643a20616c726561647920657870697265640000000000000060448201526064016109cc565b600160078281548110612857576128576152cf565b60009182526020822060049190910201600301805460ff19169215159290921790915560405182917f27a835be41b6aaa43b036cf6bbb17b3e89c97c8aa4ac3e55426bca77164be89a91a250565b6128ad613283565b60005b81811015610c98576128e0818484848181106128ce576128ce6152cf565b90506020028101906106d891906156e0565b806128ea816152e5565b9150506128b0565b6005818154811061290257600080fd5b6000918252602090912060029091020180546001909101546001600160a01b0391821692501682565b600e602052816000526040600020818154811061294757600080fd5b90600052602060002001600091509150505481565b6000838152600b6020526040902054839060ff161561298d5760405162461bcd60e51b81526004016109cc9061559a565b60115442116129ae5760405162461bcd60e51b81526004016109cc906155ea565b6001600160a01b038516612a3c5760405162461bcd60e51b815260206004820152604960248201527f496e76616c696420726566657272616c20636f64652c20796f7572207472616e60448201527f73616374696f6e20636f756c64206e6f7420626520636f6d706c657465642e206064820152682a393c9030b3b0b4b760b91b608482015260a4016109cc565b81612ac55760405162461bcd60e51b815260206004820152604d60248201527f526566657272616c20636f64652069732072657175697265642c20796f75722060448201527f7472616e73616374696f6e20636f756c64206e6f742062652070726f6365737360648201526c32b217102a393c9030b3b0b4b760991b608482015260a4016109cc565b6000806000612ad487896130cd565b925092509250612ae48782613965565b612aed57600080fd5b6009546014546001600160a01b03918216916323b872dd91339116612b128688615726565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015612b66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b8a9190615651565b612ba65760405162461bcd60e51b81526004016109cc9061566e565b612be93388600189898080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613a4792505050565b6000878152600c6020526040902060020154612c06906001615545565b6000888152600c602090815260408083206002810194909455848352600390930190522054612c36906001615545565b6000888152600c602090815260408083208584526003019091529020558115612e6a5760006040518060e001604052808a6001600160a01b03168152602001336001600160a01b031681526020018981526020016001815260200185815260200184815260200188888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525093909452505082516001600160a01b039081168252600e60209081526040808420600a8054825460018181018555938852858820015580549182018155909452855160079094027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8810180549585166001600160a01b0319968716178155838801517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a983018054919096169616959095179093558501517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2aa83015560608501517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ab83015560808501517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ac83015560a08501517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ad83015560c085015180519596508695939450612e65937fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ae90930192910190614768565b505050505b336001600160a01b03167fd7694fce96b32c7dc673e0ac2b5daa8ee3f8007f639f28deca345925a8008bec88600186868d8c8c604051612eb0979695949392919061573d565b60405180910390a25050505050505050565b612eca613283565b600c60209081527f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e88490557fd421a5181c571bba3f01190c922c3b2a896fc1d84e86c9f17ac10e67ebef8b5c83905560026000527f5d6016397a73f5e079297ac5a36fef17b4d9c3831618e63ab105738020ddd7208290556040805185815291820184905281018290527f3e6e85e51fee453631ed3a6b08d231a36ddf7b3e239f384bc4cb382d1e6893659060600160405180910390a1505050565b60408051600380825260808201909252606091816020015b612ff4604051806101400160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016060815260200160608152602001606081525090565b815260200190600190039081612f9e57905050905060005b6003811015610fbb57600080600061302484876130cd565b92509250925060008060008060008061303c8a61206e565b95509550955095509550955060006040518061014001604052808c81526020018b81526020018a8152602001898152602001888152602001878152602001868152602001858152602001848152602001838152509050808c8c815181106130a5576130a56152cf565b60200260200101819052505050505050505050505080806130c5906152e5565b91505061300c565b60008060006130db85613b3b565b6000868152600c6020526040902060050180549192509082908110613102576131026152cf565b60009182526020909120015492506001600160a01b0384161580159061314457506000858152600c602052604090206004015461314190600190615726565b81145b15613156576131538484613c18565b91505b9250925092565b846001600160a01b03811633146131775761317733613583565b610e5b8686868686613d24565b61318c613283565b6001600160a01b0381166131f15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109cc565b6131fa816136d3565b50565b613205613283565b6131fa81613d69565b60006001600160e01b03198216636cdb3d1360e11b148061323f57506001600160e01b031982166303a24d0760e21b145b806109f857506301ffc9a760e01b6001600160e01b03198316146109f8565b60006001600160e01b0319821663152a902d60e11b14806109f857506109f88261320e565b6006546001600160a01b0361010090910416331461172a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109cc565b6127106001600160601b03821611156133515760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016109cc565b6001600160a01b0382166133a75760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016109cc565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b6001600160a01b0383163b6133f457505050565b82811561346257604051633e9f1edf60e11b81523060048201526001600160a01b038481166024830152821690637d3e3dbe906044015b600060405180830381600087803b15801561344557600080fd5b505af1158015613459573d6000803e3d6000fd5b505050506134ff565b6001600160a01b038316156134a55760405163a0af290360e01b81523060048201526001600160a01b03848116602483015282169063a0af29039060440161342b565b604051632210724360e11b81523060048201526001600160a01b03821690634420e48690602401600060405180830381600087803b1580156134e657600080fd5b505af11580156134fa573d6000803e3d6000fd5b505050505b60056040518060400160405280866001600160a01b0316815260200184613527576000613529565b855b6001600160a01b039081169091528254600180820185556000948552602094859020845160029093020180546001600160a01b03199081169385169390931781559390940151929093018054909316911617905550505050565b60065460ff166135905750565b6000805b600554811015613659576000600582815481106135b3576135b36152cf565b6000918252602090912060029091020154604051633185c44d60e21b81523060048201526001600160a01b0386811660248301529091169150819063c617113490604401602060405180830381865afa158015613614573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136389190615651565b925082156136465750613659565b5080613651816152e5565b915050613594565b508061368357604051633b79c77360e21b81526001600160a01b03831660048201526024016109cc565b5050565b6001600160a01b0385163314806136a357506136a385336108cb565b6136bf5760405162461bcd60e51b81526004016109cc90615777565b6136cc8585858585613f22565b5050505050565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008261373a85846140c4565b14949350505050565b600081156109f8576000838152600c6020526040812054613764578261376d565b61376d84613786565b905080831061377c578061377e565b825b949350505050565b6000818152600c6020526040812054158015906137d257506000828152600c6020526040902060028101546001909101546137c19190615545565b6000838152600c6020526040902054115b15613806576000828152600c6020526040902060028101546001820154915490916137fc91615726565b6109f89190615726565b919050565b6001600160a01b0384166138315760405162461bcd60e51b81526004016109cc906157c6565b81518351146138525760405162461bcd60e51b81526004016109cc90615807565b3361386281600087878787614109565b60005b84518110156138fd57838181518110613880576138806152cf565b602002602001015160008087848151811061389d5761389d6152cf565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546138e59190615545565b909155508190506138f5816152e5565b915050613865565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161394e92919061584f565b60405180910390a46136cc816000878787876141fd565b6000828152600c602052604081205415806139885750600061398684613786565b115b6139a45760405162461bcd60e51b81526004016109cc9061587d565b6000838152600c602052604090206004018054839081106139c7576139c76152cf565b906000526020600020015460001480613a2257506000838152600c602081815260408084208685526003810183529084205493879052919052600401805484908110613a1557613a156152cf565b9060005260206000200154115b613a3e5760405162461bcd60e51b81526004016109cc9061587d565b50600192915050565b6001600160a01b038416613a6d5760405162461bcd60e51b81526004016109cc906157c6565b336000613a7985614359565b90506000613a8685614359565b9050613a9783600089858589614109565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290613ac7908490615545565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613b27836000898989896143a4565b50505050505050565b61368333838361445f565b6000818152600c6020526040812060040154613b5990600190615726565b905060005b6000838152600c6020526040902060040154811015610fbb576000838152600c60205260409020600401805482908110613b9a57613b9a6152cf565b906000526020600020015460001480613bf957506000838152600c60205260409020600401805482908110613bd157613bd16152cf565b6000918252602080832090910154858352600c82526040808420858552600301909252912054105b15613c0657809150610fbb565b80613c10816152e5565b915050613b5e565b60006001600160a01b038316331415613c995760405162461bcd60e51b815260206004820152603c60248201527f596f752063616e6e6f7420726566657220796f757273656c662c20746865207460448201527f72616e73616374696f6e20686173206265656e2072656a65637465640000000060648201526084016109cc565b60105460009060ff1615613d085760035b8015613d02576000613cc1866103f8600185615726565b90508015613cef57600d6000613cd8600185615726565b815260200190815260200160002054925050613d02565b5080613cfa816158e7565b915050613caa565b50613d0d565b506013545b612710613d1a828561524a565b61377e9190615269565b6001600160a01b038516331480613d405750613d4085336108cb565b613d5c5760405162461bcd60e51b81526004016109cc90615777565b6136cc8585858585614540565b604051631761612360e11b81523060048201526001600160a01b03821690632ec2c24690602401600060405180830381600087803b158015613daa57600080fd5b505af1158015613dbe573d6000803e3d6000fd5b5050600554600092509050815b81811015613e3457836001600160a01b031660058281548110613df057613df06152cf565b60009182526020909120600290910201546001600160a01b03161415613e2257613e1b816001615545565b9250613e34565b80613e2c816152e5565b915050613dcb565b5081613e3f57505050565b80821015613ed8576005613e54600183615726565b81548110613e6457613e646152cf565b90600052602060002090600202016005600184613e819190615726565b81548110613e9157613e916152cf565b60009182526020909120825460029092020180546001600160a01b039283166001600160a01b03199182161782556001938401549390910180549390921692169190911790555b6005805480613ee957613ee96158fe565b60008281526020902060026000199092019182020180546001600160a01b03199081168255600191909101805490911690559055505050565b8151835114613f435760405162461bcd60e51b81526004016109cc90615807565b6001600160a01b038416613f695760405162461bcd60e51b81526004016109cc90615914565b33613f78818787878787614109565b60005b845181101561405e576000858281518110613f9857613f986152cf565b602002602001015190506000858381518110613fb657613fb66152cf565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156140065760405162461bcd60e51b81526004016109cc90615959565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290614043908490615545565b9250508190555050505080614057906152e5565b9050613f7b565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516140ae92919061584f565b60405180910390a4610e5b8187878787876141fd565b600081815b84518110156113f8576140f5828683815181106140e8576140e86152cf565b6020026020010151614678565b915080614101816152e5565b9150506140c9565b6001600160a01b03851615610e5b5760006012541161413a5760405162461bcd60e51b81526004016109cc906159a3565b426012541061415b5760405162461bcd60e51b81526004016109cc906159a3565b60005b8351811015613b2757600084828151811061417b5761417b6152cf565b602002602001015114156141eb5760405162461bcd60e51b815260206004820152603160248201527f4d616c6c436172643a207472616e73666572206e6f7420616c6c6f77656420666044820152706f722053494c564552207469636b65742160781b60648201526084016109cc565b806141f5816152e5565b91505061415e565b6001600160a01b0384163b15610e5b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061424190899089908890889088906004016159e6565b6020604051808303816000875af192505050801561427c575060408051601f3d908101601f1916820190925261427991810190615a44565b60015b61432957614288615a61565b806308c379a014156142c2575061429d615a7d565b806142a857506142c4565b8060405162461bcd60e51b81526004016109cc919061490e565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016109cc565b6001600160e01b0319811663bc197c8160e01b14613b275760405162461bcd60e51b81526004016109cc90615b06565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110614393576143936152cf565b602090810291909101015292915050565b6001600160a01b0384163b15610e5b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906143e89089908990889088908890600401615b4e565b6020604051808303816000875af1925050508015614423575060408051601f3d908101601f1916820190925261442091810190615a44565b60015b61442f57614288615a61565b6001600160e01b0319811663f23a6e6160e01b14613b275760405162461bcd60e51b81526004016109cc90615b06565b816001600160a01b0316836001600160a01b031614156144d35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016109cc565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166145665760405162461bcd60e51b81526004016109cc90615914565b33600061457285614359565b9050600061457f85614359565b905061458f838989858589614109565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156145d05760405162461bcd60e51b81526004016109cc90615959565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a1682528120805488929061460d908490615545565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461466d848a8a8a8a8a6143a4565b505050505050505050565b60008183106146945760008281526020849052604090206146a3565b60008381526020839052604090205b9392505050565b8280548282559060005260206000209081019282156146e5579160200282015b828111156146e55782358255916020019190600101906146ca565b506146f19291506147dc565b5090565b828054614701906151ff565b90600052602060002090601f01602090048101928261472357600085556146e5565b82601f1061473c5782800160ff198235161785556146e5565b828001600101855582156146e557918201828111156146e55782358255916020019190600101906146ca565b828054614774906151ff565b90600052602060002090601f01602090048101928261479657600085556146e5565b82601f106147af57805160ff19168380011785556146e5565b828001600101855582156146e5579182015b828111156146e55782518255916020019190600101906147c1565b5b808211156146f157600081556001016147dd565b60006020828403121561480357600080fd5b5035919050565b80356001600160a01b038116811461380657600080fd5b6000806040838503121561483457600080fd5b61483d8361480a565b946020939093013593505050565b6001600160e01b0319811681146131fa57600080fd5b60006020828403121561487357600080fd5b81356146a38161484b565b6000806040838503121561489157600080fd5b61489a8361480a565b915060208301356001600160601b03811681146148b657600080fd5b809150509250929050565b6000815180845260005b818110156148e7576020818501810151868301820152016148cb565b818111156148f9576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006146a360208301846148c1565b80151581146131fa57600080fd5b60008060006060848603121561494457600080fd5b61494d8461480a565b925061495b6020850161480a565b9150604084013561496b81614921565b809150509250925092565b600060018060a01b03808a1683528089166020840152508660408301528560608301528460808301528360a083015260e060c08301526149b960e08301846148c1565b9998505050505050505050565b600080604083850312156149d957600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b60c081018181106001600160401b0382111715614a1d57614a1d6149e8565b60405250565b601f8201601f191681016001600160401b0381118282101715614a4857614a486149e8565b6040525050565b60006001600160401b03821115614a6857614a686149e8565b5060051b60200190565b600082601f830112614a8357600080fd5b81356020614a9082614a4f565b604051614a9d8282614a23565b83815260059390931b8501820192828101915086841115614abd57600080fd5b8286015b84811015614ad85780358352918301918301614ac1565b509695505050505050565b600082601f830112614af457600080fd5b81356001600160401b03811115614b0d57614b0d6149e8565b604051614b24601f8301601f191660200182614a23565b818152846020838601011115614b3957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215614b6e57600080fd5b614b778661480a565b9450614b856020870161480a565b935060408601356001600160401b0380821115614ba157600080fd5b614bad89838a01614a72565b94506060880135915080821115614bc357600080fd5b614bcf89838a01614a72565b93506080880135915080821115614be557600080fd5b50614bf288828901614ae3565b9150509295509295909350565b60008083601f840112614c1157600080fd5b5081356001600160401b03811115614c2857600080fd5b6020830191508360208260051b8501011115610e2d57600080fd5b60008060208385031215614c5657600080fd5b82356001600160401b03811115614c6c57600080fd5b614c7885828601614bff565b90969095509350505050565b600060208284031215614c9657600080fd5b6146a38261480a565b602080825282518282018190526000919060409081850190868401855b82811015614ce157815180518552860151868501529284019290850190600101614cbc565b5091979650505050505050565b600080600060408486031215614d0357600080fd5b83356001600160401b03811115614d1957600080fd5b614d2586828701614bff565b909450925050602084013561496b81614921565b60008060008060408587031215614d4f57600080fd5b84356001600160401b0380821115614d6657600080fd5b614d7288838901614bff565b90965094506020870135915080821115614d8b57600080fd5b50614d9887828801614bff565b95989497509550505050565b60008060408385031215614db757600080fd5b82356001600160401b0380821115614dce57600080fd5b818501915085601f830112614de257600080fd5b81356020614def82614a4f565b604051614dfc8282614a23565b83815260059390931b8501820192828101915089841115614e1c57600080fd5b948201945b83861015614e4157614e328661480a565b82529482019490820190614e21565b96505086013592505080821115614e5757600080fd5b50614e6485828601614a72565b9150509250929050565b600081518084526020808501945080840160005b83811015614e9e57815187529582019590820190600101614e82565b509495945050505050565b6020815260006146a36020830184614e6e565b600080600060608486031215614ed157600080fd5b505081359360208301359350604090920135919050565b60008083601f840112614efa57600080fd5b5081356001600160401b03811115614f1157600080fd5b602083019150836020828501011115610e2d57600080fd5b600080600060408486031215614f3e57600080fd5b8335925060208401356001600160401b03811115614f5b57600080fd5b614f6786828701614ee8565b9497909650939450505050565b86815285602082015284604082015260c060608201526000614f9960c0830186614e6e565b8281036080840152614fab8186614e6e565b905082810360a08401526149b98185614e6e565b600060208284031215614fd157600080fd5b81356146a381614921565b60008060408385031215614fef57600080fd5b82359150614fff6020840161480a565b90509250929050565b6000806040838503121561501b57600080fd5b6150248361480a565b915060208301356148b681614921565b6000806000806060858703121561504a57600080fd5b6150538561480a565b93506020850135925060408501356001600160401b0381111561507557600080fd5b614d9887828801614ee8565b6000806040838503121561509457600080fd5b61509d8361480a565b9150614fff6020840161480a565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561518d57888303603f1901855281518051845287810151888501528681015187850152606080820151908501526080808201519085015260a0808201519085015260c0808201519085015260e080820151610140828701819052919061513e83880182614e6e565b92505050610100808301518683038288015261515a8382614e6e565b9250505061012080830151925085820381870152506151798183614e6e565b9689019694505050908601906001016150d2565b509098975050505050505050565b600080600080600060a086880312156151b357600080fd5b6151bc8661480a565b94506151ca6020870161480a565b9350604086013592506060860135915060808601356001600160401b038111156151f357600080fd5b614bf288828901614ae3565b600181811c9082168061521357607f821691505b60208210811415610fbb57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561526457615264615234565b500290565b60008261528657634e487b7160e01b600052601260045260246000fd5b500490565b60208082526024908201527f4d616c6c436172643a20636c61696d205f696473206c656e677468206d69736d6040820152630c2e8c6d60e31b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156152f9576152f9615234565b5060010190565b81835260006001600160fb1b0383111561531957600080fd5b8260051b8083602087013760009401602001938452509192915050565b60208152600061377e602083018486615300565b6000808335601e1984360301811261536157600080fd5b8301803591506001600160401b0382111561537b57600080fd5b6020019150600581901b3603821315610e2d57600080fd5b81835260006020808501808196506005915085821b81018560005b8881101561518d578383038a528135601e198936030181126153cf57600080fd5b880180356001600160401b038111156153e757600080fd5b80871b36038a13156153f857600080fd5b61540585828a8501615300565b9b88019b94505050908501906001016153ae565b60408152600061542d604083018688615393565b8281036020840152615440818587615393565b979650505050505050565b6000823560be1983360301811261546157600080fd5b9190910192915050565b600060c0823603121561547d57600080fd5b604051615489816149fe565b823581526020808401358183015260408401356040830152606084013560608301526080840135608083015260a08401356001600160401b038111156154ce57600080fd5b840136601f8201126154df57600080fd5b80356154ea81614a4f565b6040516154f78282614a23565b82815260059290921b830184019184810191503683111561551757600080fd5b928401925b828410156155355783358252928401929084019061551c565b60a0860152509295945050505050565b6000821982111561555857615558615234565b500190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60208152600061377e60208301848661555d565b60208082526030908201527f53616c652069732063757272656e746c7920636c6f7365642c20706c6561736560408201526f103a393c9030b3b0b4b7103630ba32b960811b606082015260800190565b60208082526041908201527f5075626c69632073616c65206e6f7420737461727465642c20706c656173652060408201527f74727920616761696e206f6e20746865207075626c69632073616c65206461746060820152606560f81b608082015260a00190565b60006020828403121561566357600080fd5b81516146a381614921565b6020808252604c908201527f536f7272792c20796f75722077616c6c657420646f6573206e6f74206861766560408201527f20656e6f7567682062616c616e636520746f20636f6d706c657465207468697360608201526b103a3930b739b0b1ba34b7b760a11b608082015260a00190565b6000808335601e198436030181126156f757600080fd5b8301803591506001600160401b0382111561571157600080fd5b602001915036819003821315610e2d57600080fd5b60008282101561573857615738615234565b500390565b87815286602082015285604082015284606082015260018060a01b038416608082015260c060a082015260006149b960c08301848661555d565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b6040815260006158626040830185614e6e565b82810360208401526158748185614e6e565b95945050505050565b60208082526044908201527f536f7272792c20696e73756666696369656e74204e465420737570706c792c2060408201527f796f7572207472616e73616374696f6e2063616e6e6f7420626520636f6d706c606082015263195d195960e21b608082015260a00190565b6000816158f6576158f6615234565b506000190190565b634e487b7160e01b600052603160045260246000fd5b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526023908201527f4d616c6c436172643a207469636b6574207472616e73666572206e6f74206f70604082015262656e2160e81b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090615a1290830186614e6e565b8281036060840152615a248186614e6e565b90508281036080840152615a3881856148c1565b98975050505050505050565b600060208284031215615a5657600080fd5b81516146a38161484b565b600060033d1115615a7a5760046000803e5060005160e01c5b90565b600060443d1015615a8b5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715615aba57505050505090565b8285019150815181811115615ad25750505050505090565b843d8701016020828501011115615aec5750505050505090565b615afb60208286010187614a23565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090615440908301846148c156fea264697066735822122003de614107f85875f61c03cbbadb8ab4f8fed2d695933bf48b7c53eced31744f64736f6c634300080c0033

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

000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000072c397b4875f54ef12e9d9c589e14a327a3b3ec300000000000000000000000051377c0d2484d1106d1af0f30c8c97e0472f419c000000000000000000000000000000000000000000000000000000006458e44000000000000000000000000000000000000000000000000000000000000001c200000000000000000000000000000000000000000000000000000000000003e8

-----Decoded View---------------
Arg [0] : _tokenContract (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [1] : _royaltyWaletContract (address): 0x72c397B4875F54eF12e9d9C589e14a327a3B3EC3
Arg [2] : _mintIncomeWalletContract (address): 0x51377C0D2484D1106d1af0f30c8c97e0472f419C
Arg [3] : _publicSaleStart (uint256): 1683547200
Arg [4] : _royalty (uint96): 450
Arg [5] : _discountRate (uint256): 1000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [1] : 00000000000000000000000072c397b4875f54ef12e9d9c589e14a327a3b3ec3
Arg [2] : 00000000000000000000000051377c0d2484d1106d1af0f30c8c97e0472f419c
Arg [3] : 000000000000000000000000000000000000000000000000000000006458e440
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001c2
Arg [5] : 00000000000000000000000000000000000000000000000000000000000003e8


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.