Smart Contract: Creator and Applicant Profiles
Explore how to create modular Ethereum smart contracts for a remote job board by implementing distinct Creator and Applicant profiles. Gain hands-on experience with Solidity structures, enums, constants, mappings, and contract deployment using Remix IDE to build foundational profile functionality.
We'll cover the following...
To begin this project, we’ll add a profile functionality. This will allow potential job creators and applicants to create separate profiles with specific abilities.
Project structure
We’ll make this project as modular as possible, separating aspects into different files. We’ll clear any existing code from our Remix widget and delete all files in the contracts folder because we’ll be creating new ones.
The first new file is the core contract code, and we’ll call it SolJobs.sol. We’ll also create sibling files in the same directory called enums.sol, constants.sol, and structs.sol. These files will hold the corresponding data types, and we’ll import them into the core contract code.
The structure should look like this:
Core contract code
We’ll copy the contents of the individual files below and paste them into the corresponding new files we created. Then, we’ll take a look at each of them and what they do.