Skip to content

Commit

Permalink
init repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mejias committed Aug 16, 2022
0 parents commit e40b68d
Show file tree
Hide file tree
Showing 6 changed files with 19,860 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitignore
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

31 changes: 31 additions & 0 deletions README.md
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
8 changes: 8 additions & 0 deletions hardhat.config.ts
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;
Loading

0 comments on commit e40b68d

Please sign in to comment.