Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
chore: add starknet-devnet version
Browse files Browse the repository at this point in the history
  • Loading branch information
estheroche committed Mar 7, 2024
1 parent 65d87fc commit 996aea1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/ch02-02-01-Starknet-devnet-rs.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ don’t, refer to Basic Installation in this chapter.
```bash
scarb --version # For Cairo code compilation
starkli --version # To interact with Starknet
rustc --version

Devnet # To declare, deploy and test on local
development

Expand All @@ -25,6 +25,7 @@ don’t, refer to Basic Installation in this chapter.
- The required Rust version is specified in [rust-toolchain.toml](#https://github.com/0xSpaceShard/starknet-devnet-rs/blob/main/rust-toolchain.toml) and handled automatically by cargo.
- Run `rustc --version ` to comfirm the rust version.


## Run as a binary

### Installing from crates.io
Expand All @@ -41,9 +42,18 @@ Installing and running as a binary is achievable via `cargo install`. The projec
- Clone
`https://github.com/0xSpaceShard/starknet-devnet-rs.git`
- Navigate into the folder ` cd starknet-devnet-rs`
- Install starknet devnet, run this command:

```bash
cargo install starknet-devnet

```

- Run Devnet
`cargo run`



You should have the result below in your terminal. It generates accounts locally for testing and contract interaction locally, just like `katana`

Compiling starknet-devnet v0.0.2 (/Users/mac/Desktop/devnet/starknet-devnet-rs/crates/starknet-devnet)
Expand Down Expand Up @@ -110,7 +120,7 @@ Seed to replicate this account sequence: 534956567
You can install the latest [scarb](#https://docs.swmansion.com/scarb/download.html) version.

```console
rustc --version #1.73.0 (cc66ad468)
starknet-devnet v0.0.3
scarb 2.6.0 (850b9386a 2024-03-04)
cairo: 2.6.0 (https://crates.io/crates/cairo-lang-compiler/2.6.0)
sierra: 1.5.0
Expand Down

0 comments on commit 996aea1

Please sign in to comment.