MrToph / ethernaut

My solutions to https://ethernaut.openzeppelin.com/

Home Page:https://cmichel.io/ethernaut-solutions/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ethernaut

My solutions to Ethernaut CTF. In-depth explanations for each level can be read on my blog.

Development

npm i

You need to configure environment variables:

cp .env.template .env
# fill out

Pick a mnemonic and the resulting accounts will be used in the challenges.

Hardhat

This repo uses hardhat to run the CTF challenges. Challenges are implemented as hardhat tests in /test.

The tests run on a local hardnet network but it needs to be forked from Rinkeby because it interacts with the challenge factory and submission contract. To fork the Rinkeby testnet, you need an archive URL like the free ones from Alchemy.

Running challenges

Optionally set the block number in the hardhat.config.ts hardhat network configuration to the rinkeby head block number such that the challenge contract is deployed.

# fork rinkeby but run locally
npx hardhat test test/0-hello.ts

About

My solutions to https://ethernaut.openzeppelin.com/

https://cmichel.io/ethernaut-solutions/


Languages

Language:TypeScript 59.9%Language:Solidity 40.1%