Skip to content

Ethernaut solution in Rust. With command line interface to interact with the game.

Notifications You must be signed in to change notification settings

0xYYY/ethernaut-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ethernaut-rs [WIP]

Ethernaut solution in Rust. With command line interface to interact with the game.

(This is a personal project for me to learn Ethereum, Solidity, Rust, ethers-rs, etc.)

Command Line Interface

View problem description, create level instance and submit solution all in the command line.

USAGE:
    ethernaut-rs [SUBCOMMAND]

FLAGS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    help      Print this message or the help of the given subcommand(s)
    new       Create a new instance of a level
    info      Print level info
    readmesolve     Run solution
    status    Print status of each level
    submit    Submit to check whether the level is solved

Usage

Use ethernaut-rs status to view overall progress. The symbols before each level mean:

  • .: Not started.
  • ~: Attempted but not solved.
  • v: Completed.

Run ethernaut-rs new LEVEL to start/reset a level and create a new instance. And with ethernaut-rs info LEVEL, you can see the current status, description and instance address of a level.

Implement the solution in src/solutions/solutionXX.rs then run ehternaut-rs solve LEVEL to execute the solution. Then use ethernaut-rs submit LEVEL to submit the instance and check whether the level is completed.

TODO

  • Get level info from Ethernaut repo instead of copying from website.
  • Add testing with dapptools-rs and subcommand test.
  • Finish solutions.
  • Cleanup code: remove duplication, use OOP, etc.

Related Repos

About

Ethernaut solution in Rust. With command line interface to interact with the game.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published