Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump fuels-ts to 0.82.0 #249

Merged
merged 6 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
14 changes: 7 additions & 7 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
npx fuels@0.82.0 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 @@ -364,14 +364,14 @@ Tweet us [@fuel_network](https://twitter.com/fuel_network) letting us know you j
### Updating The Contract

<ConditionalContent versionSet={props.versionSet} showForVersions={['default', 'nightly']}>
To develop and test faster, we recommend using the [`fuels dev` command](/docs/fuels-ts/fuels/commands/) to start a local node and automatically redeploy and generate types for your contract on each change.
To develop and test faster, we recommend using the [`fuels dev` command](/docs/fuels-ts/fuels-cli/commands/) to start a local node and automatically redeploy and generate types for your contract on each change.
</ConditionalContent>

Once you're ready to redeploy your contract to the testnet, here are the steps you should take to get your frontend and contract back in sync:

<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`
sarahschwartz marked this conversation as resolved.
Show resolved Hide resolved
- 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
Loading