@aragon/apps-payroll
Version:
_**Code in Github:**_ [aragon-apps/apps/payroll](https://github.com/aragon/aragon-apps/tree/master/future-apps/payroll)
524 lines • 16.1 kB
JSON
{
"contractName": "ERCProxy",
"abi": [
{
"constant": true,
"inputs": [],
"name": "proxyType",
"outputs": [
{
"name": "proxyTypeId",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "implementation",
"outputs": [
{
"name": "codeAddr",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "/*\n * SPDX-License-Identitifer: MIT\n */\n\npragma solidity ^0.4.24;\n\n\ncontract ERCProxy {\n uint256 internal constant FORWARDING = 1;\n uint256 internal constant UPGRADEABLE = 2;\n\n function proxyType() public pure returns (uint256 proxyTypeId);\n function implementation() public view returns (address codeAddr);\n}\n",
"sourcePath": "@aragon/os/contracts/lib/misc/ERCProxy.sol",
"ast": {
"absolutePath": "@aragon/os/contracts/lib/misc/ERCProxy.sol",
"exportedSymbols": {
"ERCProxy": [
14225
]
},
"id": 14226,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 14208,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "44:24:61"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
"id": 14225,
"linearizedBaseContracts": [
14225
],
"name": "ERCProxy",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 14211,
"name": "FORWARDING",
"nodeType": "VariableDeclaration",
"scope": 14225,
"src": "95:40:61",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 14209,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "95:7:61",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"argumentTypes": null,
"hexValue": "31",
"id": 14210,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "134:1:61",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
},
"visibility": "internal"
},
{
"constant": true,
"id": 14214,
"name": "UPGRADEABLE",
"nodeType": "VariableDeclaration",
"scope": 14225,
"src": "141:41:61",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 14212,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "141:7:61",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"argumentTypes": null,
"hexValue": "32",
"id": 14213,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "181:1:61",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_2_by_1",
"typeString": "int_const 2"
},
"value": "2"
},
"visibility": "internal"
},
{
"body": null,
"documentation": null,
"id": 14219,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "proxyType",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 14215,
"nodeType": "ParameterList",
"parameters": [],
"src": "207:2:61"
},
"payable": false,
"returnParameters": {
"id": 14218,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 14217,
"name": "proxyTypeId",
"nodeType": "VariableDeclaration",
"scope": 14219,
"src": "231:19:61",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 14216,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "231:7:61",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "230:21:61"
},
"scope": 14225,
"src": "189:63:61",
"stateMutability": "pure",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 14224,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "implementation",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 14220,
"nodeType": "ParameterList",
"parameters": [],
"src": "280:2:61"
},
"payable": false,
"returnParameters": {
"id": 14223,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 14222,
"name": "codeAddr",
"nodeType": "VariableDeclaration",
"scope": 14224,
"src": "304:16:61",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 14221,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "304:7:61",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "303:18:61"
},
"scope": 14225,
"src": "257:65:61",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 14226,
"src": "71:253:61"
}
],
"src": "44:281:61"
},
"legacyAST": {
"absolutePath": "@aragon/os/contracts/lib/misc/ERCProxy.sol",
"exportedSymbols": {
"ERCProxy": [
14225
]
},
"id": 14226,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 14208,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "44:24:61"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
"id": 14225,
"linearizedBaseContracts": [
14225
],
"name": "ERCProxy",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 14211,
"name": "FORWARDING",
"nodeType": "VariableDeclaration",
"scope": 14225,
"src": "95:40:61",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 14209,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "95:7:61",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"argumentTypes": null,
"hexValue": "31",
"id": 14210,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "134:1:61",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
},
"visibility": "internal"
},
{
"constant": true,
"id": 14214,
"name": "UPGRADEABLE",
"nodeType": "VariableDeclaration",
"scope": 14225,
"src": "141:41:61",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 14212,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "141:7:61",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"argumentTypes": null,
"hexValue": "32",
"id": 14213,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "181:1:61",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_2_by_1",
"typeString": "int_const 2"
},
"value": "2"
},
"visibility": "internal"
},
{
"body": null,
"documentation": null,
"id": 14219,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "proxyType",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 14215,
"nodeType": "ParameterList",
"parameters": [],
"src": "207:2:61"
},
"payable": false,
"returnParameters": {
"id": 14218,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 14217,
"name": "proxyTypeId",
"nodeType": "VariableDeclaration",
"scope": 14219,
"src": "231:19:61",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 14216,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "231:7:61",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "230:21:61"
},
"scope": 14225,
"src": "189:63:61",
"stateMutability": "pure",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 14224,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "implementation",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 14220,
"nodeType": "ParameterList",
"parameters": [],
"src": "280:2:61"
},
"payable": false,
"returnParameters": {
"id": 14223,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 14222,
"name": "codeAddr",
"nodeType": "VariableDeclaration",
"scope": 14224,
"src": "304:16:61",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 14221,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "304:7:61",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "303:18:61"
},
"scope": 14225,
"src": "257:65:61",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 14226,
"src": "71:253:61"
}
],
"src": "44:281:61"
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.1",
"updatedAt": "2019-09-04T11:02:55.783Z"
}