becrypto/build/contracts/INFTFactory2.json
2022-08-17 17:21:15 +08:00

1752 lines
65 KiB
JSON

{
"contractName": "INFTFactory2",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "startTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "saltNonce",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
},
{
"internalType": "contract IBEERC721",
"name": "nft",
"type": "address"
}
],
"name": "mint721ByUser",
"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": "uint256",
"name": "startTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "saltNonce",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
},
{
"internalType": "contract IBEERC1155",
"name": "nft",
"type": "address"
}
],
"name": "mint1155BatchByUser",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "ids",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "amounts",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "startTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "saltNonce",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
},
{
"internalType": "contract IBEERC721",
"name": "nft",
"type": "address"
}
],
"name": "shardMixByUser",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
}
],
"name": "useSignature",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.10+commit.fc410830\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"saltNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"contract IBEERC1155\",\"name\":\"nft\",\"type\":\"address\"}],\"name\":\"mint1155BatchByUser\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"saltNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"contract IBEERC721\",\"name\":\"nft\",\"type\":\"address\"}],\"name\":\"mint721ByUser\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"saltNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"contract IBEERC721\",\"name\":\"nft\",\"type\":\"address\"}],\"name\":\"shardMixByUser\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"useSignature\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/INFTFactory.sol\":\"INFTFactory2\"},\"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/token/ERC721/IERC721.sol\":{\"keccak256\":\"0x516a22876c1fab47f49b1bc22b4614491cd05338af8bd2e7b382da090a079990\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a439187f7126d31add4557f82d8aed6be0162007cd7182c48fd934dbab8f3849\",\"dweb:/ipfs/QmRPLguRFvrRJS7r6F1bcLvsx6q1VrgjEpZafyeL8D7xZh\"]},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://be161e54f24e5c6fae81a12db1a8ae87bc5ae1b0ddc805d82a1440a68455088f\",\"dweb:/ipfs/QmP7C3CHdY9urF4dEMb9wmsp1wMxHF6nhA2yQE5SKiPAdy\"]},\"project:/contracts/interfaces/IBEERC1155.sol\":{\"keccak256\":\"0x54cc3ae24f541333f7c22b241cb09887eb9bbad8ea386944cd78268845dd6203\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://915163651243eb12cecd6176a2415f1c8d2ff759a103a08c304b36f803060740\",\"dweb:/ipfs/QmYcPxNtLUUfcDBVaikrWRh2p4qsqb3XGWv35iNjsGccmL\"]},\"project:/contracts/interfaces/IBEERC721.sol\":{\"keccak256\":\"0x0b77e60f046f41dc244ff564ba68c7e83a1ae011db225c0bd1cbf51e48bff588\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b6b94ce872e2ea99961914995a2b9c77827f4b340f3885321e08fb0fe4387bcc\",\"dweb:/ipfs/QmaRFS9AbnS6HHXUM1Y7cv34cnRb2cfGUTMgZZjZouNfiK\"]},\"project:/contracts/interfaces/INFTFactory.sol\":{\"keccak256\":\"0x80d1f59590abf020f7d13ae6f73de1b1a619a52a6c7a411a64408c7b36d86f33\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6768e6b2a4dedfa0b4d29f433d793fb55ccd276c87cfad5111b0e99da7540583\",\"dweb:/ipfs/Qmbjohip7k8wsXiSjxyvtREnYRTBKNB6q8TDtxwCmSv3hL\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.10;\nimport \"../interfaces/IBEERC721.sol\";\nimport \"../interfaces/IBEERC1155.sol\";\n\ninterface INFTFactory2 {\n function mint721ByUser(\n address to,\n uint256 id,\n uint256 startTime,\n uint256 saltNonce,\n bytes calldata signature,\n IBEERC721 nft\n ) external;\n\n function mint1155BatchByUser(\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n uint256 startTime,\n uint256 saltNonce,\n bytes calldata signature,\n IBEERC1155 nft\n ) external;\n\n function shardMixByUser(\n // ShardParam param,\n uint256[] memory ids,\n uint256[] memory amounts,\n uint256 startTime,\n uint256 saltNonce,\n bytes calldata signature,\n IBEERC721 nft\n ) external;\n\n function useSignature(\n bytes calldata signature\n ) external;\n}\n",
"sourcePath": "/Users/zhl/Documents/workspace/game/becrypto/contracts/interfaces/INFTFactory.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/INFTFactory.sol",
"exportedSymbols": {
"IBEERC1155": [
1981
],
"IBEERC721": [
2008
],
"IERC1155": [
300
],
"IERC165": [
1657
],
"IERC721": [
718
],
"INFTFactory2": [
2072
]
},
"id": 2073,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2010,
"literals": [
"solidity",
"0.8",
".10"
],
"nodeType": "PragmaDirective",
"src": "32:23:14"
},
{
"absolutePath": "project:/contracts/interfaces/IBEERC721.sol",
"file": "../interfaces/IBEERC721.sol",
"id": 2011,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 2073,
"sourceUnit": 2009,
"src": "56:37:14",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "project:/contracts/interfaces/IBEERC1155.sol",
"file": "../interfaces/IBEERC1155.sol",
"id": 2012,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 2073,
"sourceUnit": 1982,
"src": "94:38:14",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "INFTFactory2",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 2072,
"linearizedBaseContracts": [
2072
],
"name": "INFTFactory2",
"nameLocation": "144:12:14",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "3bcc7afb",
"id": 2028,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "mint721ByUser",
"nameLocation": "170:13:14",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2026,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2014,
"mutability": "mutable",
"name": "to",
"nameLocation": "197:2:14",
"nodeType": "VariableDeclaration",
"scope": 2028,
"src": "189:10:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2013,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "189:7:14",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2016,
"mutability": "mutable",
"name": "id",
"nameLocation": "213:2:14",
"nodeType": "VariableDeclaration",
"scope": 2028,
"src": "205:10:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2015,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "205:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2018,
"mutability": "mutable",
"name": "startTime",
"nameLocation": "229:9:14",
"nodeType": "VariableDeclaration",
"scope": 2028,
"src": "221:17:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2017,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "221:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2020,
"mutability": "mutable",
"name": "saltNonce",
"nameLocation": "252:9:14",
"nodeType": "VariableDeclaration",
"scope": 2028,
"src": "244:17:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2019,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "244:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2022,
"mutability": "mutable",
"name": "signature",
"nameLocation": "282:9:14",
"nodeType": "VariableDeclaration",
"scope": 2028,
"src": "267:24:14",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 2021,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "267:5:14",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2025,
"mutability": "mutable",
"name": "nft",
"nameLocation": "307:3:14",
"nodeType": "VariableDeclaration",
"scope": 2028,
"src": "297:13:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IBEERC721_$2008",
"typeString": "contract IBEERC721"
},
"typeName": {
"id": 2024,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 2023,
"name": "IBEERC721",
"nodeType": "IdentifierPath",
"referencedDeclaration": 2008,
"src": "297:9:14"
},
"referencedDeclaration": 2008,
"src": "297:9:14",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IBEERC721_$2008",
"typeString": "contract IBEERC721"
}
},
"visibility": "internal"
}
],
"src": "183:131:14"
},
"returnParameters": {
"id": 2027,
"nodeType": "ParameterList",
"parameters": [],
"src": "323:0:14"
},
"scope": 2072,
"src": "161:163:14",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "0224cf39",
"id": 2048,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "mint1155BatchByUser",
"nameLocation": "337:19:14",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2046,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2030,
"mutability": "mutable",
"name": "to",
"nameLocation": "370:2:14",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "362:10:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2029,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "362:7:14",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2033,
"mutability": "mutable",
"name": "ids",
"nameLocation": "395:3:14",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "378:20:14",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 2031,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "378:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 2032,
"nodeType": "ArrayTypeName",
"src": "378:9:14",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2036,
"mutability": "mutable",
"name": "amounts",
"nameLocation": "421:7:14",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "404:24:14",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 2034,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "404:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 2035,
"nodeType": "ArrayTypeName",
"src": "404:9:14",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2038,
"mutability": "mutable",
"name": "startTime",
"nameLocation": "442:9:14",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "434:17:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2037,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "434:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2040,
"mutability": "mutable",
"name": "saltNonce",
"nameLocation": "465:9:14",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "457:17:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2039,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "457:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2042,
"mutability": "mutable",
"name": "signature",
"nameLocation": "495:9:14",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "480:24:14",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 2041,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "480:5:14",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2045,
"mutability": "mutable",
"name": "nft",
"nameLocation": "521:3:14",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "510:14:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IBEERC1155_$1981",
"typeString": "contract IBEERC1155"
},
"typeName": {
"id": 2044,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 2043,
"name": "IBEERC1155",
"nodeType": "IdentifierPath",
"referencedDeclaration": 1981,
"src": "510:10:14"
},
"referencedDeclaration": 1981,
"src": "510:10:14",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IBEERC1155_$1981",
"typeString": "contract IBEERC1155"
}
},
"visibility": "internal"
}
],
"src": "356:172:14"
},
"returnParameters": {
"id": 2047,
"nodeType": "ParameterList",
"parameters": [],
"src": "537:0:14"
},
"scope": 2072,
"src": "328:210:14",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "3aaa2223",
"id": 2066,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "shardMixByUser",
"nameLocation": "551:14:14",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2064,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2051,
"mutability": "mutable",
"name": "ids",
"nameLocation": "617:3:14",
"nodeType": "VariableDeclaration",
"scope": 2066,
"src": "600:20:14",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 2049,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "600:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 2050,
"nodeType": "ArrayTypeName",
"src": "600:9:14",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2054,
"mutability": "mutable",
"name": "amounts",
"nameLocation": "645:7:14",
"nodeType": "VariableDeclaration",
"scope": 2066,
"src": "628:24:14",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 2052,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "628:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 2053,
"nodeType": "ArrayTypeName",
"src": "628:9:14",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2056,
"mutability": "mutable",
"name": "startTime",
"nameLocation": "668:9:14",
"nodeType": "VariableDeclaration",
"scope": 2066,
"src": "660:17:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2055,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "660:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2058,
"mutability": "mutable",
"name": "saltNonce",
"nameLocation": "693:9:14",
"nodeType": "VariableDeclaration",
"scope": 2066,
"src": "685:17:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2057,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "685:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2060,
"mutability": "mutable",
"name": "signature",
"nameLocation": "725:9:14",
"nodeType": "VariableDeclaration",
"scope": 2066,
"src": "710:24:14",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 2059,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "710:5:14",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2063,
"mutability": "mutable",
"name": "nft",
"nameLocation": "752:3:14",
"nodeType": "VariableDeclaration",
"scope": 2066,
"src": "742:13:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IBEERC721_$2008",
"typeString": "contract IBEERC721"
},
"typeName": {
"id": 2062,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 2061,
"name": "IBEERC721",
"nodeType": "IdentifierPath",
"referencedDeclaration": 2008,
"src": "742:9:14"
},
"referencedDeclaration": 2008,
"src": "742:9:14",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IBEERC721_$2008",
"typeString": "contract IBEERC721"
}
},
"visibility": "internal"
}
],
"src": "565:196:14"
},
"returnParameters": {
"id": 2065,
"nodeType": "ParameterList",
"parameters": [],
"src": "770:0:14"
},
"scope": 2072,
"src": "542:229:14",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "773c3fff",
"id": 2071,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "useSignature",
"nameLocation": "784:12:14",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2069,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2068,
"mutability": "mutable",
"name": "signature",
"nameLocation": "817:9:14",
"nodeType": "VariableDeclaration",
"scope": 2071,
"src": "802:24:14",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 2067,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "802:5:14",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "796:34:14"
},
"returnParameters": {
"id": 2070,
"nodeType": "ParameterList",
"parameters": [],
"src": "839:0:14"
},
"scope": 2072,
"src": "775:65:14",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 2073,
"src": "134:708:14",
"usedErrors": []
}
],
"src": "32:811:14"
},
"legacyAST": {
"absolutePath": "project:/contracts/interfaces/INFTFactory.sol",
"exportedSymbols": {
"IBEERC1155": [
1981
],
"IBEERC721": [
2008
],
"IERC1155": [
300
],
"IERC165": [
1657
],
"IERC721": [
718
],
"INFTFactory2": [
2072
]
},
"id": 2073,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2010,
"literals": [
"solidity",
"0.8",
".10"
],
"nodeType": "PragmaDirective",
"src": "32:23:14"
},
{
"absolutePath": "project:/contracts/interfaces/IBEERC721.sol",
"file": "../interfaces/IBEERC721.sol",
"id": 2011,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 2073,
"sourceUnit": 2009,
"src": "56:37:14",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "project:/contracts/interfaces/IBEERC1155.sol",
"file": "../interfaces/IBEERC1155.sol",
"id": 2012,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 2073,
"sourceUnit": 1982,
"src": "94:38:14",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "INFTFactory2",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 2072,
"linearizedBaseContracts": [
2072
],
"name": "INFTFactory2",
"nameLocation": "144:12:14",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "3bcc7afb",
"id": 2028,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "mint721ByUser",
"nameLocation": "170:13:14",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2026,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2014,
"mutability": "mutable",
"name": "to",
"nameLocation": "197:2:14",
"nodeType": "VariableDeclaration",
"scope": 2028,
"src": "189:10:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2013,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "189:7:14",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2016,
"mutability": "mutable",
"name": "id",
"nameLocation": "213:2:14",
"nodeType": "VariableDeclaration",
"scope": 2028,
"src": "205:10:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2015,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "205:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2018,
"mutability": "mutable",
"name": "startTime",
"nameLocation": "229:9:14",
"nodeType": "VariableDeclaration",
"scope": 2028,
"src": "221:17:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2017,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "221:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2020,
"mutability": "mutable",
"name": "saltNonce",
"nameLocation": "252:9:14",
"nodeType": "VariableDeclaration",
"scope": 2028,
"src": "244:17:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2019,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "244:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2022,
"mutability": "mutable",
"name": "signature",
"nameLocation": "282:9:14",
"nodeType": "VariableDeclaration",
"scope": 2028,
"src": "267:24:14",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 2021,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "267:5:14",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2025,
"mutability": "mutable",
"name": "nft",
"nameLocation": "307:3:14",
"nodeType": "VariableDeclaration",
"scope": 2028,
"src": "297:13:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IBEERC721_$2008",
"typeString": "contract IBEERC721"
},
"typeName": {
"id": 2024,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 2023,
"name": "IBEERC721",
"nodeType": "IdentifierPath",
"referencedDeclaration": 2008,
"src": "297:9:14"
},
"referencedDeclaration": 2008,
"src": "297:9:14",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IBEERC721_$2008",
"typeString": "contract IBEERC721"
}
},
"visibility": "internal"
}
],
"src": "183:131:14"
},
"returnParameters": {
"id": 2027,
"nodeType": "ParameterList",
"parameters": [],
"src": "323:0:14"
},
"scope": 2072,
"src": "161:163:14",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "0224cf39",
"id": 2048,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "mint1155BatchByUser",
"nameLocation": "337:19:14",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2046,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2030,
"mutability": "mutable",
"name": "to",
"nameLocation": "370:2:14",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "362:10:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2029,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "362:7:14",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2033,
"mutability": "mutable",
"name": "ids",
"nameLocation": "395:3:14",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "378:20:14",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 2031,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "378:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 2032,
"nodeType": "ArrayTypeName",
"src": "378:9:14",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2036,
"mutability": "mutable",
"name": "amounts",
"nameLocation": "421:7:14",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "404:24:14",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 2034,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "404:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 2035,
"nodeType": "ArrayTypeName",
"src": "404:9:14",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2038,
"mutability": "mutable",
"name": "startTime",
"nameLocation": "442:9:14",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "434:17:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2037,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "434:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2040,
"mutability": "mutable",
"name": "saltNonce",
"nameLocation": "465:9:14",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "457:17:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2039,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "457:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2042,
"mutability": "mutable",
"name": "signature",
"nameLocation": "495:9:14",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "480:24:14",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 2041,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "480:5:14",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2045,
"mutability": "mutable",
"name": "nft",
"nameLocation": "521:3:14",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "510:14:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IBEERC1155_$1981",
"typeString": "contract IBEERC1155"
},
"typeName": {
"id": 2044,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 2043,
"name": "IBEERC1155",
"nodeType": "IdentifierPath",
"referencedDeclaration": 1981,
"src": "510:10:14"
},
"referencedDeclaration": 1981,
"src": "510:10:14",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IBEERC1155_$1981",
"typeString": "contract IBEERC1155"
}
},
"visibility": "internal"
}
],
"src": "356:172:14"
},
"returnParameters": {
"id": 2047,
"nodeType": "ParameterList",
"parameters": [],
"src": "537:0:14"
},
"scope": 2072,
"src": "328:210:14",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "3aaa2223",
"id": 2066,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "shardMixByUser",
"nameLocation": "551:14:14",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2064,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2051,
"mutability": "mutable",
"name": "ids",
"nameLocation": "617:3:14",
"nodeType": "VariableDeclaration",
"scope": 2066,
"src": "600:20:14",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 2049,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "600:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 2050,
"nodeType": "ArrayTypeName",
"src": "600:9:14",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2054,
"mutability": "mutable",
"name": "amounts",
"nameLocation": "645:7:14",
"nodeType": "VariableDeclaration",
"scope": 2066,
"src": "628:24:14",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 2052,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "628:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 2053,
"nodeType": "ArrayTypeName",
"src": "628:9:14",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2056,
"mutability": "mutable",
"name": "startTime",
"nameLocation": "668:9:14",
"nodeType": "VariableDeclaration",
"scope": 2066,
"src": "660:17:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2055,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "660:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2058,
"mutability": "mutable",
"name": "saltNonce",
"nameLocation": "693:9:14",
"nodeType": "VariableDeclaration",
"scope": 2066,
"src": "685:17:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2057,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "685:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2060,
"mutability": "mutable",
"name": "signature",
"nameLocation": "725:9:14",
"nodeType": "VariableDeclaration",
"scope": 2066,
"src": "710:24:14",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 2059,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "710:5:14",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2063,
"mutability": "mutable",
"name": "nft",
"nameLocation": "752:3:14",
"nodeType": "VariableDeclaration",
"scope": 2066,
"src": "742:13:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IBEERC721_$2008",
"typeString": "contract IBEERC721"
},
"typeName": {
"id": 2062,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 2061,
"name": "IBEERC721",
"nodeType": "IdentifierPath",
"referencedDeclaration": 2008,
"src": "742:9:14"
},
"referencedDeclaration": 2008,
"src": "742:9:14",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IBEERC721_$2008",
"typeString": "contract IBEERC721"
}
},
"visibility": "internal"
}
],
"src": "565:196:14"
},
"returnParameters": {
"id": 2065,
"nodeType": "ParameterList",
"parameters": [],
"src": "770:0:14"
},
"scope": 2072,
"src": "542:229:14",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "773c3fff",
"id": 2071,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "useSignature",
"nameLocation": "784:12:14",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2069,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2068,
"mutability": "mutable",
"name": "signature",
"nameLocation": "817:9:14",
"nodeType": "VariableDeclaration",
"scope": 2071,
"src": "802:24:14",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 2067,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "802:5:14",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "796:34:14"
},
"returnParameters": {
"id": 2070,
"nodeType": "ParameterList",
"parameters": [],
"src": "839:0:14"
},
"scope": 2072,
"src": "775:65:14",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 2073,
"src": "134:708:14",
"usedErrors": []
}
],
"src": "32:811:14"
},
"compiler": {
"name": "solc",
"version": "0.8.10+commit.fc410830.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.4",
"updatedAt": "2022-08-17T08:21:19.238Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}