ETH Price: $3,458.63 (-1.81%)
Gas: 2 Gwei

Token

Your Story (STORY)
 

Overview

Max Total Supply

0 STORY

Holders

166

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
ladyofpain.eth
Balance
1 STORY
0x51ced357d0afaa0add66d87f8c667eaa4f2645dc
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:
YourStory

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 25 : 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 25 : 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 25 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 4 of 25 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

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

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId, 1);

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

File 5 of 25 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 6 of 25 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 7 of 25 : ERC721Royalty.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Royalty.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../common/ERC2981.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {ERC2981-_setDefaultRoyalty}, and/or individually for
 * specific token ids via {ERC2981-_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * 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 ERC721Royalty is ERC2981, ERC721 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }
}

File 8 of 25 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 11 of 25 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 12 of 25 : 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 25 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _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) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _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 25 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 25 : 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 25 : 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 25 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

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

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

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

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

File 19 of 25 : 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 20 of 25 : 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.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public 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 {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

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

    function _checkFilterOperator(address operator) internal view 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 21 of 25 : ERC20.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /*//////////////////////////////////////////////////////////////
                            METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*//////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(address => mapping(address => uint256)) public allowance;

    /*//////////////////////////////////////////////////////////////
                            EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*//////////////////////////////////////////////////////////////
                               ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*//////////////////////////////////////////////////////////////
                             EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                                ),
                                owner,
                                spender,
                                value,
                                nonces[owner]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );

            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}

File 22 of 25 : SafeTransferLib.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

import {ERC20} from "../tokens/ERC20.sol";

/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
/// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
library SafeTransferLib {
    /*//////////////////////////////////////////////////////////////
                             ETH OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferETH(address to, uint256 amount) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Transfer the ETH and store if it succeeded or not.
            success := call(gas(), to, amount, 0, 0, 0, 0)
        }

        require(success, "ETH_TRANSFER_FAILED");
    }

    /*//////////////////////////////////////////////////////////////
                            ERC20 OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferFrom(
        ERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument.
            mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 100, 0, 32)
            )
        }

        require(success, "TRANSFER_FROM_FAILED");
    }

    function safeTransfer(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "TRANSFER_FAILED");
    }

    function safeApprove(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "APPROVE_FAILED");
    }
}

File 23 of 25 : MerkleDistributor.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.15;

import "openzeppelin-contracts/utils/cryptography/MerkleProof.sol";

contract MerkleDistributor {
    bytes32 public merkleRoot;
    bool public allowListActive = false;

    mapping(address => uint256) private _allowListNumMinted;

    /**
     * @dev emitted when an account has claimed some tokens
     */
    event Claimed(address indexed account, uint256 amount);

    /**
     * @dev emitted when the merkle root has changed
     */
    event MerkleRootChanged(bytes32 merkleRoot);

    /**
     * @dev throws when allow list is not active
     */
    modifier isAllowListActive() {
        require(allowListActive, "Allow list is not active");
        _;
    }

    /**
     * @dev throws when number of tokens exceeds total token amount
     */
    modifier tokensAvailable(address to, uint256 numberOfTokens, uint256 totalTokenAmount) {
        uint256 claimed = getAllowListMinted(to);
        require(claimed + numberOfTokens <= totalTokenAmount, "Purchase would exceed number of tokens allotted");
        _;
    }

    /**
     * @dev throws when parameters sent by claimer is incorrect
     */
    modifier ableToClaim(address claimer, bytes32[] memory proof) {
        require(onAllowList(claimer, proof), "Not on allow list");
        _;
    }

    /**
     * @dev sets the state of the allow list
     */
    function _setAllowListActive(bool allowListActive_) internal virtual {
        allowListActive = allowListActive_;
    }

    /**
     * @dev sets the merkle root
     */
    function _setAllowList(bytes32 merkleRoot_) internal virtual {
        merkleRoot = merkleRoot_;

        emit MerkleRootChanged(merkleRoot);
    }

    /**
     * @dev adds the number of tokens to the incoming address
     */
    function _setAllowListMinted(address to, uint256 numberOfTokens) internal virtual {
        _allowListNumMinted[to] += numberOfTokens;

        emit Claimed(to, numberOfTokens);
    }

    /**
     * @dev gets the number of tokens from the address
     */
    function getAllowListMinted(address from) public view virtual returns (uint256) {
        return _allowListNumMinted[from];
    }

    /**
     * @dev checks if the claimer has a valid proof
     */
    function onAllowList(address claimer, bytes32[] memory proof) public view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(claimer));
        return MerkleProof.verify(proof, merkleRoot, leaf);
    }
}

File 24 of 25 : WordTable.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.15;

contract WordTable {
    string[40][16] public WORDS = [
        [
            "For a few",
            "moons",
            "you burn",
            "hackers,",
            "squeezing them",
            "from",
            "quaint",
            "sawdust,",
            "while Leonhard,",
            "frazzled",
            "through",
            "the tiniest",
            "enigmas and",
            "pigeons,",
            "yanks",
            "a monster.",
            "You whip",
            "the infinite",
            "minstrel",
            "lurking",
            "about the",
            "arena.",
            '"I dried',
            'the truffles,"',
            "barks",
            "the magician,",
            "as she crawls",
            "with",
            "the cheeks.",
            "Relieved,",
            "you beg,",
            '"We need to',
            "faint",
            "over",
            'the brass."',
            "You shave",
            "the retinas.",
            "Monday's",
            "yacht",
            "trolls."
        ],
        [
            "For several",
            "months",
            "you shun",
            "giants,",
            "besprinkling them",
            "about",
            "half-deserted",
            "pliers,",
            "while Rudolf,",
            "tangled",
            "in",
            "greedy",
            "dollars and",
            "flags,",
            "weds",
            "a grenade.",
            "You shoulder",
            "the hairy",
            "feather",
            "wandering",
            "under the",
            "ziggurat.",
            '"I dropped',
            'the sinews,"',
            "jabbers",
            "the actuary,",
            "as he marches",
            "within",
            "the heaps.",
            "Bewildered,",
            "you puff,",
            '"We could',
            "smile",
            "in",
            'the ghost."',
            "You unravel",
            "the drool.",
            "June's",
            "gold",
            "looms."
        ],
        [
            "For two",
            "decades",
            "you weave",
            "threads,",
            "pulverizing them",
            "under",
            "curious",
            "dawn,",
            "while Aleister,",
            "exalted",
            "under",
            "canned",
            "pixels and",
            "scree,",
            "taps",
            "a cacodemon.",
            "You hate",
            "the painful",
            "pistol",
            "wriggling",
            "through the",
            "pueblo.",
            '"I ate',
            'the mangos,"',
            "bleats",
            "the infant,",
            "as she galumphs",
            "out of",
            "the zombies.",
            "Gobsmacked,",
            "you chortle,",
            '"We have to',
            "drill",
            "outside",
            'the hunger."',
            "You blunt",
            "the elbows.",
            "Yesterday's",
            "ink",
            "chokes."
        ],
        [
            "For three",
            "eternities",
            "you abash",
            "cloths,",
            "dragooning them",
            "against",
            "heavenly",
            "stones,",
            "while Pierre,",
            "crippled",
            "inside",
            "fearsome",
            "opium and",
            "maggots,",
            "fondles",
            "a god.",
            "You dread",
            "the wounded",
            "starlet",
            "swinging",
            "off of the",
            "crag.",
            '"I fried',
            'the garlic,"',
            "roars",
            "the officer,",
            "as he pivots",
            "through",
            "the fiends.",
            "Amused,",
            "you burble,",
            string.concat('"We shouldn', "'t"),
            "swoon",
            "through",
            'the chaff."',
            "You beam",
            "the orchids.",
            "March's",
            "news",
            "coagulates."
        ],
        [
            "For four",
            "epochs",
            "you skewer",
            "flowers,",
            "shrouding them",
            "inside",
            "immortal",
            "sriracha,",
            "while Zeno,",
            "intrigued",
            "with",
            "proper",
            "ledges and",
            "orgies",
            "licks",
            "a juke-box.",
            "You plow",
            "the next",
            "weed",
            "ricocheting",
            "over the",
            "bog.",
            '"I peeled',
            'the geraniums,"',
            "sings",
            "the firefighter,",
            "as she plunges",
            "by",
            "the visitors.",
            "Aroused,",
            "you object,",
            '"We must',
            "sprint",
            "from",
            'the mink."',
            "You gobble",
            "the lions.",
            "Saturday's",
            "frolic",
            "blackens."
        ],
        [
            "For five",
            "years",
            "you bang",
            "eyes,",
            "melting them",
            "in",
            "dreary",
            "terrors,",
            "while Euclid,",
            "galvanized",
            "off",
            "psychedelic",
            "patterns and",
            "rainbows,",
            "summons",
            "a mountain.",
            "You kiss",
            "the scarlet",
            "insect",
            "inching",
            "opposite the",
            "arcade.",
            '"I broiled',
            'the brie,"',
            "bellows",
            "the scientist,",
            "as he charges",
            "beyond",
            "the branches.",
            "Nonplussed,",
            "you plead,",
            '"We should',
            "hurdle",
            "upon",
            'the night."',
            "You find",
            "the ewes.",
            "Next week's",
            "melee",
            "gropes."
        ],
        [
            "For six",
            "aeons",
            "you seize",
            "labials,",
            "whetting them",
            "off",
            "rosy-fingered",
            "stars,",
            "while Ada,",
            "chagrined",
            "about",
            "frosty",
            "iron and",
            "ciphers,",
            "reveals",
            "blood.",
            "You conjure",
            "the hazy",
            "barnacle",
            "sneaking",
            "past the",
            "stadium.",
            '"I puked up',
            'the dregs,"',
            "shrieks",
            "the soldier,",
            "as she shuffles",
            "off",
            "the matchsticks.",
            "Amazed,",
            "you sputter,",
            '"We might',
            "toil",
            "onto",
            'the podium."',
            "You blast",
            "the adults.",
            "Today's",
            "chore",
            "daunts."
        ],
        [
            "For seven",
            "suns",
            "you catch",
            "apes,",
            "chaining them",
            "within",
            "somnolent",
            "oysters,",
            "while Friedrich,",
            "drunk",
            "out of",
            "pure",
            "gutturals and",
            "loam,",
            "spits on",
            "a circuit.",
            "You steal",
            "the gnarled",
            "seagull",
            "creeping",
            "outside the",
            "yard.",
            '"I spanked',
            'the gristle,"',
            "yells",
            "the hoss,",
            "as he squirms",
            "into",
            "the brine.",
            "Flummoxed,",
            "you whine,",
            '"We can',
            "obsess",
            "about",
            'the scrilla."',
            "You gather",
            "the dilettantes.",
            "Tomorrow's",
            "angst",
            "knocks."
        ],
        [
            "For eight",
            "millennia",
            "you gnaw",
            "toddlers,",
            "nurturing them",
            "on",
            "subtle",
            "giggles,",
            "while Edgar,",
            "captivated",
            "beyond",
            "lifeless",
            "nouns and",
            "digests,",
            "defeats",
            "an anvil.",
            "You dump",
            "the rusty",
            "lover",
            "prancing",
            "on the",
            "tavern.",
            '"I sliced',
            'the slime,"',
            "hollers",
            "the judge,",
            "as she rambles",
            "from",
            "the lumps.",
            "Appalled,",
            "you blabber,",
            string.concat('"We won', "'t"),
            "hallucinate",
            "out of",
            'the dead."',
            "You dodge",
            "the laity.",
            "May's",
            "rime",
            "fizzles."
        ],
        [
            "For nine",
            "days",
            "you bend",
            "oxen,",
            "spearing them",
            "with",
            "cheap",
            "fish-eggs,",
            "while Satoshi,",
            "consumed",
            "from",
            "oily",
            "hashes and",
            "fame,",
            "hides",
            "a ladder.",
            "You clasp",
            "the forgotten",
            "fang",
            "bumping",
            "above the",
            "glacier.",
            '"I smashed',
            'the eggs,"',
            "screams",
            "the bishop,",
            "as he maunders",
            "on",
            "the worms.",
            "Fascinated,",
            "you rant,",
            string.concat('"We ain', "'t gotta"),
            "doze",
            "above",
            'the pulse."',
            "You spring",
            "the diphthongs.",
            "April's",
            "dongle",
            "snarls."
        ],
        [
            "For ten",
            "hours",
            "you slay",
            "ears,",
            "grasping them",
            "beyond",
            "tedious",
            "pincers,",
            "while Alan,",
            "buoyed",
            "into",
            "frenetic",
            "furnaces and",
            "chambers,",
            "denies",
            "a secret.",
            "You throw",
            "the howling",
            "myth",
            "tiptoeing",
            "amid the",
            "Albertina.",
            '"I rubbed',
            'the burgers,"',
            "shouts",
            "the mime,",
            "as she speeds",
            "over",
            "the bracken.",
            "Exhausted,",
            "you stammer,",
            string.concat('"We needn', "'t"),
            "fly",
            "across",
            'the vibe."',
            "You tidy",
            "the owls.",
            "Your",
            "blazer",
            "beckons."
        ],
        [
            "For eleven",
            "weeks",
            "you diffuse",
            "yokels,",
            "gorging them",
            "out of",
            "weary",
            "claws,",
            "while Zelda,",
            "withered",
            "by",
            "familiar",
            "queens and",
            "glaciers,",
            "revs",
            "a disaster.",
            "You ponder",
            "the nauseous",
            "spore",
            "sashaying",
            "around the",
            "forest.",
            '"I sucked',
            'the yuzu,"',
            "jeers",
            "the devil,",
            "as he shoots",
            "against",
            "the starlings.",
            "Disgusted,",
            "you rave,",
            string.concat('"We mustn', "'t"),
            "drive",
            "behind",
            'the grizzlies."',
            "You buoy",
            "the punks.",
            "Sunday's",
            "plug",
            "lurches."
        ],
        [
            "For twelve",
            "minutes",
            "you check",
            "flames,",
            "pounding them",
            "over",
            "bulky",
            "guts,",
            "while Ludwig,",
            "ruined",
            "on",
            "mystical",
            "axioms and",
            "doubt,",
            "squeezes",
            "a nun.",
            "You strike",
            "the white",
            "stardust",
            "swaggering",
            "beyond the",
            "playa.",
            '"I basted',
            'the fat,"',
            "says",
            "the astrologer,",
            "as she drifts",
            "about",
            "the symbols.",
            "Frustrated,",
            "you counter,",
            string.concat('"We couldn', "'t"),
            "swim",
            "against",
            'the sasquatch."',
            "You fix",
            "the stench.",
            "January's",
            "slag",
            "ogles."
        ],
        [
            "For thirteen",
            "fortnights",
            "you arch",
            "tigers,",
            "beating them",
            "into",
            "unsmelled",
            "jaws,",
            "while Kurt,",
            "embroiled",
            "against",
            "crumbling",
            "ice and",
            "magic,",
            "starves",
            "a sledge.",
            "You spoil",
            "the loathsome",
            "milkmaid",
            "zigzagging",
            "far from the",
            "porch.",
            '"I shucked',
            'the coconuts,"',
            "blurts",
            "the phrenologist,",
            "as he glides",
            "under",
            "the toadstools.",
            "Awestruck,",
            "you wonder,",
            '"We might not',
            "fall",
            "into",
            'the snowman."',
            "You bury",
            "the logs.",
            "This",
            "oath",
            "pops."
        ],
        [
            "For many",
            "seasons",
            "you undo",
            "lambs,",
            "twisting them",
            "through",
            "jolly",
            "posts,",
            "while David,",
            "charmed",
            "over",
            "alien",
            "brains and",
            "vertices,",
            "fumbles",
            "a toad.",
            "You cork",
            "the spoiled",
            "gridlock",
            "stomping",
            "in the",
            "park.",
            '"I rocked',
            'the aardvarks,"',
            "yaps",
            "the witness,",
            "as she stumbles",
            "among",
            "the clogs.",
            "Annoyed,",
            "you moan,",
            '"We will',
            "plot",
            "around",
            'the kelp."',
            "You quench",
            "the ogres.",
            "August's",
            "derby",
            "blazes."
        ],
        [
            "For fifteen",
            "centuries",
            "you whisper",
            "odors,",
            "devouring them",
            "to",
            "the civilest",
            "hovels,",
            "while Mary,",
            "tempted",
            "within",
            "scurvid",
            "optics and",
            "eyebrows,",
            "plucks",
            "an idiot.",
            "You maul",
            "the big",
            "barb",
            "skulking",
            "inside the",
            "castle.",
            '"I digested',
            'the pizza,"',
            "chides",
            "the butcher,",
            "as he flees",
            "inside",
            "the socks.",
            "Confused,",
            "you mumble,",
            string.concat('"We can', "'t"),
            "joke",
            "inside",
            'the skulls."',
            "You jolt",
            "the cables.",
            "Friday's",
            "heir",
            "dangles."
        ]
    ];
}

File 25 of 25 : YourStory.sol
// SPDX-License-Identifier: UNLICENSED
//
pragma solidity ^0.8.15;

// __/\\\________/\\\_______/\\\\\_______/\\\________/\\\____/\\\\\\\\\_____
//  _\///\\\____/\\\/______/\\\///\\\____\/\\\_______\/\\\__/\\\///////\\\___
//   ___\///\\\/\\\/______/\\\/__\///\\\__\/\\\_______\/\\\_\/\\\_____\/\\\___
//    _____\///\\\/_______/\\\______\//\\\_\/\\\_______\/\\\_\/\\\\\\\\\\\/____
//     _______\/\\\_______\/\\\_______\/\\\_\/\\\_______\/\\\_\/\\\//////\\\____
//      _______\/\\\_______\//\\\______/\\\__\/\\\_______\/\\\_\/\\\____\//\\\___
//       _______\/\\\________\///\\\__/\\\____\//\\\______/\\\__\/\\\_____\//\\\__
//        _______\/\\\__________\///\\\\\/______\///\\\\\\\\\/___\/\\\______\//\\\_
//         _______\///_____________\/////__________\/////////_____\///________\///__
// _____/\\\\\\\\\\\____/\\\\\\\\\\\\\\\_______/\\\\\_________/\\\\\\\\\______/\\\________/\\\_
//  ___/\\\/////////\\\_\///////\\\/////______/\\\///\\\_____/\\\///////\\\___\///\\\____/\\\/__
//   __\//\\\______\///________\/\\\_________/\\\/__\///\\\__\/\\\_____\/\\\_____\///\\\/\\\/____
//    ___\////\\\_______________\/\\\________/\\\______\//\\\_\/\\\\\\\\\\\/________\///\\\/______
//     ______\////\\\____________\/\\\_______\/\\\_______\/\\\_\/\\\//////\\\__________\/\\\_______
//      _________\////\\\_________\/\\\_______\//\\\______/\\\__\/\\\____\//\\\_________\/\\\_______
//       __/\\\______\//\\\________\/\\\________\///\\\__/\\\____\/\\\_____\//\\\________\/\\\_______
//        _\///\\\\\\\\\\\/_________\/\\\__________\///\\\\\/_____\/\\\______\//\\\_______\/\\\_______
//         ___\///////////___________\///_____________\/////_______\///________\///________\///________
//
//  "The rightful owner of this NFT owns all copyright that may exist in the work embodied in the NFT’s
//   tokenURI, subject to: (1) the rights of owners of other NFTs minted under the same smart contract
//   as if all such NFTs were minted simultaneously; and (2) a nonexclusive, sublicensable, transferable
//   license retained by the creator of the smart contract to reproduce, distribute, prepare derivative
//   works based upon, and display the work embodied in the NFT’s tokenURI solely to promote the NFT
//   collection created through the smart contract. Using a private key to sign a transaction that
//   transfers this NFT constitutes a writing signed by the transferor assigning all such copyright to
//   the transferee. Grants or assignments of exclusive rights in such copyright shall be null and void
//   except to the extent such rights are transferred upon transfer of the NFT."
//========================================================================

import "openzeppelin-contracts/token/ERC721/ERC721.sol";
import "openzeppelin-contracts/token/ERC721/extensions/ERC721Royalty.sol";
import "openzeppelin-contracts/utils/Base64.sol";
import "openzeppelin-contracts/access/Ownable.sol";
import "openzeppelin-contracts/security/ReentrancyGuard.sol";

import "operator-filter-registry/DefaultOperatorFilterer.sol";

import {SafeTransferLib} from "solmate/utils/SafeTransferLib.sol";

import "./MerkleDistributor.sol";
import "./WordTable.sol";

error MintPriceNotPaid();
error MaxSupply();
error MaxAddressMints();
error NonExistentTokenURI();
error WithdrawTransfer();

contract YourStory is
    ERC721Royalty,
    DefaultOperatorFilterer,
    MerkleDistributor,
    ReentrancyGuard,
    Ownable
{
    uint256 public currentTokenId;
    uint256 public constant TOTAL_SUPPLY = 8_128;
    uint256 public constant BASE_MINT_PRICE = 0.00001 ether;
    uint256 public constant MAX_MINTS = 2;

    WordTable private wordTable;

    mapping(uint256 => bytes20) private tokenIdToMintSeed;
    mapping(uint256 => bool) private tokenIdIsCombo;
    mapping(address => uint256) public mintCount;

    bool public saleActive;

    constructor(
        address _owner,
        address _wordTable,
        bytes32 merkleRoot
    ) ERC721("Your Story", "STORY") {
        wordTable = WordTable(_wordTable);
        _setAllowList(merkleRoot);
        _transferOwnership(_owner);
        _setDefaultRoyalty(_owner, 628);
    }

    /**
     * @dev marketplace metadata
     */
    function contractURI() external pure returns (string memory) {
        return "https://yourstory.wtf/curi.json";
    }

    /**
     * @dev sets the sale as active for allowlist
     */
    function setAllowListActive(bool allowListActive) external onlyOwner {
        _setAllowListActive(allowListActive);
    }

    /**
     * @dev sets the merkle root for the allow list
     */
    function setAllowList(bytes32 merkleRoot) external onlyOwner {
        _setAllowList(merkleRoot);
    }

    /**
     * @dev allows public sale minting
     */
    function setSaleActive(bool state) external onlyOwner {
        saleActive = state;
    }

    /**
     * @dev sets the public sale as active
     */
    modifier isPublicSaleActive() {
        require(saleActive, "Public sale is not active");
        _;
    }

    function withdrawPayments(address payable payee)
        external
        onlyOwner
        nonReentrant
    {
        if (payee == address(0)) {
            revert WithdrawTransfer();
        }
        uint256 balance = address(this).balance;
        (bool transferTx, ) = payee.call{value: balance}("");
        if (!transferTx) {
            revert WithdrawTransfer();
        }
    }

    /**
     * @dev gets the dynamic mint price
     */
    function mintPrice(uint256 amt) public view returns (uint256 price) {
        uint256 endTokenId = currentTokenId + amt;
        for (uint256 i = currentTokenId; i < endTokenId; i++) {
            price += BASE_MINT_PRICE * (i + 1);
        }
        return price;
    }

    /**
     * @dev checks if user has exceeded max mints
     */
    modifier addressHasMints(address minter, uint256 amt) {
        require(
            mintCount[minter] + amt <= MAX_MINTS,
            "Maximum mints for address exceeded"
        );
        _;
    }

    modifier doesNotExceedSupply(uint256 amt) {
        require(
            (currentTokenId + amt) <= TOTAL_SUPPLY,
            "Mint would exceed max supply"
        );
        _;
    }

    /**
     * @dev mint for allow listers
     */
    function mintAllowlist(uint256 amt, bytes32[] memory merkleProof)
        external
        payable
        ableToClaim(msg.sender, merkleProof)
        addressHasMints(msg.sender, amt)
        doesNotExceedSupply(amt)
        nonReentrant
        returns (uint256[] memory)
    {
        uint256 price = mintPrice(amt);
        if (msg.value < price) {
            revert MintPriceNotPaid();
        }

        uint256[] memory tokenIds = new uint256[](amt);
        for (uint256 i = 0; i < amt; i++) {
            tokenIds[i] = ++currentTokenId; // increment and save
            tokenIdToMintSeed[currentTokenId] = bytes20(msg.sender);
            mintCount[msg.sender] = mintCount[msg.sender] + 1;
            if (mintCount[msg.sender] > 1) {
                tokenIdIsCombo[currentTokenId] = true;
            }
            _safeMint(msg.sender, currentTokenId);
        }

        // return excess
        SafeTransferLib.safeTransferETH(msg.sender, msg.value - price);
        return tokenIds;
    }

    /**
     * @dev mints many
     */
    function mint(uint256 amt)
        external
        payable
        isPublicSaleActive
        addressHasMints(msg.sender, amt)
        doesNotExceedSupply(amt)
        nonReentrant
        returns (uint256[] memory)
    {
        uint256 price = mintPrice(amt);
        if (msg.value < price) {
            revert MintPriceNotPaid();
        }

        uint256[] memory tokenIds = new uint256[](amt);
        for (uint256 i = 0; i < amt; i++) {
            tokenIds[i] = ++currentTokenId; // increment and save
            tokenIdToMintSeed[currentTokenId] = bytes20(msg.sender);
            mintCount[msg.sender] = mintCount[msg.sender] + 1;
            if (mintCount[msg.sender] > 1) {
                tokenIdIsCombo[currentTokenId] = true;
            }
            _safeMint(msg.sender, currentTokenId);
        }

        // return excess
        SafeTransferLib.safeTransferETH(msg.sender, msg.value - price);
        return tokenIds;
    }

    /**
     * @dev gets num tokens minted by sender
     */
    function getMinted() external view returns (uint256) {
        return mintCount[msg.sender];
    }

    /**
     * @dev gets the tokens sentance in raw form
     */
    function getSentance(uint256 tokenId)
        external
        view
        returns (string[40] memory)
    {
        if (ownerOf(tokenId) == address(0)) {
            revert NonExistentTokenURI();
        }

        if (tokenIdIsCombo[tokenId]) {
            return
                seedToSentance(
                    combineAddress(
                        tokenIdToMintSeed[tokenId],
                        bytes20(address(this))
                    )
                );
        } else {
            return seedToSentance(tokenIdToMintSeed[tokenId]);
        }
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        if (ownerOf(tokenId) == address(0)) {
            revert NonExistentTokenURI();
        }

        bytes20 mintSeed = tokenIdToMintSeed[tokenId];
        if (address(mintSeed) == address(0)) {
            revert NonExistentTokenURI();
        }

        // Determine if token id a combo or not
        // change token seed accordingly
        bytes20 tokenSeed;
        if (tokenIdIsCombo[tokenId]) {
            tokenSeed = combineAddress(
                tokenIdToMintSeed[tokenId],
                bytes20(address(this))
            );
        } else {
            tokenSeed = mintSeed;
        }

        string[2] memory colors = seedToColorStrings(tokenSeed);
        string[40] memory sentance = seedToSentance(tokenSeed);

        // - - - - - - -
        // SVG
        // - - - - - - -

        string memory svgHeader = string.concat(
            '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"><style>.base {fill: #',
            colors[1],
            "; font-family: American Typewriter, Georgia, serif; font-size: 15px; }</style>",
            '<rect width="100%" height="100%" fill="#',
            colors[0],
            '"/>'
        );

        string memory svgRows;
        for (uint256 row = 0; row < 13; row++) {
            svgRows = string.concat(
                svgRows,
                '<text x="10" y="',
                toString((row + 1) * 20),
                '" class="base">',
                sentance[row * 3],
                " ",
                sentance[(row * 3) + 1],
                " ",
                sentance[(row * 3) + 2],
                "</text>"
            );
        }

        string memory svg = string.concat(
            svgHeader,
            svgRows,
            '<text x="10" y="280" class="base">',
            sentance[39],
            "</text></svg>"
        );

        // - - - - - - -
        // Attributes
        // - - - - - - -

        string memory attributes = '"attributes": [';
        for (uint256 i = 0; i < 40; i++) {
            string memory trait = string.concat(
                '{"trait_type": "Word ',
                toString(i + 1),
                '", "value": '
            );

            if (i == 22 || i == 31) {
                // 22, 31 have leading "
                trait = string.concat(trait, sentance[i], '" }, ');
            } else if (i == 23 || i == 34) {
                // 23, 34 have lagging "
                trait = string.concat(trait, '"', sentance[i], " }, ");
            } else {
                // typical
                trait = string.concat(trait, '"', sentance[i], '" }, ');
            }
            attributes = string.concat(attributes, trait);
        }

        attributes = string.concat(
            attributes,
            '{"trait_type": "Background Color", "value": "#',
            colors[0],
            '"}, ',
            '{"trait_type": "Font Color", "value": "#',
            colors[1],
            '"}]'
        );

        string memory json = Base64.encode(
            bytes(
                string.concat(
                    '{"name": "Your Story #',
                    toString(tokenId),
                    '", "description": "An on-chain story generated from your address. \\n\\nThe rightful owner of this NFT owns all copyright that may exist in the work embodied in the NFTs tokenURI, subject to: (1) the rights of owners of other NFTs minted under the same smart contract as if all such NFTs were minted simultaneously; and (2) a nonexclusive, sublicensable, transferable license retained by the creator of the smart contract to reproduce, distribute, prepare derivative works based upon, and display the work embodied in the NFTs tokenURI solely to promote the NFT collection created through the smart contract. Using a private key to sign a transaction that transfers this NFT constitutes a writing signed by the transferor assigning all such copyright to the transferee. Grants or assignments of exclusive rights in such copyright shall be null and void except to the extent such rights are transferred upon transfer of the NFT.',
                    '", "external_url": "https://yourstory.wtf',
                    '", "image": "data:image/svg+xml;base64,',
                    Base64.encode(bytes(svg)),
                    '",',
                    attributes,
                    "}"
                )
            )
        );

        return string.concat("data:application/json;base64,", json);
    }

    // Utils for handling the address shifting
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

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

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

    function byteToNibbles(bytes1 addrByte)
        internal
        pure
        returns (uint8[2] memory nibbles)
    {
        return [
            uint8((addrByte >> uint8(4)) & hex"0f"),
            uint8(addrByte & hex"0f")
        ];
    }

    function nibblesToBytes(uint8[2] memory nibbles)
        internal
        pure
        returns (bytes1)
    {
        return bytes1((nibbles[0] << 4) | nibbles[1]);
    }

    function combineAddress(bytes20 addrBytes, bytes20 contrBytes)
        internal
        pure
        returns (bytes20 addrBytesShifted)
    {
        bytes memory buffer = new bytes(20);
        for (uint8 i = 0; i < 20; i++) {
            uint8[2] memory nibbles = byteToNibbles(addrBytes[i]);
            uint8[2] memory nibbles2 = byteToNibbles(contrBytes[i]);
            buffer[i] = nibblesToBytes(
                [
                    (nibbles[0] + nibbles2[0]) % uint8(16),
                    (nibbles[1] + nibbles2[1]) % uint8(16)
                ]
            );
        }
        return bytes20(buffer);
    }

    function seedToColorStrings(bytes20 seed)
        internal
        pure
        returns (string[2] memory colors)
    {
        string memory bgColor;
        string memory fontColor;

        for (uint8 i = 0; i < 3; i++) {
            uint8[2] memory nibbles = byteToNibbles(seed[i]);
            bgColor = string(
                abi.encodePacked(
                    bgColor,
                    _HEX_SYMBOLS[nibbles[0] & 0xf],
                    _HEX_SYMBOLS[nibbles[1] & 0xf]
                )
            );
            fontColor = string(
                abi.encodePacked(
                    fontColor,
                    _HEX_SYMBOLS[~nibbles[0] & 0xf],
                    _HEX_SYMBOLS[~nibbles[1] & 0xf]
                )
            );
        }
        return [bgColor, fontColor];
    }

    function seedToSentance(bytes20 seed)
        internal
        view
        returns (string[40] memory sentance)
    {
        for (uint8 i = 0; i < 20; i++) {
            uint8[2] memory nibbles = byteToNibbles(seed[i]);
            sentance[i * 2] = wordTable.WORDS(nibbles[0], i * 2);
            sentance[i * 2 + 1] = wordTable.WORDS(nibbles[1], i * 2 + 1);
        }
        return sentance;
    }

    // - - - - - - - - - - - - - -
    // Royalty Required Overrides
    // - - - - - - - - - - - - - -
    function setApprovalForAll(address operator, bool approved)
        public
        override
        onlyAllowedOperatorApproval(operator)
    {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId)
        public
        override
        onlyAllowedOperatorApproval(operator)
    {
        super.approve(operator, tokenId);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

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

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

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib/operator-filter-registry/lib/openzeppelin-contracts-upgradeable/contracts/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/",
    "operator-filter-registry/=lib/operator-filter-registry/src/",
    "solmate/=lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_wordTable","type":"address"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"MintPriceNotPaid","type":"error"},{"inputs":[],"name":"NonExistentTokenURI","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"WithdrawTransfer","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"MerkleRootChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BASE_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"getAllowListMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSentance","outputs":[{"internalType":"string[40]","name":"","type":"string[40]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amt","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amt","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintAllowlist","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amt","type":"uint256"}],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"claimer","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"onAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_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":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"allowListActive","type":"bool"}],"name":"setAllowListActive","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":"bool","name":"state","type":"bool"}],"name":"setSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526009805460ff191690553480156200001b57600080fd5b5060405162004d6738038062004d678339810160408190526200003e9162000407565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600a815260200169596f75722053746f727960b01b8152506040518060400160405280600581526020016453544f525960d81b8152508160029081620000a79190620004ed565b506003620000b68282620004ed565b5050506daaeb6d7670e522a718067333cd4e3b15620001fe5780156200014c57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200012d57600080fd5b505af115801562000142573d6000803e3d6000fd5b50505050620001fe565b6001600160a01b038216156200019d5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000112565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001e457600080fd5b505af1158015620001f9573d6000803e3d6000fd5b505050505b50506001600b55620002103362000258565b600e80546001600160a01b0319166001600160a01b0384161790556200023681620002aa565b620002418362000258565b6200024f83610274620002e5565b505050620005b9565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60088190556040518181527f1b930366dfeaa7eb3b325021e4ae81e36527063452ee55b86c95f85b36f4c31c9060200160405180910390a150565b6127106001600160601b0382161115620003595760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620003b15760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000350565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b80516001600160a01b03811681146200040257600080fd5b919050565b6000806000606084860312156200041d57600080fd5b6200042884620003ea565b92506200043860208501620003ea565b9150604084015190509250925092565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200047357607f821691505b6020821081036200049457634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004e857600081815260208120601f850160051c81016020861015620004c35750805b601f850160051c820191505b81811015620004e457828155600101620004cf565b5050505b505050565b81516001600160401b0381111562000509576200050962000448565b62000521816200051a84546200045e565b846200049a565b602080601f831160018114620005595760008415620005405750858301515b600019600386901b1c1916600185901b178555620004e4565b600085815260208120601f198616915b828110156200058a5788860151825594840194600190910190840162000569565b5085821015620005a95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61479e80620005c96000396000f3fe6080604052600436106102845760003560e01c806370a0823111610153578063ac72200d116100cb578063e6a72acf1161007f578063e985e9c511610064578063e985e9c514610734578063ed9ec8881461077d578063f2fde38b146107aa57600080fd5b8063e6a72acf146106ce578063e8a3d485146106ee57600080fd5b8063b88d4fde116100b0578063b88d4fde14610679578063c87b56dd14610699578063cce132d1146106b957600080fd5b8063ac72200d14610637578063b32c56801461065957600080fd5b80638da5cb5b1161012257806395d89b411161010757806395d89b41146105ef578063a0712d6814610604578063a22cb4651461061757600080fd5b80638da5cb5b146105bb578063902d55a5146105d957600080fd5b806370a0823114610546578063715018a614610566578063841718a61461057b57806384584d071461059b57600080fd5b806331b3eb941161020157806342842e0e116101b55780635ea1ef521161019a5780635ea1ef52146104d65780636352211e1461050c57806368428a1b1461052c57600080fd5b806342842e0e1461049c578063457dbf21146104bc57600080fd5b80633a73c58d116101e65780633a73c58d1461042d578063402c42cf1461044d57806341f434341461047a57600080fd5b806331b3eb94146103ed5780633671f8cf1461040d57600080fd5b8063081812fc1161025857806323b872dd1161023d57806323b872dd146103785780632a55205a146103985780632eb4a7ab146103d757600080fd5b8063081812fc1461031e578063095ea7b31461035657600080fd5b80629a9b7b1461028957806301ffc9a7146102b2578063054ee789146102e257806306fdde03146102fc575b600080fd5b34801561029557600080fd5b5061029f600d5481565b6040519081526020015b60405180910390f35b3480156102be57600080fd5b506102d26102cd3660046131df565b6107ca565b60405190151581526020016102a9565b3480156102ee57600080fd5b5061029f6509184e72a00081565b34801561030857600080fd5b506103116107db565b6040516102a99190613254565b34801561032a57600080fd5b5061033e610339366004613267565b61086d565b6040516001600160a01b0390911681526020016102a9565b34801561036257600080fd5b50610376610371366004613295565b610894565b005b34801561038457600080fd5b506103766103933660046132c1565b6108ad565b3480156103a457600080fd5b506103b86103b3366004613302565b6108d8565b604080516001600160a01b0390931683526020830191909152016102a9565b3480156103e357600080fd5b5061029f60085481565b3480156103f957600080fd5b50610376610408366004613324565b6109b5565b61042061041b366004613421565b610aa1565b6040516102a99190613468565b34801561043957600080fd5b506103766104483660046134ba565b610dba565b34801561045957600080fd5b5061046d610468366004613267565b610df1565b6040516102a991906134d7565b34801561048657600080fd5b5061033e6daaeb6d7670e522a718067333cd4e81565b3480156104a857600080fd5b506103766104b73660046132c1565b610ea0565b3480156104c857600080fd5b506009546102d29060ff1681565b3480156104e257600080fd5b5061029f6104f1366004613324565b6001600160a01b03166000908152600a602052604090205490565b34801561051857600080fd5b5061033e610527366004613267565b610ec5565b34801561053857600080fd5b506012546102d29060ff1681565b34801561055257600080fd5b5061029f610561366004613324565b610f2a565b34801561057257600080fd5b50610376610fc4565b34801561058757600080fd5b506103766105963660046134ba565b610fd8565b3480156105a757600080fd5b506103766105b6366004613267565b611011565b3480156105c757600080fd5b50600c546001600160a01b031661033e565b3480156105e557600080fd5b5061029f611fc081565b3480156105fb57600080fd5b50610311611022565b610420610612366004613267565b611031565b34801561062357600080fd5b50610376610632366004613525565b611338565b34801561064357600080fd5b503360009081526011602052604090205461029f565b34801561066557600080fd5b506102d261067436600461355e565b61134c565b34801561068557600080fd5b506103766106943660046135c0565b6113b0565b3480156106a557600080fd5b506103116106b4366004613267565b6113dd565b3480156106c557600080fd5b5061029f600281565b3480156106da57600080fd5b5061029f6106e9366004613267565b61181a565b3480156106fa57600080fd5b5060408051808201909152601f81527f68747470733a2f2f796f757273746f72792e7774662f637572692e6a736f6e006020820152610311565b34801561074057600080fd5b506102d261074f36600461366f565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561078957600080fd5b5061029f610798366004613324565b60116020526000908152604090205481565b3480156107b657600080fd5b506103766107c5366004613324565b61187a565b60006107d582611907565b92915050565b6060600280546107ea9061369d565b80601f01602080910402602001604051908101604052809291908181526020018280546108169061369d565b80156108635780601f1061083857610100808354040283529160200191610863565b820191906000526020600020905b81548152906001019060200180831161084657829003601f168201915b5050505050905090565b6000610878826119a9565b506000908152600660205260409020546001600160a01b031690565b8161089e81611a0d565b6108a88383611af8565b505050565b826001600160a01b03811633146108c7576108c733611a0d565b6108d2848484611c24565b50505050565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff169282019290925282916109795750604080518082019091526000546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b60208101516000906127109061099d906bffffffffffffffffffffffff1687613719565b6109a79190613785565b915196919550909350505050565b6109bd611cab565b6109c5611d05565b6001600160a01b038116610a05576040517fd23a9e8900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60405147906000906001600160a01b0384169083908381818185875af1925050503d8060008114610a52576040519150601f19603f3d011682016040523d82523d6000602084013e610a57565b606091505b5050905080610a92576040517fd23a9e8900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050610a9e6001600b55565b50565b60603382610aaf828261134c565b610b005760405162461bcd60e51b815260206004820152601160248201527f4e6f74206f6e20616c6c6f77206c69737400000000000000000000000000000060448201526064015b60405180910390fd5b336000818152601160205260409020548690600290610b20908390613799565b1115610b945760405162461bcd60e51b815260206004820152602260248201527f4d6178696d756d206d696e747320666f7220616464726573732065786365656460448201527f65640000000000000000000000000000000000000000000000000000000000006064820152608401610af7565b86611fc081600d54610ba69190613799565b1115610bf45760405162461bcd60e51b815260206004820152601c60248201527f4d696e7420776f756c6420657863656564206d617820737570706c79000000006044820152606401610af7565b610bfc611d05565b6000610c078961181a565b905080341015610c43576040517f21e191e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008967ffffffffffffffff811115610c5e57610c5e613341565b604051908082528060200260200182016040528015610c87578160200160208202803683370190505b50905060005b8a811015610d8e57600d60008154610ca4906137b1565b919050819055828281518110610cbc57610cbc6137e9565b602090810291909101810191909152600d546000908152600f8252604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001633908117909155825260119092522054610d1b906001613799565b33600090815260116020526040902081905560011015610d7057600d54600090815260106020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555b610d7c33600d54611d5e565b80610d86816137b1565b915050610c8d565b50610da233610d9d8434613818565b611d7c565b965050610daf6001600b55565b505050505092915050565b610dc2611cab565b600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682151517905550565b610df9613152565b6000610e0483610ec5565b6001600160a01b031603610e44576040517fd872946b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526010602052604090205460ff1615610e85576000828152600f60205260409020546107d590610e8090606090811b9030901b611dd7565b611f34565b6000828152600f60205260409020546107d59060601b611f34565b826001600160a01b0381163314610eba57610eba33611a0d565b6108d284848461212d565b6000818152600460205260408120546001600160a01b0316806107d55760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610af7565b60006001600160a01b038216610fa85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610af7565b506001600160a01b031660009081526005602052604090205490565b610fcc611cab565b610fd66000612148565b565b610fe0611cab565b601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b611019611cab565b610a9e816121b2565b6060600380546107ea9061369d565b60125460609060ff166110865760405162461bcd60e51b815260206004820152601960248201527f5075626c69632073616c65206973206e6f7420616374697665000000000000006044820152606401610af7565b3360008181526011602052604090205483906002906110a6908390613799565b111561111a5760405162461bcd60e51b815260206004820152602260248201527f4d6178696d756d206d696e747320666f7220616464726573732065786365656460448201527f65640000000000000000000000000000000000000000000000000000000000006064820152608401610af7565b83611fc081600d5461112c9190613799565b111561117a5760405162461bcd60e51b815260206004820152601c60248201527f4d696e7420776f756c6420657863656564206d617820737570706c79000000006044820152606401610af7565b611182611d05565b600061118d8661181a565b9050803410156111c9576040517f21e191e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008667ffffffffffffffff8111156111e4576111e4613341565b60405190808252806020026020018201604052801561120d578160200160208202803683370190505b50905060005b8781101561131457600d6000815461122a906137b1565b919050819055828281518110611242576112426137e9565b602090810291909101810191909152600d546000908152600f8252604080822080547fffffffffffffffffffffffff000000000000000000000000000000000000000016339081179091558252601190925220546112a1906001613799565b336000908152601160205260409020819055600110156112f657600d54600090815260106020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555b61130233600d54611d5e565b8061130c816137b1565b915050611213565b5061132333610d9d8434613818565b9450506113306001600b55565b505050919050565b8161134281611a0d565b6108a883836121ed565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606084901b16602082015260009081906034016040516020818303038152906040528051906020012090506113a883600854836121f8565b949350505050565b836001600160a01b03811633146113ca576113ca33611a0d565b6113d68585858561220e565b5050505050565b606060006113ea83610ec5565b6001600160a01b03160361142a576040517fd872946b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000828152600f6020526040902054606081901b906001600160a01b031661147e576040517fd872946b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008381526010602052604081205460ff16156114bd576000848152600f60205260409020546114b690606090811b9030901b611dd7565b90506114c0565b50805b60006114cb82612296565b905060006114d883611f34565b60208084015184516040519394506000936114f3930161384b565b6040516020818303038152906040529050606060005b600d8110156115e25781611531611521836001613799565b61152c906014613719565b612441565b8561153d846003613719565b6028811061154d5761154d6137e9565b60200201518661155e856003613719565b611569906001613799565b60288110611579576115796137e9565b60200201518761158a866003613719565b611595906002613799565b602881106115a5576115a56137e9565b60200201516040516020016115be959493929190613a02565b604051602081830303815290604052915080806115da906137b1565b915050611509565b506104e08301516040516000916115ff9185918591602001613b20565b60408051601f19818403018152828201909152600f82527f2261747472696275746573223a205b00000000000000000000000000000000006020830152915060005b602881101561177e57600061165a61152c836001613799565b60405160200161166a9190613bdf565b6040516020818303038152906040529050816016148061168a575081601f145b156116ce57808783602881106116a2576116a26137e9565b60200201516040516020016116b8929190613c4b565b6040516020818303038152906040529050611746565b81601714806116dd5750816022145b1561170b57808783602881106116f5576116f56137e9565b60200201516040516020016116b8929190613ca2565b8087836028811061171e5761171e6137e9565b6020020151604051602001611734929190613d24565b60405160208183030381529060405290505b8281604051602001611759929190613da6565b6040516020818303038152906040529250508080611776906137b1565b915050611641565b50855160208088015160405161179993859390929101613dd5565b604051602081830303815290604052905060006117e86117b88c612441565b6117c185612576565b846040516020016117d493929190613f09565b604051602081830303815290604052612576565b9050806040516020016117fb91906144bc565b6040516020818303038152906040529950505050505050505050919050565b60008082600d5461182b9190613799565b600d549091505b8181101561187357611845816001613799565b611855906509184e72a000613719565b61185f9084613799565b92508061186b816137b1565b915050611832565b5050919050565b611882611cab565b6001600160a01b0381166118fe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610af7565b610a9e81612148565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061199a57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806107d557506107d5826126c9565b6000818152600460205260409020546001600160a01b0316610a9e5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610af7565b6daaeb6d7670e522a718067333cd4e3b15610a9e576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611a93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab79190614501565b610a9e576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610af7565b6000611b0382610ec5565b9050806001600160a01b0316836001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610af7565b336001600160a01b0382161480611ba85750611ba8813361074f565b611c1a5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610af7565b6108a88383612760565b611c2e33826127e6565b611ca05760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610af7565b6108a8838383612864565b600c546001600160a01b03163314610fd65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610af7565b6002600b5403611d575760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610af7565b6002600b55565b611d78828260405180602001604052806000815250612ad0565b5050565b600080600080600085875af19050806108a85760405162461bcd60e51b815260206004820152601360248201527f4554485f5452414e534645525f4641494c4544000000000000000000000000006044820152606401610af7565b60408051601480825281830190925260009182919060208201818036833701905050905060005b60148160ff161015611f2a576000611e2d868360ff1660148110611e2457611e246137e9565b1a60f81b612b59565b90506000611e49868460ff1660148110611e2457611e246137e9565b9050611ed16040518060400160405280601084600060028110611e6e57611e6e6137e9565b60200201518651611e7f919061451e565b611e899190614543565b60ff168152602001601084600160200201518660016020020151611ead919061451e565b611eb79190614543565b60ff1690526020810151905160041b610ff0161760f81b90565b848460ff1681518110611ee657611ee66137e9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535050508080611f2290614565565b915050611dfe565b506113a881614584565b611f3c613152565b60005b60148160ff161015612127576000611f65848360ff1660148110611e2457611e246137e9565b600e5481519192506001600160a01b031690636123555390611f888560026145d0565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260ff928316600482015291166024820152604401600060405180830381865afa158015611fe5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261200d91908101906145f9565b836120198460026145d0565b60ff166028811061202c5761202c6137e9565b6020020152600e546001600160a01b0316636123555382600160200201516120558560026145d0565b61206090600161451e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260ff928316600482015291166024820152604401600060405180830381865afa1580156120bd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120e591908101906145f9565b836120f18460026145d0565b6120fc90600161451e565b60ff166028811061210f5761210f6137e9565b6020020152508061211f81614565565b915050611f3f565b50919050565b6108a8838383604051806020016040528060008152506113b0565b600c80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60088190556040518181527f1b930366dfeaa7eb3b325021e4ae81e36527063452ee55b86c95f85b36f4c31c9060200160405180910390a150565b611d78338383612b84565b6000826122058584612c70565b14949350505050565b61221833836127e6565b61228a5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610af7565b6108d284848484612cbd565b61229e61317a565b60608060005b60038160ff1610156124285760006122ca868360ff1660148110611e2457611e246137e9565b805190915084907f303132333435363738396162636465660000000000000000000000000000000090600f1660108110612306576123066137e9565b1a60f81b7f30313233343536373839616263646566000000000000000000000000000000008360016020020151600f1660108110612346576123466137e9565b1a60f81b60405160200161235c93929190614670565b60408051601f198184030181529190529350827f3031323334353637383961626364656600000000000000000000000000000000826000602002015119600f16601081106123ac576123ac6137e9565b1a60f81b7f3031323334353637383961626364656600000000000000000000000000000000836001602002015119600f16601081106123ed576123ed6137e9565b1a60f81b60405160200161240393929190614670565b604051602081830303815290604052925050808061242090614565565b9150506122a4565b5060408051808201909152918252602082015292915050565b60608160000361248457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156124ae5780612498816137b1565b91506124a79050600a83613785565b9150612488565b60008167ffffffffffffffff8111156124c9576124c9613341565b6040519080825280601f01601f1916602001820160405280156124f3576020820181803683370190505b5090505b84156113a857612508600183613818565b9150612515600a866146bb565b612520906030613799565b60f81b818381518110612535576125356137e9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061256f600a86613785565b94506124f7565b6060815160000361259557505060408051602081019091526000815290565b600060405180606001604052806040815260200161472960409139905060006003845160026125c49190613799565b6125ce9190613785565b6125d9906004613719565b67ffffffffffffffff8111156125f1576125f1613341565b6040519080825280601f01601f19166020018201604052801561261b576020820181803683370190505b509050600182016020820185865187015b80821015612687576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f811685015184535060018301925061262c565b50506003865106600181146126a357600281146126b6576126be565b603d6001830353603d60028303536126be565b603d60018303535b509195945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806107d557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146107d5565b600081815260066020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906127ad82610ec5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806127f283610ec5565b9050806001600160a01b0316846001600160a01b0316148061283957506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b806113a85750836001600160a01b03166128528461086d565b6001600160a01b031614949350505050565b826001600160a01b031661287782610ec5565b6001600160a01b0316146128f35760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610af7565b6001600160a01b03821661296e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610af7565b61297b8383836001612d46565b826001600160a01b031661298e82610ec5565b6001600160a01b031614612a0a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610af7565b600081815260066020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b038781168086526005855283862080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01905590871680865283862080546001019055868652600490945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612ada8383612dce565b612ae76000848484612f7f565b6108a85760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610af7565b612b61613193565b506040805180820190915260fc82901c815260f89190911c600f16602082015290565b816001600160a01b0316836001600160a01b031603612be55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610af7565b6001600160a01b0383811660008181526007602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600081815b8451811015612cb557612ca182868381518110612c9457612c946137e9565b6020026020010151613120565b915080612cad816137b1565b915050612c75565b509392505050565b612cc8848484612864565b612cd484848484612f7f565b6108d25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610af7565b60018111156108d2576001600160a01b03841615612d8c576001600160a01b03841660009081526005602052604081208054839290612d86908490613818565b90915550505b6001600160a01b038316156108d2576001600160a01b03831660009081526005602052604081208054839290612dc3908490613799565b909155505050505050565b6001600160a01b038216612e245760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610af7565b6000818152600460205260409020546001600160a01b031615612e895760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610af7565b612e97600083836001612d46565b6000818152600460205260409020546001600160a01b031615612efc5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610af7565b6001600160a01b038216600081815260056020908152604080832080546001019055848352600490915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15613115576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612fdc9033908990889088906004016146cf565b6020604051808303816000875af1925050508015613017575060408051601f3d908101601f191682019092526130149181019061470b565b60015b6130ca573d808015613045576040519150601f19603f3d011682016040523d82523d6000602084013e61304a565b606091505b5080516000036130c25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610af7565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506113a8565b506001949350505050565b600081831061313c57600082815260208490526040902061314b565b60008381526020839052604090205b9392505050565b6040518061050001604052806028905b60608152602001906001900390816131625790505090565b6040805180820190915260608152600160208201613162565b60405180604001604052806002906020820280368337509192915050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610a9e57600080fd5b6000602082840312156131f157600080fd5b813561314b816131b1565b60005b838110156132175781810151838201526020016131ff565b838111156108d25750506000910152565b600081518084526132408160208601602086016131fc565b601f01601f19169290920160200192915050565b60208152600061314b6020830184613228565b60006020828403121561327957600080fd5b5035919050565b6001600160a01b0381168114610a9e57600080fd5b600080604083850312156132a857600080fd5b82356132b381613280565b946020939093013593505050565b6000806000606084860312156132d657600080fd5b83356132e181613280565b925060208401356132f181613280565b929592945050506040919091013590565b6000806040838503121561331557600080fd5b50508035926020909101359150565b60006020828403121561333657600080fd5b813561314b81613280565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561339957613399613341565b604052919050565b600082601f8301126133b257600080fd5b8135602067ffffffffffffffff8211156133ce576133ce613341565b8160051b6133dd828201613370565b92835284810182019282810190878511156133f757600080fd5b83870192505b84831015613416578235825291830191908301906133fd565b979650505050505050565b6000806040838503121561343457600080fd5b82359150602083013567ffffffffffffffff81111561345257600080fd5b61345e858286016133a1565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156134a057835183529284019291840191600101613484565b50909695505050505050565b8015158114610a9e57600080fd5b6000602082840312156134cc57600080fd5b813561314b816134ac565b6020808252600090610520830183820185845b602881101561351957601f19878503018352613507848351613228565b935091840191908401906001016134ea565b50919695505050505050565b6000806040838503121561353857600080fd5b823561354381613280565b91506020830135613553816134ac565b809150509250929050565b6000806040838503121561357157600080fd5b823561357c81613280565b9150602083013567ffffffffffffffff81111561345257600080fd5b600067ffffffffffffffff8211156135b2576135b2613341565b50601f01601f191660200190565b600080600080608085870312156135d657600080fd5b84356135e181613280565b935060208501356135f181613280565b925060408501359150606085013567ffffffffffffffff81111561361457600080fd5b8501601f8101871361362557600080fd5b803561363861363382613598565b613370565b81815288602083850101111561364d57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b6000806040838503121561368257600080fd5b823561368d81613280565b9150602083013561355381613280565b600181811c908216806136b157607f821691505b602082108103612127577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613751576137516136ea565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261379457613794613756565b500490565b600082198211156137ac576137ac6136ea565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036137e2576137e26136ea565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008282101561382a5761382a6136ea565b500390565b600081516138418185602086016131fc565b9290920192915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f73766722207072657365727665417370656374526174696f3d22784d6960208201527f6e594d696e206d656574222076696577426f783d22302030203335302033353060408201527f223e3c7374796c653e2e62617365207b66696c6c3a20230000000000000000006060820152600083516138f58160778501602088016131fc565b7f3b20666f6e742d66616d696c793a20416d65726963616e2054797065777269746077918401918201527f65722c2047656f726769612c2073657269663b20666f6e742d73697a653a203160978201527f3570783b207d3c2f7374796c653e00000000000000000000000000000000000060b78201527f3c726563742077696474683d223130302522206865696768743d22313030252260c58201527f2066696c6c3d222300000000000000000000000000000000000000000000000060e582015283516139ca8160ed8401602088016131fc565b016139f760ed82017f222f3e00000000000000000000000000000000000000000000000000000000009052565b60f001949350505050565b600086516020613a158285838c016131fc565b7f3c7465787420783d2231302220793d22000000000000000000000000000000009184019182528751613a4e8160108501848c016131fc565b7f2220636c6173733d2262617365223e0000000000000000000000000000000000601093909101928301528651613a8b81601f8501848b016131fc565b8083019250507f200000000000000000000000000000000000000000000000000000000000000080601f8401528651613ac981848601858b016131fc565b92909201818101929092528451613ae681602185018885016131fc565b7f3c2f746578743e000000000000000000000000000000000000000000000000006021939091019283015250602801979650505050505050565b60008451613b328184602089016131fc565b845190830190613b468183602089016131fc565b8082019150507f3c7465787420783d2231302220793d223238302220636c6173733d226261736581527f223e00000000000000000000000000000000000000000000000000000000000060208201528351613ba88160228401602088016131fc565b7f3c2f746578743e3c2f7376673e0000000000000000000000000000000000000060229290910191820152602f0195945050505050565b7f7b2274726169745f74797065223a2022576f7264200000000000000000000000815260008251613c178160158501602087016131fc565b7f222c202276616c7565223a2000000000000000000000000000000000000000006015939091019283015250602101919050565b60008351613c5d8184602088016131fc565b835190830190613c718183602088016131fc565b7f22207d2c200000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60008351613cb48184602088016131fc565b7f22000000000000000000000000000000000000000000000000000000000000009083019081528351613cee8160018401602088016131fc565b7f207d2c200000000000000000000000000000000000000000000000000000000060019290910191820152600501949350505050565b60008351613d368184602088016131fc565b7f22000000000000000000000000000000000000000000000000000000000000009083019081528351613d708160018401602088016131fc565b7f22207d2c2000000000000000000000000000000000000000000000000000000060019290910191820152600601949350505050565b60008351613db88184602088016131fc565b835190830190613dcc8183602088016131fc565b01949350505050565b60008451613de78184602089016131fc565b80830190507f7b2274726169745f74797065223a20224261636b67726f756e6420436f6c6f7281527f222c202276616c7565223a20222300000000000000000000000000000000000060208201528451613e4881602e8401602089016131fc565b7f227d2c2000000000000000000000000000000000000000000000000000000000602e92909101918201527f7b2274726169745f74797065223a2022466f6e7420436f6c6f72222c2022766160328201527f6c7565223a20222300000000000000000000000000000000000000000000000060528201528351613ed281605a8401602088016131fc565b7f227d5d0000000000000000000000000000000000000000000000000000000000605a9290910191820152605d0195945050505050565b7f7b226e616d65223a2022596f75722053746f7279202300000000000000000000815260008451613f418160168501602089016131fc565b7f222c20226465736372697074696f6e223a2022416e206f6e2d636861696e20736016918401918201527f746f72792067656e6572617465642066726f6d20796f7572206164647265737360368201527f2e205c6e5c6e54686520726967687466756c206f776e6572206f66207468697360568201527f204e4654206f776e7320616c6c20636f707972696768742074686174206d617960768201527f20657869737420696e2074686520776f726b20656d626f6469656420696e207460968201527f6865204e46547320746f6b656e5552492c207375626a65637420746f3a20283160b68201527f292074686520726967687473206f66206f776e657273206f66206f746865722060d68201527f4e465473206d696e74656420756e646572207468652073616d6520736d61727460f68201527f20636f6e747261637420617320696620616c6c2073756368204e4654732077656101168201527f7265206d696e7465642073696d756c74616e656f75736c793b20616e642028326101368201527f292061206e6f6e6578636c75736976652c207375626c6963656e7361626c652c6101568201527f207472616e7366657261626c65206c6963656e73652072657461696e656420626101768201527f79207468652063726561746f72206f662074686520736d61727420636f6e74726101968201527f61637420746f20726570726f647563652c20646973747269627574652c2070726101b68201527f6570617265206465726976617469766520776f726b732062617365642075706f6101d68201527f6e2c20616e6420646973706c61792074686520776f726b20656d626f646965646101f68201527f20696e20746865204e46547320746f6b656e55524920736f6c656c7920746f206102168201527f70726f6d6f746520746865204e465420636f6c6c656374696f6e2063726561746102368201527f6564207468726f7567682074686520736d61727420636f6e74726163742e20556102568201527f73696e6720612070726976617465206b657920746f207369676e2061207472616102768201527f6e73616374696f6e2074686174207472616e73666572732074686973204e46546102968201527f20636f6e737469747574657320612077726974696e67207369676e65642062796102b68201527f20746865207472616e736665726f722061737369676e696e6720616c6c2073756102d68201527f636820636f7079726967687420746f20746865207472616e7366657265652e206102f68201527f4772616e7473206f722061737369676e6d656e7473206f66206578636c7573696103168201527f76652072696768747320696e207375636820636f70797269676874207368616c6103368201527f6c206265206e756c6c20616e6420766f69642065786365707420746f207468656103568201527f20657874656e7420737563682072696768747320617265207472616e736665726103768201527f7265642075706f6e207472616e73666572206f6620746865204e46542e00000061039682015261445a6144546144056103b384017f222c202265787465726e616c5f75726c223a202268747470733a2f2f796f757281527f73746f72792e7774660000000000000000000000000000000000000000000000602082015260290190565b7f222c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b81527f6261736536342c00000000000000000000000000000000000000000000000000602082015260270190565b8661382f565b7f222c0000000000000000000000000000000000000000000000000000000000008152905061448c600282018561382f565b7f7d0000000000000000000000000000000000000000000000000000000000000081526001019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516144f481601d8501602087016131fc565b91909101601d0192915050565b60006020828403121561451357600080fd5b815161314b816134ac565b600060ff821660ff84168060ff0382111561453b5761453b6136ea565b019392505050565b600060ff83168061455657614556613756565b8060ff84160691505092915050565b600060ff821660ff810361457b5761457b6136ea565b60010192915050565b6000815160208301517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000808216935060148310156113305760149290920360031b82901b161692915050565b600060ff821660ff84168160ff04811182151516156145f1576145f16136ea565b029392505050565b60006020828403121561460b57600080fd5b815167ffffffffffffffff81111561462257600080fd5b8201601f8101841361463357600080fd5b805161464161363382613598565b81815285602083850101111561465657600080fd5b6146678260208301602086016131fc565b95945050505050565b600084516146828184602089016131fc565b7fff0000000000000000000000000000000000000000000000000000000000000094851692019182525091166001820152600201919050565b6000826146ca576146ca613756565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526147016080830184613228565b9695505050505050565b60006020828403121561471d57600080fd5b815161314b816131b156fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220d27028554559c9d64af5da25d6b6e4e5c5ea0382c5df8ba3fcea7b833688cc3e64736f6c634300080f0033000000000000000000000000e853e578d526316d342ed758ee26a1741dc3fc29000000000000000000000000f83ed40e4383993b9fd2cc8cb2e8a8b7550ae72a61bfc8983b69d0bf64cf899e10e9a9a7cb43c72a5baf582cafc5db25941a6eec

Deployed Bytecode

0x6080604052600436106102845760003560e01c806370a0823111610153578063ac72200d116100cb578063e6a72acf1161007f578063e985e9c511610064578063e985e9c514610734578063ed9ec8881461077d578063f2fde38b146107aa57600080fd5b8063e6a72acf146106ce578063e8a3d485146106ee57600080fd5b8063b88d4fde116100b0578063b88d4fde14610679578063c87b56dd14610699578063cce132d1146106b957600080fd5b8063ac72200d14610637578063b32c56801461065957600080fd5b80638da5cb5b1161012257806395d89b411161010757806395d89b41146105ef578063a0712d6814610604578063a22cb4651461061757600080fd5b80638da5cb5b146105bb578063902d55a5146105d957600080fd5b806370a0823114610546578063715018a614610566578063841718a61461057b57806384584d071461059b57600080fd5b806331b3eb941161020157806342842e0e116101b55780635ea1ef521161019a5780635ea1ef52146104d65780636352211e1461050c57806368428a1b1461052c57600080fd5b806342842e0e1461049c578063457dbf21146104bc57600080fd5b80633a73c58d116101e65780633a73c58d1461042d578063402c42cf1461044d57806341f434341461047a57600080fd5b806331b3eb94146103ed5780633671f8cf1461040d57600080fd5b8063081812fc1161025857806323b872dd1161023d57806323b872dd146103785780632a55205a146103985780632eb4a7ab146103d757600080fd5b8063081812fc1461031e578063095ea7b31461035657600080fd5b80629a9b7b1461028957806301ffc9a7146102b2578063054ee789146102e257806306fdde03146102fc575b600080fd5b34801561029557600080fd5b5061029f600d5481565b6040519081526020015b60405180910390f35b3480156102be57600080fd5b506102d26102cd3660046131df565b6107ca565b60405190151581526020016102a9565b3480156102ee57600080fd5b5061029f6509184e72a00081565b34801561030857600080fd5b506103116107db565b6040516102a99190613254565b34801561032a57600080fd5b5061033e610339366004613267565b61086d565b6040516001600160a01b0390911681526020016102a9565b34801561036257600080fd5b50610376610371366004613295565b610894565b005b34801561038457600080fd5b506103766103933660046132c1565b6108ad565b3480156103a457600080fd5b506103b86103b3366004613302565b6108d8565b604080516001600160a01b0390931683526020830191909152016102a9565b3480156103e357600080fd5b5061029f60085481565b3480156103f957600080fd5b50610376610408366004613324565b6109b5565b61042061041b366004613421565b610aa1565b6040516102a99190613468565b34801561043957600080fd5b506103766104483660046134ba565b610dba565b34801561045957600080fd5b5061046d610468366004613267565b610df1565b6040516102a991906134d7565b34801561048657600080fd5b5061033e6daaeb6d7670e522a718067333cd4e81565b3480156104a857600080fd5b506103766104b73660046132c1565b610ea0565b3480156104c857600080fd5b506009546102d29060ff1681565b3480156104e257600080fd5b5061029f6104f1366004613324565b6001600160a01b03166000908152600a602052604090205490565b34801561051857600080fd5b5061033e610527366004613267565b610ec5565b34801561053857600080fd5b506012546102d29060ff1681565b34801561055257600080fd5b5061029f610561366004613324565b610f2a565b34801561057257600080fd5b50610376610fc4565b34801561058757600080fd5b506103766105963660046134ba565b610fd8565b3480156105a757600080fd5b506103766105b6366004613267565b611011565b3480156105c757600080fd5b50600c546001600160a01b031661033e565b3480156105e557600080fd5b5061029f611fc081565b3480156105fb57600080fd5b50610311611022565b610420610612366004613267565b611031565b34801561062357600080fd5b50610376610632366004613525565b611338565b34801561064357600080fd5b503360009081526011602052604090205461029f565b34801561066557600080fd5b506102d261067436600461355e565b61134c565b34801561068557600080fd5b506103766106943660046135c0565b6113b0565b3480156106a557600080fd5b506103116106b4366004613267565b6113dd565b3480156106c557600080fd5b5061029f600281565b3480156106da57600080fd5b5061029f6106e9366004613267565b61181a565b3480156106fa57600080fd5b5060408051808201909152601f81527f68747470733a2f2f796f757273746f72792e7774662f637572692e6a736f6e006020820152610311565b34801561074057600080fd5b506102d261074f36600461366f565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561078957600080fd5b5061029f610798366004613324565b60116020526000908152604090205481565b3480156107b657600080fd5b506103766107c5366004613324565b61187a565b60006107d582611907565b92915050565b6060600280546107ea9061369d565b80601f01602080910402602001604051908101604052809291908181526020018280546108169061369d565b80156108635780601f1061083857610100808354040283529160200191610863565b820191906000526020600020905b81548152906001019060200180831161084657829003601f168201915b5050505050905090565b6000610878826119a9565b506000908152600660205260409020546001600160a01b031690565b8161089e81611a0d565b6108a88383611af8565b505050565b826001600160a01b03811633146108c7576108c733611a0d565b6108d2848484611c24565b50505050565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff169282019290925282916109795750604080518082019091526000546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b60208101516000906127109061099d906bffffffffffffffffffffffff1687613719565b6109a79190613785565b915196919550909350505050565b6109bd611cab565b6109c5611d05565b6001600160a01b038116610a05576040517fd23a9e8900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60405147906000906001600160a01b0384169083908381818185875af1925050503d8060008114610a52576040519150601f19603f3d011682016040523d82523d6000602084013e610a57565b606091505b5050905080610a92576040517fd23a9e8900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050610a9e6001600b55565b50565b60603382610aaf828261134c565b610b005760405162461bcd60e51b815260206004820152601160248201527f4e6f74206f6e20616c6c6f77206c69737400000000000000000000000000000060448201526064015b60405180910390fd5b336000818152601160205260409020548690600290610b20908390613799565b1115610b945760405162461bcd60e51b815260206004820152602260248201527f4d6178696d756d206d696e747320666f7220616464726573732065786365656460448201527f65640000000000000000000000000000000000000000000000000000000000006064820152608401610af7565b86611fc081600d54610ba69190613799565b1115610bf45760405162461bcd60e51b815260206004820152601c60248201527f4d696e7420776f756c6420657863656564206d617820737570706c79000000006044820152606401610af7565b610bfc611d05565b6000610c078961181a565b905080341015610c43576040517f21e191e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008967ffffffffffffffff811115610c5e57610c5e613341565b604051908082528060200260200182016040528015610c87578160200160208202803683370190505b50905060005b8a811015610d8e57600d60008154610ca4906137b1565b919050819055828281518110610cbc57610cbc6137e9565b602090810291909101810191909152600d546000908152600f8252604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001633908117909155825260119092522054610d1b906001613799565b33600090815260116020526040902081905560011015610d7057600d54600090815260106020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555b610d7c33600d54611d5e565b80610d86816137b1565b915050610c8d565b50610da233610d9d8434613818565b611d7c565b965050610daf6001600b55565b505050505092915050565b610dc2611cab565b600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682151517905550565b610df9613152565b6000610e0483610ec5565b6001600160a01b031603610e44576040517fd872946b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526010602052604090205460ff1615610e85576000828152600f60205260409020546107d590610e8090606090811b9030901b611dd7565b611f34565b6000828152600f60205260409020546107d59060601b611f34565b826001600160a01b0381163314610eba57610eba33611a0d565b6108d284848461212d565b6000818152600460205260408120546001600160a01b0316806107d55760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610af7565b60006001600160a01b038216610fa85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610af7565b506001600160a01b031660009081526005602052604090205490565b610fcc611cab565b610fd66000612148565b565b610fe0611cab565b601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b611019611cab565b610a9e816121b2565b6060600380546107ea9061369d565b60125460609060ff166110865760405162461bcd60e51b815260206004820152601960248201527f5075626c69632073616c65206973206e6f7420616374697665000000000000006044820152606401610af7565b3360008181526011602052604090205483906002906110a6908390613799565b111561111a5760405162461bcd60e51b815260206004820152602260248201527f4d6178696d756d206d696e747320666f7220616464726573732065786365656460448201527f65640000000000000000000000000000000000000000000000000000000000006064820152608401610af7565b83611fc081600d5461112c9190613799565b111561117a5760405162461bcd60e51b815260206004820152601c60248201527f4d696e7420776f756c6420657863656564206d617820737570706c79000000006044820152606401610af7565b611182611d05565b600061118d8661181a565b9050803410156111c9576040517f21e191e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008667ffffffffffffffff8111156111e4576111e4613341565b60405190808252806020026020018201604052801561120d578160200160208202803683370190505b50905060005b8781101561131457600d6000815461122a906137b1565b919050819055828281518110611242576112426137e9565b602090810291909101810191909152600d546000908152600f8252604080822080547fffffffffffffffffffffffff000000000000000000000000000000000000000016339081179091558252601190925220546112a1906001613799565b336000908152601160205260409020819055600110156112f657600d54600090815260106020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555b61130233600d54611d5e565b8061130c816137b1565b915050611213565b5061132333610d9d8434613818565b9450506113306001600b55565b505050919050565b8161134281611a0d565b6108a883836121ed565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606084901b16602082015260009081906034016040516020818303038152906040528051906020012090506113a883600854836121f8565b949350505050565b836001600160a01b03811633146113ca576113ca33611a0d565b6113d68585858561220e565b5050505050565b606060006113ea83610ec5565b6001600160a01b03160361142a576040517fd872946b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000828152600f6020526040902054606081901b906001600160a01b031661147e576040517fd872946b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008381526010602052604081205460ff16156114bd576000848152600f60205260409020546114b690606090811b9030901b611dd7565b90506114c0565b50805b60006114cb82612296565b905060006114d883611f34565b60208084015184516040519394506000936114f3930161384b565b6040516020818303038152906040529050606060005b600d8110156115e25781611531611521836001613799565b61152c906014613719565b612441565b8561153d846003613719565b6028811061154d5761154d6137e9565b60200201518661155e856003613719565b611569906001613799565b60288110611579576115796137e9565b60200201518761158a866003613719565b611595906002613799565b602881106115a5576115a56137e9565b60200201516040516020016115be959493929190613a02565b604051602081830303815290604052915080806115da906137b1565b915050611509565b506104e08301516040516000916115ff9185918591602001613b20565b60408051601f19818403018152828201909152600f82527f2261747472696275746573223a205b00000000000000000000000000000000006020830152915060005b602881101561177e57600061165a61152c836001613799565b60405160200161166a9190613bdf565b6040516020818303038152906040529050816016148061168a575081601f145b156116ce57808783602881106116a2576116a26137e9565b60200201516040516020016116b8929190613c4b565b6040516020818303038152906040529050611746565b81601714806116dd5750816022145b1561170b57808783602881106116f5576116f56137e9565b60200201516040516020016116b8929190613ca2565b8087836028811061171e5761171e6137e9565b6020020151604051602001611734929190613d24565b60405160208183030381529060405290505b8281604051602001611759929190613da6565b6040516020818303038152906040529250508080611776906137b1565b915050611641565b50855160208088015160405161179993859390929101613dd5565b604051602081830303815290604052905060006117e86117b88c612441565b6117c185612576565b846040516020016117d493929190613f09565b604051602081830303815290604052612576565b9050806040516020016117fb91906144bc565b6040516020818303038152906040529950505050505050505050919050565b60008082600d5461182b9190613799565b600d549091505b8181101561187357611845816001613799565b611855906509184e72a000613719565b61185f9084613799565b92508061186b816137b1565b915050611832565b5050919050565b611882611cab565b6001600160a01b0381166118fe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610af7565b610a9e81612148565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061199a57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806107d557506107d5826126c9565b6000818152600460205260409020546001600160a01b0316610a9e5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610af7565b6daaeb6d7670e522a718067333cd4e3b15610a9e576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611a93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab79190614501565b610a9e576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610af7565b6000611b0382610ec5565b9050806001600160a01b0316836001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610af7565b336001600160a01b0382161480611ba85750611ba8813361074f565b611c1a5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610af7565b6108a88383612760565b611c2e33826127e6565b611ca05760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610af7565b6108a8838383612864565b600c546001600160a01b03163314610fd65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610af7565b6002600b5403611d575760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610af7565b6002600b55565b611d78828260405180602001604052806000815250612ad0565b5050565b600080600080600085875af19050806108a85760405162461bcd60e51b815260206004820152601360248201527f4554485f5452414e534645525f4641494c4544000000000000000000000000006044820152606401610af7565b60408051601480825281830190925260009182919060208201818036833701905050905060005b60148160ff161015611f2a576000611e2d868360ff1660148110611e2457611e246137e9565b1a60f81b612b59565b90506000611e49868460ff1660148110611e2457611e246137e9565b9050611ed16040518060400160405280601084600060028110611e6e57611e6e6137e9565b60200201518651611e7f919061451e565b611e899190614543565b60ff168152602001601084600160200201518660016020020151611ead919061451e565b611eb79190614543565b60ff1690526020810151905160041b610ff0161760f81b90565b848460ff1681518110611ee657611ee66137e9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535050508080611f2290614565565b915050611dfe565b506113a881614584565b611f3c613152565b60005b60148160ff161015612127576000611f65848360ff1660148110611e2457611e246137e9565b600e5481519192506001600160a01b031690636123555390611f888560026145d0565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260ff928316600482015291166024820152604401600060405180830381865afa158015611fe5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261200d91908101906145f9565b836120198460026145d0565b60ff166028811061202c5761202c6137e9565b6020020152600e546001600160a01b0316636123555382600160200201516120558560026145d0565b61206090600161451e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260ff928316600482015291166024820152604401600060405180830381865afa1580156120bd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120e591908101906145f9565b836120f18460026145d0565b6120fc90600161451e565b60ff166028811061210f5761210f6137e9565b6020020152508061211f81614565565b915050611f3f565b50919050565b6108a8838383604051806020016040528060008152506113b0565b600c80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60088190556040518181527f1b930366dfeaa7eb3b325021e4ae81e36527063452ee55b86c95f85b36f4c31c9060200160405180910390a150565b611d78338383612b84565b6000826122058584612c70565b14949350505050565b61221833836127e6565b61228a5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610af7565b6108d284848484612cbd565b61229e61317a565b60608060005b60038160ff1610156124285760006122ca868360ff1660148110611e2457611e246137e9565b805190915084907f303132333435363738396162636465660000000000000000000000000000000090600f1660108110612306576123066137e9565b1a60f81b7f30313233343536373839616263646566000000000000000000000000000000008360016020020151600f1660108110612346576123466137e9565b1a60f81b60405160200161235c93929190614670565b60408051601f198184030181529190529350827f3031323334353637383961626364656600000000000000000000000000000000826000602002015119600f16601081106123ac576123ac6137e9565b1a60f81b7f3031323334353637383961626364656600000000000000000000000000000000836001602002015119600f16601081106123ed576123ed6137e9565b1a60f81b60405160200161240393929190614670565b604051602081830303815290604052925050808061242090614565565b9150506122a4565b5060408051808201909152918252602082015292915050565b60608160000361248457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156124ae5780612498816137b1565b91506124a79050600a83613785565b9150612488565b60008167ffffffffffffffff8111156124c9576124c9613341565b6040519080825280601f01601f1916602001820160405280156124f3576020820181803683370190505b5090505b84156113a857612508600183613818565b9150612515600a866146bb565b612520906030613799565b60f81b818381518110612535576125356137e9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061256f600a86613785565b94506124f7565b6060815160000361259557505060408051602081019091526000815290565b600060405180606001604052806040815260200161472960409139905060006003845160026125c49190613799565b6125ce9190613785565b6125d9906004613719565b67ffffffffffffffff8111156125f1576125f1613341565b6040519080825280601f01601f19166020018201604052801561261b576020820181803683370190505b509050600182016020820185865187015b80821015612687576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f811685015184535060018301925061262c565b50506003865106600181146126a357600281146126b6576126be565b603d6001830353603d60028303536126be565b603d60018303535b509195945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806107d557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146107d5565b600081815260066020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906127ad82610ec5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806127f283610ec5565b9050806001600160a01b0316846001600160a01b0316148061283957506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b806113a85750836001600160a01b03166128528461086d565b6001600160a01b031614949350505050565b826001600160a01b031661287782610ec5565b6001600160a01b0316146128f35760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610af7565b6001600160a01b03821661296e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610af7565b61297b8383836001612d46565b826001600160a01b031661298e82610ec5565b6001600160a01b031614612a0a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610af7565b600081815260066020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b038781168086526005855283862080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01905590871680865283862080546001019055868652600490945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612ada8383612dce565b612ae76000848484612f7f565b6108a85760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610af7565b612b61613193565b506040805180820190915260fc82901c815260f89190911c600f16602082015290565b816001600160a01b0316836001600160a01b031603612be55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610af7565b6001600160a01b0383811660008181526007602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600081815b8451811015612cb557612ca182868381518110612c9457612c946137e9565b6020026020010151613120565b915080612cad816137b1565b915050612c75565b509392505050565b612cc8848484612864565b612cd484848484612f7f565b6108d25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610af7565b60018111156108d2576001600160a01b03841615612d8c576001600160a01b03841660009081526005602052604081208054839290612d86908490613818565b90915550505b6001600160a01b038316156108d2576001600160a01b03831660009081526005602052604081208054839290612dc3908490613799565b909155505050505050565b6001600160a01b038216612e245760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610af7565b6000818152600460205260409020546001600160a01b031615612e895760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610af7565b612e97600083836001612d46565b6000818152600460205260409020546001600160a01b031615612efc5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610af7565b6001600160a01b038216600081815260056020908152604080832080546001019055848352600490915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15613115576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612fdc9033908990889088906004016146cf565b6020604051808303816000875af1925050508015613017575060408051601f3d908101601f191682019092526130149181019061470b565b60015b6130ca573d808015613045576040519150601f19603f3d011682016040523d82523d6000602084013e61304a565b606091505b5080516000036130c25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610af7565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506113a8565b506001949350505050565b600081831061313c57600082815260208490526040902061314b565b60008381526020839052604090205b9392505050565b6040518061050001604052806028905b60608152602001906001900390816131625790505090565b6040805180820190915260608152600160208201613162565b60405180604001604052806002906020820280368337509192915050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610a9e57600080fd5b6000602082840312156131f157600080fd5b813561314b816131b1565b60005b838110156132175781810151838201526020016131ff565b838111156108d25750506000910152565b600081518084526132408160208601602086016131fc565b601f01601f19169290920160200192915050565b60208152600061314b6020830184613228565b60006020828403121561327957600080fd5b5035919050565b6001600160a01b0381168114610a9e57600080fd5b600080604083850312156132a857600080fd5b82356132b381613280565b946020939093013593505050565b6000806000606084860312156132d657600080fd5b83356132e181613280565b925060208401356132f181613280565b929592945050506040919091013590565b6000806040838503121561331557600080fd5b50508035926020909101359150565b60006020828403121561333657600080fd5b813561314b81613280565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561339957613399613341565b604052919050565b600082601f8301126133b257600080fd5b8135602067ffffffffffffffff8211156133ce576133ce613341565b8160051b6133dd828201613370565b92835284810182019282810190878511156133f757600080fd5b83870192505b84831015613416578235825291830191908301906133fd565b979650505050505050565b6000806040838503121561343457600080fd5b82359150602083013567ffffffffffffffff81111561345257600080fd5b61345e858286016133a1565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156134a057835183529284019291840191600101613484565b50909695505050505050565b8015158114610a9e57600080fd5b6000602082840312156134cc57600080fd5b813561314b816134ac565b6020808252600090610520830183820185845b602881101561351957601f19878503018352613507848351613228565b935091840191908401906001016134ea565b50919695505050505050565b6000806040838503121561353857600080fd5b823561354381613280565b91506020830135613553816134ac565b809150509250929050565b6000806040838503121561357157600080fd5b823561357c81613280565b9150602083013567ffffffffffffffff81111561345257600080fd5b600067ffffffffffffffff8211156135b2576135b2613341565b50601f01601f191660200190565b600080600080608085870312156135d657600080fd5b84356135e181613280565b935060208501356135f181613280565b925060408501359150606085013567ffffffffffffffff81111561361457600080fd5b8501601f8101871361362557600080fd5b803561363861363382613598565b613370565b81815288602083850101111561364d57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b6000806040838503121561368257600080fd5b823561368d81613280565b9150602083013561355381613280565b600181811c908216806136b157607f821691505b602082108103612127577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613751576137516136ea565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261379457613794613756565b500490565b600082198211156137ac576137ac6136ea565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036137e2576137e26136ea565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008282101561382a5761382a6136ea565b500390565b600081516138418185602086016131fc565b9290920192915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f73766722207072657365727665417370656374526174696f3d22784d6960208201527f6e594d696e206d656574222076696577426f783d22302030203335302033353060408201527f223e3c7374796c653e2e62617365207b66696c6c3a20230000000000000000006060820152600083516138f58160778501602088016131fc565b7f3b20666f6e742d66616d696c793a20416d65726963616e2054797065777269746077918401918201527f65722c2047656f726769612c2073657269663b20666f6e742d73697a653a203160978201527f3570783b207d3c2f7374796c653e00000000000000000000000000000000000060b78201527f3c726563742077696474683d223130302522206865696768743d22313030252260c58201527f2066696c6c3d222300000000000000000000000000000000000000000000000060e582015283516139ca8160ed8401602088016131fc565b016139f760ed82017f222f3e00000000000000000000000000000000000000000000000000000000009052565b60f001949350505050565b600086516020613a158285838c016131fc565b7f3c7465787420783d2231302220793d22000000000000000000000000000000009184019182528751613a4e8160108501848c016131fc565b7f2220636c6173733d2262617365223e0000000000000000000000000000000000601093909101928301528651613a8b81601f8501848b016131fc565b8083019250507f200000000000000000000000000000000000000000000000000000000000000080601f8401528651613ac981848601858b016131fc565b92909201818101929092528451613ae681602185018885016131fc565b7f3c2f746578743e000000000000000000000000000000000000000000000000006021939091019283015250602801979650505050505050565b60008451613b328184602089016131fc565b845190830190613b468183602089016131fc565b8082019150507f3c7465787420783d2231302220793d223238302220636c6173733d226261736581527f223e00000000000000000000000000000000000000000000000000000000000060208201528351613ba88160228401602088016131fc565b7f3c2f746578743e3c2f7376673e0000000000000000000000000000000000000060229290910191820152602f0195945050505050565b7f7b2274726169745f74797065223a2022576f7264200000000000000000000000815260008251613c178160158501602087016131fc565b7f222c202276616c7565223a2000000000000000000000000000000000000000006015939091019283015250602101919050565b60008351613c5d8184602088016131fc565b835190830190613c718183602088016131fc565b7f22207d2c200000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60008351613cb48184602088016131fc565b7f22000000000000000000000000000000000000000000000000000000000000009083019081528351613cee8160018401602088016131fc565b7f207d2c200000000000000000000000000000000000000000000000000000000060019290910191820152600501949350505050565b60008351613d368184602088016131fc565b7f22000000000000000000000000000000000000000000000000000000000000009083019081528351613d708160018401602088016131fc565b7f22207d2c2000000000000000000000000000000000000000000000000000000060019290910191820152600601949350505050565b60008351613db88184602088016131fc565b835190830190613dcc8183602088016131fc565b01949350505050565b60008451613de78184602089016131fc565b80830190507f7b2274726169745f74797065223a20224261636b67726f756e6420436f6c6f7281527f222c202276616c7565223a20222300000000000000000000000000000000000060208201528451613e4881602e8401602089016131fc565b7f227d2c2000000000000000000000000000000000000000000000000000000000602e92909101918201527f7b2274726169745f74797065223a2022466f6e7420436f6c6f72222c2022766160328201527f6c7565223a20222300000000000000000000000000000000000000000000000060528201528351613ed281605a8401602088016131fc565b7f227d5d0000000000000000000000000000000000000000000000000000000000605a9290910191820152605d0195945050505050565b7f7b226e616d65223a2022596f75722053746f7279202300000000000000000000815260008451613f418160168501602089016131fc565b7f222c20226465736372697074696f6e223a2022416e206f6e2d636861696e20736016918401918201527f746f72792067656e6572617465642066726f6d20796f7572206164647265737360368201527f2e205c6e5c6e54686520726967687466756c206f776e6572206f66207468697360568201527f204e4654206f776e7320616c6c20636f707972696768742074686174206d617960768201527f20657869737420696e2074686520776f726b20656d626f6469656420696e207460968201527f6865204e46547320746f6b656e5552492c207375626a65637420746f3a20283160b68201527f292074686520726967687473206f66206f776e657273206f66206f746865722060d68201527f4e465473206d696e74656420756e646572207468652073616d6520736d61727460f68201527f20636f6e747261637420617320696620616c6c2073756368204e4654732077656101168201527f7265206d696e7465642073696d756c74616e656f75736c793b20616e642028326101368201527f292061206e6f6e6578636c75736976652c207375626c6963656e7361626c652c6101568201527f207472616e7366657261626c65206c6963656e73652072657461696e656420626101768201527f79207468652063726561746f72206f662074686520736d61727420636f6e74726101968201527f61637420746f20726570726f647563652c20646973747269627574652c2070726101b68201527f6570617265206465726976617469766520776f726b732062617365642075706f6101d68201527f6e2c20616e6420646973706c61792074686520776f726b20656d626f646965646101f68201527f20696e20746865204e46547320746f6b656e55524920736f6c656c7920746f206102168201527f70726f6d6f746520746865204e465420636f6c6c656374696f6e2063726561746102368201527f6564207468726f7567682074686520736d61727420636f6e74726163742e20556102568201527f73696e6720612070726976617465206b657920746f207369676e2061207472616102768201527f6e73616374696f6e2074686174207472616e73666572732074686973204e46546102968201527f20636f6e737469747574657320612077726974696e67207369676e65642062796102b68201527f20746865207472616e736665726f722061737369676e696e6720616c6c2073756102d68201527f636820636f7079726967687420746f20746865207472616e7366657265652e206102f68201527f4772616e7473206f722061737369676e6d656e7473206f66206578636c7573696103168201527f76652072696768747320696e207375636820636f70797269676874207368616c6103368201527f6c206265206e756c6c20616e6420766f69642065786365707420746f207468656103568201527f20657874656e7420737563682072696768747320617265207472616e736665726103768201527f7265642075706f6e207472616e73666572206f6620746865204e46542e00000061039682015261445a6144546144056103b384017f222c202265787465726e616c5f75726c223a202268747470733a2f2f796f757281527f73746f72792e7774660000000000000000000000000000000000000000000000602082015260290190565b7f222c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b81527f6261736536342c00000000000000000000000000000000000000000000000000602082015260270190565b8661382f565b7f222c0000000000000000000000000000000000000000000000000000000000008152905061448c600282018561382f565b7f7d0000000000000000000000000000000000000000000000000000000000000081526001019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516144f481601d8501602087016131fc565b91909101601d0192915050565b60006020828403121561451357600080fd5b815161314b816134ac565b600060ff821660ff84168060ff0382111561453b5761453b6136ea565b019392505050565b600060ff83168061455657614556613756565b8060ff84160691505092915050565b600060ff821660ff810361457b5761457b6136ea565b60010192915050565b6000815160208301517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000808216935060148310156113305760149290920360031b82901b161692915050565b600060ff821660ff84168160ff04811182151516156145f1576145f16136ea565b029392505050565b60006020828403121561460b57600080fd5b815167ffffffffffffffff81111561462257600080fd5b8201601f8101841361463357600080fd5b805161464161363382613598565b81815285602083850101111561465657600080fd5b6146678260208301602086016131fc565b95945050505050565b600084516146828184602089016131fc565b7fff0000000000000000000000000000000000000000000000000000000000000094851692019182525091166001820152600201919050565b6000826146ca576146ca613756565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526147016080830184613228565b9695505050505050565b60006020828403121561471d57600080fd5b815161314b816131b156fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220d27028554559c9d64af5da25d6b6e4e5c5ea0382c5df8ba3fcea7b833688cc3e64736f6c634300080f0033

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

000000000000000000000000e853e578d526316d342ed758ee26a1741dc3fc29000000000000000000000000f83ed40e4383993b9fd2cc8cb2e8a8b7550ae72a61bfc8983b69d0bf64cf899e10e9a9a7cb43c72a5baf582cafc5db25941a6eec

-----Decoded View---------------
Arg [0] : _owner (address): 0xe853E578D526316D342ED758eE26a1741dC3fc29
Arg [1] : _wordTable (address): 0xF83Ed40e4383993b9fD2cC8Cb2E8A8B7550Ae72a
Arg [2] : merkleRoot (bytes32): 0x61bfc8983b69d0bf64cf899e10e9a9a7cb43c72a5baf582cafc5db25941a6eec

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000e853e578d526316d342ed758ee26a1741dc3fc29
Arg [1] : 000000000000000000000000f83ed40e4383993b9fd2cc8cb2e8a8b7550ae72a
Arg [2] : 61bfc8983b69d0bf64cf899e10e9a9a7cb43c72a5baf582cafc5db25941a6eec


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.