@alice-network/zos-lib
Version:
JavaScript library for the ZeppelinOS smart contract platform
1,388 lines • 81 kB
JSON
{
"contractName": "GetFunctionOtherChild",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "_x",
"type": "uint256"
}
],
"name": "another",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_x",
"type": "bytes32"
}
],
"name": "initialize",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_x",
"type": "uint256"
},
{
"name": "_y",
"type": "uint256"
}
],
"name": "initialize",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_x",
"type": "string"
}
],
"name": "initialize",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_x",
"type": "uint256"
}
],
"name": "initialize",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50610203806100206000396000f30060806040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063499af201146100725780639498bd711461009f578063e4a30116146100d0578063f62d188814610107578063fe4b84df14610170575b600080fd5b34801561007e57600080fd5b5061009d6004803603810190808035906020019092919050505061019d565b005b3480156100ab57600080fd5b506100ce60048036038101908080356000191690602001909291905050506101a7565b005b3480156100dc57600080fd5b5061010560048036038101908080359060200190929190803590602001909291905050506101b5565b005b34801561011357600080fd5b5061016e600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506101c2565b005b34801561017c57600080fd5b5061019b600480360381019080803590602001909291905050506101cd565b005b8060008190555050565b806001900460008190555050565b8082016000819055505050565b805160008190555050565b80600081905550505600a165627a7a72305820a015453d88ffecbc68b418a7b91a427d807be7f1cefc766b72371fbacaca3ee20029",
"deployedBytecode": "0x60806040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063499af201146100725780639498bd711461009f578063e4a30116146100d0578063f62d188814610107578063fe4b84df14610170575b600080fd5b34801561007e57600080fd5b5061009d6004803603810190808035906020019092919050505061019d565b005b3480156100ab57600080fd5b506100ce60048036038101908080356000191690602001909291905050506101a7565b005b3480156100dc57600080fd5b5061010560048036038101908080359060200190929190803590602001909291905050506101b5565b005b34801561011357600080fd5b5061016e600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506101c2565b005b34801561017c57600080fd5b5061019b600480360381019080803590602001909291905050506101cd565b005b8060008190555050565b806001900460008190555050565b8082016000819055505050565b805160008190555050565b80600081905550505600a165627a7a72305820a015453d88ffecbc68b418a7b91a427d807be7f1cefc766b72371fbacaca3ee20029",
"sourceMap": "452:121:9:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;452:121:9;;;;;;;",
"deployedSourceMap": "452:121:9:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;281:53;;8:9:-1;5:2;;;30:1;27;20:12;5:2;281:53:9;;;;;;;;;;;;;;;;;;;;;;;;;;506:65;;8:9:-1;5:2;;;30:1;27;20:12;5:2;506:65:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;204:73;;8:9:-1;5:2;;;30:1;27;20:12;5:2;204:73:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;131:69;;8:9:-1;5:2;;;30:1;27;20:12;5:2;131:69:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71:56;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71:56:9;;;;;;;;;;;;;;;;;;;;;;;;;;281:53;327:2;323:1;:6;;;;281:53;:::o;506:65::-;563:2;555:11;;;551:1;:15;;;;506:65;:::o;204:73::-;270:2;265;:7;261:1;:11;;;;204:73;;:::o;131:69::-;185:2;179:16;175:1;:20;;;;131:69;:::o;71:56::-;120:2;116:1;:6;;;;71:56;:::o",
"source": "pragma solidity ^0.4.24;\n\ncontract GetFunctionBase {\n uint256 x;\n \n function initialize(uint256 _x) public {\n x = _x;\n }\n\n function initialize(string _x) public {\n x = bytes(_x).length;\n }\n\n function initialize(uint256 _x, uint256 _y) public {\n x = _x + _y;\n }\n\n function another(uint256 _x) public {\n x = _x;\n }\n}\n\ncontract GetFunctionChild is GetFunctionBase {\n function initialize(bytes _x) public {\n x = _x.length;\n }\n}\n\ncontract GetFunctionOtherChild is GetFunctionBase {\n function initialize(bytes32 _x) public {\n x = uint256(_x);\n }\n}\n\ncontract GetFunctionGrandchild is GetFunctionChild, GetFunctionOtherChild { }\n\ncontract GetFunctionOtherGrandchild is GetFunctionOtherChild, GetFunctionChild { }",
"sourcePath": "/Users/yoonjae/WebstormProjects/zos/packages/lib/contracts/mocks/GetFunctionMocks.sol",
"ast": {
"absolutePath": "/Users/yoonjae/WebstormProjects/zos/packages/lib/contracts/mocks/GetFunctionMocks.sol",
"exportedSymbols": {
"GetFunctionBase": [
1491
],
"GetFunctionChild": [
1505
],
"GetFunctionGrandchild": [
1525
],
"GetFunctionOtherChild": [
1520
],
"GetFunctionOtherGrandchild": [
1530
]
},
"id": 1531,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1441,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:9"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1491,
"linearizedBaseContracts": [
1491
],
"name": "GetFunctionBase",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 1443,
"name": "x",
"nodeType": "VariableDeclaration",
"scope": 1491,
"src": "55:9:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1442,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "55:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 1452,
"nodeType": "Block",
"src": "110:17:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1450,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1448,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1443,
"src": "116:1:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 1449,
"name": "_x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1445,
"src": "120:2:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "116:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 1451,
"nodeType": "ExpressionStatement",
"src": "116:6:9"
}
]
},
"documentation": null,
"id": 1453,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "initialize",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1446,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1445,
"name": "_x",
"nodeType": "VariableDeclaration",
"scope": 1453,
"src": "91:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1444,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "91:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "90:12:9"
},
"payable": false,
"returnParameters": {
"id": 1447,
"nodeType": "ParameterList",
"parameters": [],
"src": "110:0:9"
},
"scope": 1491,
"src": "71:56:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1465,
"nodeType": "Block",
"src": "169:31:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1463,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1458,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1443,
"src": "175:1:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1460,
"name": "_x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1455,
"src": "185:2:9",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
],
"id": 1459,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "179:5:9",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_bytes_storage_ptr_$",
"typeString": "type(bytes storage pointer)"
},
"typeName": "bytes"
},
"id": 1461,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "179:9:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory",
"typeString": "bytes memory"
}
},
"id": 1462,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "length",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "179:16:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "175:20:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 1464,
"nodeType": "ExpressionStatement",
"src": "175:20:9"
}
]
},
"documentation": null,
"id": 1466,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "initialize",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1456,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1455,
"name": "_x",
"nodeType": "VariableDeclaration",
"scope": 1466,
"src": "151:9:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 1454,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "151:6:9",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "150:11:9"
},
"payable": false,
"returnParameters": {
"id": 1457,
"nodeType": "ParameterList",
"parameters": [],
"src": "169:0:9"
},
"scope": 1491,
"src": "131:69:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1479,
"nodeType": "Block",
"src": "255:22:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1477,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1473,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1443,
"src": "261:1:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 1476,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1474,
"name": "_x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1468,
"src": "265:2:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "+",
"rightExpression": {
"argumentTypes": null,
"id": 1475,
"name": "_y",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1470,
"src": "270:2:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "265:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "261:11:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 1478,
"nodeType": "ExpressionStatement",
"src": "261:11:9"
}
]
},
"documentation": null,
"id": 1480,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "initialize",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1471,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1468,
"name": "_x",
"nodeType": "VariableDeclaration",
"scope": 1480,
"src": "224:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1467,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "224:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1470,
"name": "_y",
"nodeType": "VariableDeclaration",
"scope": 1480,
"src": "236:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1469,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "236:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "223:24:9"
},
"payable": false,
"returnParameters": {
"id": 1472,
"nodeType": "ParameterList",
"parameters": [],
"src": "255:0:9"
},
"scope": 1491,
"src": "204:73:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1489,
"nodeType": "Block",
"src": "317:17:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1487,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1485,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1443,
"src": "323:1:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 1486,
"name": "_x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1482,
"src": "327:2:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "323:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 1488,
"nodeType": "ExpressionStatement",
"src": "323:6:9"
}
]
},
"documentation": null,
"id": 1490,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "another",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1483,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1482,
"name": "_x",
"nodeType": "VariableDeclaration",
"scope": 1490,
"src": "298:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1481,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "298:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "297:12:9"
},
"payable": false,
"returnParameters": {
"id": 1484,
"nodeType": "ParameterList",
"parameters": [],
"src": "317:0:9"
},
"scope": 1491,
"src": "281:53:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 1531,
"src": "26:310:9"
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1492,
"name": "GetFunctionBase",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1491,
"src": "367:15:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_GetFunctionBase_$1491",
"typeString": "contract GetFunctionBase"
}
},
"id": 1493,
"nodeType": "InheritanceSpecifier",
"src": "367:15:9"
}
],
"contractDependencies": [
1491
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1505,
"linearizedBaseContracts": [
1505,
1491
],
"name": "GetFunctionChild",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 1503,
"nodeType": "Block",
"src": "424:24:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1501,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1498,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1443,
"src": "430:1:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 1499,
"name": "_x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1495,
"src": "434:2:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
"id": 1500,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "length",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "434:9:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "430:13:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 1502,
"nodeType": "ExpressionStatement",
"src": "430:13:9"
}
]
},
"documentation": null,
"id": 1504,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "initialize",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1496,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1495,
"name": "_x",
"nodeType": "VariableDeclaration",
"scope": 1504,
"src": "407:8:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1494,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "407:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "406:10:9"
},
"payable": false,
"returnParameters": {
"id": 1497,
"nodeType": "ParameterList",
"parameters": [],
"src": "424:0:9"
},
"scope": 1505,
"src": "387:61:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 1531,
"src": "338:112:9"
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1506,
"name": "GetFunctionBase",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1491,
"src": "486:15:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_GetFunctionBase_$1491",
"typeString": "contract GetFunctionBase"
}
},
"id": 1507,
"nodeType": "InheritanceSpecifier",
"src": "486:15:9"
}
],
"contractDependencies": [
1491
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1520,
"linearizedBaseContracts": [
1520,
1491
],
"name": "GetFunctionOtherChild",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 1518,
"nodeType": "Block",
"src": "545:26:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1516,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1512,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1443,
"src": "551:1:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1514,
"name": "_x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1509,
"src": "563:2:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 1513,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "555:7:9",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_uint256_$",
"typeString": "type(uint256)"
},
"typeName": "uint256"
},
"id": 1515,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "555:11:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "551:15:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 1517,
"nodeType": "ExpressionStatement",
"src": "551:15:9"
}
]
},
"documentation": null,
"id": 1519,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "initialize",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1510,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1509,
"name": "_x",
"nodeType": "VariableDeclaration",
"scope": 1519,
"src": "526:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1508,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "526:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "525:12:9"
},
"payable": false,
"returnParameters": {
"id": 1511,
"nodeType": "ParameterList",
"parameters": [],
"src": "545:0:9"
},
"scope": 1520,
"src": "506:65:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 1531,
"src": "452:121:9"
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1521,
"name": "GetFunctionChild",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1505,
"src": "609:16:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_GetFunctionChild_$1505",
"typeString": "contract GetFunctionChild"
}
},
"id": 1522,
"nodeType": "InheritanceSpecifier",
"src": "609:16:9"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1523,
"name": "GetFunctionOtherChild",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1520,
"src": "627:21:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_GetFunctionOtherChild_$1520",
"typeString": "contract GetFunctionOtherChild"
}
},
"id": 1524,
"nodeType": "InheritanceSpecifier",
"src": "627:21:9"
}
],
"contractDependencies": [
1491,
1505,
1520
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1525,
"linearizedBaseContracts": [
1525,
1520,
1505,
1491
],
"name": "GetFunctionGrandchild",
"nodeType": "ContractDefinition",
"nodes": [],
"scope": 1531,
"src": "575:77:9"
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1526,
"name": "GetFunctionOtherChild",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1520,
"src": "693:21:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_GetFunctionOtherChild_$1520",
"typeString": "contract GetFunctionOtherChild"
}
},
"id": 1527,
"nodeType": "InheritanceSpecifier",
"src": "693:21:9"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1528,
"name": "GetFunctionChild",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1505,
"src": "716:16:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_GetFunctionChild_$1505",
"typeString": "contract GetFunctionChild"
}
},
"id": 1529,
"nodeType": "InheritanceSpecifier",
"src": "716:16:9"
}
],
"contractDependencies": [
1491,
1505,
1520
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1530,
"linearizedBaseContracts": [
1530,
1505,
1520,
1491
],
"name": "GetFunctionOtherGrandchild",
"nodeType": "ContractDefinition",
"nodes": [],
"scope": 1531,
"src": "654:82:9"
}
],
"src": "0:736:9"
},
"legacyAST": {
"absolutePath": "/Users/yoonjae/WebstormProjects/zos/packages/lib/contracts/mocks/GetFunctionMocks.sol",
"exportedSymbols": {
"GetFunctionBase": [
1491
],
"GetFunctionChild": [
1505
],
"GetFunctionGrandchild": [
1525
],
"GetFunctionOtherChild": [
1520
],
"GetFunctionOtherGrandchild": [
1530
]
},
"id": 1531,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1441,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:9"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1491,
"linearizedBaseContracts": [
1491
],
"name": "GetFunctionBase",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 1443,
"name": "x",
"nodeType": "VariableDeclaration",
"scope": 1491,
"src": "55:9:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1442,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "55:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 1452,
"nodeType": "Block",
"src": "110:17:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1450,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1448,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1443,
"src": "116:1:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 1449,
"name": "_x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1445,
"src": "120:2:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "116:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 1451,
"nodeType": "ExpressionStatement",
"src": "116:6:9"
}
]
},
"documentation": null,
"id": 1453,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "initialize",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1446,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1445,
"name": "_x",
"nodeType": "VariableDeclaration",
"scope": 1453,
"src": "91:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1444,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "91:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "90:12:9"
},
"payable": false,
"returnParameters": {
"id": 1447,
"nodeType": "ParameterList",
"parameters": [],
"src": "110:0:9"
},
"scope": 1491,
"src": "71:56:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1465,
"nodeType": "Block",
"src": "169:31:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1463,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1458,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1443,
"src": "175:1:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"expression": {
"argumentTypes"