ETH Price: $3,461.27 (+0.17%)
Gas: 10 Gwei

Token

ODDS (ODDS)
 

Overview

Max Total Supply

999 ODDS

Holders

134

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
vault.danrosario.eth
Balance
2 ODDS
0xc4bafdc0a6b7c1339055cea9dfd433b28815ae78
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:
Odds

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 24 : CantBeEvil.sol
// SPDX-License-Identifier: MIT
// a16z Contracts v0.0.1 (CantBeEvil.sol)
pragma solidity ^0.8.13;

import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "./ICantBeEvil.sol";

enum LicenseVersion {
    PUBLIC,
    EXCLUSIVE,
    COMMERCIAL,
    COMMERCIAL_NO_HATE,
    PERSONAL,
    PERSONAL_NO_HATE
}

contract CantBeEvil is ERC165, ICantBeEvil {
    using Strings for uint;
    string internal constant _BASE_LICENSE_URI = "ar://zmc1WTspIhFyVY82bwfAIcIExLFH5lUcHHUN0wXg4W8/";
    LicenseVersion internal licenseVersion;
    constructor(LicenseVersion _licenseVersion) {
        licenseVersion = _licenseVersion;
    }

    function getLicenseURI() public view returns (string memory) {
        return string.concat(_BASE_LICENSE_URI, uint(licenseVersion).toString());
    }

    function getLicenseName() public view returns (string memory) {
        return _getLicenseVersionKeyByValue(licenseVersion);
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165) returns (bool) {
        return
            interfaceId == type(ICantBeEvil).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    function _getLicenseVersionKeyByValue(LicenseVersion _licenseVersion) internal pure returns (string memory) {
        require(uint8(_licenseVersion) <= 6);
        if (LicenseVersion.PUBLIC == _licenseVersion) return "PUBLIC";
        if (LicenseVersion.EXCLUSIVE == _licenseVersion) return "EXCLUSIVE";
        if (LicenseVersion.COMMERCIAL == _licenseVersion) return "COMMERCIAL";
        if (LicenseVersion.COMMERCIAL_NO_HATE == _licenseVersion) return "COMMERCIAL_NO_HATE";
        if (LicenseVersion.PERSONAL == _licenseVersion) return "PERSONAL";
        else return "PERSONAL_NO_HATE";
    }
}

File 2 of 24 : ICantBeEvil.sol
// SPDX-License-Identifier: MIT
// a16z Contracts v0.0.1 (ICantBeEvil.sol)
pragma solidity ^0.8.13;

interface ICantBeEvil {
    function getLicenseURI() external view returns (string memory);
    function getLicenseName() external view returns (string memory);
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 24 : 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 13 of 24 : 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 14 of 24 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

// EIP-712 is Final as of 2022-08-11. This file is deprecated.

import "./EIP712.sol";

File 15 of 24 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 16 of 24 : EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (false && address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 17 of 24 : 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 18 of 24 : 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 19 of 24 : 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 * 8) < value ? 1 : 0);
        }
    }
}

File 20 of 24 : 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 21 of 24 : Odds.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";

import {LicenseVersion, CantBeEvil} from "@a16z/contracts/licenses/CantBeEvil.sol";
import {ICantBeEvil} from "@a16z/contracts/licenses/ICantBeEvil.sol";

interface ChromieSquiggle {
    function showTokenHashes(uint256 _tokenId) external view returns (bytes32[] memory);
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

interface ITributeStorage {
    function getItem(uint256 id) external view returns (string memory);
}

contract Odds is EIP712, DefaultOperatorFilterer, ERC721Royalty, Ownable, CantBeEvil(LicenseVersion.PUBLIC) {
    error MintingPaused();
    error SupplyReached();
    error ActionAlreadyUsed();
    error BadSignature();
    error SignatureExpired();

    event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId);

    address immutable _squiggleAddress;
    address immutable _tributeStorageAddress;
    uint256 immutable MAX_SQUIGGLE_ID = 10000;

    bool public mintingPaused = false;
    address public _firstMinter;
    address private _manager;
    address private _verifier;

    string private _liveMetadataPrefix;
    string private _liveImagePrefix;
    bool private _liveChangesLocked = false;

    enum MintKind {
        Owner,
        Custom,
        CustomReserved
    }

    // values below 10k mean that ODDS is based on a squiggle, otherwise it's custom
    mapping(uint256 => bytes32) private _tokenIdToSquiggleData;
    mapping(bytes32 => uint256) private _squiggleDataToTokenId;

    uint256 public _totalExtraSweaters = 0;
    uint256 public _totalMinted = 0;
    uint256 public _totalReserved = 0;

    uint256 public _maxSweaters = 1000; // shared pool
    uint256 public _maxTokens = 900; // pool A
    uint256 public _maxReserved = 100; // pool B

    constructor(
        string memory name,
        string memory symbol,
        address firstMinter,
        address squiggleAddress,
        address tributeStorageAddress
    ) ERC721(name, symbol) EIP712(name, symbol) {
        _setDefaultRoyalty(0xD2C3286e050C8569695f2c7d27E1d770ab42d6c0, 750);
        _firstMinter = firstMinter;
        _squiggleAddress = squiggleAddress;
        _tributeStorageAddress = tributeStorageAddress;
        _manager = msg.sender;
        _verifier = msg.sender;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721Royalty, CantBeEvil)
        returns (bool)
    {
        return interfaceId == type(ICantBeEvil).interfaceId || super.supportsInterface(interfaceId);
    }

    //////////////////////////////// Royalty 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);
    }

    //////////////////////////////// Limits and other manager functions

    function setLimits(uint256 maxSweaters, uint256 maxTokens, uint256 maxReserved) external onlyOwner {
        _maxSweaters = maxSweaters;
        _maxTokens = maxTokens;
        _maxReserved = maxReserved;
    }

    function setFirstMinter(address firstMinter) external onlyOwner {
        if (_totalMinted > 0) {
            revert();
        }
        _firstMinter = firstMinter;
    }

    function setOperators(address manager, address verifier) external onlyOwner {
        _manager = manager;
        _verifier = verifier;
    }

    function setMintingPaused(bool value) external onlyManager {
        mintingPaused = value;
    }

    function lockLivePrefixes() external onlyOwner {
        _liveChangesLocked = true;
    }

    function setLivePrefixes(string memory liveMetadataPrefix, string memory liveImagePrefix) external onlyOwner {
        if (_liveChangesLocked) {
            revert();
        }

        _liveMetadataPrefix = liveMetadataPrefix;
        _liveImagePrefix = liveImagePrefix;

        emit BatchMetadataUpdate(1, type(uint256).max);
    }

    function setExtraClaimed(uint256 value) external onlyManager {
        _totalExtraSweaters = value;
    }

    //////////////////////////////// Minting function
    function signedMint(address to, uint8 mintKind, bytes32 squiggleData, uint256 expiresAt, bytes calldata signature)
        external
        payable
        verifySignature(mintKind, squiggleData, expiresAt, signature)
    {
        if (mintingPaused || (msg.sender != _firstMinter && _totalMinted == 0)) {
            revert MintingPaused();
        }

        if (_squiggleDataToTokenId[squiggleData] > 0) revert ActionAlreadyUsed();
        uint256 tokenId = 1 + _totalMinted + _totalReserved;

        _tokenIdToSquiggleData[tokenId] = squiggleData;
        _squiggleDataToTokenId[squiggleData] = tokenId;

        if (_totalMinted + _totalReserved >= totalSupply()) revert SupplyReached();

        if (mintKind == uint8(MintKind.CustomReserved)) {
            if (_totalReserved >= _maxReserved) revert SupplyReached();
            _totalReserved += 1;
        } else {
            if (_totalMinted >= _maxTokens) revert SupplyReached();
            _totalMinted += 1;
        }

        super._mint(to, tokenId);
    }

    bytes32 public constant SIGNED_ACTION_TYPEHASH =
        keccak256("SignedAction(uint8 mintKind,bytes32 squiggleData,uint256 expiresAt,uint256 price)");

    modifier verifySignature(uint8 mintKind, bytes32 squiggleData, uint256 expiresAt, bytes calldata signature) {
        if (block.timestamp > expiresAt) revert SignatureExpired();

        bytes32 digest = _hashTypedDataV4(
            keccak256(abi.encode(SIGNED_ACTION_TYPEHASH, mintKind, squiggleData, expiresAt, msg.value))
        );

        if (_verifier != ECDSA.recover(digest, signature)) {
            revert BadSignature();
        }

        _;
    }

    ////////////////////////////////
    modifier onlyManager() {
        require(msg.sender == _manager, "caller is not the manager");
        _;
    }

    function contractURI() external pure returns (string memory) {
        bytes memory dataURI = '{"name": "ODDS",'
            '"description": "ODDS by Tribute Brand X Chromie Squiggle X Waste Yarn Project",'
            '"seller_fee_basis_points": 750,' '"fee_recipient": "0xD2C3286e050C8569695f2c7d27E1d770ab42d6c0",'
            '"external_link": "https://tribute-brand.com"' "}";

        return string(abi.encodePacked("data:application/json;charset=utf-8,", dataURI));
    }

    function _publicRemaining() external view virtual returns (uint256) {
        return _maxSweaters - _totalMinted - _totalReserved - _totalExtraSweaters;
    }

    function _reservedRemaining() internal view virtual returns (uint256) {
        return _maxReserved - _totalReserved;
    }

    function _reservedSupply() internal view virtual returns (uint256) {
        return _maxReserved;
    }

    function totalSupply() public view virtual returns (uint256) {
        return _maxSweaters - _totalExtraSweaters;
    }

    function tokenHashUsed(bytes32 tokenHash) external view virtual returns (bool) {
        return _squiggleDataToTokenId[tokenHash] > 0;
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory result) {
        if (!_exists(tokenId)) {
            revert();
        }

        bytes32 squiggleData = _tokenIdToSquiggleData[tokenId];

        if (bytes(_liveMetadataPrefix).length > 0) {
            return string.concat(_liveMetadataPrefix, Strings.toString(tokenId), ".json");
        }

        string memory nameSuffix = "";
        string memory renderInfix = "";

        bool is_original = uint256(squiggleData) < MAX_SQUIGGLE_ID;

        if (is_original) {
            nameSuffix = string.concat("[CHROMIE SQUIGGLE #", Strings.toString(uint256(squiggleData)), "]");
            bytes32 _tokenHash = ChromieSquiggle(_squiggleAddress).showTokenHashes(uint256(squiggleData))[0];

            renderInfix = string.concat(
                Strings.toHexString(uint256(_tokenHash), 32),
                "'; let tokenId = ",
                Strings.toString(uint256(squiggleData))
            );

            squiggleData = _tokenHash;
        } else {
            nameSuffix = string.concat("[#", Strings.toString(tokenId), "]");
            renderInfix = string.concat(Strings.toHexString(uint256(squiggleData), 32), "'; let tokenId = -1");
        }

        // traits
        bool reverse = uint8(squiggleData[30]) < 128;
        bool slinky = uint8(squiggleData[31]) < 35;
        bool pipe = uint8(squiggleData[22]) < 32;
        bool bold = uint8(squiggleData[23]) < 15;
        bool ribbed = uint8(squiggleData[24]) < 30;
        bool fuzzy = pipe && !slinky;

        string memory _type;
        string memory _upperType;

        if (fuzzy) {
            _type = "Fuzzy";
            _upperType = "FUZZY";
        } else if (pipe) {
            _type = "Pipe";
            _upperType = "PIPE";
        } else if (slinky) {
            _type = "Slinky";
            _upperType = "SLINKY";
        } else if (bold) {
            _type = "Bold";
            _upperType = "BOLD";
        } else if (ribbed) {
            _type = "Ribbed";
            _upperType = "RIBBED";
        } else {
            _type = "Normal";
            _upperType = "NORMAL";
        }

        uint8 startColor = uint8(squiggleData[29]);
        uint256 segments = 12 + 8 * uint256(uint8(squiggleData[26])) / 255;
        uint256 steps = slinky ? 50 : (fuzzy ? 1000 : 200);
        uint256 spread = uint8(squiggleData[28]) < 3 ? 1 : 5 + 45 * uint256(uint8(squiggleData[28])) / 255;

        string memory _spectrum = "Normal";

        // Full Spectrum: steps = 200 AND spread: 14 or 15 AND segments: 18 or 19
        // Perfect Spectrum: steps = 200 AND spread: 11 AND segments: 14
        // Hyper: spread = 0.5
        // Normal: other combinations

        if (spread == 1) {
            _spectrum = "HyperRainbow";
        } else if (steps == 200 && spread == 11 && segments == 14) {
            _spectrum = "Perfect Spectrum";
        } else if (steps == 200 && ((spread == 14 && segments == 18) || (spread == 15 && segments == 19))) {
            _spectrum = "Full Spectrum";
        }

        string memory animationBase64 = Base64.encode(
            abi.encodePacked(
                "<html><head><meta charset='utf-8'/><script>let tokenHash = '",
                renderInfix,
                ";</script></head>",
                ITributeStorage(_tributeStorageAddress).getItem(1)
            )
        );

        string memory imageTrait = "";

        if (bytes(_liveImagePrefix).length > 0) {
            imageTrait = string.concat('"image": "', _liveImagePrefix, Strings.toString(tokenId), '.png",');
        }

        return string.concat(
            "data:application/json;charset=utf-8," '{"name":"',
            _upperType,
            " ODD ",
            nameSuffix,
            '", "token_hash": "',
            Strings.toHexString(uint256(squiggleData), 32),
            '", "description": "ODDS by Tribute Brand X Chromie Squiggle X Waste Yarn Project", "external_link":"https://tribute-brand.com/", "attributes": ['
            '{"trait_type": "ODD Type", "value": "',
            is_original ? "Original" : "Generated",
            '"}, {"trait_type": "Color Direction", "value": "',
            reverse ? "Reverse" : "Forward",
            '"}, {"trait_type": "Color Spread", "value": "',
            spread == 1 ? "0.5" : Strings.toString(spread),
            '"}, {"trait_type": "Spectrum", "value": "',
            _spectrum,
            '"}, {"trait_type": "Steps Between", "value": "',
            Strings.toString(steps),
            '"}, {"trait_type": "Type", "value": "',
            _type,
            '"}, {"trait_type": "Start Color", "display_type": "Level", "max_value": 255, "value": ',
            Strings.toString(startColor),
            '}, {"trait_type": "Segments", "display_type": "Level", "max_value": 20, "value": ',
            Strings.toString(segments),
            "}],",
            imageTrait,
            '"animation_url": "data:text/html;charset=utf-8;base64,',
            animationBase64,
            '"}'
        );
    }

    function withdraw(address _receiver) public onlyOwner {
        (bool os,) = payable(_receiver).call{value: address(this).balance}("");
        require(os, "Withdraw unsuccesful");
    }
}

File 22 of 24 : 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 23 of 24 : 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 24 of 24 : 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);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"firstMinter","type":"address"},{"internalType":"address","name":"squiggleAddress","type":"address"},{"internalType":"address","name":"tributeStorageAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ActionAlreadyUsed","type":"error"},{"inputs":[],"name":"BadSignature","type":"error"},{"inputs":[],"name":"MintingPaused","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"SignatureExpired","type":"error"},{"inputs":[],"name":"SupplyReached","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":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","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":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNED_ACTION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_firstMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxSweaters","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_publicRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalExtraSweaters","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLicenseName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLicenseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"lockLivePrefixes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintingPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setExtraClaimed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"firstMinter","type":"address"}],"name":"setFirstMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSweaters","type":"uint256"},{"internalType":"uint256","name":"maxTokens","type":"uint256"},{"internalType":"uint256","name":"maxReserved","type":"uint256"}],"name":"setLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"liveMetadataPrefix","type":"string"},{"internalType":"string","name":"liveImagePrefix","type":"string"}],"name":"setLivePrefixes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setMintingPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"manager","type":"address"},{"internalType":"address","name":"verifier","type":"address"}],"name":"setOperators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"mintKind","type":"uint8"},{"internalType":"bytes32","name":"squiggleData","type":"bytes32"},{"internalType":"uint256","name":"expiresAt","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"signedMint","outputs":[],"stateMutability":"payable","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":"bytes32","name":"tokenHash","type":"bytes32"}],"name":"tokenHashUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"result","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101a060409080825234620005f057600062004acf8038038091620000258286620005f5565b843982019160a081840312620005ec5780516001600160401b039190828111620005e857846200005791830162000619565b9460209485830151848111620005e457906200007591840162000619565b946200008382840162000690565b93620000a06080620000986060870162000690565b950162000690565b948851838a012097805184820120998960e0526101009a808c524660a052865190868201907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f9c8d83528984015260608301524660808301523060a083015260a0825260c0820191868311918184108317620005d057838a52815190206080523060c0526101209c8d526daaeb6d7670e522a718067333cd4e90813b6200054b575b5050505080518481116200053757600254906001928383811c931680156200052c575b8884101462000518578190601f93848111620004c1575b5088908d8584116001146200045b57926200044f575b5050600019600383901b1c191690831b176002555b8251908582116200043b5760039384548481811c9116801562000430575b898210146200041c57828111620003d2575b50879183116001146200036f579282939183928d9462000363575b50501b9160001990841b1c19161790555b600854966001600160a01b039233848a167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08480a36127106101809081526001600160b01b03199099163361ffff60a01b191617600855600e805460ff191690556011829055601282905560138290556103e86014556103846015556064601655855194858701918211868310176200034d576102ee91875273d2c3286e050c8569695f2c7d27e1d770ab42d6c095868152015260018060a01b03199384600054161760005561017760a11b83825416179055168160095416176009556101409283526101609384523381600a541617600a553390600b541617600b5551936144299586620006a6873960805186505060a05186505060c05186505060e05186611324015251856113490152518461130101525183612d4401525182612f7d01525181612c4f0152f35b634e487b7160e01b600052604160045260246000fd5b015192503880620001f2565b848c52878c20919083601f1981168e5b8b88838310620003ba5750505010620003a1575b505050811b01905562000203565b015160001983861b60f8161c1916905538808062000393565b8686015188559096019594850194879350016200037f565b858d52888d208380860160051c8201928b871062000412575b0160051c019085908e5b8382106200040657505050620001d7565b81550185908e620003f5565b92508192620003eb565b634e487b7160e01b8d52602260045260248dfd5b90607f1690620001c5565b634e487b7160e01b8b52604160045260248bfd5b01519050388062000192565b9190869450601f198416600284528b8420935b8c828210620004aa575050841162000490575b505050811b01600255620001a7565b015160001960f88460031b161c1916905538808062000481565b83850151865589979095019493840193016200046e565b90915060028d52888d208480850160051c8201928b86106200050e575b859493910160051c9091019086908f5b838210620004ff575050506200017c565b81558594508791018f620004ee565b92508192620004de565b634e487b7160e01b8c52602260045260248cfd5b92607f169262000165565b634e487b7160e01b8a52604160045260248afd5b813b15620005cc576044848e8094733cc6cdda760b79bafa08df41ecfa224f810dceb660e48496633e9f1edf60e11b86523060c482015201525af18015620005c2576200059b575b808062000142565b999199620005ae57865297388062000593565b634e487b7160e01b82526041600452602482fd5b88513d8d823e3d90fd5b8c80fd5b634e487b7160e01b8d52604160045260248dfd5b8580fd5b8380fd5b5080fd5b600080fd5b601f909101601f19168101906001600160401b038211908210176200034d57604052565b919080601f84011215620005f0578251906001600160401b0382116200034d576040519160209162000655601f8301601f1916840185620005f5565b818452828287010111620005f05760005b8181106200067c57508260009394955001015290565b858101830151848201840152820162000666565b51906001600160a01b0382168203620005f05756fe6080604081815260048036101561001557600080fd5b600092833560e01c9081627cedf414611dc85750806301ffc9a714611c7c5780630359ae6d14611c5d57806306fdde0314611bb3578063081812fc14611b7e578063095ea7b3146119c657806310750727146119a757806318160ddd146119835780631854dc7a14611948578063189ae5f21461191a5780631a7ef85d146118af57806323b872dd1461185b5780632a55205a146117905780632d2db3201461175357806331a6a069146117345780633aee49481461123a57806341f434341461121157806342842e0e146111ae578063487c70fc1461118f57806351cff8d9146110f957806359731218146110b25780636352211e146110755780636bd21d6314610d1f57806370a0823114610c68578063715018a614610be8578063736bf59114610bc957806388f38ef614610b865780638da5cb5b14610b5157806395d89b4114610a60578063a22cb4651461095c578063a341793b14610935578063ab9bc3fd1461090c578063ad13419d14610882578063b88d4fde14610755578063bca33f4314610720578063c7db289314610631578063c87b56dd146105fd578063dfa571f714610584578063e1a283d61461055d578063e8a3d48514610352578063e985e9c5146102f35763f2fde38b146101f057600080fd5b346102ef5760206003193601126102ef57610209611e2c565b9061021261217c565b73ffffffffffffffffffffffffffffffffffffffff809216928315610286575050600854827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600855167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b50503461034e578060031936011261034e5760ff81602093610313611e2c565b61031b611e54565b73ffffffffffffffffffffffffffffffffffffffff91821683526007875283832091168252855220549151911615158152f35b5080fd5b50913461055a578060031936011261055a5781519061012082019082821067ffffffffffffffff831117610547576105436105218561053160448787845260e98152602081017f7b226e616d65223a20224f444453222c226465736372697074696f6e223a202281527f4f4444532062792054726962757465204272616e642058204368726f6d696520858301527f5371756967676c652058205761737465205961726e2050726f6a656374222c2260608301527f73656c6c65725f6665655f62617369735f706f696e7473223a203735302c226660808301527f65655f726563697069656e74223a20223078443243333238366530353043383560a08301527f3639363935663263376432374531643737306162343264366330222c2265787460c08301527f65726e616c5f6c696e6b223a202268747470733a2f2f747269627574652d627260e08301527f616e642e636f6d227d000000000000000000000000000000000000000000000061010083015284519586927f646174613a6170706c69636174696f6e2f6a736f6e3b636861727365743d757460208501527f662d382c000000000000000000000000000000000000000000000000000000008785015251809285850190611de4565b8101036024810185520183611f3f565b51918291602083526020830190611e07565b0390f35b80604186634e487b7160e01b6024945252fd5b80fd5b50503461034e578160031936011261034e5760209060ff60085460a81c1690519015158152f35b50503461034e5760031936011261055a5761059d611e2c565b6105a5611e54565b6105ad61217c565b73ffffffffffffffffffffffffffffffffffffffff90817fffffffffffffffffffffffff0000000000000000000000000000000000000000931683600a541617600a551690600b541617600b5580f35b50913461055a57602060031936011261055a575061061e6105439235612bdb565b9051918291602083526020830190611e07565b5091903461034e578160031936011261034e57805161064f81611f23565b60318152602092838201907f61723a2f2f7a6d63315754737049684679565938326277664149634945784c4682527f48356c55634848554e307758673457382f0000000000000000000000000000008484015260ff60085460a01c1690600682101561070d576106de86610543876106fe8389896106cc8a612322565b90855198899351809286860190611de4565b82016106f282518093868085019101611de4565b01038087520185611f3f565b51928284938452830190611e07565b80602188634e487b7160e01b6024945252fd5b50503461034e578160031936011261034e5760209073ffffffffffffffffffffffffffffffffffffffff600954169051908152f35b5090346102ef5760806003193601126102ef57610770611e2c565b610778611e54565b906044356064359267ffffffffffffffff841161087e573660238501121561087e576107b06107f19436906024818a01359101611f7e565b923373ffffffffffffffffffffffffffffffffffffffff821603610870575b6107e16107dc84336124e3565b612472565b6107ec8383836125cf565b61277b565b156107fa578280f35b61086c92505191829162461bcd60e51b8352820160809060208152603260208201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e746572000000000000000000000000000060608201520190565b0390fd5b61087933614302565b6107cf565b8680fd5b83823461034e57602060031936011261034e573580151580910361034e576108c373ffffffffffffffffffffffffffffffffffffffff600a5416331461291c565b7fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff75ff0000000000000000000000000000000000000000006008549260a81b1691161760085580f35b50346102ef5760206003193601126102ef57602092829135815260108452205415159051908152f35b50503461034e578160031936011261034e576105439061061e60ff60085460a01c16611fd3565b5090346102ef57806003193601126102ef57610976611e2c565b9060243591821515809303610a5c57806109a473ffffffffffffffffffffffffffffffffffffffff92614302565b1692833314610a1a575033845260076020528084208385526020528084207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020606492519162461bcd60e51b8352820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b8480fd5b50503461034e578160031936011261034e5780519082600354610a828161225b565b80855291600191808316908115610b0b5750600114610aae575b50505061053182610543940383611f3f565b9450600385527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b828610610af3575050506105318260206105439582010194610a9c565b80546020878701810191909152909501948101610ad6565b6105439750869350602092506105319491507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682840152151560051b82010194610a9c565b50503461034e578160031936011261034e5760209073ffffffffffffffffffffffffffffffffffffffff600854169051908152f35b50503461034e578160031936011261034e57602090610bc2610bb9610bb06014546012549061271b565b6013549061271b565b6011549061271b565b9051908152f35b50503461034e578160031936011261034e576020906012549051908152f35b833461055a578060031936011261055a57610c0161217c565b8073ffffffffffffffffffffffffffffffffffffffff6008547fffffffffffffffffffffffff00000000000000000000000000000000000000008116600855167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5082903461034e57602060031936011261034e5773ffffffffffffffffffffffffffffffffffffffff610c99611e2c565b16908115610cb65760208480858581526005845220549051908152f35b608490602085519162461bcd60e51b8352820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152fd5b50346102ef57816003193601126102ef5767ffffffffffffffff908035828111610a5c57610d509036908301611fb5565b9060243583811161107157610d689036908301611fb5565b90610d7161217c565b60ff600e541661107157825184811161105e5780610d90600c5461225b565b94601f95868111610ff2575b50602090868311600114610f71578992610f66575b50506000198260011b9260031b1c191617600c555b8151938411610f535750610ddb600d5461225b565b828111610ef3575b506020918311600114610e4e577f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c939291859183610e43575b50506000198260011b9260031b1c191617600d555b8051600181526000196020820152a180f35b015190503880610e1c565b600d85527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb59190601f198416865b818110610edb57509160019391857f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c97969410610ec2575b505050811b01600d55610e31565b015160001960f88460031b161c19169055388080610eb4565b92936020600181928786015181550195019301610e7c565b600d86527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb58380860160051c82019260208710610f4a575b0160051c01905b818110610f3f5750610de3565b868155600101610f32565b92508192610f2b565b856041602492634e487b7160e01b835252fd5b015190503880610db1565b600c8a527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c792601f19168a5b818110610fda5750908460019594939210610fc1575b505050811b01600c55610dc6565b015160001960f88460031b161c19169055388080610fb3565b92936020600181928786015181550195019301610f9d565b909150600c89527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c78680850160051c82019260208610611055575b9085949392910160051c01905b8181106110475750610d9c565b8a815584935060010161103a565b9250819261102d565b602487604184634e487b7160e01b835252fd5b8580fd5b50913461055a57602060031936011261055a575073ffffffffffffffffffffffffffffffffffffffff6110aa6020933561222c565b915191168152f35b833461055a578060031936011261055a576110cb61217c565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00600e541617600e5580f35b5090346102ef5760206003193601126102ef5782808080611118611e2c565b61112061217c565b73ffffffffffffffffffffffffffffffffffffffff4791165af161114261274b565b501561114c578280f35b906020606492519162461bcd60e51b8352820152601460248201527f576974686472617720756e73756363657366756c0000000000000000000000006044820152fd5b50503461034e578160031936011261034e576020906015549051908152f35b5090346102ef576107f16111c136611e77565b903373ffffffffffffffffffffffffffffffffffffffff841614159283611203575b8551936111ef85611f07565b888552610870576107e16107dc84336124e3565b61120c33614302565b6111e3565b50503461034e578160031936011261034e57602090516daaeb6d7670e522a718067333cd4e8152f35b5060a06003193601126102ef5761124f611e2c565b9160249182359360ff85168095036110715760443594606435916084359167ffffffffffffffff808411611730573660238501121561173057838601359080821161172c573689838701011161172c5785421161170457875195602096878101917fb270ade43fa3bf1be6c80300a7cf6b13f49ded43f96e897eb63ce8224898d1eb8352858b8301528c606083015260808201523460a082015260a081526112f681611eeb565b5190208851878101907f000000000000000000000000000000000000000000000000000000000000000082527f00000000000000000000000000000000000000000000000000000000000000008b8201527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260a0815261138681611eeb565b51902091895191888301937f1901000000000000000000000000000000000000000000000000000000000000855260228401526042830152604282526080820190828210908211176116f2578a939261141992611411928c5251902061140b73ffffffffffffffffffffffffffffffffffffffff98899586600b541697369201611f7e565b90612ace565b9190916129b2565b16036116ca5760ff60085460a81c1680156116b1575b611689578789526010845285892054611661576012546001018060011161164f5760135461145c9161273e565b97888a52600f855280878b205589526010845287868a2055601254906114846013548361273e565b6114936014546011549061271b565b11156116275760020361160a57506013546016548110156115e257600181018091116115d0576013555b1693841561159357506114fc6114f686600052600460205273ffffffffffffffffffffffffffffffffffffffff60406000205416151590565b15612967565b61152c6114f686600052600460205273ffffffffffffffffffffffffffffffffffffffff60406000205416151590565b8386526005815282862060018154019055848652528320817fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a480f35b81606494519362461bcd60e51b85528401528201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b8689601187634e487b7160e01b835252fd5b8486517f1f755083000000000000000000000000000000000000000000000000000000008152fd5b6015548110156115e257600181018091116115d0576012556114bd565b8587517f1f755083000000000000000000000000000000000000000000000000000000008152fd5b878a601188634e487b7160e01b835252fd5b8486517ffae12290000000000000000000000000000000000000000000000000000000008152fd5b8486517feb560756000000000000000000000000000000000000000000000000000000008152fd5b508260095416331415801561142f57506012541561142f565b8486517f5cd5d233000000000000000000000000000000000000000000000000000000008152fd5b8a8d60418b634e487b7160e01b835252fd5b8688517f0819bdcd000000000000000000000000000000000000000000000000000000008152fd5b8a80fd5b8980fd5b50503461034e578160031936011261034e576020906016549051908152f35b83823461034e57602060031936011261034e5761178973ffffffffffffffffffffffffffffffffffffffff600a5416331461291c565b3560115580f35b50913461055a578160031936011261055a5760243590833581526001602052828120908351916117bf83611eb9565b549073ffffffffffffffffffffffffffffffffffffffff928383169283825260a01c60208201529115611839575b6bffffffffffffffffffffffff602083015116938481029481860414901517156118265750518351911681526127109091046020820152f35b80601187634e487b7160e01b6024945252fd5b9050835161184681611eb9565b8154838116825260a01c6020820152906117ed565b833461055a5761189e61186d36611e77565b913373ffffffffffffffffffffffffffffffffffffffff8216036118a1575b6118996107dc84336124e3565b6125cf565b80f35b6118aa33614302565b61188c565b833461055a57602060031936011261055a576118c9611e2c565b6118d161217c565b60125461034e5773ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff0000000000000000000000000000000000000000600954161760095580f35b83823461034e57606060031936011261034e5761193561217c565b3560145560243560155560443560165580f35b50503461034e578160031936011261034e57602090517fb270ade43fa3bf1be6c80300a7cf6b13f49ded43f96e897eb63ce8224898d1eb8152f35b50503461034e578160031936011261034e57602090610bc26014546011549061271b565b50503461034e578160031936011261034e576020906014549051908152f35b50346102ef57816003193601126102ef576119df611e2c565b90602435926119ed83614302565b73ffffffffffffffffffffffffffffffffffffffff918280611a0e8761222c565b16941693808514611b1557803314908115611af6575b5015611a8e575083855260066020528420827fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055611a668361222c565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b6020608492519162461bcd60e51b8352820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152fd5b90508652600760205281862033875260205260ff828720541638611a24565b506020608492519162461bcd60e51b8352820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152fd5b50913461055a57602060031936011261055a575073ffffffffffffffffffffffffffffffffffffffff6110aa60209335612295565b50503461034e578160031936011261034e5780519082600254611bd58161225b565b80855291600191808316908115610b0b5750600114611c005750505061053182610543940383611f3f565b9450600285527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b828610611c45575050506105318260206105439582010194610a9c565b80546020878701810191909152909501948101611c28565b50503461034e578160031936011261034e576020906013549051908152f35b50346102ef5760206003193601126102ef5735907fffffffff0000000000000000000000000000000000000000000000000000000082168092036102ef57602092507f649a51a80000000000000000000000000000000000000000000000000000000082149182159081611cf5575b5050519015158152f35b90919291611d07575b50903880611ceb565b7f80ac58cd00000000000000000000000000000000000000000000000000000000811491508115611d9e575b8115611d41575b5038611cfe565b7f2a55205a00000000000000000000000000000000000000000000000000000000811491508115611d74575b5038611d3a565b7f01ffc9a70000000000000000000000000000000000000000000000000000000091501438611d6d565b7f5b5e139f0000000000000000000000000000000000000000000000000000000081149150611d33565b84903461034e578160031936011261034e576020906011548152f35b60005b838110611df75750506000910152565b8181015183820152602001611de7565b90601f19601f602093611e2581518092818752878088019101611de4565b0116010190565b6004359073ffffffffffffffffffffffffffffffffffffffff82168203611e4f57565b600080fd5b6024359073ffffffffffffffffffffffffffffffffffffffff82168203611e4f57565b6003196060910112611e4f5773ffffffffffffffffffffffffffffffffffffffff906004358281168103611e4f57916024359081168103611e4f579060443590565b6040810190811067ffffffffffffffff821117611ed557604052565b634e487b7160e01b600052604160045260246000fd5b60c0810190811067ffffffffffffffff821117611ed557604052565b6020810190811067ffffffffffffffff821117611ed557604052565b6060810190811067ffffffffffffffff821117611ed557604052565b90601f601f19910116810190811067ffffffffffffffff821117611ed557604052565b67ffffffffffffffff8111611ed557601f01601f191660200190565b929192611f8a82611f62565b91611f986040519384611f3f565b829481845281830111611e4f578281602093846000960137010152565b9080601f83011215611e4f57816020611fd093359101611f7e565b90565b600681101561216657600660ff821611611e4f57801561212c57806001146120f257806002146120b8578060031461207e576004036120455760405161201881611eb9565b600881527f504552534f4e414c000000000000000000000000000000000000000000000000602082015290565b60405161205181611eb9565b601081527f504552534f4e414c5f4e4f5f4841544500000000000000000000000000000000602082015290565b5060405161208b81611eb9565b601281527f434f4d4d45524349414c5f4e4f5f484154450000000000000000000000000000602082015290565b506040516120c581611eb9565b600a81527f434f4d4d45524349414c00000000000000000000000000000000000000000000602082015290565b506040516120ff81611eb9565b600981527f4558434c55534956450000000000000000000000000000000000000000000000602082015290565b5060405161213981611eb9565b600681527f5055424c49430000000000000000000000000000000000000000000000000000602082015290565b634e487b7160e01b600052602160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff60085416330361219d57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b156121e857565b606460405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152fd5b600052600460205273ffffffffffffffffffffffffffffffffffffffff60406000205416611fd08115156121e1565b90600182811c9216801561228b575b602083101461227557565b634e487b7160e01b600052602260045260246000fd5b91607f169161226a565b6122ca6122c582600052600460205273ffffffffffffffffffffffffffffffffffffffff60406000205416151590565b6121e1565b600052600660205273ffffffffffffffffffffffffffffffffffffffff6040600020541690565b906122fb82611f62565b6123086040519182611f3f565b828152601f196123188294611f62565b0190602036910137565b806000917a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000080821015612464575b506d04ee2d6d415b85acef810000000080831015612455575b50662386f26fc1000080831015612446575b506305f5e10080831015612437575b5061271080831015612428575b506064821015612418575b600a8092101561240e575b6001908160216123b98287016122f1565b95860101905b6123cb575b5050505090565b600019019083907f30313233343536373839616263646566000000000000000000000000000000008282061a835304918215612409579190826123bf565b6123c4565b91600101916123a8565b919060646002910491019161239d565b60049193920491019138612392565b60089193920491019138612385565b60109193920491019138612376565b60209193920491019138612364565b60409350810491503861234b565b1561247957565b608460405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152fd5b9073ffffffffffffffffffffffffffffffffffffffff80806125048461222c565b16931691838314938415612537575b508315612521575b50505090565b61252d91929350612295565b161438808061251b565b909350600052600760205260406000208260005260205260ff604060002054169238612513565b1561256557565b608460405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152fd5b90612604916125dd8461222c565b9173ffffffffffffffffffffffffffffffffffffffff93849384809416948591161461255e565b169182156126b257816126219161261a8661222c565b161461255e565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60008481526006602052604081207fffffffffffffffffffffffff00000000000000000000000000000000000000009081815416905583825260056020526040822060001981540190558482526040822060018154019055858252600460205284604083209182541617905580a4565b608460405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152fd5b9190820391821161272857565b634e487b7160e01b600052601160045260246000fd5b9190820180921161272857565b3d15612776573d9061275c82611f62565b9161276a6040519384611f3f565b82523d6000602084013e565b606090565b91926000929190813b15612912576020916127f891856040519586809581947f150b7a02000000000000000000000000000000000000000000000000000000009b8c845233600485015273ffffffffffffffffffffffffffffffffffffffff80951660248501526044840152608060648401526084830190611e07565b0393165af1908290826128b2575b505061288c5761281461274b565b805190816128875760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608490fd5b602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b909192506020813d821161290a575b816128ce60209383611f3f565b8101031261034e5751907fffffffff000000000000000000000000000000000000000000000000000000008216820361055a5750903880612806565b3d91506128c1565b5050505050600190565b1561292357565b606460405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206973206e6f7420746865206d616e61676572000000000000006044820152fd5b1561296e57565b606460405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152fd5b600581101561216657806129c35750565b60018103612a0f57606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b60028103612a5b57606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b600314612a6457565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b906041815114600014612afc57612af8916020820151906060604084015193015160001a90612b06565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311612b965791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa15612b8957815173ffffffffffffffffffffffffffffffffffffffff811615612b83579190565b50600190565b50604051903d90823e3d90fd5b50505050600090600390565b60405190612baf82611eb9565b600682527f4e6f726d616c00000000000000000000000000000000000000000000000000006020830152565b612c0881600052600460205273ffffffffffffffffffffffffffffffffffffffff60406000205416151590565b15611e4f5780600052600f602052604060002054600c54612c288161225b565b613f215750604051612c3981611f07565b60009052604051612c4981611f07565b600090527f00000000000000000000000000000000000000000000000000000000000000008110908115613e3a57612c8081612322565b612cfa603460405180937f5b4348524f4d4945205351554947474c452023000000000000000000000000006020830152612cc4815180926020603386019101611de4565b81017f5d000000000000000000000000000000000000000000000000000000000000006033820152036014810184520182611f3f565b926040517f271aaab400000000000000000000000000000000000000000000000000000000815282600482015260008160248173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000165afa908115613a0957600091613da7575b50805115613d91576020015191612dfd6031612d99612d93866141e0565b93612322565b926040519381612db3869351809260208087019101611de4565b82017f273b206c657420746f6b656e4964203d200000000000000000000000000000006020820152612dee8251809360208785019101611de4565b01036011810184520182611f3f565b91925b602360ff85161060208560161a10948580613d88575b8615613b505750604051612e2981611eb9565b600581527f46757a7a79000000000000000000000000000000000000000000000000000000602082015290604051612e6081611eb9565b600581527f46555a5a590000000000000000000000000000000000000000000000000000006020820152965b81601a1a937f1fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff851685036127285760ff8560031b04600c01600c116127285715613b3a57506032955b81601c1a60038110600014613b1757506001965b612ef1612ba2565b60018903613a155750604051612f0681611eb9565b600c81527f48797065725261696e626f7700000000000000000000000000000000000000006020820152915b604051907f3129e7730000000000000000000000000000000000000000000000000000000082526001600483015260008260248173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000165afa918215613a0957600092613979575b5090613069606d61306e936040519384917f3c68746d6c3e3c686561643e3c6d65746120636861727365743d277574662d3860208401527f272f3e3c7363726970743e6c657420746f6b656e48617368203d202700000000604084015261301f815180926020605c87019101611de4565b82017f3b3c2f7363726970743e3c2f686561643e000000000000000000000000000000605c82015261305a8251809360208785019101611de4565b0103604d810184520182611f3f565b614064565b9760405161307b81611f07565b6000815297600d549061308d8261225b565b613812575b505061309d846141e0565b96156137d7576040516130af81611eb9565b600881527f4f726967696e616c00000000000000000000000000000000000000000000000060208201525b608085601e1a1060001461379b576040516130f481611eb9565b600781527f52657665727365000000000000000000000000000000000000000000000000006020820152915b60018103613789575061ffff60405161313881611eb9565b600381527f302e3500000000000000000000000000000000000000000000000000000000006020820152935b1661316e90612322565b94601d1a61317b90612322565b9660031b60ff9004600c0161318f90612322565b976040519c8d809d602082017f646174613a6170706c69636174696f6e2f6a736f6e3b636861727365743d75749052604082017f662d382c7b226e616d65223a220000000000000000000000000000000000000090528051604d81930191602001916131fa92611de4565b8d01604d81017f204f44442000000000000000000000000000000000000000000000000000000090528151918260528301916020019161323992611de4565b01605281017f222c2022746f6b656e5f68617368223a2022000000000000000000000000000090528151918260648301916020019161327792611de4565b01606481017f222c20226465736372697074696f6e223a20224f4444532062792054726962759052608481017f7465204272616e642058204368726f6d6965205371756967676c652058205761905260a481017f737465205961726e2050726f6a656374222c202265787465726e616c5f6c696e905260c481017f6b223a2268747470733a2f2f747269627574652d6272616e642e636f6d2f222c905260e481017f202261747472696275746573223a205b7b2274726169745f74797065223a2022905261010481017f4f44442054797065222c202276616c7565223a2022000000000000000000000090528151906101199282848301916020019161337c92611de4565b019081017f227d2c207b2274726169745f74797065223a2022436f6c6f7220446972656374905261013981017f696f6e222c202276616c7565223a2022000000000000000000000000000000009052815190610149928284830191602001916133e492611de4565b019081017f227d2c207b2274726169745f74797065223a2022436f6c6f7220537072656164905261016981017f222c202276616c7565223a20220000000000000000000000000000000000000090528151906101769282848301916020019161344c92611de4565b019081017f227d2c207b2274726169745f74797065223a2022537065637472756d222c2022905261019681017f76616c7565223a20220000000000000000000000000000000000000000000000905281519061019f928284830191602001916134b492611de4565b019081017f227d2c207b2274726169745f74797065223a202253746570732042657477656590526101bf81017f6e222c202276616c7565223a202200000000000000000000000000000000000090528151906101cd9282848301916020019161351c92611de4565b019081017f227d2c207b2274726169745f74797065223a202254797065222c202276616c7590526101ed81017f65223a202200000000000000000000000000000000000000000000000000000090528151906101f29282848301916020019161358492611de4565b019081017f227d2c207b2274726169745f74797065223a2022537461727420436f6c6f7222905261021281017f2c2022646973706c61795f74797065223a20224c6576656c222c20226d61785f905261023281017f76616c7565223a203235352c202276616c7565223a200000000000000000000090528151906102489282848301916020019161361492611de4565b019081017f7d2c207b2274726169745f74797065223a20225365676d656e7473222c202264905261026881017f6973706c61795f74797065223a20224c6576656c222c20226d61785f76616c75905261028881017f65223a2032302c202276616c7565223a200000000000000000000000000000009052815190610299928284830191602001916136a492611de4565b019081017f7d5d2c0000000000000000000000000000000000000000000000000000000000905281519061029c928284830191602001916136e492611de4565b019081017f22616e696d6174696f6e5f75726c223a2022646174613a746578742f68746d6c90526102bc81017f3b636861727365743d7574662d383b6261736536342c0000000000000000000090528151906102d29282848301916020019161374c92611de4565b019081017f227d0000000000000000000000000000000000000000000000000000000000009052036102b4810182526102d401611fd09082611f3f565b61379561ffff91612322565b93613164565b6040516137a781611eb9565b600781527f466f727761726400000000000000000000000000000000000000000000000000602082015291613120565b6040516137e381611eb9565b600981527f47656e657261746564000000000000000000000000000000000000000000000060208201526130da565b61381e91929950612322565b60405180927f22696d616765223a20220000000000000000000000000000000000000000000060208301526000906138558161225b565b906001811690811561393857506001146138dd575b5090602082613884856006956138d5975194859201611de4565b017f2e706e67222c00000000000000000000000000000000000000000000000000008152037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe6810184520182611f3f565b963880613092565b9050600d6000527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb56000905b82821061391e5750508101602a01602061386a565b8054602a8388010152859350602090910190600101613909565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016602a80860191909152821515909202840190910191506020905061386a565b91503d806000843e61398b8184611f3f565b6020838281010312611e4f5782519267ffffffffffffffff8411611e4f57818101601f858301011215611e4f5783810151916139c683611f62565b906139d46040519283611f3f565b8382528201602084878501010111611e4f57613a0161306993606d93602061306e98818601920101611de4565b935050612fae565b6040513d6000823e3d90fd5b61ffff821660c8148080613b0d575b80613afa575b15613a6d575050604051613a3d81611eb9565b601081527f5065726665637420537065637472756d00000000000000000000000000000000602082015291612f32565b90929080613ab9575b15612f32579150604051613a8981611eb9565b600d81527f46756c6c20537065637472756d00000000000000000000000000000000000000602082015291612f32565b50600e891480613ae7575b80613a765750600f89148015613a765750601360ff8760031b04600c0114613a76565b50601260ff8760031b04600c0114613ac4565b50600e60ff8860031b04600c0114613a2a565b50600b8a14613a24565b80602d0290602d8204036127285760ff9004600501806005116127285796612ee9565b15613b49576103e85b95612ed5565b60c8613b43565b15613bc857604051613b6181611eb9565b600481527f5069706500000000000000000000000000000000000000000000000000000000602082015290604051613b9881611eb9565b600481527f5049504500000000000000000000000000000000000000000000000000000000602082015296612e8c565b8115613c4157604051613bda81611eb9565b600681527f536c696e6b790000000000000000000000000000000000000000000000000000602082015290604051613c1181611eb9565b600681527f534c494e4b590000000000000000000000000000000000000000000000000000602082015296612e8c565b600f8160171a10600014613cc257604051613c5b81611eb9565b600481527f426f6c6400000000000000000000000000000000000000000000000000000000602082015290604051613c9281611eb9565b600481527f424f4c4400000000000000000000000000000000000000000000000000000000602082015296612e8c565b601e8160181a10600014613d4357604051613cdc81611eb9565b600681527f5269626265640000000000000000000000000000000000000000000000000000602082015290604051613d1381611eb9565b600681527f5249424245440000000000000000000000000000000000000000000000000000602082015296612e8c565b613d4b612ba2565b90604051613d5881611eb9565b600681527f4e4f524d414c0000000000000000000000000000000000000000000000000000602082015296612e8c565b82159650612e16565b634e487b7160e01b600052603260045260246000fd5b90503d806000833e613db98183611f3f565b8101602082820312611e4f57815167ffffffffffffffff92838211611e4f570181601f82011215611e4f578051928311611ed5578260051b9060405193613e036020840186611f3f565b8452602080850192820101928311611e4f57602001905b828210613e2a5750505038612d75565b8151815260209182019101613e1a565b90613e4483612322565b613ebe602360405180937f5b230000000000000000000000000000000000000000000000000000000000006020830152613e88815180926020602286019101611de4565b81017f5d000000000000000000000000000000000000000000000000000000000000006022820152036003810184520182611f3f565b92613ec8836141e0565b613f1b603360405183613ee5829551809260208086019101611de4565b81017f273b206c657420746f6b656e4964203d202d31000000000000000000000000006020820152036013810184520182611f3f565b91612e00565b91613f2c9150612322565b6040518092600090613f3d8161225b565b906001908181169081156140215750600114613fc0575b505090602082613f6f85600595611fd0975194859201611de4565b017f2e6a736f6e0000000000000000000000000000000000000000000000000000008152037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5810184520182611f3f565b600c60009081529192507fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c75b838310614006575050508101602090810190611fd0613f54565b80546020848901810191909152879550909201918101613fec565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016602080870191909152831515909302850183019350611fd09150613f549050565b8051156141cc5760405161407781611f23565b604081527f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f604082015281516002928382018092116127285760038092047f3fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8116810361272857614111908594951b6122f1565b936020850193829183518401925b83811061417b575050505051068060011461414a5760021461413f575090565b600019603d91015390565b507ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe81603d60001981940153015390565b85600491979293949701918251600190603f9082828260121c16880101518453828282600c1c16880101518385015382828260061c168801015188850153168501015187820153019592919061411f565b506040516141d981611f07565b6000815290565b604051906080820182811067ffffffffffffffff821117611ed557604052604282526020908183016060368237835115613d9157603090538251600190811015613d9157607860218501536041905b808211614283575050614240575090565b6064906040519062461bcd60e51b825280600483015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b9091600f811660108110156142ed5785518410156142ed577f3031323334353637383961626364656600000000000000000000000000000000901a84848701015360041c9180156142d857600019019061422f565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b6daaeb6d7670e522a718067333cd4e90813b61431c575050565b602073ffffffffffffffffffffffffffffffffffffffff916044604051809481937fc617113400000000000000000000000000000000000000000000000000000000835230600484015216958660248301525afa908115613a09576000916143b9575b50156143885750565b602490604051907fede71dcc0000000000000000000000000000000000000000000000000000000082526004820152fd5b6020813d82116143eb575b816143d160209383611f3f565b8101031261034e575190811515820361055a57503861437f565b3d91506143c456fea26469706673582212209814ecf209b92d257e0b823c37498dc7ecabadae9c6d57f3b29160ff0c7905e464736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000f3860788d1597cecf938424baabe976fac87dc26000000000000000000000000059edd72cd353df5106d2b9cc5ab83a52287ac3a000000000000000000000000c46c806f3343048328274716468178796381209600000000000000000000000000000000000000000000000000000000000000044f4444530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044f44445300000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604081815260048036101561001557600080fd5b600092833560e01c9081627cedf414611dc85750806301ffc9a714611c7c5780630359ae6d14611c5d57806306fdde0314611bb3578063081812fc14611b7e578063095ea7b3146119c657806310750727146119a757806318160ddd146119835780631854dc7a14611948578063189ae5f21461191a5780631a7ef85d146118af57806323b872dd1461185b5780632a55205a146117905780632d2db3201461175357806331a6a069146117345780633aee49481461123a57806341f434341461121157806342842e0e146111ae578063487c70fc1461118f57806351cff8d9146110f957806359731218146110b25780636352211e146110755780636bd21d6314610d1f57806370a0823114610c68578063715018a614610be8578063736bf59114610bc957806388f38ef614610b865780638da5cb5b14610b5157806395d89b4114610a60578063a22cb4651461095c578063a341793b14610935578063ab9bc3fd1461090c578063ad13419d14610882578063b88d4fde14610755578063bca33f4314610720578063c7db289314610631578063c87b56dd146105fd578063dfa571f714610584578063e1a283d61461055d578063e8a3d48514610352578063e985e9c5146102f35763f2fde38b146101f057600080fd5b346102ef5760206003193601126102ef57610209611e2c565b9061021261217c565b73ffffffffffffffffffffffffffffffffffffffff809216928315610286575050600854827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600855167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b50503461034e578060031936011261034e5760ff81602093610313611e2c565b61031b611e54565b73ffffffffffffffffffffffffffffffffffffffff91821683526007875283832091168252855220549151911615158152f35b5080fd5b50913461055a578060031936011261055a5781519061012082019082821067ffffffffffffffff831117610547576105436105218561053160448787845260e98152602081017f7b226e616d65223a20224f444453222c226465736372697074696f6e223a202281527f4f4444532062792054726962757465204272616e642058204368726f6d696520858301527f5371756967676c652058205761737465205961726e2050726f6a656374222c2260608301527f73656c6c65725f6665655f62617369735f706f696e7473223a203735302c226660808301527f65655f726563697069656e74223a20223078443243333238366530353043383560a08301527f3639363935663263376432374531643737306162343264366330222c2265787460c08301527f65726e616c5f6c696e6b223a202268747470733a2f2f747269627574652d627260e08301527f616e642e636f6d227d000000000000000000000000000000000000000000000061010083015284519586927f646174613a6170706c69636174696f6e2f6a736f6e3b636861727365743d757460208501527f662d382c000000000000000000000000000000000000000000000000000000008785015251809285850190611de4565b8101036024810185520183611f3f565b51918291602083526020830190611e07565b0390f35b80604186634e487b7160e01b6024945252fd5b80fd5b50503461034e578160031936011261034e5760209060ff60085460a81c1690519015158152f35b50503461034e5760031936011261055a5761059d611e2c565b6105a5611e54565b6105ad61217c565b73ffffffffffffffffffffffffffffffffffffffff90817fffffffffffffffffffffffff0000000000000000000000000000000000000000931683600a541617600a551690600b541617600b5580f35b50913461055a57602060031936011261055a575061061e6105439235612bdb565b9051918291602083526020830190611e07565b5091903461034e578160031936011261034e57805161064f81611f23565b60318152602092838201907f61723a2f2f7a6d63315754737049684679565938326277664149634945784c4682527f48356c55634848554e307758673457382f0000000000000000000000000000008484015260ff60085460a01c1690600682101561070d576106de86610543876106fe8389896106cc8a612322565b90855198899351809286860190611de4565b82016106f282518093868085019101611de4565b01038087520185611f3f565b51928284938452830190611e07565b80602188634e487b7160e01b6024945252fd5b50503461034e578160031936011261034e5760209073ffffffffffffffffffffffffffffffffffffffff600954169051908152f35b5090346102ef5760806003193601126102ef57610770611e2c565b610778611e54565b906044356064359267ffffffffffffffff841161087e573660238501121561087e576107b06107f19436906024818a01359101611f7e565b923373ffffffffffffffffffffffffffffffffffffffff821603610870575b6107e16107dc84336124e3565b612472565b6107ec8383836125cf565b61277b565b156107fa578280f35b61086c92505191829162461bcd60e51b8352820160809060208152603260208201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e746572000000000000000000000000000060608201520190565b0390fd5b61087933614302565b6107cf565b8680fd5b83823461034e57602060031936011261034e573580151580910361034e576108c373ffffffffffffffffffffffffffffffffffffffff600a5416331461291c565b7fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff75ff0000000000000000000000000000000000000000006008549260a81b1691161760085580f35b50346102ef5760206003193601126102ef57602092829135815260108452205415159051908152f35b50503461034e578160031936011261034e576105439061061e60ff60085460a01c16611fd3565b5090346102ef57806003193601126102ef57610976611e2c565b9060243591821515809303610a5c57806109a473ffffffffffffffffffffffffffffffffffffffff92614302565b1692833314610a1a575033845260076020528084208385526020528084207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020606492519162461bcd60e51b8352820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b8480fd5b50503461034e578160031936011261034e5780519082600354610a828161225b565b80855291600191808316908115610b0b5750600114610aae575b50505061053182610543940383611f3f565b9450600385527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b828610610af3575050506105318260206105439582010194610a9c565b80546020878701810191909152909501948101610ad6565b6105439750869350602092506105319491507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682840152151560051b82010194610a9c565b50503461034e578160031936011261034e5760209073ffffffffffffffffffffffffffffffffffffffff600854169051908152f35b50503461034e578160031936011261034e57602090610bc2610bb9610bb06014546012549061271b565b6013549061271b565b6011549061271b565b9051908152f35b50503461034e578160031936011261034e576020906012549051908152f35b833461055a578060031936011261055a57610c0161217c565b8073ffffffffffffffffffffffffffffffffffffffff6008547fffffffffffffffffffffffff00000000000000000000000000000000000000008116600855167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5082903461034e57602060031936011261034e5773ffffffffffffffffffffffffffffffffffffffff610c99611e2c565b16908115610cb65760208480858581526005845220549051908152f35b608490602085519162461bcd60e51b8352820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152fd5b50346102ef57816003193601126102ef5767ffffffffffffffff908035828111610a5c57610d509036908301611fb5565b9060243583811161107157610d689036908301611fb5565b90610d7161217c565b60ff600e541661107157825184811161105e5780610d90600c5461225b565b94601f95868111610ff2575b50602090868311600114610f71578992610f66575b50506000198260011b9260031b1c191617600c555b8151938411610f535750610ddb600d5461225b565b828111610ef3575b506020918311600114610e4e577f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c939291859183610e43575b50506000198260011b9260031b1c191617600d555b8051600181526000196020820152a180f35b015190503880610e1c565b600d85527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb59190601f198416865b818110610edb57509160019391857f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c97969410610ec2575b505050811b01600d55610e31565b015160001960f88460031b161c19169055388080610eb4565b92936020600181928786015181550195019301610e7c565b600d86527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb58380860160051c82019260208710610f4a575b0160051c01905b818110610f3f5750610de3565b868155600101610f32565b92508192610f2b565b856041602492634e487b7160e01b835252fd5b015190503880610db1565b600c8a527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c792601f19168a5b818110610fda5750908460019594939210610fc1575b505050811b01600c55610dc6565b015160001960f88460031b161c19169055388080610fb3565b92936020600181928786015181550195019301610f9d565b909150600c89527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c78680850160051c82019260208610611055575b9085949392910160051c01905b8181106110475750610d9c565b8a815584935060010161103a565b9250819261102d565b602487604184634e487b7160e01b835252fd5b8580fd5b50913461055a57602060031936011261055a575073ffffffffffffffffffffffffffffffffffffffff6110aa6020933561222c565b915191168152f35b833461055a578060031936011261055a576110cb61217c565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00600e541617600e5580f35b5090346102ef5760206003193601126102ef5782808080611118611e2c565b61112061217c565b73ffffffffffffffffffffffffffffffffffffffff4791165af161114261274b565b501561114c578280f35b906020606492519162461bcd60e51b8352820152601460248201527f576974686472617720756e73756363657366756c0000000000000000000000006044820152fd5b50503461034e578160031936011261034e576020906015549051908152f35b5090346102ef576107f16111c136611e77565b903373ffffffffffffffffffffffffffffffffffffffff841614159283611203575b8551936111ef85611f07565b888552610870576107e16107dc84336124e3565b61120c33614302565b6111e3565b50503461034e578160031936011261034e57602090516daaeb6d7670e522a718067333cd4e8152f35b5060a06003193601126102ef5761124f611e2c565b9160249182359360ff85168095036110715760443594606435916084359167ffffffffffffffff808411611730573660238501121561173057838601359080821161172c573689838701011161172c5785421161170457875195602096878101917fb270ade43fa3bf1be6c80300a7cf6b13f49ded43f96e897eb63ce8224898d1eb8352858b8301528c606083015260808201523460a082015260a081526112f681611eeb565b5190208851878101907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82527fdb25943d0667e8a4c3577a378f6b01870c6ea810e0960f9f212b62448d4eb91e8b8201527fdb25943d0667e8a4c3577a378f6b01870c6ea810e0960f9f212b62448d4eb91e60608201524660808201523060a082015260a0815261138681611eeb565b51902091895191888301937f1901000000000000000000000000000000000000000000000000000000000000855260228401526042830152604282526080820190828210908211176116f2578a939261141992611411928c5251902061140b73ffffffffffffffffffffffffffffffffffffffff98899586600b541697369201611f7e565b90612ace565b9190916129b2565b16036116ca5760ff60085460a81c1680156116b1575b611689578789526010845285892054611661576012546001018060011161164f5760135461145c9161273e565b97888a52600f855280878b205589526010845287868a2055601254906114846013548361273e565b6114936014546011549061271b565b11156116275760020361160a57506013546016548110156115e257600181018091116115d0576013555b1693841561159357506114fc6114f686600052600460205273ffffffffffffffffffffffffffffffffffffffff60406000205416151590565b15612967565b61152c6114f686600052600460205273ffffffffffffffffffffffffffffffffffffffff60406000205416151590565b8386526005815282862060018154019055848652528320817fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a480f35b81606494519362461bcd60e51b85528401528201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b8689601187634e487b7160e01b835252fd5b8486517f1f755083000000000000000000000000000000000000000000000000000000008152fd5b6015548110156115e257600181018091116115d0576012556114bd565b8587517f1f755083000000000000000000000000000000000000000000000000000000008152fd5b878a601188634e487b7160e01b835252fd5b8486517ffae12290000000000000000000000000000000000000000000000000000000008152fd5b8486517feb560756000000000000000000000000000000000000000000000000000000008152fd5b508260095416331415801561142f57506012541561142f565b8486517f5cd5d233000000000000000000000000000000000000000000000000000000008152fd5b8a8d60418b634e487b7160e01b835252fd5b8688517f0819bdcd000000000000000000000000000000000000000000000000000000008152fd5b8a80fd5b8980fd5b50503461034e578160031936011261034e576020906016549051908152f35b83823461034e57602060031936011261034e5761178973ffffffffffffffffffffffffffffffffffffffff600a5416331461291c565b3560115580f35b50913461055a578160031936011261055a5760243590833581526001602052828120908351916117bf83611eb9565b549073ffffffffffffffffffffffffffffffffffffffff928383169283825260a01c60208201529115611839575b6bffffffffffffffffffffffff602083015116938481029481860414901517156118265750518351911681526127109091046020820152f35b80601187634e487b7160e01b6024945252fd5b9050835161184681611eb9565b8154838116825260a01c6020820152906117ed565b833461055a5761189e61186d36611e77565b913373ffffffffffffffffffffffffffffffffffffffff8216036118a1575b6118996107dc84336124e3565b6125cf565b80f35b6118aa33614302565b61188c565b833461055a57602060031936011261055a576118c9611e2c565b6118d161217c565b60125461034e5773ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff0000000000000000000000000000000000000000600954161760095580f35b83823461034e57606060031936011261034e5761193561217c565b3560145560243560155560443560165580f35b50503461034e578160031936011261034e57602090517fb270ade43fa3bf1be6c80300a7cf6b13f49ded43f96e897eb63ce8224898d1eb8152f35b50503461034e578160031936011261034e57602090610bc26014546011549061271b565b50503461034e578160031936011261034e576020906014549051908152f35b50346102ef57816003193601126102ef576119df611e2c565b90602435926119ed83614302565b73ffffffffffffffffffffffffffffffffffffffff918280611a0e8761222c565b16941693808514611b1557803314908115611af6575b5015611a8e575083855260066020528420827fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055611a668361222c565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b6020608492519162461bcd60e51b8352820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152fd5b90508652600760205281862033875260205260ff828720541638611a24565b506020608492519162461bcd60e51b8352820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152fd5b50913461055a57602060031936011261055a575073ffffffffffffffffffffffffffffffffffffffff6110aa60209335612295565b50503461034e578160031936011261034e5780519082600254611bd58161225b565b80855291600191808316908115610b0b5750600114611c005750505061053182610543940383611f3f565b9450600285527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b828610611c45575050506105318260206105439582010194610a9c565b80546020878701810191909152909501948101611c28565b50503461034e578160031936011261034e576020906013549051908152f35b50346102ef5760206003193601126102ef5735907fffffffff0000000000000000000000000000000000000000000000000000000082168092036102ef57602092507f649a51a80000000000000000000000000000000000000000000000000000000082149182159081611cf5575b5050519015158152f35b90919291611d07575b50903880611ceb565b7f80ac58cd00000000000000000000000000000000000000000000000000000000811491508115611d9e575b8115611d41575b5038611cfe565b7f2a55205a00000000000000000000000000000000000000000000000000000000811491508115611d74575b5038611d3a565b7f01ffc9a70000000000000000000000000000000000000000000000000000000091501438611d6d565b7f5b5e139f0000000000000000000000000000000000000000000000000000000081149150611d33565b84903461034e578160031936011261034e576020906011548152f35b60005b838110611df75750506000910152565b8181015183820152602001611de7565b90601f19601f602093611e2581518092818752878088019101611de4565b0116010190565b6004359073ffffffffffffffffffffffffffffffffffffffff82168203611e4f57565b600080fd5b6024359073ffffffffffffffffffffffffffffffffffffffff82168203611e4f57565b6003196060910112611e4f5773ffffffffffffffffffffffffffffffffffffffff906004358281168103611e4f57916024359081168103611e4f579060443590565b6040810190811067ffffffffffffffff821117611ed557604052565b634e487b7160e01b600052604160045260246000fd5b60c0810190811067ffffffffffffffff821117611ed557604052565b6020810190811067ffffffffffffffff821117611ed557604052565b6060810190811067ffffffffffffffff821117611ed557604052565b90601f601f19910116810190811067ffffffffffffffff821117611ed557604052565b67ffffffffffffffff8111611ed557601f01601f191660200190565b929192611f8a82611f62565b91611f986040519384611f3f565b829481845281830111611e4f578281602093846000960137010152565b9080601f83011215611e4f57816020611fd093359101611f7e565b90565b600681101561216657600660ff821611611e4f57801561212c57806001146120f257806002146120b8578060031461207e576004036120455760405161201881611eb9565b600881527f504552534f4e414c000000000000000000000000000000000000000000000000602082015290565b60405161205181611eb9565b601081527f504552534f4e414c5f4e4f5f4841544500000000000000000000000000000000602082015290565b5060405161208b81611eb9565b601281527f434f4d4d45524349414c5f4e4f5f484154450000000000000000000000000000602082015290565b506040516120c581611eb9565b600a81527f434f4d4d45524349414c00000000000000000000000000000000000000000000602082015290565b506040516120ff81611eb9565b600981527f4558434c55534956450000000000000000000000000000000000000000000000602082015290565b5060405161213981611eb9565b600681527f5055424c49430000000000000000000000000000000000000000000000000000602082015290565b634e487b7160e01b600052602160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff60085416330361219d57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b156121e857565b606460405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152fd5b600052600460205273ffffffffffffffffffffffffffffffffffffffff60406000205416611fd08115156121e1565b90600182811c9216801561228b575b602083101461227557565b634e487b7160e01b600052602260045260246000fd5b91607f169161226a565b6122ca6122c582600052600460205273ffffffffffffffffffffffffffffffffffffffff60406000205416151590565b6121e1565b600052600660205273ffffffffffffffffffffffffffffffffffffffff6040600020541690565b906122fb82611f62565b6123086040519182611f3f565b828152601f196123188294611f62565b0190602036910137565b806000917a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000080821015612464575b506d04ee2d6d415b85acef810000000080831015612455575b50662386f26fc1000080831015612446575b506305f5e10080831015612437575b5061271080831015612428575b506064821015612418575b600a8092101561240e575b6001908160216123b98287016122f1565b95860101905b6123cb575b5050505090565b600019019083907f30313233343536373839616263646566000000000000000000000000000000008282061a835304918215612409579190826123bf565b6123c4565b91600101916123a8565b919060646002910491019161239d565b60049193920491019138612392565b60089193920491019138612385565b60109193920491019138612376565b60209193920491019138612364565b60409350810491503861234b565b1561247957565b608460405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152fd5b9073ffffffffffffffffffffffffffffffffffffffff80806125048461222c565b16931691838314938415612537575b508315612521575b50505090565b61252d91929350612295565b161438808061251b565b909350600052600760205260406000208260005260205260ff604060002054169238612513565b1561256557565b608460405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152fd5b90612604916125dd8461222c565b9173ffffffffffffffffffffffffffffffffffffffff93849384809416948591161461255e565b169182156126b257816126219161261a8661222c565b161461255e565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60008481526006602052604081207fffffffffffffffffffffffff00000000000000000000000000000000000000009081815416905583825260056020526040822060001981540190558482526040822060018154019055858252600460205284604083209182541617905580a4565b608460405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152fd5b9190820391821161272857565b634e487b7160e01b600052601160045260246000fd5b9190820180921161272857565b3d15612776573d9061275c82611f62565b9161276a6040519384611f3f565b82523d6000602084013e565b606090565b91926000929190813b15612912576020916127f891856040519586809581947f150b7a02000000000000000000000000000000000000000000000000000000009b8c845233600485015273ffffffffffffffffffffffffffffffffffffffff80951660248501526044840152608060648401526084830190611e07565b0393165af1908290826128b2575b505061288c5761281461274b565b805190816128875760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608490fd5b602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b909192506020813d821161290a575b816128ce60209383611f3f565b8101031261034e5751907fffffffff000000000000000000000000000000000000000000000000000000008216820361055a5750903880612806565b3d91506128c1565b5050505050600190565b1561292357565b606460405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206973206e6f7420746865206d616e61676572000000000000006044820152fd5b1561296e57565b606460405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152fd5b600581101561216657806129c35750565b60018103612a0f57606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b60028103612a5b57606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b600314612a6457565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b906041815114600014612afc57612af8916020820151906060604084015193015160001a90612b06565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311612b965791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa15612b8957815173ffffffffffffffffffffffffffffffffffffffff811615612b83579190565b50600190565b50604051903d90823e3d90fd5b50505050600090600390565b60405190612baf82611eb9565b600682527f4e6f726d616c00000000000000000000000000000000000000000000000000006020830152565b612c0881600052600460205273ffffffffffffffffffffffffffffffffffffffff60406000205416151590565b15611e4f5780600052600f602052604060002054600c54612c288161225b565b613f215750604051612c3981611f07565b60009052604051612c4981611f07565b600090527f00000000000000000000000000000000000000000000000000000000000027108110908115613e3a57612c8081612322565b612cfa603460405180937f5b4348524f4d4945205351554947474c452023000000000000000000000000006020830152612cc4815180926020603386019101611de4565b81017f5d000000000000000000000000000000000000000000000000000000000000006033820152036014810184520182611f3f565b926040517f271aaab400000000000000000000000000000000000000000000000000000000815282600482015260008160248173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000059edd72cd353df5106d2b9cc5ab83a52287ac3a165afa908115613a0957600091613da7575b50805115613d91576020015191612dfd6031612d99612d93866141e0565b93612322565b926040519381612db3869351809260208087019101611de4565b82017f273b206c657420746f6b656e4964203d200000000000000000000000000000006020820152612dee8251809360208785019101611de4565b01036011810184520182611f3f565b91925b602360ff85161060208560161a10948580613d88575b8615613b505750604051612e2981611eb9565b600581527f46757a7a79000000000000000000000000000000000000000000000000000000602082015290604051612e6081611eb9565b600581527f46555a5a590000000000000000000000000000000000000000000000000000006020820152965b81601a1a937f1fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff851685036127285760ff8560031b04600c01600c116127285715613b3a57506032955b81601c1a60038110600014613b1757506001965b612ef1612ba2565b60018903613a155750604051612f0681611eb9565b600c81527f48797065725261696e626f7700000000000000000000000000000000000000006020820152915b604051907f3129e7730000000000000000000000000000000000000000000000000000000082526001600483015260008260248173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c46c806f33430483282747164681787963812096165afa918215613a0957600092613979575b5090613069606d61306e936040519384917f3c68746d6c3e3c686561643e3c6d65746120636861727365743d277574662d3860208401527f272f3e3c7363726970743e6c657420746f6b656e48617368203d202700000000604084015261301f815180926020605c87019101611de4565b82017f3b3c2f7363726970743e3c2f686561643e000000000000000000000000000000605c82015261305a8251809360208785019101611de4565b0103604d810184520182611f3f565b614064565b9760405161307b81611f07565b6000815297600d549061308d8261225b565b613812575b505061309d846141e0565b96156137d7576040516130af81611eb9565b600881527f4f726967696e616c00000000000000000000000000000000000000000000000060208201525b608085601e1a1060001461379b576040516130f481611eb9565b600781527f52657665727365000000000000000000000000000000000000000000000000006020820152915b60018103613789575061ffff60405161313881611eb9565b600381527f302e3500000000000000000000000000000000000000000000000000000000006020820152935b1661316e90612322565b94601d1a61317b90612322565b9660031b60ff9004600c0161318f90612322565b976040519c8d809d602082017f646174613a6170706c69636174696f6e2f6a736f6e3b636861727365743d75749052604082017f662d382c7b226e616d65223a220000000000000000000000000000000000000090528051604d81930191602001916131fa92611de4565b8d01604d81017f204f44442000000000000000000000000000000000000000000000000000000090528151918260528301916020019161323992611de4565b01605281017f222c2022746f6b656e5f68617368223a2022000000000000000000000000000090528151918260648301916020019161327792611de4565b01606481017f222c20226465736372697074696f6e223a20224f4444532062792054726962759052608481017f7465204272616e642058204368726f6d6965205371756967676c652058205761905260a481017f737465205961726e2050726f6a656374222c202265787465726e616c5f6c696e905260c481017f6b223a2268747470733a2f2f747269627574652d6272616e642e636f6d2f222c905260e481017f202261747472696275746573223a205b7b2274726169745f74797065223a2022905261010481017f4f44442054797065222c202276616c7565223a2022000000000000000000000090528151906101199282848301916020019161337c92611de4565b019081017f227d2c207b2274726169745f74797065223a2022436f6c6f7220446972656374905261013981017f696f6e222c202276616c7565223a2022000000000000000000000000000000009052815190610149928284830191602001916133e492611de4565b019081017f227d2c207b2274726169745f74797065223a2022436f6c6f7220537072656164905261016981017f222c202276616c7565223a20220000000000000000000000000000000000000090528151906101769282848301916020019161344c92611de4565b019081017f227d2c207b2274726169745f74797065223a2022537065637472756d222c2022905261019681017f76616c7565223a20220000000000000000000000000000000000000000000000905281519061019f928284830191602001916134b492611de4565b019081017f227d2c207b2274726169745f74797065223a202253746570732042657477656590526101bf81017f6e222c202276616c7565223a202200000000000000000000000000000000000090528151906101cd9282848301916020019161351c92611de4565b019081017f227d2c207b2274726169745f74797065223a202254797065222c202276616c7590526101ed81017f65223a202200000000000000000000000000000000000000000000000000000090528151906101f29282848301916020019161358492611de4565b019081017f227d2c207b2274726169745f74797065223a2022537461727420436f6c6f7222905261021281017f2c2022646973706c61795f74797065223a20224c6576656c222c20226d61785f905261023281017f76616c7565223a203235352c202276616c7565223a200000000000000000000090528151906102489282848301916020019161361492611de4565b019081017f7d2c207b2274726169745f74797065223a20225365676d656e7473222c202264905261026881017f6973706c61795f74797065223a20224c6576656c222c20226d61785f76616c75905261028881017f65223a2032302c202276616c7565223a200000000000000000000000000000009052815190610299928284830191602001916136a492611de4565b019081017f7d5d2c0000000000000000000000000000000000000000000000000000000000905281519061029c928284830191602001916136e492611de4565b019081017f22616e696d6174696f6e5f75726c223a2022646174613a746578742f68746d6c90526102bc81017f3b636861727365743d7574662d383b6261736536342c0000000000000000000090528151906102d29282848301916020019161374c92611de4565b019081017f227d0000000000000000000000000000000000000000000000000000000000009052036102b4810182526102d401611fd09082611f3f565b61379561ffff91612322565b93613164565b6040516137a781611eb9565b600781527f466f727761726400000000000000000000000000000000000000000000000000602082015291613120565b6040516137e381611eb9565b600981527f47656e657261746564000000000000000000000000000000000000000000000060208201526130da565b61381e91929950612322565b60405180927f22696d616765223a20220000000000000000000000000000000000000000000060208301526000906138558161225b565b906001811690811561393857506001146138dd575b5090602082613884856006956138d5975194859201611de4565b017f2e706e67222c00000000000000000000000000000000000000000000000000008152037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe6810184520182611f3f565b963880613092565b9050600d6000527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb56000905b82821061391e5750508101602a01602061386a565b8054602a8388010152859350602090910190600101613909565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016602a80860191909152821515909202840190910191506020905061386a565b91503d806000843e61398b8184611f3f565b6020838281010312611e4f5782519267ffffffffffffffff8411611e4f57818101601f858301011215611e4f5783810151916139c683611f62565b906139d46040519283611f3f565b8382528201602084878501010111611e4f57613a0161306993606d93602061306e98818601920101611de4565b935050612fae565b6040513d6000823e3d90fd5b61ffff821660c8148080613b0d575b80613afa575b15613a6d575050604051613a3d81611eb9565b601081527f5065726665637420537065637472756d00000000000000000000000000000000602082015291612f32565b90929080613ab9575b15612f32579150604051613a8981611eb9565b600d81527f46756c6c20537065637472756d00000000000000000000000000000000000000602082015291612f32565b50600e891480613ae7575b80613a765750600f89148015613a765750601360ff8760031b04600c0114613a76565b50601260ff8760031b04600c0114613ac4565b50600e60ff8860031b04600c0114613a2a565b50600b8a14613a24565b80602d0290602d8204036127285760ff9004600501806005116127285796612ee9565b15613b49576103e85b95612ed5565b60c8613b43565b15613bc857604051613b6181611eb9565b600481527f5069706500000000000000000000000000000000000000000000000000000000602082015290604051613b9881611eb9565b600481527f5049504500000000000000000000000000000000000000000000000000000000602082015296612e8c565b8115613c4157604051613bda81611eb9565b600681527f536c696e6b790000000000000000000000000000000000000000000000000000602082015290604051613c1181611eb9565b600681527f534c494e4b590000000000000000000000000000000000000000000000000000602082015296612e8c565b600f8160171a10600014613cc257604051613c5b81611eb9565b600481527f426f6c6400000000000000000000000000000000000000000000000000000000602082015290604051613c9281611eb9565b600481527f424f4c4400000000000000000000000000000000000000000000000000000000602082015296612e8c565b601e8160181a10600014613d4357604051613cdc81611eb9565b600681527f5269626265640000000000000000000000000000000000000000000000000000602082015290604051613d1381611eb9565b600681527f5249424245440000000000000000000000000000000000000000000000000000602082015296612e8c565b613d4b612ba2565b90604051613d5881611eb9565b600681527f4e4f524d414c0000000000000000000000000000000000000000000000000000602082015296612e8c565b82159650612e16565b634e487b7160e01b600052603260045260246000fd5b90503d806000833e613db98183611f3f565b8101602082820312611e4f57815167ffffffffffffffff92838211611e4f570181601f82011215611e4f578051928311611ed5578260051b9060405193613e036020840186611f3f565b8452602080850192820101928311611e4f57602001905b828210613e2a5750505038612d75565b8151815260209182019101613e1a565b90613e4483612322565b613ebe602360405180937f5b230000000000000000000000000000000000000000000000000000000000006020830152613e88815180926020602286019101611de4565b81017f5d000000000000000000000000000000000000000000000000000000000000006022820152036003810184520182611f3f565b92613ec8836141e0565b613f1b603360405183613ee5829551809260208086019101611de4565b81017f273b206c657420746f6b656e4964203d202d31000000000000000000000000006020820152036013810184520182611f3f565b91612e00565b91613f2c9150612322565b6040518092600090613f3d8161225b565b906001908181169081156140215750600114613fc0575b505090602082613f6f85600595611fd0975194859201611de4565b017f2e6a736f6e0000000000000000000000000000000000000000000000000000008152037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5810184520182611f3f565b600c60009081529192507fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c75b838310614006575050508101602090810190611fd0613f54565b80546020848901810191909152879550909201918101613fec565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016602080870191909152831515909302850183019350611fd09150613f549050565b8051156141cc5760405161407781611f23565b604081527f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f604082015281516002928382018092116127285760038092047f3fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8116810361272857614111908594951b6122f1565b936020850193829183518401925b83811061417b575050505051068060011461414a5760021461413f575090565b600019603d91015390565b507ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe81603d60001981940153015390565b85600491979293949701918251600190603f9082828260121c16880101518453828282600c1c16880101518385015382828260061c168801015188850153168501015187820153019592919061411f565b506040516141d981611f07565b6000815290565b604051906080820182811067ffffffffffffffff821117611ed557604052604282526020908183016060368237835115613d9157603090538251600190811015613d9157607860218501536041905b808211614283575050614240575090565b6064906040519062461bcd60e51b825280600483015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b9091600f811660108110156142ed5785518410156142ed577f3031323334353637383961626364656600000000000000000000000000000000901a84848701015360041c9180156142d857600019019061422f565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b6daaeb6d7670e522a718067333cd4e90813b61431c575050565b602073ffffffffffffffffffffffffffffffffffffffff916044604051809481937fc617113400000000000000000000000000000000000000000000000000000000835230600484015216958660248301525afa908115613a09576000916143b9575b50156143885750565b602490604051907fede71dcc0000000000000000000000000000000000000000000000000000000082526004820152fd5b6020813d82116143eb575b816143d160209383611f3f565b8101031261034e575190811515820361055a57503861437f565b3d91506143c456fea26469706673582212209814ecf209b92d257e0b823c37498dc7ecabadae9c6d57f3b29160ff0c7905e464736f6c63430008130033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000f3860788d1597cecf938424baabe976fac87dc26000000000000000000000000059edd72cd353df5106d2b9cc5ab83a52287ac3a000000000000000000000000c46c806f3343048328274716468178796381209600000000000000000000000000000000000000000000000000000000000000044f4444530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044f44445300000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): ODDS
Arg [1] : symbol (string): ODDS
Arg [2] : firstMinter (address): 0xf3860788D1597cecF938424bAABe976FaC87dC26
Arg [3] : squiggleAddress (address): 0x059EDD72Cd353dF5106D2B9cC5ab83a52287aC3a
Arg [4] : tributeStorageAddress (address): 0xC46C806F33430483282747164681787963812096

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000f3860788d1597cecf938424baabe976fac87dc26
Arg [3] : 000000000000000000000000059edd72cd353df5106d2b9cc5ab83a52287ac3a
Arg [4] : 000000000000000000000000c46c806f33430483282747164681787963812096
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 4f44445300000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 4f44445300000000000000000000000000000000000000000000000000000000


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.