UNPKG

@aragon/apps-payroll

Version:

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

751 lines 24 kB
{ "contractName": "IVaultRecoverable", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "name": "vault", "type": "address" }, { "indexed": true, "name": "token", "type": "address" }, { "indexed": false, "name": "amount", "type": "uint256" } ], "name": "RecoverToVault", "type": "event" }, { "constant": false, "inputs": [ { "name": "token", "type": "address" } ], "name": "transferToVault", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "token", "type": "address" } ], "name": "allowRecoverability", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getRecoveryVault", "outputs": [ { "name": "", "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\ninterface IVaultRecoverable {\n event RecoverToVault(address indexed vault, address indexed token, uint256 amount);\n\n function transferToVault(address token) external;\n\n function allowRecoverability(address token) external view returns (bool);\n function getRecoveryVault() external view returns (address);\n}\n", "sourcePath": "@aragon/os/contracts/common/IVaultRecoverable.sol", "ast": { "absolutePath": "@aragon/os/contracts/common/IVaultRecoverable.sol", "exportedSymbols": { "IVaultRecoverable": [ 10712 ] }, "id": 10713, "nodeType": "SourceUnit", "nodes": [ { "id": 10686, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "44:24:31" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 10712, "linearizedBaseContracts": [ 10712 ], "name": "IVaultRecoverable", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 10694, "name": "RecoverToVault", "nodeType": "EventDefinition", "parameters": { "id": 10693, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 10688, "indexed": true, "name": "vault", "nodeType": "VariableDeclaration", "scope": 10694, "src": "126:21:31", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 10687, "name": "address", "nodeType": "ElementaryTypeName", "src": "126:7:31", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 10690, "indexed": true, "name": "token", "nodeType": "VariableDeclaration", "scope": 10694, "src": "149:21:31", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 10689, "name": "address", "nodeType": "ElementaryTypeName", "src": "149:7:31", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 10692, "indexed": false, "name": "amount", "nodeType": "VariableDeclaration", "scope": 10694, "src": "172:14:31", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 10691, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "172:7:31", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "125:62:31" }, "src": "105:83:31" }, { "body": null, "documentation": null, "id": 10699, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferToVault", "nodeType": "FunctionDefinition", "parameters": { "id": 10697, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 10696, "name": "token", "nodeType": "VariableDeclaration", "scope": 10699, "src": "219:13:31", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 10695, "name": "address", "nodeType": "ElementaryTypeName", "src": "219:7:31", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "218:15:31" }, "payable": false, "returnParameters": { "id": 10698, "nodeType": "ParameterList", "parameters": [], "src": "242:0:31" }, "scope": 10712, "src": "194:49:31", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 10706, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "allowRecoverability", "nodeType": "FunctionDefinition", "parameters": { "id": 10702, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 10701, "name": "token", "nodeType": "VariableDeclaration", "scope": 10706, "src": "278:13:31", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 10700, "name": "address", "nodeType": "ElementaryTypeName", "src": "278:7:31", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "277:15:31" }, "payable": false, "returnParameters": { "id": 10705, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 10704, "name": "", "nodeType": "VariableDeclaration", "scope": 10706, "src": "316:4:31", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 10703, "name": "bool", "nodeType": "ElementaryTypeName", "src": "316:4:31", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "315:6:31" }, "scope": 10712, "src": "249:73:31", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 10711, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getRecoveryVault", "nodeType": "FunctionDefinition", "parameters": { "id": 10707, "nodeType": "ParameterList", "parameters": [], "src": "352:2:31" }, "payable": false, "returnParameters": { "id": 10710, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 10709, "name": "", "nodeType": "VariableDeclaration", "scope": 10711, "src": "378:7:31", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 10708, "name": "address", "nodeType": "ElementaryTypeName", "src": "378:7:31", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "377:9:31" }, "scope": 10712, "src": "327:60:31", "stateMutability": "view", "superFunction": null, "visibility": "external" } ], "scope": 10713, "src": "71:318:31" } ], "src": "44:346:31" }, "legacyAST": { "absolutePath": "@aragon/os/contracts/common/IVaultRecoverable.sol", "exportedSymbols": { "IVaultRecoverable": [ 10712 ] }, "id": 10713, "nodeType": "SourceUnit", "nodes": [ { "id": 10686, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "44:24:31" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 10712, "linearizedBaseContracts": [ 10712 ], "name": "IVaultRecoverable", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 10694, "name": "RecoverToVault", "nodeType": "EventDefinition", "parameters": { "id": 10693, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 10688, "indexed": true, "name": "vault", "nodeType": "VariableDeclaration", "scope": 10694, "src": "126:21:31", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 10687, "name": "address", "nodeType": "ElementaryTypeName", "src": "126:7:31", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 10690, "indexed": true, "name": "token", "nodeType": "VariableDeclaration", "scope": 10694, "src": "149:21:31", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 10689, "name": "address", "nodeType": "ElementaryTypeName", "src": "149:7:31", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 10692, "indexed": false, "name": "amount", "nodeType": "VariableDeclaration", "scope": 10694, "src": "172:14:31", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 10691, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "172:7:31", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "125:62:31" }, "src": "105:83:31" }, { "body": null, "documentation": null, "id": 10699, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferToVault", "nodeType": "FunctionDefinition", "parameters": { "id": 10697, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 10696, "name": "token", "nodeType": "VariableDeclaration", "scope": 10699, "src": "219:13:31", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 10695, "name": "address", "nodeType": "ElementaryTypeName", "src": "219:7:31", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "218:15:31" }, "payable": false, "returnParameters": { "id": 10698, "nodeType": "ParameterList", "parameters": [], "src": "242:0:31" }, "scope": 10712, "src": "194:49:31", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 10706, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "allowRecoverability", "nodeType": "FunctionDefinition", "parameters": { "id": 10702, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 10701, "name": "token", "nodeType": "VariableDeclaration", "scope": 10706, "src": "278:13:31", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 10700, "name": "address", "nodeType": "ElementaryTypeName", "src": "278:7:31", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "277:15:31" }, "payable": false, "returnParameters": { "id": 10705, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 10704, "name": "", "nodeType": "VariableDeclaration", "scope": 10706, "src": "316:4:31", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 10703, "name": "bool", "nodeType": "ElementaryTypeName", "src": "316:4:31", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "315:6:31" }, "scope": 10712, "src": "249:73:31", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 10711, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getRecoveryVault", "nodeType": "FunctionDefinition", "parameters": { "id": 10707, "nodeType": "ParameterList", "parameters": [], "src": "352:2:31" }, "payable": false, "returnParameters": { "id": 10710, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 10709, "name": "", "nodeType": "VariableDeclaration", "scope": 10711, "src": "378:7:31", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 10708, "name": "address", "nodeType": "ElementaryTypeName", "src": "378:7:31", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "377:9:31" }, "scope": 10712, "src": "327:60:31", "stateMutability": "view", "superFunction": null, "visibility": "external" } ], "scope": 10713, "src": "71:318:31" } ], "src": "44:346:31" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2019-09-04T11:02:55.761Z" }