UNPKG

@aragon/apps-payroll

Version:

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

1,043 lines 20.5 kB
{ "abi": [ { "constant": true, "inputs": [], "name": "hasInitialized", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "MANAGE_ALLOWED_TOKENS_ROLE", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "nextEmployee", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_script", "type": "bytes" } ], "name": "getEVMScriptExecutor", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "MODIFY_RATE_EXPIRY_ROLE", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "finance", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getRecoveryVault", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "ADD_BONUS_ROLE", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "feed", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "SET_EMPLOYEE_SALARY_ROLE", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "MODIFY_PRICE_FEED_ROLE", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "TERMINATE_EMPLOYEE_ROLE", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "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": "appId", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "ADD_REIMBURSEMENT_ROLE", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getInitializationBlock", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_token", "type": "address" } ], "name": "transferToVault", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_sender", "type": "address" }, { "name": "_role", "type": "bytes32" }, { "name": "_params", "type": "uint256[]" } ], "name": "canPerform", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getEVMScriptRegistry", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "rateExpiryTime", "outputs": [ { "name": "", "type": "uint64" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "ADD_EMPLOYEE_ROLE", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "kernel", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "isPetrified", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "denominationToken", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "employeeId", "type": "uint256" }, { "indexed": true, "name": "accountAddress", "type": "address" }, { "indexed": false, "name": "initialDenominationSalary", "type": "uint256" }, { "indexed": false, "name": "startDate", "type": "uint64" }, { "indexed": false, "name": "role", "type": "string" } ], "name": "AddEmployee", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "employeeId", "type": "uint256" }, { "indexed": false, "name": "endDate", "type": "uint64" } ], "name": "TerminateEmployee", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "employeeId", "type": "uint256" }, { "indexed": false, "name": "denominationSalary", "type": "uint256" } ], "name": "SetEmployeeSalary", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "employeeId", "type": "uint256" }, { "indexed": false, "name": "amount", "type": "uint256" } ], "name": "AddEmployeeAccruedSalary", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "employeeId", "type": "uint256" }, { "indexed": false, "name": "amount", "type": "uint256" } ], "name": "AddEmployeeBonus", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "employeeId", "type": "uint256" }, { "indexed": false, "name": "amount", "type": "uint256" } ], "name": "AddEmployeeReimbursement", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "employeeId", "type": "uint256" }, { "indexed": true, "name": "newAccountAddress", "type": "address" }, { "indexed": true, "name": "oldAccountAddress", "type": "address" } ], "name": "ChangeAddressByEmployee", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "employeeId", "type": "uint256" } ], "name": "DetermineAllocation", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "employeeId", "type": "uint256" }, { "indexed": true, "name": "accountAddress", "type": "address" }, { "indexed": true, "name": "token", "type": "address" }, { "indexed": false, "name": "amount", "type": "uint256" }, { "indexed": false, "name": "exchangeRate", "type": "uint256" }, { "indexed": false, "name": "paymentReference", "type": "string" } ], "name": "SendPayment", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "token", "type": "address" }, { "indexed": false, "name": "allowed", "type": "bool" } ], "name": "SetAllowedToken", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "feed", "type": "address" } ], "name": "SetPriceFeed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "time", "type": "uint64" } ], "name": "SetRateExpiryTime", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "executor", "type": "address" }, { "indexed": false, "name": "script", "type": "bytes" }, { "indexed": false, "name": "input", "type": "bytes" }, { "indexed": false, "name": "returnData", "type": "bytes" } ], "name": "ScriptResult", "type": "event" }, { "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": "_finance", "type": "address" }, { "name": "_denominationToken", "type": "address" }, { "name": "_priceFeed", "type": "address" }, { "name": "_rateExpiryTime", "type": "uint64" } ], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_token", "type": "address" }, { "name": "_allowed", "type": "bool" } ], "name": "setAllowedToken", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_feed", "type": "address" } ], "name": "setPriceFeed", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_time", "type": "uint64" } ], "name": "setRateExpiryTime", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_accountAddress", "type": "address" }, { "name": "_initialDenominationSalary", "type": "uint256" }, { "name": "_startDate", "type": "uint64" }, { "name": "_role", "type": "string" } ], "name": "addEmployee", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_employeeId", "type": "uint256" }, { "name": "_amount", "type": "uint256" } ], "name": "addBonus", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_employeeId", "type": "uint256" }, { "name": "_amount", "type": "uint256" } ], "name": "addReimbursement", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_employeeId", "type": "uint256" }, { "name": "_denominationSalary", "type": "uint256" } ], "name": "setEmployeeSalary", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_employeeId", "type": "uint256" }, { "name": "_endDate", "type": "uint64" } ], "name": "terminateEmployee", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAccountAddress", "type": "address" } ], "name": "changeAddressByEmployee", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_tokens", "type": "address[]" }, { "name": "_distribution", "type": "uint256[]" } ], "name": "determineAllocation", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_type", "type": "uint8" }, { "name": "_requestedAmount", "type": "uint256" }, { "name": "_minRates", "type": "uint256[]" } ], "name": "payday", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "isForwarder", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": false, "inputs": [ { "name": "_evmScript", "type": "bytes" } ], "name": "forward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_sender", "type": "address" }, { "name": "", "type": "bytes" } ], "name": "canForward", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_accountAddress", "type": "address" } ], "name": "getEmployeeIdByAddress", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_employeeId", "type": "uint256" } ], "name": "getEmployee", "outputs": [ { "name": "accountAddress", "type": "address" }, { "name": "denominationSalary", "type": "uint256" }, { "name": "accruedSalary", "type": "uint256" }, { "name": "bonus", "type": "uint256" }, { "name": "reimbursements", "type": "uint256" }, { "name": "lastPayroll", "type": "uint64" }, { "name": "endDate", "type": "uint64" }, { "name": "allocationTokens", "type": "address[]" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_employeeId", "type": "uint256" } ], "name": "getTotalOwedSalary", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_employeeId", "type": "uint256" }, { "name": "_token", "type": "address" } ], "name": "getAllocation", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_token", "type": "address" } ], "name": "isTokenAllowed", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" } ] }