{ "contractName": "BaseFactory", "abi": [], "metadata": "{\"compiler\":{\"version\":\"0.8.10+commit.fc410830\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/logic/BaseFactory.sol\":\"BaseFactory\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/logic/BaseFactory.sol\":{\"keccak256\":\"0xe1e589f9be5ee30b739c4be8a39a337aa3b9675fcf3599f2939c3ed06cc998cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d60a0c7cd1d8b20825aabfac48970f82558829520c84601c11c5c3db6dcb9031\",\"dweb:/ipfs/QmeH6AXBNZCHsn4XwFtX2ZD3hFEy964Jij2c9W9sNmhzmh\"]}},\"version\":1}", "bytecode": "0x6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea264697066735822122043155e051742da7dc1bcc9b18ac5b89e302363dc62e8ab7ebd1876a80fffb5d664736f6c634300080a0033", "deployedBytecode": "0x6080604052600080fdfea264697066735822122043155e051742da7dc1bcc9b18ac5b89e302363dc62e8ab7ebd1876a80fffb5d664736f6c634300080a0033", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "57:180:15:-:0;;;;;;;;;;;;;;;;;;;", "deployedSourceMap": "57:180:15:-:0;;;;;", "source": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.10;\n\ncontract BaseFactory {\n struct ShardParam {\n address to;\n uint256 tokenId;\n address payToken;\n uint256 tokenAmount;\n uint256 startTime;\n uint256 saltNonce;\n }\n}", "sourcePath": "/Users/zhl/Documents/workspace/game/becrypto/contracts/logic/BaseFactory.sol", "ast": { "absolutePath": "project:/contracts/logic/BaseFactory.sol", "exportedSymbols": { "BaseFactory": [ 2088 ] }, "id": 2089, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 2074, "literals": [ "solidity", "0.8", ".10" ], "nodeType": "PragmaDirective", "src": "32:23:15" }, { "abstract": false, "baseContracts": [], "canonicalName": "BaseFactory", "contractDependencies": [], "contractKind": "contract", "fullyImplemented": true, "id": 2088, "linearizedBaseContracts": [ 2088 ], "name": "BaseFactory", "nameLocation": "66:11:15", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "BaseFactory.ShardParam", "id": 2087, "members": [ { "constant": false, "id": 2076, "mutability": "mutable", "name": "to", "nameLocation": "114:2:15", "nodeType": "VariableDeclaration", "scope": 2087, "src": "106:10:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2075, "name": "address", "nodeType": "ElementaryTypeName", "src": "106:7:15", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2078, "mutability": "mutable", "name": "tokenId", "nameLocation": "130:7:15", "nodeType": "VariableDeclaration", "scope": 2087, "src": "122:15:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2077, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "122:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2080, "mutability": "mutable", "name": "payToken", "nameLocation": "151:8:15", "nodeType": "VariableDeclaration", "scope": 2087, "src": "143:16:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2079, "name": "address", "nodeType": "ElementaryTypeName", "src": "143:7:15", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2082, "mutability": "mutable", "name": "tokenAmount", "nameLocation": "173:11:15", "nodeType": "VariableDeclaration", "scope": 2087, "src": "165:19:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2081, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "165:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2084, "mutability": "mutable", "name": "startTime", "nameLocation": "198:9:15", "nodeType": "VariableDeclaration", "scope": 2087, "src": "190:17:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2083, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "190:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2086, "mutability": "mutable", "name": "saltNonce", "nameLocation": "221:9:15", "nodeType": "VariableDeclaration", "scope": 2087, "src": "213:17:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2085, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "213:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "name": "ShardParam", "nameLocation": "89:10:15", "nodeType": "StructDefinition", "scope": 2088, "src": "82:153:15", "visibility": "public" } ], "scope": 2089, "src": "57:180:15", "usedErrors": [] } ], "src": "32:205:15" }, "legacyAST": { "absolutePath": "project:/contracts/logic/BaseFactory.sol", "exportedSymbols": { "BaseFactory": [ 2088 ] }, "id": 2089, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 2074, "literals": [ "solidity", "0.8", ".10" ], "nodeType": "PragmaDirective", "src": "32:23:15" }, { "abstract": false, "baseContracts": [], "canonicalName": "BaseFactory", "contractDependencies": [], "contractKind": "contract", "fullyImplemented": true, "id": 2088, "linearizedBaseContracts": [ 2088 ], "name": "BaseFactory", "nameLocation": "66:11:15", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "BaseFactory.ShardParam", "id": 2087, "members": [ { "constant": false, "id": 2076, "mutability": "mutable", "name": "to", "nameLocation": "114:2:15", "nodeType": "VariableDeclaration", "scope": 2087, "src": "106:10:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2075, "name": "address", "nodeType": "ElementaryTypeName", "src": "106:7:15", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2078, "mutability": "mutable", "name": "tokenId", "nameLocation": "130:7:15", "nodeType": "VariableDeclaration", "scope": 2087, "src": "122:15:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2077, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "122:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2080, "mutability": "mutable", "name": "payToken", "nameLocation": "151:8:15", "nodeType": "VariableDeclaration", "scope": 2087, "src": "143:16:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2079, "name": "address", "nodeType": "ElementaryTypeName", "src": "143:7:15", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2082, "mutability": "mutable", "name": "tokenAmount", "nameLocation": "173:11:15", "nodeType": "VariableDeclaration", "scope": 2087, "src": "165:19:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2081, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "165:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2084, "mutability": "mutable", "name": "startTime", "nameLocation": "198:9:15", "nodeType": "VariableDeclaration", "scope": 2087, "src": "190:17:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2083, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "190:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2086, "mutability": "mutable", "name": "saltNonce", "nameLocation": "221:9:15", "nodeType": "VariableDeclaration", "scope": 2087, "src": "213:17:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2085, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "213:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "name": "ShardParam", "nameLocation": "89:10:15", "nodeType": "StructDefinition", "scope": 2088, "src": "82:153:15", "visibility": "public" } ], "scope": 2089, "src": "57:180:15", "usedErrors": [] } ], "src": "32:205:15" }, "compiler": { "name": "solc", "version": "0.8.10+commit.fc410830.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.4", "updatedAt": "2022-08-17T08:21:19.240Z", "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }