Ownable.json 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439
  1. {
  2. "contractName": "Ownable",
  3. "abi": [
  4. {
  5. "constant": true,
  6. "inputs": [],
  7. "name": "owner",
  8. "outputs": [
  9. {
  10. "name": "",
  11. "type": "address"
  12. }
  13. ],
  14. "payable": false,
  15. "stateMutability": "view",
  16. "type": "function"
  17. },
  18. {
  19. "inputs": [],
  20. "payable": false,
  21. "stateMutability": "nonpayable",
  22. "type": "constructor"
  23. },
  24. {
  25. "anonymous": false,
  26. "inputs": [
  27. {
  28. "indexed": true,
  29. "name": "previousOwner",
  30. "type": "address"
  31. },
  32. {
  33. "indexed": true,
  34. "name": "newOwner",
  35. "type": "address"
  36. }
  37. ],
  38. "name": "OwnershipTransferred",
  39. "type": "event"
  40. },
  41. {
  42. "constant": false,
  43. "inputs": [
  44. {
  45. "name": "newOwner",
  46. "type": "address"
  47. }
  48. ],
  49. "name": "transferOwnership",
  50. "outputs": [],
  51. "payable": false,
  52. "stateMutability": "nonpayable",
  53. "type": "function"
  54. }
  55. ],
  56. "bytecode": "0x6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102858061005e6000396000f30060606040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638da5cb5b14610051578063f2fde38b146100a6575b600080fd5b341561005c57600080fd5b6100646100df565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156100b157600080fd5b6100dd600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610104565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561015f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561019b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a723058200440ea366fa87502384c14a802d99831982da4d9fd647db05c08eb719b69c8c40029",
  57. "deployedBytecode": "0x60606040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638da5cb5b14610051578063f2fde38b146100a6575b600080fd5b341561005c57600080fd5b6100646100df565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156100b157600080fd5b6100dd600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610104565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561015f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561019b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a723058200440ea366fa87502384c14a802d99831982da4d9fd647db05c08eb719b69c8c40029",
  58. "sourceMap": "217:786:1:-;;;469:55;;;;;;;;509:10;501:5;;:18;;;;;;;;;;;;;;;;;;217:786;;;;;;",
  59. "deployedSourceMap": "217:786:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;832:169;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20;;;;;;;;;;;;;:::o;832:169::-;653:5;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;928:1;908:22;;:8;:22;;;;900:31;;;;;;;;965:8;937:37;;958:5;;;;;;;;;;;937:37;;;;;;;;;;;;988:8;980:5;;:16;;;;;;;;;;;;;;;;;;832:169;:::o",
  60. "source": "pragma solidity ^0.4.18;\n\n\n/**\n * @title Ownable\n * @dev The Ownable contract has an owner address, and provides basic authorization control\n * functions, this simplifies the implementation of \"user permissions\".\n */\ncontract Ownable {\n address public owner;\n\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n\n /**\n * @dev The Ownable constructor sets the original `owner` of the contract to the sender\n * account.\n */\n function Ownable() public {\n owner = msg.sender;\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(msg.sender == owner);\n _;\n }\n\n /**\n * @dev Allows the current owner to transfer control of the contract to a newOwner.\n * @param newOwner The address to transfer ownership to.\n */\n function transferOwnership(address newOwner) public onlyOwner {\n require(newOwner != address(0));\n OwnershipTransferred(owner, newOwner);\n owner = newOwner;\n }\n}",
  61. "sourcePath": "/Users/ted/Github/Team-H/Lesson-7/assignment/contracts/Ownable.sol",
  62. "ast": {
  63. "absolutePath": "/Users/ted/Github/Team-H/Lesson-7/assignment/contracts/Ownable.sol",
  64. "exportedSymbols": {
  65. "Ownable": [
  66. 112
  67. ]
  68. },
  69. "id": 113,
  70. "nodeType": "SourceUnit",
  71. "nodes": [
  72. {
  73. "id": 58,
  74. "literals": [
  75. "solidity",
  76. "^",
  77. "0.4",
  78. ".18"
  79. ],
  80. "nodeType": "PragmaDirective",
  81. "src": "0:24:1"
  82. },
  83. {
  84. "baseContracts": [],
  85. "contractDependencies": [],
  86. "contractKind": "contract",
  87. "documentation": "@title Ownable\n@dev The Ownable contract has an owner address, and provides basic authorization control\nfunctions, this simplifies the implementation of \"user permissions\".",
  88. "fullyImplemented": true,
  89. "id": 112,
  90. "linearizedBaseContracts": [
  91. 112
  92. ],
  93. "name": "Ownable",
  94. "nodeType": "ContractDefinition",
  95. "nodes": [
  96. {
  97. "constant": false,
  98. "id": 60,
  99. "name": "owner",
  100. "nodeType": "VariableDeclaration",
  101. "scope": 112,
  102. "src": "238:20:1",
  103. "stateVariable": true,
  104. "storageLocation": "default",
  105. "typeDescriptions": {
  106. "typeIdentifier": "t_address",
  107. "typeString": "address"
  108. },
  109. "typeName": {
  110. "id": 59,
  111. "name": "address",
  112. "nodeType": "ElementaryTypeName",
  113. "src": "238:7:1",
  114. "typeDescriptions": {
  115. "typeIdentifier": "t_address",
  116. "typeString": "address"
  117. }
  118. },
  119. "value": null,
  120. "visibility": "public"
  121. },
  122. {
  123. "anonymous": false,
  124. "id": 66,
  125. "name": "OwnershipTransferred",
  126. "nodeType": "EventDefinition",
  127. "parameters": {
  128. "id": 65,
  129. "nodeType": "ParameterList",
  130. "parameters": [
  131. {
  132. "constant": false,
  133. "id": 62,
  134. "indexed": true,
  135. "name": "previousOwner",
  136. "nodeType": "VariableDeclaration",
  137. "scope": 66,
  138. "src": "291:29:1",
  139. "stateVariable": false,
  140. "storageLocation": "default",
  141. "typeDescriptions": {
  142. "typeIdentifier": "t_address",
  143. "typeString": "address"
  144. },
  145. "typeName": {
  146. "id": 61,
  147. "name": "address",
  148. "nodeType": "ElementaryTypeName",
  149. "src": "291:7:1",
  150. "typeDescriptions": {
  151. "typeIdentifier": "t_address",
  152. "typeString": "address"
  153. }
  154. },
  155. "value": null,
  156. "visibility": "internal"
  157. },
  158. {
  159. "constant": false,
  160. "id": 64,
  161. "indexed": true,
  162. "name": "newOwner",
  163. "nodeType": "VariableDeclaration",
  164. "scope": 66,
  165. "src": "322:24:1",
  166. "stateVariable": false,
  167. "storageLocation": "default",
  168. "typeDescriptions": {
  169. "typeIdentifier": "t_address",
  170. "typeString": "address"
  171. },
  172. "typeName": {
  173. "id": 63,
  174. "name": "address",
  175. "nodeType": "ElementaryTypeName",
  176. "src": "322:7:1",
  177. "typeDescriptions": {
  178. "typeIdentifier": "t_address",
  179. "typeString": "address"
  180. }
  181. },
  182. "value": null,
  183. "visibility": "internal"
  184. }
  185. ],
  186. "src": "290:57:1"
  187. },
  188. "src": "264:84:1"
  189. },
  190. {
  191. "body": {
  192. "id": 74,
  193. "nodeType": "Block",
  194. "src": "495:29:1",
  195. "statements": [
  196. {
  197. "expression": {
  198. "argumentTypes": null,
  199. "id": 72,
  200. "isConstant": false,
  201. "isLValue": false,
  202. "isPure": false,
  203. "lValueRequested": false,
  204. "leftHandSide": {
  205. "argumentTypes": null,
  206. "id": 69,
  207. "name": "owner",
  208. "nodeType": "Identifier",
  209. "overloadedDeclarations": [],
  210. "referencedDeclaration": 60,
  211. "src": "501:5:1",
  212. "typeDescriptions": {
  213. "typeIdentifier": "t_address",
  214. "typeString": "address"
  215. }
  216. },
  217. "nodeType": "Assignment",
  218. "operator": "=",
  219. "rightHandSide": {
  220. "argumentTypes": null,
  221. "expression": {
  222. "argumentTypes": null,
  223. "id": 70,
  224. "name": "msg",
  225. "nodeType": "Identifier",
  226. "overloadedDeclarations": [],
  227. "referencedDeclaration": 820,
  228. "src": "509:3:1",
  229. "typeDescriptions": {
  230. "typeIdentifier": "t_magic_message",
  231. "typeString": "msg"
  232. }
  233. },
  234. "id": 71,
  235. "isConstant": false,
  236. "isLValue": false,
  237. "isPure": false,
  238. "lValueRequested": false,
  239. "memberName": "sender",
  240. "nodeType": "MemberAccess",
  241. "referencedDeclaration": null,
  242. "src": "509:10:1",
  243. "typeDescriptions": {
  244. "typeIdentifier": "t_address",
  245. "typeString": "address"
  246. }
  247. },
  248. "src": "501:18:1",
  249. "typeDescriptions": {
  250. "typeIdentifier": "t_address",
  251. "typeString": "address"
  252. }
  253. },
  254. "id": 73,
  255. "nodeType": "ExpressionStatement",
  256. "src": "501:18:1"
  257. }
  258. ]
  259. },
  260. "id": 75,
  261. "implemented": true,
  262. "isConstructor": true,
  263. "isDeclaredConst": false,
  264. "modifiers": [],
  265. "name": "Ownable",
  266. "nodeType": "FunctionDefinition",
  267. "parameters": {
  268. "id": 67,
  269. "nodeType": "ParameterList",
  270. "parameters": [],
  271. "src": "485:2:1"
  272. },
  273. "payable": false,
  274. "returnParameters": {
  275. "id": 68,
  276. "nodeType": "ParameterList",
  277. "parameters": [],
  278. "src": "495:0:1"
  279. },
  280. "scope": 112,
  281. "src": "469:55:1",
  282. "stateMutability": "nonpayable",
  283. "superFunction": null,
  284. "visibility": "public"
  285. },
  286. {
  287. "body": {
  288. "id": 85,
  289. "nodeType": "Block",
  290. "src": "625:46:1",
  291. "statements": [
  292. {
  293. "expression": {
  294. "argumentTypes": null,
  295. "arguments": [
  296. {
  297. "argumentTypes": null,
  298. "commonType": {
  299. "typeIdentifier": "t_address",
  300. "typeString": "address"
  301. },
  302. "id": 81,
  303. "isConstant": false,
  304. "isLValue": false,
  305. "isPure": false,
  306. "lValueRequested": false,
  307. "leftExpression": {
  308. "argumentTypes": null,
  309. "expression": {
  310. "argumentTypes": null,
  311. "id": 78,
  312. "name": "msg",
  313. "nodeType": "Identifier",
  314. "overloadedDeclarations": [],
  315. "referencedDeclaration": 820,
  316. "src": "639:3:1",
  317. "typeDescriptions": {
  318. "typeIdentifier": "t_magic_message",
  319. "typeString": "msg"
  320. }
  321. },
  322. "id": 79,
  323. "isConstant": false,
  324. "isLValue": false,
  325. "isPure": false,
  326. "lValueRequested": false,
  327. "memberName": "sender",
  328. "nodeType": "MemberAccess",
  329. "referencedDeclaration": null,
  330. "src": "639:10:1",
  331. "typeDescriptions": {
  332. "typeIdentifier": "t_address",
  333. "typeString": "address"
  334. }
  335. },
  336. "nodeType": "BinaryOperation",
  337. "operator": "==",
  338. "rightExpression": {
  339. "argumentTypes": null,
  340. "id": 80,
  341. "name": "owner",
  342. "nodeType": "Identifier",
  343. "overloadedDeclarations": [],
  344. "referencedDeclaration": 60,
  345. "src": "653:5:1",
  346. "typeDescriptions": {
  347. "typeIdentifier": "t_address",
  348. "typeString": "address"
  349. }
  350. },
  351. "src": "639:19:1",
  352. "typeDescriptions": {
  353. "typeIdentifier": "t_bool",
  354. "typeString": "bool"
  355. }
  356. }
  357. ],
  358. "expression": {
  359. "argumentTypes": [
  360. {
  361. "typeIdentifier": "t_bool",
  362. "typeString": "bool"
  363. }
  364. ],
  365. "id": 77,
  366. "name": "require",
  367. "nodeType": "Identifier",
  368. "overloadedDeclarations": [],
  369. "referencedDeclaration": 823,
  370. "src": "631:7:1",
  371. "typeDescriptions": {
  372. "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
  373. "typeString": "function (bool) pure"
  374. }
  375. },
  376. "id": 82,
  377. "isConstant": false,
  378. "isLValue": false,
  379. "isPure": false,
  380. "kind": "functionCall",
  381. "lValueRequested": false,
  382. "names": [],
  383. "nodeType": "FunctionCall",
  384. "src": "631:28:1",
  385. "typeDescriptions": {
  386. "typeIdentifier": "t_tuple$__$",
  387. "typeString": "tuple()"
  388. }
  389. },
  390. "id": 83,
  391. "nodeType": "ExpressionStatement",
  392. "src": "631:28:1"
  393. },
  394. {
  395. "id": 84,
  396. "nodeType": "PlaceholderStatement",
  397. "src": "665:1:1"
  398. }
  399. ]
  400. },
  401. "id": 86,
  402. "name": "onlyOwner",
  403. "nodeType": "ModifierDefinition",
  404. "parameters": {
  405. "id": 76,
  406. "nodeType": "ParameterList",
  407. "parameters": [],
  408. "src": "622:2:1"
  409. },
  410. "src": "604:67:1",
  411. "visibility": "internal"
  412. },
  413. {
  414. "body": {
  415. "id": 110,
  416. "nodeType": "Block",
  417. "src": "894:107:1",
  418. "statements": [
  419. {
  420. "expression": {
  421. "argumentTypes": null,
  422. "arguments": [
  423. {
  424. "argumentTypes": null,
  425. "commonType": {
  426. "typeIdentifier": "t_address",
  427. "typeString": "address"
  428. },
  429. "id": 98,
  430. "isConstant": false,
  431. "isLValue": false,
  432. "isPure": false,
  433. "lValueRequested": false,
  434. "leftExpression": {
  435. "argumentTypes": null,
  436. "id": 94,
  437. "name": "newOwner",
  438. "nodeType": "Identifier",
  439. "overloadedDeclarations": [],
  440. "referencedDeclaration": 88,
  441. "src": "908:8:1",
  442. "typeDescriptions": {
  443. "typeIdentifier": "t_address",
  444. "typeString": "address"
  445. }
  446. },
  447. "nodeType": "BinaryOperation",
  448. "operator": "!=",
  449. "rightExpression": {
  450. "argumentTypes": null,
  451. "arguments": [
  452. {
  453. "argumentTypes": null,
  454. "hexValue": "30",
  455. "id": 96,
  456. "isConstant": false,
  457. "isLValue": false,
  458. "isPure": true,
  459. "kind": "number",
  460. "lValueRequested": false,
  461. "nodeType": "Literal",
  462. "src": "928:1:1",
  463. "subdenomination": null,
  464. "typeDescriptions": {
  465. "typeIdentifier": "t_rational_0_by_1",
  466. "typeString": "int_const 0"
  467. },
  468. "value": "0"
  469. }
  470. ],
  471. "expression": {
  472. "argumentTypes": [
  473. {
  474. "typeIdentifier": "t_rational_0_by_1",
  475. "typeString": "int_const 0"
  476. }
  477. ],
  478. "id": 95,
  479. "isConstant": false,
  480. "isLValue": false,
  481. "isPure": true,
  482. "lValueRequested": false,
  483. "nodeType": "ElementaryTypeNameExpression",
  484. "src": "920:7:1",
  485. "typeDescriptions": {
  486. "typeIdentifier": "t_type$_t_address_$",
  487. "typeString": "type(address)"
  488. },
  489. "typeName": "address"
  490. },
  491. "id": 97,
  492. "isConstant": false,
  493. "isLValue": false,
  494. "isPure": true,
  495. "kind": "typeConversion",
  496. "lValueRequested": false,
  497. "names": [],
  498. "nodeType": "FunctionCall",
  499. "src": "920:10:1",
  500. "typeDescriptions": {
  501. "typeIdentifier": "t_address",
  502. "typeString": "address"
  503. }
  504. },
  505. "src": "908:22:1",
  506. "typeDescriptions": {
  507. "typeIdentifier": "t_bool",
  508. "typeString": "bool"
  509. }
  510. }
  511. ],
  512. "expression": {
  513. "argumentTypes": [
  514. {
  515. "typeIdentifier": "t_bool",
  516. "typeString": "bool"
  517. }
  518. ],
  519. "id": 93,
  520. "name": "require",
  521. "nodeType": "Identifier",
  522. "overloadedDeclarations": [],
  523. "referencedDeclaration": 823,
  524. "src": "900:7:1",
  525. "typeDescriptions": {
  526. "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
  527. "typeString": "function (bool) pure"
  528. }
  529. },
  530. "id": 99,
  531. "isConstant": false,
  532. "isLValue": false,
  533. "isPure": false,
  534. "kind": "functionCall",
  535. "lValueRequested": false,
  536. "names": [],
  537. "nodeType": "FunctionCall",
  538. "src": "900:31:1",
  539. "typeDescriptions": {
  540. "typeIdentifier": "t_tuple$__$",
  541. "typeString": "tuple()"
  542. }
  543. },
  544. "id": 100,
  545. "nodeType": "ExpressionStatement",
  546. "src": "900:31:1"
  547. },
  548. {
  549. "expression": {
  550. "argumentTypes": null,
  551. "arguments": [
  552. {
  553. "argumentTypes": null,
  554. "id": 102,
  555. "name": "owner",
  556. "nodeType": "Identifier",
  557. "overloadedDeclarations": [],
  558. "referencedDeclaration": 60,
  559. "src": "958:5:1",
  560. "typeDescriptions": {
  561. "typeIdentifier": "t_address",
  562. "typeString": "address"
  563. }
  564. },
  565. {
  566. "argumentTypes": null,
  567. "id": 103,
  568. "name": "newOwner",
  569. "nodeType": "Identifier",
  570. "overloadedDeclarations": [],
  571. "referencedDeclaration": 88,
  572. "src": "965:8:1",
  573. "typeDescriptions": {
  574. "typeIdentifier": "t_address",
  575. "typeString": "address"
  576. }
  577. }
  578. ],
  579. "expression": {
  580. "argumentTypes": [
  581. {
  582. "typeIdentifier": "t_address",
  583. "typeString": "address"
  584. },
  585. {
  586. "typeIdentifier": "t_address",
  587. "typeString": "address"
  588. }
  589. ],
  590. "id": 101,
  591. "name": "OwnershipTransferred",
  592. "nodeType": "Identifier",
  593. "overloadedDeclarations": [],
  594. "referencedDeclaration": 66,
  595. "src": "937:20:1",
  596. "typeDescriptions": {
  597. "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
  598. "typeString": "function (address,address)"
  599. }
  600. },
  601. "id": 104,
  602. "isConstant": false,
  603. "isLValue": false,
  604. "isPure": false,
  605. "kind": "functionCall",
  606. "lValueRequested": false,
  607. "names": [],
  608. "nodeType": "FunctionCall",
  609. "src": "937:37:1",
  610. "typeDescriptions": {
  611. "typeIdentifier": "t_tuple$__$",
  612. "typeString": "tuple()"
  613. }
  614. },
  615. "id": 105,
  616. "nodeType": "ExpressionStatement",
  617. "src": "937:37:1"
  618. },
  619. {
  620. "expression": {
  621. "argumentTypes": null,
  622. "id": 108,
  623. "isConstant": false,
  624. "isLValue": false,
  625. "isPure": false,
  626. "lValueRequested": false,
  627. "leftHandSide": {
  628. "argumentTypes": null,
  629. "id": 106,
  630. "name": "owner",
  631. "nodeType": "Identifier",
  632. "overloadedDeclarations": [],
  633. "referencedDeclaration": 60,
  634. "src": "980:5:1",
  635. "typeDescriptions": {
  636. "typeIdentifier": "t_address",
  637. "typeString": "address"
  638. }
  639. },
  640. "nodeType": "Assignment",
  641. "operator": "=",
  642. "rightHandSide": {
  643. "argumentTypes": null,
  644. "id": 107,
  645. "name": "newOwner",
  646. "nodeType": "Identifier",
  647. "overloadedDeclarations": [],
  648. "referencedDeclaration": 88,
  649. "src": "988:8:1",
  650. "typeDescriptions": {
  651. "typeIdentifier": "t_address",
  652. "typeString": "address"
  653. }
  654. },
  655. "src": "980:16:1",
  656. "typeDescriptions": {
  657. "typeIdentifier": "t_address",
  658. "typeString": "address"
  659. }
  660. },
  661. "id": 109,
  662. "nodeType": "ExpressionStatement",
  663. "src": "980:16:1"
  664. }
  665. ]
  666. },
  667. "id": 111,
  668. "implemented": true,
  669. "isConstructor": false,
  670. "isDeclaredConst": false,
  671. "modifiers": [
  672. {
  673. "arguments": [],
  674. "id": 91,
  675. "modifierName": {
  676. "argumentTypes": null,
  677. "id": 90,
  678. "name": "onlyOwner",
  679. "nodeType": "Identifier",
  680. "overloadedDeclarations": [],
  681. "referencedDeclaration": 86,
  682. "src": "884:9:1",
  683. "typeDescriptions": {
  684. "typeIdentifier": "t_modifier$__$",
  685. "typeString": "modifier ()"
  686. }
  687. },
  688. "nodeType": "ModifierInvocation",
  689. "src": "884:9:1"
  690. }
  691. ],
  692. "name": "transferOwnership",
  693. "nodeType": "FunctionDefinition",
  694. "parameters": {
  695. "id": 89,
  696. "nodeType": "ParameterList",
  697. "parameters": [
  698. {
  699. "constant": false,
  700. "id": 88,
  701. "name": "newOwner",
  702. "nodeType": "VariableDeclaration",
  703. "scope": 111,
  704. "src": "859:16:1",
  705. "stateVariable": false,
  706. "storageLocation": "default",
  707. "typeDescriptions": {
  708. "typeIdentifier": "t_address",
  709. "typeString": "address"
  710. },
  711. "typeName": {
  712. "id": 87,
  713. "name": "address",
  714. "nodeType": "ElementaryTypeName",
  715. "src": "859:7:1",
  716. "typeDescriptions": {
  717. "typeIdentifier": "t_address",
  718. "typeString": "address"
  719. }
  720. },
  721. "value": null,
  722. "visibility": "internal"
  723. }
  724. ],
  725. "src": "858:18:1"
  726. },
  727. "payable": false,
  728. "returnParameters": {
  729. "id": 92,
  730. "nodeType": "ParameterList",
  731. "parameters": [],
  732. "src": "894:0:1"
  733. },
  734. "scope": 112,
  735. "src": "832:169:1",
  736. "stateMutability": "nonpayable",
  737. "superFunction": null,
  738. "visibility": "public"
  739. }
  740. ],
  741. "scope": 113,
  742. "src": "217:786:1"
  743. }
  744. ],
  745. "src": "0:1003:1"
  746. },
  747. "legacyAST": {
  748. "absolutePath": "/Users/ted/Github/Team-H/Lesson-7/assignment/contracts/Ownable.sol",
  749. "exportedSymbols": {
  750. "Ownable": [
  751. 112
  752. ]
  753. },
  754. "id": 113,
  755. "nodeType": "SourceUnit",
  756. "nodes": [
  757. {
  758. "id": 58,
  759. "literals": [
  760. "solidity",
  761. "^",
  762. "0.4",
  763. ".18"
  764. ],
  765. "nodeType": "PragmaDirective",
  766. "src": "0:24:1"
  767. },
  768. {
  769. "baseContracts": [],
  770. "contractDependencies": [],
  771. "contractKind": "contract",
  772. "documentation": "@title Ownable\n@dev The Ownable contract has an owner address, and provides basic authorization control\nfunctions, this simplifies the implementation of \"user permissions\".",
  773. "fullyImplemented": true,
  774. "id": 112,
  775. "linearizedBaseContracts": [
  776. 112
  777. ],
  778. "name": "Ownable",
  779. "nodeType": "ContractDefinition",
  780. "nodes": [
  781. {
  782. "constant": false,
  783. "id": 60,
  784. "name": "owner",
  785. "nodeType": "VariableDeclaration",
  786. "scope": 112,
  787. "src": "238:20:1",
  788. "stateVariable": true,
  789. "storageLocation": "default",
  790. "typeDescriptions": {
  791. "typeIdentifier": "t_address",
  792. "typeString": "address"
  793. },
  794. "typeName": {
  795. "id": 59,
  796. "name": "address",
  797. "nodeType": "ElementaryTypeName",
  798. "src": "238:7:1",
  799. "typeDescriptions": {
  800. "typeIdentifier": "t_address",
  801. "typeString": "address"
  802. }
  803. },
  804. "value": null,
  805. "visibility": "public"
  806. },
  807. {
  808. "anonymous": false,
  809. "id": 66,
  810. "name": "OwnershipTransferred",
  811. "nodeType": "EventDefinition",
  812. "parameters": {
  813. "id": 65,
  814. "nodeType": "ParameterList",
  815. "parameters": [
  816. {
  817. "constant": false,
  818. "id": 62,
  819. "indexed": true,
  820. "name": "previousOwner",
  821. "nodeType": "VariableDeclaration",
  822. "scope": 66,
  823. "src": "291:29:1",
  824. "stateVariable": false,
  825. "storageLocation": "default",
  826. "typeDescriptions": {
  827. "typeIdentifier": "t_address",
  828. "typeString": "address"
  829. },
  830. "typeName": {
  831. "id": 61,
  832. "name": "address",
  833. "nodeType": "ElementaryTypeName",
  834. "src": "291:7:1",
  835. "typeDescriptions": {
  836. "typeIdentifier": "t_address",
  837. "typeString": "address"
  838. }
  839. },
  840. "value": null,
  841. "visibility": "internal"
  842. },
  843. {
  844. "constant": false,
  845. "id": 64,
  846. "indexed": true,
  847. "name": "newOwner",
  848. "nodeType": "VariableDeclaration",
  849. "scope": 66,
  850. "src": "322:24:1",
  851. "stateVariable": false,
  852. "storageLocation": "default",
  853. "typeDescriptions": {
  854. "typeIdentifier": "t_address",
  855. "typeString": "address"
  856. },
  857. "typeName": {
  858. "id": 63,
  859. "name": "address",
  860. "nodeType": "ElementaryTypeName",
  861. "src": "322:7:1",
  862. "typeDescriptions": {
  863. "typeIdentifier": "t_address",
  864. "typeString": "address"
  865. }
  866. },
  867. "value": null,
  868. "visibility": "internal"
  869. }
  870. ],
  871. "src": "290:57:1"
  872. },
  873. "src": "264:84:1"
  874. },
  875. {
  876. "body": {
  877. "id": 74,
  878. "nodeType": "Block",
  879. "src": "495:29:1",
  880. "statements": [
  881. {
  882. "expression": {
  883. "argumentTypes": null,
  884. "id": 72,
  885. "isConstant": false,
  886. "isLValue": false,
  887. "isPure": false,
  888. "lValueRequested": false,
  889. "leftHandSide": {
  890. "argumentTypes": null,
  891. "id": 69,
  892. "name": "owner",
  893. "nodeType": "Identifier",
  894. "overloadedDeclarations": [],
  895. "referencedDeclaration": 60,
  896. "src": "501:5:1",
  897. "typeDescriptions": {
  898. "typeIdentifier": "t_address",
  899. "typeString": "address"
  900. }
  901. },
  902. "nodeType": "Assignment",
  903. "operator": "=",
  904. "rightHandSide": {
  905. "argumentTypes": null,
  906. "expression": {
  907. "argumentTypes": null,
  908. "id": 70,
  909. "name": "msg",
  910. "nodeType": "Identifier",
  911. "overloadedDeclarations": [],
  912. "referencedDeclaration": 820,
  913. "src": "509:3:1",
  914. "typeDescriptions": {
  915. "typeIdentifier": "t_magic_message",
  916. "typeString": "msg"
  917. }
  918. },
  919. "id": 71,
  920. "isConstant": false,
  921. "isLValue": false,
  922. "isPure": false,
  923. "lValueRequested": false,
  924. "memberName": "sender",
  925. "nodeType": "MemberAccess",
  926. "referencedDeclaration": null,
  927. "src": "509:10:1",
  928. "typeDescriptions": {
  929. "typeIdentifier": "t_address",
  930. "typeString": "address"
  931. }
  932. },
  933. "src": "501:18:1",
  934. "typeDescriptions": {
  935. "typeIdentifier": "t_address",
  936. "typeString": "address"
  937. }
  938. },
  939. "id": 73,
  940. "nodeType": "ExpressionStatement",
  941. "src": "501:18:1"
  942. }
  943. ]
  944. },
  945. "id": 75,
  946. "implemented": true,
  947. "isConstructor": true,
  948. "isDeclaredConst": false,
  949. "modifiers": [],
  950. "name": "Ownable",
  951. "nodeType": "FunctionDefinition",
  952. "parameters": {
  953. "id": 67,
  954. "nodeType": "ParameterList",
  955. "parameters": [],
  956. "src": "485:2:1"
  957. },
  958. "payable": false,
  959. "returnParameters": {
  960. "id": 68,
  961. "nodeType": "ParameterList",
  962. "parameters": [],
  963. "src": "495:0:1"
  964. },
  965. "scope": 112,
  966. "src": "469:55:1",
  967. "stateMutability": "nonpayable",
  968. "superFunction": null,
  969. "visibility": "public"
  970. },
  971. {
  972. "body": {
  973. "id": 85,
  974. "nodeType": "Block",
  975. "src": "625:46:1",
  976. "statements": [
  977. {
  978. "expression": {
  979. "argumentTypes": null,
  980. "arguments": [
  981. {
  982. "argumentTypes": null,
  983. "commonType": {
  984. "typeIdentifier": "t_address",
  985. "typeString": "address"
  986. },
  987. "id": 81,
  988. "isConstant": false,
  989. "isLValue": false,
  990. "isPure": false,
  991. "lValueRequested": false,
  992. "leftExpression": {
  993. "argumentTypes": null,
  994. "expression": {
  995. "argumentTypes": null,
  996. "id": 78,
  997. "name": "msg",
  998. "nodeType": "Identifier",
  999. "overloadedDeclarations": [],
  1000. "referencedDeclaration": 820,
  1001. "src": "639:3:1",
  1002. "typeDescriptions": {
  1003. "typeIdentifier": "t_magic_message",
  1004. "typeString": "msg"
  1005. }
  1006. },
  1007. "id": 79,
  1008. "isConstant": false,
  1009. "isLValue": false,
  1010. "isPure": false,
  1011. "lValueRequested": false,
  1012. "memberName": "sender",
  1013. "nodeType": "MemberAccess",
  1014. "referencedDeclaration": null,
  1015. "src": "639:10:1",
  1016. "typeDescriptions": {
  1017. "typeIdentifier": "t_address",
  1018. "typeString": "address"
  1019. }
  1020. },
  1021. "nodeType": "BinaryOperation",
  1022. "operator": "==",
  1023. "rightExpression": {
  1024. "argumentTypes": null,
  1025. "id": 80,
  1026. "name": "owner",
  1027. "nodeType": "Identifier",
  1028. "overloadedDeclarations": [],
  1029. "referencedDeclaration": 60,
  1030. "src": "653:5:1",
  1031. "typeDescriptions": {
  1032. "typeIdentifier": "t_address",
  1033. "typeString": "address"
  1034. }
  1035. },
  1036. "src": "639:19:1",
  1037. "typeDescriptions": {
  1038. "typeIdentifier": "t_bool",
  1039. "typeString": "bool"
  1040. }
  1041. }
  1042. ],
  1043. "expression": {
  1044. "argumentTypes": [
  1045. {
  1046. "typeIdentifier": "t_bool",
  1047. "typeString": "bool"
  1048. }
  1049. ],
  1050. "id": 77,
  1051. "name": "require",
  1052. "nodeType": "Identifier",
  1053. "overloadedDeclarations": [],
  1054. "referencedDeclaration": 823,
  1055. "src": "631:7:1",
  1056. "typeDescriptions": {
  1057. "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
  1058. "typeString": "function (bool) pure"
  1059. }
  1060. },
  1061. "id": 82,
  1062. "isConstant": false,
  1063. "isLValue": false,
  1064. "isPure": false,
  1065. "kind": "functionCall",
  1066. "lValueRequested": false,
  1067. "names": [],
  1068. "nodeType": "FunctionCall",
  1069. "src": "631:28:1",
  1070. "typeDescriptions": {
  1071. "typeIdentifier": "t_tuple$__$",
  1072. "typeString": "tuple()"
  1073. }
  1074. },
  1075. "id": 83,
  1076. "nodeType": "ExpressionStatement",
  1077. "src": "631:28:1"
  1078. },
  1079. {
  1080. "id": 84,
  1081. "nodeType": "PlaceholderStatement",
  1082. "src": "665:1:1"
  1083. }
  1084. ]
  1085. },
  1086. "id": 86,
  1087. "name": "onlyOwner",
  1088. "nodeType": "ModifierDefinition",
  1089. "parameters": {
  1090. "id": 76,
  1091. "nodeType": "ParameterList",
  1092. "parameters": [],
  1093. "src": "622:2:1"
  1094. },
  1095. "src": "604:67:1",
  1096. "visibility": "internal"
  1097. },
  1098. {
  1099. "body": {
  1100. "id": 110,
  1101. "nodeType": "Block",
  1102. "src": "894:107:1",
  1103. "statements": [
  1104. {
  1105. "expression": {
  1106. "argumentTypes": null,
  1107. "arguments": [
  1108. {
  1109. "argumentTypes": null,
  1110. "commonType": {
  1111. "typeIdentifier": "t_address",
  1112. "typeString": "address"
  1113. },
  1114. "id": 98,
  1115. "isConstant": false,
  1116. "isLValue": false,
  1117. "isPure": false,
  1118. "lValueRequested": false,
  1119. "leftExpression": {
  1120. "argumentTypes": null,
  1121. "id": 94,
  1122. "name": "newOwner",
  1123. "nodeType": "Identifier",
  1124. "overloadedDeclarations": [],
  1125. "referencedDeclaration": 88,
  1126. "src": "908:8:1",
  1127. "typeDescriptions": {
  1128. "typeIdentifier": "t_address",
  1129. "typeString": "address"
  1130. }
  1131. },
  1132. "nodeType": "BinaryOperation",
  1133. "operator": "!=",
  1134. "rightExpression": {
  1135. "argumentTypes": null,
  1136. "arguments": [
  1137. {
  1138. "argumentTypes": null,
  1139. "hexValue": "30",
  1140. "id": 96,
  1141. "isConstant": false,
  1142. "isLValue": false,
  1143. "isPure": true,
  1144. "kind": "number",
  1145. "lValueRequested": false,
  1146. "nodeType": "Literal",
  1147. "src": "928:1:1",
  1148. "subdenomination": null,
  1149. "typeDescriptions": {
  1150. "typeIdentifier": "t_rational_0_by_1",
  1151. "typeString": "int_const 0"
  1152. },
  1153. "value": "0"
  1154. }
  1155. ],
  1156. "expression": {
  1157. "argumentTypes": [
  1158. {
  1159. "typeIdentifier": "t_rational_0_by_1",
  1160. "typeString": "int_const 0"
  1161. }
  1162. ],
  1163. "id": 95,
  1164. "isConstant": false,
  1165. "isLValue": false,
  1166. "isPure": true,
  1167. "lValueRequested": false,
  1168. "nodeType": "ElementaryTypeNameExpression",
  1169. "src": "920:7:1",
  1170. "typeDescriptions": {
  1171. "typeIdentifier": "t_type$_t_address_$",
  1172. "typeString": "type(address)"
  1173. },
  1174. "typeName": "address"
  1175. },
  1176. "id": 97,
  1177. "isConstant": false,
  1178. "isLValue": false,
  1179. "isPure": true,
  1180. "kind": "typeConversion",
  1181. "lValueRequested": false,
  1182. "names": [],
  1183. "nodeType": "FunctionCall",
  1184. "src": "920:10:1",
  1185. "typeDescriptions": {
  1186. "typeIdentifier": "t_address",
  1187. "typeString": "address"
  1188. }
  1189. },
  1190. "src": "908:22:1",
  1191. "typeDescriptions": {
  1192. "typeIdentifier": "t_bool",
  1193. "typeString": "bool"
  1194. }
  1195. }
  1196. ],
  1197. "expression": {
  1198. "argumentTypes": [
  1199. {
  1200. "typeIdentifier": "t_bool",
  1201. "typeString": "bool"
  1202. }
  1203. ],
  1204. "id": 93,
  1205. "name": "require",
  1206. "nodeType": "Identifier",
  1207. "overloadedDeclarations": [],
  1208. "referencedDeclaration": 823,
  1209. "src": "900:7:1",
  1210. "typeDescriptions": {
  1211. "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
  1212. "typeString": "function (bool) pure"
  1213. }
  1214. },
  1215. "id": 99,
  1216. "isConstant": false,
  1217. "isLValue": false,
  1218. "isPure": false,
  1219. "kind": "functionCall",
  1220. "lValueRequested": false,
  1221. "names": [],
  1222. "nodeType": "FunctionCall",
  1223. "src": "900:31:1",
  1224. "typeDescriptions": {
  1225. "typeIdentifier": "t_tuple$__$",
  1226. "typeString": "tuple()"
  1227. }
  1228. },
  1229. "id": 100,
  1230. "nodeType": "ExpressionStatement",
  1231. "src": "900:31:1"
  1232. },
  1233. {
  1234. "expression": {
  1235. "argumentTypes": null,
  1236. "arguments": [
  1237. {
  1238. "argumentTypes": null,
  1239. "id": 102,
  1240. "name": "owner",
  1241. "nodeType": "Identifier",
  1242. "overloadedDeclarations": [],
  1243. "referencedDeclaration": 60,
  1244. "src": "958:5:1",
  1245. "typeDescriptions": {
  1246. "typeIdentifier": "t_address",
  1247. "typeString": "address"
  1248. }
  1249. },
  1250. {
  1251. "argumentTypes": null,
  1252. "id": 103,
  1253. "name": "newOwner",
  1254. "nodeType": "Identifier",
  1255. "overloadedDeclarations": [],
  1256. "referencedDeclaration": 88,
  1257. "src": "965:8:1",
  1258. "typeDescriptions": {
  1259. "typeIdentifier": "t_address",
  1260. "typeString": "address"
  1261. }
  1262. }
  1263. ],
  1264. "expression": {
  1265. "argumentTypes": [
  1266. {
  1267. "typeIdentifier": "t_address",
  1268. "typeString": "address"
  1269. },
  1270. {
  1271. "typeIdentifier": "t_address",
  1272. "typeString": "address"
  1273. }
  1274. ],
  1275. "id": 101,
  1276. "name": "OwnershipTransferred",
  1277. "nodeType": "Identifier",
  1278. "overloadedDeclarations": [],
  1279. "referencedDeclaration": 66,
  1280. "src": "937:20:1",
  1281. "typeDescriptions": {
  1282. "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
  1283. "typeString": "function (address,address)"
  1284. }
  1285. },
  1286. "id": 104,
  1287. "isConstant": false,
  1288. "isLValue": false,
  1289. "isPure": false,
  1290. "kind": "functionCall",
  1291. "lValueRequested": false,
  1292. "names": [],
  1293. "nodeType": "FunctionCall",
  1294. "src": "937:37:1",
  1295. "typeDescriptions": {
  1296. "typeIdentifier": "t_tuple$__$",
  1297. "typeString": "tuple()"
  1298. }
  1299. },
  1300. "id": 105,
  1301. "nodeType": "ExpressionStatement",
  1302. "src": "937:37:1"
  1303. },
  1304. {
  1305. "expression": {
  1306. "argumentTypes": null,
  1307. "id": 108,
  1308. "isConstant": false,
  1309. "isLValue": false,
  1310. "isPure": false,
  1311. "lValueRequested": false,
  1312. "leftHandSide": {
  1313. "argumentTypes": null,
  1314. "id": 106,
  1315. "name": "owner",
  1316. "nodeType": "Identifier",
  1317. "overloadedDeclarations": [],
  1318. "referencedDeclaration": 60,
  1319. "src": "980:5:1",
  1320. "typeDescriptions": {
  1321. "typeIdentifier": "t_address",
  1322. "typeString": "address"
  1323. }
  1324. },
  1325. "nodeType": "Assignment",
  1326. "operator": "=",
  1327. "rightHandSide": {
  1328. "argumentTypes": null,
  1329. "id": 107,
  1330. "name": "newOwner",
  1331. "nodeType": "Identifier",
  1332. "overloadedDeclarations": [],
  1333. "referencedDeclaration": 88,
  1334. "src": "988:8:1",
  1335. "typeDescriptions": {
  1336. "typeIdentifier": "t_address",
  1337. "typeString": "address"
  1338. }
  1339. },
  1340. "src": "980:16:1",
  1341. "typeDescriptions": {
  1342. "typeIdentifier": "t_address",
  1343. "typeString": "address"
  1344. }
  1345. },
  1346. "id": 109,
  1347. "nodeType": "ExpressionStatement",
  1348. "src": "980:16:1"
  1349. }
  1350. ]
  1351. },
  1352. "id": 111,
  1353. "implemented": true,
  1354. "isConstructor": false,
  1355. "isDeclaredConst": false,
  1356. "modifiers": [
  1357. {
  1358. "arguments": [],
  1359. "id": 91,
  1360. "modifierName": {
  1361. "argumentTypes": null,
  1362. "id": 90,
  1363. "name": "onlyOwner",
  1364. "nodeType": "Identifier",
  1365. "overloadedDeclarations": [],
  1366. "referencedDeclaration": 86,
  1367. "src": "884:9:1",
  1368. "typeDescriptions": {
  1369. "typeIdentifier": "t_modifier$__$",
  1370. "typeString": "modifier ()"
  1371. }
  1372. },
  1373. "nodeType": "ModifierInvocation",
  1374. "src": "884:9:1"
  1375. }
  1376. ],
  1377. "name": "transferOwnership",
  1378. "nodeType": "FunctionDefinition",
  1379. "parameters": {
  1380. "id": 89,
  1381. "nodeType": "ParameterList",
  1382. "parameters": [
  1383. {
  1384. "constant": false,
  1385. "id": 88,
  1386. "name": "newOwner",
  1387. "nodeType": "VariableDeclaration",
  1388. "scope": 111,
  1389. "src": "859:16:1",
  1390. "stateVariable": false,
  1391. "storageLocation": "default",
  1392. "typeDescriptions": {
  1393. "typeIdentifier": "t_address",
  1394. "typeString": "address"
  1395. },
  1396. "typeName": {
  1397. "id": 87,
  1398. "name": "address",
  1399. "nodeType": "ElementaryTypeName",
  1400. "src": "859:7:1",
  1401. "typeDescriptions": {
  1402. "typeIdentifier": "t_address",
  1403. "typeString": "address"
  1404. }
  1405. },
  1406. "value": null,
  1407. "visibility": "internal"
  1408. }
  1409. ],
  1410. "src": "858:18:1"
  1411. },
  1412. "payable": false,
  1413. "returnParameters": {
  1414. "id": 92,
  1415. "nodeType": "ParameterList",
  1416. "parameters": [],
  1417. "src": "894:0:1"
  1418. },
  1419. "scope": 112,
  1420. "src": "832:169:1",
  1421. "stateMutability": "nonpayable",
  1422. "superFunction": null,
  1423. "visibility": "public"
  1424. }
  1425. ],
  1426. "scope": 113,
  1427. "src": "217:786:1"
  1428. }
  1429. ],
  1430. "src": "0:1003:1"
  1431. },
  1432. "compiler": {
  1433. "name": "solc",
  1434. "version": "0.4.19+commit.c4cbbb05.Emscripten.clang"
  1435. },
  1436. "networks": {},
  1437. "schemaVersion": "2.0.0",
  1438. "updatedAt": "2018-04-02T07:08:50.938Z"
  1439. }