UNPKG

@aragon/apps-payroll

Version:

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

1,228 lines 544 kB
{ "contractName": "ACLHelpers", "abi": [], "bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a723058202c9a70c25b26bdae077b7b22d558f9c3f598bf018491cde04cfc8dba152c6fa00029", "deployedBytecode": "0x6080604052600080fd00a165627a7a723058202c9a70c25b26bdae077b7b22d558f9c3f598bf018491cde04cfc8dba152c6fa00029", "sourceMap": "2518:456:14:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2518:456:14;;;;;;;", "deployedSourceMap": "2518:456:14:-;;;;;", "source": "/*\n * SPDX-License-Identitifer: MIT\n */\n\npragma solidity ^0.4.24;\n\n\ncontract ACLSyntaxSugar {\n function arr() internal pure returns (uint256[]) {\n return new uint256[](0);\n }\n\n function arr(bytes32 _a) internal pure returns (uint256[] r) {\n return arr(uint256(_a));\n }\n\n function arr(bytes32 _a, bytes32 _b) internal pure returns (uint256[] r) {\n return arr(uint256(_a), uint256(_b));\n }\n\n function arr(address _a) internal pure returns (uint256[] r) {\n return arr(uint256(_a));\n }\n\n function arr(address _a, address _b) internal pure returns (uint256[] r) {\n return arr(uint256(_a), uint256(_b));\n }\n\n function arr(address _a, uint256 _b, uint256 _c) internal pure returns (uint256[] r) {\n return arr(uint256(_a), _b, _c);\n }\n\n function arr(address _a, uint256 _b, uint256 _c, uint256 _d) internal pure returns (uint256[] r) {\n return arr(uint256(_a), _b, _c, _d);\n }\n\n function arr(address _a, uint256 _b) internal pure returns (uint256[] r) {\n return arr(uint256(_a), uint256(_b));\n }\n\n function arr(address _a, address _b, uint256 _c, uint256 _d, uint256 _e) internal pure returns (uint256[] r) {\n return arr(uint256(_a), uint256(_b), _c, _d, _e);\n }\n\n function arr(address _a, address _b, address _c) internal pure returns (uint256[] r) {\n return arr(uint256(_a), uint256(_b), uint256(_c));\n }\n\n function arr(address _a, address _b, uint256 _c) internal pure returns (uint256[] r) {\n return arr(uint256(_a), uint256(_b), uint256(_c));\n }\n\n function arr(uint256 _a) internal pure returns (uint256[] r) {\n r = new uint256[](1);\n r[0] = _a;\n }\n\n function arr(uint256 _a, uint256 _b) internal pure returns (uint256[] r) {\n r = new uint256[](2);\n r[0] = _a;\n r[1] = _b;\n }\n\n function arr(uint256 _a, uint256 _b, uint256 _c) internal pure returns (uint256[] r) {\n r = new uint256[](3);\n r[0] = _a;\n r[1] = _b;\n r[2] = _c;\n }\n\n function arr(uint256 _a, uint256 _b, uint256 _c, uint256 _d) internal pure returns (uint256[] r) {\n r = new uint256[](4);\n r[0] = _a;\n r[1] = _b;\n r[2] = _c;\n r[3] = _d;\n }\n\n function arr(uint256 _a, uint256 _b, uint256 _c, uint256 _d, uint256 _e) internal pure returns (uint256[] r) {\n r = new uint256[](5);\n r[0] = _a;\n r[1] = _b;\n r[2] = _c;\n r[3] = _d;\n r[4] = _e;\n }\n}\n\n\ncontract ACLHelpers {\n function decodeParamOp(uint256 _x) internal pure returns (uint8 b) {\n return uint8(_x >> (8 * 30));\n }\n\n function decodeParamId(uint256 _x) internal pure returns (uint8 b) {\n return uint8(_x >> (8 * 31));\n }\n\n function decodeParamsList(uint256 _x) internal pure returns (uint32 a, uint32 b, uint32 c) {\n a = uint32(_x);\n b = uint32(_x >> (8 * 4));\n c = uint32(_x >> (8 * 8));\n }\n}\n", "sourcePath": "@aragon/os/contracts/acl/ACLSyntaxSugar.sol", "ast": { "absolutePath": "@aragon/os/contracts/acl/ACLSyntaxSugar.sol", "exportedSymbols": { "ACLHelpers": [ 9652 ], "ACLSyntaxSugar": [ 9577 ] }, "id": 9653, "nodeType": "SourceUnit", "nodes": [ { "id": 9154, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "44:24:14" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 9577, "linearizedBaseContracts": [ 9577 ], "name": "ACLSyntaxSugar", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 9166, "nodeType": "Block", "src": "150:40:14", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 9163, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "181:1:14", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 9162, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "167:13:14", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 9160, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "171:7:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 9161, "length": null, "nodeType": "ArrayTypeName", "src": "171:9:14", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 9164, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "167:16:14", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory", "typeString": "uint256[] memory" } }, "functionReturnParameters": 9159, "id": 9165, "nodeType": "Return", "src": "160:23:14" } ] }, "documentation": null, "id": 9167, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "arr", "nodeType": "FunctionDefinition", "parameters": { "id": 9155, "nodeType": "ParameterList", "parameters": [], "src": "113:2:14" }, "payable": false, "returnParameters": { "id": 9159, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 9158, "name": "", "nodeType": "VariableDeclaration", "scope": 9167, "src": "139:9:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 9156, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "139:7:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 9157, "length": null, "nodeType": "ArrayTypeName", "src": "139:9:14", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "value": null, "visibility": "internal" } ], "src": "138:11:14" }, "scope": 9577, "src": "101:89:14", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { "id": 9181, "nodeType": "Block", "src": "257:40:14", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 9177, "name": "_a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9169, "src": "286:2:14", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 9176, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "278:7:14", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 9178, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "278:11:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 9175, "name": "arr", "nodeType": "Identifier", "overloadedDeclarations": [ 9167, 9182, 9202, 9217, 9237, 9258, 9282, 9302, 9331, 9356, 9381, 9404, 9435, 9474, 9521, 9576 ], "referencedDeclaration": 9404, "src": "274:3:14", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" } }, "id": 9179, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "274:16:14", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "functionReturnParameters": 9174, "id": 9180, "nodeType": "Return", "src": "267:23:14" } ] }, "documentation": null, "id": 9182, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "arr", "nodeType": "FunctionDefinition", "parameters": { "id": 9170, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 9169, "name": "_a", "nodeType": "VariableDeclaration", "scope": 9182, "src": "209:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 9168, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "209:7:14", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "208:12:14" }, "payable": false, "returnParameters": { "id": 9174, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 9173, "name": "r", "nodeType": "VariableDeclaration", "scope": 9182, "src": "244:11:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 9171, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "244:7:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 9172, "length": null, "nodeType": "ArrayTypeName", "src": "244:9:14", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "value": null, "visibility": "internal" } ], "src": "243:13:14" }, "scope": 9577, "src": "196:101:14", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { "id": 9201, "nodeType": "Block", "src": "376:53:14", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 9194, "name": "_a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9184, "src": "405:2:14", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 9193, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "397:7:14", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 9195, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "397:11:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 9197, "name": "_b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9186, "src": "418:2:14", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 9196, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "410:7:14", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 9198, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "410:11:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 9192, "name": "arr", "nodeType": "Identifier", "overloadedDeclarations": [ 9167, 9182, 9202, 9217, 9237, 9258, 9282, 9302, 9331, 9356, 9381, 9404, 9435, 9474, 9521, 9576 ], "referencedDeclaration": 9435, "src": "393:3:14", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256,uint256) pure returns (uint256[] memory)" } }, "id": 9199, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "393:29:14", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "functionReturnParameters": 9191, "id": 9200, "nodeType": "Return", "src": "386:36:14" } ] }, "documentation": null, "id": 9202, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "arr", "nodeType": "FunctionDefinition", "parameters": { "id": 9187, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 9184, "name": "_a", "nodeType": "VariableDeclaration", "scope": 9202, "src": "316:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 9183, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "316:7:14", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 9186, "name": "_b", "nodeType": "VariableDeclaration", "scope": 9202, "src": "328:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 9185, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "328:7:14", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "315:24:14" }, "payable": false, "returnParameters": { "id": 9191, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 9190, "name": "r", "nodeType": "VariableDeclaration", "scope": 9202, "src": "363:11:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 9188, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "363:7:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 9189, "length": null, "nodeType": "ArrayTypeName", "src": "363:9:14", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "value": null, "visibility": "internal" } ], "src": "362:13:14" }, "scope": 9577, "src": "303:126:14", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { "id": 9216, "nodeType": "Block", "src": "496:40:14", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 9212, "name": "_a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9204, "src": "525:2:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 9211, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "517:7:14", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 9213, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "517:11:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 9210, "name": "arr", "nodeType": "Identifier", "overloadedDeclarations": [ 9167, 9182, 9202, 9217, 9237, 9258, 9282, 9302, 9331, 9356, 9381, 9404, 9435, 9474, 9521, 9576 ], "referencedDeclaration": 9404, "src": "513:3:14", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" } }, "id": 9214, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "513:16:14", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "functionReturnParameters": 9209, "id": 9215, "nodeType": "Return", "src": "506:23:14" } ] }, "documentation": null, "id": 9217, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "arr", "nodeType": "FunctionDefinition", "parameters": { "id": 9205, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 9204, "name": "_a", "nodeType": "VariableDeclaration", "scope": 9217, "src": "448:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 9203, "name": "address", "nodeType": "ElementaryTypeName", "src": "448:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "447:12:14" }, "payable": false, "returnParameters": { "id": 9209, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 9208, "name": "r", "nodeType": "VariableDeclaration", "scope": 9217, "src": "483:11:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 9206, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "483:7:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 9207, "length": null, "nodeType": "ArrayTypeName", "src": "483:9:14", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "value": null, "visibility": "internal" } ], "src": "482:13:14" }, "scope": 9577, "src": "435:101:14", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { "id": 9236, "nodeType": "Block", "src": "615:53:14", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 9229, "name": "_a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9219, "src": "644:2:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 9228, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "636:7:14", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 9230, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "636:11:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 9232, "name": "_b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9221, "src": "657:2:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 9231, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "649:7:14", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 9233, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "649:11:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 9227, "name": "arr", "nodeType": "Identifier", "overloadedDeclarations": [ 9167, 9182, 9202, 9217, 9237, 9258, 9282, 9302, 9331, 9356, 9381, 9404, 9435, 9474, 9521, 9576 ], "referencedDeclaration": 9435, "src": "632:3:14", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256,uint256) pure returns (uint256[] memory)" } }, "id": 9234, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "632:29:14", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "functionReturnParameters": 9226, "id": 9235, "nodeType": "Return", "src": "625:36:14" } ] }, "documentation": null, "id": 9237, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "arr", "nodeType": "FunctionDefinition", "parameters": { "id": 9222, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 9219, "name": "_a", "nodeType": "VariableDeclaration", "scope": 9237, "src": "555:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 9218, "name": "address", "nodeType": "ElementaryTypeName", "src": "555:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 9221, "name": "_b", "nodeType": "VariableDeclaration", "scope": 9237, "src": "567:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 9220, "name": "address", "nodeType": "ElementaryTypeName", "src": "567:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "554:24:14" }, "payable": false, "returnParameters": { "id": 9226, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 9225, "name": "r", "nodeType": "VariableDeclaration", "scope": 9237, "src": "602:11:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 9223, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "602:7:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 9224, "length": null, "nodeType": "ArrayTypeName", "src": "602:9:14", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "value": null, "visibility": "internal" } ], "src": "601:13:14" }, "scope": 9577, "src": "542:126:14", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { "id": 9257, "nodeType": "Block", "src": "759:48:14", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 9251, "name": "_a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9239, "src": "788:2:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentif