ETH Price: $3,297.00 (+0.74%)

Contract

0x88433D2E3fF6AAbC458C7d367DdD490b7E605C7F
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...204952202024-08-10 2:27:35165 days ago1723256855IN
0x88433D2E...b7E605C7F
0 ETH0.0001031.7251206
Revoke Role177816902023-07-27 3:20:35545 days ago1690428035IN
0x88433D2E...b7E605C7F
0 ETH0.0014040128.73954877
Revoke Role177816892023-07-27 3:20:23545 days ago1690428023IN
0x88433D2E...b7E605C7F
0 ETH0.001339127.41087477
Revoke Role177816882023-07-27 3:20:11545 days ago1690428011IN
0x88433D2E...b7E605C7F
0 ETH0.0013601427.83581349
Revoke Role177816872023-07-27 3:19:59545 days ago1690427999IN
0x88433D2E...b7E605C7F
0 ETH0.0013855228.53461423
Grant Role177761082023-07-26 8:37:47546 days ago1690360667IN
0x88433D2E...b7E605C7F
0 ETH0.0024987924.69091705
Grant Role177761072023-07-26 8:37:35546 days ago1690360655IN
0x88433D2E...b7E605C7F
0 ETH0.0026018325.70902411
Grant Role177761062023-07-26 8:37:23546 days ago1690360643IN
0x88433D2E...b7E605C7F
0 ETH0.0025917125.6059914
Set Approval For...177095002023-07-17 0:45:47555 days ago1689554747IN
0x88433D2E...b7E605C7F
0 ETH0.0007682712.88317914
Transfer Ownersh...176208382023-07-04 13:24:11567 days ago1688477051IN
0x88433D2E...b7E605C7F
0 ETH0.0004430715.18826991
Grant Role176208332023-07-04 13:23:11567 days ago1688476991IN
0x88433D2E...b7E605C7F
0 ETH0.0015853915.72326157
Set Approval For...174559072023-06-11 9:12:35590 days ago1686474755IN
0x88433D2E...b7E605C7F
0 ETH0.000973516.32467606
Set Approval For...168090422023-03-12 2:40:23682 days ago1678588823IN
0x88433D2E...b7E605C7F
0 ETH0.0010875318.23674912
Set Approval For...167891522023-03-09 7:26:11685 days ago1678346771IN
0x88433D2E...b7E605C7F
0 ETH0.0015154525.4126524
Set Approval For...167194202023-02-27 12:06:47694 days ago1677499607IN
0x88433D2E...b7E605C7F
0 ETH0.0008195520.62600449
Set Approval For...167194172023-02-27 12:06:11694 days ago1677499571IN
0x88433D2E...b7E605C7F
0 ETH0.0007632219.20838587
Set Approval For...167194172023-02-27 12:06:11694 days ago1677499571IN
0x88433D2E...b7E605C7F
0 ETH0.0011218218.81178587
Grant Role166951252023-02-24 2:04:11698 days ago1677204251IN
0x88433D2E...b7E605C7F
0 ETH0.0035425235
Safe Transfer Fr...166321242023-02-15 5:41:35707 days ago1676439695IN
0x88433D2E...b7E605C7F
0 ETH0.0011239828.04482125
Safe Transfer Fr...166241652023-02-14 2:58:59708 days ago1676343539IN
0x88433D2E...b7E605C7F
0 ETH0.0006096817.28220329
Safe Transfer Fr...166177912023-02-13 5:36:47709 days ago1676266607IN
0x88433D2E...b7E605C7F
0 ETH0.0005587515.84397958
Safe Transfer Fr...166177862023-02-13 5:35:47709 days ago1676266547IN
0x88433D2E...b7E605C7F
0 ETH0.0005180714.69062691
Safe Transfer Fr...166177772023-02-13 5:33:59709 days ago1676266439IN
0x88433D2E...b7E605C7F
0 ETH0.0005347315.16304272
Safe Transfer Fr...165767032023-02-07 11:47:59714 days ago1675770479IN
0x88433D2E...b7E605C7F
0 ETH0.0008589424.25996546
Safe Transfer Fr...165766902023-02-07 11:45:23714 days ago1675770323IN
0x88433D2E...b7E605C7F
0 ETH0.0008640524.40408192
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
IsekaiBattleArmor

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 100 runs

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

import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol';
import {AccessControlEnumerable} from '@openzeppelin/contracts/access/AccessControlEnumerable.sol';
import {Ownable} from '@openzeppelin/contracts/access/Ownable.sol';
import './interface/IIsekaiBattleArmor.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/Base64.sol';
import 'operator-filter-registry/src/DefaultOperatorFilterer.sol';

contract IsekaiBattleArmor is
    ERC1155Burnable,
    AccessControlEnumerable,
    Ownable,
    IIsekaiBattleArmor,
    DefaultOperatorFilterer
{
    using Strings for uint256;
    bytes32 public constant MINTER_ROLE = keccak256('MINTER_ROLE');
    bytes32 public constant BURNER_ROLE = keccak256('BURNER_ROLE');
    bytes32 public constant INFO_SETTER_ROLE = keccak256('INFO_SETTER_ROLE');
    string public constant name = 'Isekai Battle Armor';
    string public constant symbol = 'AMR';

    IIsekaiBattle public override ISB;

    ArmorInfo[] public override ArmorInfos;

    constructor(string memory _uri, IIsekaiBattle _ISB) ERC1155(_uri) {
        ISB = _ISB;
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());

        _setupRole(MINTER_ROLE, _msgSender());
        _setupRole(BURNER_ROLE, _msgSender());
        _setupRole(INFO_SETTER_ROLE, _msgSender());
    }

    function mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override onlyRole(MINTER_ROLE) {
        _mint(to, id, amount, data);
    }

    function mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override onlyRole(MINTER_ROLE) {
        _mintBatch(to, ids, amounts, data);
    }

    function burnAdmin(
        address account,
        uint256 id,
        uint256 value
    ) public virtual override onlyRole(BURNER_ROLE) {
        _burn(account, id, value);
    }

    function burnBatchAdmin(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual override onlyRole(BURNER_ROLE) {
        _burnBatch(account, ids, values);
    }

    function addArmorInfo(ArmorInfo memory info) public virtual override onlyRole(INFO_SETTER_ROLE) {
        ArmorInfos.push(info);
    }

    function setArmorInfo(uint256 index, ArmorInfo memory info) public virtual override onlyRole(INFO_SETTER_ROLE) {
        ArmorInfos[index] = info;
    }

    function getArmorInfosLength() public virtual override returns (uint256) {
        return ArmorInfos.length;
    }

    function uri(uint256 tokenId) public view virtual override returns (string memory) {
        ArmorInfo memory info = ArmorInfos[tokenId];
        string memory armorType = ISB.staticData().armorTypeText(info.armorType);

        bytes memory dataURI = abi.encodePacked(
            '{"name": "',
            armorType,
            ' Lv',
            info.level.toString(),
            '","description": "Armor used for defending against attacks from other players in the fully on-chain game \\"Isekai Battle\\".  \\n  \\nIsekai Battle (https://isekai-battle.xyz/)","image": "',
            info.image,
            '","attributes": [{"trait_type":"Lv","value":',
            info.level.toString(),
            '},{"trait_type":"Type","value":"',
            armorType,
            '"}]}'
        );

        return string(abi.encodePacked('data:application/json;base64,', Base64.encode(dataURI)));
    }

    function balanceOfAll(address account) public view virtual returns (uint256) {
        uint256 count = 0;
        for (uint256 i = 0; i < ArmorInfos.length; i++) {
            count += balanceOf(account, i);
        }
        return count;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC1155, AccessControlEnumerable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

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

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override onlyAllowedOperator(from) {
        super.safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }
}

File 2 of 26 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 3 of 26 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 4 of 26 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 5 of 26 : IIsekaiBattleArmor.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

import './IIsekaiBattle.sol';
import './IISBStaticData.sol';

interface IIsekaiBattleArmor {
    struct ArmorInfo {
        IISBStaticData.ArmorType armorType;
        uint256 level;
        string image;
    }

    function ISB() external view returns (IIsekaiBattle);

    function ArmorInfos(uint256)
        external
        view
        returns (
            IISBStaticData.ArmorType armorType,
            uint256 level,
            string calldata image
        );

    function mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) external;

    function mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) external;

    function burnAdmin(
        address account,
        uint256 id,
        uint256 value
    ) external;

    function burnBatchAdmin(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) external;

    function addArmorInfo(ArmorInfo memory info) external;

    function setArmorInfo(uint256 index, ArmorInfo memory info) external;

    function getArmorInfosLength() external returns (uint256);
}

File 6 of 26 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return result;
    }
}

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 13 of 26 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

File 15 of 26 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 16 of 26 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 17 of 26 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 18 of 26 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 19 of 26 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

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

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

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

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 21 of 26 : IIsekaiBattle.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

import {IISBStaticData} from './IISBStaticData.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import {IISGData} from './IISGData.sol';

error BeforeMint();
error MintReachedMaxSupply();
error MintReachedSaleSupply();
error MintReachedWhitelistSaleSupply();
error MintValueIsMissing();
error MintCannotBuyCharacter();
error MintMinSupply();
error MintMaxSupply();
error MintNotWhitelisted();

interface IIsekaiBattle is IISGData {
    function withdrawAddress() external view returns (address payable);

    function staticData() external view returns (IISBStaticData);

    function whitelist(address) external view returns (bool);

    function whitelistMinted(address) external view returns (uint256);

    function phase() external view returns (IISBStaticData.Phase);

    function minMintSupply() external view returns (uint16);

    function maxMintSupply() external view returns (uint16);

    function maxSupply() external view returns (uint256);

    function resetLevel() external view returns (bool);

    function saveTransferTime() external view returns (bool);

    function tokens() external view returns (IERC20, IERC20);

    function mintByTokens(uint16[] calldata characterIds) external;

    function mint(uint16[] calldata characterIds) external payable;

    function whitelistMint(uint16[] calldata characterIds) external payable;

    function minterMint(uint16[] calldata characterIds, address to) external;

    function burn(uint256 tokenId) external;

    function withdraw() external;

    function setWhitelist(address[] memory addresses) external;

    function deleteWhitelist(address[] memory addresses) external;

    function setTokens(IISBStaticData.Tokens memory _newTokens) external;

    function setPhase(IISBStaticData.Phase _newPhase) external;

    function setMaxSupply(uint256 _newMaxSupply) external;

    function setResetLevel(bool _newResetLevel) external;

    function setSaveTransferTime(bool _newSaveTransferTime) external;

    function setMinMintSupply(uint16 _minMintSupply) external;

    function setMaxMintSupply(uint16 _maxMintSupply) external;
}

File 22 of 26 : IISBStaticData.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';

interface IISBStaticData {
    enum Generation {
        GEN0,
        GEN05,
        GEN1
    }
    enum WeaponType {
        Sword,
        TwoHand,
        Fists,
        Bow,
        Staff
    }
    enum ArmorType {
        HeavyArmor,
        LightArmor,
        Robe,
        Cloak,
        TribalWear
    }
    enum SexType {
        Male,
        Female,
        Hermaphrodite,
        Unknown
    }
    enum SpeciesType {
        Human,
        Elf,
        Dwarf,
        Demon,
        Merfolk,
        Therianthrope,
        Vampire,
        Angel,
        Unknown,
        Dragonewt,
        Monster
    }
    enum HeritageType {
        LowClass,
        MiddleClass,
        HighClass,
        Unknown
    }
    enum PersonalityType {
        Cool,
        Serious,
        Gentle,
        Optimistic,
        Rough,
        Diffident,
        Pessimistic,
        Passionate,
        Unknown,
        Frivolous,
        Confident
    }
    enum Phase {
        BeforeMint,
        WLMint,
        PublicMint,
        MintByTokens
    }

    struct Tokens {
        IERC20 SINN;
        IERC20 GOV;
    }
    struct Metadata {
        uint16 characterId;
        uint16 level;
        uint256 transferTime;
        Status[] seedHistory;
    }
    struct Status {
        uint256 statusId;
        uint16 status;
    }
    struct Character {
        Status[] defaultStatus;
        WeaponType weapon;
        ArmorType armor;
        SexType sex;
        SpeciesType species;
        HeritageType heritage;
        PersonalityType personality;
        string name;
        uint16 imageId;
        bool canBuy;
    }
    struct EtherPrices {
        uint64 mintPrice1;
        uint64 mintPrice2;
        uint64 mintPrice3;
        uint64 mintPrice4;
        uint64 wlMintPrice1;
        uint64 wlMintPrice2;
        uint64 wlMintPrice3;
        uint64 wlMintPrice4;
    }
    struct TokenPrices {
        uint128 SINNPrice1;
        uint128 SINNPrice2;
        uint128 SINNPrice3;
        uint128 SINNPrice4;
        uint128 GOVPrice1;
        uint128 GOVPrice2;
        uint128 GOVPrice3;
        uint128 GOVPrice4;
    }
    struct StatusMaster {
        string statusText;
        bool withLevel;
    }

    function generationText(Generation gen) external pure returns (string memory);

    function weaponTypeText(WeaponType weaponType) external pure returns (string memory);

    function armorTypeText(ArmorType armorType) external pure returns (string memory);

    function sexTypeText(SexType sexType) external pure returns (string memory);

    function speciesTypeText(SpeciesType speciesType) external pure returns (string memory);

    function heritageTypeText(HeritageType heritageType) external pure returns (string memory);

    function personalityTypeText(PersonalityType personalityType) external pure returns (string memory);

    function createMetadata(
        uint256 tokenId,
        Character calldata char,
        Metadata calldata metadata,
        uint16[] calldata status,
        StatusMaster[] calldata statusTexts,
        string calldata image,
        Generation generation
    ) external pure returns (string memory);
}

File 23 of 26 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 24 of 26 : IISGData.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

import {IISBStaticData} from './IISBStaticData.sol';

interface IISGData {
    function etherPrices()
        external
        view
        returns (
            uint64,
            uint64,
            uint64,
            uint64,
            uint64,
            uint64,
            uint64,
            uint64
        );

    function tokenPrices()
        external
        view
        returns (
            uint128,
            uint128,
            uint128,
            uint128,
            uint128,
            uint128,
            uint128,
            uint128
        );

    function characters(uint256)
        external
        view
        returns (
            IISBStaticData.WeaponType,
            IISBStaticData.ArmorType,
            IISBStaticData.SexType,
            IISBStaticData.SpeciesType,
            IISBStaticData.HeritageType,
            IISBStaticData.PersonalityType,
            string calldata,
            uint16,
            bool
        );

    function images(uint256) external view returns (string calldata);

    function statusMasters(uint256) external view returns (string calldata, bool);

    function metadatas(uint256)
        external
        view
        returns (
            uint16,
            uint16,
            uint256
        );

    function gen0Supply() external view returns (uint256);

    function setEtherPrices(IISBStaticData.EtherPrices memory _newPrices) external;

    function setTokenPrices(IISBStaticData.TokenPrices memory _newPrices) external;

    function setGen0Supply(uint256 _newGen0Supply) external;

    function addCharactor(IISBStaticData.Character memory _newCharacter) external;

    function addImage(string memory _newImage) external;

    function addStatusMaster(IISBStaticData.StatusMaster memory _newStatus) external;

    function setCharactor(IISBStaticData.Character memory _newCharacter, uint256 id) external;

    function setImage(string memory _newImage, uint256 id) external;

    function setCanBuyCharacter(uint16 characterId, bool canBuy) external;

    function incrementLevel(uint256 tokenId) external;

    function decrementLevel(uint256 tokenId) external;

    function setLevel(uint256 tokenId, uint16 level) external;

    function addSeed(uint256 tokenId, IISBStaticData.Status memory seed) external;

    function getCharactersLength() external view returns (uint256);

    function getImagesLength() external view returns (uint256);

    function getStatusMastersLength() external view returns (uint256);

    function getSeedHistory(uint256 tokenId) external view returns (IISBStaticData.Status[] memory);

    function getDefaultStatus(uint16 characterId) external view returns (IISBStaticData.Status[] memory);

    function getGenneration(uint256 tokenId) external view returns (IISBStaticData.Generation);

    function getGOVPrice(uint256 length) external view returns (uint256);

    function getSINNPrice(uint256 length) external view returns (uint256);

    function getPrice(uint256 length) external view returns (uint256);

    function getWLPrice(uint256 length) external view returns (uint256);

    function getStatus(uint256 tokenId) external view returns (uint16[] memory);

    function getStatus(uint256 tokenId, uint16 userLevel) external view returns (uint16[] memory);
}

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

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

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

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

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 26 of 26 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"contract IIsekaiBattle","name":"_ISB","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ArmorInfos","outputs":[{"internalType":"enum IISBStaticData.ArmorType","name":"armorType","type":"uint8"},{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"string","name":"image","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BURNER_ROLE","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":"INFO_SETTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ISB","outputs":[{"internalType":"contract IIsekaiBattle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"enum IISBStaticData.ArmorType","name":"armorType","type":"uint8"},{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"string","name":"image","type":"string"}],"internalType":"struct IIsekaiBattleArmor.ArmorInfo","name":"info","type":"tuple"}],"name":"addArmorInfo","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":"account","type":"address"}],"name":"balanceOfAll","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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatchAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getArmorInfosLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"components":[{"internalType":"enum IISBStaticData.ArmorType","name":"armorType","type":"uint8"},{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"string","name":"image","type":"string"}],"internalType":"struct IIsekaiBattleArmor.ArmorInfo","name":"info","type":"tuple"}],"name":"setArmorInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

6080604081815234620005675760006200393980380380916200002382876200056c565b85398301928281850312620005635780516001600160401b0394908581116200055f57820191601f958287850112156200055b578351918183116200054757865192602095601f19956200007e88888d86011601876200056c565b82865287838301011162000543578692918891825b8281106200052b575050850183015201516001600160a01b0397888216939184900362000527578151918383116200051357600254956001968781811c9116801562000508575b89821014620004f45790818486959493116200049c575b508892841160011462000439575088926200042d575b5050600019600383901b1c191690841b176002555b600580546001600160a01b03198082163390811790935598167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08780a36daaeb6d7670e522a718067333cd4e803b620003a4575b50509060049291620002b09596600654161760065583805260039081835286852033600052835260ff876000205416156200036b575b848052838352620001ba33888720620005a6565b507f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a680865282845287862033600052845260ff8860002054161562000332575b85528383526200020d33888720620005a6565b507f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84880865282845287862033600052845260ff88600020541615620002f9575b85528383526200026033888720620005a6565b507f7c357cd34aad7cf565db7de6ea8e1e4300535be20ed0905116856269e77f5b449182865280845287862033600052845260ff88600020541615620002bf575b505083525282339120620005a6565b50516132e59081620006348239f35b8286528352868520336000528352866000209060ff19825416179055333382600080516020620039198339815191528780a43880620002a1565b808652828452878620336000528452876000208260ff19825416179055333382600080516020620039198339815191528980a46200024d565b808652828452878620336000528452876000208260ff19825416179055333382600080516020620039198339815191528980a4620001fa565b848052818352868520336000528352866000208160ff19825416179055333386600080516020620039198339815191528180a4620001a6565b803b156200042957908580926044895180958193633e9f1edf60e11b8352306004840152733cc6cdda760b79bafa08df41ecfa224f810dceb660248401525af180156200041f5715620001705781979597116200040b57855292949280620002b062000170565b634e487b7160e01b87526041600452602487fd5b87513d88823e3d90fd5b8580fd5b01519050388062000107565b60028a52888a20889590939291168a5b8a8282106200048557505084116200046b575b505050811b016002556200011c565b015160001960f88460031b161c191690553880806200045c565b8385015186558a9790950194938401930162000449565b909192935060028a52888a208480870160051c8201928b8810620004ea575b9187968b92969594930160051c01915b828110620004db575050620000f1565b8c81558796508a9101620004cb565b92508192620004bb565b634e487b7160e01b8a52602260045260248afd5b90607f1690620000da565b634e487b7160e01b88526041600452602488fd5b8680fd5b81810186015188820187015289958b94500162000093565b8780fd5b634e487b7160e01b86526041600452602486fd5b8480fd5b8380fd5b5080fd5b600080fd5b601f909101601f19168101906001600160401b038211908210176200059057604052565b634e487b7160e01b600052604160045260246000fd5b919060018301600090828252806020526040822054156000146200062d57845494680100000000000000008610156200061957600186018082558610156200060557836040949596828552602085200155549382526020522055600190565b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b83526041600452602483fd5b5092505056fe60406080815260048036101561001457600080fd5b600090813560e01c908162fdd58e14611ac657816301ffc9a714611a2057816306fdde03146119cd5781630ce80883146119635781630e89341c146114fd5781631f7fdffa14611305578163248a9ca3146112d9578163282c51f31461129e57816329f3131d146112755781632eb2c2d614610fc35781632f2ff15d14610f0857816336568abe14610e775781633934108114610e3c57816341f4343414610e135781634e1273f414610c755781636b20c45414610c20578163715018a614610bc3578163731133e914610a3e5781638da5cb5b14610a155781639010d07c146109d457816391d148541461098c5781639324b42a1461097157816395d89b411461092a578163a217fddf1461090f578163a22cb46514610828578163c365ccc6146107b9578163ca15c87314610791578163d539139314610756578163d547741f1461071a578163d839cd10146106fa578163d83f43b3146106db578163e6c14c341461068f578163e985e9c514610641578163f242432a1461033d578163f2fde38b1461027257508063f5298aca146102105763fe992c98146101b857600080fd5b3461020d57602036600319011261020d576101d1611af6565b91816007545b8082106101e8576020848451908152f35b9092610201610207916101fb86886125c7565b906129ad565b9361264c565b906101d7565b80fd5b50903461026e5761024761024c9161022736611e9e565b9390926001600160a01b0383163381149190821561024f575b5050612685565b612799565b80f35b60ff925088526001602052808820338952602052872054163880610240565b5080fd5b839150346103395760203660031901126103395761028e611af6565b9061029761256f565b6001600160a01b039182169283156102e7575050600580546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b905082346103395760a036600319011261033957610359611af6565b83610362611b11565b91604435906064356084356001600160401b03811161063d576103889036908901611df6565b926001600160a01b03928316923384148015908161062f575b90610610575b6103b090612685565b8616906103be8215156130f4565b6103c781612838565b506103d183612838565b50808652602096868852888720858852885283898820546103f48282101561314e565b838952888a528a8920878a528a52038988205581875286885288872083885288528887206104238582546129ad565b905582858a51848152868b8201526000805160206132908339815191528c3392a43b61044d578580f35b8895879461048e8a519788968795869463f23a6e6160e01b9c8d8752339087015260248601526044850152606484015260a0608484015260a4830190611bed565b03925af18691816105e1575b5061056c5750506001906104ac612cde565b6308c379a014610539575b506104cc5750505b8180808381808080808580f35b5162461bcd60e51b81529150819061053590820160809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356040820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60608201520190565b0390fd5b610541612cfc565b8061054c57506104b7565b6105358591855193849362461bcd60e51b85528401526024830190611bed565b6001600160e01b0319160390506105845750506104bf565b5162461bcd60e51b81529150819061053590820160809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b610602919250843d8611610609575b6105fa8183611b8e565b810190612cbe565b908761049a565b503d6105f0565b508386526001602090815288872033885290528786205460ff166103a7565b610638336131ad565b6103a1565b8480fd5b82843461026e578060031936011261026e5760ff81602093610661611af6565b610669611b11565b6001600160a01b0391821683526001875283832091168252855220549151911615158152f35b905082346103395736600319011261026e57602435906001600160401b038211610339576106d56106c661024c9336908401611ec8565b916106cf612296565b35611c12565b90612d6a565b82843461026e578160031936011261026e576020906007549051908152f35b823461020d5761024c61070c36611e48565b91610715612151565b6128df565b9050823461033957806003193601126103395761024c9135610751600161073f611b11565b938387526003602052862001546123db565b6124e6565b82843461026e578160031936011261026e57602090517f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a68152f35b8391503461033957602036600319011261033957602092818392358252845220549051908152f35b823461020d57602036600319011261020d5781356001600160401b03811161026e576107e89036908401611ec8565b6107f0612296565b60075492600160401b84101561081557506106d583600161024c949501600755611c12565b634e487b7160e01b835260419052602482fd5b90508234610339578060031936011261033957610843611af6565b906024359182151580930361063d5761085b816131ad565b6001600160a01b0316923384146108bb5750338452600160205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020608492519162461bcd60e51b8352820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152fd5b82843461026e578160031936011261026e5751908152602090f35b82843461026e578160031936011261026e57805161096d9161094b82611b27565b600382526220a6a960e91b602083015251918291602083526020830190611bed565b0390f35b823461020d5761024c61098336611e9e565b91610247612151565b839150346103395781600319360112610339578160209360ff926109ae611b11565b90358252600386528282206001600160a01b039091168252855220549151911615158152f35b83915034610339578160031936011261033957602092816109ff923582528452826024359120612ad9565b905491519160018060a01b039160031b1c168152f35b82843461026e578160031936011261026e5760055490516001600160a01b039091168152602090f35b9050823461033957608036600319011261033957610a5a611af6565b604435846024356064356001600160401b03811161033957610a7f9036908801611df6565b610a87611f3a565b6001600160a01b038516610a9c811515612c68565b610aa583612838565b50610aaf85612838565b508284526020958487528785208286528752878520610acf8782546129ad565b905581858951868152888a8201526000805160206132908339815191528b3392a43b610af9578380f35b8794610b3c94879489519687958694859363f23a6e6160e01b9b8c865233908601528560248601526044850152606484015260a0608484015260a4830190611bed565b03925af1869181610ba4575b50610b8c575050600190610b5a612cde565b6308c379a014610b79575b506104cc5750505b81808080848180808380f35b610b81612cfc565b8061054c5750610b65565b6001600160e01b031916039050610584575050610b6d565b610bbc919250843d8611610609576105fa8183611b8e565b9087610b48565b823461020d578060031936011261020d57610bdc61256f565b600580546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b82843461026e5761071561024c91610c3736611e48565b9390926001600160a01b03831633811491908215610c56575050612685565b60ff925088526001602052808820338952602052872054168780610240565b8391503461033957816003193601126103395780356001600160401b0380821161063d573660238301121561063d578183013590610cb282611d4a565b92610cbf86519485611b8e565b82845260209260248486019160051b83010191368311610e0f57602401905b828210610dec57505050602435908111610de857610cff9036908501611d61565b928251845103610d955750815194610d1686611d4a565b95610d2386519788611b8e565b808752610d32601f1991611d4a565b0136838801375b8251811015610d8357610d7e90610d6e6001600160a01b03610d5b8387612671565b5116610d678388612671565b51906125c7565b610d788289612671565b5261264c565b610d39565b84518281528061096d81850189611e14565b60849185519162461bcd60e51b8352820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152fd5b8580fd5b81356001600160a01b0381168103610e0b578152908401908401610cde565b8980fd5b8880fd5b82843461026e578160031936011261026e57602090516daaeb6d7670e522a718067333cd4e8152f35b82843461026e578160031936011261026e57602090517f7c357cd34aad7cf565db7de6ea8e1e4300535be20ed0905116856269e77f5b448152f35b90503461026e578260031936011261026e57610e91611b11565b90336001600160a01b03831603610ead579061024c91356124e6565b608490602085519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152fd5b83915034610339578160031936011261033957610f7691813591610f2a611b11565b9280865260209060038252610f44600185892001546123db565b808752600382528387206001600160a01b039095168088529482528387205460ff1615610f7a575b8652528320612af1565b5080f35b808752600382528387208588528252838720805460ff191660011790553385827f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8a80a4610f6c565b83915034610339576003199160a03684011261127157610fe1611af6565b92610fea611b11565b936001600160401b039360443585811161126d5761100b9036908301611d61565b90606435868111610e0f576110239036908301611d61565b95608435908111610e0f5761103b9036908301611df6565b936001600160a01b03938416933385148015908161125f575b90611240575b61106390612685565b611070845189511461285d565b88169461107e8615156130f4565b895b8a85518210156111045790896110f88a6110ff946110a9856110a2818d612671565b5195612671565b51938082526020908282528383208d84528252858d85852054906110cf8383101561314e565b838652858552868620908652845203848420558252818152828220908d835252209182546129ad565b905561264c565b611080565b505090949395969291978487895160008051602061327083398151915233918061112f8a8a836128ba565b0390a43b61113b578880f35b8651948593849363bc197c8160e01b98898652338c87015260248601526044850160a0905260a4850161116d91611e14565b8285820301606486015261118091611e14565b9083820301608484015261119391611bed565b0381885a94602095f1859181611220575b5061120a57505060016111b5612cde565b6308c379a0146111d3575b6104cc5750505b81808080808080808880f35b6111db612cfc565b806111e657506111c0565b905061053591602094505193849362461bcd60e51b85528401526024830190611bed565b6001600160e01b031916036105845750506111c7565b61123991925060203d8111610609576105fa8183611b8e565b90866111a4565b50848a5260016020908152878b20338c529052868a205460ff1661105a565b611268336131ad565b611054565b8780fd5b8380fd5b82843461026e578160031936011261026e5760065490516001600160a01b039091168152602090f35b82843461026e578160031936011261026e57602090517f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8488152f35b839150346103395760203660031901126103395781602093600192358152600385522001549051908152f35b82843461026e576003199160803684011261020d57611322611af6565b926001600160401b03602435818111611271576113429036908801611d61565b9560443582811161063d5761135a9036908301611d61565b9160643590811161063d576113729036908301611df6565b61137a611f3a565b6001600160a01b03871693611390851515612c68565b61139d895185511461285d565b855b89518110156113e457806113b66113df9287612671565b516113c1828d612671565b51895260208981528a8a2090898b52526110f88a8a209182546129ad565b61139f565b50859894919392978287895160008051602061327083398151915233918061140d8a8d836128ba565b0390a43b611419578580f35b879561146a9561147961145a936020978b51998a988997889663bc197c8160e01b9e8f8952339089015288602489015260a0604489015260a4880190611e14565b9084878303016064880152611e14565b91848303016084850152611bed565b03925af18591816114dd575b506114c75750506001611496612cde565b6308c379a0146114b4575b6104cc5750505b81808281808080808580f35b6114bc612cfc565b806111e657506114a1565b6001600160e01b031916036105845750506114a8565b6114f691925060203d8111610609576105fa8183611b8e565b9086611485565b90503461026e576020918260031936011261020d5761151c8235611c12565b509084519060608201936001600160401b03948381108682111761195057875260ff845416600581101561193d57835280611564600260018701549689870197885201611c81565b88850190815260065489516378a167a360e11b8152919591936001600160a01b0392918a918691829086165afa9384156119335785946118fb575b50519260058410156118e857849391926115d095936024928c51978895869463ebed3d3960e01b8652850190611d27565b165afa9485156118dc578195611859575b505050916117f46101368361096d958761160a6116016117f99851613034565b92519351613034565b957f7d2c7b2274726169745f74797065223a2254797065222c2276616c7565223a228b51978895693d913730b6b2911d101160b11b858801528351958585019661165881602a8b018a611bca565b88016210263b60e91b602a8201526116798251809389602d85019101611bca565b017f222c226465736372697074696f6e223a202241726d6f72207573656420666f72602d8201527f20646566656e64696e6720616761696e73742061747461636b732066726f6d20604d8201527f6f7468657220706c617965727320696e207468652066756c6c79206f6e2d6368606d8201527f61696e2067616d65205c224973656b616920426174746c655c222e20205c6e20608d8201527f205c6e4973656b616920426174746c65202868747470733a2f2f6973656b616960ad8201527816b130ba3a3632973c3cbd179491161134b6b0b3b2911d101160391b60cd82015261176d825180938860e685019101611bca565b017f222c2261747472696275746573223a205b7b2274726169745f74797065223a2260e68201526b263b1116113b30b63ab2911d60a11b6101068201526117bf82518093610112978885019101611bca565b019283015251906117d7826101329485840190611bca565b019063227d5d7d60e01b9082015203610116810184520182611b8e565b612ebd565b9261184a603d825180967f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008783015261183a81518092898686019101611bca565b810103601d810187520185611b8e565b51928284938452830190611bed565b90919294503d8083853e61186d8185611b8e565b8301928681850312610339578051918211610339570182601f8201121561026e5780519161189a83611baf565b936118a789519586611b8e565b83855287848401011161020d57506117f993836118d46117f494610136948a8061096d9b99019101611bca565b9550936115e1565b508651903d90823e3d90fd5b634e487b7160e01b855260218352602485fd5b9093508881813d831161192c575b6119138183611b8e565b8101031261063d5751818116810361063d57923861159f565b503d611909565b8a513d87823e3d90fd5b634e487b7160e01b835260218252602483fd5b634e487b7160e01b835260418252602483fd5b8391503461033957602036600319011261033957356007548110156103395761096d90600360208560076119bb975220910201606060ff825416936119af600260018501549401611c81565b92815196878097611d27565b60208601528401526060830190611bed565b82843461026e578160031936011261026e57805161096d916119ee82611b27565b601382527224b9b2b5b0b4902130ba3a36329020b936b7b960691b602083015251918291602083526020830190611bed565b8391503461033957602036600319011261033957359063ffffffff60e01b82168092036103395760209250635a05180f60e01b8214918215611a66575b50519015158152f35b909150637965db0b60e01b8114908115611a83575b509083611a5d565b636cdb3d1360e11b811491508115611ab5575b8115611aa4575b5083611a7b565b6301ffc9a760e01b14905083611a9d565b6303a24d0760e21b81149150611a96565b82843461026e578060031936011261026e57602090611aef611ae6611af6565b602435906125c7565b9051908152f35b600435906001600160a01b0382168203611b0c57565b600080fd5b602435906001600160a01b0382168203611b0c57565b604081019081106001600160401b03821117611b4257604052565b634e487b7160e01b600052604160045260246000fd5b602081019081106001600160401b03821117611b4257604052565b608081019081106001600160401b03821117611b4257604052565b90601f801991011681019081106001600160401b03821117611b4257604052565b6001600160401b038111611b4257601f01601f191660200190565b60005b838110611bdd5750506000910152565b8181015183820152602001611bcd565b90602091611c0681518092818552858086019101611bca565b601f01601f1916010190565b600754811015611c315760076000526003602060002091020190600090565b634e487b7160e01b600052603260045260246000fd5b90600182811c92168015611c77575b6020831014611c6157565b634e487b7160e01b600052602260045260246000fd5b91607f1691611c56565b9060405191826000825492611c9584611c47565b908184526001948581169081600014611d045750600114611cc1575b5050611cbf92500383611b8e565b565b9093915060005260209081600020936000915b818310611cec575050611cbf93508201013880611cb1565b85548884018501529485019487945091830191611cd4565b915050611cbf94506020925060ff191682840152151560051b8201013880611cb1565b906005821015611d345752565b634e487b7160e01b600052602160045260246000fd5b6001600160401b038111611b425760051b60200190565b81601f82011215611b0c57803591611d7883611d4a565b92611d866040519485611b8e565b808452602092838086019260051b820101928311611b0c578301905b828210611db0575050505090565b81358152908301908301611da2565b929192611dcb82611baf565b91611dd96040519384611b8e565b829481845281830111611b0c578281602093846000960137010152565b9080601f83011215611b0c57816020611e1193359101611dbf565b90565b90815180825260208080930193019160005b828110611e34575050505090565b835185529381019392810192600101611e26565b6060600319820112611b0c576004356001600160a01b0381168103611b0c57916001600160401b03602435818111611b0c5783611e8791600401611d61565b92604435918211611b0c57611e1191600401611d61565b6060906003190112611b0c576004356001600160a01b0381168103611b0c57906024359060443590565b9190606083820312611b0c57604051906001600160401b036060830181811184821017611b4257604052829480356005811015611b0c578452602081013560208501526040810135918211611b0c570181601f82011215611b0c57604091816020611f3593359101611dbf565b910152565b3360009081527f5562e70da342db81569f3094d36be279beaca7ad8e08f434ea188e79d2bfe10c602090815260408083205490927f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a69160ff1615611f9e5750505050565b611fa7336129cb565b91845190611fb482611b73565b6042825284820192606036853782511561213d576030845382519060019182101561213d5790607860218501536041915b8183116120cf5750505061208d57604861053593869361207193612062985198899376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8a860152612039815180928c603789019101611bca565b8401917001034b99036b4b9b9b4b733903937b6329607d1b603784015251809386840190611bca565b01036028810187520185611b8e565b5192839262461bcd60e51b845260048401526024830190611bed565b60648486519062461bcd60e51b825280600483015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f81166010811015612129576f181899199a1a9b1b9c1cb0b131b232b360811b901a6120ff85876129ba565b5360041c92801561211557600019019190611fe5565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b3360009081527fc721e1f137a110c51edbe4010a9b421a661db4e03bd767bb8eff64a76dc2c2be602090815260408083205490927f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8489160ff16156121b55750505050565b6121be336129cb565b918451906121cb82611b73565b6042825284820192606036853782511561213d576030845382519060019182101561213d5790607860218501536041915b8183116122505750505061208d57604861053593869361207193612062985198899376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8a860152612039815180928c603789019101611bca565b909192600f81166010811015612129576f181899199a1a9b1b9c1cb0b131b232b360811b901a61228085876129ba565b5360041c928015612115576000190191906121fc565b3360009081527f560ab5498e9b10fd5ea6e36c75ff05e362e09b0da5cae48b1e0776ec64f11a98602090815260408083205490927f7c357cd34aad7cf565db7de6ea8e1e4300535be20ed0905116856269e77f5b449160ff16156122fa5750505050565b612303336129cb565b9184519061231082611b73565b6042825284820192606036853782511561213d576030845382519060019182101561213d5790607860218501536041915b8183116123955750505061208d57604861053593869361207193612062985198899376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8a860152612039815180928c603789019101611bca565b909192600f81166010811015612129576f181899199a1a9b1b9c1cb0b131b232b360811b901a6123c585876129ba565b5360041c92801561211557600019019190612341565b60009080825260209060038252604092838120338252835260ff8482205416156124055750505050565b61240e336129cb565b9184519061241b82611b73565b6042825284820192606036853782511561213d576030845382519060019182101561213d5790607860218501536041915b8183116124a05750505061208d57604861053593869361207193612062985198899376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8a860152612039815180928c603789019101611bca565b909192600f81166010811015612129576f181899199a1a9b1b9c1cb0b131b232b360811b901a6124d085876129ba565b5360041c9280156121155760001901919061244c565b9060406125249260009080825260036020528282209360018060a01b03169384835260205260ff8383205416612527575b8152600460205220612b78565b50565b808252600360205282822084835260205282822060ff1981541690553384827ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b8580a4612517565b6005546001600160a01b0316330361258357565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b03169081156125f457600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b600019811461265b5760010190565b634e487b7160e01b600052601160045260246000fd5b8051821015611c315760209160051b010190565b1561268c57565b60405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526e195c881b9bdc88185c1c1c9bdd9959608a1b6064820152608490fd5b156126f057565b60405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b1561274857565b60405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608490fd5b6001600160a01b0316906127ae8215156126e9565b6127b781612838565b506127c183612838565b506040918251916127d183611b58565b600094858094528184528360205284842083855260205280858520546127f982821015612741565b83865285602052868620858752602052038585205584519182526020820152600080516020613290833981519152843392a45161283581611b58565b52565b6040519061284582611b27565b60018252602082016020368237825115611c31575290565b1561286457565b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608490fd5b90916128d1611e1193604084526040840190611e14565b916020818403910152611e14565b9192916001600160a01b03166128f68115156126e9565b612903825185511461285d565b60409081519261291284611b58565b6000809452835b815181101561297a57806129306129759284612671565b5161293b828a612671565b51908088526020888152878920878a528152878920549161295e84841015612741565b895288815287892090878a5252038587205561264c565b612919565b506000805160206132708339815191526129a085969795949586519182913395836128ba565b0390a45161283581611b58565b9190820180921161265b57565b908151811015611c31570160200190565b60405190606082018281106001600160401b03821117611b4257604052602a8252602082016040368237825115611c3157603090538151600190811015611c3157607860218401536029905b808211612a6b575050612a275790565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b9091600f81166010811015612ac4576f181899199a1a9b1b9c1cb0b131b232b360811b901a612a9a84866129ba565b5360041c918015612aaf576000190190612a17565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b8054821015611c315760005260206000200190600090565b91906001830160009082825280602052604082205415600014612b7257845494600160401b861015612b5e5783612b4e612b35886001604098999a01855584612ad9565b819391549060031b600019811b9283911b169119161790565b9055549382526020522055600190565b634e487b7160e01b83526041600452602483fd5b50925050565b90600182019060009281845282602052604084205490811515600014612c615760001991808301818111612c4d57825490848201918211612c3957808203612c04575b50505080548015612bf057820191612bd38383612ad9565b909182549160031b1b191690555582526020526040812055600190565b634e487b7160e01b86526031600452602486fd5b612c24612c14612b359386612ad9565b90549060031b1c92839286612ad9565b90558652846020526040862055388080612bbb565b634e487b7160e01b88526011600452602488fd5b634e487b7160e01b87526011600452602487fd5b5050505090565b15612c6f57565b60405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b90816020910312611b0c57516001600160e01b031981168103611b0c5790565b60009060033d11612ceb57565b905060046000803e60005160e01c90565b600060443d10611e1157604051600319913d83016004833e81516001600160401b03918282113d602484011117612d5957818401948551938411612d61573d85010160208487010111612d595750611e1192910160200190611b8e565b949350505050565b50949350505050565b90612ea75781516005811015611d345760ff8019835416911617815560206040600282850151936001948582015501930151908151916001600160401b038311611b4257612db88554611c47565b601f8111612e5e575b5081601f8411600114612dfb5750928293918392600094612df0575b50501b916000199060031b1c1916179055565b015192503880612ddd565b919083601f1981168760005284600020946000905b88838310612e445750505010612e2b575b505050811b019055565b015160001960f88460031b161c19169055388080612e21565b858701518855909601959485019487935090810190612e10565b6000868152838120601f860160051c810192858710612e9d575b601f0160051c019186905b838110612e9257505050612dc1565b828155018690612e83565b9092508290612e78565b634e487b7160e01b600052600060045260246000fd5b80511561302057604051606081018181106001600160401b03821117611b4257604052604081527f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040820152815160029283820180921161265b5760039182900480851b94906001600160fe1b0381160361265b5792612f7c612f6686611baf565b95612f746040519788611b8e565b808752611baf565b6020860190601f190136823793829183518401925b838110612fcf5750505050510680600114612fbc57600214612fb1575090565b603d90600019015390565b50603d9081600019820153600119015390565b85600491979293949701918251600190603f9082828260121c16880101518453828282600c1c16880101518385015382828260061c1688010151888501531685010151878201530195929190612f91565b5060405161302d81611b58565b6000815290565b80156130d65780816000925b6130c0575061304e82611baf565b9161305c6040519384611b8e565b80835281601f1961306c83611baf565b013660208601375b61307d57505090565b600019810190811161265b578091600a916030838306810180911161265b5760f81b6001600160f81b03191660001a906130b790866129ba565b53049081613074565b90916130cd600a9161264c565b92910480613040565b506040516130e381611b27565b60018152600360fc1b602082015290565b156130fb57565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b1561315557565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b6daaeb6d7670e522a718067333cd4e90813b6131c7575050565b604051633185c44d60e21b81523060048201526001600160a01b039091166024820181905291602090829060449082905afa90811561326357600091613229575b50156132115750565b60249060405190633b79c77360e21b82526004820152fd5b6020813d821161325b575b8161324160209383611b8e565b8101031261026e575190811515820361020d575038613208565b3d9150613234565b6040513d6000823e3d90fdfe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fbc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62a2646970667358221220f9d65beec64449677738d9b0bc6e08d814bf69d23d7b5849368351c1e25b7ad864736f6c634300081100332f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d000000000000000000000000000000000000000000000000000000000000004000000000000000000000000035883f8eb8c3fc9403edf3b84cc76b0e8a39dc850000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60406080815260048036101561001457600080fd5b600090813560e01c908162fdd58e14611ac657816301ffc9a714611a2057816306fdde03146119cd5781630ce80883146119635781630e89341c146114fd5781631f7fdffa14611305578163248a9ca3146112d9578163282c51f31461129e57816329f3131d146112755781632eb2c2d614610fc35781632f2ff15d14610f0857816336568abe14610e775781633934108114610e3c57816341f4343414610e135781634e1273f414610c755781636b20c45414610c20578163715018a614610bc3578163731133e914610a3e5781638da5cb5b14610a155781639010d07c146109d457816391d148541461098c5781639324b42a1461097157816395d89b411461092a578163a217fddf1461090f578163a22cb46514610828578163c365ccc6146107b9578163ca15c87314610791578163d539139314610756578163d547741f1461071a578163d839cd10146106fa578163d83f43b3146106db578163e6c14c341461068f578163e985e9c514610641578163f242432a1461033d578163f2fde38b1461027257508063f5298aca146102105763fe992c98146101b857600080fd5b3461020d57602036600319011261020d576101d1611af6565b91816007545b8082106101e8576020848451908152f35b9092610201610207916101fb86886125c7565b906129ad565b9361264c565b906101d7565b80fd5b50903461026e5761024761024c9161022736611e9e565b9390926001600160a01b0383163381149190821561024f575b5050612685565b612799565b80f35b60ff925088526001602052808820338952602052872054163880610240565b5080fd5b839150346103395760203660031901126103395761028e611af6565b9061029761256f565b6001600160a01b039182169283156102e7575050600580546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b905082346103395760a036600319011261033957610359611af6565b83610362611b11565b91604435906064356084356001600160401b03811161063d576103889036908901611df6565b926001600160a01b03928316923384148015908161062f575b90610610575b6103b090612685565b8616906103be8215156130f4565b6103c781612838565b506103d183612838565b50808652602096868852888720858852885283898820546103f48282101561314e565b838952888a528a8920878a528a52038988205581875286885288872083885288528887206104238582546129ad565b905582858a51848152868b8201526000805160206132908339815191528c3392a43b61044d578580f35b8895879461048e8a519788968795869463f23a6e6160e01b9c8d8752339087015260248601526044850152606484015260a0608484015260a4830190611bed565b03925af18691816105e1575b5061056c5750506001906104ac612cde565b6308c379a014610539575b506104cc5750505b8180808381808080808580f35b5162461bcd60e51b81529150819061053590820160809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356040820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60608201520190565b0390fd5b610541612cfc565b8061054c57506104b7565b6105358591855193849362461bcd60e51b85528401526024830190611bed565b6001600160e01b0319160390506105845750506104bf565b5162461bcd60e51b81529150819061053590820160809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b610602919250843d8611610609575b6105fa8183611b8e565b810190612cbe565b908761049a565b503d6105f0565b508386526001602090815288872033885290528786205460ff166103a7565b610638336131ad565b6103a1565b8480fd5b82843461026e578060031936011261026e5760ff81602093610661611af6565b610669611b11565b6001600160a01b0391821683526001875283832091168252855220549151911615158152f35b905082346103395736600319011261026e57602435906001600160401b038211610339576106d56106c661024c9336908401611ec8565b916106cf612296565b35611c12565b90612d6a565b82843461026e578160031936011261026e576020906007549051908152f35b823461020d5761024c61070c36611e48565b91610715612151565b6128df565b9050823461033957806003193601126103395761024c9135610751600161073f611b11565b938387526003602052862001546123db565b6124e6565b82843461026e578160031936011261026e57602090517f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a68152f35b8391503461033957602036600319011261033957602092818392358252845220549051908152f35b823461020d57602036600319011261020d5781356001600160401b03811161026e576107e89036908401611ec8565b6107f0612296565b60075492600160401b84101561081557506106d583600161024c949501600755611c12565b634e487b7160e01b835260419052602482fd5b90508234610339578060031936011261033957610843611af6565b906024359182151580930361063d5761085b816131ad565b6001600160a01b0316923384146108bb5750338452600160205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020608492519162461bcd60e51b8352820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152fd5b82843461026e578160031936011261026e5751908152602090f35b82843461026e578160031936011261026e57805161096d9161094b82611b27565b600382526220a6a960e91b602083015251918291602083526020830190611bed565b0390f35b823461020d5761024c61098336611e9e565b91610247612151565b839150346103395781600319360112610339578160209360ff926109ae611b11565b90358252600386528282206001600160a01b039091168252855220549151911615158152f35b83915034610339578160031936011261033957602092816109ff923582528452826024359120612ad9565b905491519160018060a01b039160031b1c168152f35b82843461026e578160031936011261026e5760055490516001600160a01b039091168152602090f35b9050823461033957608036600319011261033957610a5a611af6565b604435846024356064356001600160401b03811161033957610a7f9036908801611df6565b610a87611f3a565b6001600160a01b038516610a9c811515612c68565b610aa583612838565b50610aaf85612838565b508284526020958487528785208286528752878520610acf8782546129ad565b905581858951868152888a8201526000805160206132908339815191528b3392a43b610af9578380f35b8794610b3c94879489519687958694859363f23a6e6160e01b9b8c865233908601528560248601526044850152606484015260a0608484015260a4830190611bed565b03925af1869181610ba4575b50610b8c575050600190610b5a612cde565b6308c379a014610b79575b506104cc5750505b81808080848180808380f35b610b81612cfc565b8061054c5750610b65565b6001600160e01b031916039050610584575050610b6d565b610bbc919250843d8611610609576105fa8183611b8e565b9087610b48565b823461020d578060031936011261020d57610bdc61256f565b600580546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b82843461026e5761071561024c91610c3736611e48565b9390926001600160a01b03831633811491908215610c56575050612685565b60ff925088526001602052808820338952602052872054168780610240565b8391503461033957816003193601126103395780356001600160401b0380821161063d573660238301121561063d578183013590610cb282611d4a565b92610cbf86519485611b8e565b82845260209260248486019160051b83010191368311610e0f57602401905b828210610dec57505050602435908111610de857610cff9036908501611d61565b928251845103610d955750815194610d1686611d4a565b95610d2386519788611b8e565b808752610d32601f1991611d4a565b0136838801375b8251811015610d8357610d7e90610d6e6001600160a01b03610d5b8387612671565b5116610d678388612671565b51906125c7565b610d788289612671565b5261264c565b610d39565b84518281528061096d81850189611e14565b60849185519162461bcd60e51b8352820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152fd5b8580fd5b81356001600160a01b0381168103610e0b578152908401908401610cde565b8980fd5b8880fd5b82843461026e578160031936011261026e57602090516daaeb6d7670e522a718067333cd4e8152f35b82843461026e578160031936011261026e57602090517f7c357cd34aad7cf565db7de6ea8e1e4300535be20ed0905116856269e77f5b448152f35b90503461026e578260031936011261026e57610e91611b11565b90336001600160a01b03831603610ead579061024c91356124e6565b608490602085519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152fd5b83915034610339578160031936011261033957610f7691813591610f2a611b11565b9280865260209060038252610f44600185892001546123db565b808752600382528387206001600160a01b039095168088529482528387205460ff1615610f7a575b8652528320612af1565b5080f35b808752600382528387208588528252838720805460ff191660011790553385827f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8a80a4610f6c565b83915034610339576003199160a03684011261127157610fe1611af6565b92610fea611b11565b936001600160401b039360443585811161126d5761100b9036908301611d61565b90606435868111610e0f576110239036908301611d61565b95608435908111610e0f5761103b9036908301611df6565b936001600160a01b03938416933385148015908161125f575b90611240575b61106390612685565b611070845189511461285d565b88169461107e8615156130f4565b895b8a85518210156111045790896110f88a6110ff946110a9856110a2818d612671565b5195612671565b51938082526020908282528383208d84528252858d85852054906110cf8383101561314e565b838652858552868620908652845203848420558252818152828220908d835252209182546129ad565b905561264c565b611080565b505090949395969291978487895160008051602061327083398151915233918061112f8a8a836128ba565b0390a43b61113b578880f35b8651948593849363bc197c8160e01b98898652338c87015260248601526044850160a0905260a4850161116d91611e14565b8285820301606486015261118091611e14565b9083820301608484015261119391611bed565b0381885a94602095f1859181611220575b5061120a57505060016111b5612cde565b6308c379a0146111d3575b6104cc5750505b81808080808080808880f35b6111db612cfc565b806111e657506111c0565b905061053591602094505193849362461bcd60e51b85528401526024830190611bed565b6001600160e01b031916036105845750506111c7565b61123991925060203d8111610609576105fa8183611b8e565b90866111a4565b50848a5260016020908152878b20338c529052868a205460ff1661105a565b611268336131ad565b611054565b8780fd5b8380fd5b82843461026e578160031936011261026e5760065490516001600160a01b039091168152602090f35b82843461026e578160031936011261026e57602090517f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8488152f35b839150346103395760203660031901126103395781602093600192358152600385522001549051908152f35b82843461026e576003199160803684011261020d57611322611af6565b926001600160401b03602435818111611271576113429036908801611d61565b9560443582811161063d5761135a9036908301611d61565b9160643590811161063d576113729036908301611df6565b61137a611f3a565b6001600160a01b03871693611390851515612c68565b61139d895185511461285d565b855b89518110156113e457806113b66113df9287612671565b516113c1828d612671565b51895260208981528a8a2090898b52526110f88a8a209182546129ad565b61139f565b50859894919392978287895160008051602061327083398151915233918061140d8a8d836128ba565b0390a43b611419578580f35b879561146a9561147961145a936020978b51998a988997889663bc197c8160e01b9e8f8952339089015288602489015260a0604489015260a4880190611e14565b9084878303016064880152611e14565b91848303016084850152611bed565b03925af18591816114dd575b506114c75750506001611496612cde565b6308c379a0146114b4575b6104cc5750505b81808281808080808580f35b6114bc612cfc565b806111e657506114a1565b6001600160e01b031916036105845750506114a8565b6114f691925060203d8111610609576105fa8183611b8e565b9086611485565b90503461026e576020918260031936011261020d5761151c8235611c12565b509084519060608201936001600160401b03948381108682111761195057875260ff845416600581101561193d57835280611564600260018701549689870197885201611c81565b88850190815260065489516378a167a360e11b8152919591936001600160a01b0392918a918691829086165afa9384156119335785946118fb575b50519260058410156118e857849391926115d095936024928c51978895869463ebed3d3960e01b8652850190611d27565b165afa9485156118dc578195611859575b505050916117f46101368361096d958761160a6116016117f99851613034565b92519351613034565b957f7d2c7b2274726169745f74797065223a2254797065222c2276616c7565223a228b51978895693d913730b6b2911d101160b11b858801528351958585019661165881602a8b018a611bca565b88016210263b60e91b602a8201526116798251809389602d85019101611bca565b017f222c226465736372697074696f6e223a202241726d6f72207573656420666f72602d8201527f20646566656e64696e6720616761696e73742061747461636b732066726f6d20604d8201527f6f7468657220706c617965727320696e207468652066756c6c79206f6e2d6368606d8201527f61696e2067616d65205c224973656b616920426174746c655c222e20205c6e20608d8201527f205c6e4973656b616920426174746c65202868747470733a2f2f6973656b616960ad8201527816b130ba3a3632973c3cbd179491161134b6b0b3b2911d101160391b60cd82015261176d825180938860e685019101611bca565b017f222c2261747472696275746573223a205b7b2274726169745f74797065223a2260e68201526b263b1116113b30b63ab2911d60a11b6101068201526117bf82518093610112978885019101611bca565b019283015251906117d7826101329485840190611bca565b019063227d5d7d60e01b9082015203610116810184520182611b8e565b612ebd565b9261184a603d825180967f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008783015261183a81518092898686019101611bca565b810103601d810187520185611b8e565b51928284938452830190611bed565b90919294503d8083853e61186d8185611b8e565b8301928681850312610339578051918211610339570182601f8201121561026e5780519161189a83611baf565b936118a789519586611b8e565b83855287848401011161020d57506117f993836118d46117f494610136948a8061096d9b99019101611bca565b9550936115e1565b508651903d90823e3d90fd5b634e487b7160e01b855260218352602485fd5b9093508881813d831161192c575b6119138183611b8e565b8101031261063d5751818116810361063d57923861159f565b503d611909565b8a513d87823e3d90fd5b634e487b7160e01b835260218252602483fd5b634e487b7160e01b835260418252602483fd5b8391503461033957602036600319011261033957356007548110156103395761096d90600360208560076119bb975220910201606060ff825416936119af600260018501549401611c81565b92815196878097611d27565b60208601528401526060830190611bed565b82843461026e578160031936011261026e57805161096d916119ee82611b27565b601382527224b9b2b5b0b4902130ba3a36329020b936b7b960691b602083015251918291602083526020830190611bed565b8391503461033957602036600319011261033957359063ffffffff60e01b82168092036103395760209250635a05180f60e01b8214918215611a66575b50519015158152f35b909150637965db0b60e01b8114908115611a83575b509083611a5d565b636cdb3d1360e11b811491508115611ab5575b8115611aa4575b5083611a7b565b6301ffc9a760e01b14905083611a9d565b6303a24d0760e21b81149150611a96565b82843461026e578060031936011261026e57602090611aef611ae6611af6565b602435906125c7565b9051908152f35b600435906001600160a01b0382168203611b0c57565b600080fd5b602435906001600160a01b0382168203611b0c57565b604081019081106001600160401b03821117611b4257604052565b634e487b7160e01b600052604160045260246000fd5b602081019081106001600160401b03821117611b4257604052565b608081019081106001600160401b03821117611b4257604052565b90601f801991011681019081106001600160401b03821117611b4257604052565b6001600160401b038111611b4257601f01601f191660200190565b60005b838110611bdd5750506000910152565b8181015183820152602001611bcd565b90602091611c0681518092818552858086019101611bca565b601f01601f1916010190565b600754811015611c315760076000526003602060002091020190600090565b634e487b7160e01b600052603260045260246000fd5b90600182811c92168015611c77575b6020831014611c6157565b634e487b7160e01b600052602260045260246000fd5b91607f1691611c56565b9060405191826000825492611c9584611c47565b908184526001948581169081600014611d045750600114611cc1575b5050611cbf92500383611b8e565b565b9093915060005260209081600020936000915b818310611cec575050611cbf93508201013880611cb1565b85548884018501529485019487945091830191611cd4565b915050611cbf94506020925060ff191682840152151560051b8201013880611cb1565b906005821015611d345752565b634e487b7160e01b600052602160045260246000fd5b6001600160401b038111611b425760051b60200190565b81601f82011215611b0c57803591611d7883611d4a565b92611d866040519485611b8e565b808452602092838086019260051b820101928311611b0c578301905b828210611db0575050505090565b81358152908301908301611da2565b929192611dcb82611baf565b91611dd96040519384611b8e565b829481845281830111611b0c578281602093846000960137010152565b9080601f83011215611b0c57816020611e1193359101611dbf565b90565b90815180825260208080930193019160005b828110611e34575050505090565b835185529381019392810192600101611e26565b6060600319820112611b0c576004356001600160a01b0381168103611b0c57916001600160401b03602435818111611b0c5783611e8791600401611d61565b92604435918211611b0c57611e1191600401611d61565b6060906003190112611b0c576004356001600160a01b0381168103611b0c57906024359060443590565b9190606083820312611b0c57604051906001600160401b036060830181811184821017611b4257604052829480356005811015611b0c578452602081013560208501526040810135918211611b0c570181601f82011215611b0c57604091816020611f3593359101611dbf565b910152565b3360009081527f5562e70da342db81569f3094d36be279beaca7ad8e08f434ea188e79d2bfe10c602090815260408083205490927f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a69160ff1615611f9e5750505050565b611fa7336129cb565b91845190611fb482611b73565b6042825284820192606036853782511561213d576030845382519060019182101561213d5790607860218501536041915b8183116120cf5750505061208d57604861053593869361207193612062985198899376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8a860152612039815180928c603789019101611bca565b8401917001034b99036b4b9b9b4b733903937b6329607d1b603784015251809386840190611bca565b01036028810187520185611b8e565b5192839262461bcd60e51b845260048401526024830190611bed565b60648486519062461bcd60e51b825280600483015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f81166010811015612129576f181899199a1a9b1b9c1cb0b131b232b360811b901a6120ff85876129ba565b5360041c92801561211557600019019190611fe5565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b3360009081527fc721e1f137a110c51edbe4010a9b421a661db4e03bd767bb8eff64a76dc2c2be602090815260408083205490927f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8489160ff16156121b55750505050565b6121be336129cb565b918451906121cb82611b73565b6042825284820192606036853782511561213d576030845382519060019182101561213d5790607860218501536041915b8183116122505750505061208d57604861053593869361207193612062985198899376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8a860152612039815180928c603789019101611bca565b909192600f81166010811015612129576f181899199a1a9b1b9c1cb0b131b232b360811b901a61228085876129ba565b5360041c928015612115576000190191906121fc565b3360009081527f560ab5498e9b10fd5ea6e36c75ff05e362e09b0da5cae48b1e0776ec64f11a98602090815260408083205490927f7c357cd34aad7cf565db7de6ea8e1e4300535be20ed0905116856269e77f5b449160ff16156122fa5750505050565b612303336129cb565b9184519061231082611b73565b6042825284820192606036853782511561213d576030845382519060019182101561213d5790607860218501536041915b8183116123955750505061208d57604861053593869361207193612062985198899376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8a860152612039815180928c603789019101611bca565b909192600f81166010811015612129576f181899199a1a9b1b9c1cb0b131b232b360811b901a6123c585876129ba565b5360041c92801561211557600019019190612341565b60009080825260209060038252604092838120338252835260ff8482205416156124055750505050565b61240e336129cb565b9184519061241b82611b73565b6042825284820192606036853782511561213d576030845382519060019182101561213d5790607860218501536041915b8183116124a05750505061208d57604861053593869361207193612062985198899376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8a860152612039815180928c603789019101611bca565b909192600f81166010811015612129576f181899199a1a9b1b9c1cb0b131b232b360811b901a6124d085876129ba565b5360041c9280156121155760001901919061244c565b9060406125249260009080825260036020528282209360018060a01b03169384835260205260ff8383205416612527575b8152600460205220612b78565b50565b808252600360205282822084835260205282822060ff1981541690553384827ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b8580a4612517565b6005546001600160a01b0316330361258357565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b03169081156125f457600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b600019811461265b5760010190565b634e487b7160e01b600052601160045260246000fd5b8051821015611c315760209160051b010190565b1561268c57565b60405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526e195c881b9bdc88185c1c1c9bdd9959608a1b6064820152608490fd5b156126f057565b60405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b1561274857565b60405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608490fd5b6001600160a01b0316906127ae8215156126e9565b6127b781612838565b506127c183612838565b506040918251916127d183611b58565b600094858094528184528360205284842083855260205280858520546127f982821015612741565b83865285602052868620858752602052038585205584519182526020820152600080516020613290833981519152843392a45161283581611b58565b52565b6040519061284582611b27565b60018252602082016020368237825115611c31575290565b1561286457565b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608490fd5b90916128d1611e1193604084526040840190611e14565b916020818403910152611e14565b9192916001600160a01b03166128f68115156126e9565b612903825185511461285d565b60409081519261291284611b58565b6000809452835b815181101561297a57806129306129759284612671565b5161293b828a612671565b51908088526020888152878920878a528152878920549161295e84841015612741565b895288815287892090878a5252038587205561264c565b612919565b506000805160206132708339815191526129a085969795949586519182913395836128ba565b0390a45161283581611b58565b9190820180921161265b57565b908151811015611c31570160200190565b60405190606082018281106001600160401b03821117611b4257604052602a8252602082016040368237825115611c3157603090538151600190811015611c3157607860218401536029905b808211612a6b575050612a275790565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b9091600f81166010811015612ac4576f181899199a1a9b1b9c1cb0b131b232b360811b901a612a9a84866129ba565b5360041c918015612aaf576000190190612a17565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b8054821015611c315760005260206000200190600090565b91906001830160009082825280602052604082205415600014612b7257845494600160401b861015612b5e5783612b4e612b35886001604098999a01855584612ad9565b819391549060031b600019811b9283911b169119161790565b9055549382526020522055600190565b634e487b7160e01b83526041600452602483fd5b50925050565b90600182019060009281845282602052604084205490811515600014612c615760001991808301818111612c4d57825490848201918211612c3957808203612c04575b50505080548015612bf057820191612bd38383612ad9565b909182549160031b1b191690555582526020526040812055600190565b634e487b7160e01b86526031600452602486fd5b612c24612c14612b359386612ad9565b90549060031b1c92839286612ad9565b90558652846020526040862055388080612bbb565b634e487b7160e01b88526011600452602488fd5b634e487b7160e01b87526011600452602487fd5b5050505090565b15612c6f57565b60405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b90816020910312611b0c57516001600160e01b031981168103611b0c5790565b60009060033d11612ceb57565b905060046000803e60005160e01c90565b600060443d10611e1157604051600319913d83016004833e81516001600160401b03918282113d602484011117612d5957818401948551938411612d61573d85010160208487010111612d595750611e1192910160200190611b8e565b949350505050565b50949350505050565b90612ea75781516005811015611d345760ff8019835416911617815560206040600282850151936001948582015501930151908151916001600160401b038311611b4257612db88554611c47565b601f8111612e5e575b5081601f8411600114612dfb5750928293918392600094612df0575b50501b916000199060031b1c1916179055565b015192503880612ddd565b919083601f1981168760005284600020946000905b88838310612e445750505010612e2b575b505050811b019055565b015160001960f88460031b161c19169055388080612e21565b858701518855909601959485019487935090810190612e10565b6000868152838120601f860160051c810192858710612e9d575b601f0160051c019186905b838110612e9257505050612dc1565b828155018690612e83565b9092508290612e78565b634e487b7160e01b600052600060045260246000fd5b80511561302057604051606081018181106001600160401b03821117611b4257604052604081527f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040820152815160029283820180921161265b5760039182900480851b94906001600160fe1b0381160361265b5792612f7c612f6686611baf565b95612f746040519788611b8e565b808752611baf565b6020860190601f190136823793829183518401925b838110612fcf5750505050510680600114612fbc57600214612fb1575090565b603d90600019015390565b50603d9081600019820153600119015390565b85600491979293949701918251600190603f9082828260121c16880101518453828282600c1c16880101518385015382828260061c1688010151888501531685010151878201530195929190612f91565b5060405161302d81611b58565b6000815290565b80156130d65780816000925b6130c0575061304e82611baf565b9161305c6040519384611b8e565b80835281601f1961306c83611baf565b013660208601375b61307d57505090565b600019810190811161265b578091600a916030838306810180911161265b5760f81b6001600160f81b03191660001a906130b790866129ba565b53049081613074565b90916130cd600a9161264c565b92910480613040565b506040516130e381611b27565b60018152600360fc1b602082015290565b156130fb57565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b1561315557565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b6daaeb6d7670e522a718067333cd4e90813b6131c7575050565b604051633185c44d60e21b81523060048201526001600160a01b039091166024820181905291602090829060449082905afa90811561326357600091613229575b50156132115750565b60249060405190633b79c77360e21b82526004820152fd5b6020813d821161325b575b8161324160209383611b8e565b8101031261026e575190811515820361020d575038613208565b3d9150613234565b6040513d6000823e3d90fdfe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fbc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62a2646970667358221220f9d65beec64449677738d9b0bc6e08d814bf69d23d7b5849368351c1e25b7ad864736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000035883f8eb8c3fc9403edf3b84cc76b0e8a39dc850000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _uri (string):
Arg [1] : _ISB (address): 0x35883f8EB8c3Fc9403eDf3B84Cc76b0e8a39dC85

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000035883f8eb8c3fc9403edf3b84cc76b0e8a39dc85
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.