Welcome to the Brownie edition of the "damn vulnerable defi challenge"! In this repository, you will find my solutions to the challenges using the power of Python and the amazing Brownie framework.
To run the solutions, you will need to have Python 3.6 or higher, Brownie, and Hardhat installed on your system.
You can install Brownie by running the following command:
pipx install eth-brownie
And you can install Hardhat by running the following command:
npm install --save-dev hardhat
The challenges are organized into different folders within the test
folder, each one containing a script with the solution.
To run a solution, navigate to the corresponding folder and run the following command:
brownie test tests/{name_of_folder}/test_{name_of_script}.py -s --disable-warnings --network hardhat
example;
brownie test tests/unstoppable/test_unstoppable.py -s --disable-warnings --network hardhat
I hope you have as much fun solving these challenges as I did! Don't hesitate to reach out if you have any questions or suggestions. Good luck!
I want to give a special thanks to the creators of the damnvulnerabledefi.xyz for their excellent work. This project wouldn't be possible without their inspiration and resources. Thank you!