ETH Price: $2,472.08 (+0.93%)
 

Overview

Max Total Supply

45 JCP

Holders

42

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
Null: 0x000...000
0x0000000000000000000000000000000000000000
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:
JCP

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "./DefaultOperatorFilterer.sol";

error InvalidId();
error SaleInactive();
error PreSaleInactive();
error ClaimInactive();
error SoldOut();
error InvalidPrice();
error WithdrawFailed();
error InvalidQuantity();
error InvalidProof();
error AlreadyClaimed();
error InvalidBatchMint();
error MaxSupplyExceeded();

contract JCP is ERC1155, Ownable, ERC2981, DefaultOperatorFilterer {
        
    string public name;
    string public symbol;

    enum State{CLOSED, OPEN, PRESALE, CLAIM}

    struct Item {
        uint id;
        uint price;
        uint presalePrice;
        uint maxPerWallet;
        uint presaleMaxPerWallet;
        uint maxPerTransaction;
        uint presaleMaxPerTransaction;
        uint supply;
        uint presaleSupply;
        uint mintedSupply;
        State state;
        uint claimedSupply;
        uint claimCost;
        bytes32 merkleRoot;
        mapping(address => bool) whitelistClaimed;
    }


    mapping(uint => Item) public items;
    mapping(uint => string) public tokenURI;
    mapping(address =>  mapping(uint256 => uint256)) private addressMintBalance;
    
    address[] private withdrawAddresses;
    uint256[] private withdrawPercentages;

    uint public numItems = 0;

    constructor(
        string memory _name,
        string memory _symbol,
        uint96 _royaltyAmount,
        address _royaltyAddress
    ) ERC1155("") {
        name = _name;
        symbol = _symbol;
        _setDefaultRoyalty(_royaltyAddress, _royaltyAmount);
    }

    function createItem(uint _price, uint _presalePrice, uint _maxPerWallet, uint _maxPerTransaction,
        uint _presaleMaxPerWallet, uint _presaleMaxPerTransaction, uint _presaleSupply, uint _supply) 
        external onlyOwner{
        
        Item storage newItem = items[numItems];
        numItems++;

        newItem.id = numItems;
        newItem.price = _price;
        newItem.presalePrice = _presalePrice;
        newItem.maxPerWallet = _maxPerWallet;
        newItem.presaleMaxPerWallet = _presaleMaxPerWallet;
        newItem.maxPerTransaction = _maxPerTransaction;
        newItem.presaleMaxPerTransaction = _presaleMaxPerTransaction;
        require(_presaleSupply <= _supply);
        newItem.presaleSupply = _presaleSupply;
        newItem.supply = _supply;
        newItem.state = State.CLOSED;
    }

    //// minting

    modifier mintCompliance(uint _id, uint _mintAmount) {
        if(_id >= numItems) revert InvalidId();
        if(_mintAmount + (items[_id].mintedSupply + items[_id].claimedSupply)> items[_id].supply) revert MaxSupplyExceeded();
        _;
    }

    function mint(uint _id, uint _amount) external payable mintCompliance(_id, _amount){
        if(items[_id].state != State.OPEN) revert SaleInactive();
        if(_amount < 0 && _amount > items[_id].maxPerTransaction) revert InvalidQuantity();
        if(msg.value < items[_id].price * _amount) revert InvalidPrice();
        if(addressMintBalance[msg.sender][_id] + _amount > items[_id].maxPerWallet) revert InvalidQuantity();
        addressMintBalance[msg.sender][_id] += _amount;
        items[_id].mintedSupply += _amount;
        
        _mint(msg.sender, _id, _amount, "");
    }

    function presaleMint(uint _id, uint256 _amount, bytes32[] calldata merkleProof) external payable mintCompliance(_id, _amount){
        if(items[_id].state != State.PRESALE) revert PreSaleInactive();
        if(_amount < 0 && _amount > items[_id].presaleMaxPerTransaction) revert InvalidQuantity();
        if(msg.value < items[_id].presalePrice * _amount) revert InvalidPrice();
        if(items[_id].whitelistClaimed[msg.sender]) revert AlreadyClaimed();
        if(!MerkleProof.verify(merkleProof, items[_id].merkleRoot, keccak256(abi.encodePacked(msg.sender, _amount)))) revert InvalidProof();
        if(addressMintBalance[msg.sender][_id] + _amount > items[_id].presaleMaxPerWallet) revert InvalidQuantity();
        addressMintBalance[msg.sender][_id] += _amount;
        items[_id].mintedSupply += _amount;
        items[_id].whitelistClaimed[msg.sender] = true;
        
        _mint(msg.sender, _id, _amount, "");
    }

    function teamMint(address _to, uint _id, uint _amount) external onlyOwner {
        _mint(_to, _id, _amount, "");
    }

    function teamMintBatch(address _to, uint[] memory _ids, uint[] memory _amounts) external onlyOwner {
        _mintBatch(_to, _ids, _amounts, "");
    }

    //// burning

    function burnToClaim(uint _id, uint _amount) external payable {
        if(items[_id].state != State.CLAIM) revert ClaimInactive();
        if(msg.value < items[_id].claimCost * _amount) revert InvalidPrice();
        addressMintBalance[msg.sender][_id] -= _amount;
        items[_id].mintedSupply -= _amount;
        items[_id].claimedSupply += _amount;
        _burn(msg.sender, _id, _amount);
    }

    function burnBatch(uint[] memory _ids, uint[] memory _amounts) external onlyOwner {
        _burnBatch(msg.sender, _ids, _amounts);
    }

    function burnForMint(address _from, uint[] memory _burnIds, uint[] memory _burnAmounts, uint[] memory _mintIds, uint[] memory _mintAmounts) external onlyOwner {
        _burnBatch(_from, _burnIds, _burnAmounts);
        _mintBatch(_from, _mintIds, _mintAmounts, "");
    }

    //// getters & setters

    function setURI(uint _id, string memory _uri) external onlyOwner {
        tokenURI[_id] = _uri;
        emit URI(_uri, _id);
    }

    function uri(uint _id) public override view returns (string memory) {
        return tokenURI[_id];
    }

    function setPrice(uint _id, uint _amount) external onlyOwner {
        items[_id].price = _amount;
    }

    function getPrice(uint _id) public view returns(uint) {
        return items[_id].price;
    }

    function setPresalePrice(uint _id, uint _presalePrice) external onlyOwner {
        items[_id].presalePrice = _presalePrice;
    }

    function getPresalePrice(uint _id) public view returns(uint) {
        return items[_id].presalePrice;
    }

    function setMaxPerWallet(uint _id, uint _maxPerWallet) external onlyOwner {
        items[_id].maxPerWallet = _maxPerWallet;
    }

    function getMaxPerWallet(uint _id) public view returns(uint) {
        return items[_id].maxPerWallet;
    }

    function setPresaleMaxPerWallet(uint _id, uint _presaleMaxPerWallet) external onlyOwner {
        items[_id].presaleMaxPerWallet = _presaleMaxPerWallet;
    }

    function getPresaleMaxPerWallet(uint _id) public view returns(uint) {
        return items[_id].presaleMaxPerWallet;
    }

    function setMaxPerTransaction(uint _id, uint _maxPerTransaction) external onlyOwner {
        items[_id].maxPerTransaction = _maxPerTransaction;
    }

    function getMaxPerTransaction(uint _id) public view returns(uint) {
        return items[_id].maxPerTransaction;
    }

    function setPresaleMaxPerTransaction(uint _id, uint _presaleMaxPerTransaction) external onlyOwner {
        items[_id].presaleMaxPerTransaction = _presaleMaxPerTransaction;
    }

    function getPresaleMaxPerTransaction(uint _id) public view returns(uint) {
        return items[_id].presaleMaxPerTransaction;
    }

    function setPresaleSupply(uint _id, uint _presaleSupply) external onlyOwner {
        items[_id].presaleSupply = _presaleSupply;
    }

    function getPresaleSupply(uint _id) public view returns(uint) {
        return items[_id].presaleSupply;
    }

    function setSupply(uint _id, uint _supply) external onlyOwner {
        items[_id].supply = _supply;
    }

    function getSupply(uint _id) public view returns(uint) {
        return items[_id].supply;
    }

    function setState(uint _id, State _state) external onlyOwner {
        items[_id].state = _state;
    }

    function getState(uint _id) public view returns(State) {
        return items[_id].state;
    }

    function getWhitelistClaimed(uint _id, address _adre) public view returns(bool) {
        return items[_id].whitelistClaimed[_adre];
    }

    function getMintedSupply(uint _id) public view returns(uint) {
        return items[_id].mintedSupply;
    }

    function setMerkleRoot(uint _id, bytes32 _merkleRoot) external onlyOwner {
        items[_id].merkleRoot = _merkleRoot;
    }

    function setClaimCost(uint _id, uint _claimCost) external onlyOwner {
        items[_id].claimCost = _claimCost;
    }

    function getClaimCost(uint _id) public view returns(uint) {
        return items[_id].claimCost;
    }

    function getClaimedSupply(uint _id) public view returns(uint) {
        return items[_id].claimedSupply;
    }

    function setWithdrawAddresses(address[] memory _withdrawAddresses, uint256[] memory _withdrawPercentages) external onlyOwner {
        withdrawAddresses = _withdrawAddresses;
        withdrawPercentages = _withdrawPercentages;
    }

    ////withdraw & royalty

    function _withdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        if (!success) revert WithdrawFailed();
    }

    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;

        for (uint256 i; i < withdrawAddresses.length; i++) {
            _withdraw(withdrawAddresses[i], (balance * withdrawPercentages[i]) / 100);
        }
    }

    function setDefaulRoyaltyInfo(address receiver, uint96 feeBasisPoints) external onlyOwner {
        _setDefaultRoyalty(receiver, feeBasisPoints);
    }

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

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

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

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

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

contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

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

File 3 of 17 : 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 4 of 17 : 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 5 of 17 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

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

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

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

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

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

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

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

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

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

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

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

File 6 of 17 : 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 7 of 17 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 or 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 or 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 8 of 17 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

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

contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry constant operatorFilterRegistry =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

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

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

File 9 of 17 : 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 10 of 17 : 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 11 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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 12 of 17 : 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 13 of 17 : 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 14 of 17 : 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 15 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";

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

File 17 of 17 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint96","name":"_royaltyAmount","type":"uint96"},{"internalType":"address","name":"_royaltyAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyClaimed","type":"error"},{"inputs":[],"name":"ClaimInactive","type":"error"},{"inputs":[],"name":"InvalidId","type":"error"},{"inputs":[],"name":"InvalidPrice","type":"error"},{"inputs":[],"name":"InvalidProof","type":"error"},{"inputs":[],"name":"InvalidQuantity","type":"error"},{"inputs":[],"name":"MaxSupplyExceeded","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"PreSaleInactive","type":"error"},{"inputs":[],"name":"SaleInactive","type":"error"},{"inputs":[],"name":"WithdrawFailed","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":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"},{"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":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256[]","name":"_burnIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_burnAmounts","type":"uint256[]"},{"internalType":"uint256[]","name":"_mintIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_mintAmounts","type":"uint256[]"}],"name":"burnForMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burnToClaim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_presalePrice","type":"uint256"},{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"_maxPerTransaction","type":"uint256"},{"internalType":"uint256","name":"_presaleMaxPerWallet","type":"uint256"},{"internalType":"uint256","name":"_presaleMaxPerTransaction","type":"uint256"},{"internalType":"uint256","name":"_presaleSupply","type":"uint256"},{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"createItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getClaimCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getClaimedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getMaxPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getMaxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getMintedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getPresaleMaxPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getPresaleMaxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getPresalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getPresaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getState","outputs":[{"internalType":"enum JCP.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_adre","type":"address"}],"name":"getWhitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"items","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"presalePrice","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"presaleMaxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxPerTransaction","type":"uint256"},{"internalType":"uint256","name":"presaleMaxPerTransaction","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"presaleSupply","type":"uint256"},{"internalType":"uint256","name":"mintedSupply","type":"uint256"},{"internalType":"enum JCP.State","name":"state","type":"uint8"},{"internalType":"uint256","name":"claimedSupply","type":"uint256"},{"internalType":"uint256","name":"claimCost","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numItems","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_claimCost","type":"uint256"}],"name":"setClaimCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeBasisPoints","type":"uint96"}],"name":"setDefaulRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_maxPerTransaction","type":"uint256"}],"name":"setMaxPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_presaleMaxPerTransaction","type":"uint256"}],"name":"setPresaleMaxPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_presaleMaxPerWallet","type":"uint256"}],"name":"setPresaleMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_presalePrice","type":"uint256"}],"name":"setPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_presaleSupply","type":"uint256"}],"name":"setPresaleSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"enum JCP.State","name":"_state","type":"uint8"}],"name":"setState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_withdrawAddresses","type":"address[]"},{"internalType":"uint256[]","name":"_withdrawPercentages","type":"uint256[]"}],"name":"setWithdrawAddresses","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":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"teamMintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600d553480156200001657600080fd5b5060405162003f1238038062003f12833981016040819052620000399162000427565b733cc6cdda760b79bafa08df41ecfa224f810dceb66001604051806020016040528060008152506200007181620001f960201b60201c565b506200007d336200020b565b6daaeb6d7670e522a718067333cd4e3b15620001c25780156200011057604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620000f157600080fd5b505af115801562000106573d6000803e3d6000fd5b50505050620001c2565b6001600160a01b03821615620001615760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000d6565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001a857600080fd5b505af1158015620001bd573d6000803e3d6000fd5b505050505b5060069050620001d3858262000562565b506007620001e2848262000562565b50620001ef81836200025d565b505050506200062e565b600262000207828262000562565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620002d15760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620003295760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620002c8565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600455565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200038a57600080fd5b81516001600160401b0380821115620003a757620003a762000362565b604051601f8301601f19908116603f01168101908282118183101715620003d257620003d262000362565b81604052838152602092508683858801011115620003ef57600080fd5b600091505b83821015620004135785820183015181830184015290820190620003f4565b600093810190920192909252949350505050565b600080600080608085870312156200043e57600080fd5b84516001600160401b03808211156200045657600080fd5b620004648883890162000378565b955060208701519150808211156200047b57600080fd5b506200048a8782880162000378565b604087015190945090506001600160601b0381168114620004aa57600080fd5b60608601519092506001600160a01b0381168114620004c857600080fd5b939692955090935050565b600181811c90821680620004e857607f821691505b6020821081036200050957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200055d57600081815260208120601f850160051c81016020861015620005385750805b601f850160051c820191505b81811015620005595782815560010162000544565b5050505b505050565b81516001600160401b038111156200057e576200057e62000362565b62000596816200058f8454620004d3565b846200050f565b602080601f831160018114620005ce5760008415620005b55750858301515b600019600386901b1c1916600185901b17855562000559565b600085815260208120601f198616915b82811015620005ff57888601518255948401946001909101908401620005de565b50858210156200061e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6138d4806200063e6000396000f3fe6080604052600436106103195760003560e01c806383ca4b6f116101ab578063c33c71a9116100f7578063f2fde38b11610095578063f77ee79d1161006f578063f77ee79d14610ae9578063f7d9757714610b19578063fa2fc9f814610b39578063fc784d4914610b5957600080fd5b8063f2fde38b14610a78578063f3b3fb4814610a98578063f4f4eadb14610ac957600080fd5b8063e7572230116100d1578063e7572230146109af578063e7c8d22d146109df578063e985e9c514610a0f578063f242432a14610a5857600080fd5b8063c33c71a91461093f578063c8280b6b1461095f578063c87b56dd1461098f57600080fd5b80639917965111610164578063a8b442061161013e578063a8b4420614610821578063aa5d792814610851578063bfb231d214610871578063c2bc980e1461091f57600080fd5b806399179651146107b15780639f19f982146107d1578063a22cb4651461080157600080fd5b806383ca4b6f146106f4578063862440e2146107145780638da5cb5b1461073457806391b83ca51461075c57806395d89b411461077c578063965ff5bc1461079157600080fd5b80632eb2c2d61161026a5780635bfadae41161022357806367e6cea1116101fd57806367e6cea114610645578063715018a6146106655780637fc5d7301461067a5780637fd7e9c1146106c457600080fd5b80635bfadae4146105df57806360004a86146105f55780636372f6fe1461061557600080fd5b80632eb2c2d6146104fd5780633ccfd60b1461051d57806344c9af28146105325780634e1273f414610572578063510f41041461059f57806356ad15f6146105bf57600080fd5b806318712c21116102d75780631e8d153a116102b15780631e8d153a1461045b578063219640b51461048b57806328183da6146104ab5780632a55205a146104be57600080fd5b806318712c21146104155780631b2ef1ca146104355780631b59169d1461044857600080fd5b8062fdd58e1461031e57806301ffc9a71461035157806306fdde0314610381578063084e6adf146103a35780630a4a2ceb146103d35780630e89341c146103f5575b600080fd5b34801561032a57600080fd5b5061033e6103393660046129cd565b610b79565b6040519081526020015b60405180910390f35b34801561035d57600080fd5b5061037161036c366004612a0d565b610c12565b6040519015158152602001610348565b34801561038d57600080fd5b50610396610c1d565b6040516103489190612a70565b3480156103af57600080fd5b5061033e6103be366004612a83565b60009081526008602052604090206009015490565b3480156103df57600080fd5b506103f36103ee366004612a9c565b610cab565b005b34801561040157600080fd5b50610396610410366004612a83565b610cc8565b34801561042157600080fd5b506103f3610430366004612a9c565b610d6a565b6103f3610443366004612a9c565b610d87565b6103f3610456366004612abe565b610f4a565b34801561046757600080fd5b5061033e610476366004612a83565b60009081526008602052604090206002015490565b34801561049757600080fd5b506103f36104a6366004612a9c565b611223565b6103f36104b9366004612a9c565b611242565b3480156104ca57600080fd5b506104de6104d9366004612a9c565b61134f565b604080516001600160a01b039093168352602083019190915201610348565b34801561050957600080fd5b506103f3610518366004612c93565b6113fb565b34801561052957600080fd5b506103f36114b8565b34801561053e57600080fd5b5061056561054d366004612a83565b6000908152600860205260409020600a015460ff1690565b6040516103489190612d74565b34801561057e57600080fd5b5061059261058d366004612d82565b61154e565b6040516103489190612e87565b3480156105ab57600080fd5b506103f36105ba366004612e9a565b611677565b3480156105cb57600080fd5b506103f36105da366004612a9c565b6116a5565b3480156105eb57600080fd5b5061033e600d5481565b34801561060157600080fd5b506103f3610610366004612f4a565b6116c2565b34801561062157600080fd5b5061033e610630366004612a83565b60009081526008602052604090206005015490565b34801561065157600080fd5b506103f3610660366004612d82565b6116d4565b34801561067157600080fd5b506103f3611708565b34801561068657600080fd5b50610371610695366004612f8d565b60008281526008602090815260408083206001600160a01b0385168452600e0190915290205460ff1692915050565b3480156106d057600080fd5b5061033e6106df366004612a83565b6000908152600860205260409020600b015490565b34801561070057600080fd5b506103f361070f366004612fb9565b61171c565b34801561072057600080fd5b506103f361072f366004613005565b61172f565b34801561074057600080fd5b506003546040516001600160a01b039091168152602001610348565b34801561076857600080fd5b506103f3610777366004612a9c565b61178c565b34801561078857600080fd5b506103966117a9565b34801561079d57600080fd5b506103f36107ac366004613055565b6117b6565b3480156107bd57600080fd5b506103f36107cc366004612a9c565b6117f5565b3480156107dd57600080fd5b5061033e6107ec366004612a83565b6000908152600860205260409020600c015490565b34801561080d57600080fd5b506103f361081c36600461308c565b611812565b34801561082d57600080fd5b5061033e61083c366004612a83565b60009081526008602052604090206004015490565b34801561085d57600080fd5b506103f361086c3660046130b8565b61181d565b34801561087d57600080fd5b5061090561088c366004612a83565b600860205280600052604060002060009150905080600001549080600101549080600201549080600301549080600401549080600501549080600601549080600701549080600801549080600901549080600a0160009054906101000a900460ff169080600b01549080600c01549080600d015490508e565b6040516103489e9d9c9b9a9998979695949392919061312b565b34801561092b57600080fd5b506103f361093a3660046131a5565b611840565b34801561094b57600080fd5b506103f361095a366004612a9c565b6118c6565b34801561096b57600080fd5b5061033e61097a366004612a83565b60009081526008602052604090206006015490565b34801561099b57600080fd5b506103966109aa366004612a83565b6118e3565b3480156109bb57600080fd5b5061033e6109ca366004612a83565b60009081526008602052604090206001015490565b3480156109eb57600080fd5b5061033e6109fa366004612a83565b60009081526008602052604090206003015490565b348015610a1b57600080fd5b50610371610a2a3660046131fa565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610a6457600080fd5b506103f3610a73366004613224565b6118fc565b348015610a8457600080fd5b506103f3610a93366004613288565b6119b2565b348015610aa457600080fd5b5061033e610ab3366004612a83565b6000908152600860208190526040909120015490565b348015610ad557600080fd5b506103f3610ae4366004612a9c565b611a2b565b348015610af557600080fd5b5061033e610b04366004612a83565b60009081526008602052604090206007015490565b348015610b2557600080fd5b506103f3610b34366004612a9c565b611a48565b348015610b4557600080fd5b506103f3610b543660046132a3565b611a65565b348015610b6557600080fd5b506103f3610b74366004612a9c565b611a88565b60006001600160a01b038316610be95760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b6000610c0c82611aa5565b60068054610c2a906132d6565b80601f0160208091040260200160405190810160405280929190818152602001828054610c56906132d6565b8015610ca35780601f10610c7857610100808354040283529160200191610ca3565b820191906000526020600020905b815481529060010190602001808311610c8657829003601f168201915b505050505081565b610cb3611aca565b60009182526008602052604090912060040155565b6000818152600960205260409020805460609190610ce5906132d6565b80601f0160208091040260200160405190810160405280929190818152602001828054610d11906132d6565b8015610d5e5780601f10610d3357610100808354040283529160200191610d5e565b820191906000526020600020905b815481529060010190602001808311610d4157829003601f168201915b50505050509050919050565b610d72611aca565b600091825260086020526040909120600d0155565b8181600d548210610dab57604051631bf4348160e31b815260040160405180910390fd5b60008281526008602052604090206007810154600b8201546009909201549091610dd491613326565b610dde9083613326565b1115610dfd57604051638a164f6360e01b815260040160405180910390fd5b60016000858152600860205260409020600a015460ff166003811115610e2557610e25612d3c565b14610e4357604051630fe219dd60e21b815260040160405180910390fd5b600084815260086020526040902060010154610e60908490613339565b341015610e7f5760405162bfc92160e01b815260040160405180910390fd5b600084815260086020908152604080832060030154338452600a835281842088855290925290912054610eb3908590613326565b1115610ed25760405163524f409b60e01b815260040160405180910390fd5b336000908152600a6020908152604080832087845290915281208054859290610efc908490613326565b909155505060008481526008602052604081206009018054859290610f22908490613326565b92505081905550610f4433858560405180602001604052806000815250611b24565b50505050565b8383600d548210610f6e57604051631bf4348160e31b815260040160405180910390fd5b60008281526008602052604090206007810154600b8201546009909201549091610f9791613326565b610fa19083613326565b1115610fc057604051638a164f6360e01b815260040160405180910390fd5b60026000878152600860205260409020600a015460ff166003811115610fe857610fe8612d3c565b146110065760405163fc7d083760e01b815260040160405180910390fd5b600086815260086020526040902060020154611023908690613339565b3410156110425760405162bfc92160e01b815260040160405180910390fd5b6000868152600860209081526040808320338452600e0190915290205460ff161561108057604051630c8d9eab60e31b815260040160405180910390fd5b61111384848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508b815260086020908152604091829020600d015491519194506110f893503392508b910160609290921b6bffffffffffffffffffffffff19168252601482015260340190565b60405160208183030381529060405280519060200120611bfe565b611130576040516309bde33960e01b815260040160405180910390fd5b600086815260086020908152604080832060040154338452600a83528184208a855290925290912054611164908790613326565b11156111835760405163524f409b60e01b815260040160405180910390fd5b336000908152600a60209081526040808320898452909152812080548792906111ad908490613326565b9091555050600086815260086020526040812060090180548792906111d3908490613326565b9091555050600086815260086020908152604080832033808552600e9091018352818420805460ff19166001179055815192830190915291815261121b919088908890611b24565b505050505050565b61122b611aca565b600091825260086020819052604090922090910155565b60036000838152600860205260409020600a015460ff16600381111561126a5761126a612d3c565b146112885760405163c84651bb60e01b815260040160405180910390fd5b6000828152600860205260409020600c01546112a5908290613339565b3410156112c45760405162bfc92160e01b815260040160405180910390fd5b336000908152600a60209081526040808320858452909152812080548392906112ee908490613350565b909155505060008281526008602052604081206009018054839290611314908490613350565b90915550506000828152600860205260408120600b01805483929061133a908490613326565b9091555061134b9050338383611c14565b5050565b60008281526005602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916113c45750604080518082019091526004546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906113e3906001600160601b031687613339565b6113ed9190613363565b915196919550909350505050565b6daaeb6d7670e522a718067333cd4e3b156114a457604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015611461573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114859190613385565b6114a457604051633b79c77360e21b8152336004820152602401610be0565b6114b18585858585611d18565b5050505050565b6114c0611aca565b4760005b600b5481101561134b5761153c600b82815481106114e4576114e46133a2565b9060005260206000200160009054906101000a90046001600160a01b03166064600c8481548110611517576115176133a2565b90600052602060002001548561152d9190613339565b6115379190613363565b611d5d565b80611546816133b8565b9150506114c4565b606081518351146115b35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610be0565b600083516001600160401b038111156115ce576115ce612b40565b6040519080825280602002602001820160405280156115f7578160200160208202803683370190505b50905060005b845181101561166f5761164285828151811061161b5761161b6133a2565b6020026020010151858381518110611635576116356133a2565b6020026020010151610b79565b828281518110611654576116546133a2565b6020908102919091010152611668816133b8565b90506115fd565b509392505050565b61167f611aca565b61168a858585611dd1565b6114b185838360405180602001604052806000815250611f5b565b6116ad611aca565b60009182526008602052604090912060030155565b6116ca611aca565b61134b82826120a6565b6116dc611aca565b81516116ef90600b9060208501906128fc565b50805161170390600c906020840190612961565b505050565b611710611aca565b61171a60006121a3565b565b611724611aca565b61134b338383611dd1565b611737611aca565b600082815260096020526040902061174f8282613417565b50817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b826040516117809190612a70565b60405180910390a25050565b611794611aca565b60009182526008602052604090912060020155565b60078054610c2a906132d6565b6117be611aca565b6000828152600860205260409020600a01805482919060ff191660018360038111156117ec576117ec612d3c565b02179055505050565b6117fd611aca565b60009182526008602052604090912060060155565b61134b3383836121f5565b611825611aca565b61170383838360405180602001604052806000815250611f5b565b611848611aca565b600d805460008181526008602052604081209290611865836133b8565b9091555050600d548155600181018990556002810188905560038101879055600481018590556005810186905560068101849055818311156118a657600080fd5b60088101929092556007820155600a01805460ff19169055505050505050565b6118ce611aca565b60009182526008602052604090912060050155565b60096020526000908152604090208054610c2a906132d6565b6daaeb6d7670e522a718067333cd4e3b156119a557604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015611962573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119869190613385565b6119a557604051633b79c77360e21b8152336004820152602401610be0565b6114b185858585856122d5565b6119ba611aca565b6001600160a01b038116611a1f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610be0565b611a28816121a3565b50565b611a33611aca565b600091825260086020526040909120600c0155565b611a50611aca565b60009182526008602052604090912060010155565b611a6d611aca565b61170383838360405180602001604052806000815250611b24565b611a90611aca565b60009182526008602052604090912060070155565b60006001600160e01b0319821663152a902d60e11b1480610c0c5750610c0c8261231a565b6003546001600160a01b0316331461171a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be0565b6001600160a01b038416611b4a5760405162461bcd60e51b8152600401610be0906134d6565b336000611b568561236a565b90506000611b638561236a565b90506000868152602081815260408083206001600160a01b038b16845290915281208054879290611b95908490613326565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611bf5836000898989896123b5565b50505050505050565b600082611c0b8584612510565b14949350505050565b6001600160a01b038316611c3a5760405162461bcd60e51b8152600401610be090613517565b336000611c468461236a565b90506000611c538461236a565b60408051602080820183526000918290528882528181528282206001600160a01b038b1683529052205490915084811015611ca05760405162461bcd60e51b8152600401610be09061355a565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4604080516020810190915260009052611bf5565b6001600160a01b038516331480611d345750611d348533610a2a565b611d505760405162461bcd60e51b8152600401610be09061359e565b6114b18585858585612555565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611daa576040519150601f19603f3d011682016040523d82523d6000602084013e611daf565b606091505b505090508061170357604051631d42c86760e21b815260040160405180910390fd5b6001600160a01b038316611df75760405162461bcd60e51b8152600401610be090613517565b8051825114611e185760405162461bcd60e51b8152600401610be0906135ec565b604080516020810190915260009081905233905b8351811015611eee576000848281518110611e4957611e496133a2565b602002602001015190506000848381518110611e6757611e676133a2565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611eb75760405162461bcd60e51b8152600401610be09061355a565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611ee6816133b8565b915050611e2c565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611f3f929190613634565b60405180910390a4604080516020810190915260009052610f44565b6001600160a01b038416611f815760405162461bcd60e51b8152600401610be0906134d6565b8151835114611fa25760405162461bcd60e51b8152600401610be0906135ec565b3360005b845181101561203e57838181518110611fc157611fc16133a2565b6020026020010151600080878481518110611fde57611fde6133a2565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546120269190613326565b90915550819050612036816133b8565b915050611fa6565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161208f929190613634565b60405180910390a46114b1816000878787876126e5565b6127106001600160601b03821611156121145760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610be0565b6001600160a01b03821661216a5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610be0565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600455565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036122685760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610be0565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0385163314806122f157506122f18533610a2a565b61230d5760405162461bcd60e51b8152600401610be09061359e565b6114b185858585856127a0565b60006001600160e01b03198216636cdb3d1360e11b148061234b57506001600160e01b031982166303a24d0760e21b145b80610c0c57506301ffc9a760e01b6001600160e01b0319831614610c0c565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106123a4576123a46133a2565b602090810291909101015292915050565b6001600160a01b0384163b1561121b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906123f99089908990889088908890600401613662565b6020604051808303816000875af1925050508015612434575060408051601f3d908101601f19168201909252612431918101906136a7565b60015b6124e0576124406136c4565b806308c379a00361247957506124546136e0565b8061245f575061247b565b8060405162461bcd60e51b8152600401610be09190612a70565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610be0565b6001600160e01b0319811663f23a6e6160e01b14611bf55760405162461bcd60e51b8152600401610be090613769565b600081815b845181101561166f5761254182868381518110612534576125346133a2565b60200260200101516128ca565b91508061254d816133b8565b915050612515565b81518351146125765760405162461bcd60e51b8152600401610be0906135ec565b6001600160a01b03841661259c5760405162461bcd60e51b8152600401610be0906137b1565b3360005b84518110156126835760008582815181106125bd576125bd6133a2565b6020026020010151905060008583815181106125db576125db6133a2565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561262b5760405162461bcd60e51b8152600401610be0906137f6565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612668908490613326565b925050819055505050508061267c906133b8565b90506125a0565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516126d3929190613634565b60405180910390a461121b8187878787875b6001600160a01b0384163b1561121b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906127299089908990889088908890600401613840565b6020604051808303816000875af1925050508015612764575060408051601f3d908101601f19168201909252612761918101906136a7565b60015b612770576124406136c4565b6001600160e01b0319811663bc197c8160e01b14611bf55760405162461bcd60e51b8152600401610be090613769565b6001600160a01b0384166127c65760405162461bcd60e51b8152600401610be0906137b1565b3360006127d28561236a565b905060006127df8561236a565b90506000868152602081815260408083206001600160a01b038c168452909152902054858110156128225760405162461bcd60e51b8152600401610be0906137f6565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a1682528120805488929061285f908490613326565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46128bf848a8a8a8a8a6123b5565b505050505050505050565b60008183106128e65760008281526020849052604090206128f5565b60008381526020839052604090205b9392505050565b828054828255906000526020600020908101928215612951579160200282015b8281111561295157825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061291c565b5061295d92915061299c565b5090565b828054828255906000526020600020908101928215612951579160200282015b82811115612951578251825591602001919060010190612981565b5b8082111561295d576000815560010161299d565b80356001600160a01b03811681146129c857600080fd5b919050565b600080604083850312156129e057600080fd5b6129e9836129b1565b946020939093013593505050565b6001600160e01b031981168114611a2857600080fd5b600060208284031215612a1f57600080fd5b81356128f5816129f7565b6000815180845260005b81811015612a5057602081850181015186830182015201612a34565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006128f56020830184612a2a565b600060208284031215612a9557600080fd5b5035919050565b60008060408385031215612aaf57600080fd5b50508035926020909101359150565b60008060008060608587031215612ad457600080fd5b843593506020850135925060408501356001600160401b0380821115612af957600080fd5b818701915087601f830112612b0d57600080fd5b813581811115612b1c57600080fd5b8860208260051b8501011115612b3157600080fd5b95989497505060200194505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612b7b57612b7b612b40565b6040525050565b60006001600160401b03821115612b9b57612b9b612b40565b5060051b60200190565b600082601f830112612bb657600080fd5b81356020612bc382612b82565b604051612bd08282612b56565b83815260059390931b8501820192828101915086841115612bf057600080fd5b8286015b84811015612c0b5780358352918301918301612bf4565b509695505050505050565b60006001600160401b03831115612c2f57612c2f612b40565b604051612c46601f8501601f191660200182612b56565b809150838152848484011115612c5b57600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612c8457600080fd5b6128f583833560208501612c16565b600080600080600060a08688031215612cab57600080fd5b612cb4866129b1565b9450612cc2602087016129b1565b935060408601356001600160401b0380821115612cde57600080fd5b612cea89838a01612ba5565b94506060880135915080821115612d0057600080fd5b612d0c89838a01612ba5565b93506080880135915080821115612d2257600080fd5b50612d2f88828901612c73565b9150509295509295909350565b634e487b7160e01b600052602160045260246000fd5b60048110612d7057634e487b7160e01b600052602160045260246000fd5b9052565b60208101610c0c8284612d52565b60008060408385031215612d9557600080fd5b82356001600160401b0380821115612dac57600080fd5b818501915085601f830112612dc057600080fd5b81356020612dcd82612b82565b604051612dda8282612b56565b83815260059390931b8501820192828101915089841115612dfa57600080fd5b948201945b83861015612e1f57612e10866129b1565b82529482019490820190612dff565b96505086013592505080821115612e3557600080fd5b50612e4285828601612ba5565b9150509250929050565b600081518084526020808501945080840160005b83811015612e7c57815187529582019590820190600101612e60565b509495945050505050565b6020815260006128f56020830184612e4c565b600080600080600060a08688031215612eb257600080fd5b612ebb866129b1565b945060208601356001600160401b0380821115612ed757600080fd5b612ee389838a01612ba5565b95506040880135915080821115612ef957600080fd5b612f0589838a01612ba5565b94506060880135915080821115612f1b57600080fd5b612f2789838a01612ba5565b93506080880135915080821115612f3d57600080fd5b50612d2f88828901612ba5565b60008060408385031215612f5d57600080fd5b612f66836129b1565b915060208301356001600160601b0381168114612f8257600080fd5b809150509250929050565b60008060408385031215612fa057600080fd5b82359150612fb0602084016129b1565b90509250929050565b60008060408385031215612fcc57600080fd5b82356001600160401b0380821115612fe357600080fd5b612fef86838701612ba5565b93506020850135915080821115612e3557600080fd5b6000806040838503121561301857600080fd5b8235915060208301356001600160401b0381111561303557600080fd5b8301601f8101851361304657600080fd5b612e4285823560208401612c16565b6000806040838503121561306857600080fd5b82359150602083013560048110612f8257600080fd5b8015158114611a2857600080fd5b6000806040838503121561309f57600080fd5b6130a8836129b1565b91506020830135612f828161307e565b6000806000606084860312156130cd57600080fd5b6130d6846129b1565b925060208401356001600160401b03808211156130f257600080fd5b6130fe87838801612ba5565b9350604086013591508082111561311457600080fd5b5061312186828701612ba5565b9150509250925092565b60006101c0820190508f82528e60208301528d60408301528c60608301528b60808301528a60a08301528960c08301528860e0830152876101008301528661012083015261317d610140830187612d52565b8461016083015283610180830152826101a08301529f9e505050505050505050505050505050565b600080600080600080600080610100898b0312156131c257600080fd5b505086359860208801359850604088013597606081013597506080810135965060a0810135955060c0810135945060e0013592509050565b6000806040838503121561320d57600080fd5b613216836129b1565b9150612fb0602084016129b1565b600080600080600060a0868803121561323c57600080fd5b613245866129b1565b9450613253602087016129b1565b9350604086013592506060860135915060808601356001600160401b0381111561327c57600080fd5b612d2f88828901612c73565b60006020828403121561329a57600080fd5b6128f5826129b1565b6000806000606084860312156132b857600080fd5b6132c1846129b1565b95602085013595506040909401359392505050565b600181811c908216806132ea57607f821691505b60208210810361330a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c0c57610c0c613310565b8082028115828204841417610c0c57610c0c613310565b81810381811115610c0c57610c0c613310565b60008261338057634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561339757600080fd5b81516128f58161307e565b634e487b7160e01b600052603260045260246000fd5b6000600182016133ca576133ca613310565b5060010190565b601f82111561170357600081815260208120601f850160051c810160208610156133f85750805b601f850160051c820191505b8181101561121b57828155600101613404565b81516001600160401b0381111561343057613430612b40565b6134448161343e84546132d6565b846133d1565b602080601f83116001811461347957600084156134615750858301515b600019600386901b1c1916600185901b17855561121b565b600085815260208120601f198616915b828110156134a857888601518255948401946001909101908401613489565b50858210156134c65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b6040815260006136476040830185612e4c565b82810360208401526136598185612e4c565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061369c90830184612a2a565b979650505050505050565b6000602082840312156136b957600080fd5b81516128f5816129f7565b600060033d11156136dd5760046000803e5060005160e01c5b90565b600060443d10156136ee5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561371d57505050505090565b82850191508151818111156137355750505050505090565b843d870101602082850101111561374f5750505050505090565b61375e60208286010187612b56565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061386c90830186612e4c565b828103606084015261387e8186612e4c565b905082810360808401526138928185612a2a565b9897505050505050505056fea2646970667358221220311626f8987f17ec582124cc0d32a99f93880f1d0a86e18e86c93d978619ea0764736f6c63430008110033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000050000000000000000000000001b65a9816ef95229acc3384e67956a7dfab2b87c00000000000000000000000000000000000000000000000000000000000000084a435065656e657900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034a43500000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103195760003560e01c806383ca4b6f116101ab578063c33c71a9116100f7578063f2fde38b11610095578063f77ee79d1161006f578063f77ee79d14610ae9578063f7d9757714610b19578063fa2fc9f814610b39578063fc784d4914610b5957600080fd5b8063f2fde38b14610a78578063f3b3fb4814610a98578063f4f4eadb14610ac957600080fd5b8063e7572230116100d1578063e7572230146109af578063e7c8d22d146109df578063e985e9c514610a0f578063f242432a14610a5857600080fd5b8063c33c71a91461093f578063c8280b6b1461095f578063c87b56dd1461098f57600080fd5b80639917965111610164578063a8b442061161013e578063a8b4420614610821578063aa5d792814610851578063bfb231d214610871578063c2bc980e1461091f57600080fd5b806399179651146107b15780639f19f982146107d1578063a22cb4651461080157600080fd5b806383ca4b6f146106f4578063862440e2146107145780638da5cb5b1461073457806391b83ca51461075c57806395d89b411461077c578063965ff5bc1461079157600080fd5b80632eb2c2d61161026a5780635bfadae41161022357806367e6cea1116101fd57806367e6cea114610645578063715018a6146106655780637fc5d7301461067a5780637fd7e9c1146106c457600080fd5b80635bfadae4146105df57806360004a86146105f55780636372f6fe1461061557600080fd5b80632eb2c2d6146104fd5780633ccfd60b1461051d57806344c9af28146105325780634e1273f414610572578063510f41041461059f57806356ad15f6146105bf57600080fd5b806318712c21116102d75780631e8d153a116102b15780631e8d153a1461045b578063219640b51461048b57806328183da6146104ab5780632a55205a146104be57600080fd5b806318712c21146104155780631b2ef1ca146104355780631b59169d1461044857600080fd5b8062fdd58e1461031e57806301ffc9a71461035157806306fdde0314610381578063084e6adf146103a35780630a4a2ceb146103d35780630e89341c146103f5575b600080fd5b34801561032a57600080fd5b5061033e6103393660046129cd565b610b79565b6040519081526020015b60405180910390f35b34801561035d57600080fd5b5061037161036c366004612a0d565b610c12565b6040519015158152602001610348565b34801561038d57600080fd5b50610396610c1d565b6040516103489190612a70565b3480156103af57600080fd5b5061033e6103be366004612a83565b60009081526008602052604090206009015490565b3480156103df57600080fd5b506103f36103ee366004612a9c565b610cab565b005b34801561040157600080fd5b50610396610410366004612a83565b610cc8565b34801561042157600080fd5b506103f3610430366004612a9c565b610d6a565b6103f3610443366004612a9c565b610d87565b6103f3610456366004612abe565b610f4a565b34801561046757600080fd5b5061033e610476366004612a83565b60009081526008602052604090206002015490565b34801561049757600080fd5b506103f36104a6366004612a9c565b611223565b6103f36104b9366004612a9c565b611242565b3480156104ca57600080fd5b506104de6104d9366004612a9c565b61134f565b604080516001600160a01b039093168352602083019190915201610348565b34801561050957600080fd5b506103f3610518366004612c93565b6113fb565b34801561052957600080fd5b506103f36114b8565b34801561053e57600080fd5b5061056561054d366004612a83565b6000908152600860205260409020600a015460ff1690565b6040516103489190612d74565b34801561057e57600080fd5b5061059261058d366004612d82565b61154e565b6040516103489190612e87565b3480156105ab57600080fd5b506103f36105ba366004612e9a565b611677565b3480156105cb57600080fd5b506103f36105da366004612a9c565b6116a5565b3480156105eb57600080fd5b5061033e600d5481565b34801561060157600080fd5b506103f3610610366004612f4a565b6116c2565b34801561062157600080fd5b5061033e610630366004612a83565b60009081526008602052604090206005015490565b34801561065157600080fd5b506103f3610660366004612d82565b6116d4565b34801561067157600080fd5b506103f3611708565b34801561068657600080fd5b50610371610695366004612f8d565b60008281526008602090815260408083206001600160a01b0385168452600e0190915290205460ff1692915050565b3480156106d057600080fd5b5061033e6106df366004612a83565b6000908152600860205260409020600b015490565b34801561070057600080fd5b506103f361070f366004612fb9565b61171c565b34801561072057600080fd5b506103f361072f366004613005565b61172f565b34801561074057600080fd5b506003546040516001600160a01b039091168152602001610348565b34801561076857600080fd5b506103f3610777366004612a9c565b61178c565b34801561078857600080fd5b506103966117a9565b34801561079d57600080fd5b506103f36107ac366004613055565b6117b6565b3480156107bd57600080fd5b506103f36107cc366004612a9c565b6117f5565b3480156107dd57600080fd5b5061033e6107ec366004612a83565b6000908152600860205260409020600c015490565b34801561080d57600080fd5b506103f361081c36600461308c565b611812565b34801561082d57600080fd5b5061033e61083c366004612a83565b60009081526008602052604090206004015490565b34801561085d57600080fd5b506103f361086c3660046130b8565b61181d565b34801561087d57600080fd5b5061090561088c366004612a83565b600860205280600052604060002060009150905080600001549080600101549080600201549080600301549080600401549080600501549080600601549080600701549080600801549080600901549080600a0160009054906101000a900460ff169080600b01549080600c01549080600d015490508e565b6040516103489e9d9c9b9a9998979695949392919061312b565b34801561092b57600080fd5b506103f361093a3660046131a5565b611840565b34801561094b57600080fd5b506103f361095a366004612a9c565b6118c6565b34801561096b57600080fd5b5061033e61097a366004612a83565b60009081526008602052604090206006015490565b34801561099b57600080fd5b506103966109aa366004612a83565b6118e3565b3480156109bb57600080fd5b5061033e6109ca366004612a83565b60009081526008602052604090206001015490565b3480156109eb57600080fd5b5061033e6109fa366004612a83565b60009081526008602052604090206003015490565b348015610a1b57600080fd5b50610371610a2a3660046131fa565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610a6457600080fd5b506103f3610a73366004613224565b6118fc565b348015610a8457600080fd5b506103f3610a93366004613288565b6119b2565b348015610aa457600080fd5b5061033e610ab3366004612a83565b6000908152600860208190526040909120015490565b348015610ad557600080fd5b506103f3610ae4366004612a9c565b611a2b565b348015610af557600080fd5b5061033e610b04366004612a83565b60009081526008602052604090206007015490565b348015610b2557600080fd5b506103f3610b34366004612a9c565b611a48565b348015610b4557600080fd5b506103f3610b543660046132a3565b611a65565b348015610b6557600080fd5b506103f3610b74366004612a9c565b611a88565b60006001600160a01b038316610be95760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b6000610c0c82611aa5565b60068054610c2a906132d6565b80601f0160208091040260200160405190810160405280929190818152602001828054610c56906132d6565b8015610ca35780601f10610c7857610100808354040283529160200191610ca3565b820191906000526020600020905b815481529060010190602001808311610c8657829003601f168201915b505050505081565b610cb3611aca565b60009182526008602052604090912060040155565b6000818152600960205260409020805460609190610ce5906132d6565b80601f0160208091040260200160405190810160405280929190818152602001828054610d11906132d6565b8015610d5e5780601f10610d3357610100808354040283529160200191610d5e565b820191906000526020600020905b815481529060010190602001808311610d4157829003601f168201915b50505050509050919050565b610d72611aca565b600091825260086020526040909120600d0155565b8181600d548210610dab57604051631bf4348160e31b815260040160405180910390fd5b60008281526008602052604090206007810154600b8201546009909201549091610dd491613326565b610dde9083613326565b1115610dfd57604051638a164f6360e01b815260040160405180910390fd5b60016000858152600860205260409020600a015460ff166003811115610e2557610e25612d3c565b14610e4357604051630fe219dd60e21b815260040160405180910390fd5b600084815260086020526040902060010154610e60908490613339565b341015610e7f5760405162bfc92160e01b815260040160405180910390fd5b600084815260086020908152604080832060030154338452600a835281842088855290925290912054610eb3908590613326565b1115610ed25760405163524f409b60e01b815260040160405180910390fd5b336000908152600a6020908152604080832087845290915281208054859290610efc908490613326565b909155505060008481526008602052604081206009018054859290610f22908490613326565b92505081905550610f4433858560405180602001604052806000815250611b24565b50505050565b8383600d548210610f6e57604051631bf4348160e31b815260040160405180910390fd5b60008281526008602052604090206007810154600b8201546009909201549091610f9791613326565b610fa19083613326565b1115610fc057604051638a164f6360e01b815260040160405180910390fd5b60026000878152600860205260409020600a015460ff166003811115610fe857610fe8612d3c565b146110065760405163fc7d083760e01b815260040160405180910390fd5b600086815260086020526040902060020154611023908690613339565b3410156110425760405162bfc92160e01b815260040160405180910390fd5b6000868152600860209081526040808320338452600e0190915290205460ff161561108057604051630c8d9eab60e31b815260040160405180910390fd5b61111384848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508b815260086020908152604091829020600d015491519194506110f893503392508b910160609290921b6bffffffffffffffffffffffff19168252601482015260340190565b60405160208183030381529060405280519060200120611bfe565b611130576040516309bde33960e01b815260040160405180910390fd5b600086815260086020908152604080832060040154338452600a83528184208a855290925290912054611164908790613326565b11156111835760405163524f409b60e01b815260040160405180910390fd5b336000908152600a60209081526040808320898452909152812080548792906111ad908490613326565b9091555050600086815260086020526040812060090180548792906111d3908490613326565b9091555050600086815260086020908152604080832033808552600e9091018352818420805460ff19166001179055815192830190915291815261121b919088908890611b24565b505050505050565b61122b611aca565b600091825260086020819052604090922090910155565b60036000838152600860205260409020600a015460ff16600381111561126a5761126a612d3c565b146112885760405163c84651bb60e01b815260040160405180910390fd5b6000828152600860205260409020600c01546112a5908290613339565b3410156112c45760405162bfc92160e01b815260040160405180910390fd5b336000908152600a60209081526040808320858452909152812080548392906112ee908490613350565b909155505060008281526008602052604081206009018054839290611314908490613350565b90915550506000828152600860205260408120600b01805483929061133a908490613326565b9091555061134b9050338383611c14565b5050565b60008281526005602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916113c45750604080518082019091526004546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906113e3906001600160601b031687613339565b6113ed9190613363565b915196919550909350505050565b6daaeb6d7670e522a718067333cd4e3b156114a457604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015611461573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114859190613385565b6114a457604051633b79c77360e21b8152336004820152602401610be0565b6114b18585858585611d18565b5050505050565b6114c0611aca565b4760005b600b5481101561134b5761153c600b82815481106114e4576114e46133a2565b9060005260206000200160009054906101000a90046001600160a01b03166064600c8481548110611517576115176133a2565b90600052602060002001548561152d9190613339565b6115379190613363565b611d5d565b80611546816133b8565b9150506114c4565b606081518351146115b35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610be0565b600083516001600160401b038111156115ce576115ce612b40565b6040519080825280602002602001820160405280156115f7578160200160208202803683370190505b50905060005b845181101561166f5761164285828151811061161b5761161b6133a2565b6020026020010151858381518110611635576116356133a2565b6020026020010151610b79565b828281518110611654576116546133a2565b6020908102919091010152611668816133b8565b90506115fd565b509392505050565b61167f611aca565b61168a858585611dd1565b6114b185838360405180602001604052806000815250611f5b565b6116ad611aca565b60009182526008602052604090912060030155565b6116ca611aca565b61134b82826120a6565b6116dc611aca565b81516116ef90600b9060208501906128fc565b50805161170390600c906020840190612961565b505050565b611710611aca565b61171a60006121a3565b565b611724611aca565b61134b338383611dd1565b611737611aca565b600082815260096020526040902061174f8282613417565b50817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b826040516117809190612a70565b60405180910390a25050565b611794611aca565b60009182526008602052604090912060020155565b60078054610c2a906132d6565b6117be611aca565b6000828152600860205260409020600a01805482919060ff191660018360038111156117ec576117ec612d3c565b02179055505050565b6117fd611aca565b60009182526008602052604090912060060155565b61134b3383836121f5565b611825611aca565b61170383838360405180602001604052806000815250611f5b565b611848611aca565b600d805460008181526008602052604081209290611865836133b8565b9091555050600d548155600181018990556002810188905560038101879055600481018590556005810186905560068101849055818311156118a657600080fd5b60088101929092556007820155600a01805460ff19169055505050505050565b6118ce611aca565b60009182526008602052604090912060050155565b60096020526000908152604090208054610c2a906132d6565b6daaeb6d7670e522a718067333cd4e3b156119a557604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015611962573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119869190613385565b6119a557604051633b79c77360e21b8152336004820152602401610be0565b6114b185858585856122d5565b6119ba611aca565b6001600160a01b038116611a1f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610be0565b611a28816121a3565b50565b611a33611aca565b600091825260086020526040909120600c0155565b611a50611aca565b60009182526008602052604090912060010155565b611a6d611aca565b61170383838360405180602001604052806000815250611b24565b611a90611aca565b60009182526008602052604090912060070155565b60006001600160e01b0319821663152a902d60e11b1480610c0c5750610c0c8261231a565b6003546001600160a01b0316331461171a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be0565b6001600160a01b038416611b4a5760405162461bcd60e51b8152600401610be0906134d6565b336000611b568561236a565b90506000611b638561236a565b90506000868152602081815260408083206001600160a01b038b16845290915281208054879290611b95908490613326565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611bf5836000898989896123b5565b50505050505050565b600082611c0b8584612510565b14949350505050565b6001600160a01b038316611c3a5760405162461bcd60e51b8152600401610be090613517565b336000611c468461236a565b90506000611c538461236a565b60408051602080820183526000918290528882528181528282206001600160a01b038b1683529052205490915084811015611ca05760405162461bcd60e51b8152600401610be09061355a565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4604080516020810190915260009052611bf5565b6001600160a01b038516331480611d345750611d348533610a2a565b611d505760405162461bcd60e51b8152600401610be09061359e565b6114b18585858585612555565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611daa576040519150601f19603f3d011682016040523d82523d6000602084013e611daf565b606091505b505090508061170357604051631d42c86760e21b815260040160405180910390fd5b6001600160a01b038316611df75760405162461bcd60e51b8152600401610be090613517565b8051825114611e185760405162461bcd60e51b8152600401610be0906135ec565b604080516020810190915260009081905233905b8351811015611eee576000848281518110611e4957611e496133a2565b602002602001015190506000848381518110611e6757611e676133a2565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611eb75760405162461bcd60e51b8152600401610be09061355a565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611ee6816133b8565b915050611e2c565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611f3f929190613634565b60405180910390a4604080516020810190915260009052610f44565b6001600160a01b038416611f815760405162461bcd60e51b8152600401610be0906134d6565b8151835114611fa25760405162461bcd60e51b8152600401610be0906135ec565b3360005b845181101561203e57838181518110611fc157611fc16133a2565b6020026020010151600080878481518110611fde57611fde6133a2565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546120269190613326565b90915550819050612036816133b8565b915050611fa6565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161208f929190613634565b60405180910390a46114b1816000878787876126e5565b6127106001600160601b03821611156121145760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610be0565b6001600160a01b03821661216a5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610be0565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600455565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036122685760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610be0565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0385163314806122f157506122f18533610a2a565b61230d5760405162461bcd60e51b8152600401610be09061359e565b6114b185858585856127a0565b60006001600160e01b03198216636cdb3d1360e11b148061234b57506001600160e01b031982166303a24d0760e21b145b80610c0c57506301ffc9a760e01b6001600160e01b0319831614610c0c565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106123a4576123a46133a2565b602090810291909101015292915050565b6001600160a01b0384163b1561121b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906123f99089908990889088908890600401613662565b6020604051808303816000875af1925050508015612434575060408051601f3d908101601f19168201909252612431918101906136a7565b60015b6124e0576124406136c4565b806308c379a00361247957506124546136e0565b8061245f575061247b565b8060405162461bcd60e51b8152600401610be09190612a70565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610be0565b6001600160e01b0319811663f23a6e6160e01b14611bf55760405162461bcd60e51b8152600401610be090613769565b600081815b845181101561166f5761254182868381518110612534576125346133a2565b60200260200101516128ca565b91508061254d816133b8565b915050612515565b81518351146125765760405162461bcd60e51b8152600401610be0906135ec565b6001600160a01b03841661259c5760405162461bcd60e51b8152600401610be0906137b1565b3360005b84518110156126835760008582815181106125bd576125bd6133a2565b6020026020010151905060008583815181106125db576125db6133a2565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561262b5760405162461bcd60e51b8152600401610be0906137f6565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612668908490613326565b925050819055505050508061267c906133b8565b90506125a0565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516126d3929190613634565b60405180910390a461121b8187878787875b6001600160a01b0384163b1561121b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906127299089908990889088908890600401613840565b6020604051808303816000875af1925050508015612764575060408051601f3d908101601f19168201909252612761918101906136a7565b60015b612770576124406136c4565b6001600160e01b0319811663bc197c8160e01b14611bf55760405162461bcd60e51b8152600401610be090613769565b6001600160a01b0384166127c65760405162461bcd60e51b8152600401610be0906137b1565b3360006127d28561236a565b905060006127df8561236a565b90506000868152602081815260408083206001600160a01b038c168452909152902054858110156128225760405162461bcd60e51b8152600401610be0906137f6565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a1682528120805488929061285f908490613326565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46128bf848a8a8a8a8a6123b5565b505050505050505050565b60008183106128e65760008281526020849052604090206128f5565b60008381526020839052604090205b9392505050565b828054828255906000526020600020908101928215612951579160200282015b8281111561295157825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061291c565b5061295d92915061299c565b5090565b828054828255906000526020600020908101928215612951579160200282015b82811115612951578251825591602001919060010190612981565b5b8082111561295d576000815560010161299d565b80356001600160a01b03811681146129c857600080fd5b919050565b600080604083850312156129e057600080fd5b6129e9836129b1565b946020939093013593505050565b6001600160e01b031981168114611a2857600080fd5b600060208284031215612a1f57600080fd5b81356128f5816129f7565b6000815180845260005b81811015612a5057602081850181015186830182015201612a34565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006128f56020830184612a2a565b600060208284031215612a9557600080fd5b5035919050565b60008060408385031215612aaf57600080fd5b50508035926020909101359150565b60008060008060608587031215612ad457600080fd5b843593506020850135925060408501356001600160401b0380821115612af957600080fd5b818701915087601f830112612b0d57600080fd5b813581811115612b1c57600080fd5b8860208260051b8501011115612b3157600080fd5b95989497505060200194505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612b7b57612b7b612b40565b6040525050565b60006001600160401b03821115612b9b57612b9b612b40565b5060051b60200190565b600082601f830112612bb657600080fd5b81356020612bc382612b82565b604051612bd08282612b56565b83815260059390931b8501820192828101915086841115612bf057600080fd5b8286015b84811015612c0b5780358352918301918301612bf4565b509695505050505050565b60006001600160401b03831115612c2f57612c2f612b40565b604051612c46601f8501601f191660200182612b56565b809150838152848484011115612c5b57600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612c8457600080fd5b6128f583833560208501612c16565b600080600080600060a08688031215612cab57600080fd5b612cb4866129b1565b9450612cc2602087016129b1565b935060408601356001600160401b0380821115612cde57600080fd5b612cea89838a01612ba5565b94506060880135915080821115612d0057600080fd5b612d0c89838a01612ba5565b93506080880135915080821115612d2257600080fd5b50612d2f88828901612c73565b9150509295509295909350565b634e487b7160e01b600052602160045260246000fd5b60048110612d7057634e487b7160e01b600052602160045260246000fd5b9052565b60208101610c0c8284612d52565b60008060408385031215612d9557600080fd5b82356001600160401b0380821115612dac57600080fd5b818501915085601f830112612dc057600080fd5b81356020612dcd82612b82565b604051612dda8282612b56565b83815260059390931b8501820192828101915089841115612dfa57600080fd5b948201945b83861015612e1f57612e10866129b1565b82529482019490820190612dff565b96505086013592505080821115612e3557600080fd5b50612e4285828601612ba5565b9150509250929050565b600081518084526020808501945080840160005b83811015612e7c57815187529582019590820190600101612e60565b509495945050505050565b6020815260006128f56020830184612e4c565b600080600080600060a08688031215612eb257600080fd5b612ebb866129b1565b945060208601356001600160401b0380821115612ed757600080fd5b612ee389838a01612ba5565b95506040880135915080821115612ef957600080fd5b612f0589838a01612ba5565b94506060880135915080821115612f1b57600080fd5b612f2789838a01612ba5565b93506080880135915080821115612f3d57600080fd5b50612d2f88828901612ba5565b60008060408385031215612f5d57600080fd5b612f66836129b1565b915060208301356001600160601b0381168114612f8257600080fd5b809150509250929050565b60008060408385031215612fa057600080fd5b82359150612fb0602084016129b1565b90509250929050565b60008060408385031215612fcc57600080fd5b82356001600160401b0380821115612fe357600080fd5b612fef86838701612ba5565b93506020850135915080821115612e3557600080fd5b6000806040838503121561301857600080fd5b8235915060208301356001600160401b0381111561303557600080fd5b8301601f8101851361304657600080fd5b612e4285823560208401612c16565b6000806040838503121561306857600080fd5b82359150602083013560048110612f8257600080fd5b8015158114611a2857600080fd5b6000806040838503121561309f57600080fd5b6130a8836129b1565b91506020830135612f828161307e565b6000806000606084860312156130cd57600080fd5b6130d6846129b1565b925060208401356001600160401b03808211156130f257600080fd5b6130fe87838801612ba5565b9350604086013591508082111561311457600080fd5b5061312186828701612ba5565b9150509250925092565b60006101c0820190508f82528e60208301528d60408301528c60608301528b60808301528a60a08301528960c08301528860e0830152876101008301528661012083015261317d610140830187612d52565b8461016083015283610180830152826101a08301529f9e505050505050505050505050505050565b600080600080600080600080610100898b0312156131c257600080fd5b505086359860208801359850604088013597606081013597506080810135965060a0810135955060c0810135945060e0013592509050565b6000806040838503121561320d57600080fd5b613216836129b1565b9150612fb0602084016129b1565b600080600080600060a0868803121561323c57600080fd5b613245866129b1565b9450613253602087016129b1565b9350604086013592506060860135915060808601356001600160401b0381111561327c57600080fd5b612d2f88828901612c73565b60006020828403121561329a57600080fd5b6128f5826129b1565b6000806000606084860312156132b857600080fd5b6132c1846129b1565b95602085013595506040909401359392505050565b600181811c908216806132ea57607f821691505b60208210810361330a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c0c57610c0c613310565b8082028115828204841417610c0c57610c0c613310565b81810381811115610c0c57610c0c613310565b60008261338057634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561339757600080fd5b81516128f58161307e565b634e487b7160e01b600052603260045260246000fd5b6000600182016133ca576133ca613310565b5060010190565b601f82111561170357600081815260208120601f850160051c810160208610156133f85750805b601f850160051c820191505b8181101561121b57828155600101613404565b81516001600160401b0381111561343057613430612b40565b6134448161343e84546132d6565b846133d1565b602080601f83116001811461347957600084156134615750858301515b600019600386901b1c1916600185901b17855561121b565b600085815260208120601f198616915b828110156134a857888601518255948401946001909101908401613489565b50858210156134c65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b6040815260006136476040830185612e4c565b82810360208401526136598185612e4c565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061369c90830184612a2a565b979650505050505050565b6000602082840312156136b957600080fd5b81516128f5816129f7565b600060033d11156136dd5760046000803e5060005160e01c5b90565b600060443d10156136ee5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561371d57505050505090565b82850191508151818111156137355750505050505090565b843d870101602082850101111561374f5750505050505090565b61375e60208286010187612b56565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061386c90830186612e4c565b828103606084015261387e8186612e4c565b905082810360808401526138928185612a2a565b9897505050505050505056fea2646970667358221220311626f8987f17ec582124cc0d32a99f93880f1d0a86e18e86c93d978619ea0764736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000050000000000000000000000001b65a9816ef95229acc3384e67956a7dfab2b87c00000000000000000000000000000000000000000000000000000000000000084a435065656e657900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034a43500000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): JCPeeney
Arg [1] : _symbol (string): JCP
Arg [2] : _royaltyAmount (uint96): 5
Arg [3] : _royaltyAddress (address): 0x1B65a9816EF95229ACC3384E67956A7dFaB2b87c

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 0000000000000000000000001b65a9816ef95229acc3384e67956a7dfab2b87c
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [5] : 4a435065656e6579000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 4a43500000000000000000000000000000000000000000000000000000000000


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.