1284 lines
47 KiB
JSON
1284 lines
47 KiB
JSON
{
|
|
"contractName": "INFTFactory",
|
|
"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": "bytes",
|
|
"name": "signature",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"name": "ignoreSignature",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.10+commit.fc410830\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"ignoreSignature\",\"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\":\"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\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/INFTFactory.sol\":\"INFTFactory\"},\"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\":\"0x88423a254c1ba7592c4a2a8f291e5fcaa3d31e15cc02833a99a9fb8515911166\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6e2c086e5cbc24f676dc2ff32126bdbbee19a4d6d820a44e5a2f659b04e095d0\",\"dweb:/ipfs/QmRue4tsZMijjyTYfSxakw8KsyB24uYXAzWfvvUwdJhmQM\"]},\"project:/contracts/interfaces/IBEERC721.sol\":{\"keccak256\":\"0xce74501414276a0ec2a7b6e82deca86d8eea26cc0b2825b51dd87452a6eda6b9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0ad6f3cf91fcc7bf44a7a9e386eea456471c1056b3970966cf34571ce288699b\",\"dweb:/ipfs/QmdEDAYRZNFyUzMSjFzWw93rBGfNVm8zLKpHPUH35SMsnC\"]},\"project:/contracts/interfaces/INFTFactory.sol\":{\"keccak256\":\"0x98255ac1e7055716f0de4fa3f855d9b267bc55131692429ca195ad9a70bb471c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8a1b43c2771722053d34fdc7f55aa4cb118a41e5b04a533a2acb46dcc80707bc\",\"dweb:/ipfs/Qme2aXikGfoYE2emwDC678oNqfb5hVdBNVgzpZpMCFmf9T\"]}},\"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 INFTFactory {\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 ignoreSignature(\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": [
|
|
3203
|
|
],
|
|
"IBEERC721": [
|
|
3223
|
|
],
|
|
"IERC1155": [
|
|
1778
|
|
],
|
|
"IERC165": [
|
|
2913
|
|
],
|
|
"IERC721": [
|
|
1950
|
|
],
|
|
"INFTFactory": [
|
|
3269
|
|
]
|
|
},
|
|
"id": 3270,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 3225,
|
|
"literals": [
|
|
"solidity",
|
|
"0.8",
|
|
".10"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "32:23:18"
|
|
},
|
|
{
|
|
"absolutePath": "project:/contracts/interfaces/IBEERC721.sol",
|
|
"file": "../interfaces/IBEERC721.sol",
|
|
"id": 3226,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 3270,
|
|
"sourceUnit": 3224,
|
|
"src": "56:37:18",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"absolutePath": "project:/contracts/interfaces/IBEERC1155.sol",
|
|
"file": "../interfaces/IBEERC1155.sol",
|
|
"id": 3227,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 3270,
|
|
"sourceUnit": 3204,
|
|
"src": "94:38:18",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "INFTFactory",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"fullyImplemented": false,
|
|
"id": 3269,
|
|
"linearizedBaseContracts": [
|
|
3269
|
|
],
|
|
"name": "INFTFactory",
|
|
"nameLocation": "144:11:18",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"functionSelector": "3bcc7afb",
|
|
"id": 3243,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "mint721ByUser",
|
|
"nameLocation": "169:13:18",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 3241,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 3229,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "196:2:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3243,
|
|
"src": "188:10:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 3228,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "188:7:18",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3231,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "212:2:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3243,
|
|
"src": "204:10:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 3230,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "204:7:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3233,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "228:9:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3243,
|
|
"src": "220:17:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 3232,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "220:7:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3235,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "251:9:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3243,
|
|
"src": "243:17:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 3234,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "243:7:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3237,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "281:9:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3243,
|
|
"src": "266:24:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 3236,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "266:5:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3240,
|
|
"mutability": "mutable",
|
|
"name": "nft",
|
|
"nameLocation": "306:3:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3243,
|
|
"src": "296:13:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC721_$3223",
|
|
"typeString": "contract IBEERC721"
|
|
},
|
|
"typeName": {
|
|
"id": 3239,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 3238,
|
|
"name": "IBEERC721",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 3223,
|
|
"src": "296:9:18"
|
|
},
|
|
"referencedDeclaration": 3223,
|
|
"src": "296:9:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC721_$3223",
|
|
"typeString": "contract IBEERC721"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "182:131:18"
|
|
},
|
|
"returnParameters": {
|
|
"id": 3242,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "322:0:18"
|
|
},
|
|
"scope": 3269,
|
|
"src": "160:163:18",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "0224cf39",
|
|
"id": 3263,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "mint1155BatchByUser",
|
|
"nameLocation": "336:19:18",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 3261,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 3245,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "369:2:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3263,
|
|
"src": "361:10:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 3244,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "361:7:18",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3248,
|
|
"mutability": "mutable",
|
|
"name": "ids",
|
|
"nameLocation": "394:3:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3263,
|
|
"src": "377:20:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 3246,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "377:7:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 3247,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "377:9:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3251,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "420:7:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3263,
|
|
"src": "403:24:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 3249,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "403:7:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 3250,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "403:9:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3253,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "441:9:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3263,
|
|
"src": "433:17:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 3252,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "433:7:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3255,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "464:9:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3263,
|
|
"src": "456:17:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 3254,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "456:7:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3257,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "494:9:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3263,
|
|
"src": "479:24:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 3256,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "479:5:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3260,
|
|
"mutability": "mutable",
|
|
"name": "nft",
|
|
"nameLocation": "520:3:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3263,
|
|
"src": "509:14:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC1155_$3203",
|
|
"typeString": "contract IBEERC1155"
|
|
},
|
|
"typeName": {
|
|
"id": 3259,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 3258,
|
|
"name": "IBEERC1155",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 3203,
|
|
"src": "509:10:18"
|
|
},
|
|
"referencedDeclaration": 3203,
|
|
"src": "509:10:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC1155_$3203",
|
|
"typeString": "contract IBEERC1155"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "355:172:18"
|
|
},
|
|
"returnParameters": {
|
|
"id": 3262,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "536:0:18"
|
|
},
|
|
"scope": 3269,
|
|
"src": "327:210:18",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "f770eb00",
|
|
"id": 3268,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "ignoreSignature",
|
|
"nameLocation": "550:15:18",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 3266,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 3265,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "586:9:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3268,
|
|
"src": "571:24:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 3264,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "571:5:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "565:34:18"
|
|
},
|
|
"returnParameters": {
|
|
"id": 3267,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "608:0:18"
|
|
},
|
|
"scope": 3269,
|
|
"src": "541:68:18",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 3270,
|
|
"src": "134:477:18",
|
|
"usedErrors": []
|
|
}
|
|
],
|
|
"src": "32:580:18"
|
|
},
|
|
"legacyAST": {
|
|
"absolutePath": "project:/contracts/interfaces/INFTFactory.sol",
|
|
"exportedSymbols": {
|
|
"IBEERC1155": [
|
|
3203
|
|
],
|
|
"IBEERC721": [
|
|
3223
|
|
],
|
|
"IERC1155": [
|
|
1778
|
|
],
|
|
"IERC165": [
|
|
2913
|
|
],
|
|
"IERC721": [
|
|
1950
|
|
],
|
|
"INFTFactory": [
|
|
3269
|
|
]
|
|
},
|
|
"id": 3270,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 3225,
|
|
"literals": [
|
|
"solidity",
|
|
"0.8",
|
|
".10"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "32:23:18"
|
|
},
|
|
{
|
|
"absolutePath": "project:/contracts/interfaces/IBEERC721.sol",
|
|
"file": "../interfaces/IBEERC721.sol",
|
|
"id": 3226,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 3270,
|
|
"sourceUnit": 3224,
|
|
"src": "56:37:18",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"absolutePath": "project:/contracts/interfaces/IBEERC1155.sol",
|
|
"file": "../interfaces/IBEERC1155.sol",
|
|
"id": 3227,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 3270,
|
|
"sourceUnit": 3204,
|
|
"src": "94:38:18",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "INFTFactory",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"fullyImplemented": false,
|
|
"id": 3269,
|
|
"linearizedBaseContracts": [
|
|
3269
|
|
],
|
|
"name": "INFTFactory",
|
|
"nameLocation": "144:11:18",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"functionSelector": "3bcc7afb",
|
|
"id": 3243,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "mint721ByUser",
|
|
"nameLocation": "169:13:18",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 3241,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 3229,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "196:2:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3243,
|
|
"src": "188:10:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 3228,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "188:7:18",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3231,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "212:2:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3243,
|
|
"src": "204:10:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 3230,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "204:7:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3233,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "228:9:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3243,
|
|
"src": "220:17:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 3232,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "220:7:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3235,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "251:9:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3243,
|
|
"src": "243:17:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 3234,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "243:7:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3237,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "281:9:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3243,
|
|
"src": "266:24:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 3236,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "266:5:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3240,
|
|
"mutability": "mutable",
|
|
"name": "nft",
|
|
"nameLocation": "306:3:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3243,
|
|
"src": "296:13:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC721_$3223",
|
|
"typeString": "contract IBEERC721"
|
|
},
|
|
"typeName": {
|
|
"id": 3239,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 3238,
|
|
"name": "IBEERC721",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 3223,
|
|
"src": "296:9:18"
|
|
},
|
|
"referencedDeclaration": 3223,
|
|
"src": "296:9:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC721_$3223",
|
|
"typeString": "contract IBEERC721"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "182:131:18"
|
|
},
|
|
"returnParameters": {
|
|
"id": 3242,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "322:0:18"
|
|
},
|
|
"scope": 3269,
|
|
"src": "160:163:18",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "0224cf39",
|
|
"id": 3263,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "mint1155BatchByUser",
|
|
"nameLocation": "336:19:18",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 3261,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 3245,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "369:2:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3263,
|
|
"src": "361:10:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 3244,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "361:7:18",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3248,
|
|
"mutability": "mutable",
|
|
"name": "ids",
|
|
"nameLocation": "394:3:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3263,
|
|
"src": "377:20:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 3246,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "377:7:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 3247,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "377:9:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3251,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "420:7:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3263,
|
|
"src": "403:24:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 3249,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "403:7:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 3250,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "403:9:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3253,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "441:9:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3263,
|
|
"src": "433:17:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 3252,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "433:7:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3255,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "464:9:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3263,
|
|
"src": "456:17:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 3254,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "456:7:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3257,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "494:9:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3263,
|
|
"src": "479:24:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 3256,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "479:5:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3260,
|
|
"mutability": "mutable",
|
|
"name": "nft",
|
|
"nameLocation": "520:3:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3263,
|
|
"src": "509:14:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC1155_$3203",
|
|
"typeString": "contract IBEERC1155"
|
|
},
|
|
"typeName": {
|
|
"id": 3259,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 3258,
|
|
"name": "IBEERC1155",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 3203,
|
|
"src": "509:10:18"
|
|
},
|
|
"referencedDeclaration": 3203,
|
|
"src": "509:10:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC1155_$3203",
|
|
"typeString": "contract IBEERC1155"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "355:172:18"
|
|
},
|
|
"returnParameters": {
|
|
"id": 3262,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "536:0:18"
|
|
},
|
|
"scope": 3269,
|
|
"src": "327:210:18",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "f770eb00",
|
|
"id": 3268,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "ignoreSignature",
|
|
"nameLocation": "550:15:18",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 3266,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 3265,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "586:9:18",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3268,
|
|
"src": "571:24:18",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 3264,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "571:5:18",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "565:34:18"
|
|
},
|
|
"returnParameters": {
|
|
"id": 3267,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "608:0:18"
|
|
},
|
|
"scope": 3269,
|
|
"src": "541:68:18",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 3270,
|
|
"src": "134:477:18",
|
|
"usedErrors": []
|
|
}
|
|
],
|
|
"src": "32:580:18"
|
|
},
|
|
"compiler": {
|
|
"name": "solc",
|
|
"version": "0.8.10+commit.fc410830.Emscripten.clang"
|
|
},
|
|
"networks": {},
|
|
"schemaVersion": "3.4.4",
|
|
"updatedAt": "2022-08-12T07:04:55.879Z",
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
} |