becrypto/build/contracts/IBEERC1155.json
2022-10-14 13:50:00 +08:00

1531 lines
57 KiB
JSON

{
"contractName": "IBEERC1155",
"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": "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": "owner",
"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": "id",
"type": "uint256"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "canMint",
"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\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"burnBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"canMint\",\"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\":\"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/IBEERC1155.sol\":\"IBEERC1155\"},\"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/IBEERC1155.sol\":{\"keccak256\":\"0xa61de07e87094fa7b8ad99b09d180fd7d8fac9ba0643cf70c8bbc2a94a3b4460\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://385ebae014adf66890001930f30de91b0295556c69d985e5fffd89c10ecf3257\",\"dweb:/ipfs/QmRUJ5doDzhmja2BCmF1f864o9YPmnY8Jy4BYCFe29ppBm\"]}},\"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 IBEERC1155 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 burnBatch(\n address owner,\n uint256[] memory ids,\n uint256[] memory values\n ) external;\n\n function balanceOf(address account, uint256 id)\n external\n view\n returns (uint256);\n\n function canMint(uint256 id) external view returns (bool);\n}\n",
"sourcePath": "/Users/zhl/Documents/workspace/game/becrypto/contracts/interfaces/IBEERC1155.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/IBEERC1155.sol",
"exportedSymbols": {
"IBEERC1155": [
5998
],
"IERC1155": [
2557
],
"IERC165": [
5274
]
},
"id": 5999,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 5954,
"literals": [
"solidity",
"0.8",
".10"
],
"nodeType": "PragmaDirective",
"src": "32:23:26"
},
{
"absolutePath": "@openzeppelin/contracts/token/ERC1155/IERC1155.sol",
"file": "@openzeppelin/contracts/token/ERC1155/IERC1155.sol",
"id": 5955,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 5999,
"sourceUnit": 2558,
"src": "57:60:26",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"baseName": {
"id": 5956,
"name": "IERC1155",
"nodeType": "IdentifierPath",
"referencedDeclaration": 2557,
"src": "143:8:26"
},
"id": 5957,
"nodeType": "InheritanceSpecifier",
"src": "143:8:26"
}
],
"canonicalName": "IBEERC1155",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 5998,
"linearizedBaseContracts": [
5998,
2557,
5274
],
"name": "IBEERC1155",
"nameLocation": "129:10:26",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "1f7fdffa",
"id": 5970,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "mintBatch",
"nameLocation": "165:9:26",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5968,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5959,
"mutability": "mutable",
"name": "to",
"nameLocation": "188:2:26",
"nodeType": "VariableDeclaration",
"scope": 5970,
"src": "180:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5958,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "180:7:26",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 5962,
"mutability": "mutable",
"name": "ids",
"nameLocation": "213:3:26",
"nodeType": "VariableDeclaration",
"scope": 5970,
"src": "196:20:26",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 5960,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "196:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 5961,
"nodeType": "ArrayTypeName",
"src": "196:9:26",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 5965,
"mutability": "mutable",
"name": "amounts",
"nameLocation": "239:7:26",
"nodeType": "VariableDeclaration",
"scope": 5970,
"src": "222:24:26",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 5963,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "222:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 5964,
"nodeType": "ArrayTypeName",
"src": "222:9:26",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 5967,
"mutability": "mutable",
"name": "data",
"nameLocation": "265:4:26",
"nodeType": "VariableDeclaration",
"scope": 5970,
"src": "252:17:26",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 5966,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "252:5:26",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "174:99:26"
},
"returnParameters": {
"id": 5969,
"nodeType": "ParameterList",
"parameters": [],
"src": "282:0:26"
},
"scope": 5998,
"src": "156:127:26",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "6b20c454",
"id": 5981,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "burnBatch",
"nameLocation": "296:9:26",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5979,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5972,
"mutability": "mutable",
"name": "owner",
"nameLocation": "319:5:26",
"nodeType": "VariableDeclaration",
"scope": 5981,
"src": "311:13:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5971,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "311:7:26",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 5975,
"mutability": "mutable",
"name": "ids",
"nameLocation": "347:3:26",
"nodeType": "VariableDeclaration",
"scope": 5981,
"src": "330:20:26",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 5973,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "330:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 5974,
"nodeType": "ArrayTypeName",
"src": "330:9:26",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 5978,
"mutability": "mutable",
"name": "values",
"nameLocation": "373:6:26",
"nodeType": "VariableDeclaration",
"scope": 5981,
"src": "356:23:26",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 5976,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "356:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 5977,
"nodeType": "ArrayTypeName",
"src": "356:9:26",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
}
],
"src": "305:78:26"
},
"returnParameters": {
"id": 5980,
"nodeType": "ParameterList",
"parameters": [],
"src": "392:0:26"
},
"scope": 5998,
"src": "287:106:26",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"baseFunctions": [
2495
],
"functionSelector": "00fdd58e",
"id": 5990,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "balanceOf",
"nameLocation": "406:9:26",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5986,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5983,
"mutability": "mutable",
"name": "account",
"nameLocation": "424:7:26",
"nodeType": "VariableDeclaration",
"scope": 5990,
"src": "416:15:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5982,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "416:7:26",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 5985,
"mutability": "mutable",
"name": "id",
"nameLocation": "441:2:26",
"nodeType": "VariableDeclaration",
"scope": 5990,
"src": "433:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5984,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "433:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "415:29:26"
},
"returnParameters": {
"id": 5989,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5988,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 5990,
"src": "480:7:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5987,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "480:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "479:9:26"
},
"scope": 5998,
"src": "397:92:26",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "5dd871a3",
"id": 5997,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "canMint",
"nameLocation": "502:7:26",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5993,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5992,
"mutability": "mutable",
"name": "id",
"nameLocation": "518:2:26",
"nodeType": "VariableDeclaration",
"scope": 5997,
"src": "510:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5991,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "510:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "509:12:26"
},
"returnParameters": {
"id": 5996,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5995,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 5997,
"src": "545:4:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 5994,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "545:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "544:6:26"
},
"scope": 5998,
"src": "493:58:26",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 5999,
"src": "119:434:26",
"usedErrors": []
}
],
"src": "32:522:26"
},
"legacyAST": {
"absolutePath": "project:/contracts/interfaces/IBEERC1155.sol",
"exportedSymbols": {
"IBEERC1155": [
5998
],
"IERC1155": [
2557
],
"IERC165": [
5274
]
},
"id": 5999,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 5954,
"literals": [
"solidity",
"0.8",
".10"
],
"nodeType": "PragmaDirective",
"src": "32:23:26"
},
{
"absolutePath": "@openzeppelin/contracts/token/ERC1155/IERC1155.sol",
"file": "@openzeppelin/contracts/token/ERC1155/IERC1155.sol",
"id": 5955,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 5999,
"sourceUnit": 2558,
"src": "57:60:26",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"baseName": {
"id": 5956,
"name": "IERC1155",
"nodeType": "IdentifierPath",
"referencedDeclaration": 2557,
"src": "143:8:26"
},
"id": 5957,
"nodeType": "InheritanceSpecifier",
"src": "143:8:26"
}
],
"canonicalName": "IBEERC1155",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 5998,
"linearizedBaseContracts": [
5998,
2557,
5274
],
"name": "IBEERC1155",
"nameLocation": "129:10:26",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "1f7fdffa",
"id": 5970,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "mintBatch",
"nameLocation": "165:9:26",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5968,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5959,
"mutability": "mutable",
"name": "to",
"nameLocation": "188:2:26",
"nodeType": "VariableDeclaration",
"scope": 5970,
"src": "180:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5958,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "180:7:26",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 5962,
"mutability": "mutable",
"name": "ids",
"nameLocation": "213:3:26",
"nodeType": "VariableDeclaration",
"scope": 5970,
"src": "196:20:26",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 5960,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "196:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 5961,
"nodeType": "ArrayTypeName",
"src": "196:9:26",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 5965,
"mutability": "mutable",
"name": "amounts",
"nameLocation": "239:7:26",
"nodeType": "VariableDeclaration",
"scope": 5970,
"src": "222:24:26",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 5963,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "222:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 5964,
"nodeType": "ArrayTypeName",
"src": "222:9:26",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 5967,
"mutability": "mutable",
"name": "data",
"nameLocation": "265:4:26",
"nodeType": "VariableDeclaration",
"scope": 5970,
"src": "252:17:26",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 5966,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "252:5:26",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "174:99:26"
},
"returnParameters": {
"id": 5969,
"nodeType": "ParameterList",
"parameters": [],
"src": "282:0:26"
},
"scope": 5998,
"src": "156:127:26",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "6b20c454",
"id": 5981,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "burnBatch",
"nameLocation": "296:9:26",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5979,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5972,
"mutability": "mutable",
"name": "owner",
"nameLocation": "319:5:26",
"nodeType": "VariableDeclaration",
"scope": 5981,
"src": "311:13:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5971,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "311:7:26",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 5975,
"mutability": "mutable",
"name": "ids",
"nameLocation": "347:3:26",
"nodeType": "VariableDeclaration",
"scope": 5981,
"src": "330:20:26",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 5973,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "330:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 5974,
"nodeType": "ArrayTypeName",
"src": "330:9:26",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 5978,
"mutability": "mutable",
"name": "values",
"nameLocation": "373:6:26",
"nodeType": "VariableDeclaration",
"scope": 5981,
"src": "356:23:26",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 5976,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "356:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 5977,
"nodeType": "ArrayTypeName",
"src": "356:9:26",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
}
],
"src": "305:78:26"
},
"returnParameters": {
"id": 5980,
"nodeType": "ParameterList",
"parameters": [],
"src": "392:0:26"
},
"scope": 5998,
"src": "287:106:26",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"baseFunctions": [
2495
],
"functionSelector": "00fdd58e",
"id": 5990,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "balanceOf",
"nameLocation": "406:9:26",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5986,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5983,
"mutability": "mutable",
"name": "account",
"nameLocation": "424:7:26",
"nodeType": "VariableDeclaration",
"scope": 5990,
"src": "416:15:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5982,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "416:7:26",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 5985,
"mutability": "mutable",
"name": "id",
"nameLocation": "441:2:26",
"nodeType": "VariableDeclaration",
"scope": 5990,
"src": "433:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5984,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "433:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "415:29:26"
},
"returnParameters": {
"id": 5989,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5988,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 5990,
"src": "480:7:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5987,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "480:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "479:9:26"
},
"scope": 5998,
"src": "397:92:26",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "5dd871a3",
"id": 5997,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "canMint",
"nameLocation": "502:7:26",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5993,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5992,
"mutability": "mutable",
"name": "id",
"nameLocation": "518:2:26",
"nodeType": "VariableDeclaration",
"scope": 5997,
"src": "510:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5991,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "510:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "509:12:26"
},
"returnParameters": {
"id": 5996,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5995,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 5997,
"src": "545:4:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 5994,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "545:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "544:6:26"
},
"scope": 5998,
"src": "493:58:26",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 5999,
"src": "119:434:26",
"usedErrors": []
}
],
"src": "32:522:26"
},
"compiler": {
"name": "solc",
"version": "0.8.10+commit.fc410830.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.4",
"updatedAt": "2022-10-14T05:18:29.712Z",
"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
}
}