UNPKG

moesif-eth-cli

Version:

Moesif Ethereum CLI to upload Ethereum Smart Contract ABI to Moesif for deeper visbility into Web3 API analytics and monitoring.

565 lines 19 kB
{ "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": "0x608060405234801561001057600080fd5b5060df8061001f6000396000f3006080604052600436106049576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806360fe47b114604e5780636d4ce63c146078575b600080fd5b348015605957600080fd5b5060766004803603810190808035906020019092919050505060a0565b005b348015608357600080fd5b50608a60aa565b6040518082815260200191505060405180910390f35b8060008190555050565b600080549050905600a165627a7a723058204cd94e7a97bf24d69dde58979213fbdddaed298873ad7eea4b3490e80f09a64c0029", "deployedBytecode": "0x6080604052600436106049576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806360fe47b114604e5780636d4ce63c146078575b600080fd5b348015605957600080fd5b5060766004803603810190808035906020019092919050505060a0565b005b348015608357600080fd5b50608a60aa565b6040518082815260200191505060405180910390f35b8060008190555050565b600080549050905600a165627a7a723058204cd94e7a97bf24d69dde58979213fbdddaed298873ad7eea4b3490e80f09a64c0029", "sourceMap": "26:176:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26:176:1;;;;;;;", "deployedSourceMap": "26:176:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73:53;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73:53:1;;;;;;;;;;;;;;;;;;;;;;;;;;130:70;;8:9:-1;5:2;;;30:1;27;20:12;5:2;130:70:1;;;;;;;;;;;;;;;;;;;;;;;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/Xingheng/Moesif/repos/moesif-ethereum-js-example/contracts/SimpleStorage.sol", "ast": { "absolutePath": "/Users/Xingheng/Moesif/repos/moesif-ethereum-js-example/contracts/SimpleStorage.sol", "exportedSymbols": { "SimpleStorage": [ 79 ] }, "id": 80, "nodeType": "SourceUnit", "nodes": [ { "id": 58, "literals": [ "solidity", "^", "0.4", ".18" ], "nodeType": "PragmaDirective", "src": "0:24:1" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 79, "linearizedBaseContracts": [ 79 ], "name": "SimpleStorage", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 60, "name": "storedData", "nodeType": "VariableDeclaration", "scope": 79, "src": "53:15:1", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 59, "name": "uint", "nodeType": "ElementaryTypeName", "src": "53:4:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "body": { "id": 69, "nodeType": "Block", "src": "101:25:1", "statements": [ { "expression": { "argumentTypes": null, "id": 67, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 65, "name": "storedData", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 60, "src": "107:10:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 66, "name": "x", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 62, "src": "120:1:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "107:14:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 68, "nodeType": "ExpressionStatement", "src": "107:14:1" } ] }, "documentation": null, "id": 70, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "set", "nodeType": "FunctionDefinition", "parameters": { "id": 63, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 62, "name": "x", "nodeType": "VariableDeclaration", "scope": 70, "src": "86:6:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 61, "name": "uint", "nodeType": "ElementaryTypeName", "src": "86:4:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "85:8:1" }, "payable": false, "returnParameters": { "id": 64, "nodeType": "ParameterList", "parameters": [], "src": "101:0:1" }, "scope": 79, "src": "73:53:1", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 77, "nodeType": "Block", "src": "172:28:1", "statements": [ { "expression": { "argumentTypes": null, "id": 75, "name": "storedData", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 60, "src": "185:10:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 74, "id": 76, "nodeType": "Return", "src": "178:17:1" } ] }, "documentation": null, "id": 78, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "get", "nodeType": "FunctionDefinition", "parameters": { "id": 71, "nodeType": "ParameterList", "parameters": [], "src": "142:2:1" }, "payable": false, "returnParameters": { "id": 74, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 73, "name": "", "nodeType": "VariableDeclaration", "scope": 78, "src": "166:4:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 72, "name": "uint", "nodeType": "ElementaryTypeName", "src": "166:4:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "165:6:1" }, "scope": 79, "src": "130:70:1", "stateMutability": "view", "superFunction": null, "visibility": "public" } ], "scope": 80, "src": "26:176:1" } ], "src": "0:203:1" }, "legacyAST": { "absolutePath": "/Users/Xingheng/Moesif/repos/moesif-ethereum-js-example/contracts/SimpleStorage.sol", "exportedSymbols": { "SimpleStorage": [ 79 ] }, "id": 80, "nodeType": "SourceUnit", "nodes": [ { "id": 58, "literals": [ "solidity", "^", "0.4", ".18" ], "nodeType": "PragmaDirective", "src": "0:24:1" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 79, "linearizedBaseContracts": [ 79 ], "name": "SimpleStorage", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 60, "name": "storedData", "nodeType": "VariableDeclaration", "scope": 79, "src": "53:15:1", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 59, "name": "uint", "nodeType": "ElementaryTypeName", "src": "53:4:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "body": { "id": 69, "nodeType": "Block", "src": "101:25:1", "statements": [ { "expression": { "argumentTypes": null, "id": 67, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 65, "name": "storedData", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 60, "src": "107:10:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 66, "name": "x", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 62, "src": "120:1:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "107:14:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 68, "nodeType": "ExpressionStatement", "src": "107:14:1" } ] }, "documentation": null, "id": 70, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "set", "nodeType": "FunctionDefinition", "parameters": { "id": 63, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 62, "name": "x", "nodeType": "VariableDeclaration", "scope": 70, "src": "86:6:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 61, "name": "uint", "nodeType": "ElementaryTypeName", "src": "86:4:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "85:8:1" }, "payable": false, "returnParameters": { "id": 64, "nodeType": "ParameterList", "parameters": [], "src": "101:0:1" }, "scope": 79, "src": "73:53:1", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 77, "nodeType": "Block", "src": "172:28:1", "statements": [ { "expression": { "argumentTypes": null, "id": 75, "name": "storedData", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 60, "src": "185:10:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 74, "id": 76, "nodeType": "Return", "src": "178:17:1" } ] }, "documentation": null, "id": 78, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "get", "nodeType": "FunctionDefinition", "parameters": { "id": 71, "nodeType": "ParameterList", "parameters": [], "src": "142:2:1" }, "payable": false, "returnParameters": { "id": 74, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 73, "name": "", "nodeType": "VariableDeclaration", "scope": 78, "src": "166:4:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 72, "name": "uint", "nodeType": "ElementaryTypeName", "src": "166:4:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "165:6:1" }, "scope": 79, "src": "130:70:1", "stateMutability": "view", "superFunction": null, "visibility": "public" } ], "scope": 80, "src": "26:176:1" } ], "src": "0:203:1" }, "compiler": { "name": "solc", "version": "0.4.23+commit.124ca40d.Emscripten.clang" }, "networks": { "4447": { "events": {}, "links": {}, "address": "0x345ca3e014aaf5dca488057592ee47305d9b3e10", "transactionHash": "0xac11a384f06c07b31d8fb4c291488e515fa1d3c5dcd8ea0949ecece281b8e8b5" } }, "schemaVersion": "2.0.0", "updatedAt": "2018-08-12T20:43:28.577Z" }