123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554 |
- {
- "contractName": "SimpleStorage",
- "abi": [
- {
- "constant": false,
- "inputs": [
- {
- "name": "x",
- "type": "uint256"
- }
- ],
- "name": "set",
- "outputs": [],
- "payable": false,
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "constant": true,
- "inputs": [],
- "name": "get",
- "outputs": [
- {
- "name": "",
- "type": "uint256"
- }
- ],
- "payable": false,
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6060604052341561000f57600080fd5b60d38061001d6000396000f3006060604052600436106049576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806360fe47b114604e5780636d4ce63c14606e575b600080fd5b3415605857600080fd5b606c60048080359060200190919050506094565b005b3415607857600080fd5b607e609e565b6040518082815260200191505060405180910390f35b8060008190555050565b600080549050905600a165627a7a72305820a341d8a46a875e3b6a505477c7a369c93c349b5e6c18a445ca86244433aec9750029",
- "deployedBytecode": "0x6060604052600436106049576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806360fe47b114604e5780636d4ce63c14606e575b600080fd5b3415605857600080fd5b606c60048080359060200190919050506094565b005b3415607857600080fd5b607e609e565b6040518082815260200191505060405180910390f35b8060008190555050565b600080549050905600a165627a7a72305820a341d8a46a875e3b6a505477c7a369c93c349b5e6c18a445ca86244433aec9750029",
- "sourceMap": "26:176:4:-;;;;;;;;;;;;;;;;;",
- "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",
- "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",
- "sourcePath": "/Users/ted/Github/Team-H/Lesson-7/assignment/contracts/SimpleStorage.sol",
- "ast": {
- "absolutePath": "/Users/ted/Github/Team-H/Lesson-7/assignment/contracts/SimpleStorage.sol",
- "exportedSymbols": {
- "SimpleStorage": [
- 808
- ]
- },
- "id": 809,
- "nodeType": "SourceUnit",
- "nodes": [
- {
- "id": 787,
- "literals": [
- "solidity",
- "^",
- "0.4",
- ".18"
- ],
- "nodeType": "PragmaDirective",
- "src": "0:24:4"
- },
- {
- "baseContracts": [],
- "contractDependencies": [],
- "contractKind": "contract",
- "documentation": null,
- "fullyImplemented": true,
- "id": 808,
- "linearizedBaseContracts": [
- 808
- ],
- "name": "SimpleStorage",
- "nodeType": "ContractDefinition",
- "nodes": [
- {
- "constant": false,
- "id": 789,
- "name": "storedData",
- "nodeType": "VariableDeclaration",
- "scope": 808,
- "src": "53:15:4",
- "stateVariable": true,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 788,
- "name": "uint",
- "nodeType": "ElementaryTypeName",
- "src": "53:4:4",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "value": null,
- "visibility": "internal"
- },
- {
- "body": {
- "id": 798,
- "nodeType": "Block",
- "src": "101:25:4",
- "statements": [
- {
- "expression": {
- "argumentTypes": null,
- "id": 796,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftHandSide": {
- "argumentTypes": null,
- "id": 794,
- "name": "storedData",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 789,
- "src": "107:10:4",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "nodeType": "Assignment",
- "operator": "=",
- "rightHandSide": {
- "argumentTypes": null,
- "id": 795,
- "name": "x",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 791,
- "src": "120:1:4",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "src": "107:14:4",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "id": 797,
- "nodeType": "ExpressionStatement",
- "src": "107:14:4"
- }
- ]
- },
- "id": 799,
- "implemented": true,
- "isConstructor": false,
- "isDeclaredConst": false,
- "modifiers": [],
- "name": "set",
- "nodeType": "FunctionDefinition",
- "parameters": {
- "id": 792,
- "nodeType": "ParameterList",
- "parameters": [
- {
- "constant": false,
- "id": 791,
- "name": "x",
- "nodeType": "VariableDeclaration",
- "scope": 799,
- "src": "86:6:4",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 790,
- "name": "uint",
- "nodeType": "ElementaryTypeName",
- "src": "86:4:4",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "value": null,
- "visibility": "internal"
- }
- ],
- "src": "85:8:4"
- },
- "payable": false,
- "returnParameters": {
- "id": 793,
- "nodeType": "ParameterList",
- "parameters": [],
- "src": "101:0:4"
- },
- "scope": 808,
- "src": "73:53:4",
- "stateMutability": "nonpayable",
- "superFunction": null,
- "visibility": "public"
- },
- {
- "body": {
- "id": 806,
- "nodeType": "Block",
- "src": "172:28:4",
- "statements": [
- {
- "expression": {
- "argumentTypes": null,
- "id": 804,
- "name": "storedData",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 789,
- "src": "185:10:4",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "functionReturnParameters": 803,
- "id": 805,
- "nodeType": "Return",
- "src": "178:17:4"
- }
- ]
- },
- "id": 807,
- "implemented": true,
- "isConstructor": false,
- "isDeclaredConst": true,
- "modifiers": [],
- "name": "get",
- "nodeType": "FunctionDefinition",
- "parameters": {
- "id": 800,
- "nodeType": "ParameterList",
- "parameters": [],
- "src": "142:2:4"
- },
- "payable": false,
- "returnParameters": {
- "id": 803,
- "nodeType": "ParameterList",
- "parameters": [
- {
- "constant": false,
- "id": 802,
- "name": "",
- "nodeType": "VariableDeclaration",
- "scope": 807,
- "src": "166:4:4",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 801,
- "name": "uint",
- "nodeType": "ElementaryTypeName",
- "src": "166:4:4",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "value": null,
- "visibility": "internal"
- }
- ],
- "src": "165:6:4"
- },
- "scope": 808,
- "src": "130:70:4",
- "stateMutability": "view",
- "superFunction": null,
- "visibility": "public"
- }
- ],
- "scope": 809,
- "src": "26:176:4"
- }
- ],
- "src": "0:203:4"
- },
- "legacyAST": {
- "absolutePath": "/Users/ted/Github/Team-H/Lesson-7/assignment/contracts/SimpleStorage.sol",
- "exportedSymbols": {
- "SimpleStorage": [
- 808
- ]
- },
- "id": 809,
- "nodeType": "SourceUnit",
- "nodes": [
- {
- "id": 787,
- "literals": [
- "solidity",
- "^",
- "0.4",
- ".18"
- ],
- "nodeType": "PragmaDirective",
- "src": "0:24:4"
- },
- {
- "baseContracts": [],
- "contractDependencies": [],
- "contractKind": "contract",
- "documentation": null,
- "fullyImplemented": true,
- "id": 808,
- "linearizedBaseContracts": [
- 808
- ],
- "name": "SimpleStorage",
- "nodeType": "ContractDefinition",
- "nodes": [
- {
- "constant": false,
- "id": 789,
- "name": "storedData",
- "nodeType": "VariableDeclaration",
- "scope": 808,
- "src": "53:15:4",
- "stateVariable": true,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 788,
- "name": "uint",
- "nodeType": "ElementaryTypeName",
- "src": "53:4:4",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "value": null,
- "visibility": "internal"
- },
- {
- "body": {
- "id": 798,
- "nodeType": "Block",
- "src": "101:25:4",
- "statements": [
- {
- "expression": {
- "argumentTypes": null,
- "id": 796,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftHandSide": {
- "argumentTypes": null,
- "id": 794,
- "name": "storedData",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 789,
- "src": "107:10:4",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "nodeType": "Assignment",
- "operator": "=",
- "rightHandSide": {
- "argumentTypes": null,
- "id": 795,
- "name": "x",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 791,
- "src": "120:1:4",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "src": "107:14:4",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "id": 797,
- "nodeType": "ExpressionStatement",
- "src": "107:14:4"
- }
- ]
- },
- "id": 799,
- "implemented": true,
- "isConstructor": false,
- "isDeclaredConst": false,
- "modifiers": [],
- "name": "set",
- "nodeType": "FunctionDefinition",
- "parameters": {
- "id": 792,
- "nodeType": "ParameterList",
- "parameters": [
- {
- "constant": false,
- "id": 791,
- "name": "x",
- "nodeType": "VariableDeclaration",
- "scope": 799,
- "src": "86:6:4",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 790,
- "name": "uint",
- "nodeType": "ElementaryTypeName",
- "src": "86:4:4",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "value": null,
- "visibility": "internal"
- }
- ],
- "src": "85:8:4"
- },
- "payable": false,
- "returnParameters": {
- "id": 793,
- "nodeType": "ParameterList",
- "parameters": [],
- "src": "101:0:4"
- },
- "scope": 808,
- "src": "73:53:4",
- "stateMutability": "nonpayable",
- "superFunction": null,
- "visibility": "public"
- },
- {
- "body": {
- "id": 806,
- "nodeType": "Block",
- "src": "172:28:4",
- "statements": [
- {
- "expression": {
- "argumentTypes": null,
- "id": 804,
- "name": "storedData",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 789,
- "src": "185:10:4",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "functionReturnParameters": 803,
- "id": 805,
- "nodeType": "Return",
- "src": "178:17:4"
- }
- ]
- },
- "id": 807,
- "implemented": true,
- "isConstructor": false,
- "isDeclaredConst": true,
- "modifiers": [],
- "name": "get",
- "nodeType": "FunctionDefinition",
- "parameters": {
- "id": 800,
- "nodeType": "ParameterList",
- "parameters": [],
- "src": "142:2:4"
- },
- "payable": false,
- "returnParameters": {
- "id": 803,
- "nodeType": "ParameterList",
- "parameters": [
- {
- "constant": false,
- "id": 802,
- "name": "",
- "nodeType": "VariableDeclaration",
- "scope": 807,
- "src": "166:4:4",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 801,
- "name": "uint",
- "nodeType": "ElementaryTypeName",
- "src": "166:4:4",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "value": null,
- "visibility": "internal"
- }
- ],
- "src": "165:6:4"
- },
- "scope": 808,
- "src": "130:70:4",
- "stateMutability": "view",
- "superFunction": null,
- "visibility": "public"
- }
- ],
- "scope": 809,
- "src": "26:176:4"
- }
- ],
- "src": "0:203:4"
- },
- "compiler": {
- "name": "solc",
- "version": "0.4.19+commit.c4cbbb05.Emscripten.clang"
- },
- "networks": {},
- "schemaVersion": "2.0.0",
- "updatedAt": "2018-04-02T07:08:50.944Z"
- }
|