Chores Management

TOOLSUTILITYFINANCIAL

Contract purpose

Smart contract for chores management

Events

fromContractToexternal(address receiver, uint index) This event allows watching or filter event logs of payments to a specific adrress

ChoreDone(address doer, uint index) This event allows watching or filter event logs of done chores

Exposed methods

master: the system manager

choresList: list of all chores

createChore payable function that allows the master to create a chore and set its value

parameter nametypedetails
_namestringname of chore
_descriptionstringdescription of chore

chooseChore lets a user choose one of the undone chores

parameter nametypedetails
indexintegerchore index

choreDone lets the user who chose a chore earlier to set its status as done and wait for the master to pay him

parameter nametypedetails
indexintegerchore index

resetChoreStatus permits the master to reset the status and the value of a chore so it can be done again

parameter nametypedetails
indexintegerchore index

transferFromContract by calling this function, the master pays the user who did the respective chore and emits an event

parameter nametypedetails
indexintegerchore index
Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract