Solutions to Damn Vulnerable DeFi challenges using the Brownie framework.
brownie pm install OpenZeppelin/openzeppelin-contracts@4.2.0
brownie pm install OpenZeppelin/openzeppelin-contracts-upgradeable@4.5.0
brownie pm install safe-global/safe-contracts@1.3.0
The original setup/deployment scripts for each challenge (found here) have been ported to Python in order to be used with the Brownie command line interface. See the scripts folder to find the script for each challenge. To run the solution for a particular challenge, run the following command from the top-level directory:
brownie run <ChallengeName>
where <ChallengeName>
is any of
Unstoppable, NaiveReceiver, Truster, SideEntrance, TheRewarder, Selfie,
Compromised, Puppet, PuppetV2, FreeRider, Backdoor, Climber