How to use
You can use Sol2Ink either with cargo run or by running the binary of Sol2Ink.
Using
cargo run
- Sol2Ink runs on the nightly toolchain of Rust, so you will need that installed
- Clone the Sol2Ink repository with
git clone https://github.com/Brushfam/sol2ink
- Copy the path to your Solidity files. It can be either a single .sol file or a folder with multiple .sol files. Navigate to the cloned repo and run
cargo +nightly run path_to_files
substitutingpath_to_files
with the actual name of the file or folder. - The output will be saved in the folder of the original file under
generated
Using Sol2Ink binary
- Download Sol2Ink from the release page
- Navigate to the folder where you saved the binary
- Run
./sol2ink path_to_files
substitutingpath_to_files
with the actual name of the file or folder. - The output will be saved in the folder of the original file under
generated