From 5e79e29580c21b9f09ed732993e4c69559ab54a6 Mon Sep 17 00:00:00 2001 From: sarahschwartz <58856580+sarahschwartz@users.noreply.github.com> Date: Wed, 15 May 2024 13:12:00 -0600 Subject: [PATCH] cleanup --- .../guides/docs/contract-quickstart/index.mdx | 22 ++++++++++++++++--- .../building-a-smart-contract.mdx | 14 ++++++++++-- .../guides/docs/frontend-quickstart/index.mdx | 18 ++++++++++++++- docs/intro/what-is-fuel.mdx | 1 - scripts/generate-links/index.mjs | 2 +- 5 files changed, 49 insertions(+), 8 deletions(-) diff --git a/docs/guides/docs/contract-quickstart/index.mdx b/docs/guides/docs/contract-quickstart/index.mdx index bef276c82..1e6e67daf 100644 --- a/docs/guides/docs/contract-quickstart/index.mdx +++ b/docs/guides/docs/contract-quickstart/index.mdx @@ -42,6 +42,16 @@ Getting started with Fuel as a smart contract developer is as simple as: commentType="{/*" /> +### Devnet toolchain + +To use the `devnet` toolchain, run the commands below: + +```sh +fuelup self update +fuelup toolchain install devnet +fuelup default devnet +``` + ## Generating a counter contract Run the command below to generate a counter contract in Sway: @@ -60,16 +70,22 @@ The contract will be in the `src/main.sw` file. ## Building and deploying the contract -To build a contract, inside the `counter-contract` folder you can run: +To build a contract, move inside the `counter-contract` folder: + +```sh +cd counter-contract +``` + +Next, run the `forc build` command: ```sh forc build ``` -To deploy the contract to the testnet, you can run: +To deploy the contract to the devnet, you can run: ```sh -forc deploy --node-url https://devnet.fuel.network/v1/graphql +forc deploy --testnet ``` -### Already have `fuelup` installed? +### Devnet toolchain + +To use the `devnet` toolchain, run the commands below: + +```sh +fuelup self update +fuelup toolchain install devnet +fuelup default devnet +``` + +{/* ### Already have `fuelup` installed? If you already have `fuelup` installed, run the commands below to make sure you are on the most up-to-date toolchain. @@ -42,7 +52,7 @@ If you already have `fuelup` installed, run the commands below to make sure you fuelup self update fuelup update fuelup default latest -``` +``` */} ## Your First Sway Project diff --git a/docs/guides/docs/frontend-quickstart/index.mdx b/docs/guides/docs/frontend-quickstart/index.mdx index e1c744aca..c81681893 100644 --- a/docs/guides/docs/frontend-quickstart/index.mdx +++ b/docs/guides/docs/frontend-quickstart/index.mdx @@ -42,6 +42,16 @@ Getting started with Fuel as a frontend or fullstack developer is as simple as: commentType="{/*" /> +### Devnet toolchain + +To use the `devnet` toolchain, run the commands below: + +```sh +fuelup self update +fuelup toolchain install devnet +fuelup default devnet +``` + ## Generating a counter dapp You can generate a full-stack counter dapp in seconds with the `create fuels` CLI: @@ -60,7 +70,13 @@ npm create fuels ## Running the project locally -In the project directory, run the following command to start a local development node: +Move into the project directory. Assuming you named the project `my-fuel-project`, you can run: + +```sh +cd my-fuel-project +``` + +Next, run the following command to start a local development node: diff --git a/docs/intro/what-is-fuel.mdx b/docs/intro/what-is-fuel.mdx index d1db8a7d1..18ed71182 100644 --- a/docs/intro/what-is-fuel.mdx +++ b/docs/intro/what-is-fuel.mdx @@ -138,7 +138,6 @@ cardsInfo={[ ### Network Fuel is currently live on testnet only. -The latest testnet network is the {props.fuelTestnetInlineCode} testnet.