You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
719 lines
20 KiB
719 lines
20 KiB
{
|
|
"id": "e462fde05bc641e14c873346790abdd3",
|
|
"_format": "hh-sol-build-info-1",
|
|
"solcVersion": "0.8.24",
|
|
"solcLongVersion": "0.8.24+commit.e11b9ed9",
|
|
"input": {
|
|
"language": "Solidity",
|
|
"sources": {
|
|
"contracts/PledgeType.sol": {
|
|
"content": "// SPDX-License-Identifier: MIT\r\n\r\nstruct PledgeType {\r\n uint256 tokenId;\r\n uint256 startTime;\r\n uint256 endTime;\r\n uint256 withdrawTime;\r\n uint256 pledgeAmount;\r\n uint256 rate;\r\n uint256 pledgeDay;\r\n address sender;\r\n}\r\n\r\nstruct ProductInfo {\r\n uint256 day;\r\n uint256 rate;\r\n}\r\n\r\nstruct RecommendObjType {\r\n address key;\r\n address referrer;\r\n uint256 bindTime;\r\n uint256 contribute;\r\n}\r\n\r\nstruct InvitationWithdrawRecordType{\r\n uint256 amount;\r\n uint256 createTime;\r\n}\r\n\r\nstruct PledgeWithdrawRecordType{\r\n uint256 amount;\r\n uint256 createTime;\r\n uint256 tokenId;\r\n uint256 pledgeDay;\r\n uint256 _type;\r\n}\r\n"
|
|
}
|
|
},
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": false,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"": [
|
|
"ast"
|
|
],
|
|
"*": [
|
|
"abi",
|
|
"metadata",
|
|
"devdoc",
|
|
"userdoc",
|
|
"storageLayout",
|
|
"evm.legacyAssembly",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers",
|
|
"evm.gasEstimates",
|
|
"evm.assembly"
|
|
]
|
|
}
|
|
},
|
|
"remappings": []
|
|
}
|
|
},
|
|
"output": {
|
|
"errors": [
|
|
{
|
|
"component": "general",
|
|
"errorCode": "3420",
|
|
"formattedMessage": "Warning: Source file does not specify required compiler version! Consider adding \"pragma solidity ^0.8.24;\"\n--> contracts/PledgeType.sol\n\n",
|
|
"message": "Source file does not specify required compiler version! Consider adding \"pragma solidity ^0.8.24;\"",
|
|
"severity": "warning",
|
|
"sourceLocation": {
|
|
"end": -1,
|
|
"file": "contracts/PledgeType.sol",
|
|
"start": -1
|
|
},
|
|
"type": "Warning"
|
|
}
|
|
],
|
|
"sources": {
|
|
"contracts/PledgeType.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/PledgeType.sol",
|
|
"exportedSymbols": {
|
|
"InvitationWithdrawRecordType": [
|
|
36
|
|
],
|
|
"PledgeType": [
|
|
17
|
|
],
|
|
"PledgeWithdrawRecordType": [
|
|
47
|
|
],
|
|
"ProductInfo": [
|
|
22
|
|
],
|
|
"RecommendObjType": [
|
|
31
|
|
]
|
|
},
|
|
"id": 48,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"canonicalName": "PledgeType",
|
|
"id": 17,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 2,
|
|
"mutability": "mutable",
|
|
"name": "tokenId",
|
|
"nameLocation": "68:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17,
|
|
"src": "60:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "60:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 4,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "90:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17,
|
|
"src": "82:17:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 3,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "82:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 6,
|
|
"mutability": "mutable",
|
|
"name": "endTime",
|
|
"nameLocation": "114:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17,
|
|
"src": "106:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 5,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "106:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 8,
|
|
"mutability": "mutable",
|
|
"name": "withdrawTime",
|
|
"nameLocation": "136:12:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17,
|
|
"src": "128:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 7,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "128:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 10,
|
|
"mutability": "mutable",
|
|
"name": "pledgeAmount",
|
|
"nameLocation": "163:12:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17,
|
|
"src": "155:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 9,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "155:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 12,
|
|
"mutability": "mutable",
|
|
"name": "rate",
|
|
"nameLocation": "190:4:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17,
|
|
"src": "182:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 11,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "182:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 14,
|
|
"mutability": "mutable",
|
|
"name": "pledgeDay",
|
|
"nameLocation": "209:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17,
|
|
"src": "201:17:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 13,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "201:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 16,
|
|
"mutability": "mutable",
|
|
"name": "sender",
|
|
"nameLocation": "233:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17,
|
|
"src": "225:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 15,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "225:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "PledgeType",
|
|
"nameLocation": "42:10:0",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 48,
|
|
"src": "35:208:0",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "ProductInfo",
|
|
"id": 22,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 19,
|
|
"mutability": "mutable",
|
|
"name": "day",
|
|
"nameLocation": "281:3:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 22,
|
|
"src": "273:11:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 18,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "273:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 21,
|
|
"mutability": "mutable",
|
|
"name": "rate",
|
|
"nameLocation": "299:4:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 22,
|
|
"src": "291:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 20,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "291:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ProductInfo",
|
|
"nameLocation": "254:11:0",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 48,
|
|
"src": "247:60:0",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "RecommendObjType",
|
|
"id": 31,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 24,
|
|
"mutability": "mutable",
|
|
"name": "key",
|
|
"nameLocation": "350:3:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 31,
|
|
"src": "342:11:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 23,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "342:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 26,
|
|
"mutability": "mutable",
|
|
"name": "referrer",
|
|
"nameLocation": "368:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 31,
|
|
"src": "360:16:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 25,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "360:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 28,
|
|
"mutability": "mutable",
|
|
"name": "bindTime",
|
|
"nameLocation": "391:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 31,
|
|
"src": "383:16:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 27,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "383:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 30,
|
|
"mutability": "mutable",
|
|
"name": "contribute",
|
|
"nameLocation": "414:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 31,
|
|
"src": "406:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 29,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "406:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "RecommendObjType",
|
|
"nameLocation": "318:16:0",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 48,
|
|
"src": "311:117:0",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "InvitationWithdrawRecordType",
|
|
"id": 36,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 33,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "482:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 36,
|
|
"src": "474:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 32,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "474:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 35,
|
|
"mutability": "mutable",
|
|
"name": "createTime",
|
|
"nameLocation": "503:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 36,
|
|
"src": "495:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 34,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "495:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "InvitationWithdrawRecordType",
|
|
"nameLocation": "439:28:0",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 48,
|
|
"src": "432:85:0",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "PledgeWithdrawRecordType",
|
|
"id": 47,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 38,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "567:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 47,
|
|
"src": "559:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 37,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "559:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 40,
|
|
"mutability": "mutable",
|
|
"name": "createTime",
|
|
"nameLocation": "588:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 47,
|
|
"src": "580:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 39,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "580:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 42,
|
|
"mutability": "mutable",
|
|
"name": "tokenId",
|
|
"nameLocation": "613:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 47,
|
|
"src": "605:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 41,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "605:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 44,
|
|
"mutability": "mutable",
|
|
"name": "pledgeDay",
|
|
"nameLocation": "635:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 47,
|
|
"src": "627:17:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 43,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "627:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 46,
|
|
"mutability": "mutable",
|
|
"name": "_type",
|
|
"nameLocation": "659:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 47,
|
|
"src": "651:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 45,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "651:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "PledgeWithdrawRecordType",
|
|
"nameLocation": "528:24:0",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 48,
|
|
"src": "521:147:0",
|
|
"visibility": "public"
|
|
}
|
|
],
|
|
"src": "35:635:0"
|
|
},
|
|
"id": 0
|
|
}
|
|
}
|
|
}
|
|
}
|