ETH Price: $2,894.73 (-5.64%)
Gas: 1 Gwei

Token

 

Overview

Max Total Supply

448

Holders

196

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
abstractedaccount.eth
0xb95c88262f6632e4b7c94432b6a360c19e642e10
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:
BlklavasEditions

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 21 : 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 2 of 21 : 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 3 of 21 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

        return array;
    }
}

File 6 of 21 : 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 7 of 21 : 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 8 of 21 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

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

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

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 21 : 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 16 of 21 : 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 17 of 21 : BlklavasEditions.sol
pragma solidity >=0.8.0 <0.9.0;
//SPDX-License-Identifier: MIT
///@author ReggieRumsfeld 


import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "./operator-filter/RevokableDefaultOperatorFilterer.sol";



error AlreadyClaimed(bytes32 root, address claimer);
error BatchDataCorrupt();
error CanNotSetMaxSupplyUnderCurrentSupply(uint256 attemptingToSet, uint256 alreadyMinted); 
error CanNotIncreaseSupply(uint256 attemptingToSet, uint256 currentMaxSupply);
error MaxAmountPerTxExceeded(uint256 mintAmount, uint256 maxMintAmountPerTx);
error MaxSupplyExceeded();
error MaxSupplyNotSet(uint256 tokenID);
error MsgValueTooLow(uint256 valueSend, uint256 totalCost);
error NotACurrentDrop(bytes32 root);
error PriceNotSetForToken();
error RegulatedBurnNotAllowed();
error StartingIdCanNotHaveSupply();
error SlotValueSameAsInput(uint256 idValue);
error SplitsCanOnlyContainIncreasingIDs();


struct RegulatedBurn {
    bool allowed;
    bool decreaseMaxSupply;
}


contract BlklavasEditions is ERC1155Supply, RevokableDefaultOperatorFilterer, Ownable, Pausable, ReentrancyGuard, ERC2981 {
  using Strings for uint256;
    
    /// @dev ROOT => Address(this) => Uint256 > 0 means: 
    /// 1.) drop is ON!!! 2.) gives you the starting ID (inlcusive)
    mapping (bytes32 => mapping (address => uint256)) private _rootToClaimed;

    mapping (uint256 => uint256) public price;
    
    mapping (uint256 => uint256) private _maxSupply;

    /// @dev OPTIONAL Batch or Token specific URIS:

    mapping(uint256 => string) private _tokenURIs;
    
    uint256[] public uriSplits = [0, 0, 0, 0];

    string private _baseURI = "";

    string private _uriSuffix = "";

    /// --- ///

    uint256 public maxMintAmountPerTx = 10;

    RegulatedBurn private regulatedBurn = RegulatedBurn(false, false);

    event WhiteListClaimStarted(bytes32 indexed root, uint256 startingId);
    event WhiteListClaimEnded(bytes32 indexed root);

    /// @notice with regard to claimable and mintable:
    /// claimable doesn't check if ids in the drop are "already" publicly mintable;
    /// for each claim it would have to iterate over the IDs in the claim to check 
    /// if supply is set (which makes an ID publicly mintable).
    /// There is no supply check on each claim (open ended supply during claim, save for 
    /// the last image).
    ///
    /// Mintable can't check if an ID is still claimable.
    /// It boils down to proper admin/management when activating/deactivating claim & mints
    /// Use a web2 interface with offchain side-wheels.

    modifier claimable(bytes32 root, address claimer) {
        if(!dropIsOn(root)) revert NotACurrentDrop(root);
        if(!unClaimed(root, claimer)) revert AlreadyClaimed(root, claimer);
        _;
    }

    modifier mintable(uint256 mintAmount, uint256 tokenId) {
        //Payment check
        uint price_ = price[tokenId];
        if(price_ == 0) revert PriceNotSetForToken();
        uint256 totalCost = price[tokenId] * mintAmount;
        if(msg.value < totalCost) revert MsgValueTooLow(msg.value, totalCost);
        // seperate from _supplyCheck(), since that function is also used by adMint():
        uint256 maxSupply_ = _maxSupply[tokenId];
        if(maxSupply_ == 0) revert MaxSupplyNotSet(tokenId);
        if(mintAmount > maxMintAmountPerTx) revert MaxAmountPerTxExceeded(mintAmount, maxMintAmountPerTx); 
        _supplyCheck(mintAmount, tokenId, maxSupply_);
        _;
    }

    constructor(uint96 feeNumerator, address receiver, string memory uri_) ERC1155(uri_){
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    /////////////////////
    // ADMIN - GENERAL //
    /////////////////////

    function withdraw(address payable recipient) external onlyOwner {
        (bool sent, ) = recipient.call{value: address(this).balance}("");
        require(sent, "Failed to send Ether");
    }

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

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

    function setRegulatedBurn(bool allowed, bool decrease) external onlyOwner {
        regulatedBurn = RegulatedBurn(allowed, decrease);
    }

    function setRegulatedBurnAllowed(bool allowed_) external onlyOwner {
        regulatedBurn.allowed = allowed_;
    }

    function setRegulatedBurnDecreaseMaxSupply(bool decrease) external onlyOwner {
        regulatedBurn.decreaseMaxSupply = decrease;
    }

    ////////////////////////
    // ADMIN - COLLECTION //
    ////////////////////////

    /// @notice OFFCHAIN SIDE WHEELS FOR ADMIN PROVIDED
    /// DIRECT ENGAGEMENT IS ERROR-PRONE (TOKEN ID OVERLAP / PROPPER END OF CLAIM)

    function setPrice(uint256 tokenId, uint256 price_) public onlyOwner {
        price[tokenId] = price_;
    }

    /// @dev Only perform sober: can't increase!!
    /// @notice Also gas efficient admin burn: lower supply upto total supply
    function setMaxSupply(uint256 tokenId, uint256 supplyAmount) public onlyOwner {
        uint256 totalSupply_ = totalSupply(tokenId);
        if (supplyAmount < totalSupply_) revert CanNotSetMaxSupplyUnderCurrentSupply(supplyAmount, totalSupply_);
        uint256 maxSupply = _maxSupply[tokenId];
        if(maxSupply != 0 && supplyAmount > maxSupply) revert CanNotIncreaseSupply(supplyAmount, maxSupply);
        _maxSupply[tokenId] = supplyAmount;
    }

    function setPriceAndMaxSupplyBatch(uint256[] calldata tokenIds, uint256[] calldata supplyAmounts, uint256 price_) external {
        if(tokenIds.length != supplyAmounts.length) revert BatchDataCorrupt();
        for(uint256 i = 0; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];
            setMaxSupply(tokenId, supplyAmounts[i]);
            setPrice(tokenId, price_);
        }
    }

    function setMaxSupplyBatch(uint256[] calldata tokenIds, uint256[] calldata supplyAmounts) external {
        if(tokenIds.length != supplyAmounts.length) revert BatchDataCorrupt();
        for(uint256 i = 0; i < tokenIds.length; i++) {
            setMaxSupply(tokenIds[i], supplyAmounts[i]);
        }
    }

    function setPriceBatch(uint256[] calldata tokenIds, uint256 price_) external {
        for(uint256 i = 0; i < tokenIds.length; i++) {
            setPrice(tokenIds[i], price_);
        }
    }

    function setMaxPerTx(uint256 newMax) external onlyOwner {
        maxMintAmountPerTx = newMax;
    }
 
    /// @param startingID the first tokenID in the drop, or 0 to turn off!
    function dropSwitch (bytes32 root, uint256 startingID) external onlyOwner {
        bool supply = _maxSupply[startingID] > 0 || totalSupply(startingID) > 0;
        if(startingID != 0 && supply) revert StartingIdCanNotHaveSupply();
        _dropSwitch(root, startingID);
        if(startingID > 0) {
          emit WhiteListClaimStarted(root, startingID);
        } else {
          emit WhiteListClaimEnded(root);
        }
    }

    ///////////////////////////
    // ADMIN: URI - METADATA //
    ///////////////////////////

    /// @notice Setting the token specific uri
    /// The tokenUri is prefixed by the baseUri and appended by the suffix
    function setTokenURI(uint256 tokenId, string calldata tokenURI) public onlyOwner {
        _tokenURIs[tokenId] = tokenURI;
    }

    /// @notice Setting the base uri 
    /// This the prefix for all token specific uris
    function setBaseURI(string calldata baseURI) public onlyOwner {
        _baseURI = baseURI;
    }

    function setSuffixURI(string calldata uriSuffix) public onlyOwner {
        _uriSuffix = uriSuffix;
    }

    function setBaseAndSuffix(string calldata baseURI, string calldata uriSuffix) public {
        setBaseURI(baseURI);
        setSuffixURI(uriSuffix);
    }

    function setFullTokenURI(
        uint256 tokenId, 
        string calldata tokenURI, 
        string calldata baseURI, 
        string calldata uriSuffix
    ) external {
        setTokenURI(tokenId, tokenURI);
        setBaseAndSuffix(baseURI, uriSuffix);
    }

    /// @notice setting the general uri, which is shown when a tokenId maps to its default value ""
    /// format https://token-cdn-domain/{id}.json - ipfs://Qmf6XY7fBnd8yQcBmC1nRE6Wvnm87dwmRixStwvf7QNVWx/{id}.json
    function setGeneralURI(string calldata uri_) external onlyOwner {
        _setURI(uri_); 
    }

    /// @notice token Specific overrule split,  no need to set split for non batch ids
    /// @dev make sure that there is a tokenURI for the splitvalue to be set (offchain sidewheels)
    function pushSplit(uint256 tokenId) external onlyOwner {
        uint256 length = uriSplits.length;
        if(length > 0 && uriSplits[length - 1] > tokenId) revert SplitsCanOnlyContainIncreasingIDs();
        uriSplits.push(tokenId);
    }

    /// See comments pushSplit() above
    function setSplit(uint256[] calldata splitArray) external onlyOwner {
        uint256 length = splitArray.length;
        if(length > 0) {
            for(uint256 i = 1; i < length; i++) {
              if(splitArray[i] < splitArray[i - 1]) revert SplitsCanOnlyContainIncreasingIDs();
            }
        }
        uriSplits = splitArray;
    }

    function uri(uint256 id) public view override returns (string memory) {
        string memory tokenURI = _tokenURIs[id]; // Checking for token specific
        if(bytes(tokenURI).length > 0) return _uri(tokenURI); // Perfect hit
        uint256 length = uriSplits.length;
        if(length == 0) return super.uri(id); // Splits not set, returning general
        uint256 lastID = uriSplits[length - 1];
        if(id>lastID) return super.uri(id); // Id over last ID in split, returning general
        for(uint256 i = 0; i < length; i++) {
            uint256 splitId = uriSplits[i];
            if(splitId > id) return _uri(_tokenURIs[splitId]); // Batch hit
        }
        return super.uri(id);    
    }

    function _uri(string memory tokenURI) internal view returns (string memory uri_) {
        uri_ = string(abi.encodePacked(_baseURI, tokenURI, _uriSuffix));
    } 

    //////////////////////////////
    // ADMIN: ERC2981 - ROYALTY //
    //////////////////////////////

    function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyOwner {
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    function setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) external onlyOwner {
        _setTokenRoyalty(tokenId, receiver, feeNumerator);
    }

    function deleteDefaultRoyalty() external onlyOwner {
        _deleteDefaultRoyalty();
    }


    /////////////////
    // ADMIN: MINT //
    /////////////////

    /// @dev forgoing most of the restraint on the other mint/claims
    /// SAFE for _supplyCheck()
    /// designed for cheap(er) airdrops
    function adMint(address recipient, uint256 amount, uint256 tokenId) external onlyOwner {
        uint256 maxSupply = _maxSupply[tokenId];
        if(maxSupply > 0) _supplyCheck(amount, tokenId, maxSupply);
        _adMint(amount, tokenId, recipient);
    } 

    function adMintBatchRecipients(uint256 amount, address[] calldata recipients, uint256 tokenId) external onlyOwner {
        uint256 maxSupply = _maxSupply[tokenId];
        uint256 length = recipients.length;
        if(maxSupply > 0) _supplyCheck(amount * length, tokenId, maxSupply);
        for(uint256 i = 0; i < length ; i++) {
            _adMint(amount, tokenId, recipients[i]);
        }
    }

    function _adMint(uint amount, uint256 tokenId, address recipient) internal {
        _mint(recipient, tokenId, amount, "0");
    }

    /////////////////////////
    // CLAIM - MINT - BURN //
    /////////////////////////

    /// @dev saving on admin tx's cost by using dropAmount param as marker for amount of ID's in drop
    function claim(uint256 dropAmount, uint256 ltdSupply, bytes32 root, bytes32[] calldata _merkleProof) external payable {
        _claim(dropAmount, ltdSupply, root, _msgSender(), _merkleProof);
    }

    /// @notice "gas-less" version: Claiming on behalf of third party
    function claim(uint256 dropAmount, uint256 ltdSupply, bytes32 root, address recipient, bytes32[] calldata _merkleProof) external payable {
        _claim(dropAmount, ltdSupply, root, recipient, _merkleProof);
    }

    function _claim(
        uint256 dropAmount,
        uint256 ltdSupply, 
        bytes32 root, 
        address recipient, 
        bytes32[] calldata _merkleProof
    ) internal whenNotPaused() claimable(root, recipient) {
          bytes32 leaf = keccak256(bytes.concat(keccak256(abi.encode(recipient, dropAmount, ltdSupply, msg.value))));
          require(MerkleProof.verify(_merkleProof, root, leaf), 'Invalid proof!');
          _claimDrop(root, recipient); //set Claimed for this drop/root
          _mint(recipient, randomID(root, dropAmount, ltdSupply), 1, "0");
      }

    /// @dev nonReentrant to avoid circumvention of restrictions like MaxMintPerTX 
    function mint(uint256 tokenID, uint256 amount) public payable whenNotPaused() mintable(amount, tokenID) nonReentrant() {
        _mint(_msgSender(), tokenID, amount, "0");
    }

    /// @notice "gas-less" version: Minting on behalf of third party
    function mint(uint256 tokenID, uint256 amount, address recipient) public payable whenNotPaused() mintable(amount, tokenID) nonReentrant() {
        _mint(recipient, tokenID, amount, "0");
    }

    function burn(address from, uint256 tokenId, uint256 amount) public nonReentrant {
        uint256 currentMaxSupply = _maxSupply[tokenId];
        if(currentMaxSupply == 0) revert MaxSupplyNotSet(tokenId);
        RegulatedBurn memory regulatedBurn_ = regulatedBurn;
        if(!regulatedBurn_.allowed) revert RegulatedBurnNotAllowed();     
        _burn(from, tokenId, amount);
        if(regulatedBurn_.decreaseMaxSupply) {
          setMaxSupply(tokenId, currentMaxSupply - amount);
        } 
    }

    function burn(uint256 tokenId, uint256 amount) external {
        burn(_msgSender(), tokenId, amount);
    }

    /////////////
    // GETTERS //
    /////////////

    function dropIsOn(bytes32 root) public view returns (bool) {
        return (_claimValue(root, address(this)) > 0);
    }

    function unClaimed(bytes32 root, address claimer) public view returns (bool) {
        return (_claimValue(root, claimer) == 0);
    }

    function getMaxSupply(uint256 tokenId) public view returns (uint256) {
        uint256 supply = _maxSupply[tokenId];
        if(supply == 0) revert MaxSupplyNotSet(tokenId);
        return supply;
    } 

    ///////////////////////////////
    // PSUEDO RANDOM ID SELECTOR //
    ///////////////////////////////

    function randomID(bytes32 root, uint256 dropAmount, uint256 ltdSupply) internal view returns (uint256 tokenID) {
        uint256 startingID = _claimValue(root, address(this));
        uint256 limitedID = startingID + dropAmount - 1; // only theoratical sub/overflow;
        uint256 plusID;
        if(totalSupply(limitedID) < ltdSupply) {
            plusID = _random() % (dropAmount);
        } else {
            plusID = _random() % (dropAmount -1);
        } 
        tokenID = startingID + plusID; //overflow only theoretical 
    }

    function _random() internal view returns (uint256) {
        return uint256(keccak256(abi.encodePacked(
            tx.origin,
            blockhash(block.number - 1),
            block.timestamp
        )));
    }

    /////////////////////
    // INTERNAL - MISC //
    /////////////////////

    function _dropSwitch(bytes32 root, uint256 startingID) internal {
        _setClaimedValue(root, startingID, address(this));
    }

    function _claimDrop(bytes32 root, address claimer) internal {
        // 1 being the claimed marker 
        _setClaimedValue(root, 1, claimer);
    }

    function _setClaimedValue(bytes32 root, uint256 idValue, address key) internal {
        _checkClaimSlot(root, idValue, key);
        _rootToClaimed[root][key] = idValue;
    }

    function _checkClaimSlot(bytes32 root, uint256 idValue, address key) internal view {
        if(_claimValue(root, key) == idValue) revert SlotValueSameAsInput(idValue);
    }

    /// @notice gets the value at the claim slot; 1 indicates claimed
    /// @dev the value at address(this) is the starting id of the drop the root corresponds to.
    function _claimValue(bytes32 root, address key) internal view returns (uint) {
        return _rootToClaimed[root][key];
    }

    /// @dev To avoid high gas costs we are foregoing this check during the claim period
    function _supplyCheck(uint256 mintAmount, uint256 tokenID, uint256 _maxSupply_) internal view {
        // at this point in code _maxSupply is set, and over totalSupply;
        uint256 available = _maxSupply_ - totalSupply(tokenID);
        if(mintAmount > available) revert MaxSupplyExceeded();   
    }

    //////////////////////////////
    //        OVERRIDES         //
    //////////////////////////////
    //
    // OPERATOR-FILTER-REGISTRY
    // https://github.com/ProjectOpenSea/operator-filter-registry/blob/main/src/example/RevokableExampleERC1155.sol


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

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

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

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

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

}

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

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

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

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

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

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

    modifier onlyAllowedOperator(address from) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // Allow spending tokens from addresses with balance
            // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
            // from an EOA.
            if (from == msg.sender) {
                _;
                return;
            }
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }

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

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

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

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

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

File 21 of 21 : RevokableOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

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

/**
 * @title  RevokableOperatorFilterer
 * @notice This contract is meant to allow contracts to permanently opt out of the OperatorFilterRegistry. The Registry
 *         itself has an "unregister" function, but if the contract is ownable, the owner can re-register at any point.
 *         As implemented, this abstract contract allows the contract owner to toggle the
 *         isOperatorFilterRegistryRevoked flag in order to permanently bypass the OperatorFilterRegistry checks.
 */
abstract contract RevokableOperatorFilterer is OperatorFilterer {
    error OnlyOwner();
    error AlreadyRevoked();

    bool private _isOperatorFilterRegistryRevoked;

    modifier onlyAllowedOperator(address from) override {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (!_isOperatorFilterRegistryRevoked && address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // Allow spending tokens from addresses with balance
            // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
            // from an EOA.
            if (from == msg.sender) {
                _;
                return;
            }
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }

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

    /**
     * @notice Disable the isOperatorFilterRegistryRevoked flag. OnlyOwner.
     */
    function revokeOperatorFilterRegistry() external {
        if (msg.sender != owner()) {
            revert OnlyOwner();
        }
        if (_isOperatorFilterRegistryRevoked) {
            revert AlreadyRevoked();
        }
        _isOperatorFilterRegistryRevoked = true;
    }

    function isOperatorFilterRegistryRevoked() public view returns (bool) {
        return _isOperatorFilterRegistryRevoked;
    }

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint96","name":"feeNumerator","type":"uint96"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"string","name":"uri_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"address","name":"claimer","type":"address"}],"name":"AlreadyClaimed","type":"error"},{"inputs":[],"name":"AlreadyRevoked","type":"error"},{"inputs":[],"name":"BatchDataCorrupt","type":"error"},{"inputs":[{"internalType":"uint256","name":"attemptingToSet","type":"uint256"},{"internalType":"uint256","name":"currentMaxSupply","type":"uint256"}],"name":"CanNotIncreaseSupply","type":"error"},{"inputs":[{"internalType":"uint256","name":"attemptingToSet","type":"uint256"},{"internalType":"uint256","name":"alreadyMinted","type":"uint256"}],"name":"CanNotSetMaxSupplyUnderCurrentSupply","type":"error"},{"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"},{"internalType":"uint256","name":"maxMintAmountPerTx","type":"uint256"}],"name":"MaxAmountPerTxExceeded","type":"error"},{"inputs":[],"name":"MaxSupplyExceeded","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"MaxSupplyNotSet","type":"error"},{"inputs":[{"internalType":"uint256","name":"valueSend","type":"uint256"},{"internalType":"uint256","name":"totalCost","type":"uint256"}],"name":"MsgValueTooLow","type":"error"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"NotACurrentDrop","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"PriceNotSetForToken","type":"error"},{"inputs":[],"name":"RegulatedBurnNotAllowed","type":"error"},{"inputs":[{"internalType":"uint256","name":"idValue","type":"uint256"}],"name":"SlotValueSameAsInput","type":"error"},{"inputs":[],"name":"SplitsCanOnlyContainIncreasingIDs","type":"error"},{"inputs":[],"name":"StartingIdCanNotHaveSupply","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"WhiteListClaimEnded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"root","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"startingId","type":"uint256"}],"name":"WhiteListClaimStarted","type":"event"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"adMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"adMintBatchRecipients","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropAmount","type":"uint256"},{"internalType":"uint256","name":"ltdSupply","type":"uint256"},{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropAmount","type":"uint256"},{"internalType":"uint256","name":"ltdSupply","type":"uint256"},{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"dropIsOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"uint256","name":"startingID","type":"uint256"}],"name":"dropSwitch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperatorFilterRegistryRevoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"pushSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeOperatorFilterRegistry","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":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"uriSuffix","type":"string"}],"name":"setBaseAndSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenURI","type":"string"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"uriSuffix","type":"string"}],"name":"setFullTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"}],"name":"setGeneralURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"setMaxPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"supplyAmount","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"supplyAmounts","type":"uint256[]"}],"name":"setMaxSupplyBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"supplyAmounts","type":"uint256[]"},{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"setPriceAndMaxSupplyBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"setPriceBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"allowed","type":"bool"},{"internalType":"bool","name":"decrease","type":"bool"}],"name":"setRegulatedBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"allowed_","type":"bool"}],"name":"setRegulatedBurnAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"decrease","type":"bool"}],"name":"setRegulatedBurnDecreaseMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"splitArray","type":"uint256[]"}],"name":"setSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uriSuffix","type":"string"}],"name":"setSuffixURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenURI","type":"string"}],"name":"setTokenURI","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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"address","name":"claimer","type":"address"}],"name":"unClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uriSplits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101006040526000608081815260a082905260c082905260e0919091526200002c90600c906004620003cf565b50604080516020810190915260008152600d906200004b9082620004e0565b50604080516020810190915260008152600e906200006a9082620004e0565b50600a600f556040805180820190915260008082526020909101526010805461ffff191690553480156200009d57600080fd5b5060405162004aa138038062004aa1833981016040819052620000c091620005ac565b733cc6cdda760b79bafa08df41ecfa224f810dceb6600182620000e3816200025e565b506daaeb6d7670e522a718067333cd4e3b15620002295780156200017757604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200015857600080fd5b505af11580156200016d573d6000803e3d6000fd5b5050505062000229565b6001600160a01b03821615620001c85760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200013d565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200020f57600080fd5b505af115801562000224573d6000803e3d6000fd5b505050505b506200023790503362000270565b6004805460ff60a81b191690556001600555620002558284620002ca565b505050620006c2565b60026200026c8282620004e0565b5050565b600480546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156200033e5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620003965760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000335565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b82805482825590600052602060002090810192821562000412579160200282015b8281111562000412578251829060ff16905591602001919060010190620003f0565b506200042092915062000424565b5090565b5b8082111562000420576000815560010162000425565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200046657607f821691505b6020821081036200048757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004db57600081815260208120601f850160051c81016020861015620004b65750805b601f850160051c820191505b81811015620004d757828155600101620004c2565b5050505b505050565b81516001600160401b03811115620004fc57620004fc6200043b565b62000514816200050d845462000451565b846200048d565b602080601f8311600181146200054c5760008415620005335750858301515b600019600386901b1c1916600185901b178555620004d7565b600085815260208120601f198616915b828110156200057d578886015182559484019460019091019084016200055c565b50858210156200059c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600080600060608486031215620005c257600080fd5b83516001600160601b0381168114620005da57600080fd5b602085810151919450906001600160a01b0381168114620005fa57600080fd5b60408601519093506001600160401b03808211156200061857600080fd5b818701915087601f8301126200062d57600080fd5b8151818111156200064257620006426200043b565b604051601f8201601f19908116603f011681019083821181831017156200066d576200066d6200043b565b816040528281528a868487010111156200068657600080fd5b600093505b82841015620006aa57848401860151818501870152928501926200068b565b60008684830101528096505050505050509250925092565b6143cf80620006d26000396000f3fe60806040526004361061034f5760003560e01c80638be18e57116101c6578063d8bd4561116100f7578063ee20678511610095578063f5298aca1161006f578063f5298aca146109fa578063f7d9757714610a1a578063fa2bc13814610a3a578063fbb9581e14610a5a57600080fd5b8063ee2067851461099a578063f242432a146109ba578063f2fde38b146109da57600080fd5b8063e7d3fe6b116100d1578063e7d3fe6b14610906578063e985e9c514610919578063e9b3beac14610962578063ecba222a1461098257600080fd5b8063d8bd4561146108a6578063dfe4764d146108c6578063e0cbc479146108e657600080fd5b8063aa1b103f11610164578063be7263bc1161013e578063be7263bc14610826578063c6f6f21614610846578063d347151614610866578063d689aff11461088657600080fd5b8063aa1b103f146107c4578063b390c0ab146107d9578063bd85b039146107f957600080fd5b806394354fd0116101a057806394354fd01461074e578063a22cb46514610764578063a2fcf1a814610784578063a959d26d146107a457600080fd5b80638be18e57146106d85780638da5cb5b146106f85780638ee222a01461072e57600080fd5b80633f4ba83a116102a05780635e495d741161023e578063715018a611610218578063715018a61461066e578063718d64e11461068357806379937086146106a35780638456cb59146106c357600080fd5b80635e495d74146106195780635ef9432a146106395780636cf6a3fa1461064e57600080fd5b806351cff8d91161027a57806351cff8d91461059a57806355f804b3146105ba5780635944c753146105da5780635c975abb146105fa57600080fd5b80633f4ba83a146105385780634e1273f41461054d5780634f558e791461057a57600080fd5b80631b2ef1ca1161030d5780632eb2c2d6116102e75780632eb2c2d6146104b8578063302bb9bb146104d857806337da577c146104f85780633d61e0981461051857600080fd5b80631b2ef1ca1461043957806326a49e371461044c5780632a55205a1461047957600080fd5b8062fdd58e1461035457806301ffc9a71461038757806304634d8d146103b75780630e89341c146103d95780631269c60314610406578063162094c414610419575b600080fd5b34801561036057600080fd5b5061037461036f366004613204565b610a6d565b6040519081526020015b60405180910390f35b34801561039357600080fd5b506103a76103a2366004613246565b610b06565b604051901515815260200161037e565b3480156103c357600080fd5b506103d76103d236600461327f565b610b20565b005b3480156103e557600080fd5b506103f96103f43660046132b4565b610b36565b60405161037e919061331d565b6103d7610414366004613374565b610d4f565b34801561042557600080fd5b506103d7610434366004613427565b610d65565b6103d7610447366004613472565b610d8c565b34801561045857600080fd5b506103746104673660046132b4565b60096020526000908152604090205481565b34801561048557600080fd5b50610499610494366004613472565b610ed7565b604080516001600160a01b03909316835260208301919091520161037e565b3480156104c457600080fd5b506103d76104d33660046135dd565b610f85565b3480156104e457600080fd5b506103746104f33660046132b4565b61106e565b34801561050457600080fd5b506103d7610513366004613472565b61108f565b34801561052457600080fd5b506103d7610533366004613698565b61112a565b34801561054457600080fd5b506103d761114c565b34801561055957600080fd5b5061056d6105683660046136b5565b61115e565b60405161037e91906137bc565b34801561058657600080fd5b506103a76105953660046132b4565b611287565b3480156105a657600080fd5b506103d76105b53660046137cf565b6112a0565b3480156105c657600080fd5b506103d76105d53660046137ec565b611342565b3480156105e657600080fd5b506103d76105f536600461382d565b61135c565b34801561060657600080fd5b50600454600160a81b900460ff166103a7565b34801561062557600080fd5b506103746106343660046132b4565b61136f565b34801561064557600080fd5b506103d76113a1565b34801561065a57600080fd5b506103d761066936600461386b565b611416565b34801561067a57600080fd5b506103d7611494565b34801561068f57600080fd5b506103a761069e3660046132b4565b6114a6565b3480156106af57600080fd5b506103d76106be3660046138d6565b6114b3565b3480156106cf57600080fd5b506103d76114c7565b3480156106e457600080fd5b506103d76106f33660046137ec565b6114d7565b34801561070457600080fd5b5060045461010090046001600160a01b03166040516001600160a01b03909116815260200161037e565b34801561073a57600080fd5b506103d7610749366004613935565b6114ec565b34801561075a57600080fd5b50610374600f5481565b34801561077057600080fd5b506103d761077f3660046139a8565b611567565b34801561079057600080fd5b506103d761079f3660046137ec565b61163d565b3480156107b057600080fd5b506103d76107bf366004613698565b611684565b3480156107d057600080fd5b506103d761169f565b3480156107e557600080fd5b506103d76107f4366004613472565b6116b1565b34801561080557600080fd5b506103746108143660046132b4565b60009081526003602052604090205490565b34801561083257600080fd5b506103d76108413660046139e1565b6116bc565b34801561085257600080fd5b506103d76108613660046132b4565b6116dc565b34801561087257600080fd5b506103d7610881366004613a84565b6116e9565b34801561089257600080fd5b506103d76108a1366004613aa2565b61172d565b3480156108b257600080fd5b506103d76108c1366004613af4565b6117ad565b3480156108d257600080fd5b506103d76108e1366004613b29565b611842565b3480156108f257600080fd5b506103d7610901366004613b5e565b611875565b6103d7610914366004613ba9565b6118b4565b34801561092557600080fd5b506103a7610934366004613be2565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561096e57600080fd5b506103d761097d3660046132b4565b611a03565b34801561098e57600080fd5b5060045460ff166103a7565b3480156109a657600080fd5b506103d76109b5366004613472565b611a97565b3480156109c657600080fd5b506103d76109d5366004613c10565b611b72565b3480156109e657600080fd5b506103d76109f53660046137cf565b611c56565b348015610a0657600080fd5b506103d7610a15366004613b29565b611ccf565b348015610a2657600080fd5b506103d7610a35366004613472565b611d9a565b348015610a4657600080fd5b506103a7610a55366004613c78565b611db4565b6103d7610a68366004613c9d565b611dc8565b60006001600160a01b038316610add5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b6000610b1182611dd6565b80610b005750610b0082611e26565b610b28611e4b565b610b328282611eab565b5050565b6000818152600b6020526040812080546060929190610b5490613cfd565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8090613cfd565b8015610bcd5780601f10610ba257610100808354040283529160200191610bcd565b820191906000526020600020905b815481529060010190602001808311610bb057829003601f168201915b50505050509050600081511115610bee57610be781611f65565b9392505050565b600c546000819003610c0b57610c0384611f94565b949350505050565b6000600c610c1a600184613d4d565b81548110610c2a57610c2a613d60565b9060005260206000200154905080851115610c5157610c4885611f94565b95945050505050565b60005b82811015610d45576000600c8281548110610c7157610c71613d60565b9060005260206000200154905086811115610d32576000818152600b602052604090208054610d279190610ca490613cfd565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd090613cfd565b8015610d1d5780601f10610cf257610100808354040283529160200191610d1d565b820191906000526020600020905b815481529060010190602001808311610d0057829003601f168201915b5050505050611f65565b979650505050505050565b5080610d3d81613d76565b915050610c54565b50610c4885611f94565b610d5d868686868686612028565b505050505050565b610d6d611e4b565b6000838152600b60205260409020610d86828483613dd5565b50505050565b610d946121b7565b6000828152600960205260408120548291849190819003610dc857604051639a3a00ad60e01b815260040160405180910390fd5b600082815260096020526040812054610de2908590613e94565b905080341015610e0e576040516359c2d1ed60e11b815234600482015260248101829052604401610ad4565b6000838152600a602052604081205490819003610e4157604051631a3ed2ab60e01b815260048101859052602401610ad4565b600f54851115610e7257600f546040516377c4e6cf60e01b8152610ad4918791600401918252602082015260400190565b610e7d858583612204565b600260055403610e9f5760405162461bcd60e51b8152600401610ad490613eab565b6002600555610ec9338888604051806040016040528060018152602001600360fc1b815250612240565b505060016005555050505050565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610f4c5750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610f6b906001600160601b031687613e94565b610f759190613ef8565b91519350909150505b9250929050565b600454859060ff16158015610fa857506daaeb6d7670e522a718067333cd4e3b15155b1561106157336001600160a01b03821603610fcf57610fca868686868661235a565b610d5d565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561101e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110429190613f0c565b61106157604051633b79c77360e21b8152336004820152602401610ad4565b610d5d868686868661235a565b600c818154811061107e57600080fd5b600091825260209091200154905081565b611097611e4b565b600082815260036020526040902054808210156110d15760405163537802fd60e01b81526004810183905260248101829052604401610ad4565b6000838152600a602052604090205480158015906110ee57508083115b1561111657604051631b81287d60e21b81526004810184905260248101829052604401610ad4565b50506000918252600a602052604090912055565b611132611e4b565b601080549115156101000261ff0019909216919091179055565b611154611e4b565b61115c61239f565b565b606081518351146111c35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610ad4565b600083516001600160401b038111156111de576111de613494565b604051908082528060200260200182016040528015611207578160200160208202803683370190505b50905060005b845181101561127f5761125285828151811061122b5761122b613d60565b602002602001015185838151811061124557611245613d60565b6020026020010151610a6d565b82828151811061126457611264613d60565b602090810291909101015261127881613d76565b905061120d565b509392505050565b60008181526003602052604081205481905b1192915050565b6112a8611e4b565b6000816001600160a01b03164760405160006040518083038185875af1925050503d80600081146112f5576040519150601f19603f3d011682016040523d82523d6000602084013e6112fa565b606091505b5050905080610b325760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610ad4565b61134a611e4b565b600d611357828483613dd5565b505050565b611364611e4b565b6113578383836123f4565b6000818152600a6020526040812054808203610b0057604051631a3ed2ab60e01b815260048101849052602401610ad4565b60045461010090046001600160a01b03166001600160a01b0316336001600160a01b0316146113e357604051635fc483c560e01b815260040160405180910390fd5b60045460ff16156114075760405163905e710760e01b815260040160405180910390fd5b6004805460ff19166001179055565b8281146114365760405163429c7a2560e01b815260040160405180910390fd5b60005b8381101561148d5761147b85858381811061145657611456613d60565b9050602002013584848481811061146f5761146f613d60565b9050602002013561108f565b8061148581613d76565b915050611439565b5050505050565b61149c611e4b565b61115c60006124bf565b6000806112998330612519565b6114bd8484611342565b610d8682826114d7565b6114cf611e4b565b61115c612541565b6114df611e4b565b600e611357828483613dd5565b83821461150c5760405163429c7a2560e01b815260040160405180910390fd5b60005b84811015610d5d57600086868381811061152b5761152b613d60565b90506020020135905061154a8186868581811061146f5761146f613d60565b6115548184611d9a565b508061155f81613d76565b91505061150f565b600454829060ff1615801561158a57506daaeb6d7670e522a718067333cd4e3b15155b1561163357604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156115e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160b9190613f0c565b61163357604051633b79c77360e21b81526001600160a01b0382166004820152602401610ad4565b6113578383612584565b611645611e4b565b610b3282828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061258f92505050565b61168c611e4b565b6010805460ff1916911515919091179055565b6116a7611e4b565b61115c6000600655565b610b32338383611ccf565b6116c7878787610d65565b6116d3848484846114b3565b50505050505050565b6116e4611e4b565b600f55565b6116f1611e4b565b6040805180820190915291151580835290151560209092018290526010805461010090930261ff001990921661ffff1990931692909217179055565b611735611e4b565b6000818152600a602052604090205482811561175f5761175f6117588288613e94565b8484612204565b60005b818110156116d35761179b878588888581811061178157611781613d60565b905060200201602081019061179691906137cf565b61259b565b806117a581613d76565b915050611762565b6117b5611e4b565b8080156118365760015b818110156118345783836117d4600184613d4d565b8181106117e3576117e3613d60565b905060200201358484838181106117fc576117fc613d60565b90506020020135101561182257604051630738b51760e01b815260040160405180910390fd5b8061182c81613d76565b9150506117bf565b505b610d86600c848461318f565b61184a611e4b565b6000818152600a6020526040902054801561186a5761186a838383612204565b610d8683838661259b565b60005b82811015610d86576118a284848381811061189557611895613d60565b9050602002013583611d9a565b806118ac81613d76565b915050611878565b6118bc6121b7565b60008381526009602052604081205483918591908190036118f057604051639a3a00ad60e01b815260040160405180910390fd5b60008281526009602052604081205461190a908590613e94565b905080341015611936576040516359c2d1ed60e11b815234600482015260248101829052604401610ad4565b6000838152600a60205260408120549081900361196957604051631a3ed2ab60e01b815260048101859052602401610ad4565b600f5485111561199a57600f546040516377c4e6cf60e01b8152610ad4918791600401918252602082015260400190565b6119a5858583612204565b6002600554036119c75760405162461bcd60e51b8152600401610ad490613eab565b60026005819055506119f4868989604051806040016040528060018152602001600360fc1b815250612240565b50506001600555505050505050565b611a0b611e4b565b600c548015801590611a43575081600c611a26600184613d4d565b81548110611a3657611a36613d60565b9060005260206000200154115b15611a6157604051630738b51760e01b815260040160405180910390fd5b50600c80546001810182556000919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70155565b611a9f611e4b565b6000818152600a6020526040812054151580611ac75750600082815260036020526040812054115b90508115801590611ad55750805b15611af35760405163076897bf60e41b815260040160405180910390fd5b611afd83836125c0565b8115611b4257827f86cb47db50efb3a8cf1d8fea9c963cf6dd612454cf80d4e9f599d4015af31ca883604051611b3591815260200190565b60405180910390a2505050565b60405183907f32625f68a8ca3cd4e000fdcdaa9e6a6173c1935c62f6fc5c4154a25fc4fd94b190600090a2505050565b600454859060ff16158015611b9557506daaeb6d7670e522a718067333cd4e3b15155b15611c4957336001600160a01b03821603611bb757610fca86868686866125cb565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611c06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c2a9190613f0c565b611c4957604051633b79c77360e21b8152336004820152602401610ad4565b610d5d86868686866125cb565b611c5e611e4b565b6001600160a01b038116611cc35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ad4565b611ccc816124bf565b50565b600260055403611cf15760405162461bcd60e51b8152600401610ad490613eab565b60026005556000828152600a602052604081205490819003611d2957604051631a3ed2ab60e01b815260048101849052602401610ad4565b6040805180820190915260105460ff80821615158084526101009092041615156020830152611d6b576040516302ca116d60e21b815260040160405180910390fd5b611d76858585612610565b806020015115611d8e57611d8e846105138585613d4d565b50506001600555505050565b611da2611e4b565b60009182526009602052604090912055565b6000611dc08383612519565b159392505050565b61148d858585338686612028565b60006001600160e01b03198216636cdb3d1360e11b1480611e0757506001600160e01b031982166303a24d0760e21b145b80610b0057506301ffc9a760e01b6001600160e01b0319831614610b00565b60006001600160e01b0319821663152a902d60e11b1480610b005750610b0082611dd6565b6004546001600160a01b0361010090910416331461115c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad4565b6127106001600160601b0382161115611ed65760405162461bcd60e51b8152600401610ad490613f29565b6001600160a01b038216611f2c5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610ad4565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6060600d82600e604051602001611f7e93929190613fe6565b6040516020818303038152906040529050919050565b606060028054611fa390613cfd565b80601f0160208091040260200160405190810160405280929190818152602001828054611fcf90613cfd565b801561201c5780601f10611ff15761010080835404028352916020019161201c565b820191906000526020600020905b815481529060010190602001808311611fff57829003601f168201915b50505050509050919050565b6120306121b7565b838361203b826114a6565b61205b5760405163b882206160e01b815260048101839052602401610ad4565b6120658282611db4565b6120945760405163546511c760e11b8152600481018390526001600160a01b0382166024820152604401610ad4565b604080516001600160a01b03871660208201529081018990526060810188905234608082015260009060a00160408051601f19818403018152828252805160209182012090830152016040516020818303038152906040528051906020012090506121358585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508b92508591506127a09050565b6121725760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b6044820152606401610ad4565b61217c87876127b6565b6121ac8661218b898c8c6127c2565b6001604051806040016040528060018152602001600360fc1b815250612240565b505050505050505050565b600454600160a81b900460ff161561115c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610ad4565b60008281526003602052604081205461221d9083613d4d565b905080841115610d8657604051638a164f6360e01b815260040160405180910390fd5b6001600160a01b0384166122a05760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610ad4565b3360006122ac8561284e565b905060006122b98561284e565b90506122ca83600089858589612899565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906122fa90849061400e565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46116d383600089898989612a12565b6001600160a01b03851633148061237657506123768533610934565b6123925760405162461bcd60e51b8152600401610ad490614021565b61148d8585858585612b6d565b6123a7612d50565b6004805460ff60a81b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6127106001600160601b038216111561241f5760405162461bcd60e51b8152600401610ad490613f29565b6001600160a01b0382166124755760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610ad4565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600790529190942093519051909116600160a01b029116179055565b600480546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60009182526008602090815260408084206001600160a01b0393909316845291905290205490565b6125496121b7565b6004805460ff60a81b1916600160a81b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586123d73390565b610b32338383612da0565b6002610b328282614070565b611357818385604051806040016040528060018152602001600360fc1b815250612240565b610b32828230612e80565b6001600160a01b0385163314806125e757506125e78533610934565b6126035760405162461bcd60e51b8152600401610ad490614021565b61148d8585858585612eb2565b6001600160a01b0383166126725760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610ad4565b33600061267e8461284e565b9050600061268b8461284e565b90506126ab83876000858560405180602001604052806000815250612899565b6000858152602081815260408083206001600160a01b038a168452909152902054848110156127285760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610ad4565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090526116d3565b6000826127ad8584612fdf565b14949350505050565b610b3282600183612e80565b6000806127cf8530612519565b9050600060016127df868461400e565b6127e99190613d4d565b90506000846128048360009081526003602052604090205490565b10156128245785612813613024565b61281d919061412f565b9050612844565b61282f600187613d4d565b612837613024565b612841919061412f565b90505b610d27818461400e565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061288857612888613d60565b602090810291909101015292915050565b6001600160a01b0385166129205760005b835181101561291e578281815181106128c5576128c5613d60565b6020026020010151600360008684815181106128e3576128e3613d60565b602002602001015181526020019081526020016000206000828254612908919061400e565b90915550612917905081613d76565b90506128aa565b505b6001600160a01b038416610d5d5760005b83518110156116d357600084828151811061294e5761294e613d60565b60200260200101519050600084838151811061296c5761296c613d60565b60200260200101519050600060036000848152602001908152602001600020549050818110156129ef5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b6064820152608401610ad4565b60009283526003602052604090922091039055612a0b81613d76565b9050612931565b6001600160a01b0384163b15610d5d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612a569089908990889088908890600401614143565b6020604051808303816000875af1925050508015612a91575060408051601f3d908101601f19168201909252612a8e9181019061417d565b60015b612b3d57612a9d61419a565b806308c379a003612ad65750612ab16141b6565b80612abc5750612ad8565b8060405162461bcd60e51b8152600401610ad4919061331d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610ad4565b6001600160e01b0319811663f23a6e6160e01b146116d35760405162461bcd60e51b8152600401610ad49061423f565b8151835114612bcf5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610ad4565b6001600160a01b038416612bf55760405162461bcd60e51b8152600401610ad490614287565b33612c04818787878787612899565b60005b8451811015612cea576000858281518110612c2457612c24613d60565b602002602001015190506000858381518110612c4257612c42613d60565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015612c925760405162461bcd60e51b8152600401610ad4906142cc565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612ccf90849061400e565b9250508190555050505080612ce390613d76565b9050612c07565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612d3a929190614316565b60405180910390a4610d5d81878787878761307c565b600454600160a81b900460ff1661115c5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610ad4565b816001600160a01b0316836001600160a01b031603612e135760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610ad4565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612e8b838383613137565b60009283526008602090815260408085206001600160a01b03909316855291905290912055565b6001600160a01b038416612ed85760405162461bcd60e51b8152600401610ad490614287565b336000612ee48561284e565b90506000612ef18561284e565b9050612f01838989858589612899565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015612f425760405162461bcd60e51b8152600401610ad4906142cc565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612f7f90849061400e565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46121ac848a8a8a8a8a612a12565b600081815b845181101561127f576130108286838151811061300357613003613d60565b6020026020010151613163565b91508061301c81613d76565b915050612fe4565b600032613032600143613d4d565b60405160609290921b6bffffffffffffffffffffffff191660208301524060348201524260548201526074016040516020818303038152906040528051906020012060001c905090565b6001600160a01b0384163b15610d5d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906130c0908990899088908890889060040161433b565b6020604051808303816000875af19250505080156130fb575060408051601f3d908101601f191682019092526130f89181019061417d565b60015b61310757612a9d61419a565b6001600160e01b0319811663bc197c8160e01b146116d35760405162461bcd60e51b8152600401610ad49061423f565b816131428483612519565b036113575760405163c6d18db560e01b815260048101839052602401610ad4565b600081831061317f576000828152602084905260409020610be7565b5060009182526020526040902090565b8280548282559060005260206000209081019282156131ca579160200282015b828111156131ca5782358255916020019190600101906131af565b506131d69291506131da565b5090565b5b808211156131d657600081556001016131db565b6001600160a01b0381168114611ccc57600080fd5b6000806040838503121561321757600080fd5b8235613222816131ef565b946020939093013593505050565b6001600160e01b031981168114611ccc57600080fd5b60006020828403121561325857600080fd5b8135610be781613230565b80356001600160601b038116811461327a57600080fd5b919050565b6000806040838503121561329257600080fd5b823561329d816131ef565b91506132ab60208401613263565b90509250929050565b6000602082840312156132c657600080fd5b5035919050565b60005b838110156132e85781810151838201526020016132d0565b50506000910152565b600081518084526133098160208601602086016132cd565b601f01601f19169290920160200192915050565b602081526000610be760208301846132f1565b60008083601f84011261334257600080fd5b5081356001600160401b0381111561335957600080fd5b6020830191508360208260051b8501011115610f7e57600080fd5b60008060008060008060a0878903121561338d57600080fd5b86359550602087013594506040870135935060608701356133ad816131ef565b925060808701356001600160401b038111156133c857600080fd5b6133d489828a01613330565b979a9699509497509295939492505050565b60008083601f8401126133f857600080fd5b5081356001600160401b0381111561340f57600080fd5b602083019150836020828501011115610f7e57600080fd5b60008060006040848603121561343c57600080fd5b8335925060208401356001600160401b0381111561345957600080fd5b613465868287016133e6565b9497909650939450505050565b6000806040838503121561348557600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156134cf576134cf613494565b6040525050565b60006001600160401b038211156134ef576134ef613494565b5060051b60200190565b600082601f83011261350a57600080fd5b81356020613517826134d6565b60405161352482826134aa565b83815260059390931b850182019282810191508684111561354457600080fd5b8286015b8481101561355f5780358352918301918301613548565b509695505050505050565b600082601f83011261357b57600080fd5b81356001600160401b0381111561359457613594613494565b6040516135ab601f8301601f1916602001826134aa565b8181528460208386010111156135c057600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156135f557600080fd5b8535613600816131ef565b94506020860135613610816131ef565b935060408601356001600160401b038082111561362c57600080fd5b61363889838a016134f9565b9450606088013591508082111561364e57600080fd5b61365a89838a016134f9565b9350608088013591508082111561367057600080fd5b5061367d8882890161356a565b9150509295509295909350565b8015158114611ccc57600080fd5b6000602082840312156136aa57600080fd5b8135610be78161368a565b600080604083850312156136c857600080fd5b82356001600160401b03808211156136df57600080fd5b818501915085601f8301126136f357600080fd5b81356020613700826134d6565b60405161370d82826134aa565b83815260059390931b850182019282810191508984111561372d57600080fd5b948201945b83861015613754578535613745816131ef565b82529482019490820190613732565b9650508601359250508082111561376a57600080fd5b50613777858286016134f9565b9150509250929050565b600081518084526020808501945080840160005b838110156137b157815187529582019590820190600101613795565b509495945050505050565b602081526000610be76020830184613781565b6000602082840312156137e157600080fd5b8135610be7816131ef565b600080602083850312156137ff57600080fd5b82356001600160401b0381111561381557600080fd5b613821858286016133e6565b90969095509350505050565b60008060006060848603121561384257600080fd5b833592506020840135613854816131ef565b915061386260408501613263565b90509250925092565b6000806000806040858703121561388157600080fd5b84356001600160401b038082111561389857600080fd5b6138a488838901613330565b909650945060208701359150808211156138bd57600080fd5b506138ca87828801613330565b95989497509550505050565b600080600080604085870312156138ec57600080fd5b84356001600160401b038082111561390357600080fd5b61390f888389016133e6565b9096509450602087013591508082111561392857600080fd5b506138ca878288016133e6565b60008060008060006060868803121561394d57600080fd5b85356001600160401b038082111561396457600080fd5b61397089838a01613330565b9097509550602088013591508082111561398957600080fd5b5061399688828901613330565b96999598509660400135949350505050565b600080604083850312156139bb57600080fd5b82356139c6816131ef565b915060208301356139d68161368a565b809150509250929050565b60008060008060008060006080888a0312156139fc57600080fd5b8735965060208801356001600160401b0380821115613a1a57600080fd5b613a268b838c016133e6565b909850965060408a0135915080821115613a3f57600080fd5b613a4b8b838c016133e6565b909650945060608a0135915080821115613a6457600080fd5b50613a718a828b016133e6565b989b979a50959850939692959293505050565b60008060408385031215613a9757600080fd5b82356139c68161368a565b60008060008060608587031215613ab857600080fd5b8435935060208501356001600160401b03811115613ad557600080fd5b613ae187828801613330565b9598909750949560400135949350505050565b60008060208385031215613b0757600080fd5b82356001600160401b03811115613b1d57600080fd5b61382185828601613330565b600080600060608486031215613b3e57600080fd5b8335613b49816131ef565b95602085013595506040909401359392505050565b600080600060408486031215613b7357600080fd5b83356001600160401b03811115613b8957600080fd5b613b9586828701613330565b909790965060209590950135949350505050565b600080600060608486031215613bbe57600080fd5b83359250602084013591506040840135613bd7816131ef565b809150509250925092565b60008060408385031215613bf557600080fd5b8235613c00816131ef565b915060208301356139d6816131ef565b600080600080600060a08688031215613c2857600080fd5b8535613c33816131ef565b94506020860135613c43816131ef565b9350604086013592506060860135915060808601356001600160401b03811115613c6c57600080fd5b61367d8882890161356a565b60008060408385031215613c8b57600080fd5b8235915060208301356139d6816131ef565b600080600080600060808688031215613cb557600080fd5b85359450602086013593506040860135925060608601356001600160401b03811115613ce057600080fd5b613cec88828901613330565b969995985093965092949392505050565b600181811c90821680613d1157607f821691505b602082108103613d3157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610b0057610b00613d37565b634e487b7160e01b600052603260045260246000fd5b600060018201613d8857613d88613d37565b5060010190565b601f82111561135757600081815260208120601f850160051c81016020861015613db65750805b601f850160051c820191505b81811015610d5d57828155600101613dc2565b6001600160401b03831115613dec57613dec613494565b613e0083613dfa8354613cfd565b83613d8f565b6000601f841160018114613e345760008515613e1c5750838201355b600019600387901b1c1916600186901b17835561148d565b600083815260209020601f19861690835b82811015613e655786850135825560209485019460019092019101613e45565b5086821015613e825760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8082028115828204841417610b0057610b00613d37565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601260045260246000fd5b600082613f0757613f07613ee2565b500490565b600060208284031215613f1e57600080fd5b8151610be78161368a565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b60008154613f8081613cfd565b60018281168015613f985760018114613fad57613fdc565b60ff1984168752821515830287019450613fdc565b8560005260208060002060005b85811015613fd35781548a820152908401908201613fba565b50505082870194505b5050505092915050565b6000613ff28286613f73565b84516140028183602089016132cd565b610d2781830186613f73565b80820180821115610b0057610b00613d37565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b81516001600160401b0381111561408957614089613494565b61409d816140978454613cfd565b84613d8f565b602080601f8311600181146140d257600084156140ba5750858301515b600019600386901b1c1916600185901b178555610d5d565b600085815260208120601f198616915b82811015614101578886015182559484019460019091019084016140e2565b508582101561411f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008261413e5761413e613ee2565b500690565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090610d27908301846132f1565b60006020828403121561418f57600080fd5b8151610be781613230565b600060033d11156141b35760046000803e5060005160e01c5b90565b600060443d10156141c45790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156141f357505050505090565b828501915081518181111561420b5750505050505090565b843d87010160208285010111156142255750505050505090565b614234602082860101876134aa565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006143296040830185613781565b8281036020840152610c488185613781565b6001600160a01b0386811682528516602082015260a06040820181905260009061436790830186613781565b82810360608401526143798186613781565b9050828103608084015261438d81856132f1565b9897505050505050505056fea26469706673582212205689450f7a257f4626c3353a64d455ede6d4c4f63e53be0e3fc84f6618b6444864736f6c6343000811003300000000000000000000000000000000000000000000000000000000000002bc00000000000000000000000063f4c36bd548c3ad3dd18364c987e9a062a330ce0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000003f697066733a2f2f516d5a51353671554452707452586968635176704b4b76473148586d4169366231746966746764544b62616d55472f7b69647d2e6a736f6e00

Deployed Bytecode

0x60806040526004361061034f5760003560e01c80638be18e57116101c6578063d8bd4561116100f7578063ee20678511610095578063f5298aca1161006f578063f5298aca146109fa578063f7d9757714610a1a578063fa2bc13814610a3a578063fbb9581e14610a5a57600080fd5b8063ee2067851461099a578063f242432a146109ba578063f2fde38b146109da57600080fd5b8063e7d3fe6b116100d1578063e7d3fe6b14610906578063e985e9c514610919578063e9b3beac14610962578063ecba222a1461098257600080fd5b8063d8bd4561146108a6578063dfe4764d146108c6578063e0cbc479146108e657600080fd5b8063aa1b103f11610164578063be7263bc1161013e578063be7263bc14610826578063c6f6f21614610846578063d347151614610866578063d689aff11461088657600080fd5b8063aa1b103f146107c4578063b390c0ab146107d9578063bd85b039146107f957600080fd5b806394354fd0116101a057806394354fd01461074e578063a22cb46514610764578063a2fcf1a814610784578063a959d26d146107a457600080fd5b80638be18e57146106d85780638da5cb5b146106f85780638ee222a01461072e57600080fd5b80633f4ba83a116102a05780635e495d741161023e578063715018a611610218578063715018a61461066e578063718d64e11461068357806379937086146106a35780638456cb59146106c357600080fd5b80635e495d74146106195780635ef9432a146106395780636cf6a3fa1461064e57600080fd5b806351cff8d91161027a57806351cff8d91461059a57806355f804b3146105ba5780635944c753146105da5780635c975abb146105fa57600080fd5b80633f4ba83a146105385780634e1273f41461054d5780634f558e791461057a57600080fd5b80631b2ef1ca1161030d5780632eb2c2d6116102e75780632eb2c2d6146104b8578063302bb9bb146104d857806337da577c146104f85780633d61e0981461051857600080fd5b80631b2ef1ca1461043957806326a49e371461044c5780632a55205a1461047957600080fd5b8062fdd58e1461035457806301ffc9a71461038757806304634d8d146103b75780630e89341c146103d95780631269c60314610406578063162094c414610419575b600080fd5b34801561036057600080fd5b5061037461036f366004613204565b610a6d565b6040519081526020015b60405180910390f35b34801561039357600080fd5b506103a76103a2366004613246565b610b06565b604051901515815260200161037e565b3480156103c357600080fd5b506103d76103d236600461327f565b610b20565b005b3480156103e557600080fd5b506103f96103f43660046132b4565b610b36565b60405161037e919061331d565b6103d7610414366004613374565b610d4f565b34801561042557600080fd5b506103d7610434366004613427565b610d65565b6103d7610447366004613472565b610d8c565b34801561045857600080fd5b506103746104673660046132b4565b60096020526000908152604090205481565b34801561048557600080fd5b50610499610494366004613472565b610ed7565b604080516001600160a01b03909316835260208301919091520161037e565b3480156104c457600080fd5b506103d76104d33660046135dd565b610f85565b3480156104e457600080fd5b506103746104f33660046132b4565b61106e565b34801561050457600080fd5b506103d7610513366004613472565b61108f565b34801561052457600080fd5b506103d7610533366004613698565b61112a565b34801561054457600080fd5b506103d761114c565b34801561055957600080fd5b5061056d6105683660046136b5565b61115e565b60405161037e91906137bc565b34801561058657600080fd5b506103a76105953660046132b4565b611287565b3480156105a657600080fd5b506103d76105b53660046137cf565b6112a0565b3480156105c657600080fd5b506103d76105d53660046137ec565b611342565b3480156105e657600080fd5b506103d76105f536600461382d565b61135c565b34801561060657600080fd5b50600454600160a81b900460ff166103a7565b34801561062557600080fd5b506103746106343660046132b4565b61136f565b34801561064557600080fd5b506103d76113a1565b34801561065a57600080fd5b506103d761066936600461386b565b611416565b34801561067a57600080fd5b506103d7611494565b34801561068f57600080fd5b506103a761069e3660046132b4565b6114a6565b3480156106af57600080fd5b506103d76106be3660046138d6565b6114b3565b3480156106cf57600080fd5b506103d76114c7565b3480156106e457600080fd5b506103d76106f33660046137ec565b6114d7565b34801561070457600080fd5b5060045461010090046001600160a01b03166040516001600160a01b03909116815260200161037e565b34801561073a57600080fd5b506103d7610749366004613935565b6114ec565b34801561075a57600080fd5b50610374600f5481565b34801561077057600080fd5b506103d761077f3660046139a8565b611567565b34801561079057600080fd5b506103d761079f3660046137ec565b61163d565b3480156107b057600080fd5b506103d76107bf366004613698565b611684565b3480156107d057600080fd5b506103d761169f565b3480156107e557600080fd5b506103d76107f4366004613472565b6116b1565b34801561080557600080fd5b506103746108143660046132b4565b60009081526003602052604090205490565b34801561083257600080fd5b506103d76108413660046139e1565b6116bc565b34801561085257600080fd5b506103d76108613660046132b4565b6116dc565b34801561087257600080fd5b506103d7610881366004613a84565b6116e9565b34801561089257600080fd5b506103d76108a1366004613aa2565b61172d565b3480156108b257600080fd5b506103d76108c1366004613af4565b6117ad565b3480156108d257600080fd5b506103d76108e1366004613b29565b611842565b3480156108f257600080fd5b506103d7610901366004613b5e565b611875565b6103d7610914366004613ba9565b6118b4565b34801561092557600080fd5b506103a7610934366004613be2565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561096e57600080fd5b506103d761097d3660046132b4565b611a03565b34801561098e57600080fd5b5060045460ff166103a7565b3480156109a657600080fd5b506103d76109b5366004613472565b611a97565b3480156109c657600080fd5b506103d76109d5366004613c10565b611b72565b3480156109e657600080fd5b506103d76109f53660046137cf565b611c56565b348015610a0657600080fd5b506103d7610a15366004613b29565b611ccf565b348015610a2657600080fd5b506103d7610a35366004613472565b611d9a565b348015610a4657600080fd5b506103a7610a55366004613c78565b611db4565b6103d7610a68366004613c9d565b611dc8565b60006001600160a01b038316610add5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b6000610b1182611dd6565b80610b005750610b0082611e26565b610b28611e4b565b610b328282611eab565b5050565b6000818152600b6020526040812080546060929190610b5490613cfd565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8090613cfd565b8015610bcd5780601f10610ba257610100808354040283529160200191610bcd565b820191906000526020600020905b815481529060010190602001808311610bb057829003601f168201915b50505050509050600081511115610bee57610be781611f65565b9392505050565b600c546000819003610c0b57610c0384611f94565b949350505050565b6000600c610c1a600184613d4d565b81548110610c2a57610c2a613d60565b9060005260206000200154905080851115610c5157610c4885611f94565b95945050505050565b60005b82811015610d45576000600c8281548110610c7157610c71613d60565b9060005260206000200154905086811115610d32576000818152600b602052604090208054610d279190610ca490613cfd565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd090613cfd565b8015610d1d5780601f10610cf257610100808354040283529160200191610d1d565b820191906000526020600020905b815481529060010190602001808311610d0057829003601f168201915b5050505050611f65565b979650505050505050565b5080610d3d81613d76565b915050610c54565b50610c4885611f94565b610d5d868686868686612028565b505050505050565b610d6d611e4b565b6000838152600b60205260409020610d86828483613dd5565b50505050565b610d946121b7565b6000828152600960205260408120548291849190819003610dc857604051639a3a00ad60e01b815260040160405180910390fd5b600082815260096020526040812054610de2908590613e94565b905080341015610e0e576040516359c2d1ed60e11b815234600482015260248101829052604401610ad4565b6000838152600a602052604081205490819003610e4157604051631a3ed2ab60e01b815260048101859052602401610ad4565b600f54851115610e7257600f546040516377c4e6cf60e01b8152610ad4918791600401918252602082015260400190565b610e7d858583612204565b600260055403610e9f5760405162461bcd60e51b8152600401610ad490613eab565b6002600555610ec9338888604051806040016040528060018152602001600360fc1b815250612240565b505060016005555050505050565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610f4c5750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610f6b906001600160601b031687613e94565b610f759190613ef8565b91519350909150505b9250929050565b600454859060ff16158015610fa857506daaeb6d7670e522a718067333cd4e3b15155b1561106157336001600160a01b03821603610fcf57610fca868686868661235a565b610d5d565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561101e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110429190613f0c565b61106157604051633b79c77360e21b8152336004820152602401610ad4565b610d5d868686868661235a565b600c818154811061107e57600080fd5b600091825260209091200154905081565b611097611e4b565b600082815260036020526040902054808210156110d15760405163537802fd60e01b81526004810183905260248101829052604401610ad4565b6000838152600a602052604090205480158015906110ee57508083115b1561111657604051631b81287d60e21b81526004810184905260248101829052604401610ad4565b50506000918252600a602052604090912055565b611132611e4b565b601080549115156101000261ff0019909216919091179055565b611154611e4b565b61115c61239f565b565b606081518351146111c35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610ad4565b600083516001600160401b038111156111de576111de613494565b604051908082528060200260200182016040528015611207578160200160208202803683370190505b50905060005b845181101561127f5761125285828151811061122b5761122b613d60565b602002602001015185838151811061124557611245613d60565b6020026020010151610a6d565b82828151811061126457611264613d60565b602090810291909101015261127881613d76565b905061120d565b509392505050565b60008181526003602052604081205481905b1192915050565b6112a8611e4b565b6000816001600160a01b03164760405160006040518083038185875af1925050503d80600081146112f5576040519150601f19603f3d011682016040523d82523d6000602084013e6112fa565b606091505b5050905080610b325760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610ad4565b61134a611e4b565b600d611357828483613dd5565b505050565b611364611e4b565b6113578383836123f4565b6000818152600a6020526040812054808203610b0057604051631a3ed2ab60e01b815260048101849052602401610ad4565b60045461010090046001600160a01b03166001600160a01b0316336001600160a01b0316146113e357604051635fc483c560e01b815260040160405180910390fd5b60045460ff16156114075760405163905e710760e01b815260040160405180910390fd5b6004805460ff19166001179055565b8281146114365760405163429c7a2560e01b815260040160405180910390fd5b60005b8381101561148d5761147b85858381811061145657611456613d60565b9050602002013584848481811061146f5761146f613d60565b9050602002013561108f565b8061148581613d76565b915050611439565b5050505050565b61149c611e4b565b61115c60006124bf565b6000806112998330612519565b6114bd8484611342565b610d8682826114d7565b6114cf611e4b565b61115c612541565b6114df611e4b565b600e611357828483613dd5565b83821461150c5760405163429c7a2560e01b815260040160405180910390fd5b60005b84811015610d5d57600086868381811061152b5761152b613d60565b90506020020135905061154a8186868581811061146f5761146f613d60565b6115548184611d9a565b508061155f81613d76565b91505061150f565b600454829060ff1615801561158a57506daaeb6d7670e522a718067333cd4e3b15155b1561163357604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156115e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160b9190613f0c565b61163357604051633b79c77360e21b81526001600160a01b0382166004820152602401610ad4565b6113578383612584565b611645611e4b565b610b3282828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061258f92505050565b61168c611e4b565b6010805460ff1916911515919091179055565b6116a7611e4b565b61115c6000600655565b610b32338383611ccf565b6116c7878787610d65565b6116d3848484846114b3565b50505050505050565b6116e4611e4b565b600f55565b6116f1611e4b565b6040805180820190915291151580835290151560209092018290526010805461010090930261ff001990921661ffff1990931692909217179055565b611735611e4b565b6000818152600a602052604090205482811561175f5761175f6117588288613e94565b8484612204565b60005b818110156116d35761179b878588888581811061178157611781613d60565b905060200201602081019061179691906137cf565b61259b565b806117a581613d76565b915050611762565b6117b5611e4b565b8080156118365760015b818110156118345783836117d4600184613d4d565b8181106117e3576117e3613d60565b905060200201358484838181106117fc576117fc613d60565b90506020020135101561182257604051630738b51760e01b815260040160405180910390fd5b8061182c81613d76565b9150506117bf565b505b610d86600c848461318f565b61184a611e4b565b6000818152600a6020526040902054801561186a5761186a838383612204565b610d8683838661259b565b60005b82811015610d86576118a284848381811061189557611895613d60565b9050602002013583611d9a565b806118ac81613d76565b915050611878565b6118bc6121b7565b60008381526009602052604081205483918591908190036118f057604051639a3a00ad60e01b815260040160405180910390fd5b60008281526009602052604081205461190a908590613e94565b905080341015611936576040516359c2d1ed60e11b815234600482015260248101829052604401610ad4565b6000838152600a60205260408120549081900361196957604051631a3ed2ab60e01b815260048101859052602401610ad4565b600f5485111561199a57600f546040516377c4e6cf60e01b8152610ad4918791600401918252602082015260400190565b6119a5858583612204565b6002600554036119c75760405162461bcd60e51b8152600401610ad490613eab565b60026005819055506119f4868989604051806040016040528060018152602001600360fc1b815250612240565b50506001600555505050505050565b611a0b611e4b565b600c548015801590611a43575081600c611a26600184613d4d565b81548110611a3657611a36613d60565b9060005260206000200154115b15611a6157604051630738b51760e01b815260040160405180910390fd5b50600c80546001810182556000919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70155565b611a9f611e4b565b6000818152600a6020526040812054151580611ac75750600082815260036020526040812054115b90508115801590611ad55750805b15611af35760405163076897bf60e41b815260040160405180910390fd5b611afd83836125c0565b8115611b4257827f86cb47db50efb3a8cf1d8fea9c963cf6dd612454cf80d4e9f599d4015af31ca883604051611b3591815260200190565b60405180910390a2505050565b60405183907f32625f68a8ca3cd4e000fdcdaa9e6a6173c1935c62f6fc5c4154a25fc4fd94b190600090a2505050565b600454859060ff16158015611b9557506daaeb6d7670e522a718067333cd4e3b15155b15611c4957336001600160a01b03821603611bb757610fca86868686866125cb565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611c06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c2a9190613f0c565b611c4957604051633b79c77360e21b8152336004820152602401610ad4565b610d5d86868686866125cb565b611c5e611e4b565b6001600160a01b038116611cc35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ad4565b611ccc816124bf565b50565b600260055403611cf15760405162461bcd60e51b8152600401610ad490613eab565b60026005556000828152600a602052604081205490819003611d2957604051631a3ed2ab60e01b815260048101849052602401610ad4565b6040805180820190915260105460ff80821615158084526101009092041615156020830152611d6b576040516302ca116d60e21b815260040160405180910390fd5b611d76858585612610565b806020015115611d8e57611d8e846105138585613d4d565b50506001600555505050565b611da2611e4b565b60009182526009602052604090912055565b6000611dc08383612519565b159392505050565b61148d858585338686612028565b60006001600160e01b03198216636cdb3d1360e11b1480611e0757506001600160e01b031982166303a24d0760e21b145b80610b0057506301ffc9a760e01b6001600160e01b0319831614610b00565b60006001600160e01b0319821663152a902d60e11b1480610b005750610b0082611dd6565b6004546001600160a01b0361010090910416331461115c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad4565b6127106001600160601b0382161115611ed65760405162461bcd60e51b8152600401610ad490613f29565b6001600160a01b038216611f2c5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610ad4565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6060600d82600e604051602001611f7e93929190613fe6565b6040516020818303038152906040529050919050565b606060028054611fa390613cfd565b80601f0160208091040260200160405190810160405280929190818152602001828054611fcf90613cfd565b801561201c5780601f10611ff15761010080835404028352916020019161201c565b820191906000526020600020905b815481529060010190602001808311611fff57829003601f168201915b50505050509050919050565b6120306121b7565b838361203b826114a6565b61205b5760405163b882206160e01b815260048101839052602401610ad4565b6120658282611db4565b6120945760405163546511c760e11b8152600481018390526001600160a01b0382166024820152604401610ad4565b604080516001600160a01b03871660208201529081018990526060810188905234608082015260009060a00160408051601f19818403018152828252805160209182012090830152016040516020818303038152906040528051906020012090506121358585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508b92508591506127a09050565b6121725760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b6044820152606401610ad4565b61217c87876127b6565b6121ac8661218b898c8c6127c2565b6001604051806040016040528060018152602001600360fc1b815250612240565b505050505050505050565b600454600160a81b900460ff161561115c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610ad4565b60008281526003602052604081205461221d9083613d4d565b905080841115610d8657604051638a164f6360e01b815260040160405180910390fd5b6001600160a01b0384166122a05760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610ad4565b3360006122ac8561284e565b905060006122b98561284e565b90506122ca83600089858589612899565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906122fa90849061400e565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46116d383600089898989612a12565b6001600160a01b03851633148061237657506123768533610934565b6123925760405162461bcd60e51b8152600401610ad490614021565b61148d8585858585612b6d565b6123a7612d50565b6004805460ff60a81b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6127106001600160601b038216111561241f5760405162461bcd60e51b8152600401610ad490613f29565b6001600160a01b0382166124755760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610ad4565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600790529190942093519051909116600160a01b029116179055565b600480546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60009182526008602090815260408084206001600160a01b0393909316845291905290205490565b6125496121b7565b6004805460ff60a81b1916600160a81b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586123d73390565b610b32338383612da0565b6002610b328282614070565b611357818385604051806040016040528060018152602001600360fc1b815250612240565b610b32828230612e80565b6001600160a01b0385163314806125e757506125e78533610934565b6126035760405162461bcd60e51b8152600401610ad490614021565b61148d8585858585612eb2565b6001600160a01b0383166126725760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610ad4565b33600061267e8461284e565b9050600061268b8461284e565b90506126ab83876000858560405180602001604052806000815250612899565b6000858152602081815260408083206001600160a01b038a168452909152902054848110156127285760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610ad4565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090526116d3565b6000826127ad8584612fdf565b14949350505050565b610b3282600183612e80565b6000806127cf8530612519565b9050600060016127df868461400e565b6127e99190613d4d565b90506000846128048360009081526003602052604090205490565b10156128245785612813613024565b61281d919061412f565b9050612844565b61282f600187613d4d565b612837613024565b612841919061412f565b90505b610d27818461400e565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061288857612888613d60565b602090810291909101015292915050565b6001600160a01b0385166129205760005b835181101561291e578281815181106128c5576128c5613d60565b6020026020010151600360008684815181106128e3576128e3613d60565b602002602001015181526020019081526020016000206000828254612908919061400e565b90915550612917905081613d76565b90506128aa565b505b6001600160a01b038416610d5d5760005b83518110156116d357600084828151811061294e5761294e613d60565b60200260200101519050600084838151811061296c5761296c613d60565b60200260200101519050600060036000848152602001908152602001600020549050818110156129ef5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b6064820152608401610ad4565b60009283526003602052604090922091039055612a0b81613d76565b9050612931565b6001600160a01b0384163b15610d5d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612a569089908990889088908890600401614143565b6020604051808303816000875af1925050508015612a91575060408051601f3d908101601f19168201909252612a8e9181019061417d565b60015b612b3d57612a9d61419a565b806308c379a003612ad65750612ab16141b6565b80612abc5750612ad8565b8060405162461bcd60e51b8152600401610ad4919061331d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610ad4565b6001600160e01b0319811663f23a6e6160e01b146116d35760405162461bcd60e51b8152600401610ad49061423f565b8151835114612bcf5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610ad4565b6001600160a01b038416612bf55760405162461bcd60e51b8152600401610ad490614287565b33612c04818787878787612899565b60005b8451811015612cea576000858281518110612c2457612c24613d60565b602002602001015190506000858381518110612c4257612c42613d60565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015612c925760405162461bcd60e51b8152600401610ad4906142cc565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612ccf90849061400e565b9250508190555050505080612ce390613d76565b9050612c07565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612d3a929190614316565b60405180910390a4610d5d81878787878761307c565b600454600160a81b900460ff1661115c5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610ad4565b816001600160a01b0316836001600160a01b031603612e135760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610ad4565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612e8b838383613137565b60009283526008602090815260408085206001600160a01b03909316855291905290912055565b6001600160a01b038416612ed85760405162461bcd60e51b8152600401610ad490614287565b336000612ee48561284e565b90506000612ef18561284e565b9050612f01838989858589612899565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015612f425760405162461bcd60e51b8152600401610ad4906142cc565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612f7f90849061400e565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46121ac848a8a8a8a8a612a12565b600081815b845181101561127f576130108286838151811061300357613003613d60565b6020026020010151613163565b91508061301c81613d76565b915050612fe4565b600032613032600143613d4d565b60405160609290921b6bffffffffffffffffffffffff191660208301524060348201524260548201526074016040516020818303038152906040528051906020012060001c905090565b6001600160a01b0384163b15610d5d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906130c0908990899088908890889060040161433b565b6020604051808303816000875af19250505080156130fb575060408051601f3d908101601f191682019092526130f89181019061417d565b60015b61310757612a9d61419a565b6001600160e01b0319811663bc197c8160e01b146116d35760405162461bcd60e51b8152600401610ad49061423f565b816131428483612519565b036113575760405163c6d18db560e01b815260048101839052602401610ad4565b600081831061317f576000828152602084905260409020610be7565b5060009182526020526040902090565b8280548282559060005260206000209081019282156131ca579160200282015b828111156131ca5782358255916020019190600101906131af565b506131d69291506131da565b5090565b5b808211156131d657600081556001016131db565b6001600160a01b0381168114611ccc57600080fd5b6000806040838503121561321757600080fd5b8235613222816131ef565b946020939093013593505050565b6001600160e01b031981168114611ccc57600080fd5b60006020828403121561325857600080fd5b8135610be781613230565b80356001600160601b038116811461327a57600080fd5b919050565b6000806040838503121561329257600080fd5b823561329d816131ef565b91506132ab60208401613263565b90509250929050565b6000602082840312156132c657600080fd5b5035919050565b60005b838110156132e85781810151838201526020016132d0565b50506000910152565b600081518084526133098160208601602086016132cd565b601f01601f19169290920160200192915050565b602081526000610be760208301846132f1565b60008083601f84011261334257600080fd5b5081356001600160401b0381111561335957600080fd5b6020830191508360208260051b8501011115610f7e57600080fd5b60008060008060008060a0878903121561338d57600080fd5b86359550602087013594506040870135935060608701356133ad816131ef565b925060808701356001600160401b038111156133c857600080fd5b6133d489828a01613330565b979a9699509497509295939492505050565b60008083601f8401126133f857600080fd5b5081356001600160401b0381111561340f57600080fd5b602083019150836020828501011115610f7e57600080fd5b60008060006040848603121561343c57600080fd5b8335925060208401356001600160401b0381111561345957600080fd5b613465868287016133e6565b9497909650939450505050565b6000806040838503121561348557600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156134cf576134cf613494565b6040525050565b60006001600160401b038211156134ef576134ef613494565b5060051b60200190565b600082601f83011261350a57600080fd5b81356020613517826134d6565b60405161352482826134aa565b83815260059390931b850182019282810191508684111561354457600080fd5b8286015b8481101561355f5780358352918301918301613548565b509695505050505050565b600082601f83011261357b57600080fd5b81356001600160401b0381111561359457613594613494565b6040516135ab601f8301601f1916602001826134aa565b8181528460208386010111156135c057600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156135f557600080fd5b8535613600816131ef565b94506020860135613610816131ef565b935060408601356001600160401b038082111561362c57600080fd5b61363889838a016134f9565b9450606088013591508082111561364e57600080fd5b61365a89838a016134f9565b9350608088013591508082111561367057600080fd5b5061367d8882890161356a565b9150509295509295909350565b8015158114611ccc57600080fd5b6000602082840312156136aa57600080fd5b8135610be78161368a565b600080604083850312156136c857600080fd5b82356001600160401b03808211156136df57600080fd5b818501915085601f8301126136f357600080fd5b81356020613700826134d6565b60405161370d82826134aa565b83815260059390931b850182019282810191508984111561372d57600080fd5b948201945b83861015613754578535613745816131ef565b82529482019490820190613732565b9650508601359250508082111561376a57600080fd5b50613777858286016134f9565b9150509250929050565b600081518084526020808501945080840160005b838110156137b157815187529582019590820190600101613795565b509495945050505050565b602081526000610be76020830184613781565b6000602082840312156137e157600080fd5b8135610be7816131ef565b600080602083850312156137ff57600080fd5b82356001600160401b0381111561381557600080fd5b613821858286016133e6565b90969095509350505050565b60008060006060848603121561384257600080fd5b833592506020840135613854816131ef565b915061386260408501613263565b90509250925092565b6000806000806040858703121561388157600080fd5b84356001600160401b038082111561389857600080fd5b6138a488838901613330565b909650945060208701359150808211156138bd57600080fd5b506138ca87828801613330565b95989497509550505050565b600080600080604085870312156138ec57600080fd5b84356001600160401b038082111561390357600080fd5b61390f888389016133e6565b9096509450602087013591508082111561392857600080fd5b506138ca878288016133e6565b60008060008060006060868803121561394d57600080fd5b85356001600160401b038082111561396457600080fd5b61397089838a01613330565b9097509550602088013591508082111561398957600080fd5b5061399688828901613330565b96999598509660400135949350505050565b600080604083850312156139bb57600080fd5b82356139c6816131ef565b915060208301356139d68161368a565b809150509250929050565b60008060008060008060006080888a0312156139fc57600080fd5b8735965060208801356001600160401b0380821115613a1a57600080fd5b613a268b838c016133e6565b909850965060408a0135915080821115613a3f57600080fd5b613a4b8b838c016133e6565b909650945060608a0135915080821115613a6457600080fd5b50613a718a828b016133e6565b989b979a50959850939692959293505050565b60008060408385031215613a9757600080fd5b82356139c68161368a565b60008060008060608587031215613ab857600080fd5b8435935060208501356001600160401b03811115613ad557600080fd5b613ae187828801613330565b9598909750949560400135949350505050565b60008060208385031215613b0757600080fd5b82356001600160401b03811115613b1d57600080fd5b61382185828601613330565b600080600060608486031215613b3e57600080fd5b8335613b49816131ef565b95602085013595506040909401359392505050565b600080600060408486031215613b7357600080fd5b83356001600160401b03811115613b8957600080fd5b613b9586828701613330565b909790965060209590950135949350505050565b600080600060608486031215613bbe57600080fd5b83359250602084013591506040840135613bd7816131ef565b809150509250925092565b60008060408385031215613bf557600080fd5b8235613c00816131ef565b915060208301356139d6816131ef565b600080600080600060a08688031215613c2857600080fd5b8535613c33816131ef565b94506020860135613c43816131ef565b9350604086013592506060860135915060808601356001600160401b03811115613c6c57600080fd5b61367d8882890161356a565b60008060408385031215613c8b57600080fd5b8235915060208301356139d6816131ef565b600080600080600060808688031215613cb557600080fd5b85359450602086013593506040860135925060608601356001600160401b03811115613ce057600080fd5b613cec88828901613330565b969995985093965092949392505050565b600181811c90821680613d1157607f821691505b602082108103613d3157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610b0057610b00613d37565b634e487b7160e01b600052603260045260246000fd5b600060018201613d8857613d88613d37565b5060010190565b601f82111561135757600081815260208120601f850160051c81016020861015613db65750805b601f850160051c820191505b81811015610d5d57828155600101613dc2565b6001600160401b03831115613dec57613dec613494565b613e0083613dfa8354613cfd565b83613d8f565b6000601f841160018114613e345760008515613e1c5750838201355b600019600387901b1c1916600186901b17835561148d565b600083815260209020601f19861690835b82811015613e655786850135825560209485019460019092019101613e45565b5086821015613e825760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8082028115828204841417610b0057610b00613d37565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601260045260246000fd5b600082613f0757613f07613ee2565b500490565b600060208284031215613f1e57600080fd5b8151610be78161368a565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b60008154613f8081613cfd565b60018281168015613f985760018114613fad57613fdc565b60ff1984168752821515830287019450613fdc565b8560005260208060002060005b85811015613fd35781548a820152908401908201613fba565b50505082870194505b5050505092915050565b6000613ff28286613f73565b84516140028183602089016132cd565b610d2781830186613f73565b80820180821115610b0057610b00613d37565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b81516001600160401b0381111561408957614089613494565b61409d816140978454613cfd565b84613d8f565b602080601f8311600181146140d257600084156140ba5750858301515b600019600386901b1c1916600185901b178555610d5d565b600085815260208120601f198616915b82811015614101578886015182559484019460019091019084016140e2565b508582101561411f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008261413e5761413e613ee2565b500690565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090610d27908301846132f1565b60006020828403121561418f57600080fd5b8151610be781613230565b600060033d11156141b35760046000803e5060005160e01c5b90565b600060443d10156141c45790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156141f357505050505090565b828501915081518181111561420b5750505050505090565b843d87010160208285010111156142255750505050505090565b614234602082860101876134aa565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006143296040830185613781565b8281036020840152610c488185613781565b6001600160a01b0386811682528516602082015260a06040820181905260009061436790830186613781565b82810360608401526143798186613781565b9050828103608084015261438d81856132f1565b9897505050505050505056fea26469706673582212205689450f7a257f4626c3353a64d455ede6d4c4f63e53be0e3fc84f6618b6444864736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000002bc00000000000000000000000063f4c36bd548c3ad3dd18364c987e9a062a330ce0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000003f697066733a2f2f516d5a51353671554452707452586968635176704b4b76473148586d4169366231746966746764544b62616d55472f7b69647d2e6a736f6e00

-----Decoded View---------------
Arg [0] : feeNumerator (uint96): 700
Arg [1] : receiver (address): 0x63F4c36bD548C3Ad3DD18364C987E9a062a330cE
Arg [2] : uri_ (string): ipfs://QmZQ56qUDRptRXihcQvpKKvG1HXmAi6b1tiftgdTKbamUG/{id}.json

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000002bc
Arg [1] : 00000000000000000000000063f4c36bd548c3ad3dd18364c987e9a062a330ce
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 000000000000000000000000000000000000000000000000000000000000003f
Arg [4] : 697066733a2f2f516d5a51353671554452707452586968635176704b4b764731
Arg [5] : 48586d4169366231746966746764544b62616d55472f7b69647d2e6a736f6e00


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.