Skip to content

Commit ce62817

Browse files
LandauRazamanusk
andauthored
PR 1410 rebased (#1413)
* refactored fee mechanism (#1409) * fix typo plugin-add * code review --------- Co-authored-by: amanusk <[email protected]>
1 parent 2d66780 commit ce62817

File tree

1 file changed

+65
-1
lines changed

1 file changed

+65
-1
lines changed

components/Starknet/modules/quick-start/pages/environment-setup.adoc

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ The following tools are recommended to begin developing on Starknet:
2020
|https://docs.swmansion.com/scarb/[docs.swmansion.com/scarb]
2121
|https://github.com/software-mansion/scarb[github.com/software-mansion/scarb]
2222

23+
|Starknet Foundry
24+
|The go to framework for building, and testing Starknet Smart Contracts.
25+
|https://foundry-rs.github.io/starknet-foundry/[foundry-rs.github.io/starknet-foundry]
26+
|https://github.com/foundry-rs/starknet-foundry[github.com/foundry-rs/starknet-foundry]
27+
28+
2329
|===
2430

2531
[#installing_starkli]
@@ -149,4 +155,62 @@ Scarb's installation on Windows requires manual setup.
149155
scarb --version
150156
----
151157

152-
Scarb should now be installed.
158+
Scarb should now be installed.
159+
160+
[#starknet_foundry_setup]
161+
== Setting up Starknet Foundry
162+
163+
// Starknet Foundry is the go to framework for building, and testing Starknet Smart Contracts.
164+
165+
=== Installing Starknet Foundry on MacOS and Linux
166+
167+
Although other options are possible, it is highly recommended to install Starknet Foundry using the link:https://asdf-vm.com/[`asdf` version manager]. Installing Starknet Foundry with `asdf` allows to easily switch between different versions of Starknet Foundry, both globally and per project.
168+
169+
.Procedure
170+
171+
. Verify that `asdf` is installed, or install it by following the instructions on the link:https://asdf-vm.com/guide/getting-started.html[`asdf` documentation].
172+
173+
. Install the `asdf` Starknet Foundry plugin:
174+
+
175+
[source, bash]
176+
----
177+
asdf plugin-add starknet-foundry
178+
----
179+
180+
. Install the latest version of Starknet Foundry:
181+
+
182+
[source, bash]
183+
----
184+
asdf install starknet-foundry latest
185+
----
186+
187+
// . Set a global version for Starknet Foundry using `asdf`:
188+
// +
189+
// [source, bash]
190+
// ----
191+
// asdf global starknet-foundry latest
192+
// ----
193+
194+
195+
. Verify that Starknet Foundry is installed correctly:
196+
+
197+
[source, bash]
198+
----
199+
snforge --version
200+
sncast --version
201+
----
202+
203+
=== Installing Starknet Foundry on Windows
204+
205+
Starknet Foundry's installation on Windows requires manual setup.
206+
207+
.Procedure
208+
209+
. Follow the steps in the link:https://foundry-rs.github.io/starknet-foundry/getting-started/installation.html#installation-on-windows[Starknet Foundry documentation].
210+
. Restart the terminal and verify that Starknet Foundry is installed correctly:
211+
+
212+
[source, bash]
213+
----
214+
snforge --version
215+
sncast --version
216+
----

0 commit comments

Comments
 (0)