ETH Price: $3,955.57 (+2.02%)

Token

OmochiBigaku (OB)
 

Overview

Max Total Supply

499 OB

Holders

476

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0xa0add699e85700792ba1573a3d31a45d3a1ea19e
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
FungibleSBT

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : FungibleSBT.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0 <0.9.0;

import "./IFungibleSBT.sol";
import "./libs/TokenUriSupplier.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract FungibleSBT is
    IFungibleSBT,
    ERC1155,
    Ownable,
    AccessControl,
    TokenUriSupplier
{
    using Strings for uint256;

    // ==================================================
    // Constants
    // ==================================================
    bytes32 public constant ADMIN = "ADMIN";
    bytes32 public constant MINTER = "MINTER";

    // ==================================================
    // Variables
    // ==================================================
    uint256 public nextId = 1;

    // Contract name
    string public name;
    // Contract symbol
    string public symbol;

    string public contractURI;

    constructor(
        string memory _name,
        string memory _symbol,
        string memory _baseContractURI,
        address _owner,
        address _minter
    ) ERC1155("") {
        name = _name;
        symbol = _symbol;

        contractURI = string(
            abi.encodePacked(
                _baseContractURI,
                Strings.toHexString(address(this)),
                "/collection.json"
            )
        );

        baseURI = string(
            abi.encodePacked(
                _baseContractURI,
                Strings.toHexString(address(this)),
                "/metadata/"
            )
        );

        _grantRole(ADMIN, _owner);
        _grantRole(MINTER, _minter);
        _transferOwnership(_owner);
    }

    // ==================================================
    // For contract-level metadata
    // ==================================================
    function setContractURI(string memory value) external onlyRole(ADMIN) {
        contractURI = value;
    }

    // ==================================================
    // For adding id
    // ==================================================
    function add() external {
        nextId++;
    }

    function exists(uint256 id) public view returns (bool) {
        return id < nextId;
    }

    // ==================================================
    // For mint
    // ==================================================
    // external function
    function airdrop(address[] calldata to, uint256 id)
        external
        onlyRole(ADMIN)
    {
        for (uint256 i = 0; i < to.length; i++) {
            _mint(to[i], id);
        }
    }

    function mint(address to, uint256 id) external onlyRole(MINTER) {
        _mint(to, id);
    }

    // internal function
    modifier existId(uint256 id) {
        require(exists(id), "Not exist id.");
        _;
    }

    modifier notHave(address to, uint256 id) {
        require(
            balanceOf(to, id) == 0,
            "You are already have the token."
        );
        _;
    }

    function _mint(address to, uint256 id) private existId(id) notHave(to, id) {
        _mint(to, id, 1, "");
    }

    // ==================================================
    // For burn
    // ==================================================
    modifier onlyTokenOwner(uint256 id) {
        require(balanceOf(msg.sender, id) > 0, "You don't have the token.");
        _;
    }

    function burn(uint256 id) external onlyTokenOwner(id) {
        _burn(msg.sender, id, 1);
    }

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

    // ==================================================================
    // For SBT
    // ==================================================================
    function setApprovalForAll(address, bool) public virtual override {
        revert("This token is SBT, so this can not approve.");
    }

    function _beforeTokenTransfer(
        address,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory,
        bytes memory
    ) internal virtual override {
        for (uint256 i = 0; i < ids.length; i++) {
            require(
                from == address(0) || to == address(0),
                "This token is SBT, so this can not transfer."
            );
        }
    }

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

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

    // ==================================================================
    // operations
    // ==================================================================
    function grantRole(bytes32 role, address account)
        public
        override
        onlyOwner
    {
        _grantRole(role, account);
    }

    function revokeRole(bytes32 role, address account)
        public
        override
        onlyOwner
    {
        _revokeRole(role, account);
    }
}

File 2 of 17 : 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 3 of 17 : 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 4 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

File 9 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

File 13 of 17 : 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 14 of 17 : 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 15 of 17 : IFungibleSBT.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0 <0.9.0;

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

    function owner() external view returns (address);

    function add() external;

    function exists(uint256 id) external view returns (bool);

    function nextId() external view returns (uint256);
}

File 16 of 17 : 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 17 of 17 : 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": 200
  },
  "viaIR": true,
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseContractURI","type":"string"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_minter","type":"address"}],"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":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":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":"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":[],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"airdrop","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":"uint256","name":"id","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","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":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","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":"","type":"address"},{"internalType":"bool","name":"","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":"string","name":"value","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_value","type":"address"}],"name":"setExternalSupplier","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"}]

6080604081815234620007935762003853803803809162000021828662000798565b843982019160a081840312620007935780516001600160401b03939084811162000793578162000053918401620007e1565b9060208084015186811162000793578262000070918601620007e1565b91858501519087821162000793576200008b918601620007e1565b92620000a86080620000a0606088016200083c565b96016200083c565b928651948386018681108a8211176200077d5788526000809652620000cf60025462000851565b90601f918281116200075c575b5086600255620000ec33620008a7565b600692620000fb845462000851565b8381116200073c575b50600084556200011660075462000851565b8381116200071b575b50600a64173539b7b760d91b0160075560016008819055855190958c8211620005ad5781906200015160095462000851565b868111620006ea575b50889086831160011462000684578b9262000678575b5050600019600383901b1c191690861b176009555b8051908b8211620006645781906200019f600a5462000851565b85811162000633575b508790858311600114620005cd578a92620005c1575b5050600019600383901b1c191690851b17600a555b620001de30620008f0565b89516200023c6030828551948a870195620001fd818d850189620007bc565b8201620002148c83519381859285019101620007bc565b016f17b1b7b63632b1ba34b7b7173539b7b760811b8b82015203601081018452018262000798565b8051908c8211620005ad5762000254600b5462000851565b8581116200057c575b5087908a86841160011462000503579280620002b79693620002ef9693602a9692620004f7575b5050600019600383901b1c191690891b17600b555b620002a430620008f0565b908d519586935180928c860190620007bc565b8201620002cd825180938c8085019101620007bc565b01692f6d657461646174612f60b01b8982015203600a81018452018262000798565b8051998a11620004e35762000305835462000851565b8a838211620004a7575b505084918a116001146200043e57988091620003b0999a889262000432575b5050600019600383901b1c191690831b1790555b6420a226a4a760d91b808552600483528785206001600160a01b0387811680885291855289872054909492919060ff1615620003f9575b50506526a4a72a22a960d11b80865260048252888620949093168086529381528785205460ff1615620003be575b878787620008a7565b51612e06908162000a2d8239f35b8285526004815287852090848652528684209060ff1982541617905560008051602062003833833981519152339380a43880808080620003a7565b818752600483528987208188528352898720805460ff1916851790553391600080516020620038338339815191528880a4388062000379565b0151905038806200032e565b8287528487209190601f198b16885b818110620004915750918593918c620003b09c9d941062000477575b505050811b01905562000342565b015160001960f88460031b161c1916905538808062000469565b828401518555938601939287019287016200044d565b620004d191858a5284888b20918982850160051c84019410620004d9575b0160051c01906200088e565b388a6200030f565b92508192620004c5565b634e487b7160e01b87526041600452602487fd5b01519050388062000284565b50600b8b52888b208893929091601f1984168d5b8c8282106200056557505092602a95928592620002b79996620002ef9996106200054b575b505050811b01600b5562000299565b015160001960f88460031b161c191690553880806200053c565b8385015186558c9790950194938401930162000517565b620005a690600b8c52898c208780860160051c8201928c8710620004d9570160051c01906200088e565b386200025d565b634e487b7160e01b8a52604160045260248afd5b015190503880620001be565b600a8b52888b208894509190601f1984168c5b8b8282106200061c575050841162000602575b505050811b01600a55620001d3565b015160001960f88460031b161c19169055388080620005f3565b8385015186558b97909501949384019301620005e0565b6200065d90600a8c52898c208780860160051c8201928c8710620004d9570160051c01906200088e565b38620001a8565b634e487b7160e01b89526041600452602489fd5b01519050388062000170565b60098c52898c208994509190601f1984168d5b8c828210620006d35750508411620006b9575b505050811b0160095562000185565b015160001960f88460031b161c19169055388080620006aa565b8385015186558c9790950194938401930162000697565b620007149060098d528a8d208880860160051c8201928d8710620004d9570160051c01906200088e565b386200015a565b600789528689206200073591850160051c8101906200088e565b386200011f565b8489528689206200075591850160051c8101906200088e565b3862000104565b600288528588206200077691840160051c8101906200088e565b38620000dc565b634e487b7160e01b600052604160045260246000fd5b600080fd5b601f909101601f19168101906001600160401b038211908210176200077d57604052565b60005b838110620007d05750506000910152565b8181015183820152602001620007bf565b81601f82011215620007935780516001600160401b0381116200077d576040519262000818601f8301601f19166020018562000798565b818452602082840101116200079357620008399160208085019101620007bc565b90565b51906001600160a01b03821682036200079357565b90600182811c9216801562000883575b60208310146200086d57565b634e487b7160e01b600052602260045260246000fd5b91607f169162000861565b8181106200089a575050565b600081556001016200088e565b600380546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b604051906001600160a01b0316606082016001600160401b038111838210176200077d57604052602a8252602090818301604036823783511562000a165760309053825160019081101562000a1657607860218501536029905b808211620009a05750506200095d575090565b6064906040519062461bcd60e51b825280600483015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b9091600f8116601081101562000a0157855184101562000a01576f181899199a1a9b1b9c1cb0b131b232b360811b901a85840185015360041c918015620009ec5760001901906200094a565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b634e487b7160e01b600052603260045260246000fdfe6040608081526004908136101561001557600080fd5b600091823560e01c908162fdd58e14611e6257816301ffc9a714611df357816306fdde0314611d495781630e89341c1461085a578163248a9ca314611d1f57816325752d1814611cda5781632a0acc6a14611cb75781632eb2c2d6146119585781632f2ff15d146118bc57816336568abe1461182a57816340c10f19146114cc57816342966c68146112b15781634e1273f4146111145781634f2be91f146110f25781634f558e79146110ce57816355f804b314610f9357816361b8ce8c14610f745781636c0360eb14610edc578163715018a614610e7f57816380f801cb14610e565781638da5cb5b14610e2d57816391d1485414610de7578163938e3d7b14610c8857816395d89b4114610bde578163a217fddf14610bc3578163a22cb46514610b45578163c204642c14610926578163c66828621461088e578163c87b56dd1461085a578163d547741f1461082a578163da3ef23f146106d9578163e8a3d485146105f0578163e985e9c5146105a2578163f242432a146102a4578163f2fde38b146101d4575063fe6d8124146101ae57600080fd5b346101d057816003193601126101d057516526a4a72a22a960d11b8152602090f35b5080fd5b9050346102a05760203660031901126102a0576101ef611e92565b906101f8612197565b6001600160a01b0391821692831561024e575050600354826bffffffffffffffffffffffff60a01b821617600355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b9050346102a05760a03660031901126102a0576102bf611e92565b6102c7611ead565b9260449081359260649384359660849889356001600160401b0381116101d0576102f49036908a01612094565b986001600160a01b03948516943386148015610583575b610317909b969b6122d0565b8316938415946103278615612333565b610330826126a6565b9b8c9761033c856126a6565b50859682159788159a5b518110156103c857888b6103c1575b156103695761036390612274565b8f610346565b5050895162461bcd60e51b81526020818f0152602c60248201527f5468697320746f6b656e206973205342542c20736f20746869732063616e206e818d01526b37ba103a3930b739b332b91760a11b818e01528f9150fd5b5089610355565b508f938798508c8f988f958e9995600080516020612d71833981519152999586845285838d60209d8e91888352808920848a5283528c818a205461040e8282101561238d565b8d8b528a8552828b20868c52855203818a20558b8952888352808920858a5283528c61043e828b209182546123fa565b90558c8151938d85528401523392a43b610456578280f35b8b988a978c51998a988997889663f23a6e6160e01b9e8f895233908901526024880152860152840152820160a0905260a4820161049291611fa8565b03925af1869181610554575b506105235750506001906104b0612470565b6308c379a0146104f0575b506104d35750505b8180808080808080808981808280f35b5162461bcd60e51b8152915081906104ec9082016124fc565b0390fd5b6104f861248e565b8061050357506104bb565b6104ec8591855193849362461bcd60e51b85528401526024830190611fa8565b6001600160e01b03191603905061053b5750506104c3565b5162461bcd60e51b8152915081906104ec908201612427565b610575919250843d861161057c575b61056d8183611f64565b810190612407565b908761049e565b503d610563565b508583526001602090815287842033855290528683205460ff1661030b565b5050346101d057806003193601126101d05760ff816020936105c2611e92565b6105ca611ead565b6001600160a01b0391821683526001875283832091168252855220549151911615158152f35b5050346101d057816003193601126101d05780519082600b5461061281611ec3565b808552916001918083169081156106b15750600114610654575b50505061063e82610650940383611f64565b51918291602083526020830190611fa8565b0390f35b9450600b85527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db95b8286106106995750505061063e826020610650958201019461062c565b8054602087870181019190915290950194810161067c565b61065097508693506020925061063e94915060ff191682840152151560051b8201019461062c565b8334610827576106e8366120e6565b916106f16126c7565b8251906001600160401b038211610814575061070e600754611ec3565b601f81116107c3575b50602080601f831160011461075457508293829392610749575b50508160011b916000199060031b1c19161760075580f35b015190508380610731565b60078452601f19831694600080516020612d91833981519152929185905b8782106107ab575050836001959610610792575b505050811b0160075580f35b015160001960f88460031b161c19169055838080610786565b80600185968294968601518155019501930190610772565b60078352600080516020612d91833981519152601f830160051c8101916020841061080a575b601f0160051c01905b8181106107ff5750610717565b8381556001016107f2565b90915081906107e9565b634e487b7160e01b835260419052602482fd5b80fd5b919050346102a0573660031901126101d05761085790610848611ead565b90610851612197565b35612121565b80f35b828434610827576020366003190112610827575061087b6106509235612a12565b9051918291602083526020830190611fa8565b5050346101d057816003193601126101d057805190826007546108b081611ec3565b808552916001918083169081156106b157506001146108db5750505061063e82610650940383611f64565b945060078552600080516020612d918339815191525b82861061090e5750505061063e826020610650958201019461062c565b805460208787018101919091529095019481016108f1565b839150346101d057826003193601126101d0576001600160401b03908035828111610b3d5736602382011215610b3d5780820135928311610b3d57602491600591368486851b83010111610b41579286948135916109826126c7565b87945b828610610990578880f35b8186829a939495969798999a1b890101359360018060a01b03851693848603610b3d57600854871015610b0b576109c787876121ef565b610ac9578a51976109d789611efd565b8489528515610a7e576109e9886126a6565b9a6109f2612680565b50855b8d8d51821015610a0e5750610a0990612274565b6109f5565b87610a6e97989e50610a69959c949a92508b9399919d969d848252600080516020612d718339815191526020918383528084208585528352808420610a5381546123ec565b905560018151938885528401523392a433612551565b612274565b9490979697959195939293610985565b602160849260208e519362461bcd60e51b85528401528201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152fd5b87601f60649260208e519362461bcd60e51b85528401528201527f596f752061726520616c726561647920686176652074686520746f6b656e2e006044820152fd5b87600d60649260208e519362461bcd60e51b85528401528201526c2737ba1032bc34b9ba1034b21760991b6044820152fd5b8380fd5b8580fd5b90508234610827578260031936011261082757610b60611e92565b506024358015150361082757506020608492519162461bcd60e51b8352820152602b60248201527f5468697320746f6b656e206973205342542c20736f20746869732063616e206e60448201526a37ba1030b8383937bb329760a91b6064820152fd5b5050346101d057816003193601126101d05751908152602090f35b5050346101d057816003193601126101d05780519082600a54610c0081611ec3565b808552916001918083169081156106b15750600114610c2b5750505061063e82610650940383611f64565b9450600a85527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a85b828610610c705750505061063e826020610650958201019461062c565b80546020878701810191909152909501948101610c53565b833461082757610c97366120e6565b91610ca06126c7565b8251906001600160401b0382116108145750610cbd600b54611ec3565b601f8111610d84575b50602080601f8311600114610d0357508293829392610cf8575b50508160011b916000199060031b1c191617600b5580f35b015190508380610ce0565b600b8452601f198316947f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9929185905b878210610d6c575050836001959610610d53575b505050811b01600b5580f35b015160001960f88460031b161c19169055838080610d47565b80600185968294968601518155019501930190610d33565b600b83527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9601f830160051c81019160208410610ddd575b601f0160051c01905b818110610dd25750610cc6565b838155600101610dc5565b9091508190610dbc565b9050346102a057816003193601126102a0578160209360ff92610e08611ead565b813583529086528282206001600160a01b039091168252855220549151911615158152f35b5050346101d057816003193601126101d05760035490516001600160a01b039091168152602090f35b5050346101d057816003193601126101d05760055490516001600160a01b039091168152602090f35b8334610827578060031936011261082757610e98612197565b600380546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5050346101d057816003193601126101d05780519082600654610efe81611ec3565b808552916001918083169081156106b15750600114610f295750505061063e82610650940383611f64565b945060068552600080516020612db18339815191525b828610610f5c5750505061063e826020610650958201019461062c565b80546020878701810191909152909501948101610f3f565b5050346101d057816003193601126101d0576020906008549051908152f35b833461082757610fa2366120e6565b91610fab6126c7565b8251906001600160401b0382116108145750610fc8600654611ec3565b601f811161107d575b50602080601f831160011461100e57508293829392611003575b50508160011b916000199060031b1c19161760065580f35b015190508380610feb565b60068452601f19831694600080516020612db1833981519152929185905b87821061106557505083600195961061104c575b505050811b0160065580f35b015160001960f88460031b161c19169055838080611040565b8060018596829496860151815501950193019061102c565b60068352600080516020612db1833981519152601f830160051c810191602084106110c4575b601f0160051c01905b8181106110b95750610fd1565b8381556001016110ac565b90915081906110a3565b9050346102a05760203660031901126102a057602092506008549035109051908152f35b833461082757806003193601126108275761110e600854612274565b60085580f35b9050346102a057816003193601126102a05780356001600160401b038082116112ad57366023830112156112ad57818301359061115082611fcd565b9261115d86519485611f64565b82845260209260248486019160051b830101913683116112a957602401905b82821061128657505050602435908111610b415761119d9036908501611fe4565b92825184510361123357508151946111b486611fcd565b956111c186519788611f64565b8087526111d0601f1991611fcd565b0136838801375b82518110156112215761121c9061120c6001600160a01b036111f983876122bc565b511661120583886122bc565b51906121ef565b61121682896122bc565b52612274565b6111d7565b845182815280610650818501896120b2565b60849185519162461bcd60e51b8352820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152fd5b81356001600160a01b03811681036112a557815290840190840161117c565b8980fd5b8880fd5b8480fd5b919050346102a05760209081600319360112610b3d578235936112d485336121ef565b1561148a5733159081159161143b576112ec866126a6565b956112f5612680565b5081845161130281611efd565b52815b8751811015611388578284611380575b156113285761132390612274565b611305565b845162461bcd60e51b8152808801879052602c60248201527f5468697320746f6b656e206973205342542c20736f20746869732063616e206e60448201526b37ba103a3930b739b332b91760a11b6064820152608490fd5b506001611315565b509150929381845283855282842033855285528284205490600182106113ec5750906001849585938361085797528482528585203386528252600019018585205584519283528201523390600080516020612d71833981519152843392a451611efd565b835162461bcd60e51b81529081018690526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608490fd5b50505162461bcd60e51b815291820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b606482015260849150fd5b505162461bcd60e51b815291820152601960248201527f596f7520646f6e277420686176652074686520746f6b656e2e00000000000000604482015260649150fd5b9050346102a057816003193601126102a0576114e6611e92565b6024908135916526a4a72a22a960d11b808752602090858252868820338952825260ff87892054161561166b575060085484101561163a5761152884846121ef565b6115f95785519461153886611efd565b8786526001600160a01b0384169283156115af575050611557846126a6565b95611560612680565b50875b88885182101561157c575061157790612274565b611563565b92916108579850600080516020612d7183398151915291508684528383528084208585528352808420610a5381546123ec565b60219060849389519362461bcd60e51b85528401528201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152fd5b601f606492869288519362461bcd60e51b85528401528201527f596f752061726520616c726561647920686176652074686520746f6b656e2e006044820152fd5b600d606492869288519362461bcd60e51b85528401528201526c2737ba1032bc34b9ba1034b21760991b6044820152fd5b828787928a611679336128c0565b9183519061168682611f49565b6042825287820192606036853782511561181857603084538251906001918210156118065790607860218501536041915b81831161179d5750505061175d5760486104ec9593859361174593611736975197889376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8d86015261170d8d8251928391603789019101611f85565b8401917001034b99036b4b9b9b4b733903937b6329607d1b603784015251809386840190611f85565b01036028810186520184611f64565b5194859462461bcd60e51b8652850152830190611fa8565b60648688878188519362461bcd60e51b85528401528201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f811660108110156117f4576f181899199a1a9b1b9c1cb0b131b232b360811b901a6117cd85876128af565b53891c9280156117e2576000190191906116b7565b634e487b7160e01b825260118a528882fd5b634e487b7160e01b835260328b528983fd5b634e487b7160e01b8152603289528790fd5b634e487b7160e01b8152603288528690fd5b839150346101d057826003193601126101d057611845611ead565b90336001600160a01b0383160361186157906108579135612121565b608490602085519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152fd5b9050346102a057816003193601126102a0578035916118d9611ead565b916118e2612197565b83855260208181528286206001600160a01b039094168087529390528185205460ff161561190e578480f35b8385526020528084208285526020528320600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a4388080808480f35b839150346101d0576003199160a03684011261082757611976611e92565b9361197f611ead565b906044918235966001600160401b0397888111610b41576119a39036908801611fe4565b9660649586358a81116101d0576119bd9036908a01611fe4565b9360849a8b359081116102a0576119d79036908b01612094565b946001600160a01b03948516943386148015611c98575b6119f7906122d0565b8b51825103611c4757829b96949b16801595611a138715612333565b84978115968715995b8251811015611a4657888b611a3f575b1561036957611a3a90612274565b611a1c565b5089611a2c565b50949d939c975097509799945097929b8c5b8d8851821015611add57908c611ad18d611ad8948e8e611a848f611a7d8980926122bc565b51976122bc565b51958084528660209285845286862081875284528686205490611aa98383101561238d565b83875286855287872090875284520385852055835282815283832091835252209182546123fa565b9055612274565b611a58565b9b90508c9a99969a9894959887868c7f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb611b1f8d8351938085528401906120b2565b91808303602082015280611b343394896120b2565b0390a43b611b40578b80f35b8a988a51988997889763bc197c8160e01b9c8d8a5233908a01526024890152870160a0905260a48701611b72916120b2565b90848783030190870152611b85916120b2565b918483030190840152611b9791611fa8565b0381885a94602095f1859181611c27575b50611c115750506001611bb9612470565b6308c379a014611bda575b6104d35750505b81808080808080808080808b80f35b611be261248e565b80611bed5750611bc4565b90506104ec91602094505193849362461bcd60e51b85528401526024830190611fa8565b6001600160e01b0319160361053b575050611bcb565b611c4091925060203d811161057c5761056d8183611f64565b9086611ba8565b875162461bcd60e51b81526020818d0152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e67746820818b0152670dad2e6dac2e8c6d60c31b818c01528d90fd5b508584526001602090815288852033865290528784205460ff166119ee565b5050346101d057816003193601126101d057516420a226a4a760d91b8152602090f35b833461082757602036600319011261082757611cf4611e92565b611cfc6126c7565b60018060a01b03166bffffffffffffffffffffffff60a01b600554161760055580f35b9050346102a05760203660031901126102a057816020938260019335825285522001549051908152f35b5050346101d057816003193601126101d05780519082600954611d6b81611ec3565b808552916001918083169081156106b15750600114611d965750505061063e82610650940383611f64565b9450600985527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af5b828610611ddb5750505061063e826020610650958201019461062c565b80546020878701810191909152909501948101611dbe565b9050346102a05760203660031901126102a05735906001600160e01b03198216808303610b3d5760209350637965db0b60e01b14918215611e51575b8215611e3f575b50519015158152f35b611e4a9192506129ce565b9038611e36565b9150611e5c826129ce565b91611e2f565b5050346101d057806003193601126101d057602090611e8b611e82611e92565b602435906121ef565b9051908152f35b600435906001600160a01b0382168203611ea857565b600080fd5b602435906001600160a01b0382168203611ea857565b90600182811c92168015611ef3575b6020831014611edd57565b634e487b7160e01b600052602260045260246000fd5b91607f1691611ed2565b602081019081106001600160401b03821117611f1857604052565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b03821117611f1857604052565b608081019081106001600160401b03821117611f1857604052565b90601f801991011681019081106001600160401b03821117611f1857604052565b60005b838110611f985750506000910152565b8181015183820152602001611f88565b90602091611fc181518092818552858086019101611f85565b601f01601f1916010190565b6001600160401b038111611f185760051b60200190565b81601f82011215611ea857803591611ffb83611fcd565b926120096040519485611f64565b808452602092838086019260051b820101928311611ea8578301905b828210612033575050505090565b81358152908301908301612025565b6001600160401b038111611f1857601f01601f191660200190565b92919261206982612042565b916120776040519384611f64565b829481845281830111611ea8578281602093846000960137010152565b9080601f83011215611ea8578160206120af9335910161205d565b90565b90815180825260208080930193019160005b8281106120d2575050505090565b8351855293810193928101926001016120c4565b6020600319820112611ea857600435906001600160401b038211611ea85780602383011215611ea8578160246120af9360040135910161205d565b906000918083526004602052604083209160018060a01b03169182845260205260ff60408420541661215257505050565b8083526004602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4565b6003546001600160a01b031633036121ab57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b031690811561221c57600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b60001981146122835760010190565b634e487b7160e01b600052601160045260246000fd5b8051156122a65760200190565b634e487b7160e01b600052603260045260246000fd5b80518210156122a65760209160051b010190565b156122d757565b60405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526d195c881bdc88185c1c1c9bdd995960921b6064820152608490fd5b1561233a57565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b1561239457565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b906001820180921161228357565b9190820180921161228357565b90816020910312611ea857516001600160e01b031981168103611ea85790565b60809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b60009060033d1161247d57565b905060046000803e60005160e01c90565b600060443d106120af57604051600319913d83016004833e81516001600160401b03918282113d6024840111176124eb578184019485519384116124f3573d850101602084870101116124eb57506120af92910160200190611f64565b949350505050565b50949350505050565b60809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356040820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60608201520190565b9192813b612560575b50505050565b6020916125b091600060405195868095819463f23a6e6160e01b9a8b845260018060a01b03809516600485015285602485015260448401526001606484015260a0608484015260a4830190611fa8565b0393165af160009181612660575b5061263857505060016125cf612470565b6308c379a014612601575b6125e8575b3880808061255a565b60405162461bcd60e51b8152806104ec600482016124fc565b61260961248e565b8061261457506125da565b60405162461bcd60e51b8152602060048201529081906104ec906024830190611fa8565b6001600160e01b031916146125df5760405162461bcd60e51b8152806104ec60048201612427565b61267991925060203d811161057c5761056d8183611f64565b90386125be565b60405161268c81611f2e565b600181526020368183013760016126a282612299565b5290565b604051906126b382611f2e565b60018252602036818401376126a282612299565b3360009081527fb24965f6fec6d515561eb5638d731469a6c4e923e59b9c1a72c12a009eb566d1602090815260408083205491926004926420a226a4a760d91b919060ff1615612718575050505050565b612721336128c0565b9183519061272e82611f49565b6042825286820192606036853782511561289c57603084538251906001918210156128895790607860218501536041915b81831161281e575050506127dd5760486127b49385936127c3936104ec975196879376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8c86015261170d8c8251928391603789019101611f85565b01036028810185520183611f64565b5193849362461bcd60e51b85528401526024830190611fa8565b606485878087519262461bcd60e51b845283015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f81166010811015612876576f181899199a1a9b1b9c1cb0b131b232b360811b901a61284e85876128af565b53881c9280156128635760001901919061275f565b634e487b7160e01b825260118952602482fd5b634e487b7160e01b835260328a52602483fd5b634e487b7160e01b815260328852602490fd5b634e487b7160e01b815260328752602490fd5b9081518110156122a6570160200190565b60405190606082018281106001600160401b03821117611f1857604052602a82526020820160403682378251156122a6576030905381516001908110156122a657607860218401536029905b80821161296057505061291c5790565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b9091600f811660108110156129b9576f181899199a1a9b1b9c1cb0b131b232b360811b901a61298f84866128af565b5360041c9180156129a457600019019061290c565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b63ffffffff60e01b16636cdb3d1360e11b8114908115612a01575b81156129f3575090565b6301ffc9a760e01b14919050565b6303a24d0760e21b811491506129e9565b6005546001600160a01b03169060008215612ad7575060009060246040518094819363c87b56dd60e01b835260048301525afa908115612acb57600091612a57575090565b903d8082843e612a678184611f64565b8201916020818403126101d0578051906001600160401b0382116102a0570182601f820112156101d057805191612a9d83612042565b93612aab6040519586611f64565b838552602084840101116108275750906120af9160208085019101611f85565b6040513d6000823e3d90fd5b90915081817a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008281811015612d62575b50506d04ee2d6d415b85acef810000000080831015612d55575b50662386f26fc1000080831015612d48575b506305f5e10080831015612d3b575b5061271080831015612d2e575b506064821015612d20575b600a80921015612d18575b600180820194612b88612b7287612042565b96612b806040519889611f64565b808852612042565b93602091836021848a0196601f198099013689378a0101905b612ce9575b5050506040519586938691600654612bbd81611ec3565b90858782169182600014612cca575050600114612c82575b508291612be59151938491611f85565b01908560075493612bf585611ec3565b94818116908115612c635750600114612c1e575b50505050506120af9203908101835282611f64565b60078252600080516020612d9183398151915297505b848210612c4d575050500192506120af38808080612c09565b8754848301529687019688955090820190612c34565b60ff19168552505050508115159091020192506120af38808080612c09565b600689529192509087600080516020612db18339815191525b828210612cb2575050850183019190612be5612bd5565b80549782018601979097528996908501908601612c9b565b60ff19168982015282151590920288019091019350612be59050612bd5565b600019019082906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a835304908482612ba15750612ba6565b600101612b60565b906064600291049101612b55565b6004919204910138612b4a565b6008919204910138612b3d565b6010919204910138612b2e565b6020919204910138612b1c565b915091500460403880612b0256fec3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62a66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688f652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3fa2646970667358221220cc20b549666c196f0c893794797037b9b0fac7b0e4996c4dfa0ccdb35569fae564736f6c634300081100332f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000006d5aa371d635059e44050894acc726574442f4b7000000000000000000000000dbd65e821b54eb30e2a516117a2ce1ed6837f504000000000000000000000000000000000000000000000000000000000000000c4f6d6f636869426967616b75000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024f42000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f666163656c6573732d7469636b65742f0000000000000000000000000000000000

Deployed Bytecode

0x6040608081526004908136101561001557600080fd5b600091823560e01c908162fdd58e14611e6257816301ffc9a714611df357816306fdde0314611d495781630e89341c1461085a578163248a9ca314611d1f57816325752d1814611cda5781632a0acc6a14611cb75781632eb2c2d6146119585781632f2ff15d146118bc57816336568abe1461182a57816340c10f19146114cc57816342966c68146112b15781634e1273f4146111145781634f2be91f146110f25781634f558e79146110ce57816355f804b314610f9357816361b8ce8c14610f745781636c0360eb14610edc578163715018a614610e7f57816380f801cb14610e565781638da5cb5b14610e2d57816391d1485414610de7578163938e3d7b14610c8857816395d89b4114610bde578163a217fddf14610bc3578163a22cb46514610b45578163c204642c14610926578163c66828621461088e578163c87b56dd1461085a578163d547741f1461082a578163da3ef23f146106d9578163e8a3d485146105f0578163e985e9c5146105a2578163f242432a146102a4578163f2fde38b146101d4575063fe6d8124146101ae57600080fd5b346101d057816003193601126101d057516526a4a72a22a960d11b8152602090f35b5080fd5b9050346102a05760203660031901126102a0576101ef611e92565b906101f8612197565b6001600160a01b0391821692831561024e575050600354826bffffffffffffffffffffffff60a01b821617600355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b9050346102a05760a03660031901126102a0576102bf611e92565b6102c7611ead565b9260449081359260649384359660849889356001600160401b0381116101d0576102f49036908a01612094565b986001600160a01b03948516943386148015610583575b610317909b969b6122d0565b8316938415946103278615612333565b610330826126a6565b9b8c9761033c856126a6565b50859682159788159a5b518110156103c857888b6103c1575b156103695761036390612274565b8f610346565b5050895162461bcd60e51b81526020818f0152602c60248201527f5468697320746f6b656e206973205342542c20736f20746869732063616e206e818d01526b37ba103a3930b739b332b91760a11b818e01528f9150fd5b5089610355565b508f938798508c8f988f958e9995600080516020612d71833981519152999586845285838d60209d8e91888352808920848a5283528c818a205461040e8282101561238d565b8d8b528a8552828b20868c52855203818a20558b8952888352808920858a5283528c61043e828b209182546123fa565b90558c8151938d85528401523392a43b610456578280f35b8b988a978c51998a988997889663f23a6e6160e01b9e8f895233908901526024880152860152840152820160a0905260a4820161049291611fa8565b03925af1869181610554575b506105235750506001906104b0612470565b6308c379a0146104f0575b506104d35750505b8180808080808080808981808280f35b5162461bcd60e51b8152915081906104ec9082016124fc565b0390fd5b6104f861248e565b8061050357506104bb565b6104ec8591855193849362461bcd60e51b85528401526024830190611fa8565b6001600160e01b03191603905061053b5750506104c3565b5162461bcd60e51b8152915081906104ec908201612427565b610575919250843d861161057c575b61056d8183611f64565b810190612407565b908761049e565b503d610563565b508583526001602090815287842033855290528683205460ff1661030b565b5050346101d057806003193601126101d05760ff816020936105c2611e92565b6105ca611ead565b6001600160a01b0391821683526001875283832091168252855220549151911615158152f35b5050346101d057816003193601126101d05780519082600b5461061281611ec3565b808552916001918083169081156106b15750600114610654575b50505061063e82610650940383611f64565b51918291602083526020830190611fa8565b0390f35b9450600b85527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db95b8286106106995750505061063e826020610650958201019461062c565b8054602087870181019190915290950194810161067c565b61065097508693506020925061063e94915060ff191682840152151560051b8201019461062c565b8334610827576106e8366120e6565b916106f16126c7565b8251906001600160401b038211610814575061070e600754611ec3565b601f81116107c3575b50602080601f831160011461075457508293829392610749575b50508160011b916000199060031b1c19161760075580f35b015190508380610731565b60078452601f19831694600080516020612d91833981519152929185905b8782106107ab575050836001959610610792575b505050811b0160075580f35b015160001960f88460031b161c19169055838080610786565b80600185968294968601518155019501930190610772565b60078352600080516020612d91833981519152601f830160051c8101916020841061080a575b601f0160051c01905b8181106107ff5750610717565b8381556001016107f2565b90915081906107e9565b634e487b7160e01b835260419052602482fd5b80fd5b919050346102a0573660031901126101d05761085790610848611ead565b90610851612197565b35612121565b80f35b828434610827576020366003190112610827575061087b6106509235612a12565b9051918291602083526020830190611fa8565b5050346101d057816003193601126101d057805190826007546108b081611ec3565b808552916001918083169081156106b157506001146108db5750505061063e82610650940383611f64565b945060078552600080516020612d918339815191525b82861061090e5750505061063e826020610650958201019461062c565b805460208787018101919091529095019481016108f1565b839150346101d057826003193601126101d0576001600160401b03908035828111610b3d5736602382011215610b3d5780820135928311610b3d57602491600591368486851b83010111610b41579286948135916109826126c7565b87945b828610610990578880f35b8186829a939495969798999a1b890101359360018060a01b03851693848603610b3d57600854871015610b0b576109c787876121ef565b610ac9578a51976109d789611efd565b8489528515610a7e576109e9886126a6565b9a6109f2612680565b50855b8d8d51821015610a0e5750610a0990612274565b6109f5565b87610a6e97989e50610a69959c949a92508b9399919d969d848252600080516020612d718339815191526020918383528084208585528352808420610a5381546123ec565b905560018151938885528401523392a433612551565b612274565b9490979697959195939293610985565b602160849260208e519362461bcd60e51b85528401528201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152fd5b87601f60649260208e519362461bcd60e51b85528401528201527f596f752061726520616c726561647920686176652074686520746f6b656e2e006044820152fd5b87600d60649260208e519362461bcd60e51b85528401528201526c2737ba1032bc34b9ba1034b21760991b6044820152fd5b8380fd5b8580fd5b90508234610827578260031936011261082757610b60611e92565b506024358015150361082757506020608492519162461bcd60e51b8352820152602b60248201527f5468697320746f6b656e206973205342542c20736f20746869732063616e206e60448201526a37ba1030b8383937bb329760a91b6064820152fd5b5050346101d057816003193601126101d05751908152602090f35b5050346101d057816003193601126101d05780519082600a54610c0081611ec3565b808552916001918083169081156106b15750600114610c2b5750505061063e82610650940383611f64565b9450600a85527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a85b828610610c705750505061063e826020610650958201019461062c565b80546020878701810191909152909501948101610c53565b833461082757610c97366120e6565b91610ca06126c7565b8251906001600160401b0382116108145750610cbd600b54611ec3565b601f8111610d84575b50602080601f8311600114610d0357508293829392610cf8575b50508160011b916000199060031b1c191617600b5580f35b015190508380610ce0565b600b8452601f198316947f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9929185905b878210610d6c575050836001959610610d53575b505050811b01600b5580f35b015160001960f88460031b161c19169055838080610d47565b80600185968294968601518155019501930190610d33565b600b83527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9601f830160051c81019160208410610ddd575b601f0160051c01905b818110610dd25750610cc6565b838155600101610dc5565b9091508190610dbc565b9050346102a057816003193601126102a0578160209360ff92610e08611ead565b813583529086528282206001600160a01b039091168252855220549151911615158152f35b5050346101d057816003193601126101d05760035490516001600160a01b039091168152602090f35b5050346101d057816003193601126101d05760055490516001600160a01b039091168152602090f35b8334610827578060031936011261082757610e98612197565b600380546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5050346101d057816003193601126101d05780519082600654610efe81611ec3565b808552916001918083169081156106b15750600114610f295750505061063e82610650940383611f64565b945060068552600080516020612db18339815191525b828610610f5c5750505061063e826020610650958201019461062c565b80546020878701810191909152909501948101610f3f565b5050346101d057816003193601126101d0576020906008549051908152f35b833461082757610fa2366120e6565b91610fab6126c7565b8251906001600160401b0382116108145750610fc8600654611ec3565b601f811161107d575b50602080601f831160011461100e57508293829392611003575b50508160011b916000199060031b1c19161760065580f35b015190508380610feb565b60068452601f19831694600080516020612db1833981519152929185905b87821061106557505083600195961061104c575b505050811b0160065580f35b015160001960f88460031b161c19169055838080611040565b8060018596829496860151815501950193019061102c565b60068352600080516020612db1833981519152601f830160051c810191602084106110c4575b601f0160051c01905b8181106110b95750610fd1565b8381556001016110ac565b90915081906110a3565b9050346102a05760203660031901126102a057602092506008549035109051908152f35b833461082757806003193601126108275761110e600854612274565b60085580f35b9050346102a057816003193601126102a05780356001600160401b038082116112ad57366023830112156112ad57818301359061115082611fcd565b9261115d86519485611f64565b82845260209260248486019160051b830101913683116112a957602401905b82821061128657505050602435908111610b415761119d9036908501611fe4565b92825184510361123357508151946111b486611fcd565b956111c186519788611f64565b8087526111d0601f1991611fcd565b0136838801375b82518110156112215761121c9061120c6001600160a01b036111f983876122bc565b511661120583886122bc565b51906121ef565b61121682896122bc565b52612274565b6111d7565b845182815280610650818501896120b2565b60849185519162461bcd60e51b8352820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152fd5b81356001600160a01b03811681036112a557815290840190840161117c565b8980fd5b8880fd5b8480fd5b919050346102a05760209081600319360112610b3d578235936112d485336121ef565b1561148a5733159081159161143b576112ec866126a6565b956112f5612680565b5081845161130281611efd565b52815b8751811015611388578284611380575b156113285761132390612274565b611305565b845162461bcd60e51b8152808801879052602c60248201527f5468697320746f6b656e206973205342542c20736f20746869732063616e206e60448201526b37ba103a3930b739b332b91760a11b6064820152608490fd5b506001611315565b509150929381845283855282842033855285528284205490600182106113ec5750906001849585938361085797528482528585203386528252600019018585205584519283528201523390600080516020612d71833981519152843392a451611efd565b835162461bcd60e51b81529081018690526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608490fd5b50505162461bcd60e51b815291820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b606482015260849150fd5b505162461bcd60e51b815291820152601960248201527f596f7520646f6e277420686176652074686520746f6b656e2e00000000000000604482015260649150fd5b9050346102a057816003193601126102a0576114e6611e92565b6024908135916526a4a72a22a960d11b808752602090858252868820338952825260ff87892054161561166b575060085484101561163a5761152884846121ef565b6115f95785519461153886611efd565b8786526001600160a01b0384169283156115af575050611557846126a6565b95611560612680565b50875b88885182101561157c575061157790612274565b611563565b92916108579850600080516020612d7183398151915291508684528383528084208585528352808420610a5381546123ec565b60219060849389519362461bcd60e51b85528401528201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152fd5b601f606492869288519362461bcd60e51b85528401528201527f596f752061726520616c726561647920686176652074686520746f6b656e2e006044820152fd5b600d606492869288519362461bcd60e51b85528401528201526c2737ba1032bc34b9ba1034b21760991b6044820152fd5b828787928a611679336128c0565b9183519061168682611f49565b6042825287820192606036853782511561181857603084538251906001918210156118065790607860218501536041915b81831161179d5750505061175d5760486104ec9593859361174593611736975197889376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8d86015261170d8d8251928391603789019101611f85565b8401917001034b99036b4b9b9b4b733903937b6329607d1b603784015251809386840190611f85565b01036028810186520184611f64565b5194859462461bcd60e51b8652850152830190611fa8565b60648688878188519362461bcd60e51b85528401528201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f811660108110156117f4576f181899199a1a9b1b9c1cb0b131b232b360811b901a6117cd85876128af565b53891c9280156117e2576000190191906116b7565b634e487b7160e01b825260118a528882fd5b634e487b7160e01b835260328b528983fd5b634e487b7160e01b8152603289528790fd5b634e487b7160e01b8152603288528690fd5b839150346101d057826003193601126101d057611845611ead565b90336001600160a01b0383160361186157906108579135612121565b608490602085519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152fd5b9050346102a057816003193601126102a0578035916118d9611ead565b916118e2612197565b83855260208181528286206001600160a01b039094168087529390528185205460ff161561190e578480f35b8385526020528084208285526020528320600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a4388080808480f35b839150346101d0576003199160a03684011261082757611976611e92565b9361197f611ead565b906044918235966001600160401b0397888111610b41576119a39036908801611fe4565b9660649586358a81116101d0576119bd9036908a01611fe4565b9360849a8b359081116102a0576119d79036908b01612094565b946001600160a01b03948516943386148015611c98575b6119f7906122d0565b8b51825103611c4757829b96949b16801595611a138715612333565b84978115968715995b8251811015611a4657888b611a3f575b1561036957611a3a90612274565b611a1c565b5089611a2c565b50949d939c975097509799945097929b8c5b8d8851821015611add57908c611ad18d611ad8948e8e611a848f611a7d8980926122bc565b51976122bc565b51958084528660209285845286862081875284528686205490611aa98383101561238d565b83875286855287872090875284520385852055835282815283832091835252209182546123fa565b9055612274565b611a58565b9b90508c9a99969a9894959887868c7f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb611b1f8d8351938085528401906120b2565b91808303602082015280611b343394896120b2565b0390a43b611b40578b80f35b8a988a51988997889763bc197c8160e01b9c8d8a5233908a01526024890152870160a0905260a48701611b72916120b2565b90848783030190870152611b85916120b2565b918483030190840152611b9791611fa8565b0381885a94602095f1859181611c27575b50611c115750506001611bb9612470565b6308c379a014611bda575b6104d35750505b81808080808080808080808b80f35b611be261248e565b80611bed5750611bc4565b90506104ec91602094505193849362461bcd60e51b85528401526024830190611fa8565b6001600160e01b0319160361053b575050611bcb565b611c4091925060203d811161057c5761056d8183611f64565b9086611ba8565b875162461bcd60e51b81526020818d0152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e67746820818b0152670dad2e6dac2e8c6d60c31b818c01528d90fd5b508584526001602090815288852033865290528784205460ff166119ee565b5050346101d057816003193601126101d057516420a226a4a760d91b8152602090f35b833461082757602036600319011261082757611cf4611e92565b611cfc6126c7565b60018060a01b03166bffffffffffffffffffffffff60a01b600554161760055580f35b9050346102a05760203660031901126102a057816020938260019335825285522001549051908152f35b5050346101d057816003193601126101d05780519082600954611d6b81611ec3565b808552916001918083169081156106b15750600114611d965750505061063e82610650940383611f64565b9450600985527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af5b828610611ddb5750505061063e826020610650958201019461062c565b80546020878701810191909152909501948101611dbe565b9050346102a05760203660031901126102a05735906001600160e01b03198216808303610b3d5760209350637965db0b60e01b14918215611e51575b8215611e3f575b50519015158152f35b611e4a9192506129ce565b9038611e36565b9150611e5c826129ce565b91611e2f565b5050346101d057806003193601126101d057602090611e8b611e82611e92565b602435906121ef565b9051908152f35b600435906001600160a01b0382168203611ea857565b600080fd5b602435906001600160a01b0382168203611ea857565b90600182811c92168015611ef3575b6020831014611edd57565b634e487b7160e01b600052602260045260246000fd5b91607f1691611ed2565b602081019081106001600160401b03821117611f1857604052565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b03821117611f1857604052565b608081019081106001600160401b03821117611f1857604052565b90601f801991011681019081106001600160401b03821117611f1857604052565b60005b838110611f985750506000910152565b8181015183820152602001611f88565b90602091611fc181518092818552858086019101611f85565b601f01601f1916010190565b6001600160401b038111611f185760051b60200190565b81601f82011215611ea857803591611ffb83611fcd565b926120096040519485611f64565b808452602092838086019260051b820101928311611ea8578301905b828210612033575050505090565b81358152908301908301612025565b6001600160401b038111611f1857601f01601f191660200190565b92919261206982612042565b916120776040519384611f64565b829481845281830111611ea8578281602093846000960137010152565b9080601f83011215611ea8578160206120af9335910161205d565b90565b90815180825260208080930193019160005b8281106120d2575050505090565b8351855293810193928101926001016120c4565b6020600319820112611ea857600435906001600160401b038211611ea85780602383011215611ea8578160246120af9360040135910161205d565b906000918083526004602052604083209160018060a01b03169182845260205260ff60408420541661215257505050565b8083526004602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4565b6003546001600160a01b031633036121ab57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b031690811561221c57600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b60001981146122835760010190565b634e487b7160e01b600052601160045260246000fd5b8051156122a65760200190565b634e487b7160e01b600052603260045260246000fd5b80518210156122a65760209160051b010190565b156122d757565b60405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526d195c881bdc88185c1c1c9bdd995960921b6064820152608490fd5b1561233a57565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b1561239457565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b906001820180921161228357565b9190820180921161228357565b90816020910312611ea857516001600160e01b031981168103611ea85790565b60809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b60009060033d1161247d57565b905060046000803e60005160e01c90565b600060443d106120af57604051600319913d83016004833e81516001600160401b03918282113d6024840111176124eb578184019485519384116124f3573d850101602084870101116124eb57506120af92910160200190611f64565b949350505050565b50949350505050565b60809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356040820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60608201520190565b9192813b612560575b50505050565b6020916125b091600060405195868095819463f23a6e6160e01b9a8b845260018060a01b03809516600485015285602485015260448401526001606484015260a0608484015260a4830190611fa8565b0393165af160009181612660575b5061263857505060016125cf612470565b6308c379a014612601575b6125e8575b3880808061255a565b60405162461bcd60e51b8152806104ec600482016124fc565b61260961248e565b8061261457506125da565b60405162461bcd60e51b8152602060048201529081906104ec906024830190611fa8565b6001600160e01b031916146125df5760405162461bcd60e51b8152806104ec60048201612427565b61267991925060203d811161057c5761056d8183611f64565b90386125be565b60405161268c81611f2e565b600181526020368183013760016126a282612299565b5290565b604051906126b382611f2e565b60018252602036818401376126a282612299565b3360009081527fb24965f6fec6d515561eb5638d731469a6c4e923e59b9c1a72c12a009eb566d1602090815260408083205491926004926420a226a4a760d91b919060ff1615612718575050505050565b612721336128c0565b9183519061272e82611f49565b6042825286820192606036853782511561289c57603084538251906001918210156128895790607860218501536041915b81831161281e575050506127dd5760486127b49385936127c3936104ec975196879376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8c86015261170d8c8251928391603789019101611f85565b01036028810185520183611f64565b5193849362461bcd60e51b85528401526024830190611fa8565b606485878087519262461bcd60e51b845283015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f81166010811015612876576f181899199a1a9b1b9c1cb0b131b232b360811b901a61284e85876128af565b53881c9280156128635760001901919061275f565b634e487b7160e01b825260118952602482fd5b634e487b7160e01b835260328a52602483fd5b634e487b7160e01b815260328852602490fd5b634e487b7160e01b815260328752602490fd5b9081518110156122a6570160200190565b60405190606082018281106001600160401b03821117611f1857604052602a82526020820160403682378251156122a6576030905381516001908110156122a657607860218401536029905b80821161296057505061291c5790565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b9091600f811660108110156129b9576f181899199a1a9b1b9c1cb0b131b232b360811b901a61298f84866128af565b5360041c9180156129a457600019019061290c565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b63ffffffff60e01b16636cdb3d1360e11b8114908115612a01575b81156129f3575090565b6301ffc9a760e01b14919050565b6303a24d0760e21b811491506129e9565b6005546001600160a01b03169060008215612ad7575060009060246040518094819363c87b56dd60e01b835260048301525afa908115612acb57600091612a57575090565b903d8082843e612a678184611f64565b8201916020818403126101d0578051906001600160401b0382116102a0570182601f820112156101d057805191612a9d83612042565b93612aab6040519586611f64565b838552602084840101116108275750906120af9160208085019101611f85565b6040513d6000823e3d90fd5b90915081817a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008281811015612d62575b50506d04ee2d6d415b85acef810000000080831015612d55575b50662386f26fc1000080831015612d48575b506305f5e10080831015612d3b575b5061271080831015612d2e575b506064821015612d20575b600a80921015612d18575b600180820194612b88612b7287612042565b96612b806040519889611f64565b808852612042565b93602091836021848a0196601f198099013689378a0101905b612ce9575b5050506040519586938691600654612bbd81611ec3565b90858782169182600014612cca575050600114612c82575b508291612be59151938491611f85565b01908560075493612bf585611ec3565b94818116908115612c635750600114612c1e575b50505050506120af9203908101835282611f64565b60078252600080516020612d9183398151915297505b848210612c4d575050500192506120af38808080612c09565b8754848301529687019688955090820190612c34565b60ff19168552505050508115159091020192506120af38808080612c09565b600689529192509087600080516020612db18339815191525b828210612cb2575050850183019190612be5612bd5565b80549782018601979097528996908501908601612c9b565b60ff19168982015282151590920288019091019350612be59050612bd5565b600019019082906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a835304908482612ba15750612ba6565b600101612b60565b906064600291049101612b55565b6004919204910138612b4a565b6008919204910138612b3d565b6010919204910138612b2e565b6020919204910138612b1c565b915091500460403880612b0256fec3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62a66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688f652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3fa2646970667358221220cc20b549666c196f0c893794797037b9b0fac7b0e4996c4dfa0ccdb35569fae564736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000006d5aa371d635059e44050894acc726574442f4b7000000000000000000000000dbd65e821b54eb30e2a516117a2ce1ed6837f504000000000000000000000000000000000000000000000000000000000000000c4f6d6f636869426967616b75000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024f42000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f666163656c6573732d7469636b65742f0000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): OmochiBigaku
Arg [1] : _symbol (string): OB
Arg [2] : _baseContractURI (string): https://storage.googleapis.com/faceless-ticket/
Arg [3] : _owner (address): 0x6d5aA371D635059e44050894aCC726574442F4B7
Arg [4] : _minter (address): 0xDbD65e821B54EB30e2a516117a2ce1ed6837f504

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000006d5aa371d635059e44050894acc726574442f4b7
Arg [4] : 000000000000000000000000dbd65e821b54eb30e2a516117a2ce1ed6837f504
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [6] : 4f6d6f636869426967616b750000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [8] : 4f42000000000000000000000000000000000000000000000000000000000000
Arg [9] : 000000000000000000000000000000000000000000000000000000000000002f
Arg [10] : 68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f66
Arg [11] : 6163656c6573732d7469636b65742f0000000000000000000000000000000000


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.