@alice-network/zos-lib
Version:
JavaScript library for the ZeppelinOS smart contract platform
1,416 lines • 93.5 kB
JSON
{
"contractName": "Implementation1",
"abi": [
{
"constant": false,
"inputs": [],
"name": "initialize",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_number",
"type": "uint256"
}
],
"name": "setValue",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50610211806100206000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806355241077146100515780638129fc1c1461007e575b600080fd5b34801561005d57600080fd5b5061007c60048036038101908080359060200190929190505050610095565b005b34801561008a57600080fd5b5061009361009f565b005b8060338190555050565b60008060019054906101000a900460ff16806100bf57506100be6101d4565b5b806100d657506000809054906101000a900460ff16155b1515610170576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001807f436f6e747261637420696e7374616e63652068617320616c726561647920626581526020017f656e20696e697469616c697a656400000000000000000000000000000000000081525060400191505060405180910390fd5b600060019054906101000a900460ff1690506001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff02191690831515021790555080600060016101000a81548160ff02191690831515021790555050565b600080303b905060008114915050905600a165627a7a72305820a6a8860940d124efa248d1b4f8394d8c0d28885c71627c4c9f8170021b209d9c0029",
"deployedBytecode": "0x60806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806355241077146100515780638129fc1c1461007e575b600080fd5b34801561005d57600080fd5b5061007c60048036038101908080359060200190929190505050610095565b005b34801561008a57600080fd5b5061009361009f565b005b8060338190555050565b60008060019054906101000a900460ff16806100bf57506100be6101d4565b5b806100d657506000809054906101000a900460ff16155b1515610170576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001807f436f6e747261637420696e7374616e63652068617320616c726561647920626581526020017f656e20696e697469616c697a656400000000000000000000000000000000000081525060400191505060405180910390fd5b600060019054906101000a900460ff1690506001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff02191690831515021790555080600060016101000a81548160ff02191690831515021790555050565b600080303b905060008114915050905600a165627a7a72305820a6a8860940d124efa248d1b4f8394d8c0d28885c71627c4c9f8170021b209d9c0029",
"sourceMap": "58:178:14:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58:178:14;;;;;;;",
"deployedSourceMap": "58:178:14:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;169:65;;8:9:-1;5:2;;;30:1;27;20:12;5:2;169:65:14;;;;;;;;;;;;;;;;;;;;;;;;;;119:46;;8:9:-1;5:2;;;30:1;27;20:12;5:2;119:46:14;;;;;;169:65;222:7;214:5;:15;;;;169:65;:::o;119:46::-;1129:20:0;1024:12;;;;;;;;;;;:31;;;;1040:15;:13;:15::i;:::-;1024:31;:47;;;;1060:11;;;;;;;;;;;1059:12;1024:47;1016:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1152:12;;;;;;;;;;;1129:35;;1185:4;1170:12;;:19;;;;;;;;;;;;;;;;;;1209:4;1195:11;;:18;;;;;;;;;;;;;;;;;;1243:15;1228:12;;:30;;;;;;;;;;;;;;;;;;119:46:14;:::o;1349:467:0:-;1396:4;1737:10;1782:7;1770:20;1764:26;;1810:1;1804:2;:7;1797:14;;1349:467;;:::o",
"source": "pragma solidity ^0.4.24;\n\nimport \"../Initializable.sol\";\n\ncontract Implementation1 is Initializable {\n uint value;\n\n function initialize() initializer public {\n }\n\n function setValue(uint _number) public {\n value = _number;\n }\n}\n\ncontract Implementation2 is Initializable {\n uint value;\n\n function initialize() initializer public {\n }\n\n function setValue(uint _number) public {\n value = _number;\n }\n\n function getValue() public view returns (uint) {\n return value;\n }\n}\n\ncontract Implementation3 is Initializable {\n uint value;\n\n function initialize() initializer public {\n }\n\n function setValue(uint _number) public {\n value = _number;\n }\n\n function getValue(uint _number) public view returns (uint) {\n return value + _number;\n }\n}\n\ncontract Implementation4 is Initializable {\n uint value;\n\n function initialize() initializer public {\n }\n\n function setValue(uint _number) public {\n value = _number;\n }\n\n function getValue() public view returns (uint) {\n return value;\n }\n\n function() public {\n value = 1;\n }\n}\n",
"sourcePath": "/Users/yoonjae/WebstormProjects/zos/packages/lib/contracts/mocks/RegressionImplementation.sol",
"ast": {
"absolutePath": "/Users/yoonjae/WebstormProjects/zos/packages/lib/contracts/mocks/RegressionImplementation.sol",
"exportedSymbols": {
"Implementation1": [
1916
],
"Implementation2": [
1945
],
"Implementation3": [
1978
],
"Implementation4": [
2015
]
},
"id": 2016,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1894,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:14"
},
{
"absolutePath": "/Users/yoonjae/WebstormProjects/zos/packages/lib/contracts/Initializable.sol",
"file": "../Initializable.sol",
"id": 1895,
"nodeType": "ImportDirective",
"scope": 2016,
"sourceUnit": 56,
"src": "26:30:14",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1896,
"name": "Initializable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 55,
"src": "86:13:14",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Initializable_$55",
"typeString": "contract Initializable"
}
},
"id": 1897,
"nodeType": "InheritanceSpecifier",
"src": "86:13:14"
}
],
"contractDependencies": [
55
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1916,
"linearizedBaseContracts": [
1916,
55
],
"name": "Implementation1",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 1899,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 1916,
"src": "104:10:14",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1898,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "104:4:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 1904,
"nodeType": "Block",
"src": "160:5:14",
"statements": []
},
"documentation": null,
"id": 1905,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 1902,
"modifierName": {
"argumentTypes": null,
"id": 1901,
"name": "initializer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 36,
"src": "141:11:14",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "141:11:14"
}
],
"name": "initialize",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1900,
"nodeType": "ParameterList",
"parameters": [],
"src": "138:2:14"
},
"payable": false,
"returnParameters": {
"id": 1903,
"nodeType": "ParameterList",
"parameters": [],
"src": "160:0:14"
},
"scope": 1916,
"src": "119:46:14",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1914,
"nodeType": "Block",
"src": "208:26:14",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1912,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1910,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1899,
"src": "214:5:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 1911,
"name": "_number",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1907,
"src": "222:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "214:15:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 1913,
"nodeType": "ExpressionStatement",
"src": "214:15:14"
}
]
},
"documentation": null,
"id": 1915,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setValue",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1908,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1907,
"name": "_number",
"nodeType": "VariableDeclaration",
"scope": 1915,
"src": "187:12:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1906,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "187:4:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "186:14:14"
},
"payable": false,
"returnParameters": {
"id": 1909,
"nodeType": "ParameterList",
"parameters": [],
"src": "208:0:14"
},
"scope": 1916,
"src": "169:65:14",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 2016,
"src": "58:178:14"
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1917,
"name": "Initializable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 55,
"src": "266:13:14",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Initializable_$55",
"typeString": "contract Initializable"
}
},
"id": 1918,
"nodeType": "InheritanceSpecifier",
"src": "266:13:14"
}
],
"contractDependencies": [
55
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1945,
"linearizedBaseContracts": [
1945,
55
],
"name": "Implementation2",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 1920,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 1945,
"src": "284:10:14",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1919,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "284:4:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 1925,
"nodeType": "Block",
"src": "340:5:14",
"statements": []
},
"documentation": null,
"id": 1926,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 1923,
"modifierName": {
"argumentTypes": null,
"id": 1922,
"name": "initializer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 36,
"src": "321:11:14",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "321:11:14"
}
],
"name": "initialize",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1921,
"nodeType": "ParameterList",
"parameters": [],
"src": "318:2:14"
},
"payable": false,
"returnParameters": {
"id": 1924,
"nodeType": "ParameterList",
"parameters": [],
"src": "340:0:14"
},
"scope": 1945,
"src": "299:46:14",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1935,
"nodeType": "Block",
"src": "388:26:14",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1933,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1931,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1920,
"src": "394:5:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 1932,
"name": "_number",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1928,
"src": "402:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "394:15:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 1934,
"nodeType": "ExpressionStatement",
"src": "394:15:14"
}
]
},
"documentation": null,
"id": 1936,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setValue",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1929,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1928,
"name": "_number",
"nodeType": "VariableDeclaration",
"scope": 1936,
"src": "367:12:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1927,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "367:4:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "366:14:14"
},
"payable": false,
"returnParameters": {
"id": 1930,
"nodeType": "ParameterList",
"parameters": [],
"src": "388:0:14"
},
"scope": 1945,
"src": "349:65:14",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1943,
"nodeType": "Block",
"src": "465:23:14",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1941,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1920,
"src": "478:5:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"functionReturnParameters": 1940,
"id": 1942,
"nodeType": "Return",
"src": "471:12:14"
}
]
},
"documentation": null,
"id": 1944,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getValue",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1937,
"nodeType": "ParameterList",
"parameters": [],
"src": "435:2:14"
},
"payable": false,
"returnParameters": {
"id": 1940,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1939,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1944,
"src": "459:4:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1938,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "459:4:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "458:6:14"
},
"scope": 1945,
"src": "418:70:14",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 2016,
"src": "238:252:14"
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1946,
"name": "Initializable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 55,
"src": "520:13:14",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Initializable_$55",
"typeString": "contract Initializable"
}
},
"id": 1947,
"nodeType": "InheritanceSpecifier",
"src": "520:13:14"
}
],
"contractDependencies": [
55
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1978,
"linearizedBaseContracts": [
1978,
55
],
"name": "Implementation3",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 1949,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 1978,
"src": "538:10:14",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1948,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "538:4:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 1954,
"nodeType": "Block",
"src": "594:5:14",
"statements": []
},
"documentation": null,
"id": 1955,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 1952,
"modifierName": {
"argumentTypes": null,
"id": 1951,
"name": "initializer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 36,
"src": "575:11:14",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "575:11:14"
}
],
"name": "initialize",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1950,
"nodeType": "ParameterList",
"parameters": [],
"src": "572:2:14"
},
"payable": false,
"returnParameters": {
"id": 1953,
"nodeType": "ParameterList",
"parameters": [],
"src": "594:0:14"
},
"scope": 1978,
"src": "553:46:14",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1964,
"nodeType": "Block",
"src": "642:26:14",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1962,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1960,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1949,
"src": "648:5:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 1961,
"name": "_number",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1957,
"src": "656:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "648:15:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 1963,
"nodeType": "ExpressionStatement",
"src": "648:15:14"
}
]
},
"documentation": null,
"id": 1965,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setValue",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1958,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1957,
"name": "_number",
"nodeType": "VariableDeclaration",
"scope": 1965,
"src": "621:12:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1956,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "621:4:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "620:14:14"
},
"payable": false,
"returnParameters": {
"id": 1959,
"nodeType": "ParameterList",
"parameters": [],
"src": "642:0:14"
},
"scope": 1978,
"src": "603:65:14",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1976,
"nodeType": "Block",
"src": "731:33:14",
"statements": [
{
"expression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 1974,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1972,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1949,
"src": "744:5:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "+",
"rightExpression": {
"argumentTypes": null,
"id": 1973,
"name": "_number",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1967,
"src": "752:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "744:15:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"functionReturnParameters": 1971,
"id": 1975,
"nodeType": "Return",
"src": "737:22:14"
}
]
},
"documentation": null,
"id": 1977,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getValue",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1968,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1967,
"name": "_number",
"nodeType": "VariableDeclaration",
"scope": 1977,
"src": "690:12:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1966,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "690:4:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "689:14:14"
},
"payable": false,
"returnParameters": {
"id": 1971,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1970,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1977,
"src": "725:4:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1969,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "725:4:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "724:6:14"
},
"scope": 1978,
"src": "672:92:14",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 2016,
"src": "492:274:14"
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1979,
"name": "Initializable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 55,
"src": "796:13:14",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Initializable_$55",
"typeString": "contract Initializable"
}
},
"id": 1980,
"nodeType": "InheritanceSpecifier",
"src": "796:13:14"
}
],
"contractDependencies": [
55
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 2015,
"linearizedBaseContracts": [
2015,
55
],
"name": "Implementation4",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 1982,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2015,
"src": "814:10:14",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1981,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "814:4:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 1987,
"nodeType": "Block",
"src": "870:5:14",
"statements": []
},
"documentation": null,
"id": 1988,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 1985,
"modifierName": {
"argumentTypes": null,
"id": 1984,
"name": "initializer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 36,
"src": "851:11:14",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "851:11:14"
}
],
"name": "initialize",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1983,
"nodeType": "ParameterList",
"parameters": [],
"src": "848:2:14"
},
"payable": false,
"returnParameters": {
"id": 1986,
"nodeType": "ParameterList",
"parameters": [],
"src": "870:0:14"
},
"scope": 2015,
"src": "829:46:14",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1997,
"nodeType": "Block",
"src": "918:26:14",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1995,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1993,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1982,
"src": "924:5:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 1994,
"name": "_number",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1990,
"src": "932:7:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "924:15:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 1996,
"nodeType": "ExpressionStatement",
"src": "924:15:14"
}
]
},
"documentation": null,
"id": 1998,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setValue",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1991,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1990,
"name": "_number",
"nodeType": "VariableDeclaration",
"scope": 1998,
"src": "897:12:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1989,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "897:4:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "896:14:14"
},
"payable": false,
"returnParameters": {
"id": 1992,
"nodeType": "ParameterList",
"parameters": [],
"src": "918:0:14"
},
"scope": 2015,
"src": "879:65:14",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 2005,
"nodeType": "Block",
"src": "995:23:14",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 2003,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1982,
"src": "1008:5:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"functionReturnParameters": 2002,
"id": 2004,
"nodeType": "Return",
"src": "1001:12:14"
}
]
},
"documentation": null,
"id": 2006,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getValue",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1999,
"nodeType": "ParameterList",
"parameters": [],
"src": "965:2:14"
},
"payable": false,
"returnParameters": {
"id": 2002,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2001,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2006,
"src": "989:4:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2000,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "989:4:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "988:6:14"
},
"scope": 2015,
"src": "948:70:14",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 2013,
"nodeType": "Block",
"src": "1040:20:14",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 2011,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 2009,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1982,
"src": "1046:5:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "31",
"id": 2010,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1054:1:14",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
},
"src": "1046:9:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 2012,
"nodeType": "ExpressionStatement",
"src": "1046:9:14"
}
]
},
"documentation": null,
"id": 2014,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2007,
"nodeType": "ParameterList",
"parameters": [],
"src": "1030:2:14"
},
"payable": false,
"returnParameters": {
"id": 2008,
"nodeType": "ParameterList",
"parameters": [],
"src": "1040:0:14"
},
"scope": 2015,
"src": "1022:38:14",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 2016,
"src": "768:294:14"
}
],
"src": "0:1063:14"
},
"legacyAST": {
"absolutePath": "/Users/yoonjae/WebstormProjects/zos/packages/lib/contracts/mocks/RegressionImplementation.sol",
"exportedSymbols": {
"Implementation1": [
1916
],
"Implementation2": [
1945
],
"Implementation3": [
1978
],
"Implementation4": [
2015
]
},
"id": 2016,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1894,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:14"
},
{
"absolutePath": "/Users/yoonjae/WebstormProjects/zos/packages/lib/contracts/Initializable.sol",
"file": "../Initializable.sol",
"id": 1895,
"nodeType": "ImportDirective",
"scope": 2016,
"sourceUnit": 56,
"src": "26:30:14",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseCon