-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mejias
committed
Aug 16, 2022
0 parents
commit e40b68d
Showing
6 changed files
with
19,860 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
node_modules | ||
.env | ||
coverage | ||
coverage.json | ||
typechain | ||
typechain-types | ||
|
||
#Hardhat files | ||
cache | ||
artifacts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# VaporFi Solidity Challenge | ||
|
||
Welcome! | ||
|
||
You've come here to prove your solidity knowledge. This is a sample hardhat project where you can implement your solution that our engineering department will review. | ||
|
||
**Do NOT use external libraries or frameworks** | ||
|
||
## Challenge | ||
|
||
Create a smart contract capable of Create, Read, Update and Delete a list of Memberships that contains the following fields | ||
|
||
- creation date | ||
- expiration date | ||
- address | ||
- username | ||
|
||
Your smart contract needs to be able to: | ||
|
||
- Create one or more memberships | ||
- Get a membership by id | ||
- Update a membership by id | ||
- Delete a membership by id | ||
- A member can only change his username | ||
- All membership expires 30 days after creation | ||
|
||
### Bonus points | ||
|
||
- Add tests | ||
- Use upgradable pattern | ||
- Gas optimizations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { HardhatUserConfig } from "hardhat/config"; | ||
import "@nomicfoundation/hardhat-toolbox"; | ||
|
||
const config: HardhatUserConfig = { | ||
solidity: "0.8.9", | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.