
Contract purpose
The purpose of the contract keeps an employee register and can execute one by one ETH salary pay.
Parameters:
ownerAddress: the owner address
ownerSalary: the owner salary, if any
Exposed methods
addEmployee adds new employee address
parameter name | type | details |
---|---|---|
address | address | the address of new employee |
value | uint | the salary in wei |
disableEmployee disable an employee address
parameter name | type | details |
---|---|---|
address | address | the address of disabled employee |
enableEmployee enable a disable employee
parameter name | type | details |
---|---|---|
address | address | the address of enabled employee |
getIsEmployee gets if address is an employee
parameter name | type | details |
---|---|---|
address | address | the address of checked employee |
employeePaySalary executes the salary payment for the specified employee
parameter name | type | details |
---|---|---|
address | address | the address of employee |
getEmployeeSalary gets the salary value of the specified employee
parameter name | type | details |
---|---|---|
address | address | the address of employee |
getTxCount gets the number of transactions for one employee
parameter name | type | details |
---|---|---|
address | address | the address of employee |
setEmployeeSalary adds new salary for the employee address
parameter name | type | details |
---|---|---|
address | address | the address of the employee |
value | uint | the new salary in wei |
transactions gets the transaction for one employee and one transaction number
parameter name | type | details |
---|---|---|
address | address | the address of employee |
value | uint | transaction number |
Example:
ownerAddress: 0xca35b7d915458ef540ade6068dfe2f44e8fa733c
ownerSalary: 20000