Skip to content

Commit

Permalink
bump fuels-ts to 0.82.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahschwartz committed Apr 25, 2024
1 parent 3f71412 commit f175d70
Show file tree
Hide file tree
Showing 13 changed files with 187 additions and 250 deletions.
2 changes: 1 addition & 1 deletion docs/fuels-ts
Submodule fuels-ts updated 415 files
6 changes: 3 additions & 3 deletions docs/guides/docs/intro-to-sway/typescript-sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ action={{
/>

```sh
npm install fuels@0.79.0 @fuels/[email protected] @fuels/[email protected] @tanstack/[email protected]
npm install fuels@0.82.0 @fuels/[email protected] @fuels/[email protected] @tanstack/[email protected]
```

## Generate contract types
Expand All @@ -60,7 +60,7 @@ action={{
/>

```sh
npx fuels init --contracts ../contract/ --output ./src/contracts
npx fuels@0.82.0 init --contracts ../contract/ --output ./src/contracts
```

Now that you have a `fuels.config.ts` file, you can use the `fuels build` command to rebuild your contract and generate types.
Expand Down Expand Up @@ -88,7 +88,7 @@ action={{
/>

```sh
npx fuels build
npx fuels@0.82.0 build
```

A successful process should print and output like the following:
Expand Down
12 changes: 6 additions & 6 deletions docs/guides/docs/quickstart/building-a-frontend.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ action={{
<ConditionalContent versionSet={props.versionSet} showForVersions={['default', 'nightly']}>

```sh
npm install fuels@0.79.0 @fuels/[email protected] @fuels/[email protected] @tanstack/[email protected]
npm install fuels@0.82.0 @fuels/[email protected] @fuels/[email protected] @tanstack/[email protected]
```

</ConditionalContent>
Expand Down Expand Up @@ -159,7 +159,7 @@ action={{
/>

```sh
npx fuels init --contracts ../counter-contract/ --output ./src/sway-api
npm fuels init --contracts ../counter-contract/ --output ./src/sway-api
```

Now that you have a `fuels.config.ts` file, you can use the `fuels build` command to rebuild your contract and generate types.
Expand All @@ -177,7 +177,7 @@ action={{
/>

```sh
npx fuels build
npx fuels@0.82.0 build
```

A successful process should print and output like the following:
Expand Down Expand Up @@ -210,7 +210,7 @@ action={{
/>

```console
npx fuels typegen -i ../counter-contract/out/debug/*-abi.json -o ./src/contracts
npx fuels@0.67.0 typegen -i ../counter-contract/out/debug/*-abi.json -o ./src/contracts
```

A successful process should print and output like the following:
Expand Down Expand Up @@ -371,7 +371,7 @@ Once you're ready to redeploy your contract to the testnet, here are the steps y

<ConditionalContent versionSet={props.versionSet} showForVersions={['default', 'nightly']}>

- In your frontend directory, re-run this command: `npx fuels build`.
- In your frontend directory, re-run this command: `npx fuels@0.82.0 build`.
- In your contract directory, redeploy the contract by running this command and following the same steps as above to sign the transaction with your wallet: `forc deploy --testnet`.
- In your frontend directory, update the contract ID in your `App.tsx` file.
</ConditionalContent>
Expand All @@ -380,7 +380,7 @@ Once you're ready to redeploy your contract to the testnet, here are the steps y

- In your contract directory, run `forc build`
- In your contract directory, redeploy the contract by running this command and following the same steps as above to sign the transaction with your wallet: `forc deploy --node-url https://beta-4.fuel.network/graphql --gas-price 1`
- In your frontend directory, re-run this command: `npx fuels typegen -i ../counter-contract/out/debug/*-abi.json -o ./src/contracts`
- In your frontend directory, re-run this command: `npx fuels@0.67.0 typegen -i ../counter-contract/out/debug/*-abi.json -o ./src/contracts`
- In your frontend directory, update the contract ID in your `App.tsx` file
</ConditionalContent>

Expand Down
4 changes: 2 additions & 2 deletions docs/guides/docs/quickstart/building-a-smart-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ fuelup default latest
<CodeTabs>

```sh
pnpm create fuels
pnpm create fuels@82.0
```

```sh
npm create fuels
npm create fuels@82.0
```

</CodeTabs>
Expand Down
Loading

0 comments on commit f175d70

Please sign in to comment.