Jobs Listing

Under Review

TOOLSDOCUMENTSUTILITY

Contract purpose

This Smart Contract can act as back-end for a dApp that allows employers to post job openings.

Exposed methods and variables

siteManager the ethereum address of the site manager, given as parameter at contract creation

jobs returns the details of a listed job when called with the jobID

registerAsEmployer allows a person to register himself as an employer in order to be able to list the opening positions from their company and it emits the EmployerRegisterd event.

parameter nametypedetails
_namestringthe name of the company
_emailstringthe email address of the HR department

postJob allows an employer to list a job opening so that people could apply to it and it emitsthe JobPosted event

parameter nametypedetails
_jobDetailsstringimportant details about the position( requirments for applicants, skills needed etc)
_monthlySalaryintegeran estimate of the monthly salary for this job

applyToJob by calling this function, a person can apply to a job, only if the respective position is still open for applications

parameter nametypedetails
_jobIDintegerunique identifier of the job
_emailstringthe email of the applicant

closeJobApplications allows an employer to end the application process for a job he previously posted

parameter nametypedetails
_jobIDintegerunique identifier of the job

removeEmployer due to bad behaviour or people's complaints, the site manager can call this function and remove the right of an employer to further post jobs or receive applications

parameter nametypedetails
_addrethereum addressthe account address of the employer to be removed

getEmployerEmail returns the email address of the HR department of the company for which the job is available

parameter nametypedetails
_jobIDintegerunique identifier of the job

getApplicantEmail returns the email of an applicant when called by the employer

parameter nametypedetails
_jobIDintegerunique identifier of the job
_applicantethereum addressthe account address of the applicant

Events

EmployerRegistered

parameter nametypedetails
EmployerAddressethereum addressthe address of the new employer

JobPosted

parameter nametypedetails
JobIDintegerthe ID of the posted job

NewApplicationSent

parameter nametypedetails
ApplicantAddressethereum addressthe account address of the new applicant
Reviewed by Modex
Buy
Buy Contract

Create an account or login to purchase this smart contract