@daostack/upgrades
Version:
Proxy upgadable contracts based on openzeppelin-sdk
194 lines (193 loc) • 6.73 kB
JSON
{
"fileName": "DependencyInvalid.sol",
"contractName": "DependencyWithConstructor",
"source": "pragma solidity ^0.6.0;\n// SPDX-License-Identifier: MIT\n\ncontract DependencyWithConstructor {\n uint256 public dependencyValue;\n constructor() public {\n dependencyValue = 42;\n }\n}\n",
"sourcePath": "mock-dependency/contracts/DependencyInvalid.sol",
"sourceMap": "57:127:44:-:0;;;130:52;;;;;;;;;;;175:2;157:15;;:20;;;;;;;130:52;57:127;;;;;;;;;",
"deployedSourceMap": "57:127:44:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;96:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;:::o",
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "dependencyValue",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"ast": {
"absolutePath": "mock-dependency/contracts/DependencyInvalid.sol",
"exportedSymbols": {
"DependencyWithConstructor": [
6787
]
},
"id": 6788,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 6776,
"literals": [
"solidity",
"^",
"0.6",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:44"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6787,
"linearizedBaseContracts": [
6787
],
"name": "DependencyWithConstructor",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"functionSelector": "03b8bb6f",
"id": 6778,
"mutability": "mutable",
"name": "dependencyValue",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6787,
"src": "96:30:44",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6777,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "96:7:44",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 6785,
"nodeType": "Block",
"src": "151:31:44",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6783,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6781,
"name": "dependencyValue",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6778,
"src": "157:15:44",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "3432",
"id": 6782,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "175:2:44",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_42_by_1",
"typeString": "int_const 42"
},
"value": "42"
},
"src": "157:20:44",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6784,
"nodeType": "ExpressionStatement",
"src": "157:20:44"
}
]
},
"documentation": null,
"id": 6786,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6779,
"nodeType": "ParameterList",
"parameters": [],
"src": "141:2:44"
},
"returnParameters": {
"id": 6780,
"nodeType": "ParameterList",
"parameters": [],
"src": "151:0:44"
},
"scope": 6787,
"src": "130:52:44",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
}
],
"scope": 6788,
"src": "57:127:44"
}
],
"src": "0:185:44"
},
"bytecode": "0x60806040523480156100115760006000fd5b505b602a60006000508190909055505b610026565b608d806100346000396000f3fe608060405234801560105760006000fd5b5060043610602c5760003560e01c806303b8bb6f14603257602c565b60006000fd5b6038604e565b6040518082815260200191505060405180910390f35b6000600050548156fea264697066735822122074e7ab9c6ac1fad03d8da224439f05f9569a753f47a493229b86c616a6027cc864736f6c634300060a0033",
"deployedBytecode": "0x608060405234801560105760006000fd5b5060043610602c5760003560e01c806303b8bb6f14603257602c565b60006000fd5b6038604e565b6040518082815260200191505060405180910390f35b6000600050548156fea264697066735822122074e7ab9c6ac1fad03d8da224439f05f9569a753f47a493229b86c616a6027cc864736f6c634300060a0033",
"compiler": {
"name": "solc",
"version": "0.6.10+commit.00c0fcaf.Emscripten.clang",
"optimizer": {},
"evmVersion": "constantinople"
}
}