A basic Patreon clone in Solidity
This is a toy project to teach important Solidity and Hardhat concepts.
There are two interfaces,
IPatreonRegistry.sol with full NatSpec descriptions. Your goal is to implement them in
PatreonRegistry.sol and pass the unit tests in
Clone and run the project
Verify you can get the project up and running with the following (you must have npm installed):
git clone [email protected]:daltyboy11/solidity-patreon-challenge.git npm install npx hardhat test
git checkout interfaces-only
This branch has the skeleton implementations you need to implement. Start on this branch to implement your solution.
Your task is to convert the NatSpec description to a working implementation. Your solution is finished when you pass all the test cases
npx hardhat test
Give it your best shot! Remember to use the hints and other external solidity resources. You can also look at my solution on the
Remember there is no “right” solution because there are many possible implementations. Here are some topics that will help you along the way:
- The difference between
- Solidity style guide
- Solidity security considerations
Want to make a suggestion for improvement? Open up an issue or a pull request :).