ETH salary pay

Ready for Sale

UTILITY FINANCIAL

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 nametypedetails
addressaddressthe address of new employee
valueuintthe salary in wei

disableEmployee disable an employee address

parameter nametypedetails
addressaddressthe address of disabled employee

enableEmployee enable a disable employee

parameter nametypedetails
addressaddressthe address of enabled employee

getIsEmployee gets if address is an employee

parameter nametypedetails
addressaddressthe address of checked employee

employeePaySalary executes the salary payment for the specified employee

parameter nametypedetails
addressaddressthe address of employee

getEmployeeSalary gets the salary value of the specified employee

parameter nametypedetails
addressaddressthe address of employee

getTxCount gets the number of transactions for one employee

parameter nametypedetails
addressaddressthe address of employee

setEmployeeSalary adds new salary for the employee address

parameter nametypedetails
addressaddressthe address of the employee
valueuintthe new salary in wei

transactions gets the transaction for one employee and one transaction number

parameter nametypedetails
addressaddressthe address of employee
valueuinttransaction number

Example:

ownerAddress: 0xca35b7d915458ef540ade6068dfe2f44e8fa733c
ownerSalary: 20000

Reviewed by Modex
Buy

Copyright © Modex Marketplace