UNPKG

@aragon/apps-payroll

Version:

_**Code in Github:**_ [aragon-apps/apps/payroll](https://github.com/aragon/aragon-apps/tree/master/future-apps/payroll)

1,225 lines 72.9 kB
{ "contractName": "KernelProxy", "abi": [ { "constant": true, "inputs": [ { "name": "", "type": "bytes32" }, { "name": "", "type": "bytes32" } ], "name": "apps", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "isDepositable", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "recoveryVaultAppId", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "inputs": [ { "name": "_kernelImpl", "type": "address" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "payable": true, "stateMutability": "payable", "type": "fallback" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "sender", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" } ], "name": "ProxyDeposit", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "namespace", "type": "bytes32" }, { "indexed": true, "name": "appId", "type": "bytes32" }, { "indexed": false, "name": "app", "type": "address" } ], "name": "SetApp", "type": "event" }, { "constant": true, "inputs": [], "name": "proxyType", "outputs": [ { "name": "proxyTypeId", "type": "uint256" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [], "name": "implementation", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "bytecode": "0x608060405234801561001057600080fd5b506040516020806104de833981016040525161003481640100000000610120810204565b151561003f57600080fd5b7f3b4bf6bf3ad5000ecf0f989d5befde585c6860fea3e574a4fab4c49d1c177d9c60008190527fc67454ed56db7ff90a4bb32fc9a8de1ab3174b221e5fecea22b7503a3111791f60209081527f8e2ed18767e9c33b25344c240cdf92034fae56be99e2c07f3d9946d949ffede48054600160a060020a031916600160a060020a03851690811790915560408051918252517fc681a85306374a5ab27f0bbc385296a54bcd314a1948b6cf61c4ea1bc44bb9f8927f2ec1ae0a449b7ae354b9dacfb3ade6b6332ba26b7fcbb935835fa39dd7263b23928290030190a35061014d565b600080600160a060020a038316151561013c5760009150610147565b823b90506000811191505b50919050565b6103828061015c6000396000f30060806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634555d5c9811461012b5780634558850c1461015257806348a0c8dd146101965780635c60da1b146101bf57806386070cfe146101d4575b6127107f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea6000825a10156100e15760003411361583541616156100dc576040513381523460208201527f15eeaa57c7bd188c1388020bcadc2c436ec60d647d36ef5b9eb3c742217ddee1604082a1005b600080fd5b6100e96101e9565b9050610126816000368080601f0160208091040260200160405190810160405280939291908181526020018383808284375061026c945050505050565b505050005b34801561013757600080fd5b506101406102ad565b60408051918252519081900360200190f35b34801561015e57600080fd5b5061016d6004356024356102b2565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156101a257600080fd5b506101ab6102e2565b604080519115158252519081900360200190f35b3480156101cb57600080fd5b5061016d6101e9565b3480156101e057600080fd5b50610140610312565b7f3b4bf6bf3ad5000ecf0f989d5befde585c6860fea3e574a4fab4c49d1c177d9c6000527fc67454ed56db7ff90a4bb32fc9a8de1ab3174b221e5fecea22b7503a3111791f6020527f8e2ed18767e9c33b25344c240cdf92034fae56be99e2c07f3d9946d949ffede45473ffffffffffffffffffffffffffffffffffffffff1690565b600061027783610318565b151561028257600080fd5b612710905060008083516020850186855a03f43d604051816000823e8280156102a9578282f35b8282fd5b600290565b600060208181529281526040808220909352908152205473ffffffffffffffffffffffffffffffffffffffff1681565b600061030d7f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea610352565b905090565b60015481565b60008073ffffffffffffffffffffffffffffffffffffffff83161515610341576000915061034c565b823b90506000811191505b50919050565b54905600a165627a7a7230582005a1e02182395229234e7c1f5f8f78ac5043605628b961154e417e50f0489ea00029", "deployedBytecode": "0x60806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634555d5c9811461012b5780634558850c1461015257806348a0c8dd146101965780635c60da1b146101bf57806386070cfe146101d4575b6127107f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea6000825a10156100e15760003411361583541616156100dc576040513381523460208201527f15eeaa57c7bd188c1388020bcadc2c436ec60d647d36ef5b9eb3c742217ddee1604082a1005b600080fd5b6100e96101e9565b9050610126816000368080601f0160208091040260200160405190810160405280939291908181526020018383808284375061026c945050505050565b505050005b34801561013757600080fd5b506101406102ad565b60408051918252519081900360200190f35b34801561015e57600080fd5b5061016d6004356024356102b2565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156101a257600080fd5b506101ab6102e2565b604080519115158252519081900360200190f35b3480156101cb57600080fd5b5061016d6101e9565b3480156101e057600080fd5b50610140610312565b7f3b4bf6bf3ad5000ecf0f989d5befde585c6860fea3e574a4fab4c49d1c177d9c6000527fc67454ed56db7ff90a4bb32fc9a8de1ab3174b221e5fecea22b7503a3111791f6020527f8e2ed18767e9c33b25344c240cdf92034fae56be99e2c07f3d9946d949ffede45473ffffffffffffffffffffffffffffffffffffffff1690565b600061027783610318565b151561028257600080fd5b612710905060008083516020850186855a03f43d604051816000823e8280156102a9578282f35b8282fd5b600290565b600060208181529281526040808220909352908152205473ffffffffffffffffffffffffffffffffffffffff1681565b600061030d7f665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea610352565b905090565b60015481565b60008073ffffffffffffffffffffffffffffffffffffffff83161515610341576000915061034c565b823b90506000811191505b50919050565b54905600a165627a7a7230582005a1e02182395229234e7c1f5f8f78ac5043605628b961154e417e50f0489ea00029", "sourceMap": "197:1384:54:-;;;599:568;8:9:-1;5:2;;;30:1;27;20:12;5:2;599:568:54;;;;;;;;;;;;;657:32;599:568;657:10;;;;:32;:::i;:::-;649:41;;;;;;;;426:66:53;700:4:54;:47;;;:27;;:47;;;;:61;;-1:-1:-1;;;;;;700:61:54;-1:-1:-1;;;;;700:61:54;;;;;;;;:27;1098:62;;;;;;1115:66:53;;1098:62:54;;;;;;;;599:568;197:1384;;426:244:33;486:4;;-1:-1:-1;;;;;506:21:33;;;502:64;;;550:5;543:12;;;;502:64;629:7;617:20;609:28;;662:1;655:4;:8;648:15;;426:244;;;;;:::o;197:1384:54:-;;;;;;;", "deployedSourceMap": "197:1384:54:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;192:5:26;250:66:28;264:27:27;192:5:26;819:3:27;816:28;813:2;;;1139:1;1128:9;1125:16;1109:12;1102:20;1078:21;1072:28;1068:55;1064:78;1061:2;;;1324:4;1318:11;1389:6;1380:7;1373:23;1500:9;1493:4;1484:7;1480:18;1473:37;1742:66;1736:4;1727:7;1722:87;1831:6;1061:2;2035:1;2032;2025:12;813:2;2088:16;:14;:16::i;:::-;2071:33;;2114:30;2127:6;2135:8;;2114:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2114:12:27;;-1:-1:-1;;;;;2114:30:27:i;:::-;225:1926;;;197:1384:54;1268:98;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1268:98:54;;;;;;;;;;;;;;;;;;;;93:61:55;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;93:61:55;;;;;;;;;;;;;;;;;;;;;;;;;;323:113:28;;8:9:-1;5:2;;;30:1;27;20:12;5:2;323:113:28;;;;;;;;;;;;;;;;;;;;;;1452:127:54;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1452:127:54;;;;160:33:55;;8:9:-1;5:2;;;30:1;27;20:12;5:2;160:33:55;;;;1452:127:54;426:66:53;1499:7:54;1525:47;:27;;:47;;;;;1452:127;:::o;460:679:26:-;567:19;540:16;551:4;540:10;:16::i;:::-;532:25;;;;;;;;192:5;567:35;;735:1;732;720:9;714:16;707:4;696:9;692:20;686:4;672:11;667:3;663:21;650:87;762:14;806:4;800:11;847:4;844:1;839:3;824:28;1046:6;1053:28;;;;1116:4;1111:3;1104:17;1053:28;1074:4;1069:3;1062:17;1268:98:54;181:1:61;1268:98:54;:::o;93:61:55:-;;;;;;;;;;;;;;;;;;;;;;;;:::o;323:113:28:-;369:4;392:37;250:66;392:35;:37::i;:::-;385:44;;323:113;:::o;160:33:55:-;;;;:::o;426:244:33:-;486:4;;506:21;;;;502:64;;;550:5;543:12;;;;502:64;629:7;617:20;609:28;;662:1;655:4;:8;648:15;;426:244;;;;;:::o;105:128:39:-;210:15;;200:27::o", "source": "pragma solidity 0.4.24;\n\nimport \"./IKernel.sol\";\nimport \"./KernelConstants.sol\";\nimport \"./KernelStorage.sol\";\nimport \"../common/DepositableDelegateProxy.sol\";\nimport \"../common/IsContract.sol\";\n\n\ncontract KernelProxy is IKernelEvents, KernelStorage, KernelAppIds, KernelNamespaceConstants, IsContract, DepositableDelegateProxy {\n /**\n * @dev KernelProxy is a proxy contract to a kernel implementation. The implementation\n * can update the reference, which effectively upgrades the contract\n * @param _kernelImpl Address of the contract used as implementation for kernel\n */\n constructor(IKernel _kernelImpl) public {\n require(isContract(address(_kernelImpl)));\n apps[KERNEL_CORE_NAMESPACE][KERNEL_CORE_APP_ID] = _kernelImpl;\n\n // Note that emitting this event is important for verifying that a KernelProxy instance\n // was never upgraded to a malicious Kernel logic contract over its lifespan.\n // This starts the \"chain of trust\", that can be followed through later SetApp() events\n // emitted during kernel upgrades.\n emit SetApp(KERNEL_CORE_NAMESPACE, KERNEL_CORE_APP_ID, _kernelImpl);\n }\n\n /**\n * @dev ERC897, whether it is a forwarding (1) or an upgradeable (2) proxy\n */\n function proxyType() public pure returns (uint256 proxyTypeId) {\n return UPGRADEABLE;\n }\n\n /**\n * @dev ERC897, the address the proxy would delegate calls to\n */\n function implementation() public view returns (address) {\n return apps[KERNEL_CORE_NAMESPACE][KERNEL_CORE_APP_ID];\n }\n}\n", "sourcePath": "@aragon/os/contracts/kernel/KernelProxy.sol", "ast": { "absolutePath": "@aragon/os/contracts/kernel/KernelProxy.sol", "exportedSymbols": { "KernelProxy": [ 13182 ] }, "id": 13183, "nodeType": "SourceUnit", "nodes": [ { "id": 13116, "literals": [ "solidity", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:23:54" }, { "absolutePath": "@aragon/os/contracts/kernel/IKernel.sol", "file": "./IKernel.sol", "id": 13117, "nodeType": "ImportDirective", "scope": 13183, "sourceUnit": 12601, "src": "25:23:54", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@aragon/os/contracts/kernel/KernelConstants.sol", "file": "./KernelConstants.sol", "id": 13118, "nodeType": "ImportDirective", "scope": 13183, "sourceUnit": 13115, "src": "49:31:54", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@aragon/os/contracts/kernel/KernelStorage.sol", "file": "./KernelStorage.sol", "id": 13119, "nodeType": "ImportDirective", "scope": 13183, "sourceUnit": 13194, "src": "81:29:54", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@aragon/os/contracts/common/DepositableDelegateProxy.sol", "file": "../common/DepositableDelegateProxy.sol", "id": 13120, "nodeType": "ImportDirective", "scope": 13183, "sourceUnit": 10623, "src": "111:48:54", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@aragon/os/contracts/common/IsContract.sol", "file": "../common/IsContract.sol", "id": 13121, "nodeType": "ImportDirective", "scope": 13183, "sourceUnit": 10839, "src": "160:34:54", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 13122, "name": "IKernelEvents", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 12559, "src": "221:13:54", "typeDescriptions": { "typeIdentifier": "t_contract$_IKernelEvents_$12559", "typeString": "contract IKernelEvents" } }, "id": 13123, "nodeType": "InheritanceSpecifier", "src": "221:13:54" }, { "arguments": null, "baseName": { "contractScope": null, "id": 13124, "name": "KernelStorage", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 13193, "src": "236:13:54", "typeDescriptions": { "typeIdentifier": "t_contract$_KernelStorage_$13193", "typeString": "contract KernelStorage" } }, "id": 13125, "nodeType": "InheritanceSpecifier", "src": "236:13:54" }, { "arguments": null, "baseName": { "contractScope": null, "id": 13126, "name": "KernelAppIds", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 13104, "src": "251:12:54", "typeDescriptions": { "typeIdentifier": "t_contract$_KernelAppIds_$13104", "typeString": "contract KernelAppIds" } }, "id": 13127, "nodeType": "InheritanceSpecifier", "src": "251:12:54" }, { "arguments": null, "baseName": { "contractScope": null, "id": 13128, "name": "KernelNamespaceConstants", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 13114, "src": "265:24:54", "typeDescriptions": { "typeIdentifier": "t_contract$_KernelNamespaceConstants_$13114", "typeString": "contract KernelNamespaceConstants" } }, "id": 13129, "nodeType": "InheritanceSpecifier", "src": "265:24:54" }, { "arguments": null, "baseName": { "contractScope": null, "id": 13130, "name": "IsContract", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 10838, "src": "291:10:54", "typeDescriptions": { "typeIdentifier": "t_contract$_IsContract_$10838", "typeString": "contract IsContract" } }, "id": 13131, "nodeType": "InheritanceSpecifier", "src": "291:10:54" }, { "arguments": null, "baseName": { "contractScope": null, "id": 13132, "name": "DepositableDelegateProxy", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 10622, "src": "303:24:54", "typeDescriptions": { "typeIdentifier": "t_contract$_DepositableDelegateProxy_$10622", "typeString": "contract DepositableDelegateProxy" } }, "id": 13133, "nodeType": "InheritanceSpecifier", "src": "303:24:54" } ], "contractDependencies": [ 10583, 10622, 10654, 10838, 12559, 13104, 13114, 13193, 14225 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 13182, "linearizedBaseContracts": [ 13182, 10622, 10583, 10838, 14225, 10654, 13114, 13104, 13193, 12559 ], "name": "KernelProxy", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 13160, "nodeType": "Block", "src": "639:528:54", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 13141, "name": "_kernelImpl", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 13135, "src": "676:11:54", "typeDescriptions": { "typeIdentifier": "t_contract$_IKernel_$12600", "typeString": "contract IKernel" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_contract$_IKernel_$12600", "typeString": "contract IKernel" } ], "id": 13140, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "668:7:54", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 13142, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "668:20:54", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 13139, "name": "isContract", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 10837, "src": "657:10:54", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$", "typeString": "function (address) view returns (bool)" } }, "id": 13143, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "657:32:54", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 13138, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 15156, 15157 ], "referencedDeclaration": 15156, "src": "649:7:54", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 13144, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "649:41:54", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 13145, "nodeType": "ExpressionStatement", "src": "649:41:54" }, { "expression": { "argumentTypes": null, "id": 13152, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 13146, "name": "apps", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 13190, "src": "700:4:54", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_bytes32_$_t_address_$_$", "typeString": "mapping(bytes32 => mapping(bytes32 => address))" } }, "id": 13149, "indexExpression": { "argumentTypes": null, "id": 13147, "name": "KERNEL_CORE_NAMESPACE", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 13107, "src": "705:21:54", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "700:27:54", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$", "typeString": "mapping(bytes32 => address)" } }, "id": 13150, "indexExpression": { "argumentTypes": null, "id": 13148, "name": "KERNEL_CORE_APP_ID", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 13097, "src": "728:18:54", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "700:47:54", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 13151, "name": "_kernelImpl", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 13135, "src": "750:11:54", "typeDescriptions": { "typeIdentifier": "t_contract$_IKernel_$12600", "typeString": "contract IKernel" } }, "src": "700:61:54", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 13153, "nodeType": "ExpressionStatement", "src": "700:61:54" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 13155, "name": "KERNEL_CORE_NAMESPACE", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 13107, "src": "1105:21:54", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "argumentTypes": null, "id": 13156, "name": "KERNEL_CORE_APP_ID", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 13097, "src": "1128:18:54", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "argumentTypes": null, "id": 13157, "name": "_kernelImpl", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 13135, "src": "1148:11:54", "typeDescriptions": { "typeIdentifier": "t_contract$_IKernel_$12600", "typeString": "contract IKernel" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_contract$_IKernel_$12600", "typeString": "contract IKernel" } ], "id": 13154, "name": "SetApp", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 12558, "src": "1098:6:54", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_bytes32_$_t_bytes32_$_t_address_$returns$__$", "typeString": "function (bytes32,bytes32,address)" } }, "id": 13158, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1098:62:54", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 13159, "nodeType": "EmitStatement", "src": "1093:67:54" } ] }, "documentation": "@dev KernelProxy is a proxy contract to a kernel implementation. The implementation\n can update the reference, which effectively upgrades the contract\n@param _kernelImpl Address of the contract used as implementation for kernel", "id": 13161, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 13136, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13135, "name": "_kernelImpl", "nodeType": "VariableDeclaration", "scope": 13161, "src": "611:19:54", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_IKernel_$12600", "typeString": "contract IKernel" }, "typeName": { "contractScope": null, "id": 13134, "name": "IKernel", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 12600, "src": "611:7:54", "typeDescriptions": { "typeIdentifier": "t_contract$_IKernel_$12600", "typeString": "contract IKernel" } }, "value": null, "visibility": "internal" } ], "src": "610:21:54" }, "payable": false, "returnParameters": { "id": 13137, "nodeType": "ParameterList", "parameters": [], "src": "639:0:54" }, "scope": 13182, "src": "599:568:54", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 13168, "nodeType": "Block", "src": "1331:35:54", "statements": [ { "expression": { "argumentTypes": null, "id": 13166, "name": "UPGRADEABLE", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14214, "src": "1348:11:54", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 13165, "id": 13167, "nodeType": "Return", "src": "1341:18:54" } ] }, "documentation": "@dev ERC897, whether it is a forwarding (1) or an upgradeable (2) proxy", "id": 13169, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "proxyType", "nodeType": "FunctionDefinition", "parameters": { "id": 13162, "nodeType": "ParameterList", "parameters": [], "src": "1286:2:54" }, "payable": false, "returnParameters": { "id": 13165, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13164, "name": "proxyTypeId", "nodeType": "VariableDeclaration", "scope": 13169, "src": "1310:19:54", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 13163, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1310:7:54", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "1309:21:54" }, "scope": 13182, "src": "1268:98:54", "stateMutability": "pure", "superFunction": 14219, "visibility": "public" }, { "body": { "id": 13180, "nodeType": "Block", "src": "1508:71:54", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 13174, "name": "apps", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 13190, "src": "1525:4:54", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_bytes32_$_t_address_$_$", "typeString": "mapping(bytes32 => mapping(bytes32 => address))" } }, "id": 13176, "indexExpression": { "argumentTypes": null, "id": 13175, "name": "KERNEL_CORE_NAMESPACE", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 13107, "src": "1530:21:54", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1525:27:54", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$", "typeString": "mapping(bytes32 => address)" } }, "id": 13178, "indexExpression": { "argumentTypes": null, "id": 13177, "name": "KERNEL_CORE_APP_ID", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 13097, "src": "1553:18:54", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1525:47:54", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "functionReturnParameters": 13173, "id": 13179, "nodeType": "Return", "src": "1518:54:54" } ] }, "documentation": "@dev ERC897, the address the proxy would delegate calls to", "id": 13181, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "implementation", "nodeType": "FunctionDefinition", "parameters": { "id": 13170, "nodeType": "ParameterList", "parameters": [], "src": "1475:2:54" }, "payable": false, "returnParameters": { "id": 13173, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13172, "name": "", "nodeType": "VariableDeclaration", "scope": 13181, "src": "1499:7:54", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 13171, "name": "address", "nodeType": "ElementaryTypeName", "src": "1499:7:54", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "1498:9:54" }, "scope": 13182, "src": "1452:127:54", "stateMutability": "view", "superFunction": 14224, "visibility": "public" } ], "scope": 13183, "src": "197:1384:54" } ], "src": "0:1582:54" }, "legacyAST": { "absolutePath": "@aragon/os/contracts/kernel/KernelProxy.sol", "exportedSymbols": { "KernelProxy": [ 13182 ] }, "id": 13183, "nodeType": "SourceUnit", "nodes": [ { "id": 13116, "literals": [ "solidity", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:23:54" }, { "absolutePath": "@aragon/os/contracts/kernel/IKernel.sol", "file": "./IKernel.sol", "id": 13117, "nodeType": "ImportDirective", "scope": 13183, "sourceUnit": 12601, "src": "25:23:54", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@aragon/os/contracts/kernel/KernelConstants.sol", "file": "./KernelConstants.sol", "id": 13118, "nodeType": "ImportDirective", "scope": 13183, "sourceUnit": 13115, "src": "49:31:54", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@aragon/os/contracts/kernel/KernelStorage.sol", "file": "./KernelStorage.sol", "id": 13119, "nodeType": "ImportDirective", "scope": 13183, "sourceUnit": 13194, "src": "81:29:54", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@aragon/os/contracts/common/DepositableDelegateProxy.sol", "file": "../common/DepositableDelegateProxy.sol", "id": 13120, "nodeType": "ImportDirective", "scope": 13183, "sourceUnit": 10623, "src": "111:48:54", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@aragon/os/contracts/common/IsContract.sol", "file": "../common/IsContract.sol", "id": 13121, "nodeType": "ImportDirective", "scope": 13183, "sourceUnit": 10839, "src": "160:34:54", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 13122, "name": "IKernelEvents", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 12559, "src": "221:13:54", "typeDescriptions": { "typeIdentifier": "t_contract$_IKernelEvents_$12559", "typeString": "contract IKernelEvents" } }, "id": 13123, "nodeType": "InheritanceSpecifier", "src": "221:13:54" }, { "arguments": null, "baseName": { "contractScope": null, "id": 13124, "name": "KernelStorage", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 13193, "src": "236:13:54", "typeDescriptions": { "typeIdentifier": "t_contract$_KernelStorage_$13193", "typeString": "contract KernelStorage" } }, "id": 13125, "nodeType": "InheritanceSpecifier", "src": "236:13:54" }, { "arguments": null, "baseName": { "contractScope": null, "id": 13126, "name": "KernelAppIds", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 13104, "src": "251:12:54", "typeDescriptions": { "typeIdentifier": "t_contract$_KernelAppIds_$13104", "typeString": "contract KernelAppIds" } }, "id": 13127, "nodeType": "InheritanceSpecifier", "src": "251:12:54" }, { "arguments": null, "baseName": { "contractScope": null, "id": 13128, "name": "KernelNamespaceConstants", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 13114, "src": "265:24:54", "typeDescriptions": { "typeIdentifier": "t_contract$_KernelNamespaceConstants_$13114", "typeString": "contract KernelNamespaceConstants" } }, "id": 13129, "nodeType": "InheritanceSpecifier", "src": "265:24:54" }, { "arguments": null, "baseName": { "contractScope": null, "id": 13130, "name": "IsContract", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 10838, "src": "291:10:54", "typeDescriptions": { "typeIdentifier": "t_contract$_IsContract_$10838", "typeString": "contract IsContract" } }, "id": 13131, "nodeType": "InheritanceSpecifier", "src": "291:10:54" }, { "arguments": null, "baseName": { "contractScope": null, "id": 13132, "name": "DepositableDelegateProxy", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 10622, "src": "303:24:54", "typeDescriptions": { "typeIdentifier": "t_contract$_DepositableDelegateProxy_$10622", "typeString": "contract DepositableDelegateProxy" } }, "id": 13133, "nodeType": "InheritanceSpecifier", "src": "303:24:54" } ], "contractDependencies": [ 10583, 10622, 10654, 10838, 12559, 13104, 13114, 13193, 14225 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 13182, "linearizedBaseContracts": [ 13182, 10622, 10583, 10838, 14225, 10654, 13114, 13104, 13193, 12559 ], "name": "KernelProxy", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 13160, "nodeType": "Block", "src": "639:528:54", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 13141, "name": "_kernelImpl", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 13135, "src": "676:11:54", "typeDescriptions": { "typeIdentifier": "t_contract$_IKernel_$12600", "typeString": "contract IKernel" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_contract$_IKernel_$12600", "typeString": "contract IKernel" } ], "id": 13140, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpr