Skip to content

Commit

Permalink
chore: address configure contract linking
Browse files Browse the repository at this point in the history
  • Loading branch information
metalboyrick committed Oct 15, 2024
1 parent 0530864 commit d98de62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/hooks/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_position: 4

Scaffold-Stark provides a collection of custom React hooks designed to simplify interactions with your deployed smart contracts. These hooks are wrappers around Starknet-React, an easy-to-use interface with typescript autocompletions for reading from, writing to, and monitoring events emitted by your smart contracts.

If you need to interact with external contracts (i.e. not deployed with your SS-2 instance) you can add external contract data to your `packages/nextjs/contracts/preDeployedContracts.ts` file, which would let you use Scaffold-Stark hooks.
If you need to interact with external contracts (i.e. not deployed with your SS-2 instance) you can add external contract data to your `packages/nextjs/contracts/preDeployedContracts.ts` file, which would let you use Scaffold-Stark hooks. You can also use our [external contract fetching tool](/quick-start/configure-contracts) that allows you to bring in external contracts with few simple clicks.

To achieve this, include the contract name, its `address`, and `abi` in `preDeployedContracts.ts` for each chain ID. Ensure to update the [`targetNetworks`](/deploying/deploy-nextjs-app#--targetnetworks) in `scaffold.config.ts` to your preferred chains to enable hooks typescript autocompletion.

Expand Down
12 changes: 6 additions & 6 deletions docs/quick-start/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ asdf plugin add scarb
This will allow you to download specific versions. You can choose the same version as the Dojo's Cairo version, for example, 2.6.5, with the following command:

```bash
asdf install scarb 2.8.2
asdf install scarb 2.8.3
```

and set a global version:

```bash
asdf global scarb 2.8.2
asdf global scarb 2.8.3
```

Otherwise, you can simply run the following command in your terminal, and follow the onscreen instructions. This
will install the version `2.6.5` of Scarb.
will install the version `2.8.3` of Scarb.

```bash
curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh -s -- -v 2.8.2
Expand All @@ -83,7 +83,7 @@ cargo install starknet-devnet --version 0.2.0

## Install Starknet Foundry

If your Starknet Foundry version is not 0.30.0, you need to install it.
If your Starknet Foundry version is not 0.31.0, you need to install it.

```sh
snforge --version
Expand All @@ -104,13 +104,13 @@ asdf plugin add starknet-foundry
This will allow you to download specific versions.

```bash
asdf install starknet-foundry 0.30.0
asdf install starknet-foundry 0.31.0
```

and set a global version:

```bash
asdf global starknet-foundry 0.30.0
asdf global starknet-foundry 0.31.0
```

</details>
Expand Down

0 comments on commit d98de62

Please sign in to comment.