471 lines
16 KiB
JSON
471 lines
16 KiB
JSON
{
|
|
"contractName": "FactoryBase",
|
|
"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/FactoryBase.sol\":\"FactoryBase\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/logic/FactoryBase.sol\":{\"keccak256\":\"0x7e4eac2b000e1e1c5cc275d8276a6dc0ef362be607fc42dbb3a7691e0a8ebc98\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d82b651ba6de63cf451f283498476bec6d8332bb78ff759f7cb12f69b7ca8168\",\"dweb:/ipfs/QmRJkTD2Ybqpw49CKUL1FjNuXcyLPycw2Vf48LREfCPpFy\"]}},\"version\":1}",
|
|
"bytecode": "0x6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea2646970667358221220e01595b0feea4665a5920daf96dc0b82e5f32a4cb6d2180475a4552d08d5f8a464736f6c634300080a0033",
|
|
"deployedBytecode": "0x6080604052600080fdfea2646970667358221220e01595b0feea4665a5920daf96dc0b82e5f32a4cb6d2180475a4552d08d5f8a464736f6c634300080a0033",
|
|
"immutableReferences": {},
|
|
"generatedSources": [],
|
|
"deployedGeneratedSources": [],
|
|
"sourceMap": "57:176:30:-:0;;;;;;;;;;;;;;;;;;;",
|
|
"deployedSourceMap": "57:176:30:-:0;;;;;",
|
|
"source": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.10;\n\ncontract FactoryBase {\n struct ShardParam {\n address to;\n uint256 nftId;\n address payToken;\n uint256 payAmount;\n uint256 startTime;\n uint256 saltNonce;\n }\n}\n",
|
|
"sourcePath": "/Users/zhl/Documents/workspace/game/becrypto/contracts/logic/FactoryBase.sol",
|
|
"ast": {
|
|
"absolutePath": "project:/contracts/logic/FactoryBase.sol",
|
|
"exportedSymbols": {
|
|
"FactoryBase": [
|
|
6551
|
|
]
|
|
},
|
|
"id": 6552,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 6537,
|
|
"literals": [
|
|
"solidity",
|
|
"0.8",
|
|
".10"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "32:23:30"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "FactoryBase",
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"fullyImplemented": true,
|
|
"id": 6551,
|
|
"linearizedBaseContracts": [
|
|
6551
|
|
],
|
|
"name": "FactoryBase",
|
|
"nameLocation": "66:11:30",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"canonicalName": "FactoryBase.ShardParam",
|
|
"id": 6550,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 6539,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "114:2:30",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 6550,
|
|
"src": "106:10:30",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 6538,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "106:7:30",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 6541,
|
|
"mutability": "mutable",
|
|
"name": "nftId",
|
|
"nameLocation": "130:5:30",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 6550,
|
|
"src": "122:13:30",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 6540,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "122:7:30",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 6543,
|
|
"mutability": "mutable",
|
|
"name": "payToken",
|
|
"nameLocation": "149:8:30",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 6550,
|
|
"src": "141:16:30",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 6542,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "141:7:30",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 6545,
|
|
"mutability": "mutable",
|
|
"name": "payAmount",
|
|
"nameLocation": "171:9:30",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 6550,
|
|
"src": "163:17:30",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 6544,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "163:7:30",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 6547,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "194:9:30",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 6550,
|
|
"src": "186:17:30",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 6546,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "186:7:30",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 6549,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "217:9:30",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 6550,
|
|
"src": "209:17:30",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 6548,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "209:7:30",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ShardParam",
|
|
"nameLocation": "89:10:30",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 6551,
|
|
"src": "82:149:30",
|
|
"visibility": "public"
|
|
}
|
|
],
|
|
"scope": 6552,
|
|
"src": "57:176:30",
|
|
"usedErrors": []
|
|
}
|
|
],
|
|
"src": "32:202:30"
|
|
},
|
|
"legacyAST": {
|
|
"absolutePath": "project:/contracts/logic/FactoryBase.sol",
|
|
"exportedSymbols": {
|
|
"FactoryBase": [
|
|
6551
|
|
]
|
|
},
|
|
"id": 6552,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 6537,
|
|
"literals": [
|
|
"solidity",
|
|
"0.8",
|
|
".10"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "32:23:30"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "FactoryBase",
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"fullyImplemented": true,
|
|
"id": 6551,
|
|
"linearizedBaseContracts": [
|
|
6551
|
|
],
|
|
"name": "FactoryBase",
|
|
"nameLocation": "66:11:30",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"canonicalName": "FactoryBase.ShardParam",
|
|
"id": 6550,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 6539,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "114:2:30",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 6550,
|
|
"src": "106:10:30",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 6538,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "106:7:30",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 6541,
|
|
"mutability": "mutable",
|
|
"name": "nftId",
|
|
"nameLocation": "130:5:30",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 6550,
|
|
"src": "122:13:30",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 6540,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "122:7:30",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 6543,
|
|
"mutability": "mutable",
|
|
"name": "payToken",
|
|
"nameLocation": "149:8:30",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 6550,
|
|
"src": "141:16:30",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 6542,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "141:7:30",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 6545,
|
|
"mutability": "mutable",
|
|
"name": "payAmount",
|
|
"nameLocation": "171:9:30",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 6550,
|
|
"src": "163:17:30",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 6544,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "163:7:30",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 6547,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "194:9:30",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 6550,
|
|
"src": "186:17:30",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 6546,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "186:7:30",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 6549,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "217:9:30",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 6550,
|
|
"src": "209:17:30",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 6548,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "209:7:30",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ShardParam",
|
|
"nameLocation": "89:10:30",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 6551,
|
|
"src": "82:149:30",
|
|
"visibility": "public"
|
|
}
|
|
],
|
|
"scope": 6552,
|
|
"src": "57:176:30",
|
|
"usedErrors": []
|
|
}
|
|
],
|
|
"src": "32:202:30"
|
|
},
|
|
"compiler": {
|
|
"name": "solc",
|
|
"version": "0.8.10+commit.fc410830.Emscripten.clang"
|
|
},
|
|
"networks": {},
|
|
"schemaVersion": "3.4.4",
|
|
"updatedAt": "2022-10-14T05:18:29.736Z",
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
} |