ETH Price: $2,364.82 (+1.58%)

Token

IceMaikoMusicCollection (IMMC)
 

Overview

Max Total Supply

193 IMMC

Holders

107

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0xdc68e2af8816b3154c95dab301f7838c7d83a0ba
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xC10112c3...c8BA247da
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
TukuruERC1155

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 21 : TukuruERC1155.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import './IERC5192.sol';

contract TukuruERC1155 is ERC1155, AccessControl, Ownable, Pausable, IERC5192, ERC2981 {
    using Strings for uint256;

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

    // Metadata
    string public name;
    string public symbol;
    string public baseURI;
    string public baseExtension;

    // Mint
    mapping(uint256 => uint256) public mintCosts;
    mapping(uint256 => uint256) public maxSupply;
    mapping(uint256 => uint256) public totalSupply;
    bool isLocked;

    // Withdraw
    uint256 public usageFee = 0.1 ether;
    address public withdrawAddress;
    uint256 public systemRoyalty;
    address public royaltyReceiver;

    // Modifier
    modifier withinMaxSupply(uint256 _tokenId, uint256 _amount) {
        require(totalSupply[_tokenId] + _amount <= maxSupply[_tokenId], 'Over Max Supply');
        _;
    }
    modifier enoughEth(uint256 _tokenId, uint256 _amount) {
        require(mintCosts[_tokenId] > 0, 'Not Set Mint Cost');
        require(msg.value >= _amount * mintCosts[_tokenId], 'Not Enough Eth');
        _;
    }

    constructor() ERC1155("") Ownable(msg.sender) {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(ADMIN, msg.sender);
    }

    function initialize(
        address _owner,
        string memory _name,
        string memory _symbol,
        bool _isLocked,
        uint96 _royaltyFee,
        address _withdrawAddress,
        uint256 _systemRoyalty,
        address _royaltyReceiver
    ) external {
        // Role
        transferOwnership(_owner);
        _grantRole(DEFAULT_ADMIN_ROLE, _owner);
        _grantRole(ADMIN, _owner);

        // Feature
        name = _name;
        symbol = _symbol;
        isLocked = _isLocked;

        // Payment
        _setDefaultRoyalty(_withdrawAddress, _royaltyFee);
        withdrawAddress = _withdrawAddress;
        systemRoyalty = _systemRoyalty;
        royaltyReceiver = _royaltyReceiver;
    }
    function updateToNoSystemRoyalty() external payable {
        require(systemRoyalty > 0, "No System Royalty");
        require(msg.value >= usageFee, "Not Enough Eth");
        systemRoyalty = 0;
    }

    // Mint
    function airdrop(address[] calldata _addresses, uint256 _tokenId, uint256 _amount) external onlyRole(ADMIN) {
        for (uint256 i = 0; i < _addresses.length; i++) {
            if (totalSupply[_tokenId] + _amount <= maxSupply[_tokenId]) {
                mintCommon(_addresses[i], _tokenId, _amount);
            }
        }
    }
    function mint(address _address, uint256 _tokenId, uint256 _amount) external payable
        whenNotPaused
        withinMaxSupply(_tokenId, _amount)
        enoughEth(_tokenId, _amount)
    {
        mintCommon(_address, _tokenId, _amount);
    }
    function externalMint(address _address, uint256 _tokenId, uint256 _amount) external payable onlyRole(MINTER) {
        mintCommon(_address, _tokenId, _amount);
    }
    function mintCommon(address _address, uint256 _tokenId, uint256 _amount) private {
        _mint(_address, _tokenId, _amount, "");
        totalSupply[_tokenId] += _amount;
    }
    function withdraw() public onlyRole(ADMIN) {
        bool success;
        if (systemRoyalty > 0) {
            (success, ) = payable(royaltyReceiver).call{value: address(this).balance * systemRoyalty / 100}("");
            require(success);
        }
        (success, ) = payable(withdrawAddress).call{value: address(this).balance}("");
        require(success);
    }

    // Getter
    function uri(uint256 tokenId) public view virtual override returns (string memory) {
        return string(abi.encodePacked(baseURI, tokenId.toString(), baseExtension));
    }

    // Setter
    function setWithdrawAddress(address _value) public onlyRole(ADMIN) {
        withdrawAddress = _value;
    }
    function setMetadataBase(string memory _baseURI, string memory _baseExtension) external onlyRole(ADMIN) {
        baseURI = _baseURI;
        baseExtension = _baseExtension;
    }
    function setIsLocked(bool _isLocked) external onlyRole(ADMIN) {
        isLocked = _isLocked;
    }
    function setTokenInfo(uint256 _tokenId, uint256 _mintCost, uint256 _maxSupply) external onlyRole(ADMIN) {
        mintCosts[_tokenId] = _mintCost;
        maxSupply[_tokenId] = _maxSupply;
    }

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

    // Locked
    function locked(uint256) override public view returns (bool){
        return isLocked;
    }
    function emitLockState(uint256 _tokenId) external onlyRole(ADMIN) {
        if (isLocked) {
            emit Locked(_tokenId);
        } else {
            emit Unlocked(_tokenId);
        }
    }
    function setApprovalForAll(address _operator, bool _approved) public virtual override {
        require (!_approved || !isLocked, "Locked");
        super.setApprovalForAll(_operator, _approved);
    }
    function _update(address _from, address _to, uint256[] memory _ids, uint256[] memory _values) internal virtual override {
        require (!isLocked, "Locked");
        super._update(_from, _to, _ids, _values);
    }
}

File 2 of 21 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)

pragma solidity ^0.8.20;

import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {ERC165} from "../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:
 *
 * ```solidity
 * 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}:
 *
 * ```solidity
 * 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. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address account => bool) hasRole;
        bytes32 adminRole;
    }

    mapping(bytes32 role => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with an {AccessControlUnauthorizedAccount} error including the required role.
     */
    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 returns (bool) {
        return _roles[role].hasRole[account];
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
     * is missing `role`.
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert AccessControlUnauthorizedAccount(account, role);
        }
    }

    /**
     * @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 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 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 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 `callerConfirmation`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address callerConfirmation) public virtual {
        if (callerConfirmation != _msgSender()) {
            revert AccessControlBadConfirmation();
        }

        _revokeRole(role, callerConfirmation);
    }

    /**
     * @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 Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
        if (!hasRole(role, account)) {
            _roles[role].hasRole[account] = true;
            emit RoleGranted(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
        if (hasRole(role, account)) {
            _roles[role].hasRole[account] = false;
            emit RoleRevoked(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }
}

File 3 of 21 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol)

pragma solidity ^0.8.20;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev The `account` is missing a role.
     */
    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);

    /**
     * @dev The caller of a function is not the expected one.
     *
     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
     */
    error AccessControlBadConfirmation();

    /**
     * @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.
     */
    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 `callerConfirmation`.
     */
    function renounceRole(bytes32 role, address callerConfirmation) external;
}

File 4 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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 21 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 6 of 21 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

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

File 7 of 21 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.20;

import {IERC2981} from "../../interfaces/IERC2981.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";

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

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

    /**
     * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator);

    /**
     * @dev The default royalty receiver is invalid.
     */
    error ERC2981InvalidDefaultRoyaltyReceiver(address receiver);

    /**
     * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator);

    /**
     * @dev The royalty receiver for `tokenId` is invalid.
     */
    error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver);

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidDefaultRoyaltyReceiver(address(0));
        }

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0));
        }

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

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

File 8 of 21 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.20;

import {IERC1155} from "./IERC1155.sol";
import {IERC1155Receiver} from "./IERC1155Receiver.sol";
import {IERC1155MetadataURI} from "./extensions/IERC1155MetadataURI.sol";
import {Context} from "../../utils/Context.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";
import {Arrays} from "../../utils/Arrays.sol";
import {IERC1155Errors} from "../../interfaces/draft-IERC6093.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
 */
abstract contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, IERC1155Errors {
    using Arrays for uint256[];
    using Arrays for address[];

    mapping(uint256 id => mapping(address account => uint256)) private _balances;

    mapping(address account => mapping(address operator => 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 /* id */) public view virtual returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     */
    function balanceOf(address account, uint256 id) public view virtual returns (uint256) {
        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 returns (uint256[] memory) {
        if (accounts.length != ids.length) {
            revert ERC1155InvalidArrayLength(ids.length, accounts.length);
        }

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

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

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes memory data) public virtual {
        address sender = _msgSender();
        if (from != sender && !isApprovedForAll(from, sender)) {
            revert ERC1155MissingApprovalForAll(sender, from);
        }
        _safeTransferFrom(from, to, id, value, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) public virtual {
        address sender = _msgSender();
        if (from != sender && !isApprovedForAll(from, sender)) {
            revert ERC1155MissingApprovalForAll(sender, from);
        }
        _safeBatchTransferFrom(from, to, ids, values, data);
    }

    /**
     * @dev Transfers a `value` amount of tokens of type `id` from `from` to `to`. Will mint (or burn) if `from`
     * (or `to`) is the zero address.
     *
     * Emits a {TransferSingle} event if the arrays contain one element, and {TransferBatch} otherwise.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement either {IERC1155Receiver-onERC1155Received}
     *   or {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value.
     * - `ids` and `values` must have the same length.
     *
     * NOTE: The ERC-1155 acceptance check is not performed in this function. See {_updateWithAcceptanceCheck} instead.
     */
    function _update(address from, address to, uint256[] memory ids, uint256[] memory values) internal virtual {
        if (ids.length != values.length) {
            revert ERC1155InvalidArrayLength(ids.length, values.length);
        }

        address operator = _msgSender();

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids.unsafeMemoryAccess(i);
            uint256 value = values.unsafeMemoryAccess(i);

            if (from != address(0)) {
                uint256 fromBalance = _balances[id][from];
                if (fromBalance < value) {
                    revert ERC1155InsufficientBalance(from, fromBalance, value, id);
                }
                unchecked {
                    // Overflow not possible: value <= fromBalance
                    _balances[id][from] = fromBalance - value;
                }
            }

            if (to != address(0)) {
                _balances[id][to] += value;
            }
        }

        if (ids.length == 1) {
            uint256 id = ids.unsafeMemoryAccess(0);
            uint256 value = values.unsafeMemoryAccess(0);
            emit TransferSingle(operator, from, to, id, value);
        } else {
            emit TransferBatch(operator, from, to, ids, values);
        }
    }

    /**
     * @dev Version of {_update} that performs the token acceptance check by calling
     * {IERC1155Receiver-onERC1155Received} or {IERC1155Receiver-onERC1155BatchReceived} on the receiver address if it
     * contains code (eg. is a smart contract at the moment of execution).
     *
     * IMPORTANT: Overriding this function is discouraged because it poses a reentrancy risk from the receiver. So any
     * update to the contract state after this function would break the check-effect-interaction pattern. Consider
     * overriding {_update} instead.
     */
    function _updateWithAcceptanceCheck(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) internal virtual {
        _update(from, to, ids, values);
        if (to != address(0)) {
            address operator = _msgSender();
            if (ids.length == 1) {
                uint256 id = ids.unsafeMemoryAccess(0);
                uint256 value = values.unsafeMemoryAccess(0);
                _doSafeTransferAcceptanceCheck(operator, from, to, id, value, data);
            } else {
                _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, values, data);
            }
        }
    }

    /**
     * @dev Transfers a `value` 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 `value` 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 value, bytes memory data) internal {
        if (to == address(0)) {
            revert ERC1155InvalidReceiver(address(0));
        }
        if (from == address(0)) {
            revert ERC1155InvalidSender(address(0));
        }
        (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value);
        _updateWithAcceptanceCheck(from, to, ids, values, 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.
     * - `ids` and `values` must have the same length.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) internal {
        if (to == address(0)) {
            revert ERC1155InvalidReceiver(address(0));
        }
        if (from == address(0)) {
            revert ERC1155InvalidSender(address(0));
        }
        _updateWithAcceptanceCheck(from, to, ids, values, 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 values 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 a `value` amount of tokens of 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 value, bytes memory data) internal {
        if (to == address(0)) {
            revert ERC1155InvalidReceiver(address(0));
        }
        (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value);
        _updateWithAcceptanceCheck(address(0), to, ids, values, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `values` must have the same length.
     * - `to` cannot be the zero address.
     * - 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 values, bytes memory data) internal {
        if (to == address(0)) {
            revert ERC1155InvalidReceiver(address(0));
        }
        _updateWithAcceptanceCheck(address(0), to, ids, values, data);
    }

    /**
     * @dev Destroys a `value` amount of tokens of type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `value` amount of tokens of type `id`.
     */
    function _burn(address from, uint256 id, uint256 value) internal {
        if (from == address(0)) {
            revert ERC1155InvalidSender(address(0));
        }
        (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value);
        _updateWithAcceptanceCheck(from, address(0), ids, values, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `value` amount of tokens of type `id`.
     * - `ids` and `values` must have the same length.
     */
    function _burnBatch(address from, uint256[] memory ids, uint256[] memory values) internal {
        if (from == address(0)) {
            revert ERC1155InvalidSender(address(0));
        }
        _updateWithAcceptanceCheck(from, address(0), ids, values, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the zero address.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        if (operator == address(0)) {
            revert ERC1155InvalidOperator(address(0));
        }
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Performs an acceptance check by calling {IERC1155-onERC1155Received} on the `to` address
     * if it contains code at the moment of execution.
     */
    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 value,
        bytes memory data
    ) private {
        if (to.code.length > 0) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, value, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    // Tokens rejected
                    revert ERC1155InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    // non-ERC1155Receiver implementer
                    revert ERC1155InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }

    /**
     * @dev Performs a batch acceptance check by calling {IERC1155-onERC1155BatchReceived} on the `to` address
     * if it contains code at the moment of execution.
     */
    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) private {
        if (to.code.length > 0) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, values, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    // Tokens rejected
                    revert ERC1155InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    // non-ERC1155Receiver implementer
                    revert ERC1155InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }

    /**
     * @dev Creates an array in memory with only one value for each of the elements provided.
     */
    function _asSingletonArrays(
        uint256 element1,
        uint256 element2
    ) private pure returns (uint256[] memory array1, uint256[] memory array2) {
        /// @solidity memory-safe-assembly
        assembly {
            // Load the free memory pointer
            array1 := mload(0x40)
            // Set array length to 1
            mstore(array1, 1)
            // Store the single element at the next word after the length (where content starts)
            mstore(add(array1, 0x20), element1)

            // Repeat for next array locating it right after the first array
            array2 := add(array1, 0x40)
            mstore(array2, 1)
            mstore(add(array2, 0x20), element2)

            // Update the free memory pointer by pointing after the second array
            mstore(0x40, add(array2, 0x40))
        }
    }
}

File 9 of 21 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.20;

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

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

File 10 of 21 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` amount of tokens of 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 value 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 a `value` amount of tokens of type `id` from `from` to `to`.
     *
     * WARNING: This function can potentially allow a reentrancy attack when transferring tokens
     * to an untrusted contract, when invoking {onERC1155Received} on the receiver.
     * Ensure to follow the checks-effects-interactions pattern and consider employing
     * reentrancy guards when interacting with untrusted contracts.
     *
     * 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 `value` 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 value, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     *
     * WARNING: This function can potentially allow a reentrancy attack when transferring tokens
     * to an untrusted contract, when invoking {onERC1155BatchReceived} on the receiver.
     * Ensure to follow the checks-effects-interactions pattern and consider employing
     * reentrancy guards when interacting with untrusted contracts.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `values` 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 values,
        bytes calldata data
    ) external;
}

File 11 of 21 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

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

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

File 12 of 21 : Arrays.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Arrays.sol)

pragma solidity ^0.8.20;

import {StorageSlot} from "./StorageSlot.sol";
import {Math} from "./math/Math.sol";

/**
 * @dev Collection of functions related to array types.
 */
library Arrays {
    using StorageSlot for bytes32;

    /**
     * @dev Searches a sorted `array` and returns the first index that contains
     * a value greater or equal to `element`. If no such index exists (i.e. all
     * values in the array are strictly less than `element`), the array length is
     * returned. Time complexity O(log n).
     *
     * `array` is expected to be sorted in ascending order, and to contain no
     * repeated elements.
     */
    function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {
        uint256 low = 0;
        uint256 high = array.length;

        if (high == 0) {
            return 0;
        }

        while (low < high) {
            uint256 mid = Math.average(low, high);

            // Note that mid will always be strictly less than high (i.e. it will be a valid array index)
            // because Math.average rounds towards zero (it does integer division with truncation).
            if (unsafeAccess(array, mid).value > element) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.
        if (low > 0 && unsafeAccess(array, low - 1).value == element) {
            return low - 1;
        } else {
            return low;
        }
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeAccess(address[] storage arr, uint256 pos) internal pure returns (StorageSlot.AddressSlot storage) {
        bytes32 slot;
        // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr`
        // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays.

        /// @solidity memory-safe-assembly
        assembly {
            mstore(0, arr.slot)
            slot := add(keccak256(0, 0x20), pos)
        }
        return slot.getAddressSlot();
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeAccess(bytes32[] storage arr, uint256 pos) internal pure returns (StorageSlot.Bytes32Slot storage) {
        bytes32 slot;
        // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr`
        // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays.

        /// @solidity memory-safe-assembly
        assembly {
            mstore(0, arr.slot)
            slot := add(keccak256(0, 0x20), pos)
        }
        return slot.getBytes32Slot();
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeAccess(uint256[] storage arr, uint256 pos) internal pure returns (StorageSlot.Uint256Slot storage) {
        bytes32 slot;
        // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr`
        // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays.

        /// @solidity memory-safe-assembly
        assembly {
            mstore(0, arr.slot)
            slot := add(keccak256(0, 0x20), pos)
        }
        return slot.getUint256Slot();
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeMemoryAccess(uint256[] memory arr, uint256 pos) internal pure returns (uint256 res) {
        assembly {
            res := mload(add(add(arr, 0x20), mul(pos, 0x20)))
        }
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeMemoryAccess(address[] memory arr, uint256 pos) internal pure returns (address res) {
        assembly {
            res := mload(add(add(arr, 0x20), mul(pos, 0x20)))
        }
    }
}

File 13 of 21 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol)

pragma solidity ^0.8.20;

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

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

File 14 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./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);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 15 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

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

File 16 of 21 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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 towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (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 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 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.

            uint256 twos = denominator & (0 - denominator);
            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 (unsignedRoundsUp(rounding) && 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
     * towards zero.
     *
     * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * 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 256, 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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 17 of 21 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 18 of 21 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

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

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

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

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

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

File 19 of 21 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

File 20 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

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

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @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), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @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) {
        uint256 localValue = value;
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = HEX_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        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);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 21 of 21 : IERC5192.sol
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.0;

interface IERC5192 {
    /// @notice Emitted when the locking status is changed to locked.
    /// @dev If a token is minted and the status is locked, this event should be emitted.
    /// @param tokenId The identifier for a token.
    event Locked(uint256 tokenId);

    /// @notice Emitted when the locking status is changed to unlocked.
    /// @dev If a token is minted and the status is unlocked, this event should be emitted.
    /// @param tokenId The identifier for a token.
    event Unlocked(uint256 tokenId);

    /// @notice Returns the locking status of an Soulbound Token
    /// @dev SBTs assigned to zero address are considered invalid, and queries
    /// about them do throw.
    /// @param tokenId The identifier for an SBT.
    function locked(uint256 tokenId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC1155InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC1155InvalidApprover","type":"error"},{"inputs":[{"internalType":"uint256","name":"idsLength","type":"uint256"},{"internalType":"uint256","name":"valuesLength","type":"uint256"}],"name":"ERC1155InvalidArrayLength","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC1155InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC1155InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC1155InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC1155MissingApprovalForAll","type":"error"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Unlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","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":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_amount","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":"_tokenId","type":"uint256"}],"name":"emitLockState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"externalMint","outputs":[],"stateMutability":"payable","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":"_owner","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"bool","name":"_isLocked","type":"bool"},{"internalType":"uint96","name":"_royaltyFee","type":"uint96"},{"internalType":"address","name":"_withdrawAddress","type":"address"},{"internalType":"uint256","name":"_systemRoyalty","type":"uint256"},{"internalType":"address","name":"_royaltyReceiver","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"","type":"uint256"}],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintCosts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","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":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isLocked","type":"bool"}],"name":"setIsLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"string","name":"_baseExtension","type":"string"}],"name":"setMetadataBase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_mintCost","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setTokenInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_value","type":"address"}],"name":"setWithdrawAddress","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":[],"name":"systemRoyalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateToNoSystemRoyalty","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usageFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6080346200017557602081016001600160401b038111828210176200015f5760405260008091526002546001908181811c9116801562000154575b60208210146200014057601f8111620000f6575b5050806002553315620000de576004549033906001600160a01b038316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36001600160a81b0319163360ff60a01b1981169190911760045567016345785d8a0000600f55620000c1906200017a565b50620000cd33620001fb565b50604051612d9d9081620002878239f35b60249060405190631e4fbdf760e01b82526004820152fd5b60028352601f0160051c7f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace908101905b8181106200013557506200004e565b838155820162000126565b634e487b7160e01b83526022600452602483fd5b90607f16906200003a565b634e487b7160e01b600052604160045260246000fd5b600080fd5b6001600160a01b031660008181527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff602052604081205490919060ff16620001f75781805260036020526040822081835260205260408220600160ff198254161790553391600080516020620030248339815191528180a4600190565b5090565b6001600160a01b031660008181527f63f6944974ed01e0c77f5fd425d412bc87a2a97469803ba02a51ba75d9154da460205260408120549091906420a226a4a760d91b9060ff16620002815780835260036020526040832082845260205260408320600160ff1982541617905560008051602062003024833981519152339380a4600190565b50509056fe6080604052600436101561001257600080fd5b60003560e01c8062fdd58e146102d657806301ffc9a7146102d157806306fdde03146102cc5780630e89341c146102c7578063156e29f6146102c25780631581b600146102bd578063248a9ca3146102b85780632a0acc6a146102b35780632a55205a146102ae5780632eb2c2d6146102a95780632f2ff15d146102a457806334aef4c81461029f57806336568abe1461029a5780633a813b76146102955780633ab1a494146102905780633ccfd60b1461028b5780634425f8a2146102865780634e1273f41461028157806358e02f571461027c5780635c975abb146102775780635feb21fd146102725780636c0360eb1461026d578063715018a614610268578063869f7594146102635780638c8fae401461025e5780638da5cb5b1461025957806391d148541461025457806395d89b411461024f5780639fbc87131461024a578063a217fddf14610245578063a22cb46514610240578063a496dedf1461023b578063a4cb51c714610236578063b45a3c0e14610231578063b966ddfb1461022c578063bd85b03914610227578063bdbda56414610222578063c66828621461021d578063c70a2cf714610218578063d547741f14610213578063e985e9c51461020e578063f242432a14610209578063f2fde38b146102045763fe6d8124146101ff57600080fd5b6118cb565b611875565b611750565b6116f4565b6116b2565b611686565b6115f1565b61158e565b611562565b611522565b6114ff565b611487565b61142b565b61134f565b611333565b61130a565b611263565b61120d565b6111e4565b6111ab565b61117f565b611121565b61108c565b61106e565b611048565b610fb5565b610edc565b610e16565b610d81565b610d3a565b610c0f565b610bc4565b610ba6565b610b64565b610a37565b6108be565b61089a565b61086b565b610842565b6107a3565b6105fa565b610515565b610370565b61030d565b6001600160a01b038116036102ec57565b600080fd5b60a435906102fe826102db565b565b60e435906102fe826102db565b346102ec5760403660031901126102ec57602061035560043561032f816102db565b6024356000526000835260406000209060018060a01b0316600052602052604060002090565b54604051908152f35b6001600160e01b03198116036102ec57565b346102ec5760203660031901126102ec57602060043561038f8161035e565b61039881612c89565b9081156103fc575b81156103eb575b81156103d0575b81156103c0575b506040519015158152f35b6103ca9150612ccd565b386103b5565b6001600160e01b03198116635a2d1e0760e11b1491506103ae565b90506103f681612ccd565b906103a7565b905061040781612c64565b906103a0565b90600182811c9216801561043d575b602083101461042757565b634e487b7160e01b600052602260045260246000fd5b91607f169161041c565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761047857604052565b610447565b602081019081106001600160401b0382111761047857604052565b90601f801991011681019081106001600160401b0382111761047857604052565b60005b8381106104cc5750506000910152565b81810151838201526020016104bc565b906020916104f5815180928185528580860191016104b9565b601f01601f1916010190565b9060206105129281815201906104dc565b90565b346102ec576000806003193601126105f75760405190806007546105388161040d565b808552916001918083169081156105cd5750600114610572575b61056e8561056281870382610498565b60405191829182610501565b0390f35b9250600783527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6885b8284106105b55750505081016020016105628261056e610552565b8054602085870181019190915290930192810161059a565b86955061056e9693506020925061056294915060ff191682840152151560051b8201019293610552565b80fd5b346102ec5760203660031901126102ec576000600435807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000080821015610772575b506d04ee2d6d415b85acef810000000080831015610763575b50662386f26fc1000080831015610754575b506305f5e10080831015610745575b5061271080831015610736575b506064821015610726575b600a8092101561071c575b6001908160216106a4828701612c32565b95860101905b6106e6575b60405161056e90610562816106d86106d38a6106cd60208501612b34565b90612c1b565b612bb1565b03601f198101835282610498565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a835304918215610717579190826106aa565b6106af565b9160010191610693565b9190606460029104910191610688565b6004919392049101913861067d565b60089193920491019138610670565b60109193920491019138610661565b6020919392049101913861064f565b604093508104915038610636565b60609060031901126102ec57600435610798816102db565b906024359060443590565b6107ac36610780565b60ff60049392935460a01c1661083057600092808452600d602052604084205482810180911161082b57818552600c6020526040852054106107f4576107f1926128ef565b80f35b60405162461bcd60e51b815260206004820152600f60248201526e4f766572204d617820537570706c7960881b6044820152606490fd5b611c01565b60405163d93c066560e01b8152600490fd5b346102ec5760003660031901126102ec576010546040516001600160a01b039091168152602090f35b346102ec5760203660031901126102ec5760043560005260036020526020600160406000200154604051908152f35b346102ec5760003660031901126102ec576040516420a226a4a760d91b8152602090f35b346102ec5760403660031901126102ec5760043560005260066020526040600020604051906108ec8261045d565b546001600160a01b0380821680845260a09290921c60208401529015610950575b6109316109296001600160601b0360208501511660243561228e565b612710900490565b915160408051929091166001600160a01b031682526020820192909252f35b905061095a612268565b9061090d565b6001600160401b0381116104785760051b60200190565b81601f820112156102ec5780359161098e83610960565b9261099c6040519485610498565b808452602092838086019260051b8201019283116102ec578301905b8282106109c6575050505090565b813581529083019083016109b8565b6001600160401b03811161047857601f01601f191660200190565b81601f820112156102ec57803590610a07826109d5565b92610a156040519485610498565b828452602083830101116102ec57816000926020809301838601378301015290565b346102ec5760a03660031901126102ec5760048035610a55816102db565b602435610a61816102db565b6001600160401b03906044358281116102ec57610a819036908601610977565b906064358381116102ec57610a999036908701610977565b926084359081116102ec57610ab190369087016109f0565b936001600160a01b03808216903382141580610b40575b610b1357831615610afb5715610ae457610ae29550611d15565b005b604051626a0d4560e21b8152600081880152602490fd5b604051632bfa23e760e11b8152600081890152602490fd5b6040805163711bec9160e11b815233818b019081526001600160a01b038616602082015290918291010390fd5b50600082815260016020908152604080832033845290915290205460ff1615610ac8565b346102ec5760403660031901126102ec57610ae2602435600435610b87826102db565b806000526003602052610ba1600160406000200154611954565b611ace565b346102ec5760003660031901126102ec576020600f54604051908152f35b346102ec5760403660031901126102ec57602435610be1816102db565b336001600160a01b03821603610bfd57610ae290600435611afa565b60405163334bd91960e11b8152600490fd5b346102ec5760403660031901126102ec576001600160401b036004358181116102ec57610c409036906004016109f0565b906024358181116102ec57610c599036906004016109f0565b90610c626118f0565b825190811161047857610c7f81610c7a60095461040d565b6122a1565b602080601f8311600114610cc157508190610ae294600092610cb6575b50508160011b916000199060031b1c191617600955612441565b015190503880610c9c565b60096000529193601f198516600080516020612d71833981519152936000905b828210610d22575050916001939186610ae2979410610d09575b505050811b01600955612441565b015160001960f88460031b161c19169055388080610cfb565b80600186978294978701518155019601940190610ce1565b346102ec5760203660031901126102ec57600435610d57816102db565b610d5f6118f0565b601080546001600160a01b0319166001600160a01b0392909216919091179055005b346102ec576000806003193601126105f757610d9b6118f0565b8060115480610de2575b508080806107f193610dd0610dc4610dc460105460018060a01b031690565b6001600160a01b031690565b47905af1610ddc611fbb565b50612b2d565b818080926064610dfd60018060a01b0360125416924761228e565b04905af1610e09611fbb565b50156105f7578038610da5565b346102ec5760203660031901126102ec57600435610e326118f0565b600e5460ff1615610e6a5760207f032bc66be43dbccb7487781d168eb7bda224628a3b2c3388bdf69b532a3a161191604051908152a1005b60207ff27b6ce5b2f5e68ddb2fd95a8a909d4ecf1daaac270935fff052feacb24f184291604051908152a1005b90815180825260208080930193019160005b828110610eb7575050505090565b835185529381019392810192600101610ea9565b906020610512928181520190610e97565b346102ec5760403660031901126102ec576004356001600160401b038082116102ec57366023830112156102ec578160040135610f1881610960565b92610f266040519485610498565b81845260209160248386019160051b830101913683116102ec57602401905b828210610f7e57856024358681116102ec5761056e91610f6c610f72923690600401610977565b90611c50565b60405191829182610ecb565b8380918335610f8c816102db565b815201910190610f45565b6064359081151582036102ec57565b6024359081151582036102ec57565b346102ec576101003660031901126102ec57600435610fd3816102db565b6001600160401b036024358181116102ec57610ff39036906004016109f0565b906044359081116102ec5761100c9036906004016109f0565b91611015610f97565b926084356001600160601b03811681036102ec57610ae2946110356102f1565b9261103e610300565b9560c43595612601565b346102ec5760003660031901126102ec57602060ff60045460a01c166040519015158152f35b346102ec5760003660031901126102ec576020601154604051908152f35b346102ec576000806003193601126105f75760405190806009546110af8161040d565b808552916001918083169081156105cd57506001146110d85761056e8561056281870382610498565b925060098352600080516020612d718339815191525b8284106111095750505081016020016105628261056e610552565b805460208587018101919091529093019281016110ee565b346102ec576000806003193601126105f75761113b611b8c565b600480546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b346102ec5760203660031901126102ec57600435600052600c6020526020604060002054604051908152f35b346102ec5760203660031901126102ec576004358015158091036102ec576111d16118f0565b60ff8019600e5416911617600e55600080f35b346102ec5760003660031901126102ec576004546040516001600160a01b039091168152602090f35b346102ec5760403660031901126102ec57602060ff611257602435611231816102db565b6004356000526003845260406000209060018060a01b0316600052602052604060002090565b54166040519015158152f35b346102ec576000806003193601126105f75760405190806008546112868161040d565b808552916001918083169081156105cd57506001146112af5761056e8561056281870382610498565b9250600883527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee35b8284106112f25750505081016020016105628261056e610552565b805460208587018101919091529093019281016112d7565b346102ec5760003660031901126102ec576012546040516001600160a01b039091168152602090f35b346102ec5760003660031901126102ec57602060405160008152f35b346102ec5760403660031901126102ec5760043561136c816102db565b611374610fa6565b908115801591908261141e575b61138a90612cf6565b6001600160a01b038116928315611406576113c76113d89233600052600160205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b6040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60405162ced3e160e81b815260006004820152602490fd5b50600e5460ff1615611381565b346102ec5760603660031901126102ec576004356001600160401b038082116102ec57366023830112156102ec5781600401359081116102ec573660248260051b840101116102ec57610ae2916044359160248035920161286b565b61149036610780565b3360009081527f4fc2917feffa8ea2752fb6dbac6c8045d2e5f351a5eb9153c04417d4f36ca0c560205260409020546526a4a72a22a960d11b939192919060ff16156114e057610ae29350612965565b60405163e2517d3f60e01b815233600482015260248101859052604490fd5b346102ec5760203660031901126102ec57602060ff600e54166040519015158152f35b346102ec5760603660031901126102ec5761153b6118f0565b600435600052600b602052602435604060002055600c602052604435604060002055600080f35b346102ec5760203660031901126102ec57600435600052600d6020526020604060002054604051908152f35b6000806003193601126105f757601154156115b8576115b1600f5434101561282e565b8060115580f35b60405162461bcd60e51b81526020600482015260116024820152704e6f2053797374656d20526f79616c747960781b6044820152606490fd5b346102ec576000806003193601126105f7576040519080600a546116148161040d565b808552916001918083169081156105cd575060011461163d5761056e8561056281870382610498565b9250600a8352600080516020612d518339815191525b82841061166e5750505081016020016105628261056e610552565b80546020858701810191909152909301928101611653565b346102ec5760203660031901126102ec57600435600052600b6020526020604060002054604051908152f35b346102ec5760403660031901126102ec57610ae26024356004356116d5826102db565b8060005260036020526116ef600160406000200154611954565b611afa565b346102ec5760403660031901126102ec57602060ff611257600435611718816102db565b60243590611725826102db565b60018060a01b03166000526001845260406000209060018060a01b0316600052602052604060002090565b346102ec5760a03660031901126102ec5760043561176d816102db565b602435611779816102db565b6084356001600160401b0381116102ec576117989036906004016109f0565b906001600160a01b03838116903382141580611851575b61182a5782161561181157156117f957610ae2926117f16064356044359160405192600184526020840152604083019160018352606084015260808301604052565b929091611d15565b604051626a0d4560e21b815260006004820152602490fd5b604051632bfa23e760e11b815260006004820152602490fd5b60405163711bec9160e11b81523360048201526001600160a01b0386166024820152604490fd5b50600082815260016020908152604080832033845290915290205460ff16156117af565b346102ec5760203660031901126102ec57600435611892816102db565b61189a611b8c565b6001600160a01b038116156118b257610ae290611bb8565b604051631e4fbdf760e01b815260006004820152602490fd5b346102ec5760003660031901126102ec576040516526a4a72a22a960d11b8152602090f35b3360009081527f63f6944974ed01e0c77f5fd425d412bc87a2a97469803ba02a51ba75d9154da4602052604090206420a226a4a760d91b9060ff905b5416156119365750565b6044906040519063e2517d3f60e01b82523360048301526024820152fd5b6000818152600360209081526040808320338452909152902060ff9061192c565b6001600160a01b03811660009081527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff602052604081205460ff16611a16578080526003602090815260408083206001600160a01b038516600090815292529020805460ff1916600117905533916001600160a01b0316907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a4600190565b905090565b6001600160a01b03811660009081527f63f6944974ed01e0c77f5fd425d412bc87a2a97469803ba02a51ba75d9154da4602052604081206420a226a4a760d91b9060ff905b5416611ac8578082526003602090815260408084206001600160a01b038616600090815292529020805460ff1916600117905533926001600160a01b0316917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9080a4600190565b50905090565b600090808252600360205260ff611a6084604085209060018060a01b0316600052602052604060002090565b600090808252600360205260ff611b2684604085209060018060a01b0316600052602052604060002090565b541615611ac8578082526003602090815260408084206001600160a01b038616600090815292529020805460ff1916905533926001600160a01b0316917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9080a4600190565b6004546001600160a01b03163303611ba057565b60405163118cdaa760e01b8152336004820152602490fd5b600480546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b634e487b7160e01b600052601160045260246000fd5b600019811461082b5760010190565b8051821015611c3a5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b91909180518351808203611cf3575050805190611c6c82610960565b91611c7a6040519384610498565b808352611c89601f1991610960565b0190602091368385013760005b8151811015611ceb57600581901b8281018401519087018401516000908152602081815260408083206001600160a01b0390941683529290522054611ce69190611ce08287611c26565b52611c17565b611c96565b509193505050565b604051635b05999160e01b815260048101919091526024810191909152604490fd5b94919091611d2860ff600e541615612cf6565b8151845190818103611cf357505060005b8251811015611e4c57600581901b83810160209081015191870101516001600160a01b03929186908a8516611dc5575b611d7c948216611d81575b505050611c17565b611d39565b611dbb91611d9c611db3926000526000602052604060002090565b9060018060a01b0316600052602052604060002090565b9182546128e2565b9055388581611d74565b9192939050611de28a611d9c846000526000602052604060002090565b54838110611e155791879184611d7c96959403611e0d8d611d9c856000526000602052604060002090565b559450611d69565b6040516303dee4c560e01b81526001600160a01b038c16600482015260248101919091526044810184905260648101839052608490fd5b509491939290936001855114600014611ef7576020858101518382015160408051928352928201526001600160a01b03838116929086169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a45b6001600160a01b038116611ec0575b5050505050565b8451600103611ee657602080611edc96015192015192336120e5565b3880808080611eb9565b611ef294919233612231565b611edc565b6040516001600160a01b03828116919085169033907f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb9080611f3a888c83612d2b565b0390a4611eaa565b908160209103126102ec57516105128161035e565b909260a0926105129594600180861b03168352600060208401526040830152606082015281608082015201906104dc565b919261051295949160a094600180871b0380921685521660208401526040830152606082015281608082015201906104dc565b3d15611fe6573d90611fcc826109d5565b91611fda6040519384610498565b82523d6000602084013e565b606090565b9293919093843b611ffd575050505050565b602091612020604051948593849363f23a6e6160e01b9889865260048601611f57565b038160006001600160a01b0388165af1600091816120b5575b506120785782612047611fbb565b805191908261207157604051632bfa23e760e11b81526001600160a01b0383166004820152602490fd5b9050602001fd5b6001600160e01b0319160361209257503880808080611eb9565b604051632bfa23e760e11b81526001600160a01b03919091166004820152602490fd5b6120d791925060203d81116120de575b6120cf8183610498565b810190611f42565b9038612039565b503d6120c5565b939290949194853b6120fa575b505050505050565b61211d602093604051958694859463f23a6e6160e01b998a875260048701611f88565b038160006001600160a01b0388165af16000918161215f575b506121445782612047611fbb565b6001600160e01b0319160361209257503880808080806120f2565b61217891925060203d81116120de576120cf8183610498565b9038612136565b926121ae61051295936121bc9360018060a01b031686526000602087015260a0604087015260a0860190610e97565b908482036060860152610e97565b9160808184039101526104dc565b939061051295936121ae916121bc9460018060a01b03809216885216602087015260a0604087015260a0860190610e97565b9293919093843b61220e575050505050565b602091612020604051948593849363bc197c8160e01b988986526004860161217f565b939290949194853b61224557505050505050565b61211d602093604051958694859463bc197c8160e01b998a8752600487016121ca565b604051906122758261045d565b6005546001600160a01b038116835260a01c6020830152565b8181029291811591840414171561082b57565b601f81116122ad575050565b60009060098252600080516020612d71833981519152906020601f850160051c830194106122f6575b601f0160051c01915b8281106122eb57505050565b8181556001016122df565b90925082906122d6565b601f811161230c575050565b600090600782527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688906020601f850160051c83019410612367575b601f0160051c01915b82811061235c57505050565b818155600101612350565b9092508290612347565b601f811161237d575050565b600090600a8252600080516020612d51833981519152906020601f850160051c830194106123c6575b601f0160051c01915b8281106123bb57505050565b8181556001016123af565b90925082906123a6565b601f81116123dc575050565b600090600882527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3906020601f850160051c83019410612437575b601f0160051c01915b82811061242c57505050565b818155600101612420565b9092508290612417565b9081516001600160401b0381116104785761246681612461600a5461040d565b612371565b602080601f83116001146124a25750819293600092612497575b50508160011b916000199060031b1c191617600a55565b015190503880612480565b90601f198316946124c3600a600052600080516020612d5183398151915290565b926000905b8782106125005750508360019596106124e7575b505050811b01600a55565b015160001960f88460031b161c191690553880806124dc565b806001859682949686015181550195019301906124c8565b9081516001600160401b0381116104785761253d8161253860085461040d565b6123d0565b602080601f8311600114612579575081929360009261256e575b50508160011b916000199060031b1c191617600855565b015190503880612557565b90601f198316946125ac60086000527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee390565b926000905b8782106125e95750508360019596106125d0575b505050811b01600855565b015160001960f88460031b161c191690553880806125c5565b806001859682949686015181550195019301906125b1565b612609611b8c565b6001600160a01b038116156118b2578061262561263492611bb8565b61262e81611975565b50611a1b565b508051906001600160401b0382116104785761265a8261265560075461040d565b612300565b60209081601f841160011461270a57506126dd946126a86126e29895856126c0966102fe9d9c9a966126ba966000926126ff575b50508160011b916000199060031b1c191617600755612518565b60ff8019600e54169115151617600e55565b826127aa565b60018060a01b03166001600160601b0360a01b6010541617601055565b601155565b60018060a01b03166001600160601b0360a01b6012541617601255565b01519050388061268e565b60076000529190601f1984167fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688936000905b8282106127925750506126e298956001866102fe9d9c9a966126ba966126dd9b966126c09a6126a89710612779575b505050811b01600755612518565b015160001960f88460031b161c1916905538808061276b565b8060018697829497870151815501960194019061273c565b906001600160601b0381169161271080841161281057506001600160a01b03169182156127f75760206040516127df8161045d565b848152015260a01b6001600160a01b03191617600555565b604051635b6cc80560e11b815260006004820152602490fd5b8360449160405191636f483d0960e01b835260048301526024820152fd5b1561283557565b60405162461bcd60e51b815260206004820152600e60248201526d09cdee8408adcdeeaced0408ae8d60931b6044820152606490fd5b9091926128766118f0565b60005b838110612887575050505050565b84600052602090600d8252604080600020549084820180921161082b57600c6128be9489600052526000205410156128c357611c17565b612879565b6128dd83878360051b8701356128d8816102db565b612965565b611c17565b9190820180921161082b57565b919080600052600b6020526040600020541561292c576102fe9281600052600b6020526128d86129246040600020548561228e565b34101561282e565b60405162461bcd60e51b8152602060048201526011602482015270139bdd0814d95d08135a5b9d0810dbdcdd607a1b6044820152606490fd5b92916040928351916129768361047d565b60008084526001600160a01b03871695908615612b17576129b783879160405192600184526020840152604083019160018352606084015260808301604052565b9690956129c960ff600e541615612cf6565b8651885190818103612af6575050825b8751811015612a21578089612a15611db38e611d9c8d612a1c9760051b8091602092839101015196010151946000526000602052604060002090565b9055611c17565b6129d9565b509296919590949893976001825114600014612abc57602082810151848201518a5191825291810191909152879033907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6290604090a45b8051600103612aad5790602080612a96959301519101519133611feb565b8152600d60205220805491820180921161082b5755565b612ab793336121fc565b612a96565b8688517f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb339180612aee888883612d2b565b0390a4612a78565b8551635b05999160e01b815260048101919091526024810191909152604490fd5b6024915190632bfa23e760e11b82526004820152fd5b156102ec57565b60095460009291612b448261040d565b91600190818116908115612b9e5750600114612b5f57505050565b90919293506009600052600080516020612d71833981519152906000915b848310612b8b575050500190565b8181602092548587015201920191612b7d565b60ff191683525050811515909102019150565b600a5460009291612bc18261040d565b91600190818116908115612b9e5750600114612bdc57505050565b9091929350600a600052600080516020612d51833981519152906000915b848310612c08575050500190565b8181602092548587015201920191612bfa565b90612c2e602092828151948592016104b9565b0190565b90612c3c826109d5565b612c496040519182610498565b8281528092612c5a601f19916109d5565b0190602036910137565b6001600160e01b03198116637965db0b60e01b14908115612c83575090565b61051291505b63ffffffff60e01b16636cdb3d1360e11b8114908115612cbc575b8115612cae575090565b6301ffc9a760e01b14919050565b6303a24d0760e21b81149150612ca4565b6001600160e01b0319811663152a902d60e11b14908115612cec575090565b6105129150612c64565b15612cfd57565b60405162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b6044820152606490fd5b9091612d4261051293604084526040840190610e97565b916020818403910152610e9756fec65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a86e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7afa164736f6c6343000814000a2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d

Deployed Bytecode

0x6080604052600436101561001257600080fd5b60003560e01c8062fdd58e146102d657806301ffc9a7146102d157806306fdde03146102cc5780630e89341c146102c7578063156e29f6146102c25780631581b600146102bd578063248a9ca3146102b85780632a0acc6a146102b35780632a55205a146102ae5780632eb2c2d6146102a95780632f2ff15d146102a457806334aef4c81461029f57806336568abe1461029a5780633a813b76146102955780633ab1a494146102905780633ccfd60b1461028b5780634425f8a2146102865780634e1273f41461028157806358e02f571461027c5780635c975abb146102775780635feb21fd146102725780636c0360eb1461026d578063715018a614610268578063869f7594146102635780638c8fae401461025e5780638da5cb5b1461025957806391d148541461025457806395d89b411461024f5780639fbc87131461024a578063a217fddf14610245578063a22cb46514610240578063a496dedf1461023b578063a4cb51c714610236578063b45a3c0e14610231578063b966ddfb1461022c578063bd85b03914610227578063bdbda56414610222578063c66828621461021d578063c70a2cf714610218578063d547741f14610213578063e985e9c51461020e578063f242432a14610209578063f2fde38b146102045763fe6d8124146101ff57600080fd5b6118cb565b611875565b611750565b6116f4565b6116b2565b611686565b6115f1565b61158e565b611562565b611522565b6114ff565b611487565b61142b565b61134f565b611333565b61130a565b611263565b61120d565b6111e4565b6111ab565b61117f565b611121565b61108c565b61106e565b611048565b610fb5565b610edc565b610e16565b610d81565b610d3a565b610c0f565b610bc4565b610ba6565b610b64565b610a37565b6108be565b61089a565b61086b565b610842565b6107a3565b6105fa565b610515565b610370565b61030d565b6001600160a01b038116036102ec57565b600080fd5b60a435906102fe826102db565b565b60e435906102fe826102db565b346102ec5760403660031901126102ec57602061035560043561032f816102db565b6024356000526000835260406000209060018060a01b0316600052602052604060002090565b54604051908152f35b6001600160e01b03198116036102ec57565b346102ec5760203660031901126102ec57602060043561038f8161035e565b61039881612c89565b9081156103fc575b81156103eb575b81156103d0575b81156103c0575b506040519015158152f35b6103ca9150612ccd565b386103b5565b6001600160e01b03198116635a2d1e0760e11b1491506103ae565b90506103f681612ccd565b906103a7565b905061040781612c64565b906103a0565b90600182811c9216801561043d575b602083101461042757565b634e487b7160e01b600052602260045260246000fd5b91607f169161041c565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761047857604052565b610447565b602081019081106001600160401b0382111761047857604052565b90601f801991011681019081106001600160401b0382111761047857604052565b60005b8381106104cc5750506000910152565b81810151838201526020016104bc565b906020916104f5815180928185528580860191016104b9565b601f01601f1916010190565b9060206105129281815201906104dc565b90565b346102ec576000806003193601126105f75760405190806007546105388161040d565b808552916001918083169081156105cd5750600114610572575b61056e8561056281870382610498565b60405191829182610501565b0390f35b9250600783527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6885b8284106105b55750505081016020016105628261056e610552565b8054602085870181019190915290930192810161059a565b86955061056e9693506020925061056294915060ff191682840152151560051b8201019293610552565b80fd5b346102ec5760203660031901126102ec576000600435807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000080821015610772575b506d04ee2d6d415b85acef810000000080831015610763575b50662386f26fc1000080831015610754575b506305f5e10080831015610745575b5061271080831015610736575b506064821015610726575b600a8092101561071c575b6001908160216106a4828701612c32565b95860101905b6106e6575b60405161056e90610562816106d86106d38a6106cd60208501612b34565b90612c1b565b612bb1565b03601f198101835282610498565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a835304918215610717579190826106aa565b6106af565b9160010191610693565b9190606460029104910191610688565b6004919392049101913861067d565b60089193920491019138610670565b60109193920491019138610661565b6020919392049101913861064f565b604093508104915038610636565b60609060031901126102ec57600435610798816102db565b906024359060443590565b6107ac36610780565b60ff60049392935460a01c1661083057600092808452600d602052604084205482810180911161082b57818552600c6020526040852054106107f4576107f1926128ef565b80f35b60405162461bcd60e51b815260206004820152600f60248201526e4f766572204d617820537570706c7960881b6044820152606490fd5b611c01565b60405163d93c066560e01b8152600490fd5b346102ec5760003660031901126102ec576010546040516001600160a01b039091168152602090f35b346102ec5760203660031901126102ec5760043560005260036020526020600160406000200154604051908152f35b346102ec5760003660031901126102ec576040516420a226a4a760d91b8152602090f35b346102ec5760403660031901126102ec5760043560005260066020526040600020604051906108ec8261045d565b546001600160a01b0380821680845260a09290921c60208401529015610950575b6109316109296001600160601b0360208501511660243561228e565b612710900490565b915160408051929091166001600160a01b031682526020820192909252f35b905061095a612268565b9061090d565b6001600160401b0381116104785760051b60200190565b81601f820112156102ec5780359161098e83610960565b9261099c6040519485610498565b808452602092838086019260051b8201019283116102ec578301905b8282106109c6575050505090565b813581529083019083016109b8565b6001600160401b03811161047857601f01601f191660200190565b81601f820112156102ec57803590610a07826109d5565b92610a156040519485610498565b828452602083830101116102ec57816000926020809301838601378301015290565b346102ec5760a03660031901126102ec5760048035610a55816102db565b602435610a61816102db565b6001600160401b03906044358281116102ec57610a819036908601610977565b906064358381116102ec57610a999036908701610977565b926084359081116102ec57610ab190369087016109f0565b936001600160a01b03808216903382141580610b40575b610b1357831615610afb5715610ae457610ae29550611d15565b005b604051626a0d4560e21b8152600081880152602490fd5b604051632bfa23e760e11b8152600081890152602490fd5b6040805163711bec9160e11b815233818b019081526001600160a01b038616602082015290918291010390fd5b50600082815260016020908152604080832033845290915290205460ff1615610ac8565b346102ec5760403660031901126102ec57610ae2602435600435610b87826102db565b806000526003602052610ba1600160406000200154611954565b611ace565b346102ec5760003660031901126102ec576020600f54604051908152f35b346102ec5760403660031901126102ec57602435610be1816102db565b336001600160a01b03821603610bfd57610ae290600435611afa565b60405163334bd91960e11b8152600490fd5b346102ec5760403660031901126102ec576001600160401b036004358181116102ec57610c409036906004016109f0565b906024358181116102ec57610c599036906004016109f0565b90610c626118f0565b825190811161047857610c7f81610c7a60095461040d565b6122a1565b602080601f8311600114610cc157508190610ae294600092610cb6575b50508160011b916000199060031b1c191617600955612441565b015190503880610c9c565b60096000529193601f198516600080516020612d71833981519152936000905b828210610d22575050916001939186610ae2979410610d09575b505050811b01600955612441565b015160001960f88460031b161c19169055388080610cfb565b80600186978294978701518155019601940190610ce1565b346102ec5760203660031901126102ec57600435610d57816102db565b610d5f6118f0565b601080546001600160a01b0319166001600160a01b0392909216919091179055005b346102ec576000806003193601126105f757610d9b6118f0565b8060115480610de2575b508080806107f193610dd0610dc4610dc460105460018060a01b031690565b6001600160a01b031690565b47905af1610ddc611fbb565b50612b2d565b818080926064610dfd60018060a01b0360125416924761228e565b04905af1610e09611fbb565b50156105f7578038610da5565b346102ec5760203660031901126102ec57600435610e326118f0565b600e5460ff1615610e6a5760207f032bc66be43dbccb7487781d168eb7bda224628a3b2c3388bdf69b532a3a161191604051908152a1005b60207ff27b6ce5b2f5e68ddb2fd95a8a909d4ecf1daaac270935fff052feacb24f184291604051908152a1005b90815180825260208080930193019160005b828110610eb7575050505090565b835185529381019392810192600101610ea9565b906020610512928181520190610e97565b346102ec5760403660031901126102ec576004356001600160401b038082116102ec57366023830112156102ec578160040135610f1881610960565b92610f266040519485610498565b81845260209160248386019160051b830101913683116102ec57602401905b828210610f7e57856024358681116102ec5761056e91610f6c610f72923690600401610977565b90611c50565b60405191829182610ecb565b8380918335610f8c816102db565b815201910190610f45565b6064359081151582036102ec57565b6024359081151582036102ec57565b346102ec576101003660031901126102ec57600435610fd3816102db565b6001600160401b036024358181116102ec57610ff39036906004016109f0565b906044359081116102ec5761100c9036906004016109f0565b91611015610f97565b926084356001600160601b03811681036102ec57610ae2946110356102f1565b9261103e610300565b9560c43595612601565b346102ec5760003660031901126102ec57602060ff60045460a01c166040519015158152f35b346102ec5760003660031901126102ec576020601154604051908152f35b346102ec576000806003193601126105f75760405190806009546110af8161040d565b808552916001918083169081156105cd57506001146110d85761056e8561056281870382610498565b925060098352600080516020612d718339815191525b8284106111095750505081016020016105628261056e610552565b805460208587018101919091529093019281016110ee565b346102ec576000806003193601126105f75761113b611b8c565b600480546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b346102ec5760203660031901126102ec57600435600052600c6020526020604060002054604051908152f35b346102ec5760203660031901126102ec576004358015158091036102ec576111d16118f0565b60ff8019600e5416911617600e55600080f35b346102ec5760003660031901126102ec576004546040516001600160a01b039091168152602090f35b346102ec5760403660031901126102ec57602060ff611257602435611231816102db565b6004356000526003845260406000209060018060a01b0316600052602052604060002090565b54166040519015158152f35b346102ec576000806003193601126105f75760405190806008546112868161040d565b808552916001918083169081156105cd57506001146112af5761056e8561056281870382610498565b9250600883527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee35b8284106112f25750505081016020016105628261056e610552565b805460208587018101919091529093019281016112d7565b346102ec5760003660031901126102ec576012546040516001600160a01b039091168152602090f35b346102ec5760003660031901126102ec57602060405160008152f35b346102ec5760403660031901126102ec5760043561136c816102db565b611374610fa6565b908115801591908261141e575b61138a90612cf6565b6001600160a01b038116928315611406576113c76113d89233600052600160205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b6040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60405162ced3e160e81b815260006004820152602490fd5b50600e5460ff1615611381565b346102ec5760603660031901126102ec576004356001600160401b038082116102ec57366023830112156102ec5781600401359081116102ec573660248260051b840101116102ec57610ae2916044359160248035920161286b565b61149036610780565b3360009081527f4fc2917feffa8ea2752fb6dbac6c8045d2e5f351a5eb9153c04417d4f36ca0c560205260409020546526a4a72a22a960d11b939192919060ff16156114e057610ae29350612965565b60405163e2517d3f60e01b815233600482015260248101859052604490fd5b346102ec5760203660031901126102ec57602060ff600e54166040519015158152f35b346102ec5760603660031901126102ec5761153b6118f0565b600435600052600b602052602435604060002055600c602052604435604060002055600080f35b346102ec5760203660031901126102ec57600435600052600d6020526020604060002054604051908152f35b6000806003193601126105f757601154156115b8576115b1600f5434101561282e565b8060115580f35b60405162461bcd60e51b81526020600482015260116024820152704e6f2053797374656d20526f79616c747960781b6044820152606490fd5b346102ec576000806003193601126105f7576040519080600a546116148161040d565b808552916001918083169081156105cd575060011461163d5761056e8561056281870382610498565b9250600a8352600080516020612d518339815191525b82841061166e5750505081016020016105628261056e610552565b80546020858701810191909152909301928101611653565b346102ec5760203660031901126102ec57600435600052600b6020526020604060002054604051908152f35b346102ec5760403660031901126102ec57610ae26024356004356116d5826102db565b8060005260036020526116ef600160406000200154611954565b611afa565b346102ec5760403660031901126102ec57602060ff611257600435611718816102db565b60243590611725826102db565b60018060a01b03166000526001845260406000209060018060a01b0316600052602052604060002090565b346102ec5760a03660031901126102ec5760043561176d816102db565b602435611779816102db565b6084356001600160401b0381116102ec576117989036906004016109f0565b906001600160a01b03838116903382141580611851575b61182a5782161561181157156117f957610ae2926117f16064356044359160405192600184526020840152604083019160018352606084015260808301604052565b929091611d15565b604051626a0d4560e21b815260006004820152602490fd5b604051632bfa23e760e11b815260006004820152602490fd5b60405163711bec9160e11b81523360048201526001600160a01b0386166024820152604490fd5b50600082815260016020908152604080832033845290915290205460ff16156117af565b346102ec5760203660031901126102ec57600435611892816102db565b61189a611b8c565b6001600160a01b038116156118b257610ae290611bb8565b604051631e4fbdf760e01b815260006004820152602490fd5b346102ec5760003660031901126102ec576040516526a4a72a22a960d11b8152602090f35b3360009081527f63f6944974ed01e0c77f5fd425d412bc87a2a97469803ba02a51ba75d9154da4602052604090206420a226a4a760d91b9060ff905b5416156119365750565b6044906040519063e2517d3f60e01b82523360048301526024820152fd5b6000818152600360209081526040808320338452909152902060ff9061192c565b6001600160a01b03811660009081527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff602052604081205460ff16611a16578080526003602090815260408083206001600160a01b038516600090815292529020805460ff1916600117905533916001600160a01b0316907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a4600190565b905090565b6001600160a01b03811660009081527f63f6944974ed01e0c77f5fd425d412bc87a2a97469803ba02a51ba75d9154da4602052604081206420a226a4a760d91b9060ff905b5416611ac8578082526003602090815260408084206001600160a01b038616600090815292529020805460ff1916600117905533926001600160a01b0316917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9080a4600190565b50905090565b600090808252600360205260ff611a6084604085209060018060a01b0316600052602052604060002090565b600090808252600360205260ff611b2684604085209060018060a01b0316600052602052604060002090565b541615611ac8578082526003602090815260408084206001600160a01b038616600090815292529020805460ff1916905533926001600160a01b0316917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9080a4600190565b6004546001600160a01b03163303611ba057565b60405163118cdaa760e01b8152336004820152602490fd5b600480546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b634e487b7160e01b600052601160045260246000fd5b600019811461082b5760010190565b8051821015611c3a5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b91909180518351808203611cf3575050805190611c6c82610960565b91611c7a6040519384610498565b808352611c89601f1991610960565b0190602091368385013760005b8151811015611ceb57600581901b8281018401519087018401516000908152602081815260408083206001600160a01b0390941683529290522054611ce69190611ce08287611c26565b52611c17565b611c96565b509193505050565b604051635b05999160e01b815260048101919091526024810191909152604490fd5b94919091611d2860ff600e541615612cf6565b8151845190818103611cf357505060005b8251811015611e4c57600581901b83810160209081015191870101516001600160a01b03929186908a8516611dc5575b611d7c948216611d81575b505050611c17565b611d39565b611dbb91611d9c611db3926000526000602052604060002090565b9060018060a01b0316600052602052604060002090565b9182546128e2565b9055388581611d74565b9192939050611de28a611d9c846000526000602052604060002090565b54838110611e155791879184611d7c96959403611e0d8d611d9c856000526000602052604060002090565b559450611d69565b6040516303dee4c560e01b81526001600160a01b038c16600482015260248101919091526044810184905260648101839052608490fd5b509491939290936001855114600014611ef7576020858101518382015160408051928352928201526001600160a01b03838116929086169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a45b6001600160a01b038116611ec0575b5050505050565b8451600103611ee657602080611edc96015192015192336120e5565b3880808080611eb9565b611ef294919233612231565b611edc565b6040516001600160a01b03828116919085169033907f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb9080611f3a888c83612d2b565b0390a4611eaa565b908160209103126102ec57516105128161035e565b909260a0926105129594600180861b03168352600060208401526040830152606082015281608082015201906104dc565b919261051295949160a094600180871b0380921685521660208401526040830152606082015281608082015201906104dc565b3d15611fe6573d90611fcc826109d5565b91611fda6040519384610498565b82523d6000602084013e565b606090565b9293919093843b611ffd575050505050565b602091612020604051948593849363f23a6e6160e01b9889865260048601611f57565b038160006001600160a01b0388165af1600091816120b5575b506120785782612047611fbb565b805191908261207157604051632bfa23e760e11b81526001600160a01b0383166004820152602490fd5b9050602001fd5b6001600160e01b0319160361209257503880808080611eb9565b604051632bfa23e760e11b81526001600160a01b03919091166004820152602490fd5b6120d791925060203d81116120de575b6120cf8183610498565b810190611f42565b9038612039565b503d6120c5565b939290949194853b6120fa575b505050505050565b61211d602093604051958694859463f23a6e6160e01b998a875260048701611f88565b038160006001600160a01b0388165af16000918161215f575b506121445782612047611fbb565b6001600160e01b0319160361209257503880808080806120f2565b61217891925060203d81116120de576120cf8183610498565b9038612136565b926121ae61051295936121bc9360018060a01b031686526000602087015260a0604087015260a0860190610e97565b908482036060860152610e97565b9160808184039101526104dc565b939061051295936121ae916121bc9460018060a01b03809216885216602087015260a0604087015260a0860190610e97565b9293919093843b61220e575050505050565b602091612020604051948593849363bc197c8160e01b988986526004860161217f565b939290949194853b61224557505050505050565b61211d602093604051958694859463bc197c8160e01b998a8752600487016121ca565b604051906122758261045d565b6005546001600160a01b038116835260a01c6020830152565b8181029291811591840414171561082b57565b601f81116122ad575050565b60009060098252600080516020612d71833981519152906020601f850160051c830194106122f6575b601f0160051c01915b8281106122eb57505050565b8181556001016122df565b90925082906122d6565b601f811161230c575050565b600090600782527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688906020601f850160051c83019410612367575b601f0160051c01915b82811061235c57505050565b818155600101612350565b9092508290612347565b601f811161237d575050565b600090600a8252600080516020612d51833981519152906020601f850160051c830194106123c6575b601f0160051c01915b8281106123bb57505050565b8181556001016123af565b90925082906123a6565b601f81116123dc575050565b600090600882527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3906020601f850160051c83019410612437575b601f0160051c01915b82811061242c57505050565b818155600101612420565b9092508290612417565b9081516001600160401b0381116104785761246681612461600a5461040d565b612371565b602080601f83116001146124a25750819293600092612497575b50508160011b916000199060031b1c191617600a55565b015190503880612480565b90601f198316946124c3600a600052600080516020612d5183398151915290565b926000905b8782106125005750508360019596106124e7575b505050811b01600a55565b015160001960f88460031b161c191690553880806124dc565b806001859682949686015181550195019301906124c8565b9081516001600160401b0381116104785761253d8161253860085461040d565b6123d0565b602080601f8311600114612579575081929360009261256e575b50508160011b916000199060031b1c191617600855565b015190503880612557565b90601f198316946125ac60086000527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee390565b926000905b8782106125e95750508360019596106125d0575b505050811b01600855565b015160001960f88460031b161c191690553880806125c5565b806001859682949686015181550195019301906125b1565b612609611b8c565b6001600160a01b038116156118b2578061262561263492611bb8565b61262e81611975565b50611a1b565b508051906001600160401b0382116104785761265a8261265560075461040d565b612300565b60209081601f841160011461270a57506126dd946126a86126e29895856126c0966102fe9d9c9a966126ba966000926126ff575b50508160011b916000199060031b1c191617600755612518565b60ff8019600e54169115151617600e55565b826127aa565b60018060a01b03166001600160601b0360a01b6010541617601055565b601155565b60018060a01b03166001600160601b0360a01b6012541617601255565b01519050388061268e565b60076000529190601f1984167fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688936000905b8282106127925750506126e298956001866102fe9d9c9a966126ba966126dd9b966126c09a6126a89710612779575b505050811b01600755612518565b015160001960f88460031b161c1916905538808061276b565b8060018697829497870151815501960194019061273c565b906001600160601b0381169161271080841161281057506001600160a01b03169182156127f75760206040516127df8161045d565b848152015260a01b6001600160a01b03191617600555565b604051635b6cc80560e11b815260006004820152602490fd5b8360449160405191636f483d0960e01b835260048301526024820152fd5b1561283557565b60405162461bcd60e51b815260206004820152600e60248201526d09cdee8408adcdeeaced0408ae8d60931b6044820152606490fd5b9091926128766118f0565b60005b838110612887575050505050565b84600052602090600d8252604080600020549084820180921161082b57600c6128be9489600052526000205410156128c357611c17565b612879565b6128dd83878360051b8701356128d8816102db565b612965565b611c17565b9190820180921161082b57565b919080600052600b6020526040600020541561292c576102fe9281600052600b6020526128d86129246040600020548561228e565b34101561282e565b60405162461bcd60e51b8152602060048201526011602482015270139bdd0814d95d08135a5b9d0810dbdcdd607a1b6044820152606490fd5b92916040928351916129768361047d565b60008084526001600160a01b03871695908615612b17576129b783879160405192600184526020840152604083019160018352606084015260808301604052565b9690956129c960ff600e541615612cf6565b8651885190818103612af6575050825b8751811015612a21578089612a15611db38e611d9c8d612a1c9760051b8091602092839101015196010151946000526000602052604060002090565b9055611c17565b6129d9565b509296919590949893976001825114600014612abc57602082810151848201518a5191825291810191909152879033907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6290604090a45b8051600103612aad5790602080612a96959301519101519133611feb565b8152600d60205220805491820180921161082b5755565b612ab793336121fc565b612a96565b8688517f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb339180612aee888883612d2b565b0390a4612a78565b8551635b05999160e01b815260048101919091526024810191909152604490fd5b6024915190632bfa23e760e11b82526004820152fd5b156102ec57565b60095460009291612b448261040d565b91600190818116908115612b9e5750600114612b5f57505050565b90919293506009600052600080516020612d71833981519152906000915b848310612b8b575050500190565b8181602092548587015201920191612b7d565b60ff191683525050811515909102019150565b600a5460009291612bc18261040d565b91600190818116908115612b9e5750600114612bdc57505050565b9091929350600a600052600080516020612d51833981519152906000915b848310612c08575050500190565b8181602092548587015201920191612bfa565b90612c2e602092828151948592016104b9565b0190565b90612c3c826109d5565b612c496040519182610498565b8281528092612c5a601f19916109d5565b0190602036910137565b6001600160e01b03198116637965db0b60e01b14908115612c83575090565b61051291505b63ffffffff60e01b16636cdb3d1360e11b8114908115612cbc575b8115612cae575090565b6301ffc9a760e01b14919050565b6303a24d0760e21b81149150612ca4565b6001600160e01b0319811663152a902d60e11b14908115612cec575090565b6105129150612c64565b15612cfd57565b60405162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b6044820152606490fd5b9091612d4261051293604084526040840190610e97565b916020818403910152610e9756fec65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a86e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7afa164736f6c6343000814000a

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.