@openzeppelin/upgrades
Version:
JavaScript library for the OpenZeppelin smart contract platform
190 lines (189 loc) • 6.48 kB
JSON
{
"fileName": "DependencyInvalid.sol",
"contractName": "DependencyWithConstructor",
"source": "pragma solidity ^0.5.0;\n\ncontract DependencyWithConstructor {\n uint256 public dependencyValue;\n constructor() public {\n dependencyValue = 42;\n }\n}",
"sourcePath": "mock-dependency/contracts/DependencyInvalid.sol",
"sourceMap": "25:127:44:-;;;98:52;8:9:-1;5:2;;;30:1;27;20:12;5:2;98:52:44;143:2;125:15;:20;;;;25:127;;;;;;",
"deployedSourceMap": "25:127:44:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:127:44;;;;;;;;;;;;;;;;;;;64:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;:::o",
"abi": [
{
"constant": true,
"inputs": [],
"name": "dependencyValue",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
}
],
"ast": {
"absolutePath": "mock-dependency/contracts/DependencyInvalid.sol",
"exportedSymbols": {
"DependencyWithConstructor": [
6402
]
},
"id": 6403,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 6391,
"literals": [
"solidity",
"^",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:44"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6402,
"linearizedBaseContracts": [
6402
],
"name": "DependencyWithConstructor",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 6393,
"name": "dependencyValue",
"nodeType": "VariableDeclaration",
"scope": 6402,
"src": "64:30:44",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6392,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "64:7:44",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 6400,
"nodeType": "Block",
"src": "119:31:44",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6398,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6396,
"name": "dependencyValue",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6393,
"src": "125:15:44",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "3432",
"id": 6397,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "143:2:44",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_42_by_1",
"typeString": "int_const 42"
},
"value": "42"
},
"src": "125:20:44",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6399,
"nodeType": "ExpressionStatement",
"src": "125:20:44"
}
]
},
"documentation": null,
"id": 6401,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6394,
"nodeType": "ParameterList",
"parameters": [],
"src": "109:2:44"
},
"returnParameters": {
"id": 6395,
"nodeType": "ParameterList",
"parameters": [],
"src": "119:0:44"
},
"scope": 6402,
"src": "98:52:44",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 6403,
"src": "25:127:44"
}
],
"src": "0:152:44"
},
"bytecode": "0x6080604052348015600f57600080fd5b50602a600081905550607b806100266000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806303b8bb6f14602d575b600080fd5b60336049565b6040518082815260200191505060405180910390f35b6000548156fea165627a7a72305820035e15c9458829ee3dd488117d083808c2fb2272fc1725133c9ab8d2f685c20f0029",
"deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c806303b8bb6f14602d575b600080fd5b60336049565b6040518082815260200191505060405180910390f35b6000548156fea165627a7a72305820035e15c9458829ee3dd488117d083808c2fb2272fc1725133c9ab8d2f685c20f0029",
"compiler": {
"name": "solc",
"version": "0.5.3+commit.10d17f24.Emscripten.clang",
"optimizer": {},
"evmVersion": "constantinople"
}
}