This Smart Contract keeps track of a person's monthly salary. The details are added to the contract by the creator (assumed to be the employee himself) and allows him to have a record of how much he earns.
Exposed methods and variables
addSalary called by the employee when he wants to add a new record to the list. The function returns an index by which this entry can be further identified inside the contract.
|_sum||integer||the sum earned|
|_year||integer||the year when this salary was received|
|_month||integer||the month of this salary|
getSalary returns the details about a specific entry, given its index
|index||integer||the index of the salary|
getTotalSum returns the total sum earned by the employee so far
getMaxSalary returns the maximum sum the employee earned until now