This project consists of my solvings of the ethernaut challenges. The challenges consists of contract files and the corresponding deploy files. It is built with hardhat (typescript & hardhat-deploy).
It's recommended that you've gone through the hardhat getting started documentation before proceeding here.
- git
- You'll know you did it right if you can run
git --version
and you see a response likegit version x.x.x
- You'll know you did it right if you can run
- Nodejs
- You'll know you've installed nodejs right if you can run:
node --version
and get an ouput like:vx.x.x
- You'll know you've installed nodejs right if you can run:
- Yarn instead of
npm
- You'll know you've installed yarn right if you can run:
yarn --version
And get an output like:x.x.x
- You might need to install it with npm
- You'll know you've installed yarn right if you can run:
- Clone this repo:
git clone https://github.com/mme022/ethernaut
cd ethernaut
- Install dependencies
yarn
or
npm i
If you want to deploy: 3. Add a .env
file with the same contents of .env.example
, but replaced with your variables.
WARNING
DO NOT PUSH YOUR PRIVATE_KEY TO GITHUB
6.Deploy the contracts to the challenge
Type in the following command in the terminal:
yarn hardhat deploy --network [network] --tags [tags,...]
This will compile the contract and deploy it to your desired network automatically!
The tags to use are at the and of each deploy script.
Distributed under the MIT License. See LICENSE.txt
for more information.