UNPKG

@alice-network/zos-lib

Version:

JavaScript library for the ZeppelinOS smart contract platform

992 lines 36.6 kB
{ "contractName": "WithInitialValuesInFieldsDeclarations", "abi": [ { "constant": true, "inputs": [], "name": "allaps", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "doSomething", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "pure", "type": "function" } ], "bytecode": "0x60806040526040805190810160405280600681526020017f616c6c61707300000000000000000000000000000000000000000000000000008152506000908051906020019061004f929190610062565b5034801561005c57600080fd5b50610107565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100a357805160ff19168380011785556100d1565b828001600101855582156100d1579182015b828111156100d05782518255916020019190600101906100b5565b5b5090506100de91906100e2565b5090565b61010491905b808211156101005760008160009055506001016100e8565b5090565b90565b610278806101166000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638269267914610051578063bc4b0e64146100e1575b600080fd5b34801561005d57600080fd5b50610066610171565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100a657808201518184015260208101905061008b565b50505050905090810190601f1680156100d35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156100ed57600080fd5b506100f66101ae565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561013657808201518184015260208101905061011b565b50505050905090810190601f1680156101635780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60606040805190810160405280600281526020017f646f000000000000000000000000000000000000000000000000000000000000815250905090565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156102445780601f1061021957610100808354040283529160200191610244565b820191906000526020600020905b81548152906001019060200180831161022757829003601f168201915b5050505050815600a165627a7a7230582037c05119c45df4b0649f8bd8b1a32a7daf41bde52dc453845af4a954b3b8a5cc0029", "deployedBytecode": "0x60806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638269267914610051578063bc4b0e64146100e1575b600080fd5b34801561005d57600080fd5b50610066610171565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100a657808201518184015260208101905061008b565b50505050905090810190601f1680156100d35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156100ed57600080fd5b506100f66101ae565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561013657808201518184015260208101905061011b565b50505050905090810190601f1680156101635780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60606040805190810160405280600281526020017f646f000000000000000000000000000000000000000000000000000000000000815250905090565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156102445780601f1061021957610100808354040283529160200191610244565b820191906000526020600020905b81548152906001019060200180831161022757829003601f168201915b5050505050815600a165627a7a7230582037c05119c45df4b0649f8bd8b1a32a7daf41bde52dc453845af4a954b3b8a5cc0029", "sourceMap": "193:163:21:-;;;244:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;193:163;8:9:-1;5:2;;;30:1;27;20:12;5:2;193:163:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;", "deployedSourceMap": "193:163:21:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;280:74;;8:9:-1;5:2;;;30:1;27;20:12;5:2;280:74:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;280:74:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;244:31;;8:9:-1;5:2;;;30:1;27;20:12;5:2;244:31:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;244:31:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;280:74;324:6;338:11;;;;;;;;;;;;;;;;;;;;280:74;:::o;244:31::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o", "source": "pragma solidity ^0.4.24;\n\ncontract WithoutInitialValuesInFieldsDeclarations {\n uint constant myConst = 115994;\n\n function doSomething() public pure returns (string) {\n return 'do';\n }\n}\n\ncontract WithInitialValuesInFieldsDeclarations {\n string public allaps = 'allaps';\n\n function doSomething() public pure returns (string) {\n return 'do';\n }\n}\n\ncontract WithParentWithInitialValuesInFieldsDeclarations is WithInitialValuesInFieldsDeclarations {\n string public myVar;\n\n function doSomething() public pure returns (string) {\n return 'do';\n }\n}\n\n", "sourcePath": "/Users/yoonjae/WebstormProjects/zos/packages/lib/contracts/mocks/WithInitialValues.sol", "ast": { "absolutePath": "/Users/yoonjae/WebstormProjects/zos/packages/lib/contracts/mocks/WithInitialValues.sol", "exportedSymbols": { "WithInitialValuesInFieldsDeclarations": [ 2511 ], "WithParentWithInitialValuesInFieldsDeclarations": [ 2524 ], "WithoutInitialValuesInFieldsDeclarations": [ 2499 ] }, "id": 2525, "nodeType": "SourceUnit", "nodes": [ { "id": 2487, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:21" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 2499, "linearizedBaseContracts": [ 2499 ], "name": "WithoutInitialValuesInFieldsDeclarations", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 2490, "name": "myConst", "nodeType": "VariableDeclaration", "scope": 2499, "src": "80:30:21", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2488, "name": "uint", "nodeType": "ElementaryTypeName", "src": "80:4:21", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "argumentTypes": null, "hexValue": "313135393934", "id": 2489, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "104:6:21", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_115994_by_1", "typeString": "int_const 115994" }, "value": "115994" }, "visibility": "internal" }, { "body": { "id": 2497, "nodeType": "Block", "src": "167:22:21", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "646f", "id": 2495, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "180:4:21", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_a25dd137276eccd5048f808ec1a55102f9cde0dc9f47be33bc0c29fa331a789d", "typeString": "literal_string \"do\"" }, "value": "do" }, "functionReturnParameters": 2494, "id": 2496, "nodeType": "Return", "src": "173:11:21" } ] }, "documentation": null, "id": 2498, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "doSomething", "nodeType": "FunctionDefinition", "parameters": { "id": 2491, "nodeType": "ParameterList", "parameters": [], "src": "135:2:21" }, "payable": false, "returnParameters": { "id": 2494, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2493, "name": "", "nodeType": "VariableDeclaration", "scope": 2498, "src": "159:6:21", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2492, "name": "string", "nodeType": "ElementaryTypeName", "src": "159:6:21", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "158:8:21" }, "scope": 2499, "src": "115:74:21", "stateMutability": "pure", "superFunction": null, "visibility": "public" } ], "scope": 2525, "src": "26:165:21" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 2511, "linearizedBaseContracts": [ 2511 ], "name": "WithInitialValuesInFieldsDeclarations", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 2502, "name": "allaps", "nodeType": "VariableDeclaration", "scope": 2511, "src": "244:31:21", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 2500, "name": "string", "nodeType": "ElementaryTypeName", "src": "244:6:21", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "argumentTypes": null, "hexValue": "616c6c617073", "id": 2501, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "267:8:21", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_e919cf55dac0a9e9746a92ec54b98336dc9d8e3bcca6fbbc6ecdc60172503ead", "typeString": "literal_string \"allaps\"" }, "value": "allaps" }, "visibility": "public" }, { "body": { "id": 2509, "nodeType": "Block", "src": "332:22:21", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "646f", "id": 2507, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "345:4:21", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_a25dd137276eccd5048f808ec1a55102f9cde0dc9f47be33bc0c29fa331a789d", "typeString": "literal_string \"do\"" }, "value": "do" }, "functionReturnParameters": 2506, "id": 2508, "nodeType": "Return", "src": "338:11:21" } ] }, "documentation": null, "id": 2510, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "doSomething", "nodeType": "FunctionDefinition", "parameters": { "id": 2503, "nodeType": "ParameterList", "parameters": [], "src": "300:2:21" }, "payable": false, "returnParameters": { "id": 2506, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2505, "name": "", "nodeType": "VariableDeclaration", "scope": 2510, "src": "324:6:21", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2504, "name": "string", "nodeType": "ElementaryTypeName", "src": "324:6:21", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "323:8:21" }, "scope": 2511, "src": "280:74:21", "stateMutability": "pure", "superFunction": null, "visibility": "public" } ], "scope": 2525, "src": "193:163:21" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 2512, "name": "WithInitialValuesInFieldsDeclarations", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 2511, "src": "418:37:21", "typeDescriptions": { "typeIdentifier": "t_contract$_WithInitialValuesInFieldsDeclarations_$2511", "typeString": "contract WithInitialValuesInFieldsDeclarations" } }, "id": 2513, "nodeType": "InheritanceSpecifier", "src": "418:37:21" } ], "contractDependencies": [ 2511 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 2524, "linearizedBaseContracts": [ 2524, 2511 ], "name": "WithParentWithInitialValuesInFieldsDeclarations", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 2515, "name": "myVar", "nodeType": "VariableDeclaration", "scope": 2524, "src": "460:19:21", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 2514, "name": "string", "nodeType": "ElementaryTypeName", "src": "460:6:21", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "public" }, { "body": { "id": 2522, "nodeType": "Block", "src": "536:22:21", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "646f", "id": 2520, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "549:4:21", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_a25dd137276eccd5048f808ec1a55102f9cde0dc9f47be33bc0c29fa331a789d", "typeString": "literal_string \"do\"" }, "value": "do" }, "functionReturnParameters": 2519, "id": 2521, "nodeType": "Return", "src": "542:11:21" } ] }, "documentation": null, "id": 2523, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "doSomething", "nodeType": "FunctionDefinition", "parameters": { "id": 2516, "nodeType": "ParameterList", "parameters": [], "src": "504:2:21" }, "payable": false, "returnParameters": { "id": 2519, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2518, "name": "", "nodeType": "VariableDeclaration", "scope": 2523, "src": "528:6:21", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2517, "name": "string", "nodeType": "ElementaryTypeName", "src": "528:6:21", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "527:8:21" }, "scope": 2524, "src": "484:74:21", "stateMutability": "pure", "superFunction": 2510, "visibility": "public" } ], "scope": 2525, "src": "358:202:21" } ], "src": "0:562:21" }, "legacyAST": { "absolutePath": "/Users/yoonjae/WebstormProjects/zos/packages/lib/contracts/mocks/WithInitialValues.sol", "exportedSymbols": { "WithInitialValuesInFieldsDeclarations": [ 2511 ], "WithParentWithInitialValuesInFieldsDeclarations": [ 2524 ], "WithoutInitialValuesInFieldsDeclarations": [ 2499 ] }, "id": 2525, "nodeType": "SourceUnit", "nodes": [ { "id": 2487, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:21" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 2499, "linearizedBaseContracts": [ 2499 ], "name": "WithoutInitialValuesInFieldsDeclarations", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 2490, "name": "myConst", "nodeType": "VariableDeclaration", "scope": 2499, "src": "80:30:21", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2488, "name": "uint", "nodeType": "ElementaryTypeName", "src": "80:4:21", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "argumentTypes": null, "hexValue": "313135393934", "id": 2489, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "104:6:21", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_115994_by_1", "typeString": "int_const 115994" }, "value": "115994" }, "visibility": "internal" }, { "body": { "id": 2497, "nodeType": "Block", "src": "167:22:21", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "646f", "id": 2495, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "180:4:21", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_a25dd137276eccd5048f808ec1a55102f9cde0dc9f47be33bc0c29fa331a789d", "typeString": "literal_string \"do\"" }, "value": "do" }, "functionReturnParameters": 2494, "id": 2496, "nodeType": "Return", "src": "173:11:21" } ] }, "documentation": null, "id": 2498, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "doSomething", "nodeType": "FunctionDefinition", "parameters": { "id": 2491, "nodeType": "ParameterList", "parameters": [], "src": "135:2:21" }, "payable": false, "returnParameters": { "id": 2494, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2493, "name": "", "nodeType": "VariableDeclaration", "scope": 2498, "src": "159:6:21", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2492, "name": "string", "nodeType": "ElementaryTypeName", "src": "159:6:21", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "158:8:21" }, "scope": 2499, "src": "115:74:21", "stateMutability": "pure", "superFunction": null, "visibility": "public" } ], "scope": 2525, "src": "26:165:21" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 2511, "linearizedBaseContracts": [ 2511 ], "name": "WithInitialValuesInFieldsDeclarations", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 2502, "name": "allaps", "nodeType": "VariableDeclaration", "scope": 2511, "src": "244:31:21", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 2500, "name": "string", "nodeType": "ElementaryTypeName", "src": "244:6:21", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "argumentTypes": null, "hexValue": "616c6c617073", "id": 2501, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "267:8:21", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_e919cf55dac0a9e9746a92ec54b98336dc9d8e3bcca6fbbc6ecdc60172503ead", "typeString": "literal_string \"allaps\"" }, "value": "allaps" }, "visibility": "public" }, { "body": { "id": 2509, "nodeType": "Block", "src": "332:22:21", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "646f", "id": 2507, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "345:4:21", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_a25dd137276eccd5048f808ec1a55102f9cde0dc9f47be33bc0c29fa331a789d", "typeString": "literal_string \"do\"" }, "value": "do" }, "functionReturnParameters": 2506, "id": 2508, "nodeType": "Return", "src": "338:11:21" } ] }, "documentation": null, "id": 2510, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "doSomething", "nodeType": "FunctionDefinition", "parameters": { "id": 2503, "nodeType": "ParameterList", "parameters": [], "src": "300:2:21" }, "payable": false, "returnParameters": { "id": 2506, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2505, "name": "", "nodeType": "VariableDeclaration", "scope": 2510, "src": "324:6:21", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2504, "name": "string", "nodeType": "ElementaryTypeName", "src": "324:6:21", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "323:8:21" }, "scope": 2511, "src": "280:74:21", "stateMutability": "pure", "superFunction": null, "visibility": "public" } ], "scope": 2525, "src": "193:163:21" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 2512, "name": "WithInitialValuesInFieldsDeclarations", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 2511, "src": "418:37:21", "typeDescriptions": { "typeIdentifier": "t_contract$_WithInitialValuesInFieldsDeclarations_$2511", "typeString": "contract WithInitialValuesInFieldsDeclarations" } }, "id": 2513, "nodeType": "InheritanceSpecifier", "src": "418:37:21" } ], "contractDependencies": [ 2511 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 2524, "linearizedBaseContracts": [ 2524, 2511 ], "name": "WithParentWithInitialValuesInFieldsDeclarations", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 2515, "name": "myVar", "nodeType": "VariableDeclaration", "scope": 2524, "src": "460:19:21", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 2514, "name": "string", "nodeType": "ElementaryTypeName", "src": "460:6:21", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "public" }, { "body": { "id": 2522, "nodeType": "Block", "src": "536:22:21", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "646f", "id": 2520, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "549:4:21", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_a25dd137276eccd5048f808ec1a55102f9cde0dc9f47be33bc0c29fa331a789d", "typeString": "literal_string \"do\"" }, "value": "do" }, "functionReturnParameters": 2519, "id": 2521, "nodeType": "Return", "src": "542:11:21" } ] }, "documentation": null, "id": 2523, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "doSomething", "nodeType": "FunctionDefinition", "parameters": { "id": 2516, "nodeType": "ParameterList", "parameters": [], "src": "504:2:21" }, "payable": false, "returnParameters": { "id": 2519, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2518, "name": "", "nodeType": "VariableDeclaration", "scope": 2523, "src": "528:6:21", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2517, "name": "string", "nodeType": "ElementaryTypeName", "src": "528:6:21", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "527:8:21" }, "scope": 2524, "src": "484:74:21", "stateMutability": "pure", "superFunction": 2510, "visibility": "public" } ], "scope": 2525, "src": "358:202:21" } ], "src": "0:562:21" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2019-02-15T10:15:15.415Z" }