SimpleStorage.json 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  1. {
  2. "contractName": "SimpleStorage",
  3. "abi": [
  4. {
  5. "constant": false,
  6. "inputs": [
  7. {
  8. "name": "x",
  9. "type": "uint256"
  10. }
  11. ],
  12. "name": "set",
  13. "outputs": [],
  14. "payable": false,
  15. "stateMutability": "nonpayable",
  16. "type": "function"
  17. },
  18. {
  19. "constant": true,
  20. "inputs": [],
  21. "name": "get",
  22. "outputs": [
  23. {
  24. "name": "",
  25. "type": "uint256"
  26. }
  27. ],
  28. "payable": false,
  29. "stateMutability": "view",
  30. "type": "function"
  31. }
  32. ],
  33. "bytecode": "0x6060604052341561000f57600080fd5b60d38061001d6000396000f3006060604052600436106049576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806360fe47b114604e5780636d4ce63c14606e575b600080fd5b3415605857600080fd5b606c60048080359060200190919050506094565b005b3415607857600080fd5b607e609e565b6040518082815260200191505060405180910390f35b8060008190555050565b600080549050905600a165627a7a72305820a341d8a46a875e3b6a505477c7a369c93c349b5e6c18a445ca86244433aec9750029",
  34. "deployedBytecode": "0x6060604052600436106049576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806360fe47b114604e5780636d4ce63c14606e575b600080fd5b3415605857600080fd5b606c60048080359060200190919050506094565b005b3415607857600080fd5b607e609e565b6040518082815260200191505060405180910390f35b8060008190555050565b600080549050905600a165627a7a72305820a341d8a46a875e3b6a505477c7a369c93c349b5e6c18a445ca86244433aec9750029",
  35. "sourceMap": "26:176:4:-;;;;;;;;;;;;;;;;;",
  36. "deployedSourceMap": "26:176:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73:53;;;;;;;;;;;;;;;;;;;;;;;;;;130:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73:53;120:1;107:10;:14;;;;73:53;:::o;130:70::-;166:4;185:10;;178:17;;130:70;:::o",
  37. "source": "pragma solidity ^0.4.18;\n\ncontract SimpleStorage {\n uint storedData;\n\n function set(uint x) public {\n storedData = x;\n }\n\n function get() public view returns (uint) {\n return storedData;\n }\n}\n",
  38. "sourcePath": "/Users/ted/Github/Team-H/Lesson-7/assignment/contracts/SimpleStorage.sol",
  39. "ast": {
  40. "absolutePath": "/Users/ted/Github/Team-H/Lesson-7/assignment/contracts/SimpleStorage.sol",
  41. "exportedSymbols": {
  42. "SimpleStorage": [
  43. 808
  44. ]
  45. },
  46. "id": 809,
  47. "nodeType": "SourceUnit",
  48. "nodes": [
  49. {
  50. "id": 787,
  51. "literals": [
  52. "solidity",
  53. "^",
  54. "0.4",
  55. ".18"
  56. ],
  57. "nodeType": "PragmaDirective",
  58. "src": "0:24:4"
  59. },
  60. {
  61. "baseContracts": [],
  62. "contractDependencies": [],
  63. "contractKind": "contract",
  64. "documentation": null,
  65. "fullyImplemented": true,
  66. "id": 808,
  67. "linearizedBaseContracts": [
  68. 808
  69. ],
  70. "name": "SimpleStorage",
  71. "nodeType": "ContractDefinition",
  72. "nodes": [
  73. {
  74. "constant": false,
  75. "id": 789,
  76. "name": "storedData",
  77. "nodeType": "VariableDeclaration",
  78. "scope": 808,
  79. "src": "53:15:4",
  80. "stateVariable": true,
  81. "storageLocation": "default",
  82. "typeDescriptions": {
  83. "typeIdentifier": "t_uint256",
  84. "typeString": "uint256"
  85. },
  86. "typeName": {
  87. "id": 788,
  88. "name": "uint",
  89. "nodeType": "ElementaryTypeName",
  90. "src": "53:4:4",
  91. "typeDescriptions": {
  92. "typeIdentifier": "t_uint256",
  93. "typeString": "uint256"
  94. }
  95. },
  96. "value": null,
  97. "visibility": "internal"
  98. },
  99. {
  100. "body": {
  101. "id": 798,
  102. "nodeType": "Block",
  103. "src": "101:25:4",
  104. "statements": [
  105. {
  106. "expression": {
  107. "argumentTypes": null,
  108. "id": 796,
  109. "isConstant": false,
  110. "isLValue": false,
  111. "isPure": false,
  112. "lValueRequested": false,
  113. "leftHandSide": {
  114. "argumentTypes": null,
  115. "id": 794,
  116. "name": "storedData",
  117. "nodeType": "Identifier",
  118. "overloadedDeclarations": [],
  119. "referencedDeclaration": 789,
  120. "src": "107:10:4",
  121. "typeDescriptions": {
  122. "typeIdentifier": "t_uint256",
  123. "typeString": "uint256"
  124. }
  125. },
  126. "nodeType": "Assignment",
  127. "operator": "=",
  128. "rightHandSide": {
  129. "argumentTypes": null,
  130. "id": 795,
  131. "name": "x",
  132. "nodeType": "Identifier",
  133. "overloadedDeclarations": [],
  134. "referencedDeclaration": 791,
  135. "src": "120:1:4",
  136. "typeDescriptions": {
  137. "typeIdentifier": "t_uint256",
  138. "typeString": "uint256"
  139. }
  140. },
  141. "src": "107:14:4",
  142. "typeDescriptions": {
  143. "typeIdentifier": "t_uint256",
  144. "typeString": "uint256"
  145. }
  146. },
  147. "id": 797,
  148. "nodeType": "ExpressionStatement",
  149. "src": "107:14:4"
  150. }
  151. ]
  152. },
  153. "id": 799,
  154. "implemented": true,
  155. "isConstructor": false,
  156. "isDeclaredConst": false,
  157. "modifiers": [],
  158. "name": "set",
  159. "nodeType": "FunctionDefinition",
  160. "parameters": {
  161. "id": 792,
  162. "nodeType": "ParameterList",
  163. "parameters": [
  164. {
  165. "constant": false,
  166. "id": 791,
  167. "name": "x",
  168. "nodeType": "VariableDeclaration",
  169. "scope": 799,
  170. "src": "86:6:4",
  171. "stateVariable": false,
  172. "storageLocation": "default",
  173. "typeDescriptions": {
  174. "typeIdentifier": "t_uint256",
  175. "typeString": "uint256"
  176. },
  177. "typeName": {
  178. "id": 790,
  179. "name": "uint",
  180. "nodeType": "ElementaryTypeName",
  181. "src": "86:4:4",
  182. "typeDescriptions": {
  183. "typeIdentifier": "t_uint256",
  184. "typeString": "uint256"
  185. }
  186. },
  187. "value": null,
  188. "visibility": "internal"
  189. }
  190. ],
  191. "src": "85:8:4"
  192. },
  193. "payable": false,
  194. "returnParameters": {
  195. "id": 793,
  196. "nodeType": "ParameterList",
  197. "parameters": [],
  198. "src": "101:0:4"
  199. },
  200. "scope": 808,
  201. "src": "73:53:4",
  202. "stateMutability": "nonpayable",
  203. "superFunction": null,
  204. "visibility": "public"
  205. },
  206. {
  207. "body": {
  208. "id": 806,
  209. "nodeType": "Block",
  210. "src": "172:28:4",
  211. "statements": [
  212. {
  213. "expression": {
  214. "argumentTypes": null,
  215. "id": 804,
  216. "name": "storedData",
  217. "nodeType": "Identifier",
  218. "overloadedDeclarations": [],
  219. "referencedDeclaration": 789,
  220. "src": "185:10:4",
  221. "typeDescriptions": {
  222. "typeIdentifier": "t_uint256",
  223. "typeString": "uint256"
  224. }
  225. },
  226. "functionReturnParameters": 803,
  227. "id": 805,
  228. "nodeType": "Return",
  229. "src": "178:17:4"
  230. }
  231. ]
  232. },
  233. "id": 807,
  234. "implemented": true,
  235. "isConstructor": false,
  236. "isDeclaredConst": true,
  237. "modifiers": [],
  238. "name": "get",
  239. "nodeType": "FunctionDefinition",
  240. "parameters": {
  241. "id": 800,
  242. "nodeType": "ParameterList",
  243. "parameters": [],
  244. "src": "142:2:4"
  245. },
  246. "payable": false,
  247. "returnParameters": {
  248. "id": 803,
  249. "nodeType": "ParameterList",
  250. "parameters": [
  251. {
  252. "constant": false,
  253. "id": 802,
  254. "name": "",
  255. "nodeType": "VariableDeclaration",
  256. "scope": 807,
  257. "src": "166:4:4",
  258. "stateVariable": false,
  259. "storageLocation": "default",
  260. "typeDescriptions": {
  261. "typeIdentifier": "t_uint256",
  262. "typeString": "uint256"
  263. },
  264. "typeName": {
  265. "id": 801,
  266. "name": "uint",
  267. "nodeType": "ElementaryTypeName",
  268. "src": "166:4:4",
  269. "typeDescriptions": {
  270. "typeIdentifier": "t_uint256",
  271. "typeString": "uint256"
  272. }
  273. },
  274. "value": null,
  275. "visibility": "internal"
  276. }
  277. ],
  278. "src": "165:6:4"
  279. },
  280. "scope": 808,
  281. "src": "130:70:4",
  282. "stateMutability": "view",
  283. "superFunction": null,
  284. "visibility": "public"
  285. }
  286. ],
  287. "scope": 809,
  288. "src": "26:176:4"
  289. }
  290. ],
  291. "src": "0:203:4"
  292. },
  293. "legacyAST": {
  294. "absolutePath": "/Users/ted/Github/Team-H/Lesson-7/assignment/contracts/SimpleStorage.sol",
  295. "exportedSymbols": {
  296. "SimpleStorage": [
  297. 808
  298. ]
  299. },
  300. "id": 809,
  301. "nodeType": "SourceUnit",
  302. "nodes": [
  303. {
  304. "id": 787,
  305. "literals": [
  306. "solidity",
  307. "^",
  308. "0.4",
  309. ".18"
  310. ],
  311. "nodeType": "PragmaDirective",
  312. "src": "0:24:4"
  313. },
  314. {
  315. "baseContracts": [],
  316. "contractDependencies": [],
  317. "contractKind": "contract",
  318. "documentation": null,
  319. "fullyImplemented": true,
  320. "id": 808,
  321. "linearizedBaseContracts": [
  322. 808
  323. ],
  324. "name": "SimpleStorage",
  325. "nodeType": "ContractDefinition",
  326. "nodes": [
  327. {
  328. "constant": false,
  329. "id": 789,
  330. "name": "storedData",
  331. "nodeType": "VariableDeclaration",
  332. "scope": 808,
  333. "src": "53:15:4",
  334. "stateVariable": true,
  335. "storageLocation": "default",
  336. "typeDescriptions": {
  337. "typeIdentifier": "t_uint256",
  338. "typeString": "uint256"
  339. },
  340. "typeName": {
  341. "id": 788,
  342. "name": "uint",
  343. "nodeType": "ElementaryTypeName",
  344. "src": "53:4:4",
  345. "typeDescriptions": {
  346. "typeIdentifier": "t_uint256",
  347. "typeString": "uint256"
  348. }
  349. },
  350. "value": null,
  351. "visibility": "internal"
  352. },
  353. {
  354. "body": {
  355. "id": 798,
  356. "nodeType": "Block",
  357. "src": "101:25:4",
  358. "statements": [
  359. {
  360. "expression": {
  361. "argumentTypes": null,
  362. "id": 796,
  363. "isConstant": false,
  364. "isLValue": false,
  365. "isPure": false,
  366. "lValueRequested": false,
  367. "leftHandSide": {
  368. "argumentTypes": null,
  369. "id": 794,
  370. "name": "storedData",
  371. "nodeType": "Identifier",
  372. "overloadedDeclarations": [],
  373. "referencedDeclaration": 789,
  374. "src": "107:10:4",
  375. "typeDescriptions": {
  376. "typeIdentifier": "t_uint256",
  377. "typeString": "uint256"
  378. }
  379. },
  380. "nodeType": "Assignment",
  381. "operator": "=",
  382. "rightHandSide": {
  383. "argumentTypes": null,
  384. "id": 795,
  385. "name": "x",
  386. "nodeType": "Identifier",
  387. "overloadedDeclarations": [],
  388. "referencedDeclaration": 791,
  389. "src": "120:1:4",
  390. "typeDescriptions": {
  391. "typeIdentifier": "t_uint256",
  392. "typeString": "uint256"
  393. }
  394. },
  395. "src": "107:14:4",
  396. "typeDescriptions": {
  397. "typeIdentifier": "t_uint256",
  398. "typeString": "uint256"
  399. }
  400. },
  401. "id": 797,
  402. "nodeType": "ExpressionStatement",
  403. "src": "107:14:4"
  404. }
  405. ]
  406. },
  407. "id": 799,
  408. "implemented": true,
  409. "isConstructor": false,
  410. "isDeclaredConst": false,
  411. "modifiers": [],
  412. "name": "set",
  413. "nodeType": "FunctionDefinition",
  414. "parameters": {
  415. "id": 792,
  416. "nodeType": "ParameterList",
  417. "parameters": [
  418. {
  419. "constant": false,
  420. "id": 791,
  421. "name": "x",
  422. "nodeType": "VariableDeclaration",
  423. "scope": 799,
  424. "src": "86:6:4",
  425. "stateVariable": false,
  426. "storageLocation": "default",
  427. "typeDescriptions": {
  428. "typeIdentifier": "t_uint256",
  429. "typeString": "uint256"
  430. },
  431. "typeName": {
  432. "id": 790,
  433. "name": "uint",
  434. "nodeType": "ElementaryTypeName",
  435. "src": "86:4:4",
  436. "typeDescriptions": {
  437. "typeIdentifier": "t_uint256",
  438. "typeString": "uint256"
  439. }
  440. },
  441. "value": null,
  442. "visibility": "internal"
  443. }
  444. ],
  445. "src": "85:8:4"
  446. },
  447. "payable": false,
  448. "returnParameters": {
  449. "id": 793,
  450. "nodeType": "ParameterList",
  451. "parameters": [],
  452. "src": "101:0:4"
  453. },
  454. "scope": 808,
  455. "src": "73:53:4",
  456. "stateMutability": "nonpayable",
  457. "superFunction": null,
  458. "visibility": "public"
  459. },
  460. {
  461. "body": {
  462. "id": 806,
  463. "nodeType": "Block",
  464. "src": "172:28:4",
  465. "statements": [
  466. {
  467. "expression": {
  468. "argumentTypes": null,
  469. "id": 804,
  470. "name": "storedData",
  471. "nodeType": "Identifier",
  472. "overloadedDeclarations": [],
  473. "referencedDeclaration": 789,
  474. "src": "185:10:4",
  475. "typeDescriptions": {
  476. "typeIdentifier": "t_uint256",
  477. "typeString": "uint256"
  478. }
  479. },
  480. "functionReturnParameters": 803,
  481. "id": 805,
  482. "nodeType": "Return",
  483. "src": "178:17:4"
  484. }
  485. ]
  486. },
  487. "id": 807,
  488. "implemented": true,
  489. "isConstructor": false,
  490. "isDeclaredConst": true,
  491. "modifiers": [],
  492. "name": "get",
  493. "nodeType": "FunctionDefinition",
  494. "parameters": {
  495. "id": 800,
  496. "nodeType": "ParameterList",
  497. "parameters": [],
  498. "src": "142:2:4"
  499. },
  500. "payable": false,
  501. "returnParameters": {
  502. "id": 803,
  503. "nodeType": "ParameterList",
  504. "parameters": [
  505. {
  506. "constant": false,
  507. "id": 802,
  508. "name": "",
  509. "nodeType": "VariableDeclaration",
  510. "scope": 807,
  511. "src": "166:4:4",
  512. "stateVariable": false,
  513. "storageLocation": "default",
  514. "typeDescriptions": {
  515. "typeIdentifier": "t_uint256",
  516. "typeString": "uint256"
  517. },
  518. "typeName": {
  519. "id": 801,
  520. "name": "uint",
  521. "nodeType": "ElementaryTypeName",
  522. "src": "166:4:4",
  523. "typeDescriptions": {
  524. "typeIdentifier": "t_uint256",
  525. "typeString": "uint256"
  526. }
  527. },
  528. "value": null,
  529. "visibility": "internal"
  530. }
  531. ],
  532. "src": "165:6:4"
  533. },
  534. "scope": 808,
  535. "src": "130:70:4",
  536. "stateMutability": "view",
  537. "superFunction": null,
  538. "visibility": "public"
  539. }
  540. ],
  541. "scope": 809,
  542. "src": "26:176:4"
  543. }
  544. ],
  545. "src": "0:203:4"
  546. },
  547. "compiler": {
  548. "name": "solc",
  549. "version": "0.4.19+commit.c4cbbb05.Emscripten.clang"
  550. },
  551. "networks": {},
  552. "schemaVersion": "2.0.0",
  553. "updatedAt": "2018-04-02T07:08:50.944Z"
  554. }