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.

718 lines
20 KiB

5 months ago
  1. {
  2. "id": "e462fde05bc641e14c873346790abdd3",
  3. "_format": "hh-sol-build-info-1",
  4. "solcVersion": "0.8.24",
  5. "solcLongVersion": "0.8.24+commit.e11b9ed9",
  6. "input": {
  7. "language": "Solidity",
  8. "sources": {
  9. "contracts/PledgeType.sol": {
  10. "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"
  11. }
  12. },
  13. "settings": {
  14. "optimizer": {
  15. "enabled": false,
  16. "runs": 200
  17. },
  18. "outputSelection": {
  19. "*": {
  20. "": [
  21. "ast"
  22. ],
  23. "*": [
  24. "abi",
  25. "metadata",
  26. "devdoc",
  27. "userdoc",
  28. "storageLayout",
  29. "evm.legacyAssembly",
  30. "evm.bytecode",
  31. "evm.deployedBytecode",
  32. "evm.methodIdentifiers",
  33. "evm.gasEstimates",
  34. "evm.assembly"
  35. ]
  36. }
  37. },
  38. "remappings": []
  39. }
  40. },
  41. "output": {
  42. "errors": [
  43. {
  44. "component": "general",
  45. "errorCode": "3420",
  46. "formattedMessage": "Warning: Source file does not specify required compiler version! Consider adding \"pragma solidity ^0.8.24;\"\n--> contracts/PledgeType.sol\n\n",
  47. "message": "Source file does not specify required compiler version! Consider adding \"pragma solidity ^0.8.24;\"",
  48. "severity": "warning",
  49. "sourceLocation": {
  50. "end": -1,
  51. "file": "contracts/PledgeType.sol",
  52. "start": -1
  53. },
  54. "type": "Warning"
  55. }
  56. ],
  57. "sources": {
  58. "contracts/PledgeType.sol": {
  59. "ast": {
  60. "absolutePath": "contracts/PledgeType.sol",
  61. "exportedSymbols": {
  62. "InvitationWithdrawRecordType": [
  63. 36
  64. ],
  65. "PledgeType": [
  66. 17
  67. ],
  68. "PledgeWithdrawRecordType": [
  69. 47
  70. ],
  71. "ProductInfo": [
  72. 22
  73. ],
  74. "RecommendObjType": [
  75. 31
  76. ]
  77. },
  78. "id": 48,
  79. "license": "MIT",
  80. "nodeType": "SourceUnit",
  81. "nodes": [
  82. {
  83. "canonicalName": "PledgeType",
  84. "id": 17,
  85. "members": [
  86. {
  87. "constant": false,
  88. "id": 2,
  89. "mutability": "mutable",
  90. "name": "tokenId",
  91. "nameLocation": "68:7:0",
  92. "nodeType": "VariableDeclaration",
  93. "scope": 17,
  94. "src": "60:15:0",
  95. "stateVariable": false,
  96. "storageLocation": "default",
  97. "typeDescriptions": {
  98. "typeIdentifier": "t_uint256",
  99. "typeString": "uint256"
  100. },
  101. "typeName": {
  102. "id": 1,
  103. "name": "uint256",
  104. "nodeType": "ElementaryTypeName",
  105. "src": "60:7:0",
  106. "typeDescriptions": {
  107. "typeIdentifier": "t_uint256",
  108. "typeString": "uint256"
  109. }
  110. },
  111. "visibility": "internal"
  112. },
  113. {
  114. "constant": false,
  115. "id": 4,
  116. "mutability": "mutable",
  117. "name": "startTime",
  118. "nameLocation": "90:9:0",
  119. "nodeType": "VariableDeclaration",
  120. "scope": 17,
  121. "src": "82:17:0",
  122. "stateVariable": false,
  123. "storageLocation": "default",
  124. "typeDescriptions": {
  125. "typeIdentifier": "t_uint256",
  126. "typeString": "uint256"
  127. },
  128. "typeName": {
  129. "id": 3,
  130. "name": "uint256",
  131. "nodeType": "ElementaryTypeName",
  132. "src": "82:7:0",
  133. "typeDescriptions": {
  134. "typeIdentifier": "t_uint256",
  135. "typeString": "uint256"
  136. }
  137. },
  138. "visibility": "internal"
  139. },
  140. {
  141. "constant": false,
  142. "id": 6,
  143. "mutability": "mutable",
  144. "name": "endTime",
  145. "nameLocation": "114:7:0",
  146. "nodeType": "VariableDeclaration",
  147. "scope": 17,
  148. "src": "106:15:0",
  149. "stateVariable": false,
  150. "storageLocation": "default",
  151. "typeDescriptions": {
  152. "typeIdentifier": "t_uint256",
  153. "typeString": "uint256"
  154. },
  155. "typeName": {
  156. "id": 5,
  157. "name": "uint256",
  158. "nodeType": "ElementaryTypeName",
  159. "src": "106:7:0",
  160. "typeDescriptions": {
  161. "typeIdentifier": "t_uint256",
  162. "typeString": "uint256"
  163. }
  164. },
  165. "visibility": "internal"
  166. },
  167. {
  168. "constant": false,
  169. "id": 8,
  170. "mutability": "mutable",
  171. "name": "withdrawTime",
  172. "nameLocation": "136:12:0",
  173. "nodeType": "VariableDeclaration",
  174. "scope": 17,
  175. "src": "128:20:0",
  176. "stateVariable": false,
  177. "storageLocation": "default",
  178. "typeDescriptions": {
  179. "typeIdentifier": "t_uint256",
  180. "typeString": "uint256"
  181. },
  182. "typeName": {
  183. "id": 7,
  184. "name": "uint256",
  185. "nodeType": "ElementaryTypeName",
  186. "src": "128:7:0",
  187. "typeDescriptions": {
  188. "typeIdentifier": "t_uint256",
  189. "typeString": "uint256"
  190. }
  191. },
  192. "visibility": "internal"
  193. },
  194. {
  195. "constant": false,
  196. "id": 10,
  197. "mutability": "mutable",
  198. "name": "pledgeAmount",
  199. "nameLocation": "163:12:0",
  200. "nodeType": "VariableDeclaration",
  201. "scope": 17,
  202. "src": "155:20:0",
  203. "stateVariable": false,
  204. "storageLocation": "default",
  205. "typeDescriptions": {
  206. "typeIdentifier": "t_uint256",
  207. "typeString": "uint256"
  208. },
  209. "typeName": {
  210. "id": 9,
  211. "name": "uint256",
  212. "nodeType": "ElementaryTypeName",
  213. "src": "155:7:0",
  214. "typeDescriptions": {
  215. "typeIdentifier": "t_uint256",
  216. "typeString": "uint256"
  217. }
  218. },
  219. "visibility": "internal"
  220. },
  221. {
  222. "constant": false,
  223. "id": 12,
  224. "mutability": "mutable",
  225. "name": "rate",
  226. "nameLocation": "190:4:0",
  227. "nodeType": "VariableDeclaration",
  228. "scope": 17,
  229. "src": "182:12:0",
  230. "stateVariable": false,
  231. "storageLocation": "default",
  232. "typeDescriptions": {
  233. "typeIdentifier": "t_uint256",
  234. "typeString": "uint256"
  235. },
  236. "typeName": {
  237. "id": 11,
  238. "name": "uint256",
  239. "nodeType": "ElementaryTypeName",
  240. "src": "182:7:0",
  241. "typeDescriptions": {
  242. "typeIdentifier": "t_uint256",
  243. "typeString": "uint256"
  244. }
  245. },
  246. "visibility": "internal"
  247. },
  248. {
  249. "constant": false,
  250. "id": 14,
  251. "mutability": "mutable",
  252. "name": "pledgeDay",
  253. "nameLocation": "209:9:0",
  254. "nodeType": "VariableDeclaration",
  255. "scope": 17,
  256. "src": "201:17:0",
  257. "stateVariable": false,
  258. "storageLocation": "default",
  259. "typeDescriptions": {
  260. "typeIdentifier": "t_uint256",
  261. "typeString": "uint256"
  262. },
  263. "typeName": {
  264. "id": 13,
  265. "name": "uint256",
  266. "nodeType": "ElementaryTypeName",
  267. "src": "201:7:0",
  268. "typeDescriptions": {
  269. "typeIdentifier": "t_uint256",
  270. "typeString": "uint256"
  271. }
  272. },
  273. "visibility": "internal"
  274. },
  275. {
  276. "constant": false,
  277. "id": 16,
  278. "mutability": "mutable",
  279. "name": "sender",
  280. "nameLocation": "233:6:0",
  281. "nodeType": "VariableDeclaration",
  282. "scope": 17,
  283. "src": "225:14:0",
  284. "stateVariable": false,
  285. "storageLocation": "default",
  286. "typeDescriptions": {
  287. "typeIdentifier": "t_address",
  288. "typeString": "address"
  289. },
  290. "typeName": {
  291. "id": 15,
  292. "name": "address",
  293. "nodeType": "ElementaryTypeName",
  294. "src": "225:7:0",
  295. "stateMutability": "nonpayable",
  296. "typeDescriptions": {
  297. "typeIdentifier": "t_address",
  298. "typeString": "address"
  299. }
  300. },
  301. "visibility": "internal"
  302. }
  303. ],
  304. "name": "PledgeType",
  305. "nameLocation": "42:10:0",
  306. "nodeType": "StructDefinition",
  307. "scope": 48,
  308. "src": "35:208:0",
  309. "visibility": "public"
  310. },
  311. {
  312. "canonicalName": "ProductInfo",
  313. "id": 22,
  314. "members": [
  315. {
  316. "constant": false,
  317. "id": 19,
  318. "mutability": "mutable",
  319. "name": "day",
  320. "nameLocation": "281:3:0",
  321. "nodeType": "VariableDeclaration",
  322. "scope": 22,
  323. "src": "273:11:0",
  324. "stateVariable": false,
  325. "storageLocation": "default",
  326. "typeDescriptions": {
  327. "typeIdentifier": "t_uint256",
  328. "typeString": "uint256"
  329. },
  330. "typeName": {
  331. "id": 18,
  332. "name": "uint256",
  333. "nodeType": "ElementaryTypeName",
  334. "src": "273:7:0",
  335. "typeDescriptions": {
  336. "typeIdentifier": "t_uint256",
  337. "typeString": "uint256"
  338. }
  339. },
  340. "visibility": "internal"
  341. },
  342. {
  343. "constant": false,
  344. "id": 21,
  345. "mutability": "mutable",
  346. "name": "rate",
  347. "nameLocation": "299:4:0",
  348. "nodeType": "VariableDeclaration",
  349. "scope": 22,
  350. "src": "291:12:0",
  351. "stateVariable": false,
  352. "storageLocation": "default",
  353. "typeDescriptions": {
  354. "typeIdentifier": "t_uint256",
  355. "typeString": "uint256"
  356. },
  357. "typeName": {
  358. "id": 20,
  359. "name": "uint256",
  360. "nodeType": "ElementaryTypeName",
  361. "src": "291:7:0",
  362. "typeDescriptions": {
  363. "typeIdentifier": "t_uint256",
  364. "typeString": "uint256"
  365. }
  366. },
  367. "visibility": "internal"
  368. }
  369. ],
  370. "name": "ProductInfo",
  371. "nameLocation": "254:11:0",
  372. "nodeType": "StructDefinition",
  373. "scope": 48,
  374. "src": "247:60:0",
  375. "visibility": "public"
  376. },
  377. {
  378. "canonicalName": "RecommendObjType",
  379. "id": 31,
  380. "members": [
  381. {
  382. "constant": false,
  383. "id": 24,
  384. "mutability": "mutable",
  385. "name": "key",
  386. "nameLocation": "350:3:0",
  387. "nodeType": "VariableDeclaration",
  388. "scope": 31,
  389. "src": "342:11:0",
  390. "stateVariable": false,
  391. "storageLocation": "default",
  392. "typeDescriptions": {
  393. "typeIdentifier": "t_address",
  394. "typeString": "address"
  395. },
  396. "typeName": {
  397. "id": 23,
  398. "name": "address",
  399. "nodeType": "ElementaryTypeName",
  400. "src": "342:7:0",
  401. "stateMutability": "nonpayable",
  402. "typeDescriptions": {
  403. "typeIdentifier": "t_address",
  404. "typeString": "address"
  405. }
  406. },
  407. "visibility": "internal"
  408. },
  409. {
  410. "constant": false,
  411. "id": 26,
  412. "mutability": "mutable",
  413. "name": "referrer",
  414. "nameLocation": "368:8:0",
  415. "nodeType": "VariableDeclaration",
  416. "scope": 31,
  417. "src": "360:16:0",
  418. "stateVariable": false,
  419. "storageLocation": "default",
  420. "typeDescriptions": {
  421. "typeIdentifier": "t_address",
  422. "typeString": "address"
  423. },
  424. "typeName": {
  425. "id": 25,
  426. "name": "address",
  427. "nodeType": "ElementaryTypeName",
  428. "src": "360:7:0",
  429. "stateMutability": "nonpayable",
  430. "typeDescriptions": {
  431. "typeIdentifier": "t_address",
  432. "typeString": "address"
  433. }
  434. },
  435. "visibility": "internal"
  436. },
  437. {
  438. "constant": false,
  439. "id": 28,
  440. "mutability": "mutable",
  441. "name": "bindTime",
  442. "nameLocation": "391:8:0",
  443. "nodeType": "VariableDeclaration",
  444. "scope": 31,
  445. "src": "383:16:0",
  446. "stateVariable": false,
  447. "storageLocation": "default",
  448. "typeDescriptions": {
  449. "typeIdentifier": "t_uint256",
  450. "typeString": "uint256"
  451. },
  452. "typeName": {
  453. "id": 27,
  454. "name": "uint256",
  455. "nodeType": "ElementaryTypeName",
  456. "src": "383:7:0",
  457. "typeDescriptions": {
  458. "typeIdentifier": "t_uint256",
  459. "typeString": "uint256"
  460. }
  461. },
  462. "visibility": "internal"
  463. },
  464. {
  465. "constant": false,
  466. "id": 30,
  467. "mutability": "mutable",
  468. "name": "contribute",
  469. "nameLocation": "414:10:0",
  470. "nodeType": "VariableDeclaration",
  471. "scope": 31,
  472. "src": "406:18:0",
  473. "stateVariable": false,
  474. "storageLocation": "default",
  475. "typeDescriptions": {
  476. "typeIdentifier": "t_uint256",
  477. "typeString": "uint256"
  478. },
  479. "typeName": {
  480. "id": 29,
  481. "name": "uint256",
  482. "nodeType": "ElementaryTypeName",
  483. "src": "406:7:0",
  484. "typeDescriptions": {
  485. "typeIdentifier": "t_uint256",
  486. "typeString": "uint256"
  487. }
  488. },
  489. "visibility": "internal"
  490. }
  491. ],
  492. "name": "RecommendObjType",
  493. "nameLocation": "318:16:0",
  494. "nodeType": "StructDefinition",
  495. "scope": 48,
  496. "src": "311:117:0",
  497. "visibility": "public"
  498. },
  499. {
  500. "canonicalName": "InvitationWithdrawRecordType",
  501. "id": 36,
  502. "members": [
  503. {
  504. "constant": false,
  505. "id": 33,
  506. "mutability": "mutable",
  507. "name": "amount",
  508. "nameLocation": "482:6:0",
  509. "nodeType": "VariableDeclaration",
  510. "scope": 36,
  511. "src": "474:14:0",
  512. "stateVariable": false,
  513. "storageLocation": "default",
  514. "typeDescriptions": {
  515. "typeIdentifier": "t_uint256",
  516. "typeString": "uint256"
  517. },
  518. "typeName": {
  519. "id": 32,
  520. "name": "uint256",
  521. "nodeType": "ElementaryTypeName",
  522. "src": "474:7:0",
  523. "typeDescriptions": {
  524. "typeIdentifier": "t_uint256",
  525. "typeString": "uint256"
  526. }
  527. },
  528. "visibility": "internal"
  529. },
  530. {
  531. "constant": false,
  532. "id": 35,
  533. "mutability": "mutable",
  534. "name": "createTime",
  535. "nameLocation": "503:10:0",
  536. "nodeType": "VariableDeclaration",
  537. "scope": 36,
  538. "src": "495:18:0",
  539. "stateVariable": false,
  540. "storageLocation": "default",
  541. "typeDescriptions": {
  542. "typeIdentifier": "t_uint256",
  543. "typeString": "uint256"
  544. },
  545. "typeName": {
  546. "id": 34,
  547. "name": "uint256",
  548. "nodeType": "ElementaryTypeName",
  549. "src": "495:7:0",
  550. "typeDescriptions": {
  551. "typeIdentifier": "t_uint256",
  552. "typeString": "uint256"
  553. }
  554. },
  555. "visibility": "internal"
  556. }
  557. ],
  558. "name": "InvitationWithdrawRecordType",
  559. "nameLocation": "439:28:0",
  560. "nodeType": "StructDefinition",
  561. "scope": 48,
  562. "src": "432:85:0",
  563. "visibility": "public"
  564. },
  565. {
  566. "canonicalName": "PledgeWithdrawRecordType",
  567. "id": 47,
  568. "members": [
  569. {
  570. "constant": false,
  571. "id": 38,
  572. "mutability": "mutable",
  573. "name": "amount",
  574. "nameLocation": "567:6:0",
  575. "nodeType": "VariableDeclaration",
  576. "scope": 47,
  577. "src": "559:14:0",
  578. "stateVariable": false,
  579. "storageLocation": "default",
  580. "typeDescriptions": {
  581. "typeIdentifier": "t_uint256",
  582. "typeString": "uint256"
  583. },
  584. "typeName": {
  585. "id": 37,
  586. "name": "uint256",
  587. "nodeType": "ElementaryTypeName",
  588. "src": "559:7:0",
  589. "typeDescriptions": {
  590. "typeIdentifier": "t_uint256",
  591. "typeString": "uint256"
  592. }
  593. },
  594. "visibility": "internal"
  595. },
  596. {
  597. "constant": false,
  598. "id": 40,
  599. "mutability": "mutable",
  600. "name": "createTime",
  601. "nameLocation": "588:10:0",
  602. "nodeType": "VariableDeclaration",
  603. "scope": 47,
  604. "src": "580:18:0",
  605. "stateVariable": false,
  606. "storageLocation": "default",
  607. "typeDescriptions": {
  608. "typeIdentifier": "t_uint256",
  609. "typeString": "uint256"
  610. },
  611. "typeName": {
  612. "id": 39,
  613. "name": "uint256",
  614. "nodeType": "ElementaryTypeName",
  615. "src": "580:7:0",
  616. "typeDescriptions": {
  617. "typeIdentifier": "t_uint256",
  618. "typeString": "uint256"
  619. }
  620. },
  621. "visibility": "internal"
  622. },
  623. {
  624. "constant": false,
  625. "id": 42,
  626. "mutability": "mutable",
  627. "name": "tokenId",
  628. "nameLocation": "613:7:0",
  629. "nodeType": "VariableDeclaration",
  630. "scope": 47,
  631. "src": "605:15:0",
  632. "stateVariable": false,
  633. "storageLocation": "default",
  634. "typeDescriptions": {
  635. "typeIdentifier": "t_uint256",
  636. "typeString": "uint256"
  637. },
  638. "typeName": {
  639. "id": 41,
  640. "name": "uint256",
  641. "nodeType": "ElementaryTypeName",
  642. "src": "605:7:0",
  643. "typeDescriptions": {
  644. "typeIdentifier": "t_uint256",
  645. "typeString": "uint256"
  646. }
  647. },
  648. "visibility": "internal"
  649. },
  650. {
  651. "constant": false,
  652. "id": 44,
  653. "mutability": "mutable",
  654. "name": "pledgeDay",
  655. "nameLocation": "635:9:0",
  656. "nodeType": "VariableDeclaration",
  657. "scope": 47,
  658. "src": "627:17:0",
  659. "stateVariable": false,
  660. "storageLocation": "default",
  661. "typeDescriptions": {
  662. "typeIdentifier": "t_uint256",
  663. "typeString": "uint256"
  664. },
  665. "typeName": {
  666. "id": 43,
  667. "name": "uint256",
  668. "nodeType": "ElementaryTypeName",
  669. "src": "627:7:0",
  670. "typeDescriptions": {
  671. "typeIdentifier": "t_uint256",
  672. "typeString": "uint256"
  673. }
  674. },
  675. "visibility": "internal"
  676. },
  677. {
  678. "constant": false,
  679. "id": 46,
  680. "mutability": "mutable",
  681. "name": "_type",
  682. "nameLocation": "659:5:0",
  683. "nodeType": "VariableDeclaration",
  684. "scope": 47,
  685. "src": "651:13:0",
  686. "stateVariable": false,
  687. "storageLocation": "default",
  688. "typeDescriptions": {
  689. "typeIdentifier": "t_uint256",
  690. "typeString": "uint256"
  691. },
  692. "typeName": {
  693. "id": 45,
  694. "name": "uint256",
  695. "nodeType": "ElementaryTypeName",
  696. "src": "651:7:0",
  697. "typeDescriptions": {
  698. "typeIdentifier": "t_uint256",
  699. "typeString": "uint256"
  700. }
  701. },
  702. "visibility": "internal"
  703. }
  704. ],
  705. "name": "PledgeWithdrawRecordType",
  706. "nameLocation": "528:24:0",
  707. "nodeType": "StructDefinition",
  708. "scope": 48,
  709. "src": "521:147:0",
  710. "visibility": "public"
  711. }
  712. ],
  713. "src": "35:635:0"
  714. },
  715. "id": 0
  716. }
  717. }
  718. }
  719. }