becrypto/build/contracts/IMintableERC1155.json
2022-08-08 14:39:54 +08:00

1848 lines
69 KiB
JSON

{
"contractName": "IMintableERC1155",
"abi": [
{
"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": "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": "address",
"name": "account",
"type": "address"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "accounts",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "ids",
"type": "uint256[]"
}
],
"name": "balanceOfBatch",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"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": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "ids",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "amounts",
"type": "uint256[]"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "safeBatchTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"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": [
{
"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": "owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "burn",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "ids",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "values",
"type": "uint256[]"
}
],
"name": "burnBatch",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "exists",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.10+commit.fc410830\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"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\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"accounts\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"}],\"name\":\"balanceOfBatch\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"burnBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"exists\",\"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\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeBatchTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"balanceOf(address,uint256)\":{\"details\":\"Returns the amount of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address.\"},\"balanceOfBatch(address[],uint256[])\":{\"details\":\"xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length.\"},\"isApprovedForAll(address,address)\":{\"details\":\"Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}.\"},\"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)\":{\"details\":\"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.\"},\"safeTransferFrom(address,address,uint256,uint256,bytes)\":{\"details\":\"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 be 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.\"},\"setApprovalForAll(address,bool)\":{\"details\":\"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.\"},\"supportsInterface(bytes4)\":{\"details\":\"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.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IMintableERC1155.sol\":\"IMintableERC1155\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC1155/IERC1155.sol\":{\"keccak256\":\"0x8e93de94c9062ebc94fb7e2e3929b0781ac6a2b7772e2f7a59045861c93e5be9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f920a631bf986c610fe573d3c70a2bb6f224f86f4a8550016470c7ee476c9ab5\",\"dweb:/ipfs/QmYzsyVMfnaREKHcHv5RPS8Xg5r1Q38E2SDsGBTnXeFWzb\"]},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://be161e54f24e5c6fae81a12db1a8ae87bc5ae1b0ddc805d82a1440a68455088f\",\"dweb:/ipfs/QmP7C3CHdY9urF4dEMb9wmsp1wMxHF6nhA2yQE5SKiPAdy\"]},\"project:/contracts/interfaces/IMintableERC1155.sol\":{\"keccak256\":\"0x61c61239b61088c62964923d1081c9fb7ad6b6a2d7b6209232f41e3b463eba53\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://57498c964c864181c20b45baffc4aa2417c6003533ae8e352bf04d3fe8b502de\",\"dweb:/ipfs/QmNwYcSwALYqtm2y1JcPLirNwbTu8ijH3qj9wXNF7hhqRM\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.10;\n\nimport \"@openzeppelin/contracts/token/ERC1155/IERC1155.sol\";\n\ninterface IMintableERC1155 is IERC1155 {\n function mintBatch(\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n ) external;\n\n function mint(\n address to,\n uint256 id,\n uint256 amount,\n bytes memory data\n ) external;\n\n function burn(\n address owner,\n uint256 tokenId,\n uint256 amount\n ) external;\n\n function burnBatch(\n address owner,\n uint256[] memory ids,\n uint256[] memory values\n ) external;\n\n function exists(uint256 id) external view returns (bool);\n}",
"sourcePath": "/Users/zhl/Documents/workspace/game/becrypto/contracts/interfaces/IMintableERC1155.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/IMintableERC1155.sol",
"exportedSymbols": {
"IERC1155": [
2557
],
"IERC165": [
3994
],
"IMintableERC1155": [
6149
]
},
"id": 6150,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 6094,
"literals": [
"solidity",
"0.8",
".10"
],
"nodeType": "PragmaDirective",
"src": "32:23:25"
},
{
"absolutePath": "@openzeppelin/contracts/token/ERC1155/IERC1155.sol",
"file": "@openzeppelin/contracts/token/ERC1155/IERC1155.sol",
"id": 6095,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 6150,
"sourceUnit": 2558,
"src": "57:60:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"baseName": {
"id": 6096,
"name": "IERC1155",
"nodeType": "IdentifierPath",
"referencedDeclaration": 2557,
"src": "149:8:25"
},
"id": 6097,
"nodeType": "InheritanceSpecifier",
"src": "149:8:25"
}
],
"canonicalName": "IMintableERC1155",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 6149,
"linearizedBaseContracts": [
6149,
2557,
3994
],
"name": "IMintableERC1155",
"nameLocation": "129:16:25",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "1f7fdffa",
"id": 6110,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "mintBatch",
"nameLocation": "173:9:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6108,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6099,
"mutability": "mutable",
"name": "to",
"nameLocation": "200:2:25",
"nodeType": "VariableDeclaration",
"scope": 6110,
"src": "192:10:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6098,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "192:7:25",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6102,
"mutability": "mutable",
"name": "ids",
"nameLocation": "229:3:25",
"nodeType": "VariableDeclaration",
"scope": 6110,
"src": "212:20:25",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 6100,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "212:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6101,
"nodeType": "ArrayTypeName",
"src": "212:9:25",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6105,
"mutability": "mutable",
"name": "amounts",
"nameLocation": "259:7:25",
"nodeType": "VariableDeclaration",
"scope": 6110,
"src": "242:24:25",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 6103,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "242:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6104,
"nodeType": "ArrayTypeName",
"src": "242:9:25",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6107,
"mutability": "mutable",
"name": "data",
"nameLocation": "289:4:25",
"nodeType": "VariableDeclaration",
"scope": 6110,
"src": "276:17:25",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 6106,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "276:5:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "182:117:25"
},
"returnParameters": {
"id": 6109,
"nodeType": "ParameterList",
"parameters": [],
"src": "308:0:25"
},
"scope": 6149,
"src": "164:145:25",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "731133e9",
"id": 6121,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "mint",
"nameLocation": "324:4:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6119,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6112,
"mutability": "mutable",
"name": "to",
"nameLocation": "346:2:25",
"nodeType": "VariableDeclaration",
"scope": 6121,
"src": "338:10:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6111,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "338:7:25",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6114,
"mutability": "mutable",
"name": "id",
"nameLocation": "366:2:25",
"nodeType": "VariableDeclaration",
"scope": 6121,
"src": "358:10:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6113,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "358:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6116,
"mutability": "mutable",
"name": "amount",
"nameLocation": "386:6:25",
"nodeType": "VariableDeclaration",
"scope": 6121,
"src": "378:14:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6115,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "378:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6118,
"mutability": "mutable",
"name": "data",
"nameLocation": "415:4:25",
"nodeType": "VariableDeclaration",
"scope": 6121,
"src": "402:17:25",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 6117,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "402:5:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "328:97:25"
},
"returnParameters": {
"id": 6120,
"nodeType": "ParameterList",
"parameters": [],
"src": "434:0:25"
},
"scope": 6149,
"src": "315:120:25",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "f5298aca",
"id": 6130,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "burn",
"nameLocation": "450:4:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6128,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6123,
"mutability": "mutable",
"name": "owner",
"nameLocation": "472:5:25",
"nodeType": "VariableDeclaration",
"scope": 6130,
"src": "464:13:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6122,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "464:7:25",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6125,
"mutability": "mutable",
"name": "tokenId",
"nameLocation": "495:7:25",
"nodeType": "VariableDeclaration",
"scope": 6130,
"src": "487:15:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6124,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "487:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6127,
"mutability": "mutable",
"name": "amount",
"nameLocation": "520:6:25",
"nodeType": "VariableDeclaration",
"scope": 6130,
"src": "512:14:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6126,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "512:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "454:78:25"
},
"returnParameters": {
"id": 6129,
"nodeType": "ParameterList",
"parameters": [],
"src": "541:0:25"
},
"scope": 6149,
"src": "441:101:25",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "6b20c454",
"id": 6141,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "burnBatch",
"nameLocation": "557:9:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6139,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6132,
"mutability": "mutable",
"name": "owner",
"nameLocation": "584:5:25",
"nodeType": "VariableDeclaration",
"scope": 6141,
"src": "576:13:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6131,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "576:7:25",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6135,
"mutability": "mutable",
"name": "ids",
"nameLocation": "616:3:25",
"nodeType": "VariableDeclaration",
"scope": 6141,
"src": "599:20:25",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 6133,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "599:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6134,
"nodeType": "ArrayTypeName",
"src": "599:9:25",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6138,
"mutability": "mutable",
"name": "values",
"nameLocation": "646:6:25",
"nodeType": "VariableDeclaration",
"scope": 6141,
"src": "629:23:25",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 6136,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "629:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6137,
"nodeType": "ArrayTypeName",
"src": "629:9:25",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
}
],
"src": "566:92:25"
},
"returnParameters": {
"id": 6140,
"nodeType": "ParameterList",
"parameters": [],
"src": "667:0:25"
},
"scope": 6149,
"src": "548:120:25",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "4f558e79",
"id": 6148,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "exists",
"nameLocation": "683:6:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6144,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6143,
"mutability": "mutable",
"name": "id",
"nameLocation": "698:2:25",
"nodeType": "VariableDeclaration",
"scope": 6148,
"src": "690:10:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6142,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "690:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "689:12:25"
},
"returnParameters": {
"id": 6147,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6146,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 6148,
"src": "725:4:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 6145,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "725:4:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "724:6:25"
},
"scope": 6149,
"src": "674:57:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 6150,
"src": "119:614:25",
"usedErrors": []
}
],
"src": "32:701:25"
},
"legacyAST": {
"absolutePath": "project:/contracts/interfaces/IMintableERC1155.sol",
"exportedSymbols": {
"IERC1155": [
2557
],
"IERC165": [
3994
],
"IMintableERC1155": [
6149
]
},
"id": 6150,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 6094,
"literals": [
"solidity",
"0.8",
".10"
],
"nodeType": "PragmaDirective",
"src": "32:23:25"
},
{
"absolutePath": "@openzeppelin/contracts/token/ERC1155/IERC1155.sol",
"file": "@openzeppelin/contracts/token/ERC1155/IERC1155.sol",
"id": 6095,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 6150,
"sourceUnit": 2558,
"src": "57:60:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"baseName": {
"id": 6096,
"name": "IERC1155",
"nodeType": "IdentifierPath",
"referencedDeclaration": 2557,
"src": "149:8:25"
},
"id": 6097,
"nodeType": "InheritanceSpecifier",
"src": "149:8:25"
}
],
"canonicalName": "IMintableERC1155",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 6149,
"linearizedBaseContracts": [
6149,
2557,
3994
],
"name": "IMintableERC1155",
"nameLocation": "129:16:25",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "1f7fdffa",
"id": 6110,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "mintBatch",
"nameLocation": "173:9:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6108,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6099,
"mutability": "mutable",
"name": "to",
"nameLocation": "200:2:25",
"nodeType": "VariableDeclaration",
"scope": 6110,
"src": "192:10:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6098,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "192:7:25",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6102,
"mutability": "mutable",
"name": "ids",
"nameLocation": "229:3:25",
"nodeType": "VariableDeclaration",
"scope": 6110,
"src": "212:20:25",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 6100,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "212:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6101,
"nodeType": "ArrayTypeName",
"src": "212:9:25",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6105,
"mutability": "mutable",
"name": "amounts",
"nameLocation": "259:7:25",
"nodeType": "VariableDeclaration",
"scope": 6110,
"src": "242:24:25",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 6103,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "242:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6104,
"nodeType": "ArrayTypeName",
"src": "242:9:25",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6107,
"mutability": "mutable",
"name": "data",
"nameLocation": "289:4:25",
"nodeType": "VariableDeclaration",
"scope": 6110,
"src": "276:17:25",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 6106,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "276:5:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "182:117:25"
},
"returnParameters": {
"id": 6109,
"nodeType": "ParameterList",
"parameters": [],
"src": "308:0:25"
},
"scope": 6149,
"src": "164:145:25",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "731133e9",
"id": 6121,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "mint",
"nameLocation": "324:4:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6119,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6112,
"mutability": "mutable",
"name": "to",
"nameLocation": "346:2:25",
"nodeType": "VariableDeclaration",
"scope": 6121,
"src": "338:10:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6111,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "338:7:25",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6114,
"mutability": "mutable",
"name": "id",
"nameLocation": "366:2:25",
"nodeType": "VariableDeclaration",
"scope": 6121,
"src": "358:10:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6113,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "358:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6116,
"mutability": "mutable",
"name": "amount",
"nameLocation": "386:6:25",
"nodeType": "VariableDeclaration",
"scope": 6121,
"src": "378:14:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6115,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "378:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6118,
"mutability": "mutable",
"name": "data",
"nameLocation": "415:4:25",
"nodeType": "VariableDeclaration",
"scope": 6121,
"src": "402:17:25",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 6117,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "402:5:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "328:97:25"
},
"returnParameters": {
"id": 6120,
"nodeType": "ParameterList",
"parameters": [],
"src": "434:0:25"
},
"scope": 6149,
"src": "315:120:25",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "f5298aca",
"id": 6130,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "burn",
"nameLocation": "450:4:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6128,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6123,
"mutability": "mutable",
"name": "owner",
"nameLocation": "472:5:25",
"nodeType": "VariableDeclaration",
"scope": 6130,
"src": "464:13:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6122,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "464:7:25",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6125,
"mutability": "mutable",
"name": "tokenId",
"nameLocation": "495:7:25",
"nodeType": "VariableDeclaration",
"scope": 6130,
"src": "487:15:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6124,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "487:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6127,
"mutability": "mutable",
"name": "amount",
"nameLocation": "520:6:25",
"nodeType": "VariableDeclaration",
"scope": 6130,
"src": "512:14:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6126,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "512:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "454:78:25"
},
"returnParameters": {
"id": 6129,
"nodeType": "ParameterList",
"parameters": [],
"src": "541:0:25"
},
"scope": 6149,
"src": "441:101:25",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "6b20c454",
"id": 6141,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "burnBatch",
"nameLocation": "557:9:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6139,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6132,
"mutability": "mutable",
"name": "owner",
"nameLocation": "584:5:25",
"nodeType": "VariableDeclaration",
"scope": 6141,
"src": "576:13:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6131,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "576:7:25",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6135,
"mutability": "mutable",
"name": "ids",
"nameLocation": "616:3:25",
"nodeType": "VariableDeclaration",
"scope": 6141,
"src": "599:20:25",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 6133,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "599:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6134,
"nodeType": "ArrayTypeName",
"src": "599:9:25",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6138,
"mutability": "mutable",
"name": "values",
"nameLocation": "646:6:25",
"nodeType": "VariableDeclaration",
"scope": 6141,
"src": "629:23:25",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 6136,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "629:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6137,
"nodeType": "ArrayTypeName",
"src": "629:9:25",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
}
],
"src": "566:92:25"
},
"returnParameters": {
"id": 6140,
"nodeType": "ParameterList",
"parameters": [],
"src": "667:0:25"
},
"scope": 6149,
"src": "548:120:25",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "4f558e79",
"id": 6148,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "exists",
"nameLocation": "683:6:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6144,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6143,
"mutability": "mutable",
"name": "id",
"nameLocation": "698:2:25",
"nodeType": "VariableDeclaration",
"scope": 6148,
"src": "690:10:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6142,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "690:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "689:12:25"
},
"returnParameters": {
"id": 6147,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6146,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 6148,
"src": "725:4:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 6145,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "725:4:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "724:6:25"
},
"scope": 6149,
"src": "674:57:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 6150,
"src": "119:614:25",
"usedErrors": []
}
],
"src": "32:701:25"
},
"compiler": {
"name": "solc",
"version": "0.8.10+commit.fc410830.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.3",
"updatedAt": "2022-08-05T03:43:18.207Z",
"devdoc": {
"kind": "dev",
"methods": {
"balanceOf(address,uint256)": {
"details": "Returns the amount of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address."
},
"balanceOfBatch(address[],uint256[])": {
"details": "xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length."
},
"isApprovedForAll(address,address)": {
"details": "Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}."
},
"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {
"details": "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."
},
"safeTransferFrom(address,address,uint256,uint256,bytes)": {
"details": "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 be 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."
},
"setApprovalForAll(address,bool)": {
"details": "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."
},
"supportsInterface(bytes4)": {
"details": "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."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}