ETH Price: $3,409.91 (+1.76%)

Token

MetaCritters (MCS)
 

Overview

Max Total Supply

659 MCS

Holders

349

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x7728f3d2416dc0c6b363362301ada72e98ff1956
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MetaCritters

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 20 : MetaCritters.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "operator-filter-registry/src/RevokableOperatorFilterer.sol";

/**
 * @author Created with HeyMint Launchpad https://launchpad.heymint.xyz
 * @notice This contract handles minting MetaCritters tokens.
 */
contract MetaCritters is
    ERC1155Supply,
    Ownable,
    Pausable,
    ReentrancyGuard,
    ERC2981,
    RevokableOperatorFilterer
{
    using ECDSA for bytes32;

    // Default address to subscribe to for determining blocklisted exchanges
    address constant DEFAULT_SUBSCRIPTION =
        address(0x511af84166215d528ABf8bA6437ec4BEcF31934B);
    // Used to validate authorized presale mint addresses
    address private presaleSignerAddress =
        0x9b74c8F70DFbE7AB70D180B791ca0A93d4087c3C;
    // Address where HeyMint fees are sent
    address public heymintPayoutAddress =
        0xE1FaC470dE8dE91c66778eaa155C64c7ceEFc851;
    address public royaltyAddress = 0xbe11Dca87Fca3881943A8c0A64B0ea544583d62D;
    address[] public paperAddresses = [
        0xf3DB642663231887E2Ff3501da6E3247D8634A6D,
        0x5e01a33C75931aD0A91A12Ee016Be8D61b24ADEB,
        0x9E733848061e4966c4a920d5b99a123459670aEe,
        0x7754B94345BCE520f8dd4F6a5642567603e90E10
    ];
    address[] public payoutAddresses = [
        0xbe11Dca87Fca3881943A8c0A64B0ea544583d62D
    ];
    // Permanently freezes metadata for all tokens so they can never be changed
    bool public allMetadataFrozen = false;
    // If true, payout addresses and basis points are permanently frozen and can never be updated
    bool public payoutAddressesFrozen;
    // The amount of tokens minted by a given address for a given token id
    mapping(address => mapping(uint256 => uint256))
        public tokensMintedByAddress;
    // Permanently freezes metadata for a specific token id so it can never be changed
    mapping(uint256 => bool) public tokenMetadataFrozen;
    // If true, the given token id can never be minted again
    mapping(uint256 => bool) public tokenMintingPermanentlyDisabled;
    mapping(uint256 => bool) public tokenPresaleSaleActive;
    mapping(uint256 => bool) public tokenPublicSaleActive;
    // If true, sale start and end times for the presale will be enforced, else ignored
    mapping(uint256 => bool) public tokenUsePresaleTimes;
    // If true, sale start and end times for the public sale will be enforced, else ignored
    mapping(uint256 => bool) public tokenUsePublicSaleTimes;
    mapping(uint256 => string) public tokenURI;
    // Maximum supply of tokens that can be minted for each token id. If zero, this token is open edition and has no mint limit
    mapping(uint256 => uint256) public tokenMaxSupply;
    // If zero, this token is open edition and has no mint limit
    mapping(uint256 => uint256) public tokenPresaleMaxSupply;
    mapping(uint256 => uint256) public tokenPresaleMintsPerAddress;
    mapping(uint256 => uint256) public tokenPresalePrice;
    mapping(uint256 => uint256) public tokenPresaleSaleEndTime;
    mapping(uint256 => uint256) public tokenPresaleSaleStartTime;
    mapping(uint256 => uint256) public tokenPublicMintsPerAddress;
    mapping(uint256 => uint256) public tokenPublicPrice;
    mapping(uint256 => uint256) public tokenPublicSaleEndTime;
    mapping(uint256 => uint256) public tokenPublicSaleStartTime;
    string public name = "MetaCritters";
    string public symbol = "MCS";
    // Fee paid to HeyMint per NFT minted
    uint256 public heymintFeePerToken;
    // The respective share of funds to be sent to each address in payoutAddresses in basis points
    uint256[] public payoutBasisPoints = [10000];
    uint96 public royaltyFee = 0;

    constructor(
        uint256 _heymintFeePerToken
    )
        ERC1155(
            "ipfs://bafybeictovbkyjmphydnvlgg6tsbwerohwx6scts6fya5bavk57fukkrua/{id}"
        )
        RevokableOperatorFilterer(
            0x000000000000AAeB6D7670E522A718067333cd4E,
            DEFAULT_SUBSCRIPTION,
            true
        )
    {
        heymintFeePerToken = _heymintFeePerToken;
        _setDefaultRoyalty(royaltyAddress, royaltyFee);
        tokenMaxSupply[1] = 5000;
        tokenPresaleMaxSupply[1] = 5000;
        tokenPresalePrice[1] = 0 ether;
        tokenPresaleMintsPerAddress[1] = 0;
        tokenMaxSupply[2] = 1000;
        tokenPresaleMaxSupply[2] = 1000;
        tokenPresalePrice[2] = 0 ether;
        tokenPresaleMintsPerAddress[2] = 0;
        require(
            payoutAddresses.length == payoutBasisPoints.length,
            "PAYOUT_ARRAYS_NOT_SAME_LENGTH"
        );
        uint256 totalPayoutBasisPoints = 0;
        for (uint256 i = 0; i < payoutBasisPoints.length; i++) {
            totalPayoutBasisPoints += payoutBasisPoints[i];
        }
        require(
            totalPayoutBasisPoints == 10000,
            "TOTAL_BASIS_POINTS_MUST_BE_10000"
        );
    }

    modifier originalUser() {
        require(tx.origin == msg.sender, "CANNOT_CALL_FROM_CONTRACT");
        _;
    }

    /**
     * @notice Returns a custom URI for each token id if set
     */
    function uri(
        uint256 _tokenId
    ) public view override returns (string memory) {
        // If no URI exists for the specific id requested, fallback to the default ERC-1155 URI.
        if (bytes(tokenURI[_tokenId]).length == 0) {
            return super.uri(_tokenId);
        }
        return tokenURI[_tokenId];
    }

    /**
     * @notice Sets a URI for a specific token id.
     */
    function setURI(
        uint256 _tokenId,
        string calldata _newTokenURI
    ) external onlyOwner {
        require(
            !allMetadataFrozen && !tokenMetadataFrozen[_tokenId],
            "METADATA_HAS_BEEN_FROZEN"
        );
        tokenURI[_tokenId] = _newTokenURI;
    }

    /**
     * @notice Update the global default ERC-1155 base URI
     */
    function setGlobalURI(string calldata _newTokenURI) external onlyOwner {
        require(!allMetadataFrozen, "METADATA_HAS_BEEN_FROZEN");
        _setURI(_newTokenURI);
    }

    /**
     * @notice Freeze metadata for a specific token id so it can never be changed again
     */
    function freezeTokenMetadata(uint256 _tokenId) external onlyOwner {
        require(
            !tokenMetadataFrozen[_tokenId],
            "METADATA_HAS_ALREADY_BEEN_FROZEN"
        );
        tokenMetadataFrozen[_tokenId] = true;
    }

    /**
     * @notice Freeze all metadata so it can never be changed again
     */
    function freezeAllMetadata() external onlyOwner {
        require(!allMetadataFrozen, "METADATA_HAS_ALREADY_BEEN_FROZEN");
        allMetadataFrozen = true;
    }

    /**
     * @notice Reduce the max supply of tokens for a given token id
     * @param _newMaxSupply The new maximum supply of tokens available to mint
     * @param _tokenId The token id to reduce the max supply for
     */
    function reduceMaxSupply(
        uint256 _tokenId,
        uint256 _newMaxSupply
    ) external onlyOwner {
        require(
            tokenMaxSupply[_tokenId] == 0 ||
                _newMaxSupply < tokenMaxSupply[_tokenId],
            "NEW_MAX_SUPPLY_TOO_HIGH"
        );
        require(
            _newMaxSupply >= totalSupply(_tokenId),
            "SUPPLY_LOWER_THAN_MINTED_TOKENS"
        );
        tokenMaxSupply[_tokenId] = _newMaxSupply;
    }

    /**
     * @notice Lock a token id so that it can never be minted again
     */
    function permanentlyDisableTokenMinting(
        uint256 _tokenId
    ) external onlyOwner {
        tokenMintingPermanentlyDisabled[_tokenId] = true;
    }

    /**
     * @notice Change the royalty fee for the collection
     */
    function setRoyaltyFee(uint96 _feeNumerator) external onlyOwner {
        royaltyFee = _feeNumerator;
        _setDefaultRoyalty(royaltyAddress, royaltyFee);
    }

    /**
     * @notice Change the royalty address where royalty payouts are sent
     */
    function setRoyaltyAddress(address _royaltyAddress) external onlyOwner {
        royaltyAddress = _royaltyAddress;
        _setDefaultRoyalty(royaltyAddress, royaltyFee);
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function supportsInterface(
        bytes4 _interfaceId
    ) public view override(ERC1155, ERC2981) returns (bool) {
        return super.supportsInterface(_interfaceId);
    }

    /**
     * @notice Allow owner to send tokens without cost to multiple addresses
     */
    function giftTokens(
        uint256 _tokenId,
        address[] calldata _receivers,
        uint256[] calldata _mintNumber
    ) external onlyOwner {
        require(
            !tokenMintingPermanentlyDisabled[_tokenId],
            "MINTING_PERMANENTLY_DISABLED"
        );
        uint256 totalMint = 0;
        for (uint256 i = 0; i < _mintNumber.length; i++) {
            totalMint += _mintNumber[i];
        }
        // require either no tokenMaxSupply set or tokenMaxSupply not maxed out
        require(
            tokenMaxSupply[_tokenId] == 0 ||
                totalSupply(_tokenId) + totalMint <= tokenMaxSupply[_tokenId],
            "MINT_TOO_LARGE"
        );
        for (uint256 i = 0; i < _receivers.length; i++) {
            _mint(_receivers[i], _tokenId, _mintNumber[i], "");
        }
    }

    /**
     * @notice To be updated by contract owner to allow public sale minting for a given token
     */
    function setTokenPublicSaleState(
        uint256 _tokenId,
        bool _saleActiveState
    ) external onlyOwner {
        require(
            tokenPublicSaleActive[_tokenId] != _saleActiveState,
            "NEW_STATE_IDENTICAL_TO_OLD_STATE"
        );
        tokenPublicSaleActive[_tokenId] = _saleActiveState;
    }

    /**
     * @notice Update the public mint price for a given token
     */
    function setTokenPublicPrice(
        uint256 _tokenId,
        uint256 _publicPrice
    ) external onlyOwner {
        tokenPublicPrice[_tokenId] = _publicPrice;
    }

    /**
     * @notice Set the maximum public mints allowed per a given address for a given token
     */
    function setTokenPublicMintsAllowedPerAddress(
        uint256 _tokenId,
        uint256 _mintsAllowed
    ) external onlyOwner {
        tokenPublicMintsPerAddress[_tokenId] = _mintsAllowed;
    }

    /**
     * @notice Update the start time for public mint for a given token
     */
    function setTokenPublicSaleStartTime(
        uint256 _tokenId,
        uint256 _publicSaleStartTime
    ) external onlyOwner {
        require(_publicSaleStartTime > block.timestamp, "TIME_IN_PAST");
        tokenPublicSaleStartTime[_tokenId] = _publicSaleStartTime;
    }

    /**
     * @notice Update the end time for public mint for a given token
     */
    function setTokenPublicSaleEndTime(
        uint256 _tokenId,
        uint256 _publicSaleEndTime
    ) external onlyOwner {
        require(_publicSaleEndTime > block.timestamp, "TIME_IN_PAST");
        tokenPublicSaleEndTime[_tokenId] = _publicSaleEndTime;
    }

    /**
     * @notice Update whether or not to use the automatic public sale times for a given token
     */
    function setTokenUsePublicSaleTimes(
        uint256 _tokenId,
        bool _usePublicSaleTimes
    ) external onlyOwner {
        require(
            tokenUsePublicSaleTimes[_tokenId] != _usePublicSaleTimes,
            "NEW_STATE_IDENTICAL_TO_OLD_STATE"
        );
        tokenUsePublicSaleTimes[_tokenId] = _usePublicSaleTimes;
    }

    /**
     * @notice Returns if public sale times are active for a given token
     */
    function tokenPublicSaleTimeIsActive(
        uint256 _tokenId
    ) public view returns (bool) {
        if (tokenUsePublicSaleTimes[_tokenId] == false) {
            return true;
        }
        return
            block.timestamp >= tokenPublicSaleStartTime[_tokenId] &&
            block.timestamp <= tokenPublicSaleEndTime[_tokenId];
    }

    /**
     * @notice Allow for public minting of tokens for a given token
     */
    function mintToken(
        uint256 _tokenId,
        uint256 _numTokens
    ) external payable originalUser nonReentrant {
        require(tokenPublicSaleActive[_tokenId], "PUBLIC_SALE_IS_NOT_ACTIVE");
        require(
            tokenPublicSaleTimeIsActive(_tokenId),
            "PUBLIC_SALE_TIME_IS_NOT_ACTIVE"
        );
        require(
            tokenPublicMintsPerAddress[_tokenId] == 0 ||
                tokensMintedByAddress[msg.sender][_tokenId] + _numTokens <=
                tokenPublicMintsPerAddress[_tokenId],
            "MAX_MINTS_FOR_ADDRESS_EXCEEDED"
        );
        require(
            tokenMaxSupply[_tokenId] == 0 ||
                totalSupply(_tokenId) + _numTokens <= tokenMaxSupply[_tokenId],
            "MAX_SUPPLY_EXCEEDED"
        );
        uint256 heymintFee = _numTokens * heymintFeePerToken;
        require(
            msg.value == tokenPublicPrice[_tokenId] * _numTokens + heymintFee,
            "PAYMENT_INCORRECT"
        );
        require(
            !tokenMintingPermanentlyDisabled[_tokenId],
            "MINTING_PERMANENTLY_DISABLED"
        );

        (bool success, ) = heymintPayoutAddress.call{value: heymintFee}("");
        require(success, "Transfer failed.");
        tokensMintedByAddress[msg.sender][_tokenId] += _numTokens;
        _mint(msg.sender, _tokenId, _numTokens, "");

        if (
            tokenMaxSupply[_tokenId] != 0 &&
            totalSupply(_tokenId) >= tokenMaxSupply[_tokenId]
        ) {
            tokenPublicSaleActive[_tokenId] = false;
        }
    }

    /**
     * @notice Mint using a credit card
     */
    function creditCardMint(
        uint256 _tokenId,
        uint256 _numTokens,
        address _to
    ) external payable originalUser nonReentrant {
        bool authorized = false;
        for (uint256 i = 0; i < paperAddresses.length; i++) {
            if (msg.sender == paperAddresses[i]) {
                authorized = true;
                break;
            }
        }
        require(authorized, "NOT_AUTHORIZED_ADDRESS");

        require(tokenPublicSaleActive[_tokenId], "PUBLIC_SALE_IS_NOT_ACTIVE");
        require(
            tokenPublicSaleTimeIsActive(_tokenId),
            "PUBLIC_SALE_TIME_IS_NOT_ACTIVE"
        );
        require(
            tokenPublicMintsPerAddress[_tokenId] == 0 ||
                tokensMintedByAddress[_to][_tokenId] + _numTokens <=
                tokenPublicMintsPerAddress[_tokenId],
            "MAX_MINTS_FOR_ADDRESS_EXCEEDED"
        );
        require(
            tokenMaxSupply[_tokenId] == 0 ||
                totalSupply(_tokenId) + _numTokens <= tokenMaxSupply[_tokenId],
            "MAX_SUPPLY_EXCEEDED"
        );

        uint256 heymintFee = _numTokens * heymintFeePerToken;
        require(
            msg.value == tokenPublicPrice[_tokenId] * _numTokens + heymintFee,
            "PAYMENT_INCORRECT"
        );
        require(
            !tokenMintingPermanentlyDisabled[_tokenId],
            "MINTING_PERMANENTLY_DISABLED"
        );

        (bool success, ) = heymintPayoutAddress.call{value: heymintFee}("");
        require(success, "Transfer failed.");
        tokensMintedByAddress[_to][_tokenId] += _numTokens;
        _mint(_to, _tokenId, _numTokens, "");

        if (
            tokenMaxSupply[_tokenId] != 0 &&
            totalSupply(_tokenId) >= tokenMaxSupply[_tokenId]
        ) {
            tokenPublicSaleActive[_tokenId] = false;
        }
    }

    /**
     * @notice Set the signer address used to verify presale minting
     */
    function setPresaleSignerAddress(
        address _presaleSignerAddress
    ) external onlyOwner {
        require(_presaleSignerAddress != address(0));
        presaleSignerAddress = _presaleSignerAddress;
    }

    /**
     * @notice To be updated by contract owner to allow presale minting for a given token
     */
    function setTokenPresaleState(
        uint256 _tokenId,
        bool _saleActiveState
    ) external onlyOwner {
        require(
            tokenPresaleSaleActive[_tokenId] != _saleActiveState,
            "NEW_STATE_IDENTICAL_TO_OLD_STATE"
        );
        tokenPresaleSaleActive[_tokenId] = _saleActiveState;
    }

    /**
     * @notice Update the presale mint price for a given token
     */
    function setTokenPresalePrice(
        uint256 _tokenId,
        uint256 _presalePrice
    ) external onlyOwner {
        tokenPresalePrice[_tokenId] = _presalePrice;
    }

    /**
     * @notice Set the maximum presale mints allowed per a given address for a given token
     */
    function setTokenPresaleMintsAllowedPerAddress(
        uint256 _tokenId,
        uint256 _mintsAllowed
    ) external onlyOwner {
        tokenPresaleMintsPerAddress[_tokenId] = _mintsAllowed;
    }

    /**
     * @notice Reduce the presale max supply of tokens for a given token id
     * @param _newPresaleMaxSupply The new maximum supply of tokens available to mint
     * @param _tokenId The token id to reduce the max supply for
     */
    function reducePresaleMaxSupply(
        uint256 _tokenId,
        uint256 _newPresaleMaxSupply
    ) external onlyOwner {
        require(
            tokenPresaleMaxSupply[_tokenId] == 0 ||
                _newPresaleMaxSupply < tokenPresaleMaxSupply[_tokenId],
            "NEW_MAX_SUPPLY_TOO_HIGH"
        );
        tokenPresaleMaxSupply[_tokenId] = _newPresaleMaxSupply;
    }

    /**
     * @notice Update the start time for presale mint for a given token
     */
    function setTokenPresaleStartTime(
        uint256 _tokenId,
        uint256 _presaleStartTime
    ) external onlyOwner {
        require(_presaleStartTime > block.timestamp, "TIME_IN_PAST");
        tokenPresaleSaleStartTime[_tokenId] = _presaleStartTime;
    }

    /**
     * @notice Update the end time for presale mint for a given token
     */
    function setTokenPresaleEndTime(
        uint256 _tokenId,
        uint256 _presaleEndTime
    ) external onlyOwner {
        require(_presaleEndTime > block.timestamp, "TIME_IN_PAST");
        tokenPresaleSaleEndTime[_tokenId] = _presaleEndTime;
    }

    /**
     * @notice Update whether or not to use the automatic presale times for a given token
     */
    function setTokenUsePresaleTimes(
        uint256 _tokenId,
        bool _usePresaleTimes
    ) external onlyOwner {
        require(
            tokenUsePresaleTimes[_tokenId] != _usePresaleTimes,
            "NEW_STATE_IDENTICAL_TO_OLD_STATE"
        );
        tokenUsePresaleTimes[_tokenId] = _usePresaleTimes;
    }

    /**
     * @notice Returns if presale times are active for a given token
     */
    function tokenPresaleTimeIsActive(
        uint256 _tokenId
    ) public view returns (bool) {
        if (tokenUsePresaleTimes[_tokenId] == false) {
            return true;
        }
        return
            block.timestamp >= tokenPresaleSaleStartTime[_tokenId] &&
            block.timestamp <= tokenPresaleSaleEndTime[_tokenId];
    }

    /**
     * @notice Verify that a signed message is validly signed by the presaleSignerAddress
     */
    function verifySignerAddress(
        bytes32 _messageHash,
        bytes calldata _signature
    ) private view returns (bool) {
        return
            presaleSignerAddress ==
            _messageHash.toEthSignedMessageHash().recover(_signature);
    }

    /**
     * @notice Allow for allowlist minting of tokens
     */
    function presaleMint(
        bytes32 _messageHash,
        bytes calldata _signature,
        uint256 _tokenId,
        uint256 _numTokens,
        uint256 _maximumAllowedMints
    ) external payable originalUser nonReentrant {
        require(tokenPresaleSaleActive[_tokenId], "PRESALE_IS_NOT_ACTIVE");
        require(
            tokenPresaleTimeIsActive(_tokenId),
            "PRESALE_TIME_IS_NOT_ACTIVE"
        );
        require(
            !tokenMintingPermanentlyDisabled[_tokenId],
            "MINTING_PERMANENTLY_DISABLED"
        );
        require(
            tokenPresaleMintsPerAddress[_tokenId] == 0 ||
                tokensMintedByAddress[msg.sender][_tokenId] + _numTokens <=
                tokenPresaleMintsPerAddress[_tokenId],
            "MAX_MINTS_PER_ADDRESS_EXCEEDED"
        );
        require(
            _maximumAllowedMints == 0 ||
                tokensMintedByAddress[msg.sender][_tokenId] + _numTokens <=
                _maximumAllowedMints,
            "MAX_MINTS_EXCEEDED"
        );
        require(
            tokenPresaleMaxSupply[_tokenId] == 0 ||
                totalSupply(_tokenId) + _numTokens <=
                tokenPresaleMaxSupply[_tokenId],
            "MAX_SUPPLY_EXCEEDED"
        );
        uint256 heymintFee = _numTokens * heymintFeePerToken;
        require(
            msg.value == tokenPresalePrice[_tokenId] * _numTokens + heymintFee,
            "PAYMENT_INCORRECT"
        );
        require(
            keccak256(abi.encode(msg.sender, _maximumAllowedMints, _tokenId)) ==
                _messageHash,
            "MESSAGE_INVALID"
        );
        require(
            verifySignerAddress(_messageHash, _signature),
            "SIGNATURE_VALIDATION_FAILED"
        );

        (bool success, ) = heymintPayoutAddress.call{value: heymintFee}("");
        require(success, "Transfer failed.");
        tokensMintedByAddress[msg.sender][_tokenId] += _numTokens;
        _mint(msg.sender, _tokenId, _numTokens, "");

        if (
            tokenPresaleMaxSupply[_tokenId] != 0 &&
            totalSupply(_tokenId) >= tokenPresaleMaxSupply[_tokenId]
        ) {
            tokenPresaleSaleActive[_tokenId] = false;
        }
    }

    /**
     * @notice Freeze all payout addresses and percentages so they can never be changed again
     */
    function freezePayoutAddresses() external onlyOwner {
        require(!payoutAddressesFrozen, "PAYOUT_ADDRESSES_ALREADY_FROZEN");
        payoutAddressesFrozen = true;
    }

    /**
     * @notice Update payout addresses and basis points for each addresses' respective share of contract funds
     */
    function updatePayoutAddressesAndBasisPoints(
        address[] calldata _payoutAddresses,
        uint256[] calldata _payoutBasisPoints
    ) external onlyOwner {
        require(!payoutAddressesFrozen, "PAYOUT_ADDRESSES_FROZEN");
        require(
            _payoutAddresses.length == _payoutBasisPoints.length,
            "ARRAY_LENGTHS_MUST_MATCH"
        );
        uint256 totalBasisPoints = 0;
        for (uint i = 0; i < _payoutBasisPoints.length; i++) {
            totalBasisPoints += _payoutBasisPoints[i];
        }
        require(totalBasisPoints == 10000, "TOTAL_BASIS_POINTS_MUST_BE_10000");
        payoutAddresses = _payoutAddresses;
        payoutBasisPoints = _payoutBasisPoints;
    }

    /**
     * @notice Withdraws all funds held within contract
     */
    function withdraw() external onlyOwner nonReentrant {
        require(address(this).balance > 0, "CONTRACT_HAS_NO_BALANCE");
        require(payoutAddresses.length > 0, "NO_PAYOUT_ADDRESSES");
        uint256 balance = address(this).balance;
        for (uint i = 0; i < payoutAddresses.length; i++) {
            uint256 amount = (balance * payoutBasisPoints[i]) / 10000;
            (bool success, ) = payoutAddresses[i].call{value: amount}("");
            require(success, "Transfer failed.");
        }
    }

    /**
     * @notice Override default ERC-1155 setApprovalForAll to require that the operator is not from a blocklisted exchange
     * @param operator Address to add to the set of authorized operators
     * @param approved True if the operator is approved, false to revoke approval
     */
    function setApprovalForAll(
        address operator,
        bool approved
    ) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal override whenNotPaused {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }

    /**
     * @notice Override ERC1155 such that zero amount token transfers are disallowed.
     * This prevents arbitrary 'creation' of new tokens in the collection by anyone.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        uint256 amount,
        bytes memory data
    ) public override onlyAllowedOperator(from) {
        require(amount > 0, "AMOUNT_CANNOT_BE_ZERO");
        super.safeTransferFrom(from, to, tokenId, amount, data);
    }

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

    function owner()
        public
        view
        virtual
        override(Ownable, UpdatableOperatorFilterer)
        returns (address)
    {
        return Ownable.owner();
    }
}

File 2 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 3 of 20 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 5 of 20 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

import {UpdatableOperatorFilterer} from "./UpdatableOperatorFilterer.sol";
import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  RevokableOperatorFilterer
 * @notice This contract is meant to allow contracts to permanently skip OperatorFilterRegistry checks if desired. The
 *         Registry itself has an "unregister" function, but if the contract is ownable, the owner can re-register at
 *         any point. As implemented, this abstract contract allows the contract owner to permanently skip the
 *         OperatorFilterRegistry checks by calling revokeOperatorFilterRegistry. Once done, the registry
 *         address cannot be further updated.
 *         Note that OpenSea will still disable creator fee enforcement if filtered operators begin fulfilling orders
 *         on-chain, eg, if the registry is revoked or bypassed.
 */
abstract contract RevokableOperatorFilterer is UpdatableOperatorFilterer {
    error RegistryHasBeenRevoked();
    error InitialRegistryAddressCannotBeZeroAddress();

    bool public isOperatorFilterRegistryRevoked;

    constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe)
        UpdatableOperatorFilterer(_registry, subscriptionOrRegistrantToCopy, subscribe)
    {
        // don't allow creating a contract with a permanently revoked registry
        if (_registry == address(0)) {
            revert InitialRegistryAddressCannotBeZeroAddress();
        }
    }

    function _checkFilterOperator(address operator) internal view virtual override {
        if (address(operatorFilterRegistry) != address(0)) {
            super._checkFilterOperator(operator);
        }
    }

    /**
     * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero
     *         address, checks will be permanently bypassed, and the address cannot be updated again. OnlyOwner.
     */
    function updateOperatorFilterRegistryAddress(address newRegistry) public override {
        if (msg.sender != owner()) {
            revert OnlyOwner();
        }
        // if registry has been revoked, do not allow further updates
        if (isOperatorFilterRegistryRevoked) {
            revert RegistryHasBeenRevoked();
        }

        operatorFilterRegistry = IOperatorFilterRegistry(newRegistry);
    }

    /**
     * @notice Revoke the OperatorFilterRegistry address, permanently bypassing checks. OnlyOwner.
     */
    function revokeOperatorFilterRegistry() public {
        if (msg.sender != owner()) {
            revert OnlyOwner();
        }
        // if registry has been revoked, do not allow further updates
        if (isOperatorFilterRegistryRevoked) {
            revert RegistryHasBeenRevoked();
        }

        // set to zero address to bypass checks
        operatorFilterRegistry = IOperatorFilterRegistry(address(0));
        isOperatorFilterRegistryRevoked = true;
    }
}

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

pragma solidity ^0.8.0;

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

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

File 10 of 20 : 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 11 of 20 : 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 12 of 20 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

/**
 * @title  UpdatableOperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry. This contract allows the Owner to update the
 *         OperatorFilterRegistry address via updateOperatorFilterRegistryAddress, including to the zero address,
 *         which will bypass registry checks.
 *         Note that OpenSea will still disable creator fee enforcement if filtered operators begin fulfilling orders
 *         on-chain, eg, if the registry is revoked or bypassed.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract UpdatableOperatorFilterer {
    error OperatorNotAllowed(address operator);
    error OnlyOwner();

    IOperatorFilterRegistry public operatorFilterRegistry;

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

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

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero
     *         address, checks will be bypassed. OnlyOwner.
     */
    function updateOperatorFilterRegistryAddress(address newRegistry) public virtual {
        if (msg.sender != owner()) {
            revert OnlyOwner();
        }
        operatorFilterRegistry = IOperatorFilterRegistry(newRegistry);
    }

    /**
     * @dev assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract
     */
    function owner() public view virtual returns (address);

    function _checkFilterOperator(address operator) internal view virtual {
        IOperatorFilterRegistry registry = operatorFilterRegistry;
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(registry) != address(0) && address(registry).code.length > 0) {
            if (!registry.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

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

File 16 of 20 : 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 17 of 20 : 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 18 of 20 : 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 19 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_heymintFeePerToken","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InitialRegistryAddressCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"RegistryHasBeenRevoked","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"allMetadataFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_numTokens","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"creditCardMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeAllMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freezePayoutAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"freezeTokenMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address[]","name":"_receivers","type":"address[]"},{"internalType":"uint256[]","name":"_mintNumber","type":"uint256[]"}],"name":"giftTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"heymintFeePerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"heymintPayoutAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"isOperatorFilterRegistryRevoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_numTokens","type":"uint256"}],"name":"mintToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilterRegistry","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"paperAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"payoutAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payoutAddressesFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"payoutBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"permanentlyDisableTokenMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_messageHash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_numTokens","type":"uint256"},{"internalType":"uint256","name":"_maximumAllowedMints","type":"uint256"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_newMaxSupply","type":"uint256"}],"name":"reduceMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_newPresaleMaxSupply","type":"uint256"}],"name":"reducePresaleMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeOperatorFilterRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyFee","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","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":"tokenId","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":"string","name":"_newTokenURI","type":"string"}],"name":"setGlobalURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_presaleSignerAddress","type":"address"}],"name":"setPresaleSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyAddress","type":"address"}],"name":"setRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setRoyaltyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_presaleEndTime","type":"uint256"}],"name":"setTokenPresaleEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_mintsAllowed","type":"uint256"}],"name":"setTokenPresaleMintsAllowedPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_presalePrice","type":"uint256"}],"name":"setTokenPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_presaleStartTime","type":"uint256"}],"name":"setTokenPresaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_saleActiveState","type":"bool"}],"name":"setTokenPresaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_mintsAllowed","type":"uint256"}],"name":"setTokenPublicMintsAllowedPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_publicPrice","type":"uint256"}],"name":"setTokenPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_publicSaleEndTime","type":"uint256"}],"name":"setTokenPublicSaleEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_publicSaleStartTime","type":"uint256"}],"name":"setTokenPublicSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_saleActiveState","type":"bool"}],"name":"setTokenPublicSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_usePresaleTimes","type":"bool"}],"name":"setTokenUsePresaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_usePublicSaleTimes","type":"bool"}],"name":"setTokenUsePublicSaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_newTokenURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenMetadataFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenMintingPermanentlyDisabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenPresaleMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenPresaleMintsPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenPresalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenPresaleSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenPresaleSaleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenPresaleSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenPresaleTimeIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenPublicMintsPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenPublicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenPublicSaleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenPublicSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenPublicSaleTimeIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenUsePresaleTimes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenUsePublicSaleTimes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensMintedByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRegistry","type":"address"}],"name":"updateOperatorFilterRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_payoutAddresses","type":"address[]"},{"internalType":"uint256[]","name":"_payoutBasisPoints","type":"uint256[]"}],"name":"updatePayoutAddressesAndBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600980546001600160a01b0319908116739b74c8f70dfbe7ab70d180b791ca0a93d4087c3c17909155600a8054821673e1fac470de8de91c66778eaa155c64c7ceefc851179055600b805490911673be11dca87fca3881943a8c0a64b0ea544583d62d17905561010060405273f3db642663231887e2ff3501da6e3247d8634a6d6080908152735e01a33c75931ad0a91a12ee016be8d61b24adeb60a052739e733848061e4966c4a920d5b99a123459670aee60c052737754b94345bce520f8dd4f6a5642567603e90e1060e052620000dd90600c90600462000770565b50604080516020810190915273be11dca87fca3881943a8c0a64b0ea544583d62d81526200011090600d90600162000770565b50600e805460ff1916905560408051808201909152600c81526b4d657461437269747465727360a01b60208201526021906200014d9082620008da565b506040805180820190915260038152624d435360e81b6020820152602290620001779082620008da565b506040805160208101909152612710815262000198906024906001620007da565b50602580546001600160601b0319169055348015620001b657600080fd5b5060405162005be238038062005be2833981016040819052620001d991620009a6565b6daaeb6d7670e522a718067333cd4e73511af84166215d528abf8ba6437ec4becf31934b600182828260405180608001604052806047815260200162005b9b6047913962000227816200060b565b5062000233336200061d565b6004805460ff60a01b191690556001600555600880546001600160a01b0319166001600160a01b03851690811790915583903b156200037e578115620002dd57604051633e9f1edf60e11b81523060048201526001600160a01b038481166024830152821690637d3e3dbe906044015b600060405180830381600087803b158015620002be57600080fd5b505af1158015620002d3573d6000803e3d6000fd5b505050506200037e565b6001600160a01b03831615620003225760405163a0af290360e01b81523060048201526001600160a01b03848116602483015282169063a0af290390604401620002a3565b604051632210724360e11b81523060048201526001600160a01b03821690634420e48690602401600060405180830381600087803b1580156200036457600080fd5b505af115801562000379573d6000803e3d6000fd5b505050505b5050506001600160a01b0384169050620003ab5760405163c49d17ad60e01b815260040160405180910390fd5b5050506023819055600b54602554620003d7916001600160a01b0316906001600160601b03166200066f565b6113887ff36d6bc9642eb6fb6ee9998b09ce990566df752ab06e11f8de7ab633bbd57b8f8190557ff3794665d3af9b6fb6f858b70185898134f96768ef31c325d52e04f0ac195a4d5560007ff88cd8d612926ebb404e40725c01084b6e9b3ce0344cde068570342cbd448c618190557ffc941c3961fb6541da34150022cddf959da0fb2353866a6bfbd249c2da092914819055600281526103e87fc52df653038b2ad477d8d97f1ddd63cfd138847b628ad8a7b89c109c3f8782ca8190557f2bacf7cca723d030d12aee795132f2c5f2d14ad131f16f3f27eeba3e79d18b8c557f4c287b3e2c2cb129ae3ba596d613d760b15affdac7242e12903c37a886ea1c4f81905560196020527f6f678ad17c55bce407239525f4bf7f1fe99197d3eb69bfdd9a0db84a9a11b58155602454600d54146200055b5760405162461bcd60e51b815260206004820152601d60248201527f5041594f55545f4152524159535f4e4f545f53414d455f4c454e47544800000060448201526064015b60405180910390fd5b6000805b602454811015620005af5760248181548110620005805762000580620009c0565b906000526020600020015482620005989190620009ec565b915080620005a68162000a08565b9150506200055f565b508061271014620006035760405162461bcd60e51b815260206004820181905260248201527f544f54414c5f42415349535f504f494e54535f4d5553545f42455f3130303030604482015260640162000552565b505062000a24565b6002620006198282620008da565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620006df5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840162000552565b6001600160a01b038216620007375760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000552565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b828054828255906000526020600020908101928215620007c8579160200282015b82811115620007c857825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000791565b50620007d69291506200081e565b5090565b828054828255906000526020600020908101928215620007c8579160200282015b82811115620007c8578251829061ffff16905591602001919060010190620007fb565b5b80821115620007d657600081556001016200081f565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200086057607f821691505b6020821081036200088157634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620008d557600081815260208120601f850160051c81016020861015620008b05750805b601f850160051c820191505b81811015620008d157828155600101620008bc565b5050505b505050565b81516001600160401b03811115620008f657620008f662000835565b6200090e816200090784546200084b565b8462000887565b602080601f8311600181146200094657600084156200092d5750858301515b600019600386901b1c1916600185901b178555620008d1565b600085815260208120601f198616915b82811015620009775788860151825594840194600190910190840162000956565b5085821015620009965787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215620009b957600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111562000a025762000a02620009d6565b92915050565b60006001820162000a1d5762000a1d620009d6565b5060010190565b6151678062000a346000396000f3fe60806040526004361061047c5760003560e01c806376ca9c4c11610255578063b8d1e53211610144578063e5aa68a2116100c1578063f2fde38b11610085578063f2fde38b14610efb578063f47749fc14610f1b578063f487077414610f3b578063f5842f9514610f5b578063fc49e58f14610f87578063fe93926314610fb457600080fd5b8063e5aa68a214610e31578063e985e9c514610e51578063ecba222a14610e9a578063efd3af1a14610ebb578063f242432a14610edb57600080fd5b8063c872d0e811610108578063c872d0e814610d64578063c87b56dd14610d84578063d35cdb3a14610da4578063d569d80714610dd4578063d976637014610e0457600080fd5b8063b8d1e53214610cb8578063ba75298914610cd8578063bd85b03914610cf7578063bde5a9b414610d24578063c15d0e2114610d4457600080fd5b806394901dd4116101d2578063a78f075c11610196578063a78f075c14610c00578063ac80165814610c20578063ad2f852a14610c40578063b0ccc31e14610c60578063b8997a9714610c8057600080fd5b806394901dd414610b5b57806395d89b4114610b7b5780639d86a76614610b90578063a22cb46514610bb0578063a451aeb014610bd057600080fd5b80638834e93b116102195780638834e93b14610ac65780638a01860f14610ae65780638a78bdf614610b135780638b665b1114610b265780638da5cb5b14610b4657600080fd5b806376ca9c4c14610a24578063795a257514610a445780637c55351214610a645780638456cb5914610a91578063862440e214610aa657600080fd5b80633ccfd60b116103715780635ef9432a116102ee578063715018a6116102b2578063715018a61461097257806371f0d5ab1461098757806375007477146109a75780637521f3bc146109c7578063756f520d146109f757600080fd5b80635ef9432a146108d0578063629c51bc146108e5578063635c4ce7146108fa5780636703dad81461093257806368e8490b1461095257600080fd5b80634db16857116103355780634db16857146107fb5780634e1273f4146108285780634ed31491146108555780634f558e79146108825780635c975abb146108b157600080fd5b80633ccfd60b1461076b5780633e5c68ba146107805780633f4ba83a146107965780633fa71b3f146107ab578063493b4665146107db57600080fd5b806314d3fcf8116103ff57806329b6bfa5116103c357806329b6bfa51461069f5780632a55205a146106cc5780632c260ae51461070b5780632eb2c2d61461072b57806331faafb41461074b57600080fd5b806314d3fcf8146105e457806315ad371f1461061c5780631d723bf11461063c57806320cbf5f91461066c57806325153e131461067f57600080fd5b806306d254da1161044657806306d254da1461054257806306d4c8b41461056257806306fdde031461058257806307c981f2146105a45780630e89341c146105c457600080fd5b80624221f014610481578062fdd58e146104c157806301ffc9a7146104e157806304ff2d0714610511578063060b01e114610528575b600080fd5b34801561048d57600080fd5b506104ae61049c366004614242565b60176020526000908152604090205481565b6040519081526020015b60405180910390f35b3480156104cd57600080fd5b506104ae6104dc366004614277565b610fc7565b3480156104ed57600080fd5b506105016104fc3660046142b7565b611060565b60405190151581526020016104b8565b34801561051d57600080fd5b5061052661106b565b005b34801561053457600080fd5b50600e546105019060ff1681565b34801561054e57600080fd5b5061052661055d3660046142db565b6110dc565b34801561056e57600080fd5b5061052661057d3660046142f6565b61111b565b34801561058e57600080fd5b50610597611201565b6040516104b8919061435e565b3480156105b057600080fd5b506105266105bf36600461437f565b61128f565b3480156105d057600080fd5b506105976105df366004614242565b6112ed565b3480156105f057600080fd5b50600a54610604906001600160a01b031681565b6040516001600160a01b0390911681526020016104b8565b34801561062857600080fd5b5061052661063736600461437f565b6113ba565b34801561064857600080fd5b50610501610657366004614242565b60156020526000908152604090205460ff1681565b61052661067a3660046142f6565b611418565b34801561068b57600080fd5b5061052661069a366004614242565b6117a0565b3480156106ab57600080fd5b506104ae6106ba366004614242565b601f6020526000908152604090205481565b3480156106d857600080fd5b506106ec6106e73660046142f6565b6117c3565b604080516001600160a01b0390931683526020830191909152016104b8565b34801561071757600080fd5b50610501610726366004614242565b611871565b34801561073757600080fd5b506105266107463660046144f8565b6118c2565b34801561075757600080fd5b506105266107663660046145a1565b6118f1565b34801561077757600080fd5b50610526611934565b34801561078c57600080fd5b506104ae60235481565b3480156107a257600080fd5b50610526611aea565b3480156107b757600080fd5b506105016107c6366004614242565b60116020526000908152604090205460ff1681565b3480156107e757600080fd5b506105266107f63660046142f6565b611afc565b34801561080757600080fd5b506104ae610816366004614242565b601c6020526000908152604090205481565b34801561083457600080fd5b506108486108433660046145ca565b611b35565b6040516104b891906146cf565b34801561086157600080fd5b506104ae610870366004614242565b601a6020526000908152604090205481565b34801561088e57600080fd5b5061050161089d366004614242565b600090815260036020526040902054151590565b3480156108bd57600080fd5b50600454600160a01b900460ff16610501565b3480156108dc57600080fd5b50610526611c5e565b3480156108f157600080fd5b50610526611cda565b34801561090657600080fd5b506104ae610915366004614277565b600f60209081526000928352604080842090915290825290205481565b34801561093e57600080fd5b5061052661094d3660046142f6565b611d44565b34801561095e57600080fd5b5061052661096d3660046142f6565b611d7d565b34801561097e57600080fd5b50610526611db5565b34801561099357600080fd5b506105016109a2366004614242565b611dc7565b3480156109b357600080fd5b506105266109c2366004614726565b611e17565b3480156109d357600080fd5b506105016109e2366004614242565b60136020526000908152604090205460ff1681565b348015610a0357600080fd5b506104ae610a12366004614242565b60196020526000908152604090205481565b348015610a3057600080fd5b50610526610a3f3660046142f6565b611f8e565b348015610a5057600080fd5b50610526610a5f366004614242565b612016565b348015610a7057600080fd5b506104ae610a7f366004614242565b60186020526000908152604090205481565b348015610a9d57600080fd5b50610526612098565b348015610ab257600080fd5b50610526610ac13660046147e0565b6120a8565b348015610ad257600080fd5b506104ae610ae1366004614242565b612138565b348015610af257600080fd5b506104ae610b01366004614242565b601e6020526000908152604090205481565b610526610b2136600461482b565b612159565b348015610b3257600080fd5b50610526610b413660046142f6565b61261d565b348015610b5257600080fd5b50610604612656565b348015610b6757600080fd5b50610526610b763660046142f6565b61266f565b348015610b8757600080fd5b50610597612689565b348015610b9c57600080fd5b50610526610bab36600461437f565b612696565b348015610bbc57600080fd5b50610526610bcb366004614890565b6126f4565b348015610bdc57600080fd5b50610501610beb366004614242565b60126020526000908152604090205460ff1681565b348015610c0c57600080fd5b50610526610c1b36600461437f565b61270d565b348015610c2c57600080fd5b50610526610c3b3660046142f6565b61276b565b348015610c4c57600080fd5b50600b54610604906001600160a01b031681565b348015610c6c57600080fd5b50600854610604906001600160a01b031681565b348015610c8c57600080fd5b50602554610ca0906001600160601b031681565b6040516001600160601b0390911681526020016104b8565b348015610cc457600080fd5b50610526610cd33660046142db565b612785565b348015610ce457600080fd5b50600e5461050190610100900460ff1681565b348015610d0357600080fd5b506104ae610d12366004614242565b60009081526003602052604090205490565b348015610d3057600080fd5b50610604610d3f366004614242565b61280b565b348015610d5057600080fd5b50610526610d5f3660046148bc565b612835565b348015610d7057600080fd5b50610526610d7f3660046148fd565b6128ce565b348015610d9057600080fd5b50610597610d9f366004614242565b612a2c565b348015610db057600080fd5b50610501610dbf366004614242565b60146020526000908152604090205460ff1681565b348015610de057600080fd5b50610501610def366004614242565b60106020526000908152604090205460ff1681565b348015610e1057600080fd5b506104ae610e1f366004614242565b601b6020526000908152604090205481565b348015610e3d57600080fd5b50610526610e4c3660046142f6565b612a45565b348015610e5d57600080fd5b50610501610e6c366004614968565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610ea657600080fd5b5060085461050190600160a01b900460ff1681565b348015610ec757600080fd5b50610526610ed63660046142f6565b612a5f565b348015610ee757600080fd5b50610526610ef636600461499b565b612a79565b348015610f0757600080fd5b50610526610f163660046142db565b612ae8565b348015610f2757600080fd5b50610526610f363660046142db565b612b5e565b348015610f4757600080fd5b50610604610f56366004614242565b612b9b565b348015610f6757600080fd5b506104ae610f76366004614242565b602080526000908152604090205481565b348015610f9357600080fd5b506104ae610fa2366004614242565b601d6020526000908152604090205481565b610526610fc23660046149ff565b612bab565b60006001600160a01b0383166110375760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b600061105a82612fe5565b61107361300a565b600e54610100900460ff16156110cb5760405162461bcd60e51b815260206004820152601f60248201527f5041594f55545f4144445245535345535f414c52454144595f46524f5a454e00604482015260640161102e565b600e805461ff001916610100179055565b6110e461300a565b600b80546001600160a01b0319166001600160a01b03831690811790915560255461111891906001600160601b0316613069565b50565b61112361300a565b600082815260176020526040902054158061114b575060008281526017602052604090205481105b6111915760405162461bcd60e51b815260206004820152601760248201527609c8aaebe9a82b0bea6aaa0a098b2bea89e9ebe90928e9604b1b604482015260640161102e565b6000828152600360205260409020548110156111ef5760405162461bcd60e51b815260206004820152601f60248201527f535550504c595f4c4f5745525f5448414e5f4d494e5445445f544f4b454e5300604482015260640161102e565b60009182526017602052604090912055565b6021805461120e90614a34565b80601f016020809104026020016040519081016040528092919081815260200182805461123a90614a34565b80156112875780601f1061125c57610100808354040283529160200191611287565b820191906000526020600020905b81548152906001019060200180831161126a57829003601f168201915b505050505081565b61129761300a565b60008281526014602052604090205481151560ff9091161515036112cd5760405162461bcd60e51b815260040161102e90614a6e565b600091825260146020526040909120805460ff1916911515919091179055565b600081815260166020526040902080546060919061130a90614a34565b905060000361131c5761105a82613166565b6000828152601660205260409020805461133590614a34565b80601f016020809104026020016040519081016040528092919081815260200182805461136190614a34565b80156113ae5780601f10611383576101008083540402835291602001916113ae565b820191906000526020600020905b81548152906001019060200180831161139157829003601f168201915b50505050509050919050565b6113c261300a565b60008281526012602052604090205481151560ff9091161515036113f85760405162461bcd60e51b815260040161102e90614a6e565b600091825260126020526040909120805460ff1916911515919091179055565b3233146114375760405162461bcd60e51b815260040161102e90614aa3565b6002600554036114595760405162461bcd60e51b815260040161102e90614ada565b600260055560008281526013602052604090205460ff166114b85760405162461bcd60e51b81526020600482015260196024820152785055424c49435f53414c455f49535f4e4f545f41435449564560381b604482015260640161102e565b6114c182611dc7565b61150d5760405162461bcd60e51b815260206004820152601e60248201527f5055424c49435f53414c455f54494d455f49535f4e4f545f4143544956450000604482015260640161102e565b6000828152601d6020526040902054158061155757506000828152601d6020908152604080832054338452600f835281842086855290925290912054611554908390614b27565b11155b6115a35760405162461bcd60e51b815260206004820152601e60248201527f4d41585f4d494e54535f464f525f414444524553535f45584345454445440000604482015260640161102e565b60008281526017602052604090205415806115e257506000828152601760209081526040808320546003909252909120546115df908390614b27565b11155b6115fe5760405162461bcd60e51b815260040161102e90614b3a565b60006023548261160e9190614b67565b6000848152601e6020526040902054909150819061162d908490614b67565b6116379190614b27565b34146116555760405162461bcd60e51b815260040161102e90614b7e565b60008381526011602052604090205460ff16156116845760405162461bcd60e51b815260040161102e90614ba9565b600a546040516000916001600160a01b03169083908381818185875af1925050503d80600081146116d1576040519150601f19603f3d011682016040523d82523d6000602084013e6116d6565b606091505b50509050806116f75760405162461bcd60e51b815260040161102e90614be0565b336000908152600f6020908152604080832087845290915281208054859290611721908490614b27565b9250508190555061174333858560405180602001604052806000815250613175565b60008481526017602052604090205415801590611779575060008481526017602090815260408083205460039092529091205410155b15611795576000848152601360205260409020805460ff191690555b505060016005555050565b6117a861300a565b6000908152601160205260409020805460ff19166001179055565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916118385750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611857906001600160601b031687614b67565b6118619190614c0a565b91519350909150505b9250929050565b60008181526014602052604081205460ff161515810361189357506001919050565b6000828152601c6020526040902054421080159061105a5750506000908152601b602052604090205442111590565b846001600160a01b03811633146118dc576118dc3361328f565b6118e986868686866132a9565b505050505050565b6118f961300a565b602580546bffffffffffffffffffffffff19166001600160601b038316908117909155600b54611118916001600160a01b0390911690613069565b61193c61300a565b60026005540361195e5760405162461bcd60e51b815260040161102e90614ada565b6002600555476119b05760405162461bcd60e51b815260206004820152601760248201527f434f4e54524143545f4841535f4e4f5f42414c414e4345000000000000000000604482015260640161102e565b600d546119f55760405162461bcd60e51b81526020600482015260136024820152724e4f5f5041594f55545f41444452455353455360681b604482015260640161102e565b4760005b600d54811015611ae157600061271060248381548110611a1b57611a1b614c2c565b906000526020600020015484611a319190614b67565b611a3b9190614c0a565b90506000600d8381548110611a5257611a52614c2c565b60009182526020822001546040516001600160a01b039091169184919081818185875af1925050503d8060008114611aa6576040519150601f19603f3d011682016040523d82523d6000602084013e611aab565b606091505b5050905080611acc5760405162461bcd60e51b815260040161102e90614be0565b50508080611ad990614c42565b9150506119f9565b50506001600555565b611af261300a565b611afa6132f5565b565b611b0461300a565b428111611b235760405162461bcd60e51b815260040161102e90614c5b565b6000918252601c602052604090912055565b60608151835114611b9a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161102e565b600083516001600160401b03811115611bb557611bb56143af565b604051908082528060200260200182016040528015611bde578160200160208202803683370190505b50905060005b8451811015611c5657611c29858281518110611c0257611c02614c2c565b6020026020010151858381518110611c1c57611c1c614c2c565b6020026020010151610fc7565b828281518110611c3b57611c3b614c2c565b6020908102919091010152611c4f81614c42565b9050611be4565b509392505050565b611c66612656565b6001600160a01b0316336001600160a01b031614611c9757604051635fc483c560e01b815260040160405180910390fd5b600854600160a01b900460ff1615611cc257604051631551a48f60e11b815260040160405180910390fd5b600880546001600160a81b031916600160a01b179055565b611ce261300a565b600e5460ff1615611d355760405162461bcd60e51b815260206004820181905260248201527f4d455441444154415f4841535f414c52454144595f4245454e5f46524f5a454e604482015260640161102e565b600e805460ff19166001179055565b611d4c61300a565b428111611d6b5760405162461bcd60e51b815260040161102e90614c5b565b6000918252601b602052604090912055565b611d8561300a565b428111611da45760405162461bcd60e51b815260040161102e90614c5b565b600091825260208052604090912055565b611dbd61300a565b611afa600061334a565b60008181526015602052604081205460ff1615158103611de957506001919050565b6000828152602080526040902054421080159061105a5750506000908152601f602052604090205442111590565b611e1f61300a565b60008581526011602052604090205460ff1615611e4e5760405162461bcd60e51b815260040161102e90614ba9565b6000805b82811015611e9257838382818110611e6c57611e6c614c2c565b9050602002013582611e7e9190614b27565b915080611e8a81614c42565b915050611e52565b506000868152601760205260409020541580611ed25750600086815260176020908152604080832054600390925290912054611ecf908390614b27565b11155b611f0f5760405162461bcd60e51b815260206004820152600e60248201526d4d494e545f544f4f5f4c4152474560901b604482015260640161102e565b60005b84811015611f8557611f73868683818110611f2f57611f2f614c2c565b9050602002016020810190611f4491906142db565b88868685818110611f5757611f57614c2c565b9050602002013560405180602001604052806000815250613175565b80611f7d81614c42565b915050611f12565b50505050505050565b611f9661300a565b6000828152601860205260409020541580611fbe575060008281526018602052604090205481105b6120045760405162461bcd60e51b815260206004820152601760248201527609c8aaebe9a82b0bea6aaa0a098b2bea89e9ebe90928e9604b1b604482015260640161102e565b60009182526018602052604090912055565b61201e61300a565b60008181526010602052604090205460ff161561207d5760405162461bcd60e51b815260206004820181905260248201527f4d455441444154415f4841535f414c52454144595f4245454e5f46524f5a454e604482015260640161102e565b6000908152601060205260409020805460ff19166001179055565b6120a061300a565b611afa61339c565b6120b061300a565b600e5460ff161580156120d2575060008381526010602052604090205460ff16155b6121195760405162461bcd60e51b815260206004820152601860248201527726a2aa20a220aa20afa420a9afa122a2a72fa32927ad22a760411b604482015260640161102e565b6000838152601660205260409020612132828483614cc7565b50505050565b6024818154811061214857600080fd5b600091825260209091200154905081565b3233146121785760405162461bcd60e51b815260040161102e90614aa3565b60026005540361219a5760405162461bcd60e51b815260040161102e90614ada565b600260055560008381526012602052604090205460ff166121f55760405162461bcd60e51b815260206004820152601560248201527450524553414c455f49535f4e4f545f41435449564560581b604482015260640161102e565b6121fe83611871565b61224a5760405162461bcd60e51b815260206004820152601a60248201527f50524553414c455f54494d455f49535f4e4f545f414354495645000000000000604482015260640161102e565b60008381526011602052604090205460ff16156122795760405162461bcd60e51b815260040161102e90614ba9565b60008381526019602052604090205415806122c35750600083815260196020908152604080832054338452600f8352818420878552909252909120546122c0908490614b27565b11155b61230f5760405162461bcd60e51b815260206004820152601e60248201527f4d41585f4d494e54535f5045525f414444524553535f45584345454445440000604482015260640161102e565b8015806123425750336000908152600f60209081526040808320868452909152902054819061233f908490614b27565b11155b6123835760405162461bcd60e51b815260206004820152601260248201527113505617d352539514d7d15610d15151115160721b604482015260640161102e565b60008381526018602052604090205415806123c257506000838152601860209081526040808320546003909252909120546123bf908490614b27565b11155b6123de5760405162461bcd60e51b815260040161102e90614b3a565b6000602354836123ee9190614b67565b6000858152601a6020526040902054909150819061240d908590614b67565b6124179190614b27565b34146124355760405162461bcd60e51b815260040161102e90614b7e565b6040805133602082015290810183905260608101859052879060800160405160208183030381529060405280519060200120146124a65760405162461bcd60e51b815260206004820152600f60248201526e135154d4d051d157d2539590531251608a1b604482015260640161102e565b6124b18787876133df565b6124fd5760405162461bcd60e51b815260206004820152601b60248201527f5349474e41545552455f56414c49444154494f4e5f4641494c45440000000000604482015260640161102e565b600a546040516000916001600160a01b03169083908381818185875af1925050503d806000811461254a576040519150601f19603f3d011682016040523d82523d6000602084013e61254f565b606091505b50509050806125705760405162461bcd60e51b815260040161102e90614be0565b336000908152600f602090815260408083208884529091528120805486929061259a908490614b27565b925050819055506125bc33868660405180602001604052806000815250613175565b600085815260186020526040902054158015906125f2575060008581526018602090815260408083205460039092529091205410155b1561260e576000858152601260205260409020805460ff191690555b50506001600555505050505050565b61262561300a565b4281116126445760405162461bcd60e51b815260040161102e90614c5b565b6000918252601f602052604090912055565b600061266a6004546001600160a01b031690565b905090565b61267761300a565b6000918252601a602052604090912055565b6022805461120e90614a34565b61269e61300a565b60008281526013602052604090205481151560ff9091161515036126d45760405162461bcd60e51b815260040161102e90614a6e565b600091825260136020526040909120805460ff1916911515919091179055565b816126fe8161328f565b6127088383613445565b505050565b61271561300a565b60008281526015602052604090205481151560ff90911615150361274b5760405162461bcd60e51b815260040161102e90614a6e565b600091825260156020526040909120805460ff1916911515919091179055565b61277361300a565b60009182526019602052604090912055565b61278d612656565b6001600160a01b0316336001600160a01b0316146127be57604051635fc483c560e01b815260040160405180910390fd5b600854600160a01b900460ff16156127e957604051631551a48f60e11b815260040160405180910390fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600c818154811061281b57600080fd5b6000918252602090912001546001600160a01b0316905081565b61283d61300a565b600e5460ff161561288b5760405162461bcd60e51b815260206004820152601860248201527726a2aa20a220aa20afa420a9afa122a2a72fa32927ad22a760411b604482015260640161102e565b6128ca82828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061345092505050565b5050565b6128d661300a565b600e54610100900460ff161561292e5760405162461bcd60e51b815260206004820152601760248201527f5041594f55545f4144445245535345535f46524f5a454e000000000000000000604482015260640161102e565b82811461297d5760405162461bcd60e51b815260206004820152601860248201527f41525241595f4c454e475448535f4d5553545f4d415443480000000000000000604482015260640161102e565b6000805b828110156129c15783838281811061299b5761299b614c2c565b90506020020135826129ad9190614b27565b9150806129b981614c42565b915050612981565b508061271014612a135760405162461bcd60e51b815260206004820181905260248201527f544f54414c5f42415349535f504f494e54535f4d5553545f42455f3130303030604482015260640161102e565b612a1f600d868661418f565b506118e9602484846141f2565b6016602052600090815260409020805461120e90614a34565b612a4d61300a565b6000918252601d602052604090912055565b612a6761300a565b6000918252601e602052604090912055565b846001600160a01b0381163314612a9357612a933361328f565b60008311612adb5760405162461bcd60e51b8152602060048201526015602482015274414d4f554e545f43414e4e4f545f42455f5a45524f60581b604482015260640161102e565b6118e9868686868661345c565b612af061300a565b6001600160a01b038116612b555760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161102e565b6111188161334a565b612b6661300a565b6001600160a01b038116612b7957600080fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b600d818154811061281b57600080fd5b323314612bca5760405162461bcd60e51b815260040161102e90614aa3565b600260055403612bec5760405162461bcd60e51b815260040161102e90614ada565b60026005556000805b600c54811015612c4857600c8181548110612c1257612c12614c2c565b6000918252602090912001546001600160a01b03163303612c365760019150612c48565b80612c4081614c42565b915050612bf5565b5080612c8f5760405162461bcd60e51b81526020600482015260166024820152754e4f545f415554484f52495a45445f4144445245535360501b604482015260640161102e565b60008481526013602052604090205460ff16612ce95760405162461bcd60e51b81526020600482015260196024820152785055424c49435f53414c455f49535f4e4f545f41435449564560381b604482015260640161102e565b612cf284611dc7565b612d3e5760405162461bcd60e51b815260206004820152601e60248201527f5055424c49435f53414c455f54494d455f49535f4e4f545f4143544956450000604482015260640161102e565b6000848152601d60205260409020541580612d9157506000848152601d60209081526040808320546001600160a01b0386168452600f835281842088855290925290912054612d8e908590614b27565b11155b612ddd5760405162461bcd60e51b815260206004820152601e60248201527f4d41585f4d494e54535f464f525f414444524553535f45584345454445440000604482015260640161102e565b6000848152601760205260409020541580612e1c5750600084815260176020908152604080832054600390925290912054612e19908590614b27565b11155b612e385760405162461bcd60e51b815260040161102e90614b3a565b600060235484612e489190614b67565b6000868152601e60205260409020549091508190612e67908690614b67565b612e719190614b27565b3414612e8f5760405162461bcd60e51b815260040161102e90614b7e565b60008581526011602052604090205460ff1615612ebe5760405162461bcd60e51b815260040161102e90614ba9565b600a546040516000916001600160a01b03169083908381818185875af1925050503d8060008114612f0b576040519150601f19603f3d011682016040523d82523d6000602084013e612f10565b606091505b5050905080612f315760405162461bcd60e51b815260040161102e90614be0565b6001600160a01b0384166000908152600f6020908152604080832089845290915281208054879290612f64908490614b27565b92505081905550612f8684878760405180602001604052806000815250613175565b60008681526017602052604090205415801590612fbc575060008681526017602090815260408083205460039092529091205410155b15612fd8576000868152601360205260409020805460ff191690555b5050600160055550505050565b60006001600160e01b0319821663152a902d60e11b148061105a575061105a826134a1565b33613013612656565b6001600160a01b031614611afa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161102e565b6127106001600160601b03821611156130d75760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161102e565b6001600160a01b03821661312d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161102e565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b60606002805461133590614a34565b6001600160a01b0384166131d55760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161102e565b3360006131e1856134f1565b905060006131ee856134f1565b90506131ff8360008985858961353c565b6000868152602081815260408083206001600160a01b038b1684529091528120805487929061322f908490614b27565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611f8583600089898989613552565b6008546001600160a01b03161561111857611118816136ad565b6001600160a01b0385163314806132c557506132c58533610e6c565b6132e15760405162461bcd60e51b815260040161102e90614d86565b6132ee858585858561376f565b5050505050565b6132fd613952565b6004805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6133a46139a2565b6004805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861332d3390565b600061342c83838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061342692508891506139ef9050565b90613a42565b6009546001600160a01b03918216911614949350505050565b6128ca338383613a5e565b60026128ca8282614dd5565b6001600160a01b03851633148061347857506134788533610e6c565b6134945760405162461bcd60e51b815260040161102e90614d86565b6132ee8585858585613b3e565b60006001600160e01b03198216636cdb3d1360e11b14806134d257506001600160e01b031982166303a24d0760e21b145b8061105a57506301ffc9a760e01b6001600160e01b031983161461105a565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061352b5761352b614c2c565b602090810291909101015292915050565b6135446139a2565b6118e9868686868686613c76565b6001600160a01b0384163b156118e95760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906135969089908990889088908890600401614e94565b6020604051808303816000875af19250505080156135d1575060408051601f3d908101601f191682019092526135ce91810190614ed9565b60015b61367d576135dd614ef6565b806308c379a00361361657506135f1614f12565b806135fc5750613618565b8060405162461bcd60e51b815260040161102e919061435e565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161102e565b6001600160e01b0319811663f23a6e6160e01b14611f855760405162461bcd60e51b815260040161102e90614f9b565b6008546001600160a01b031680158015906136d257506000816001600160a01b03163b115b156128ca57604051633185c44d60e21b81523060048201526001600160a01b03838116602483015282169063c617113490604401602060405180830381865afa158015613723573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137479190614fe3565b6128ca57604051633b79c77360e21b81526001600160a01b038316600482015260240161102e565b81518351146137d15760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161102e565b6001600160a01b0384166137f75760405162461bcd60e51b815260040161102e90615000565b3361380681878787878761353c565b60005b84518110156138ec57600085828151811061382657613826614c2c565b60200260200101519050600085838151811061384457613844614c2c565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156138945760405162461bcd60e51b815260040161102e90615045565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906138d1908490614b27565b92505081905550505050806138e590614c42565b9050613809565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161393c92919061508f565b60405180910390a46118e9818787878787613def565b600454600160a01b900460ff16611afa5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161102e565b600454600160a01b900460ff1615611afa5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161102e565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6000806000613a518585613eaa565b91509150611c5681613eec565b816001600160a01b0316836001600160a01b031603613ad15760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161102e565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416613b645760405162461bcd60e51b815260040161102e90615000565b336000613b70856134f1565b90506000613b7d856134f1565b9050613b8d83898985858961353c565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015613bce5760405162461bcd60e51b815260040161102e90615045565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290613c0b908490614b27565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613c6b848a8a8a8a8a613552565b505050505050505050565b6001600160a01b038516613cfd5760005b8351811015613cfb57828181518110613ca257613ca2614c2c565b602002602001015160036000868481518110613cc057613cc0614c2c565b602002602001015181526020019081526020016000206000828254613ce59190614b27565b90915550613cf4905081614c42565b9050613c87565b505b6001600160a01b0384166118e95760005b8351811015611f85576000848281518110613d2b57613d2b614c2c565b602002602001015190506000848381518110613d4957613d49614c2c565b6020026020010151905060006003600084815260200190815260200160002054905081811015613dcc5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b606482015260840161102e565b60009283526003602052604090922091039055613de881614c42565b9050613d0e565b6001600160a01b0384163b156118e95760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190613e3390899089908890889088906004016150bd565b6020604051808303816000875af1925050508015613e6e575060408051601f3d908101601f19168201909252613e6b91810190614ed9565b60015b613e7a576135dd614ef6565b6001600160e01b0319811663bc197c8160e01b14611f855760405162461bcd60e51b815260040161102e90614f9b565b6000808251604103613ee05760208301516040840151606085015160001a613ed4878285856140a2565b9450945050505061186a565b5060009050600261186a565b6000816004811115613f0057613f0061511b565b03613f085750565b6001816004811115613f1c57613f1c61511b565b03613f695760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161102e565b6002816004811115613f7d57613f7d61511b565b03613fca5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161102e565b6003816004811115613fde57613fde61511b565b036140365760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161102e565b600481600481111561404a5761404a61511b565b036111185760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161102e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156140d95750600090506003614186565b8460ff16601b141580156140f157508460ff16601c14155b156141025750600090506004614186565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614156573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661417f57600060019250925050614186565b9150600090505b94509492505050565b8280548282559060005260206000209081019282156141e2579160200282015b828111156141e25781546001600160a01b0319166001600160a01b038435161782556020909201916001909101906141af565b506141ee92915061422d565b5090565b8280548282559060005260206000209081019282156141e2579160200282015b828111156141e2578235825591602001919060010190614212565b5b808211156141ee576000815560010161422e565b60006020828403121561425457600080fd5b5035919050565b80356001600160a01b038116811461427257600080fd5b919050565b6000806040838503121561428a57600080fd5b6142938361425b565b946020939093013593505050565b6001600160e01b03198116811461111857600080fd5b6000602082840312156142c957600080fd5b81356142d4816142a1565b9392505050565b6000602082840312156142ed57600080fd5b6142d48261425b565b6000806040838503121561430957600080fd5b50508035926020909101359150565b6000815180845260005b8181101561433e57602081850181015186830182015201614322565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006142d46020830184614318565b801515811461111857600080fd5b6000806040838503121561439257600080fd5b8235915060208301356143a481614371565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156143ea576143ea6143af565b6040525050565b60006001600160401b0382111561440a5761440a6143af565b5060051b60200190565b600082601f83011261442557600080fd5b81356020614432826143f1565b60405161443f82826143c5565b83815260059390931b850182019282810191508684111561445f57600080fd5b8286015b8481101561447a5780358352918301918301614463565b509695505050505050565b600082601f83011261449657600080fd5b81356001600160401b038111156144af576144af6143af565b6040516144c6601f8301601f1916602001826143c5565b8181528460208386010111156144db57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561451057600080fd5b6145198661425b565b94506145276020870161425b565b935060408601356001600160401b038082111561454357600080fd5b61454f89838a01614414565b9450606088013591508082111561456557600080fd5b61457189838a01614414565b9350608088013591508082111561458757600080fd5b5061459488828901614485565b9150509295509295909350565b6000602082840312156145b357600080fd5b81356001600160601b03811681146142d457600080fd5b600080604083850312156145dd57600080fd5b82356001600160401b03808211156145f457600080fd5b818501915085601f83011261460857600080fd5b81356020614615826143f1565b60405161462282826143c5565b83815260059390931b850182019282810191508984111561464257600080fd5b948201945b83861015614667576146588661425b565b82529482019490820190614647565b9650508601359250508082111561467d57600080fd5b5061468a85828601614414565b9150509250929050565b600081518084526020808501945080840160005b838110156146c4578151875295820195908201906001016146a8565b509495945050505050565b6020815260006142d46020830184614694565b60008083601f8401126146f457600080fd5b5081356001600160401b0381111561470b57600080fd5b6020830191508360208260051b850101111561186a57600080fd5b60008060008060006060868803121561473e57600080fd5b8535945060208601356001600160401b038082111561475c57600080fd5b61476889838a016146e2565b9096509450604088013591508082111561478157600080fd5b5061478e888289016146e2565b969995985093965092949392505050565b60008083601f8401126147b157600080fd5b5081356001600160401b038111156147c857600080fd5b60208301915083602082850101111561186a57600080fd5b6000806000604084860312156147f557600080fd5b8335925060208401356001600160401b0381111561481257600080fd5b61481e8682870161479f565b9497909650939450505050565b60008060008060008060a0878903121561484457600080fd5b8635955060208701356001600160401b0381111561486157600080fd5b61486d89828a0161479f565b979a90995096976040810135976060820135975060809091013595509350505050565b600080604083850312156148a357600080fd5b6148ac8361425b565b915060208301356143a481614371565b600080602083850312156148cf57600080fd5b82356001600160401b038111156148e557600080fd5b6148f18582860161479f565b90969095509350505050565b6000806000806040858703121561491357600080fd5b84356001600160401b038082111561492a57600080fd5b614936888389016146e2565b9096509450602087013591508082111561494f57600080fd5b5061495c878288016146e2565b95989497509550505050565b6000806040838503121561497b57600080fd5b6149848361425b565b91506149926020840161425b565b90509250929050565b600080600080600060a086880312156149b357600080fd5b6149bc8661425b565b94506149ca6020870161425b565b9350604086013592506060860135915060808601356001600160401b038111156149f357600080fd5b61459488828901614485565b600080600060608486031215614a1457600080fd5b8335925060208401359150614a2b6040850161425b565b90509250925092565b600181811c90821680614a4857607f821691505b602082108103614a6857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4e45575f53544154455f4944454e544943414c5f544f5f4f4c445f5354415445604082015260600190565b60208082526019908201527f43414e4e4f545f43414c4c5f46524f4d5f434f4e545241435400000000000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561105a5761105a614b11565b60208082526013908201527213505617d4d55414131657d15610d151511151606a1b604082015260600190565b808202811582820484141761105a5761105a614b11565b6020808252601190820152701410565351539517d25390d3d4949150d5607a1b604082015260600190565b6020808252601c908201527f4d494e54494e475f5045524d414e454e544c595f44495341424c454400000000604082015260600190565b60208082526010908201526f2a3930b739b332b9103330b4b632b21760811b604082015260600190565b600082614c2757634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201614c5457614c54614b11565b5060010190565b6020808252600c908201526b1512535157d25397d41054d560a21b604082015260600190565b601f82111561270857600081815260208120601f850160051c81016020861015614ca85750805b601f850160051c820191505b818110156118e957828155600101614cb4565b6001600160401b03831115614cde57614cde6143af565b614cf283614cec8354614a34565b83614c81565b6000601f841160018114614d265760008515614d0e5750838201355b600019600387901b1c1916600186901b1783556132ee565b600083815260209020601f19861690835b82811015614d575786850135825560209485019460019092019101614d37565b5086821015614d745760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b81516001600160401b03811115614dee57614dee6143af565b614e0281614dfc8454614a34565b84614c81565b602080601f831160018114614e375760008415614e1f5750858301515b600019600386901b1c1916600185901b1785556118e9565b600085815260208120601f198616915b82811015614e6657888601518255948401946001909101908401614e47565b5085821015614e845787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090614ece90830184614318565b979650505050505050565b600060208284031215614eeb57600080fd5b81516142d4816142a1565b600060033d1115614f0f5760046000803e5060005160e01c5b90565b600060443d1015614f205790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614f4f57505050505090565b8285019150815181811115614f675750505050505090565b843d8701016020828501011115614f815750505050505090565b614f90602082860101876143c5565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b600060208284031215614ff557600080fd5b81516142d481614371565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006150a26040830185614694565b82810360208401526150b48185614694565b95945050505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906150e990830186614694565b82810360608401526150fb8186614694565b9050828103608084015261510f8185614318565b98975050505050505050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220cf2ecc751b8c1f481a2f2697aabf45c6655022b2765231cba958cfca175a54b564736f6c63430008110033697066733a2f2f6261667962656963746f76626b796a6d706879646e766c6767367473627765726f687778367363747336667961356261766b353766756b6b7275612f7b69647d00000000000000000000000000000000000000000000000000027ca57357c000

Deployed Bytecode

0x60806040526004361061047c5760003560e01c806376ca9c4c11610255578063b8d1e53211610144578063e5aa68a2116100c1578063f2fde38b11610085578063f2fde38b14610efb578063f47749fc14610f1b578063f487077414610f3b578063f5842f9514610f5b578063fc49e58f14610f87578063fe93926314610fb457600080fd5b8063e5aa68a214610e31578063e985e9c514610e51578063ecba222a14610e9a578063efd3af1a14610ebb578063f242432a14610edb57600080fd5b8063c872d0e811610108578063c872d0e814610d64578063c87b56dd14610d84578063d35cdb3a14610da4578063d569d80714610dd4578063d976637014610e0457600080fd5b8063b8d1e53214610cb8578063ba75298914610cd8578063bd85b03914610cf7578063bde5a9b414610d24578063c15d0e2114610d4457600080fd5b806394901dd4116101d2578063a78f075c11610196578063a78f075c14610c00578063ac80165814610c20578063ad2f852a14610c40578063b0ccc31e14610c60578063b8997a9714610c8057600080fd5b806394901dd414610b5b57806395d89b4114610b7b5780639d86a76614610b90578063a22cb46514610bb0578063a451aeb014610bd057600080fd5b80638834e93b116102195780638834e93b14610ac65780638a01860f14610ae65780638a78bdf614610b135780638b665b1114610b265780638da5cb5b14610b4657600080fd5b806376ca9c4c14610a24578063795a257514610a445780637c55351214610a645780638456cb5914610a91578063862440e214610aa657600080fd5b80633ccfd60b116103715780635ef9432a116102ee578063715018a6116102b2578063715018a61461097257806371f0d5ab1461098757806375007477146109a75780637521f3bc146109c7578063756f520d146109f757600080fd5b80635ef9432a146108d0578063629c51bc146108e5578063635c4ce7146108fa5780636703dad81461093257806368e8490b1461095257600080fd5b80634db16857116103355780634db16857146107fb5780634e1273f4146108285780634ed31491146108555780634f558e79146108825780635c975abb146108b157600080fd5b80633ccfd60b1461076b5780633e5c68ba146107805780633f4ba83a146107965780633fa71b3f146107ab578063493b4665146107db57600080fd5b806314d3fcf8116103ff57806329b6bfa5116103c357806329b6bfa51461069f5780632a55205a146106cc5780632c260ae51461070b5780632eb2c2d61461072b57806331faafb41461074b57600080fd5b806314d3fcf8146105e457806315ad371f1461061c5780631d723bf11461063c57806320cbf5f91461066c57806325153e131461067f57600080fd5b806306d254da1161044657806306d254da1461054257806306d4c8b41461056257806306fdde031461058257806307c981f2146105a45780630e89341c146105c457600080fd5b80624221f014610481578062fdd58e146104c157806301ffc9a7146104e157806304ff2d0714610511578063060b01e114610528575b600080fd5b34801561048d57600080fd5b506104ae61049c366004614242565b60176020526000908152604090205481565b6040519081526020015b60405180910390f35b3480156104cd57600080fd5b506104ae6104dc366004614277565b610fc7565b3480156104ed57600080fd5b506105016104fc3660046142b7565b611060565b60405190151581526020016104b8565b34801561051d57600080fd5b5061052661106b565b005b34801561053457600080fd5b50600e546105019060ff1681565b34801561054e57600080fd5b5061052661055d3660046142db565b6110dc565b34801561056e57600080fd5b5061052661057d3660046142f6565b61111b565b34801561058e57600080fd5b50610597611201565b6040516104b8919061435e565b3480156105b057600080fd5b506105266105bf36600461437f565b61128f565b3480156105d057600080fd5b506105976105df366004614242565b6112ed565b3480156105f057600080fd5b50600a54610604906001600160a01b031681565b6040516001600160a01b0390911681526020016104b8565b34801561062857600080fd5b5061052661063736600461437f565b6113ba565b34801561064857600080fd5b50610501610657366004614242565b60156020526000908152604090205460ff1681565b61052661067a3660046142f6565b611418565b34801561068b57600080fd5b5061052661069a366004614242565b6117a0565b3480156106ab57600080fd5b506104ae6106ba366004614242565b601f6020526000908152604090205481565b3480156106d857600080fd5b506106ec6106e73660046142f6565b6117c3565b604080516001600160a01b0390931683526020830191909152016104b8565b34801561071757600080fd5b50610501610726366004614242565b611871565b34801561073757600080fd5b506105266107463660046144f8565b6118c2565b34801561075757600080fd5b506105266107663660046145a1565b6118f1565b34801561077757600080fd5b50610526611934565b34801561078c57600080fd5b506104ae60235481565b3480156107a257600080fd5b50610526611aea565b3480156107b757600080fd5b506105016107c6366004614242565b60116020526000908152604090205460ff1681565b3480156107e757600080fd5b506105266107f63660046142f6565b611afc565b34801561080757600080fd5b506104ae610816366004614242565b601c6020526000908152604090205481565b34801561083457600080fd5b506108486108433660046145ca565b611b35565b6040516104b891906146cf565b34801561086157600080fd5b506104ae610870366004614242565b601a6020526000908152604090205481565b34801561088e57600080fd5b5061050161089d366004614242565b600090815260036020526040902054151590565b3480156108bd57600080fd5b50600454600160a01b900460ff16610501565b3480156108dc57600080fd5b50610526611c5e565b3480156108f157600080fd5b50610526611cda565b34801561090657600080fd5b506104ae610915366004614277565b600f60209081526000928352604080842090915290825290205481565b34801561093e57600080fd5b5061052661094d3660046142f6565b611d44565b34801561095e57600080fd5b5061052661096d3660046142f6565b611d7d565b34801561097e57600080fd5b50610526611db5565b34801561099357600080fd5b506105016109a2366004614242565b611dc7565b3480156109b357600080fd5b506105266109c2366004614726565b611e17565b3480156109d357600080fd5b506105016109e2366004614242565b60136020526000908152604090205460ff1681565b348015610a0357600080fd5b506104ae610a12366004614242565b60196020526000908152604090205481565b348015610a3057600080fd5b50610526610a3f3660046142f6565b611f8e565b348015610a5057600080fd5b50610526610a5f366004614242565b612016565b348015610a7057600080fd5b506104ae610a7f366004614242565b60186020526000908152604090205481565b348015610a9d57600080fd5b50610526612098565b348015610ab257600080fd5b50610526610ac13660046147e0565b6120a8565b348015610ad257600080fd5b506104ae610ae1366004614242565b612138565b348015610af257600080fd5b506104ae610b01366004614242565b601e6020526000908152604090205481565b610526610b2136600461482b565b612159565b348015610b3257600080fd5b50610526610b413660046142f6565b61261d565b348015610b5257600080fd5b50610604612656565b348015610b6757600080fd5b50610526610b763660046142f6565b61266f565b348015610b8757600080fd5b50610597612689565b348015610b9c57600080fd5b50610526610bab36600461437f565b612696565b348015610bbc57600080fd5b50610526610bcb366004614890565b6126f4565b348015610bdc57600080fd5b50610501610beb366004614242565b60126020526000908152604090205460ff1681565b348015610c0c57600080fd5b50610526610c1b36600461437f565b61270d565b348015610c2c57600080fd5b50610526610c3b3660046142f6565b61276b565b348015610c4c57600080fd5b50600b54610604906001600160a01b031681565b348015610c6c57600080fd5b50600854610604906001600160a01b031681565b348015610c8c57600080fd5b50602554610ca0906001600160601b031681565b6040516001600160601b0390911681526020016104b8565b348015610cc457600080fd5b50610526610cd33660046142db565b612785565b348015610ce457600080fd5b50600e5461050190610100900460ff1681565b348015610d0357600080fd5b506104ae610d12366004614242565b60009081526003602052604090205490565b348015610d3057600080fd5b50610604610d3f366004614242565b61280b565b348015610d5057600080fd5b50610526610d5f3660046148bc565b612835565b348015610d7057600080fd5b50610526610d7f3660046148fd565b6128ce565b348015610d9057600080fd5b50610597610d9f366004614242565b612a2c565b348015610db057600080fd5b50610501610dbf366004614242565b60146020526000908152604090205460ff1681565b348015610de057600080fd5b50610501610def366004614242565b60106020526000908152604090205460ff1681565b348015610e1057600080fd5b506104ae610e1f366004614242565b601b6020526000908152604090205481565b348015610e3d57600080fd5b50610526610e4c3660046142f6565b612a45565b348015610e5d57600080fd5b50610501610e6c366004614968565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610ea657600080fd5b5060085461050190600160a01b900460ff1681565b348015610ec757600080fd5b50610526610ed63660046142f6565b612a5f565b348015610ee757600080fd5b50610526610ef636600461499b565b612a79565b348015610f0757600080fd5b50610526610f163660046142db565b612ae8565b348015610f2757600080fd5b50610526610f363660046142db565b612b5e565b348015610f4757600080fd5b50610604610f56366004614242565b612b9b565b348015610f6757600080fd5b506104ae610f76366004614242565b602080526000908152604090205481565b348015610f9357600080fd5b506104ae610fa2366004614242565b601d6020526000908152604090205481565b610526610fc23660046149ff565b612bab565b60006001600160a01b0383166110375760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b600061105a82612fe5565b61107361300a565b600e54610100900460ff16156110cb5760405162461bcd60e51b815260206004820152601f60248201527f5041594f55545f4144445245535345535f414c52454144595f46524f5a454e00604482015260640161102e565b600e805461ff001916610100179055565b6110e461300a565b600b80546001600160a01b0319166001600160a01b03831690811790915560255461111891906001600160601b0316613069565b50565b61112361300a565b600082815260176020526040902054158061114b575060008281526017602052604090205481105b6111915760405162461bcd60e51b815260206004820152601760248201527609c8aaebe9a82b0bea6aaa0a098b2bea89e9ebe90928e9604b1b604482015260640161102e565b6000828152600360205260409020548110156111ef5760405162461bcd60e51b815260206004820152601f60248201527f535550504c595f4c4f5745525f5448414e5f4d494e5445445f544f4b454e5300604482015260640161102e565b60009182526017602052604090912055565b6021805461120e90614a34565b80601f016020809104026020016040519081016040528092919081815260200182805461123a90614a34565b80156112875780601f1061125c57610100808354040283529160200191611287565b820191906000526020600020905b81548152906001019060200180831161126a57829003601f168201915b505050505081565b61129761300a565b60008281526014602052604090205481151560ff9091161515036112cd5760405162461bcd60e51b815260040161102e90614a6e565b600091825260146020526040909120805460ff1916911515919091179055565b600081815260166020526040902080546060919061130a90614a34565b905060000361131c5761105a82613166565b6000828152601660205260409020805461133590614a34565b80601f016020809104026020016040519081016040528092919081815260200182805461136190614a34565b80156113ae5780601f10611383576101008083540402835291602001916113ae565b820191906000526020600020905b81548152906001019060200180831161139157829003601f168201915b50505050509050919050565b6113c261300a565b60008281526012602052604090205481151560ff9091161515036113f85760405162461bcd60e51b815260040161102e90614a6e565b600091825260126020526040909120805460ff1916911515919091179055565b3233146114375760405162461bcd60e51b815260040161102e90614aa3565b6002600554036114595760405162461bcd60e51b815260040161102e90614ada565b600260055560008281526013602052604090205460ff166114b85760405162461bcd60e51b81526020600482015260196024820152785055424c49435f53414c455f49535f4e4f545f41435449564560381b604482015260640161102e565b6114c182611dc7565b61150d5760405162461bcd60e51b815260206004820152601e60248201527f5055424c49435f53414c455f54494d455f49535f4e4f545f4143544956450000604482015260640161102e565b6000828152601d6020526040902054158061155757506000828152601d6020908152604080832054338452600f835281842086855290925290912054611554908390614b27565b11155b6115a35760405162461bcd60e51b815260206004820152601e60248201527f4d41585f4d494e54535f464f525f414444524553535f45584345454445440000604482015260640161102e565b60008281526017602052604090205415806115e257506000828152601760209081526040808320546003909252909120546115df908390614b27565b11155b6115fe5760405162461bcd60e51b815260040161102e90614b3a565b60006023548261160e9190614b67565b6000848152601e6020526040902054909150819061162d908490614b67565b6116379190614b27565b34146116555760405162461bcd60e51b815260040161102e90614b7e565b60008381526011602052604090205460ff16156116845760405162461bcd60e51b815260040161102e90614ba9565b600a546040516000916001600160a01b03169083908381818185875af1925050503d80600081146116d1576040519150601f19603f3d011682016040523d82523d6000602084013e6116d6565b606091505b50509050806116f75760405162461bcd60e51b815260040161102e90614be0565b336000908152600f6020908152604080832087845290915281208054859290611721908490614b27565b9250508190555061174333858560405180602001604052806000815250613175565b60008481526017602052604090205415801590611779575060008481526017602090815260408083205460039092529091205410155b15611795576000848152601360205260409020805460ff191690555b505060016005555050565b6117a861300a565b6000908152601160205260409020805460ff19166001179055565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916118385750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611857906001600160601b031687614b67565b6118619190614c0a565b91519350909150505b9250929050565b60008181526014602052604081205460ff161515810361189357506001919050565b6000828152601c6020526040902054421080159061105a5750506000908152601b602052604090205442111590565b846001600160a01b03811633146118dc576118dc3361328f565b6118e986868686866132a9565b505050505050565b6118f961300a565b602580546bffffffffffffffffffffffff19166001600160601b038316908117909155600b54611118916001600160a01b0390911690613069565b61193c61300a565b60026005540361195e5760405162461bcd60e51b815260040161102e90614ada565b6002600555476119b05760405162461bcd60e51b815260206004820152601760248201527f434f4e54524143545f4841535f4e4f5f42414c414e4345000000000000000000604482015260640161102e565b600d546119f55760405162461bcd60e51b81526020600482015260136024820152724e4f5f5041594f55545f41444452455353455360681b604482015260640161102e565b4760005b600d54811015611ae157600061271060248381548110611a1b57611a1b614c2c565b906000526020600020015484611a319190614b67565b611a3b9190614c0a565b90506000600d8381548110611a5257611a52614c2c565b60009182526020822001546040516001600160a01b039091169184919081818185875af1925050503d8060008114611aa6576040519150601f19603f3d011682016040523d82523d6000602084013e611aab565b606091505b5050905080611acc5760405162461bcd60e51b815260040161102e90614be0565b50508080611ad990614c42565b9150506119f9565b50506001600555565b611af261300a565b611afa6132f5565b565b611b0461300a565b428111611b235760405162461bcd60e51b815260040161102e90614c5b565b6000918252601c602052604090912055565b60608151835114611b9a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161102e565b600083516001600160401b03811115611bb557611bb56143af565b604051908082528060200260200182016040528015611bde578160200160208202803683370190505b50905060005b8451811015611c5657611c29858281518110611c0257611c02614c2c565b6020026020010151858381518110611c1c57611c1c614c2c565b6020026020010151610fc7565b828281518110611c3b57611c3b614c2c565b6020908102919091010152611c4f81614c42565b9050611be4565b509392505050565b611c66612656565b6001600160a01b0316336001600160a01b031614611c9757604051635fc483c560e01b815260040160405180910390fd5b600854600160a01b900460ff1615611cc257604051631551a48f60e11b815260040160405180910390fd5b600880546001600160a81b031916600160a01b179055565b611ce261300a565b600e5460ff1615611d355760405162461bcd60e51b815260206004820181905260248201527f4d455441444154415f4841535f414c52454144595f4245454e5f46524f5a454e604482015260640161102e565b600e805460ff19166001179055565b611d4c61300a565b428111611d6b5760405162461bcd60e51b815260040161102e90614c5b565b6000918252601b602052604090912055565b611d8561300a565b428111611da45760405162461bcd60e51b815260040161102e90614c5b565b600091825260208052604090912055565b611dbd61300a565b611afa600061334a565b60008181526015602052604081205460ff1615158103611de957506001919050565b6000828152602080526040902054421080159061105a5750506000908152601f602052604090205442111590565b611e1f61300a565b60008581526011602052604090205460ff1615611e4e5760405162461bcd60e51b815260040161102e90614ba9565b6000805b82811015611e9257838382818110611e6c57611e6c614c2c565b9050602002013582611e7e9190614b27565b915080611e8a81614c42565b915050611e52565b506000868152601760205260409020541580611ed25750600086815260176020908152604080832054600390925290912054611ecf908390614b27565b11155b611f0f5760405162461bcd60e51b815260206004820152600e60248201526d4d494e545f544f4f5f4c4152474560901b604482015260640161102e565b60005b84811015611f8557611f73868683818110611f2f57611f2f614c2c565b9050602002016020810190611f4491906142db565b88868685818110611f5757611f57614c2c565b9050602002013560405180602001604052806000815250613175565b80611f7d81614c42565b915050611f12565b50505050505050565b611f9661300a565b6000828152601860205260409020541580611fbe575060008281526018602052604090205481105b6120045760405162461bcd60e51b815260206004820152601760248201527609c8aaebe9a82b0bea6aaa0a098b2bea89e9ebe90928e9604b1b604482015260640161102e565b60009182526018602052604090912055565b61201e61300a565b60008181526010602052604090205460ff161561207d5760405162461bcd60e51b815260206004820181905260248201527f4d455441444154415f4841535f414c52454144595f4245454e5f46524f5a454e604482015260640161102e565b6000908152601060205260409020805460ff19166001179055565b6120a061300a565b611afa61339c565b6120b061300a565b600e5460ff161580156120d2575060008381526010602052604090205460ff16155b6121195760405162461bcd60e51b815260206004820152601860248201527726a2aa20a220aa20afa420a9afa122a2a72fa32927ad22a760411b604482015260640161102e565b6000838152601660205260409020612132828483614cc7565b50505050565b6024818154811061214857600080fd5b600091825260209091200154905081565b3233146121785760405162461bcd60e51b815260040161102e90614aa3565b60026005540361219a5760405162461bcd60e51b815260040161102e90614ada565b600260055560008381526012602052604090205460ff166121f55760405162461bcd60e51b815260206004820152601560248201527450524553414c455f49535f4e4f545f41435449564560581b604482015260640161102e565b6121fe83611871565b61224a5760405162461bcd60e51b815260206004820152601a60248201527f50524553414c455f54494d455f49535f4e4f545f414354495645000000000000604482015260640161102e565b60008381526011602052604090205460ff16156122795760405162461bcd60e51b815260040161102e90614ba9565b60008381526019602052604090205415806122c35750600083815260196020908152604080832054338452600f8352818420878552909252909120546122c0908490614b27565b11155b61230f5760405162461bcd60e51b815260206004820152601e60248201527f4d41585f4d494e54535f5045525f414444524553535f45584345454445440000604482015260640161102e565b8015806123425750336000908152600f60209081526040808320868452909152902054819061233f908490614b27565b11155b6123835760405162461bcd60e51b815260206004820152601260248201527113505617d352539514d7d15610d15151115160721b604482015260640161102e565b60008381526018602052604090205415806123c257506000838152601860209081526040808320546003909252909120546123bf908490614b27565b11155b6123de5760405162461bcd60e51b815260040161102e90614b3a565b6000602354836123ee9190614b67565b6000858152601a6020526040902054909150819061240d908590614b67565b6124179190614b27565b34146124355760405162461bcd60e51b815260040161102e90614b7e565b6040805133602082015290810183905260608101859052879060800160405160208183030381529060405280519060200120146124a65760405162461bcd60e51b815260206004820152600f60248201526e135154d4d051d157d2539590531251608a1b604482015260640161102e565b6124b18787876133df565b6124fd5760405162461bcd60e51b815260206004820152601b60248201527f5349474e41545552455f56414c49444154494f4e5f4641494c45440000000000604482015260640161102e565b600a546040516000916001600160a01b03169083908381818185875af1925050503d806000811461254a576040519150601f19603f3d011682016040523d82523d6000602084013e61254f565b606091505b50509050806125705760405162461bcd60e51b815260040161102e90614be0565b336000908152600f602090815260408083208884529091528120805486929061259a908490614b27565b925050819055506125bc33868660405180602001604052806000815250613175565b600085815260186020526040902054158015906125f2575060008581526018602090815260408083205460039092529091205410155b1561260e576000858152601260205260409020805460ff191690555b50506001600555505050505050565b61262561300a565b4281116126445760405162461bcd60e51b815260040161102e90614c5b565b6000918252601f602052604090912055565b600061266a6004546001600160a01b031690565b905090565b61267761300a565b6000918252601a602052604090912055565b6022805461120e90614a34565b61269e61300a565b60008281526013602052604090205481151560ff9091161515036126d45760405162461bcd60e51b815260040161102e90614a6e565b600091825260136020526040909120805460ff1916911515919091179055565b816126fe8161328f565b6127088383613445565b505050565b61271561300a565b60008281526015602052604090205481151560ff90911615150361274b5760405162461bcd60e51b815260040161102e90614a6e565b600091825260156020526040909120805460ff1916911515919091179055565b61277361300a565b60009182526019602052604090912055565b61278d612656565b6001600160a01b0316336001600160a01b0316146127be57604051635fc483c560e01b815260040160405180910390fd5b600854600160a01b900460ff16156127e957604051631551a48f60e11b815260040160405180910390fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600c818154811061281b57600080fd5b6000918252602090912001546001600160a01b0316905081565b61283d61300a565b600e5460ff161561288b5760405162461bcd60e51b815260206004820152601860248201527726a2aa20a220aa20afa420a9afa122a2a72fa32927ad22a760411b604482015260640161102e565b6128ca82828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061345092505050565b5050565b6128d661300a565b600e54610100900460ff161561292e5760405162461bcd60e51b815260206004820152601760248201527f5041594f55545f4144445245535345535f46524f5a454e000000000000000000604482015260640161102e565b82811461297d5760405162461bcd60e51b815260206004820152601860248201527f41525241595f4c454e475448535f4d5553545f4d415443480000000000000000604482015260640161102e565b6000805b828110156129c15783838281811061299b5761299b614c2c565b90506020020135826129ad9190614b27565b9150806129b981614c42565b915050612981565b508061271014612a135760405162461bcd60e51b815260206004820181905260248201527f544f54414c5f42415349535f504f494e54535f4d5553545f42455f3130303030604482015260640161102e565b612a1f600d868661418f565b506118e9602484846141f2565b6016602052600090815260409020805461120e90614a34565b612a4d61300a565b6000918252601d602052604090912055565b612a6761300a565b6000918252601e602052604090912055565b846001600160a01b0381163314612a9357612a933361328f565b60008311612adb5760405162461bcd60e51b8152602060048201526015602482015274414d4f554e545f43414e4e4f545f42455f5a45524f60581b604482015260640161102e565b6118e9868686868661345c565b612af061300a565b6001600160a01b038116612b555760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161102e565b6111188161334a565b612b6661300a565b6001600160a01b038116612b7957600080fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b600d818154811061281b57600080fd5b323314612bca5760405162461bcd60e51b815260040161102e90614aa3565b600260055403612bec5760405162461bcd60e51b815260040161102e90614ada565b60026005556000805b600c54811015612c4857600c8181548110612c1257612c12614c2c565b6000918252602090912001546001600160a01b03163303612c365760019150612c48565b80612c4081614c42565b915050612bf5565b5080612c8f5760405162461bcd60e51b81526020600482015260166024820152754e4f545f415554484f52495a45445f4144445245535360501b604482015260640161102e565b60008481526013602052604090205460ff16612ce95760405162461bcd60e51b81526020600482015260196024820152785055424c49435f53414c455f49535f4e4f545f41435449564560381b604482015260640161102e565b612cf284611dc7565b612d3e5760405162461bcd60e51b815260206004820152601e60248201527f5055424c49435f53414c455f54494d455f49535f4e4f545f4143544956450000604482015260640161102e565b6000848152601d60205260409020541580612d9157506000848152601d60209081526040808320546001600160a01b0386168452600f835281842088855290925290912054612d8e908590614b27565b11155b612ddd5760405162461bcd60e51b815260206004820152601e60248201527f4d41585f4d494e54535f464f525f414444524553535f45584345454445440000604482015260640161102e565b6000848152601760205260409020541580612e1c5750600084815260176020908152604080832054600390925290912054612e19908590614b27565b11155b612e385760405162461bcd60e51b815260040161102e90614b3a565b600060235484612e489190614b67565b6000868152601e60205260409020549091508190612e67908690614b67565b612e719190614b27565b3414612e8f5760405162461bcd60e51b815260040161102e90614b7e565b60008581526011602052604090205460ff1615612ebe5760405162461bcd60e51b815260040161102e90614ba9565b600a546040516000916001600160a01b03169083908381818185875af1925050503d8060008114612f0b576040519150601f19603f3d011682016040523d82523d6000602084013e612f10565b606091505b5050905080612f315760405162461bcd60e51b815260040161102e90614be0565b6001600160a01b0384166000908152600f6020908152604080832089845290915281208054879290612f64908490614b27565b92505081905550612f8684878760405180602001604052806000815250613175565b60008681526017602052604090205415801590612fbc575060008681526017602090815260408083205460039092529091205410155b15612fd8576000868152601360205260409020805460ff191690555b5050600160055550505050565b60006001600160e01b0319821663152a902d60e11b148061105a575061105a826134a1565b33613013612656565b6001600160a01b031614611afa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161102e565b6127106001600160601b03821611156130d75760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161102e565b6001600160a01b03821661312d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161102e565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b60606002805461133590614a34565b6001600160a01b0384166131d55760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161102e565b3360006131e1856134f1565b905060006131ee856134f1565b90506131ff8360008985858961353c565b6000868152602081815260408083206001600160a01b038b1684529091528120805487929061322f908490614b27565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611f8583600089898989613552565b6008546001600160a01b03161561111857611118816136ad565b6001600160a01b0385163314806132c557506132c58533610e6c565b6132e15760405162461bcd60e51b815260040161102e90614d86565b6132ee858585858561376f565b5050505050565b6132fd613952565b6004805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6133a46139a2565b6004805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861332d3390565b600061342c83838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061342692508891506139ef9050565b90613a42565b6009546001600160a01b03918216911614949350505050565b6128ca338383613a5e565b60026128ca8282614dd5565b6001600160a01b03851633148061347857506134788533610e6c565b6134945760405162461bcd60e51b815260040161102e90614d86565b6132ee8585858585613b3e565b60006001600160e01b03198216636cdb3d1360e11b14806134d257506001600160e01b031982166303a24d0760e21b145b8061105a57506301ffc9a760e01b6001600160e01b031983161461105a565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061352b5761352b614c2c565b602090810291909101015292915050565b6135446139a2565b6118e9868686868686613c76565b6001600160a01b0384163b156118e95760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906135969089908990889088908890600401614e94565b6020604051808303816000875af19250505080156135d1575060408051601f3d908101601f191682019092526135ce91810190614ed9565b60015b61367d576135dd614ef6565b806308c379a00361361657506135f1614f12565b806135fc5750613618565b8060405162461bcd60e51b815260040161102e919061435e565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161102e565b6001600160e01b0319811663f23a6e6160e01b14611f855760405162461bcd60e51b815260040161102e90614f9b565b6008546001600160a01b031680158015906136d257506000816001600160a01b03163b115b156128ca57604051633185c44d60e21b81523060048201526001600160a01b03838116602483015282169063c617113490604401602060405180830381865afa158015613723573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137479190614fe3565b6128ca57604051633b79c77360e21b81526001600160a01b038316600482015260240161102e565b81518351146137d15760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161102e565b6001600160a01b0384166137f75760405162461bcd60e51b815260040161102e90615000565b3361380681878787878761353c565b60005b84518110156138ec57600085828151811061382657613826614c2c565b60200260200101519050600085838151811061384457613844614c2c565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156138945760405162461bcd60e51b815260040161102e90615045565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906138d1908490614b27565b92505081905550505050806138e590614c42565b9050613809565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161393c92919061508f565b60405180910390a46118e9818787878787613def565b600454600160a01b900460ff16611afa5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161102e565b600454600160a01b900460ff1615611afa5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161102e565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6000806000613a518585613eaa565b91509150611c5681613eec565b816001600160a01b0316836001600160a01b031603613ad15760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161102e565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416613b645760405162461bcd60e51b815260040161102e90615000565b336000613b70856134f1565b90506000613b7d856134f1565b9050613b8d83898985858961353c565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015613bce5760405162461bcd60e51b815260040161102e90615045565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290613c0b908490614b27565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613c6b848a8a8a8a8a613552565b505050505050505050565b6001600160a01b038516613cfd5760005b8351811015613cfb57828181518110613ca257613ca2614c2c565b602002602001015160036000868481518110613cc057613cc0614c2c565b602002602001015181526020019081526020016000206000828254613ce59190614b27565b90915550613cf4905081614c42565b9050613c87565b505b6001600160a01b0384166118e95760005b8351811015611f85576000848281518110613d2b57613d2b614c2c565b602002602001015190506000848381518110613d4957613d49614c2c565b6020026020010151905060006003600084815260200190815260200160002054905081811015613dcc5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b606482015260840161102e565b60009283526003602052604090922091039055613de881614c42565b9050613d0e565b6001600160a01b0384163b156118e95760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190613e3390899089908890889088906004016150bd565b6020604051808303816000875af1925050508015613e6e575060408051601f3d908101601f19168201909252613e6b91810190614ed9565b60015b613e7a576135dd614ef6565b6001600160e01b0319811663bc197c8160e01b14611f855760405162461bcd60e51b815260040161102e90614f9b565b6000808251604103613ee05760208301516040840151606085015160001a613ed4878285856140a2565b9450945050505061186a565b5060009050600261186a565b6000816004811115613f0057613f0061511b565b03613f085750565b6001816004811115613f1c57613f1c61511b565b03613f695760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161102e565b6002816004811115613f7d57613f7d61511b565b03613fca5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161102e565b6003816004811115613fde57613fde61511b565b036140365760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161102e565b600481600481111561404a5761404a61511b565b036111185760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161102e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156140d95750600090506003614186565b8460ff16601b141580156140f157508460ff16601c14155b156141025750600090506004614186565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614156573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661417f57600060019250925050614186565b9150600090505b94509492505050565b8280548282559060005260206000209081019282156141e2579160200282015b828111156141e25781546001600160a01b0319166001600160a01b038435161782556020909201916001909101906141af565b506141ee92915061422d565b5090565b8280548282559060005260206000209081019282156141e2579160200282015b828111156141e2578235825591602001919060010190614212565b5b808211156141ee576000815560010161422e565b60006020828403121561425457600080fd5b5035919050565b80356001600160a01b038116811461427257600080fd5b919050565b6000806040838503121561428a57600080fd5b6142938361425b565b946020939093013593505050565b6001600160e01b03198116811461111857600080fd5b6000602082840312156142c957600080fd5b81356142d4816142a1565b9392505050565b6000602082840312156142ed57600080fd5b6142d48261425b565b6000806040838503121561430957600080fd5b50508035926020909101359150565b6000815180845260005b8181101561433e57602081850181015186830182015201614322565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006142d46020830184614318565b801515811461111857600080fd5b6000806040838503121561439257600080fd5b8235915060208301356143a481614371565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156143ea576143ea6143af565b6040525050565b60006001600160401b0382111561440a5761440a6143af565b5060051b60200190565b600082601f83011261442557600080fd5b81356020614432826143f1565b60405161443f82826143c5565b83815260059390931b850182019282810191508684111561445f57600080fd5b8286015b8481101561447a5780358352918301918301614463565b509695505050505050565b600082601f83011261449657600080fd5b81356001600160401b038111156144af576144af6143af565b6040516144c6601f8301601f1916602001826143c5565b8181528460208386010111156144db57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561451057600080fd5b6145198661425b565b94506145276020870161425b565b935060408601356001600160401b038082111561454357600080fd5b61454f89838a01614414565b9450606088013591508082111561456557600080fd5b61457189838a01614414565b9350608088013591508082111561458757600080fd5b5061459488828901614485565b9150509295509295909350565b6000602082840312156145b357600080fd5b81356001600160601b03811681146142d457600080fd5b600080604083850312156145dd57600080fd5b82356001600160401b03808211156145f457600080fd5b818501915085601f83011261460857600080fd5b81356020614615826143f1565b60405161462282826143c5565b83815260059390931b850182019282810191508984111561464257600080fd5b948201945b83861015614667576146588661425b565b82529482019490820190614647565b9650508601359250508082111561467d57600080fd5b5061468a85828601614414565b9150509250929050565b600081518084526020808501945080840160005b838110156146c4578151875295820195908201906001016146a8565b509495945050505050565b6020815260006142d46020830184614694565b60008083601f8401126146f457600080fd5b5081356001600160401b0381111561470b57600080fd5b6020830191508360208260051b850101111561186a57600080fd5b60008060008060006060868803121561473e57600080fd5b8535945060208601356001600160401b038082111561475c57600080fd5b61476889838a016146e2565b9096509450604088013591508082111561478157600080fd5b5061478e888289016146e2565b969995985093965092949392505050565b60008083601f8401126147b157600080fd5b5081356001600160401b038111156147c857600080fd5b60208301915083602082850101111561186a57600080fd5b6000806000604084860312156147f557600080fd5b8335925060208401356001600160401b0381111561481257600080fd5b61481e8682870161479f565b9497909650939450505050565b60008060008060008060a0878903121561484457600080fd5b8635955060208701356001600160401b0381111561486157600080fd5b61486d89828a0161479f565b979a90995096976040810135976060820135975060809091013595509350505050565b600080604083850312156148a357600080fd5b6148ac8361425b565b915060208301356143a481614371565b600080602083850312156148cf57600080fd5b82356001600160401b038111156148e557600080fd5b6148f18582860161479f565b90969095509350505050565b6000806000806040858703121561491357600080fd5b84356001600160401b038082111561492a57600080fd5b614936888389016146e2565b9096509450602087013591508082111561494f57600080fd5b5061495c878288016146e2565b95989497509550505050565b6000806040838503121561497b57600080fd5b6149848361425b565b91506149926020840161425b565b90509250929050565b600080600080600060a086880312156149b357600080fd5b6149bc8661425b565b94506149ca6020870161425b565b9350604086013592506060860135915060808601356001600160401b038111156149f357600080fd5b61459488828901614485565b600080600060608486031215614a1457600080fd5b8335925060208401359150614a2b6040850161425b565b90509250925092565b600181811c90821680614a4857607f821691505b602082108103614a6857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4e45575f53544154455f4944454e544943414c5f544f5f4f4c445f5354415445604082015260600190565b60208082526019908201527f43414e4e4f545f43414c4c5f46524f4d5f434f4e545241435400000000000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561105a5761105a614b11565b60208082526013908201527213505617d4d55414131657d15610d151511151606a1b604082015260600190565b808202811582820484141761105a5761105a614b11565b6020808252601190820152701410565351539517d25390d3d4949150d5607a1b604082015260600190565b6020808252601c908201527f4d494e54494e475f5045524d414e454e544c595f44495341424c454400000000604082015260600190565b60208082526010908201526f2a3930b739b332b9103330b4b632b21760811b604082015260600190565b600082614c2757634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201614c5457614c54614b11565b5060010190565b6020808252600c908201526b1512535157d25397d41054d560a21b604082015260600190565b601f82111561270857600081815260208120601f850160051c81016020861015614ca85750805b601f850160051c820191505b818110156118e957828155600101614cb4565b6001600160401b03831115614cde57614cde6143af565b614cf283614cec8354614a34565b83614c81565b6000601f841160018114614d265760008515614d0e5750838201355b600019600387901b1c1916600186901b1783556132ee565b600083815260209020601f19861690835b82811015614d575786850135825560209485019460019092019101614d37565b5086821015614d745760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b81516001600160401b03811115614dee57614dee6143af565b614e0281614dfc8454614a34565b84614c81565b602080601f831160018114614e375760008415614e1f5750858301515b600019600386901b1c1916600185901b1785556118e9565b600085815260208120601f198616915b82811015614e6657888601518255948401946001909101908401614e47565b5085821015614e845787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090614ece90830184614318565b979650505050505050565b600060208284031215614eeb57600080fd5b81516142d4816142a1565b600060033d1115614f0f5760046000803e5060005160e01c5b90565b600060443d1015614f205790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614f4f57505050505090565b8285019150815181811115614f675750505050505090565b843d8701016020828501011115614f815750505050505090565b614f90602082860101876143c5565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b600060208284031215614ff557600080fd5b81516142d481614371565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006150a26040830185614694565b82810360208401526150b48185614694565b95945050505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906150e990830186614694565b82810360608401526150fb8186614694565b9050828103608084015261510f8185614318565b98975050505050505050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220cf2ecc751b8c1f481a2f2697aabf45c6655022b2765231cba958cfca175a54b564736f6c63430008110033

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

00000000000000000000000000000000000000000000000000027ca57357c000

-----Decoded View---------------
Arg [0] : _heymintFeePerToken (uint256): 700000000000000

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000027ca57357c000


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.