UNPKG

@aragon/apps-payroll

Version:

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

879 lines 31.3 kB
{ "contractName": "ITokenController", "abi": [ { "constant": false, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "proxyPayment", "outputs": [ { "name": "", "type": "bool" } ], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_amount", "type": "uint256" } ], "name": "onTransfer", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_spender", "type": "address" }, { "name": "_amount", "type": "uint256" } ], "name": "onApprove", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.4.24;\n\n/// @dev The token controller contract must implement these functions\n\n\ninterface ITokenController {\n /// @notice Called when `_owner` sends ether to the MiniMe Token contract\n /// @param _owner The address that sent the ether to create tokens\n /// @return True if the ether is accepted, false if it throws\n function proxyPayment(address _owner) external payable returns(bool);\n\n /// @notice Notifies the controller about a token transfer allowing the\n /// controller to react if desired\n /// @param _from The origin of the transfer\n /// @param _to The destination of the transfer\n /// @param _amount The amount of the transfer\n /// @return False if the controller does not authorize the transfer\n function onTransfer(address _from, address _to, uint _amount) external returns(bool);\n\n /// @notice Notifies the controller about an approval allowing the\n /// controller to react if desired\n /// @param _owner The address that calls `approve()`\n /// @param _spender The spender in the `approve()` call\n /// @param _amount The amount in the `approve()` call\n /// @return False if the controller does not authorize the approval\n function onApprove(address _owner, address _spender, uint _amount) external returns(bool);\n}\n", "sourcePath": "@aragon/apps-shared-minime/contracts/ITokenController.sol", "ast": { "absolutePath": "@aragon/apps-shared-minime/contracts/ITokenController.sol", "exportedSymbols": { "ITokenController": [ 5617 ] }, "id": 5618, "nodeType": "SourceUnit", "nodes": [ { "id": 5587, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:9" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": "@dev The token controller contract must implement these functions", "fullyImplemented": false, "id": 5617, "linearizedBaseContracts": [ 5617 ], "name": "ITokenController", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": "@notice Called when `_owner` sends ether to the MiniMe Token contract\n @param _owner The address that sent the ether to create tokens\n @return True if the ether is accepted, false if it throws", "id": 5594, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "proxyPayment", "nodeType": "FunctionDefinition", "parameters": { "id": 5590, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5589, "name": "_owner", "nodeType": "VariableDeclaration", "scope": 5594, "src": "368:14:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5588, "name": "address", "nodeType": "ElementaryTypeName", "src": "368:7:9", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "367:16:9" }, "payable": true, "returnParameters": { "id": 5593, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5592, "name": "", "nodeType": "VariableDeclaration", "scope": 5594, "src": "409:4:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 5591, "name": "bool", "nodeType": "ElementaryTypeName", "src": "409:4:9", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "408:6:9" }, "scope": 5617, "src": "346:69:9", "stateMutability": "payable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": "@notice Notifies the controller about a token transfer allowing the\n controller to react if desired\n @param _from The origin of the transfer\n @param _to The destination of the transfer\n @param _amount The amount of the transfer\n @return False if the controller does not authorize the transfer", "id": 5605, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "onTransfer", "nodeType": "FunctionDefinition", "parameters": { "id": 5601, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5596, "name": "_from", "nodeType": "VariableDeclaration", "scope": 5605, "src": "778:13:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5595, "name": "address", "nodeType": "ElementaryTypeName", "src": "778:7:9", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5598, "name": "_to", "nodeType": "VariableDeclaration", "scope": 5605, "src": "793:11:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5597, "name": "address", "nodeType": "ElementaryTypeName", "src": "793:7:9", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5600, "name": "_amount", "nodeType": "VariableDeclaration", "scope": 5605, "src": "806:12:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5599, "name": "uint", "nodeType": "ElementaryTypeName", "src": "806:4:9", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "777:42:9" }, "payable": false, "returnParameters": { "id": 5604, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5603, "name": "", "nodeType": "VariableDeclaration", "scope": 5605, "src": "837:4:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 5602, "name": "bool", "nodeType": "ElementaryTypeName", "src": "837:4:9", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "836:6:9" }, "scope": 5617, "src": "758:85:9", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": "@notice Notifies the controller about an approval allowing the\n controller to react if desired\n @param _owner The address that calls `approve()`\n @param _spender The spender in the `approve()` call\n @param _amount The amount in the `approve()` call\n @return False if the controller does not authorize the approval", "id": 5616, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "onApprove", "nodeType": "FunctionDefinition", "parameters": { "id": 5612, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5607, "name": "_owner", "nodeType": "VariableDeclaration", "scope": 5616, "src": "1226:14:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5606, "name": "address", "nodeType": "ElementaryTypeName", "src": "1226:7:9", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5609, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 5616, "src": "1242:16:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5608, "name": "address", "nodeType": "ElementaryTypeName", "src": "1242:7:9", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5611, "name": "_amount", "nodeType": "VariableDeclaration", "scope": 5616, "src": "1260:12:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5610, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1260:4:9", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "1225:48:9" }, "payable": false, "returnParameters": { "id": 5615, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5614, "name": "", "nodeType": "VariableDeclaration", "scope": 5616, "src": "1291:4:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 5613, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1291:4:9", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "1290:6:9" }, "scope": 5617, "src": "1207:90:9", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 5618, "src": "98:1201:9" } ], "src": "0:1300:9" }, "legacyAST": { "absolutePath": "@aragon/apps-shared-minime/contracts/ITokenController.sol", "exportedSymbols": { "ITokenController": [ 5617 ] }, "id": 5618, "nodeType": "SourceUnit", "nodes": [ { "id": 5587, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:9" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": "@dev The token controller contract must implement these functions", "fullyImplemented": false, "id": 5617, "linearizedBaseContracts": [ 5617 ], "name": "ITokenController", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": "@notice Called when `_owner` sends ether to the MiniMe Token contract\n @param _owner The address that sent the ether to create tokens\n @return True if the ether is accepted, false if it throws", "id": 5594, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "proxyPayment", "nodeType": "FunctionDefinition", "parameters": { "id": 5590, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5589, "name": "_owner", "nodeType": "VariableDeclaration", "scope": 5594, "src": "368:14:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5588, "name": "address", "nodeType": "ElementaryTypeName", "src": "368:7:9", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "367:16:9" }, "payable": true, "returnParameters": { "id": 5593, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5592, "name": "", "nodeType": "VariableDeclaration", "scope": 5594, "src": "409:4:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 5591, "name": "bool", "nodeType": "ElementaryTypeName", "src": "409:4:9", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "408:6:9" }, "scope": 5617, "src": "346:69:9", "stateMutability": "payable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": "@notice Notifies the controller about a token transfer allowing the\n controller to react if desired\n @param _from The origin of the transfer\n @param _to The destination of the transfer\n @param _amount The amount of the transfer\n @return False if the controller does not authorize the transfer", "id": 5605, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "onTransfer", "nodeType": "FunctionDefinition", "parameters": { "id": 5601, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5596, "name": "_from", "nodeType": "VariableDeclaration", "scope": 5605, "src": "778:13:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5595, "name": "address", "nodeType": "ElementaryTypeName", "src": "778:7:9", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5598, "name": "_to", "nodeType": "VariableDeclaration", "scope": 5605, "src": "793:11:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5597, "name": "address", "nodeType": "ElementaryTypeName", "src": "793:7:9", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5600, "name": "_amount", "nodeType": "VariableDeclaration", "scope": 5605, "src": "806:12:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5599, "name": "uint", "nodeType": "ElementaryTypeName", "src": "806:4:9", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "777:42:9" }, "payable": false, "returnParameters": { "id": 5604, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5603, "name": "", "nodeType": "VariableDeclaration", "scope": 5605, "src": "837:4:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 5602, "name": "bool", "nodeType": "ElementaryTypeName", "src": "837:4:9", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "836:6:9" }, "scope": 5617, "src": "758:85:9", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": "@notice Notifies the controller about an approval allowing the\n controller to react if desired\n @param _owner The address that calls `approve()`\n @param _spender The spender in the `approve()` call\n @param _amount The amount in the `approve()` call\n @return False if the controller does not authorize the approval", "id": 5616, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "onApprove", "nodeType": "FunctionDefinition", "parameters": { "id": 5612, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5607, "name": "_owner", "nodeType": "VariableDeclaration", "scope": 5616, "src": "1226:14:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5606, "name": "address", "nodeType": "ElementaryTypeName", "src": "1226:7:9", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5609, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 5616, "src": "1242:16:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5608, "name": "address", "nodeType": "ElementaryTypeName", "src": "1242:7:9", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5611, "name": "_amount", "nodeType": "VariableDeclaration", "scope": 5616, "src": "1260:12:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5610, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1260:4:9", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "1225:48:9" }, "payable": false, "returnParameters": { "id": 5615, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5614, "name": "", "nodeType": "VariableDeclaration", "scope": 5616, "src": "1291:4:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 5613, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1291:4:9", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "1290:6:9" }, "scope": 5617, "src": "1207:90:9", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 5618, "src": "98:1201:9" } ], "src": "0:1300:9" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2019-09-04T11:02:55.741Z" }