{ "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" }