ETH Price: $3,470.05 (+4.59%)

Token

Kiyoshi's Seeds Project (KSP)
 

Overview

Max Total Supply

16,594 KSP

Holders

5,329

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
mudded.eth
0x2Ec7b0b01d7c72a31F3834FE4f208C4D04d1CDAC
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Kiyoshi is a happy being who has no worries and is always smiling. He is actually fan art for a character named Aun from CryptoNinja.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
KiyoshisSeedsProject

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 50 runs

Other Settings:
default evmVersion
File 1 of 22 : KiyoshisSeedsProject.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

import "./IKiyoshisSeedsProject.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "default-nft-contract/contracts/libs/TokenSupplier/TokenUriSupplier.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@manifoldxyz/royalty-registry-solidity/contracts/overrides/RoyaltyOverrideCore.sol";
import "contract-allow-list/contracts/proxy/interface/IContractAllowListProxy.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";

contract KiyoshisSeedsProject is
    IKiyoshisSeedsProject,
    ERC1155,
    AccessControl,
    Ownable,
    TokenUriSupplier,
    EIP2981RoyaltyOverrideCore
{
    using EnumerableSet for EnumerableSet.AddressSet;

    bytes32 public constant ADMIN = "ADMIN";
    bytes32 public constant BURNER = "MINTER";
    bytes32 public constant MINTER = "BURNER";
    string public name = "Kiyoshi's Seeds Project";
    string public symbol = "KSP";

    IContractAllowListProxy public cal;
    EnumerableSet.AddressSet localAllowedAddresses;
    uint256 public calLevel = 1;
    bool public enableRestrict = true;

    constructor() ERC1155("") {
        _grantRole(ADMIN, msg.sender);
        _mint(0x27c6e3e198C8Bd448df7A37bEDa1454FA5224BaA, 100_000, 1, "");
    }

    // ==================================================================
    // For external contract
    // ==================================================================
    function mint(
        address to,
        uint256 id,
        uint256 amount
    ) external override onlyRole(MINTER) {
        _mint(to, id, amount, "");
    }

    function burn(
        address from,
        uint256 id,
        uint256 amount
    ) external override onlyRole(BURNER) {
        _burn(from, id, amount);
    }

    // ==================================================================
    // interface
    // ==================================================================
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC1155, AccessControl, EIP2981RoyaltyOverrideCore)
        returns (bool)
    {
        return
            AccessControl.supportsInterface(interfaceId) ||
            ERC1155.supportsInterface(interfaceId) ||
            EIP2981RoyaltyOverrideCore.supportsInterface(interfaceId);
    }

    // ==================================================================
    // override TokenUriSupplier
    // ==================================================================
    function uri(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        return TokenUriSupplier.tokenURI(tokenId);
    }

    function setBaseURI(string memory _value)
        external
        override
        onlyRole(ADMIN)
    {
        baseURI = _value;
    }

    function setBaseExtension(string memory _value)
        external
        override
        onlyRole(ADMIN)
    {
        baseExtension = _value;
    }

    function setExternalSupplier(address _value)
        external
        override
        onlyRole(ADMIN)
    {
        externalSupplier = ITokenUriSupplier(_value);
    }

    // ==================================================================
    // Royalty
    // ==================================================================
    function setTokenRoyalties(TokenRoyaltyConfig[] calldata royaltyConfigs)
        external
        override
        onlyRole(ADMIN)
    {
        _setTokenRoyalties(royaltyConfigs);
    }

    function setDefaultRoyalty(TokenRoyalty calldata royalty)
        external
        override
        onlyRole(ADMIN)
    {
        _setDefaultRoyalty(royalty);
    }

    // ==================================================================
    // Ristrict Approve
    // ==================================================================
    function addLocalContractAllowList(address transferer)
        external
        onlyRole(ADMIN)
    {
        localAllowedAddresses.add(transferer);
    }

    function removeLocalContractAllowList(address transferer)
        external
        onlyRole(ADMIN)
    {
        localAllowedAddresses.remove(transferer);
    }

    function getLocalContractAllowList()
        external
        view
        returns (address[] memory)
    {
        return localAllowedAddresses.values();
    }

    function _isLocalAllowed(address transferer)
        internal
        view
        virtual
        returns (bool)
    {
        return localAllowedAddresses.contains(transferer);
    }

    function _isAllowed(address transferer)
        internal
        view
        virtual
        returns (bool)
    {
        if(enableRestrict == false) {
            return true;
        }

        return
            _isLocalAllowed(transferer) || cal.isAllowed(transferer, calLevel);
    }

    function setCAL(address value) external onlyRole(ADMIN) {
        cal = IContractAllowListProxy(value);
    }

    function setCALLevel(uint256 value) external onlyRole(ADMIN) {
        calLevel = value;
    }

    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(
            _isAllowed(operator) || approved == false,
            "RestrictApprove: Can not approve locked token"
        );
        super.setApprovalForAll(operator, approved);
    }

    function isApprovedForAll(address account, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        if (_isAllowed(operator) == false) {
            return false;
        }
        return super.isApprovedForAll(account, operator);
    }

    function setEnableRestrict(bool value) external onlyRole(ADMIN) {
        enableRestrict = value;
    }

    // ==================================================================
    // override AccessControl
    // ==================================================================
    function grantRole(bytes32 role, address account)
        public
        override
        onlyRole(ADMIN)
    {
        require(role != ADMIN, "not admin only.");
        _grantRole(role, account);
    }

    function revokeRole(bytes32 role, address account)
        public
        override
        onlyRole(ADMIN)
    {
        require(role != ADMIN, "not admin only.");
        _revokeRole(role, account);
    }

    function grantAdmin(address account) external onlyOwner {
        _grantRole(ADMIN, account);
    }

    function revokeAdmin(address account) external onlyOwner {
        _revokeRole(ADMIN, account);
    }
}

File 2 of 22 : IRoyaltyOverride.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * Simple EIP2981 reference override implementation
 */
interface IEIP2981RoyaltyOverride is IERC165 {
    event TokenRoyaltyRemoved(uint256 tokenId);
    event TokenRoyaltySet(uint256 tokenId, address recipient, uint16 bps);
    event DefaultRoyaltySet(address recipient, uint16 bps);

    struct TokenRoyalty {
        address recipient;
        uint16 bps;
    }

    struct TokenRoyaltyConfig {
        uint256 tokenId;
        address recipient;
        uint16 bps;
    }

    /**
     * @dev Set per token royalties.  Passing a recipient of address(0) will delete any existing configuration
     */
    function setTokenRoyalties(TokenRoyaltyConfig[] calldata royalties) external;

    /**
     * @dev Get the number of token specific overrides.  Used to enumerate over all configurations
     */
    function getTokenRoyaltiesCount() external view returns (uint256);

    /**
     * @dev Get a token royalty configuration by index.  Use in conjunction with getTokenRoyaltiesCount to get all per token configurations
     */
    function getTokenRoyaltyByIndex(uint256 index) external view returns (TokenRoyaltyConfig memory);

    /**
     * @dev Set a default royalty configuration.  Will be used if no token specific configuration is set
     */
    function setDefaultRoyalty(TokenRoyalty calldata royalty) external;
}

File 3 of 22 : RoyaltyOverrideCore.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";

import "./IRoyaltyOverride.sol";
import "../specs/IEIP2981.sol";

/**
 * Simple EIP2981 reference override implementation
 */
abstract contract EIP2981RoyaltyOverrideCore is IEIP2981, IEIP2981RoyaltyOverride, ERC165 {
    using EnumerableSet for EnumerableSet.UintSet;

    TokenRoyalty public defaultRoyalty;
    mapping(uint256 => TokenRoyalty) private _tokenRoyalties;
    EnumerableSet.UintSet private _tokensWithRoyalties;

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

    /**
     * @dev Sets token royalties. When you override this in the implementation contract
     * ensure that you access restrict it to the contract owner or admin
     */
    function _setTokenRoyalties(TokenRoyaltyConfig[] memory royaltyConfigs) internal {
        for (uint256 i = 0; i < royaltyConfigs.length; i++) {
            TokenRoyaltyConfig memory royaltyConfig = royaltyConfigs[i];
            require(royaltyConfig.bps < 10000, "Invalid bps");
            if (royaltyConfig.recipient == address(0)) {
                delete _tokenRoyalties[royaltyConfig.tokenId];
                _tokensWithRoyalties.remove(royaltyConfig.tokenId);
                emit TokenRoyaltyRemoved(royaltyConfig.tokenId);
            } else {
                _tokenRoyalties[royaltyConfig.tokenId] = TokenRoyalty(royaltyConfig.recipient, royaltyConfig.bps);
                _tokensWithRoyalties.add(royaltyConfig.tokenId);
                emit TokenRoyaltySet(royaltyConfig.tokenId, royaltyConfig.recipient, royaltyConfig.bps);
            }
        }
    }

    /**
     * @dev Sets default royalty. When you override this in the implementation contract
     * ensure that you access restrict it to the contract owner or admin
     */
    function _setDefaultRoyalty(TokenRoyalty memory royalty) internal {
        require(royalty.bps < 10000, "Invalid bps");
        defaultRoyalty = TokenRoyalty(royalty.recipient, royalty.bps);
        emit DefaultRoyaltySet(royalty.recipient, royalty.bps);
    }

    /**
     * @dev See {IEIP2981RoyaltyOverride-getTokenRoyaltiesCount}.
     */
    function getTokenRoyaltiesCount() external view override returns (uint256) {
        return _tokensWithRoyalties.length();
    }

    /**
     * @dev See {IEIP2981RoyaltyOverride-getTokenRoyaltyByIndex}.
     */
    function getTokenRoyaltyByIndex(uint256 index) external view override returns (TokenRoyaltyConfig memory) {
        uint256 tokenId = _tokensWithRoyalties.at(index);
        TokenRoyalty memory royalty = _tokenRoyalties[tokenId];
        return TokenRoyaltyConfig(tokenId, royalty.recipient, royalty.bps);
    }

    /**
     * @dev See {IEIP2981RoyaltyOverride-royaltyInfo}.
     */
    function royaltyInfo(uint256 tokenId, uint256 value) public view override returns (address, uint256) {
        if (_tokenRoyalties[tokenId].recipient != address(0)) {
            return (_tokenRoyalties[tokenId].recipient, value * _tokenRoyalties[tokenId].bps / 10000);
        }
        if (defaultRoyalty.recipient != address(0) && defaultRoyalty.bps != 0) {
            return (defaultRoyalty.recipient, value * defaultRoyalty.bps / 10000);
        }
        return (address(0), 0);
    }
}

File 4 of 22 : IEIP2981.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * EIP-2981
 */
interface IEIP2981 {
    /**
     * bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
     *
     * => 0x2a55205a = 0x2a55205a
     */
    function royaltyInfo(uint256 tokenId, uint256 value) external view returns (address, uint256);
}

File 5 of 22 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 6 of 22 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

        return array;
    }
}

File 9 of 22 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 11 of 22 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 12 of 22 : 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 13 of 22 : 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 22 : 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 15 of 22 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 16 of 22 : 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 17 of 22 : 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 18 of 22 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

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

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

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

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

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

        return result;
    }
}

File 19 of 22 : IContractAllowListProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

interface IContractAllowListProxy {
    function isAllowed(address _transferer, uint256 _level)
        external
        view
        returns (bool);
}

File 20 of 22 : IKiyoshisSeedsProject.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

interface IKiyoshisSeedsProject {
    function mint(
        address to,
        uint256 id,
        uint256 amount
    ) external;

    function burn(
        address from,
        uint256 id,
        uint256 amount
    ) external;
}

File 21 of 22 : ITokenUriSupplier.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0 <0.9.0;

interface ITokenUriSupplier {
    function tokenURI(uint256 tokenId)
        external
        view
        returns (string memory);
}

File 22 of 22 : TokenUriSupplier.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0 <0.9.0;

import "./ITokenUriSupplier.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

abstract contract TokenUriSupplier is ITokenUriSupplier {
    using Strings for uint256;

    // ==================================================================
    // Variables
    // ==================================================================
    ITokenUriSupplier public externalSupplier;

    string public baseURI = "";
    string public baseExtension = ".json";

    // ==================================================================
    // Functions
    // ==================================================================
    function tokenURI(uint256 tokenId) public virtual view returns (string memory) {
        return
            address(externalSupplier) != address(0)
                ? externalSupplier.tokenURI(tokenId)
                : _defaultTokenUri(tokenId);
    }

    function _defaultTokenUri(uint256 tokenId)
        internal
        view
        virtual
        returns (string memory)
    {
        return
            string(
                abi.encodePacked(baseURI, tokenId.toString(), baseExtension)
            );
    }

    function setBaseURI(string memory _value) external virtual;

    function setBaseExtension(string memory _value) external virtual;

    function setExternalSupplier(address value) external virtual;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint16","name":"bps","type":"uint16"}],"name":"DefaultRoyaltySet","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenRoyaltyRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint16","name":"bps","type":"uint16"}],"name":"TokenRoyaltySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BURNER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"transferer","type":"address"}],"name":"addLocalContractAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cal","outputs":[{"internalType":"contract IContractAllowListProxy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyalty","outputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableRestrict","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"externalSupplier","outputs":[{"internalType":"contract ITokenUriSupplier","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLocalContractAllowList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenRoyaltiesCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getTokenRoyaltyByIndex","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"internalType":"struct IEIP2981RoyaltyOverride.TokenRoyaltyConfig","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"grantAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","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":"address","name":"transferer","type":"address"}],"name":"removeLocalContractAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"revokeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_value","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_value","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"value","type":"address"}],"name":"setCAL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setCALLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"internalType":"struct IEIP2981RoyaltyOverride.TokenRoyalty","name":"royalty","type":"tuple"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setEnableRestrict","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_value","type":"address"}],"name":"setExternalSupplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"internalType":"struct IEIP2981RoyaltyOverride.TokenRoyaltyConfig[]","name":"royaltyConfigs","type":"tuple[]"}],"name":"setTokenRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

608060409080825234620005f8576200001881620005fd565b60008091526200002a6002546200066f565b90601f91828111620005b8575b50600281905560048054336001600160a01b0319821681178355919391906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08480a36200008f6006546200066f565b81811162000578575b506000600655620000ab6007546200066f565b81811162000538575b50600a64173539b7b760d91b01600755600c54620000d2906200066f565b818111620004f8575b507f4b69796f73686927732053656564732050726f6a65637400000000000000002e600c55600d546200010e906200066f565b818111620004b8575b505060066204b53560ec1b01600d556001908160115560ff1991808360125416176012556420a226a4a760d91b80835260209360038552868420338552855260ff8785205416156200046e575b505084516200017381620005fd565b828152855162000183816200062f565b828152848101908536833751156200045b57620186a08091528651620001a9816200062f565b838152858101908636833751156200044857839052808452838552868420907327c6e3e198c8bd448df7a37beda1454fa5224baa9182865286528785208054908582018092116200043557558185895183815286898201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628b3392a4813b6200023d575b87516135ab90816200077f8239f35b869262000283928792878b5180968195829463f23a6e6160e01b9a8b8552339085015284602485015260448401528a606484015260a0608484015260a4830190620006c5565b03925af1849181620003ea575b506200037d575050908060033d116200036d575b6308c379a0146200032c575b50620002c65750505b388080808080806200022e565b608492519162461bcd60e51b8352820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152fd5b6200033662000707565b9081620003445750620002b0565b620003699395919250505193849362461bcd60e51b85528401526024830190620006c5565b0390fd5b508381803e805160e01c620002a4565b6001600160e01b031916039150620003999050575050620002b9565b608492519162461bcd60e51b8352820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152fd5b9091508581813d83116200042d575b6200040581836200064b565b810103126200042957516001600160e01b0319811681036200042957903862000290565b8480fd5b503d620003f9565b634e487b7160e01b875260118952602487fd5b634e487b7160e01b855260328752602485fd5b634e487b7160e01b845260328652602484fd5b8184526003855286842033855285528287852091825416179055339033907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8580a4388062000164565b600d8352620004f0910160051c7fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb590810190620006ac565b388062000117565b600c83526200053190820160051c7fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c790810190620006ac565b38620000db565b600783526200057190820160051c7fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68890810190620006ac565b38620000b4565b60068352620005b190820160051c7ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f90810190620006ac565b3862000098565b60028252620005f190830160051c7f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90810190620006ac565b3862000037565b600080fd5b602081019081106001600160401b038211176200061957604052565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b038211176200061957604052565b601f909101601f19168101906001600160401b038211908210176200061957604052565b90600182811c92168015620006a1575b60208310146200068b57565b634e487b7160e01b600052602260045260246000fd5b91607f16916200067f565b818110620006b8575050565b60008155600101620006ac565b919082519283825260005b848110620006f2575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201620006d0565b600060443d106200076a57604051600319913d83016004833e81516001600160401b03918282113d6024840111176200076d5781840194855193841162000775573d850101602084870101116200076d57506200076a929101602001906200064b565b90565b949350505050565b5094935050505056fe60806040908082526004918236101561001757600080fd5b600092833560e01c9283623f332f1461230e57508262fdd58e146122de57826301ffc9a714612225578263025e332e146121e05782630653aca51461212557826306fdde031461207f578263072653891461205b5782630e89341c14610c3c5782630f4345e214612039578263118c4f1314612015578263156e29f614611d5d578263248a9ca314611d3157826325752d1814611cec5782632a0acc6a14611cc95782632a55205a14611c845782632d34567014611be05782632eb2c2d6146118ee5782632f2ff15d1461183b57826335bb3e161461179357826336568abe146117025782634e1273f4146115705782635136dcc71461133357826355f804b3146111f25782636c0360eb1461114c57838363715018a6146110ef5750826372b44d71146110bc5782637885fdc7146110855782637e9803421461106657826380f801cb1461103d5782638da5cb5b1461101457826391d1485414610fcc57826395d89b4114610f26578263a059b16414610eef578263a217fddf14610ed4578263a22cb46514610d7e578263b7c738f414610d55578263c668286214610c74578263c87b56dd14610c3c578263cc835a8814610c1d578263d547741f14610bdd578263da3ef23f14610a89578263e985e9c514610a52578263ef60ceaf14610960578263f242432a14610682578263f2fde38b146105ba578263f5298aca1461029857508163fe6d812414610270575063ff7682121461023757600080fd5b3461026d57602036600319011261026d576102696102536123aa565b61025b612afe565b6001600160a01b0316612ebc565b5080f35b80fd5b9050346102945781600319360112610294575165212aa92722a960d11b8152602090f35b5080fd5b838234610294576102a836612514565b6526a4a72a22a960d11b80865260036020908152858720338852815285872054909794919060ff161561040257506001600160a01b03169283156103b3576102ef83612aa3565b506102f982612aa3565b5085855161030681612475565b528286528587528486208487528752848620549082821061036457509085968184938896956103619952868352878720868852835203868620558551928352820152600080516020613556833981519152843392a451612475565b80f35b855162461bcd60e51b81529081018890526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608490fd5b845162461bcd60e51b8152908101879052602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b93959250505061041133612cd3565b9183519061041e82612490565b604282528682019260603685378251156105a757603084538251906001918210156105945790607860218501536041915b818311610529575050506104fa5760486104cd9385936104dc936104f6975196879376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8c8601526104a48c82519283916037890191016124cc565b8401917001034b99036b4b9b9b4b733903937b6329607d1b6037840152518093868401906124cc565b010360288101855201836124ab565b5193849362461bcd60e51b855284015260248301906124ef565b0390fd5b606485878087519262461bcd60e51b845283015260248201526000805160206135368339815191526044820152fd5b909192600f81166010811015610581576f181899199a1a9b1b9c1cb0b131b232b360811b901a6105598587612cc2565b53881c92801561056e5760001901919061044f565b634e487b7160e01b825260118952602482fd5b634e487b7160e01b835260328a52602483fd5b634e487b7160e01b815260328852602490fd5b634e487b7160e01b815260328752602490fd5b9091503461067e57602036600319011261067e576105d66123aa565b906105df6127b8565b6001600160a01b0391821692831561062c575080546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b91503461067e5760a036600319011261067e5761069d6123aa565b836106a66123c5565b91604435906064356084356001600160401b03811161095c576106cc9036908901612605565b926001600160a01b03838116936106ee9033861490811561094a575b506128ce565b8616906106fc821515612931565b61070581612aa3565b5061070f83612aa3565b50808652602096868852888720858852885283898820546107328282101561298b565b838952888a528a8920878a528a52038988205581875286885288872083885288528887206107618582546129ea565b905582858a51848152868b8201526000805160206135568339815191528c3392a43b61078b578580f35b889587946107cc8a519788968795869463f23a6e6160e01b9c8d8752339087015260248601526044850152606484015260a0608484015260a48301906124ef565b03925af186918161091b575b506108a65750506001906107ea612a17565b6308c379a014610873575b5061080a5750505b3880808381808080808580f35b5162461bcd60e51b8152915081906104f690820160809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356040820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60608201520190565b61087b612a35565b8061088657506107f5565b6104f68591855193849362461bcd60e51b855284015260248301906124ef565b6001600160e01b0319160390506108be5750506107fd565b5162461bcd60e51b8152915081906104f690820160809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b61093c919250843d8611610943575b61093481836124ab565b8101906129f7565b90386107d8565b503d61092a565b61095691503390613175565b386106e8565b8480fd5b83823461029457806003193601126102945761097a612afe565b8051906109868261245a565b61098e6123aa565b825260243561ffff80821690818303610a4e57846109da612710610a489460207f2c5ea6e4103e78cb101e796fb2dace540362fc542cbff5145eaa24af7dd8fe41990196875210612e03565b8051845186516001600160a01b0393928416906109f68161245a565b81815260208684169101526008549161ffff60a01b9060a01b169160018060b01b0319161717600855511692511692519283928390929161ffff602091604084019560018060a01b0316845216910152565b0390a180f35b8580fd5b838234610294578060031936011261029457602090610a80610a726123aa565b610a7a6123c5565b90613175565b90519015158152f35b833461026d57610a9836612657565b91610aa1612afe565b8251906001600160401b038211610bca5750610abe6007546123ef565b601f8111610b67575b50602080601f8311600114610b0457508293829392610af9575b50508160011b916000199060031b1c19161760075580f35b015190508380610ae1565b90601f19831694600785528285209285905b878210610b4f575050836001959610610b36575b505050811b0160075580f35b015160001960f88460031b161c19169055838080610b2a565b80600185968294968601518155019501930190610b16565b600783527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688601f830160051c81019160208410610bc0575b601f0160051c01905b818110610bb55750610ac7565b838155600101610ba8565b9091508190610b9f565b634e487b7160e01b835260419052602482fd5b91503461067e57366003190112610294576103619035610bfb6123c5565b90610c04612afe565b610c186420a226a4a760d91b8214156131b5565b612742565b8382346102945781600319360112610294576020906011549051908152f35b90833461026d57602036600319011261026d5750610c5d610c7092356131f3565b90519182916020835260208301906124ef565b0390f35b83823461029457816003193601126102945780519082600754610c96816123ef565b80855290600190818116908115610d2d5750600114610cd4575b505050610cc282610c709403836124ab565b519182916020835260208301906124ef565b60078352602095507fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6885b828410610d1a5750505082610c7094610cc29282010194610cb0565b8054868501880152928601928101610cfe565b610c709750610cc29450602092508693915060ff191682840152151560051b82010194610cb0565b838234610294578160031936011261029457600e5490516001600160a01b039091168152602090f35b91503461067e578060031936011261067e57610d986123aa565b906024359182158015809403610a4e57610db18261309c565b908115610ecc575b5015610e73576001600160a01b031692338414610e1f5750338452600160205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020608492519162461bcd60e51b8352820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152fd5b815162461bcd60e51b8152602081860152602d60248201527f5265737472696374417070726f76653a2043616e206e6f7420617070726f766560448201526c103637b1b5b2b2103a37b5b2b760991b6064820152608490fd5b905038610db9565b83823461029457816003193601126102945751908152602090f35b839034610294576020366003190112610294573580151580910361029457610f15612afe565b60ff80196012541691161760125580f35b83823461029457816003193601126102945780519082600d54610f48816123ef565b80855290600190818116908115610d2d5750600114610f7357505050610cc282610c709403836124ab565b600d8352602095507fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb55b828410610fb95750505082610c7094610cc29282010194610cb0565b8054868501880152928601928101610f9d565b9091503461067e578160031936011261067e578160209360ff92610fee6123c5565b90358252600386528282206001600160a01b039091168252855220549151911615158152f35b9091503461067e578260031936011261067e575490516001600160a01b03909116815260209150f35b83823461029457816003193601126102945760055490516001600160a01b039091168152602090f35b838234610294578160031936011261029457602090600a549051908152f35b83823461029457816003193601126102945760085490516001600160a01b038216815260a09190911c61ffff166020820152604090f35b833461026d57602036600319011261026d576102696110d96123aa565b6110e1612afe565b6001600160a01b0316612ff3565b8091346111495781600319360112611149576111096127b8565b80546001600160a01b031981169091556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50fd5b8382346102945781600319360112610294578051908260065461116e816123ef565b80855290600190818116908115610d2d575060011461119957505050610cc282610c709403836124ab565b60068352602095507ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f5b8284106111df5750505082610c7094610cc29282010194610cb0565b80548685018801529286019281016111c3565b833461026d5761120136612657565b9161120a612afe565b8251906001600160401b038211610bca57506112276006546123ef565b601f81116112d0575b50602080601f831160011461126d57508293829392611262575b50508160011b916000199060031b1c19161760065580f35b01519050838061124a565b90601f19831694600685528285209285905b8782106112b857505083600195961061129f575b505050811b0160065580f35b015160001960f88460031b161c19169055838080611293565b8060018596829496860151815501950193019061127f565b600683527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f601f830160051c81019160208410611329575b601f0160051c01905b81811061131e5750611230565b838155600101611311565b9091508190611308565b9091503461067e5760208060031936011261156c578135926001600160401b0392838511610a4e5736602386011215610a4e5784810135948486116115685760249160609583878902840101933685116115645761138f612afe565b6113988961253e565b986113a587519a8b6124ab565b895280878a019401935b8585106114f857505050505050845b84518110156114f457806113d561145792876128a4565b51848685830161ffff906113ef6127108383511610612e03565b84840180519092906001600160a01b039081168a8f8261145c575050505050505050817fa2870857763bd9ae76c957f869f16b31c18dd3bb4c7b4d3a4496dc5c57c657f992518a5260098252898681205561144a8151612f09565b50518551908152a1612895565b6113be565b9285969798917f389b70fb0887f01e83784eb1c4c589f740eca53b00ed0f45e41db5d079719abb9a9460098784989951169483519661149a8861245a565b87528087019586528751835252209251835492516001600160b01b031990931691161760a09190911b61ffff60a01b1617905580516114d890612e3d565b50519351169151169087519283528883015286820152a1612895565b8580f35b8885360312611560578651908982018281108582111761154e578852853582526115238987016123db565b89830152878601359061ffff8216820361154a57828a928a8d9501528152019401936113af565b8c80fd5b634e487b7160e01b8d5260418652838dfd5b8a80fd5b8980fd5b8680fd5b8380fd5b9091503461067e578160031936011261067e5780356001600160401b0380821161095c573660238301121561095c5781830135906115ad8261253e565b926115ba865194856124ab565b82845260209260248486019160051b830101913683116116fe576024859101915b8383106116e65750505050602435908111610a4e576115fd9036908501612555565b92825184510361169357508151946116148661253e565b95611621865197886124ab565b808752611630601f199161253e565b0136838801375b82518110156116815761167c9061166c6001600160a01b0361165983876128a4565b511661166583886128a4565b5190612810565b61167682896128a4565b52612895565b611637565b845182815280610c7081850189612623565b60849185519162461bcd60e51b8352820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152fd5b81906116f1846123db565b81520191019084906115db565b8880fd5b83903461029457826003193601126102945761171c6123c5565b90336001600160a01b0383160361173857906103619135612742565b608490602085519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152fd5b838234610294576020366003190112610294576117ae6123aa565b6117b66127b8565b6420a226a4a760d91b808452600360209081528385206001600160a01b039093168086529290528284205490929060ff16156117f0578380f35b82845260036020528084208285526020528320600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a48180808380f35b9091503461067e578160031936011261067e5735906118586123c5565b90611861612afe565b6118756420a226a4a760d91b8414156131b5565b828452600360209081528185206001600160a01b039093168086529290528084205460ff16156118a3578380f35b82845260036020528084208285526020528320600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a43880808380f35b9091503461067e576003199160a03684011261156c5761190c6123aa565b926119156123c5565b936001600160401b0393604435858111611bdc576119369036908301612555565b906064358681116116fe5761194e9036908301612555565b956084359081116116fe576119669036908301612605565b936001600160a01b03848116946119879033871490811561094a57506128ce565b8351885103611b885788169461199e861515612931565b895b8a8551821015611a24579089611a188a611a1f946119c9856119c2818d6128a4565b51956128a4565b51938082526020908282528383208d84528252858d85852054906119ef8383101561298b565b838652858552868620908652845203848420558252818152828220908d835252209182546129ea565b9055612895565b6119a0565b50509094939596929197848789518a81527f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb611a628c830188612623565b91808303602082015280611a7733948b612623565b0390a43b611a83578880f35b8651948593849363bc197c8160e01b98898652338c87015260248601526044850160a0905260a48501611ab591612623565b82858203016064860152611ac891612623565b90838203016084840152611adb916124ef565b0381885a94602095f1859181611b68575b50611b525750506001611afd612a17565b6308c379a014611b1b575b61080a5750505b38808080808080808880f35b611b23612a35565b80611b2e5750611b08565b90506104f691602094505193849362461bcd60e51b855284015260248301906124ef565b6001600160e01b031916036108be575050611b0f565b611b8191925060203d81116109435761093481836124ab565b9038611aec565b865162461bcd60e51b8152602081850152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608490fd5b8780fd5b83823461029457602036600319011261029457611bfb6123aa565b611c036127b8565b6420a226a4a760d91b808452600360209081528385206001600160a01b039093168086529290528284205490929060ff16611c3c578380f35b8284526003602052808420828552602052832060ff19815416905533917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b8480a48180808380f35b90833461026d578160031936011261026d5750611ca8610c709260243590356126bb565b91516001600160a01b03909116815260208101919091529081906040820190565b838234610294578160031936011261029457516420a226a4a760d91b8152602090f35b833461026d57602036600319011261026d57611d066123aa565b611d0e612afe565b600580546001600160a01b0319166001600160a01b039290921691909117905580f35b9091503461067e57602036600319011261067e5781602093600192358152600385522001549051908152f35b91503461067e57611d6d36612514565b9065212aa92722a960d11b9283875260209360038552858820338952855260ff868920541615611f2e5750845190611da482612475565b8782526001600160a01b038116908115611ee15790839291611dc68a95612aa3565b50611dd086612aa3565b508385528487528785208286528752878520611ded8782546129ea565b905581858951868152888a8201526000805160206135568339815191528b3392a43b611e17578380f35b8794611e5a94879489519687958694859363f23a6e6160e01b9b8c865233908601528560248601526044850152606484015260a0608484015260a48301906124ef565b03925af1869181611ec2575b50611eaa575050600190611e78612a17565b6308c379a014611e97575b5061080a5750505b38808080848180808380f35b611e9f612a35565b806108865750611e83565b6001600160e01b0319160390506108be575050611e8b565b611eda919250843d86116109435761093481836124ab565b9038611e66565b865162461bcd60e51b8152808901879052602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b939692505050611f3d33612cd3565b91835190611f4a82612490565b604282528682019260603685378251156105a757603084538251906001918210156105945790607860218501536041915b818311611fd0575050506104fa5760486104cd9385936104dc936104f6975196879376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8c8601526104a48c82519283916037890191016124cc565b909192600f81166010811015610581576f181899199a1a9b1b9c1cb0b131b232b360811b901a6120008587612cc2565b53881c92801561056e57600019019190611f7b565b838234610294578160031936011261029457516526a4a72a22a960d11b8152602090f35b83903461029457602036600319011261029457612054612afe565b3560115580f35b83823461029457816003193601126102945760209060ff6012541690519015158152f35b83823461029457816003193601126102945780519082600c546120a1816123ef565b80855290600190818116908115610d2d57506001146120cc57505050610cc282610c709403836124ab565b600c8352602095507fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c75b8284106121125750505082610c7094610cc29282010194610cb0565b80548685018801529286019281016120f6565b8382346102945760208060031936011261067e5783358383805161214881612429565b82815282858201520152600a548110156121cd57606094508290600a8552828520015493848152600983522090808351926121828461245a565b549260018060a01b03908185169081815261ffff809660a01c1694859101528580516121ad81612429565b888152848101928352019384528551968752511690850152511690820152f35b634e487b7160e01b845260328552602484fd5b833461026d57602036600319011261026d576121fa6123aa565b612202612afe565b600e80546001600160a01b0319166001600160a01b039290921691909117905580f35b9091503461067e57602036600319011261067e5735906001600160e01b0319821680830361156c5760209350637965db0b60e01b811480156122cf575b809381156122bd575b50831561227d575b5050519015158152f35b91925063152a902d60e11b8114919082156122ac575b5081156122a4575b50903880612273565b90503861229b565b63c69dbd8f60e01b14915038612293565b6122c8919450612dbf565b923861226b565b506122d983612dbf565b612262565b8382346102945780600319360112610294576020906123076122fe6123aa565b60243590612810565b9051908152f35b849150346102945781600319360112610294579190600f54908184526020938481018093600f845286842090845b81811061239657505050816123529103826124ab565b83519485948186019282875251809352850193925b82811061237657505050500390f35b83516001600160a01b031685528695509381019392810192600101612367565b82548452928801926001928301920161233c565b600435906001600160a01b03821682036123c057565b600080fd5b602435906001600160a01b03821682036123c057565b35906001600160a01b03821682036123c057565b90600182811c9216801561241f575b602083101461240957565b634e487b7160e01b600052602260045260246000fd5b91607f16916123fe565b606081019081106001600160401b0382111761244457604052565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761244457604052565b602081019081106001600160401b0382111761244457604052565b608081019081106001600160401b0382111761244457604052565b90601f801991011681019081106001600160401b0382111761244457604052565b60005b8381106124df5750506000910152565b81810151838201526020016124cf565b90602091612508815180928185528580860191016124cc565b601f01601f1916010190565b60609060031901126123c0576004356001600160a01b03811681036123c057906024359060443590565b6001600160401b0381116124445760051b60200190565b81601f820112156123c05780359161256c8361253e565b9261257a60405194856124ab565b808452602092838086019260051b8201019283116123c0578301905b8282106125a4575050505090565b81358152908301908301612596565b6001600160401b03811161244457601f01601f191660200190565b9291926125da826125b3565b916125e860405193846124ab565b8294818452818301116123c0578281602093846000960137010152565b9080601f830112156123c057816020612620933591016125ce565b90565b90815180825260208080930193019160005b828110612643575050505090565b835185529381019392810192600101612635565b60206003198201126123c057600435906001600160401b0382116123c057806023830112156123c057816024612620936004013591016125ce565b818102929181159184041417156126a557565b634e487b7160e01b600052601160045260246000fd5b6000908152600960205260408120549092916001600160a01b03918216612723576008549182169182151580612713575b6126f7575050508190565b6127109294509061ffff61270f9260a01c1690612692565b0490565b5061ffff8160a01c1615156126ec565b61270f9061ffff604061271094818820541696205460a01c1690612692565b906000918083526003602052604083209160018060a01b03169182845260205260ff60408420541661277357505050565b8083526003602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4565b6004546001600160a01b031633036127cc57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b031690811561283d57600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b60001981146126a55760010190565b80518210156128b85760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b156128d557565b60405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526d195c881bdc88185c1c1c9bdd995960921b6064820152608490fd5b1561293857565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b1561299257565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b919082018092116126a557565b908160209103126123c057516001600160e01b0319811681036123c05790565b60009060033d11612a2457565b905060046000803e60005160e01c90565b600060443d1061262057604051600319913d83016004833e81516001600160401b03918282113d602484011117612a9257818401948551938411612a9a573d85010160208487010111612a925750612620929101602001906124ab565b949350505050565b50949350505050565b60405190612ab08261245a565b600182526020820160203682378251156128b8575290565b600a548110156128b857600a60005260206000200190600090565b600f548110156128b857600f60005260206000200190600090565b3360009081527f63f6944974ed01e0c77f5fd425d412bc87a2a97469803ba02a51ba75d9154da4602090815260408083205490926420a226a4a760d91b9160ff1615612b4a5750505050565b612b5333612cd3565b91845190612b6082612490565b60428252848201926060368537825115612cae5760308453825190600191821015612cae5790607860218501536041915b818311612c4057505050612c105760486104f6938693612bf493612be5985198899376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8a8601526104a4815180928c6037890191016124cc565b010360288101875201856124ab565b5192839262461bcd60e51b8452600484015260248301906124ef565b60648486519062461bcd60e51b825280600483015260248201526000805160206135368339815191526044820152fd5b909192600f81166010811015612c9a576f181899199a1a9b1b9c1cb0b131b232b360811b901a612c708587612cc2565b5360041c928015612c8657600019019190612b91565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b9081518110156128b8570160200190565b60405190612ce082612429565b602a82526020820160403682378251156128b8576030905381516001908110156128b857607860218401536029905b808211612d51575050612d1f5790565b606460405162461bcd60e51b815260206004820152602060248201526000805160206135368339815191526044820152fd5b9091600f81166010811015612daa576f181899199a1a9b1b9c1cb0b131b232b360811b901a612d808486612cc2565b5360041c918015612d95576000190190612d0f565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b63ffffffff60e01b16636cdb3d1360e11b8114908115612df2575b8115612de4575090565b6301ffc9a760e01b14919050565b6303a24d0760e21b81149150612dda565b15612e0a57565b60405162461bcd60e51b815260206004820152600b60248201526a496e76616c69642062707360a81b6044820152606490fd5b6000818152600b6020526040812054612eb757600a54600160401b811015612ea3579082612e8f612e7684600160409601600a55612ac8565b819391549060031b600019811b9283911b169119161790565b9055600a54928152600b6020522055600190565b634e487b7160e01b82526041600452602482fd5b905090565b600081815260106020526040812054612eb757600f54600160401b811015612ea3579082612ef5612e7684600160409601600f55612ae3565b9055600f5492815260106020522055600190565b6000818152600b60205260408120549091908015612fee5760001990808201818111612fda57600a5490838201918211612fc657808203612f92575b505050600a548015612f7e57810190612f5d82612ac8565b909182549160031b1b19169055600a558152600b6020526040812055600190565b634e487b7160e01b84526031600452602484fd5b612fb0612fa1612e7693612ac8565b90549060031b1c928392612ac8565b90558452600b6020526040842055388080612f45565b634e487b7160e01b86526011600452602486fd5b634e487b7160e01b85526011600452602485fd5b505090565b6000818152601060205260408120549091908015612fee5760001990808201818111612fda57600f5490838201918211612fc657808203613068575b505050600f548015612f7e5781019061304782612ae3565b909182549160031b1b19169055600f55815260106020526040812055600190565b613086613077612e7693612ae3565b90549060031b1c928392612ae3565b905584526010602052604084205538808061302f565b60ff601254161561316f576001600160a01b03818116600090815260106020526040812054158015939192906130d3575b50505090565b600e54601154604051630f8350ed60e41b81526001600160a01b03949094166004850152602484015291935060209184916044918391165afa918215613162578192613124575b50503880806130cd565b9091506020813d821161315a575b8161313f602093836124ab565b81010312610294575190811515820361026d5750388061311a565b3d9150613132565b50604051903d90823e3d90fd5b50600190565b61317e8261309c565b156131ae5760018060a01b0380911660005260016020526040600020911660005260205260ff6040600020541690565b5050600090565b156131bc57565b60405162461bcd60e51b815260206004820152600f60248201526e3737ba1030b236b4b71037b7363c9760891b6044820152606490fd5b6005546001600160a01b031690600082156132b8575060009060246040518094819363c87b56dd60e01b835260048301525afa9081156132ac57600091613238575090565b903d8082843e61324881846124ab565b820191602081840312610294578051906001600160401b03821161067e570182601f820112156102945780519161327e836125b3565b9361328c60405195866124ab565b8385526020848401011161026d57509061262091602080850191016124cc565b6040513d6000823e3d90fd5b909150818172184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8281811015613527575b50506d04ee2d6d415b85acef81000000008083101561351a575b50662386f26fc100008083101561350d575b506305f5e10080831015613500575b50612710808310156134f3575b5060648210156134e5575b600a809210156134dd575b60018082019461336461334e876125b3565b9661335c60405198896124ab565b8088526125b3565b93602091836021848a0196601f198099013689378a0101905b6134ae575b5050506040519586938691600654613399816123ef565b9085878216918260001461348f575050600114613452575b5082916133c191519384916124cc565b019085600754936133d1856123ef565b9481811690811561343357506001146133fa575b505050505061262092039081018352826124ab565b6007825282822097505b84821061341d57505050019250612620388080806133e5565b8754848301529687019688955090820190613404565b60ff1916855250505050811515909102019250612620388080806133e5565b909192506006885283882088905b8282106134775750508501830191906133c16133b1565b80549782018601979097528996908501908601613460565b60ff191689820152821515909202880190910193506133c190506133b1565b600019019082906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a83530490848261337d5750613382565b60010161333c565b906064600291049101613331565b6004919204910138613326565b6008919204910138613319565b601091920491013861330a565b60209192049101386132f8565b9150915004604038806132de56fe537472696e67733a20686578206c656e67746820696e73756666696369656e74c3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62a2646970667358221220e53cae8c238cdf57c2be0148e26b5ead41e549ee5079f8994df015c48a730fb764736f6c63430008110033

Deployed Bytecode

0x60806040908082526004918236101561001757600080fd5b600092833560e01c9283623f332f1461230e57508262fdd58e146122de57826301ffc9a714612225578263025e332e146121e05782630653aca51461212557826306fdde031461207f578263072653891461205b5782630e89341c14610c3c5782630f4345e214612039578263118c4f1314612015578263156e29f614611d5d578263248a9ca314611d3157826325752d1814611cec5782632a0acc6a14611cc95782632a55205a14611c845782632d34567014611be05782632eb2c2d6146118ee5782632f2ff15d1461183b57826335bb3e161461179357826336568abe146117025782634e1273f4146115705782635136dcc71461133357826355f804b3146111f25782636c0360eb1461114c57838363715018a6146110ef5750826372b44d71146110bc5782637885fdc7146110855782637e9803421461106657826380f801cb1461103d5782638da5cb5b1461101457826391d1485414610fcc57826395d89b4114610f26578263a059b16414610eef578263a217fddf14610ed4578263a22cb46514610d7e578263b7c738f414610d55578263c668286214610c74578263c87b56dd14610c3c578263cc835a8814610c1d578263d547741f14610bdd578263da3ef23f14610a89578263e985e9c514610a52578263ef60ceaf14610960578263f242432a14610682578263f2fde38b146105ba578263f5298aca1461029857508163fe6d812414610270575063ff7682121461023757600080fd5b3461026d57602036600319011261026d576102696102536123aa565b61025b612afe565b6001600160a01b0316612ebc565b5080f35b80fd5b9050346102945781600319360112610294575165212aa92722a960d11b8152602090f35b5080fd5b838234610294576102a836612514565b6526a4a72a22a960d11b80865260036020908152858720338852815285872054909794919060ff161561040257506001600160a01b03169283156103b3576102ef83612aa3565b506102f982612aa3565b5085855161030681612475565b528286528587528486208487528752848620549082821061036457509085968184938896956103619952868352878720868852835203868620558551928352820152600080516020613556833981519152843392a451612475565b80f35b855162461bcd60e51b81529081018890526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608490fd5b845162461bcd60e51b8152908101879052602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b93959250505061041133612cd3565b9183519061041e82612490565b604282528682019260603685378251156105a757603084538251906001918210156105945790607860218501536041915b818311610529575050506104fa5760486104cd9385936104dc936104f6975196879376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8c8601526104a48c82519283916037890191016124cc565b8401917001034b99036b4b9b9b4b733903937b6329607d1b6037840152518093868401906124cc565b010360288101855201836124ab565b5193849362461bcd60e51b855284015260248301906124ef565b0390fd5b606485878087519262461bcd60e51b845283015260248201526000805160206135368339815191526044820152fd5b909192600f81166010811015610581576f181899199a1a9b1b9c1cb0b131b232b360811b901a6105598587612cc2565b53881c92801561056e5760001901919061044f565b634e487b7160e01b825260118952602482fd5b634e487b7160e01b835260328a52602483fd5b634e487b7160e01b815260328852602490fd5b634e487b7160e01b815260328752602490fd5b9091503461067e57602036600319011261067e576105d66123aa565b906105df6127b8565b6001600160a01b0391821692831561062c575080546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b91503461067e5760a036600319011261067e5761069d6123aa565b836106a66123c5565b91604435906064356084356001600160401b03811161095c576106cc9036908901612605565b926001600160a01b03838116936106ee9033861490811561094a575b506128ce565b8616906106fc821515612931565b61070581612aa3565b5061070f83612aa3565b50808652602096868852888720858852885283898820546107328282101561298b565b838952888a528a8920878a528a52038988205581875286885288872083885288528887206107618582546129ea565b905582858a51848152868b8201526000805160206135568339815191528c3392a43b61078b578580f35b889587946107cc8a519788968795869463f23a6e6160e01b9c8d8752339087015260248601526044850152606484015260a0608484015260a48301906124ef565b03925af186918161091b575b506108a65750506001906107ea612a17565b6308c379a014610873575b5061080a5750505b3880808381808080808580f35b5162461bcd60e51b8152915081906104f690820160809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356040820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60608201520190565b61087b612a35565b8061088657506107f5565b6104f68591855193849362461bcd60e51b855284015260248301906124ef565b6001600160e01b0319160390506108be5750506107fd565b5162461bcd60e51b8152915081906104f690820160809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b61093c919250843d8611610943575b61093481836124ab565b8101906129f7565b90386107d8565b503d61092a565b61095691503390613175565b386106e8565b8480fd5b83823461029457806003193601126102945761097a612afe565b8051906109868261245a565b61098e6123aa565b825260243561ffff80821690818303610a4e57846109da612710610a489460207f2c5ea6e4103e78cb101e796fb2dace540362fc542cbff5145eaa24af7dd8fe41990196875210612e03565b8051845186516001600160a01b0393928416906109f68161245a565b81815260208684169101526008549161ffff60a01b9060a01b169160018060b01b0319161717600855511692511692519283928390929161ffff602091604084019560018060a01b0316845216910152565b0390a180f35b8580fd5b838234610294578060031936011261029457602090610a80610a726123aa565b610a7a6123c5565b90613175565b90519015158152f35b833461026d57610a9836612657565b91610aa1612afe565b8251906001600160401b038211610bca5750610abe6007546123ef565b601f8111610b67575b50602080601f8311600114610b0457508293829392610af9575b50508160011b916000199060031b1c19161760075580f35b015190508380610ae1565b90601f19831694600785528285209285905b878210610b4f575050836001959610610b36575b505050811b0160075580f35b015160001960f88460031b161c19169055838080610b2a565b80600185968294968601518155019501930190610b16565b600783527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688601f830160051c81019160208410610bc0575b601f0160051c01905b818110610bb55750610ac7565b838155600101610ba8565b9091508190610b9f565b634e487b7160e01b835260419052602482fd5b91503461067e57366003190112610294576103619035610bfb6123c5565b90610c04612afe565b610c186420a226a4a760d91b8214156131b5565b612742565b8382346102945781600319360112610294576020906011549051908152f35b90833461026d57602036600319011261026d5750610c5d610c7092356131f3565b90519182916020835260208301906124ef565b0390f35b83823461029457816003193601126102945780519082600754610c96816123ef565b80855290600190818116908115610d2d5750600114610cd4575b505050610cc282610c709403836124ab565b519182916020835260208301906124ef565b60078352602095507fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6885b828410610d1a5750505082610c7094610cc29282010194610cb0565b8054868501880152928601928101610cfe565b610c709750610cc29450602092508693915060ff191682840152151560051b82010194610cb0565b838234610294578160031936011261029457600e5490516001600160a01b039091168152602090f35b91503461067e578060031936011261067e57610d986123aa565b906024359182158015809403610a4e57610db18261309c565b908115610ecc575b5015610e73576001600160a01b031692338414610e1f5750338452600160205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020608492519162461bcd60e51b8352820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152fd5b815162461bcd60e51b8152602081860152602d60248201527f5265737472696374417070726f76653a2043616e206e6f7420617070726f766560448201526c103637b1b5b2b2103a37b5b2b760991b6064820152608490fd5b905038610db9565b83823461029457816003193601126102945751908152602090f35b839034610294576020366003190112610294573580151580910361029457610f15612afe565b60ff80196012541691161760125580f35b83823461029457816003193601126102945780519082600d54610f48816123ef565b80855290600190818116908115610d2d5750600114610f7357505050610cc282610c709403836124ab565b600d8352602095507fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb55b828410610fb95750505082610c7094610cc29282010194610cb0565b8054868501880152928601928101610f9d565b9091503461067e578160031936011261067e578160209360ff92610fee6123c5565b90358252600386528282206001600160a01b039091168252855220549151911615158152f35b9091503461067e578260031936011261067e575490516001600160a01b03909116815260209150f35b83823461029457816003193601126102945760055490516001600160a01b039091168152602090f35b838234610294578160031936011261029457602090600a549051908152f35b83823461029457816003193601126102945760085490516001600160a01b038216815260a09190911c61ffff166020820152604090f35b833461026d57602036600319011261026d576102696110d96123aa565b6110e1612afe565b6001600160a01b0316612ff3565b8091346111495781600319360112611149576111096127b8565b80546001600160a01b031981169091556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50fd5b8382346102945781600319360112610294578051908260065461116e816123ef565b80855290600190818116908115610d2d575060011461119957505050610cc282610c709403836124ab565b60068352602095507ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f5b8284106111df5750505082610c7094610cc29282010194610cb0565b80548685018801529286019281016111c3565b833461026d5761120136612657565b9161120a612afe565b8251906001600160401b038211610bca57506112276006546123ef565b601f81116112d0575b50602080601f831160011461126d57508293829392611262575b50508160011b916000199060031b1c19161760065580f35b01519050838061124a565b90601f19831694600685528285209285905b8782106112b857505083600195961061129f575b505050811b0160065580f35b015160001960f88460031b161c19169055838080611293565b8060018596829496860151815501950193019061127f565b600683527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f601f830160051c81019160208410611329575b601f0160051c01905b81811061131e5750611230565b838155600101611311565b9091508190611308565b9091503461067e5760208060031936011261156c578135926001600160401b0392838511610a4e5736602386011215610a4e5784810135948486116115685760249160609583878902840101933685116115645761138f612afe565b6113988961253e565b986113a587519a8b6124ab565b895280878a019401935b8585106114f857505050505050845b84518110156114f457806113d561145792876128a4565b51848685830161ffff906113ef6127108383511610612e03565b84840180519092906001600160a01b039081168a8f8261145c575050505050505050817fa2870857763bd9ae76c957f869f16b31c18dd3bb4c7b4d3a4496dc5c57c657f992518a5260098252898681205561144a8151612f09565b50518551908152a1612895565b6113be565b9285969798917f389b70fb0887f01e83784eb1c4c589f740eca53b00ed0f45e41db5d079719abb9a9460098784989951169483519661149a8861245a565b87528087019586528751835252209251835492516001600160b01b031990931691161760a09190911b61ffff60a01b1617905580516114d890612e3d565b50519351169151169087519283528883015286820152a1612895565b8580f35b8885360312611560578651908982018281108582111761154e578852853582526115238987016123db565b89830152878601359061ffff8216820361154a57828a928a8d9501528152019401936113af565b8c80fd5b634e487b7160e01b8d5260418652838dfd5b8a80fd5b8980fd5b8680fd5b8380fd5b9091503461067e578160031936011261067e5780356001600160401b0380821161095c573660238301121561095c5781830135906115ad8261253e565b926115ba865194856124ab565b82845260209260248486019160051b830101913683116116fe576024859101915b8383106116e65750505050602435908111610a4e576115fd9036908501612555565b92825184510361169357508151946116148661253e565b95611621865197886124ab565b808752611630601f199161253e565b0136838801375b82518110156116815761167c9061166c6001600160a01b0361165983876128a4565b511661166583886128a4565b5190612810565b61167682896128a4565b52612895565b611637565b845182815280610c7081850189612623565b60849185519162461bcd60e51b8352820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152fd5b81906116f1846123db565b81520191019084906115db565b8880fd5b83903461029457826003193601126102945761171c6123c5565b90336001600160a01b0383160361173857906103619135612742565b608490602085519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152fd5b838234610294576020366003190112610294576117ae6123aa565b6117b66127b8565b6420a226a4a760d91b808452600360209081528385206001600160a01b039093168086529290528284205490929060ff16156117f0578380f35b82845260036020528084208285526020528320600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a48180808380f35b9091503461067e578160031936011261067e5735906118586123c5565b90611861612afe565b6118756420a226a4a760d91b8414156131b5565b828452600360209081528185206001600160a01b039093168086529290528084205460ff16156118a3578380f35b82845260036020528084208285526020528320600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a43880808380f35b9091503461067e576003199160a03684011261156c5761190c6123aa565b926119156123c5565b936001600160401b0393604435858111611bdc576119369036908301612555565b906064358681116116fe5761194e9036908301612555565b956084359081116116fe576119669036908301612605565b936001600160a01b03848116946119879033871490811561094a57506128ce565b8351885103611b885788169461199e861515612931565b895b8a8551821015611a24579089611a188a611a1f946119c9856119c2818d6128a4565b51956128a4565b51938082526020908282528383208d84528252858d85852054906119ef8383101561298b565b838652858552868620908652845203848420558252818152828220908d835252209182546129ea565b9055612895565b6119a0565b50509094939596929197848789518a81527f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb611a628c830188612623565b91808303602082015280611a7733948b612623565b0390a43b611a83578880f35b8651948593849363bc197c8160e01b98898652338c87015260248601526044850160a0905260a48501611ab591612623565b82858203016064860152611ac891612623565b90838203016084840152611adb916124ef565b0381885a94602095f1859181611b68575b50611b525750506001611afd612a17565b6308c379a014611b1b575b61080a5750505b38808080808080808880f35b611b23612a35565b80611b2e5750611b08565b90506104f691602094505193849362461bcd60e51b855284015260248301906124ef565b6001600160e01b031916036108be575050611b0f565b611b8191925060203d81116109435761093481836124ab565b9038611aec565b865162461bcd60e51b8152602081850152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608490fd5b8780fd5b83823461029457602036600319011261029457611bfb6123aa565b611c036127b8565b6420a226a4a760d91b808452600360209081528385206001600160a01b039093168086529290528284205490929060ff16611c3c578380f35b8284526003602052808420828552602052832060ff19815416905533917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b8480a48180808380f35b90833461026d578160031936011261026d5750611ca8610c709260243590356126bb565b91516001600160a01b03909116815260208101919091529081906040820190565b838234610294578160031936011261029457516420a226a4a760d91b8152602090f35b833461026d57602036600319011261026d57611d066123aa565b611d0e612afe565b600580546001600160a01b0319166001600160a01b039290921691909117905580f35b9091503461067e57602036600319011261067e5781602093600192358152600385522001549051908152f35b91503461067e57611d6d36612514565b9065212aa92722a960d11b9283875260209360038552858820338952855260ff868920541615611f2e5750845190611da482612475565b8782526001600160a01b038116908115611ee15790839291611dc68a95612aa3565b50611dd086612aa3565b508385528487528785208286528752878520611ded8782546129ea565b905581858951868152888a8201526000805160206135568339815191528b3392a43b611e17578380f35b8794611e5a94879489519687958694859363f23a6e6160e01b9b8c865233908601528560248601526044850152606484015260a0608484015260a48301906124ef565b03925af1869181611ec2575b50611eaa575050600190611e78612a17565b6308c379a014611e97575b5061080a5750505b38808080848180808380f35b611e9f612a35565b806108865750611e83565b6001600160e01b0319160390506108be575050611e8b565b611eda919250843d86116109435761093481836124ab565b9038611e66565b865162461bcd60e51b8152808901879052602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b939692505050611f3d33612cd3565b91835190611f4a82612490565b604282528682019260603685378251156105a757603084538251906001918210156105945790607860218501536041915b818311611fd0575050506104fa5760486104cd9385936104dc936104f6975196879376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8c8601526104a48c82519283916037890191016124cc565b909192600f81166010811015610581576f181899199a1a9b1b9c1cb0b131b232b360811b901a6120008587612cc2565b53881c92801561056e57600019019190611f7b565b838234610294578160031936011261029457516526a4a72a22a960d11b8152602090f35b83903461029457602036600319011261029457612054612afe565b3560115580f35b83823461029457816003193601126102945760209060ff6012541690519015158152f35b83823461029457816003193601126102945780519082600c546120a1816123ef565b80855290600190818116908115610d2d57506001146120cc57505050610cc282610c709403836124ab565b600c8352602095507fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c75b8284106121125750505082610c7094610cc29282010194610cb0565b80548685018801529286019281016120f6565b8382346102945760208060031936011261067e5783358383805161214881612429565b82815282858201520152600a548110156121cd57606094508290600a8552828520015493848152600983522090808351926121828461245a565b549260018060a01b03908185169081815261ffff809660a01c1694859101528580516121ad81612429565b888152848101928352019384528551968752511690850152511690820152f35b634e487b7160e01b845260328552602484fd5b833461026d57602036600319011261026d576121fa6123aa565b612202612afe565b600e80546001600160a01b0319166001600160a01b039290921691909117905580f35b9091503461067e57602036600319011261067e5735906001600160e01b0319821680830361156c5760209350637965db0b60e01b811480156122cf575b809381156122bd575b50831561227d575b5050519015158152f35b91925063152a902d60e11b8114919082156122ac575b5081156122a4575b50903880612273565b90503861229b565b63c69dbd8f60e01b14915038612293565b6122c8919450612dbf565b923861226b565b506122d983612dbf565b612262565b8382346102945780600319360112610294576020906123076122fe6123aa565b60243590612810565b9051908152f35b849150346102945781600319360112610294579190600f54908184526020938481018093600f845286842090845b81811061239657505050816123529103826124ab565b83519485948186019282875251809352850193925b82811061237657505050500390f35b83516001600160a01b031685528695509381019392810192600101612367565b82548452928801926001928301920161233c565b600435906001600160a01b03821682036123c057565b600080fd5b602435906001600160a01b03821682036123c057565b35906001600160a01b03821682036123c057565b90600182811c9216801561241f575b602083101461240957565b634e487b7160e01b600052602260045260246000fd5b91607f16916123fe565b606081019081106001600160401b0382111761244457604052565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761244457604052565b602081019081106001600160401b0382111761244457604052565b608081019081106001600160401b0382111761244457604052565b90601f801991011681019081106001600160401b0382111761244457604052565b60005b8381106124df5750506000910152565b81810151838201526020016124cf565b90602091612508815180928185528580860191016124cc565b601f01601f1916010190565b60609060031901126123c0576004356001600160a01b03811681036123c057906024359060443590565b6001600160401b0381116124445760051b60200190565b81601f820112156123c05780359161256c8361253e565b9261257a60405194856124ab565b808452602092838086019260051b8201019283116123c0578301905b8282106125a4575050505090565b81358152908301908301612596565b6001600160401b03811161244457601f01601f191660200190565b9291926125da826125b3565b916125e860405193846124ab565b8294818452818301116123c0578281602093846000960137010152565b9080601f830112156123c057816020612620933591016125ce565b90565b90815180825260208080930193019160005b828110612643575050505090565b835185529381019392810192600101612635565b60206003198201126123c057600435906001600160401b0382116123c057806023830112156123c057816024612620936004013591016125ce565b818102929181159184041417156126a557565b634e487b7160e01b600052601160045260246000fd5b6000908152600960205260408120549092916001600160a01b03918216612723576008549182169182151580612713575b6126f7575050508190565b6127109294509061ffff61270f9260a01c1690612692565b0490565b5061ffff8160a01c1615156126ec565b61270f9061ffff604061271094818820541696205460a01c1690612692565b906000918083526003602052604083209160018060a01b03169182845260205260ff60408420541661277357505050565b8083526003602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4565b6004546001600160a01b031633036127cc57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b031690811561283d57600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b60001981146126a55760010190565b80518210156128b85760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b156128d557565b60405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526d195c881bdc88185c1c1c9bdd995960921b6064820152608490fd5b1561293857565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b1561299257565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b919082018092116126a557565b908160209103126123c057516001600160e01b0319811681036123c05790565b60009060033d11612a2457565b905060046000803e60005160e01c90565b600060443d1061262057604051600319913d83016004833e81516001600160401b03918282113d602484011117612a9257818401948551938411612a9a573d85010160208487010111612a925750612620929101602001906124ab565b949350505050565b50949350505050565b60405190612ab08261245a565b600182526020820160203682378251156128b8575290565b600a548110156128b857600a60005260206000200190600090565b600f548110156128b857600f60005260206000200190600090565b3360009081527f63f6944974ed01e0c77f5fd425d412bc87a2a97469803ba02a51ba75d9154da4602090815260408083205490926420a226a4a760d91b9160ff1615612b4a5750505050565b612b5333612cd3565b91845190612b6082612490565b60428252848201926060368537825115612cae5760308453825190600191821015612cae5790607860218501536041915b818311612c4057505050612c105760486104f6938693612bf493612be5985198899376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8a8601526104a4815180928c6037890191016124cc565b010360288101875201856124ab565b5192839262461bcd60e51b8452600484015260248301906124ef565b60648486519062461bcd60e51b825280600483015260248201526000805160206135368339815191526044820152fd5b909192600f81166010811015612c9a576f181899199a1a9b1b9c1cb0b131b232b360811b901a612c708587612cc2565b5360041c928015612c8657600019019190612b91565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b9081518110156128b8570160200190565b60405190612ce082612429565b602a82526020820160403682378251156128b8576030905381516001908110156128b857607860218401536029905b808211612d51575050612d1f5790565b606460405162461bcd60e51b815260206004820152602060248201526000805160206135368339815191526044820152fd5b9091600f81166010811015612daa576f181899199a1a9b1b9c1cb0b131b232b360811b901a612d808486612cc2565b5360041c918015612d95576000190190612d0f565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b63ffffffff60e01b16636cdb3d1360e11b8114908115612df2575b8115612de4575090565b6301ffc9a760e01b14919050565b6303a24d0760e21b81149150612dda565b15612e0a57565b60405162461bcd60e51b815260206004820152600b60248201526a496e76616c69642062707360a81b6044820152606490fd5b6000818152600b6020526040812054612eb757600a54600160401b811015612ea3579082612e8f612e7684600160409601600a55612ac8565b819391549060031b600019811b9283911b169119161790565b9055600a54928152600b6020522055600190565b634e487b7160e01b82526041600452602482fd5b905090565b600081815260106020526040812054612eb757600f54600160401b811015612ea3579082612ef5612e7684600160409601600f55612ae3565b9055600f5492815260106020522055600190565b6000818152600b60205260408120549091908015612fee5760001990808201818111612fda57600a5490838201918211612fc657808203612f92575b505050600a548015612f7e57810190612f5d82612ac8565b909182549160031b1b19169055600a558152600b6020526040812055600190565b634e487b7160e01b84526031600452602484fd5b612fb0612fa1612e7693612ac8565b90549060031b1c928392612ac8565b90558452600b6020526040842055388080612f45565b634e487b7160e01b86526011600452602486fd5b634e487b7160e01b85526011600452602485fd5b505090565b6000818152601060205260408120549091908015612fee5760001990808201818111612fda57600f5490838201918211612fc657808203613068575b505050600f548015612f7e5781019061304782612ae3565b909182549160031b1b19169055600f55815260106020526040812055600190565b613086613077612e7693612ae3565b90549060031b1c928392612ae3565b905584526010602052604084205538808061302f565b60ff601254161561316f576001600160a01b03818116600090815260106020526040812054158015939192906130d3575b50505090565b600e54601154604051630f8350ed60e41b81526001600160a01b03949094166004850152602484015291935060209184916044918391165afa918215613162578192613124575b50503880806130cd565b9091506020813d821161315a575b8161313f602093836124ab565b81010312610294575190811515820361026d5750388061311a565b3d9150613132565b50604051903d90823e3d90fd5b50600190565b61317e8261309c565b156131ae5760018060a01b0380911660005260016020526040600020911660005260205260ff6040600020541690565b5050600090565b156131bc57565b60405162461bcd60e51b815260206004820152600f60248201526e3737ba1030b236b4b71037b7363c9760891b6044820152606490fd5b6005546001600160a01b031690600082156132b8575060009060246040518094819363c87b56dd60e01b835260048301525afa9081156132ac57600091613238575090565b903d8082843e61324881846124ab565b820191602081840312610294578051906001600160401b03821161067e570182601f820112156102945780519161327e836125b3565b9361328c60405195866124ab565b8385526020848401011161026d57509061262091602080850191016124cc565b6040513d6000823e3d90fd5b909150818172184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8281811015613527575b50506d04ee2d6d415b85acef81000000008083101561351a575b50662386f26fc100008083101561350d575b506305f5e10080831015613500575b50612710808310156134f3575b5060648210156134e5575b600a809210156134dd575b60018082019461336461334e876125b3565b9661335c60405198896124ab565b8088526125b3565b93602091836021848a0196601f198099013689378a0101905b6134ae575b5050506040519586938691600654613399816123ef565b9085878216918260001461348f575050600114613452575b5082916133c191519384916124cc565b019085600754936133d1856123ef565b9481811690811561343357506001146133fa575b505050505061262092039081018352826124ab565b6007825282822097505b84821061341d57505050019250612620388080806133e5565b8754848301529687019688955090820190613404565b60ff1916855250505050811515909102019250612620388080806133e5565b909192506006885283882088905b8282106134775750508501830191906133c16133b1565b80549782018601979097528996908501908601613460565b60ff191689820152821515909202880190910193506133c190506133b1565b600019019082906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a83530490848261337d5750613382565b60010161333c565b906064600291049101613331565b6004919204910138613326565b6008919204910138613319565b601091920491013861330a565b60209192049101386132f8565b9150915004604038806132de56fe537472696e67733a20686578206c656e67746820696e73756666696369656e74c3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62a2646970667358221220e53cae8c238cdf57c2be0148e26b5ead41e549ee5079f8994df015c48a730fb764736f6c63430008110033

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.