1981 lines
73 KiB
JSON
1981 lines
73 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": "uint256",
|
|
"name": "tokenId",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address[2]",
|
|
"name": "addresses",
|
|
"type": "address[2]"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "tokenAmount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"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\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address[2]\",\"name\":\"addresses\",\"type\":\"address[2]\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"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\":\"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\":\"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\":\"0x27a801d51f262882f39234b8abc10b03da4f0682937a573d2906e0eac38c5f84\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3fd86df538bb290b927f2dc59b1795917c92bb8df07192d716f1ac9e45bc804f\",\"dweb:/ipfs/QmU32zkUAvGQNbvFyKNV3EpFm5xYqLJdBrrtsaMNw8Ch82\"]}},\"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 shardMixByUser(\n uint256 tokenId,\n address[2] memory addresses,\n uint256 tokenAmount,\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
|
|
],
|
|
"INFTFactory": [
|
|
2080
|
|
]
|
|
},
|
|
"id": 2081,
|
|
"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": 2081,
|
|
"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": 2081,
|
|
"sourceUnit": 1982,
|
|
"src": "94:38:14",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "INFTFactory",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"fullyImplemented": false,
|
|
"id": 2080,
|
|
"linearizedBaseContracts": [
|
|
2080
|
|
],
|
|
"name": "INFTFactory",
|
|
"nameLocation": "144:11:14",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"functionSelector": "3bcc7afb",
|
|
"id": 2028,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "mint721ByUser",
|
|
"nameLocation": "169:13:14",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 2026,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 2014,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "196:2:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2028,
|
|
"src": "188:10:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 2013,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "188:7:14",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2016,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "212:2:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2028,
|
|
"src": "204:10:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2015,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "204:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2018,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "228:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2028,
|
|
"src": "220:17:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2017,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "220:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2020,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "251:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2028,
|
|
"src": "243:17:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2019,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "243:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2022,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "281:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2028,
|
|
"src": "266:24:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 2021,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "266:5:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2025,
|
|
"mutability": "mutable",
|
|
"name": "nft",
|
|
"nameLocation": "306:3:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2028,
|
|
"src": "296: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": "296:9:14"
|
|
},
|
|
"referencedDeclaration": 2008,
|
|
"src": "296:9:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC721_$2008",
|
|
"typeString": "contract IBEERC721"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "182:131:14"
|
|
},
|
|
"returnParameters": {
|
|
"id": 2027,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "322:0:14"
|
|
},
|
|
"scope": 2080,
|
|
"src": "160:163:14",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "0224cf39",
|
|
"id": 2048,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "mint1155BatchByUser",
|
|
"nameLocation": "336:19:14",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 2046,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 2030,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "369:2:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2048,
|
|
"src": "361:10:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 2029,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "361:7:14",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2033,
|
|
"mutability": "mutable",
|
|
"name": "ids",
|
|
"nameLocation": "394:3:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2048,
|
|
"src": "377: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": "377:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 2032,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "377:9:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2036,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "420:7:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2048,
|
|
"src": "403: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": "403:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 2035,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "403:9:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2038,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "441:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2048,
|
|
"src": "433:17:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2037,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "433:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2040,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "464:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2048,
|
|
"src": "456:17:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2039,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "456:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2042,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "494:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2048,
|
|
"src": "479:24:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 2041,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "479:5:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2045,
|
|
"mutability": "mutable",
|
|
"name": "nft",
|
|
"nameLocation": "520:3:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2048,
|
|
"src": "509: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": "509:10:14"
|
|
},
|
|
"referencedDeclaration": 1981,
|
|
"src": "509:10:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC1155_$1981",
|
|
"typeString": "contract IBEERC1155"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "355:172:14"
|
|
},
|
|
"returnParameters": {
|
|
"id": 2047,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "536:0:14"
|
|
},
|
|
"scope": 2080,
|
|
"src": "327:210:14",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "21bba1e3",
|
|
"id": 2074,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "shardMixByUser",
|
|
"nameLocation": "550:14:14",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 2072,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 2050,
|
|
"mutability": "mutable",
|
|
"name": "tokenId",
|
|
"nameLocation": "580:7:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "572:15:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2049,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "572:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2054,
|
|
"mutability": "mutable",
|
|
"name": "addresses",
|
|
"nameLocation": "613:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "595:27:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$2_memory_ptr",
|
|
"typeString": "address[2]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 2051,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "595:7:14",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 2053,
|
|
"length": {
|
|
"hexValue": "32",
|
|
"id": 2052,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "603:1:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_2_by_1",
|
|
"typeString": "int_const 2"
|
|
},
|
|
"value": "2"
|
|
},
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "595:10:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$2_storage_ptr",
|
|
"typeString": "address[2]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2056,
|
|
"mutability": "mutable",
|
|
"name": "tokenAmount",
|
|
"nameLocation": "638:11:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "630:19:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2055,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "630:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2059,
|
|
"mutability": "mutable",
|
|
"name": "ids",
|
|
"nameLocation": "674:3:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "657:20:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 2057,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "657:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 2058,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "657:9:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2062,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "702:7:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "685:24:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 2060,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "685:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 2061,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "685:9:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2064,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "725:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "717:17:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2063,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "717:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2066,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "750:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "742:17:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2065,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "742:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2068,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "782:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "767:24:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 2067,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "767:5:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2071,
|
|
"mutability": "mutable",
|
|
"name": "nft",
|
|
"nameLocation": "809:3:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "799:13:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC721_$2008",
|
|
"typeString": "contract IBEERC721"
|
|
},
|
|
"typeName": {
|
|
"id": 2070,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 2069,
|
|
"name": "IBEERC721",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 2008,
|
|
"src": "799:9:14"
|
|
},
|
|
"referencedDeclaration": 2008,
|
|
"src": "799:9:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC721_$2008",
|
|
"typeString": "contract IBEERC721"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "564:254:14"
|
|
},
|
|
"returnParameters": {
|
|
"id": 2073,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "827:0:14"
|
|
},
|
|
"scope": 2080,
|
|
"src": "541:287:14",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "773c3fff",
|
|
"id": 2079,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "useSignature",
|
|
"nameLocation": "841:12:14",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 2077,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 2076,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "874:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2079,
|
|
"src": "859:24:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 2075,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "859:5:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "853:34:14"
|
|
},
|
|
"returnParameters": {
|
|
"id": 2078,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "896:0:14"
|
|
},
|
|
"scope": 2080,
|
|
"src": "832:65:14",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 2081,
|
|
"src": "134:765:14",
|
|
"usedErrors": []
|
|
}
|
|
],
|
|
"src": "32:868:14"
|
|
},
|
|
"legacyAST": {
|
|
"absolutePath": "project:/contracts/interfaces/INFTFactory.sol",
|
|
"exportedSymbols": {
|
|
"IBEERC1155": [
|
|
1981
|
|
],
|
|
"IBEERC721": [
|
|
2008
|
|
],
|
|
"IERC1155": [
|
|
300
|
|
],
|
|
"IERC165": [
|
|
1657
|
|
],
|
|
"IERC721": [
|
|
718
|
|
],
|
|
"INFTFactory": [
|
|
2080
|
|
]
|
|
},
|
|
"id": 2081,
|
|
"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": 2081,
|
|
"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": 2081,
|
|
"sourceUnit": 1982,
|
|
"src": "94:38:14",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "INFTFactory",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"fullyImplemented": false,
|
|
"id": 2080,
|
|
"linearizedBaseContracts": [
|
|
2080
|
|
],
|
|
"name": "INFTFactory",
|
|
"nameLocation": "144:11:14",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"functionSelector": "3bcc7afb",
|
|
"id": 2028,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "mint721ByUser",
|
|
"nameLocation": "169:13:14",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 2026,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 2014,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "196:2:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2028,
|
|
"src": "188:10:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 2013,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "188:7:14",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2016,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "212:2:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2028,
|
|
"src": "204:10:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2015,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "204:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2018,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "228:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2028,
|
|
"src": "220:17:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2017,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "220:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2020,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "251:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2028,
|
|
"src": "243:17:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2019,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "243:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2022,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "281:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2028,
|
|
"src": "266:24:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 2021,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "266:5:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2025,
|
|
"mutability": "mutable",
|
|
"name": "nft",
|
|
"nameLocation": "306:3:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2028,
|
|
"src": "296: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": "296:9:14"
|
|
},
|
|
"referencedDeclaration": 2008,
|
|
"src": "296:9:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC721_$2008",
|
|
"typeString": "contract IBEERC721"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "182:131:14"
|
|
},
|
|
"returnParameters": {
|
|
"id": 2027,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "322:0:14"
|
|
},
|
|
"scope": 2080,
|
|
"src": "160:163:14",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "0224cf39",
|
|
"id": 2048,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "mint1155BatchByUser",
|
|
"nameLocation": "336:19:14",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 2046,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 2030,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "369:2:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2048,
|
|
"src": "361:10:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 2029,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "361:7:14",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2033,
|
|
"mutability": "mutable",
|
|
"name": "ids",
|
|
"nameLocation": "394:3:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2048,
|
|
"src": "377: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": "377:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 2032,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "377:9:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2036,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "420:7:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2048,
|
|
"src": "403: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": "403:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 2035,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "403:9:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2038,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "441:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2048,
|
|
"src": "433:17:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2037,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "433:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2040,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "464:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2048,
|
|
"src": "456:17:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2039,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "456:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2042,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "494:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2048,
|
|
"src": "479:24:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 2041,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "479:5:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2045,
|
|
"mutability": "mutable",
|
|
"name": "nft",
|
|
"nameLocation": "520:3:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2048,
|
|
"src": "509: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": "509:10:14"
|
|
},
|
|
"referencedDeclaration": 1981,
|
|
"src": "509:10:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC1155_$1981",
|
|
"typeString": "contract IBEERC1155"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "355:172:14"
|
|
},
|
|
"returnParameters": {
|
|
"id": 2047,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "536:0:14"
|
|
},
|
|
"scope": 2080,
|
|
"src": "327:210:14",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "21bba1e3",
|
|
"id": 2074,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "shardMixByUser",
|
|
"nameLocation": "550:14:14",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 2072,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 2050,
|
|
"mutability": "mutable",
|
|
"name": "tokenId",
|
|
"nameLocation": "580:7:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "572:15:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2049,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "572:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2054,
|
|
"mutability": "mutable",
|
|
"name": "addresses",
|
|
"nameLocation": "613:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "595:27:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$2_memory_ptr",
|
|
"typeString": "address[2]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 2051,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "595:7:14",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 2053,
|
|
"length": {
|
|
"hexValue": "32",
|
|
"id": 2052,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "603:1:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_2_by_1",
|
|
"typeString": "int_const 2"
|
|
},
|
|
"value": "2"
|
|
},
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "595:10:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$2_storage_ptr",
|
|
"typeString": "address[2]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2056,
|
|
"mutability": "mutable",
|
|
"name": "tokenAmount",
|
|
"nameLocation": "638:11:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "630:19:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2055,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "630:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2059,
|
|
"mutability": "mutable",
|
|
"name": "ids",
|
|
"nameLocation": "674:3:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "657:20:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 2057,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "657:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 2058,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "657:9:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2062,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "702:7:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "685:24:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 2060,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "685:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 2061,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "685:9:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2064,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "725:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "717:17:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2063,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "717:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2066,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "750:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "742:17:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 2065,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "742:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2068,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "782:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "767:24:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 2067,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "767:5:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 2071,
|
|
"mutability": "mutable",
|
|
"name": "nft",
|
|
"nameLocation": "809:3:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2074,
|
|
"src": "799:13:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC721_$2008",
|
|
"typeString": "contract IBEERC721"
|
|
},
|
|
"typeName": {
|
|
"id": 2070,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 2069,
|
|
"name": "IBEERC721",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 2008,
|
|
"src": "799:9:14"
|
|
},
|
|
"referencedDeclaration": 2008,
|
|
"src": "799:9:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IBEERC721_$2008",
|
|
"typeString": "contract IBEERC721"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "564:254:14"
|
|
},
|
|
"returnParameters": {
|
|
"id": 2073,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "827:0:14"
|
|
},
|
|
"scope": 2080,
|
|
"src": "541:287:14",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "773c3fff",
|
|
"id": 2079,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "useSignature",
|
|
"nameLocation": "841:12:14",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 2077,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 2076,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "874:9:14",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 2079,
|
|
"src": "859:24:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 2075,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "859:5:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "853:34:14"
|
|
},
|
|
"returnParameters": {
|
|
"id": 2078,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "896:0:14"
|
|
},
|
|
"scope": 2080,
|
|
"src": "832:65:14",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 2081,
|
|
"src": "134:765:14",
|
|
"usedErrors": []
|
|
}
|
|
],
|
|
"src": "32:868:14"
|
|
},
|
|
"compiler": {
|
|
"name": "solc",
|
|
"version": "0.8.10+commit.fc410830.Emscripten.clang"
|
|
},
|
|
"networks": {},
|
|
"schemaVersion": "3.4.4",
|
|
"updatedAt": "2022-08-17T07:45:14.504Z",
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
} |