Contractor Management

FINANCIALTOOLSUTILITY

###Exposed Methods

addContractor adds a contractor to the array

parameter nametypedetails
_namestringname of the contractor
_projectnamestringname of the name of the project chosen by the contractor
_addraddressthe etherum address of the contractor

addProject adds a project to the array

parameter nametypedetails
_projectnamestringname of the name of the project chosen by the contractor
_projectworthuinthow much the contractor is going to get if he finishes the project

projectFinished pays the contractor when the project is deemed finished by the owner

parameter nametypedetails
_projectnamestringname of the name of the project chosen by the contractor
_namestringname of the contractor

getProjectInfo shows information about a certain project

parameter nametypedetails
_projectnamestringname of the name of the project chosen by the contractor

###Events

ProjectAdded listens when a project was added ContractorAdded listens when a contractor was added ProjectIsFinished listens when a project is finished and the contractor was paid

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract