
Jobs Listing
TOOLSDOCUMENTSSOCIALUTILITY
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 name | type | details |
---|---|---|
_name | string | the name of the company |
_email | string | the 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 name | type | details |
---|---|---|
_jobDetails | string | important details about the position( requirments for applicants, skills needed etc) |
_monthlySalary | integer | an 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 name | type | details |
---|---|---|
_jobID | integer | unique identifier of the job |
_email | string | the email of the applicant |
closeJobApplications allows an employer to end the application process for a job he previously posted
parameter name | type | details |
---|---|---|
_jobID | integer | unique 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 name | type | details |
---|---|---|
_addr | ethereum address | the 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 name | type | details |
---|---|---|
_jobID | integer | unique identifier of the job |
getApplicantEmail returns the email of an applicant when called by the employer
parameter name | type | details |
---|---|---|
_jobID | integer | unique identifier of the job |
_applicant | ethereum address | the account address of the applicant |
Events
EmployerRegistered
parameter name | type | details |
---|---|---|
EmployerAddress | ethereum address | the address of the new employer |
JobPosted
parameter name | type | details |
---|---|---|
JobID | integer | the ID of the posted job |
NewApplicationSent
parameter name | type | details |
---|---|---|
ApplicantAddress | ethereum address | the account address of the new applicant |