Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into np/feat/abi-refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk committed Jan 13, 2025
2 parents 5bd8378 + d633eaf commit 86b7109
Show file tree
Hide file tree
Showing 158 changed files with 2,151 additions and 3,863 deletions.
5 changes: 0 additions & 5 deletions .changeset/brave-lies-relax.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/clever-bikes-itch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/clever-rocks-ring.md

This file was deleted.

4 changes: 0 additions & 4 deletions .changeset/dry-hornets-wave.md

This file was deleted.

20 changes: 0 additions & 20 deletions .changeset/fluffy-cooks-worry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gentle-toes-play.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lazy-ears-tap.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/lucky-lizards-arrive.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/metal-fireants-enjoy.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/new-toys-approve.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/old-laws-film.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/olive-buses-count.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/orange-cherries-clean.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/orange-moles-leave.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/rude-flowers-tickle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/seven-balloons-kick.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shaggy-donkeys-exist.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/shaggy-zebras-obey.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shiny-meals-jog.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/small-plums-talk.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/small-spoons-drive.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/strange-experts-roll.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/thin-planes-cover.md

This file was deleted.

20 changes: 0 additions & 20 deletions .changeset/wild-dots-bake.md

This file was deleted.

4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DEVNET_WALLET_PVT_KEY=
TESTNET_WALLET_PVT_KEY=
PUBLISHED_NPM_TAG=
PUBLISHED_NPM_TAG=
NETWORK_TEST_URL=
NETWORK_TEST_PVT_KEY=
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @digorithm @arboleya @Torres-ssf @danielbate @nedsalk @petertonysmith94 @maschad
* @digorithm @arboleya @Torres-ssf @danielbate @nedsalk @petertonysmith94
33 changes: 9 additions & 24 deletions .knip.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
{
"ignore": [
".github/**",
"**/*/fuels.config.*",
"**/*/.vitepress/*",
"/apps/docs/*",
"/packages/abi-typegen/test/**",
"templates/**",
"/apps/docs/**/*.test.ts",
"apps/create-fuels-counter-guide/**",
"apps/docs-api/**"
"entry": [
"apps/docs/src/versions.data.ts",
"apps/docs/src/guide/types/snippets/numbers/for-u8-u16-and-u32-2.ts"
],
"ignore": [".github/**"],
"ignoreDependencies": [
"autocannon",
"fuels",
"bun",
"@/sway-api/*",
"@fuel-ts/*",
"@fuels/connectors",
"@internal/fuel-core",
"@internal/forc",
"@types/jest",
"@types/rimraf",
"@graphql-codegen*",
"graphql-tag",
"@fuel-ts/abi-typegen",
"@internal/fuel-core",
"get-graphql-schema",
"events",
"eslint-plugin-jsdoc",
Expand All @@ -30,14 +18,11 @@
"eslint-plugin-react",
"eslint-plugin-react-hooks",
"dotenv",
"ethers",
"kill",
"lsof",
"memfs",
"open",
"markdown-link-check",
"ts-generator",
"webdriverio",
"syncpack"
"vitepress-plugin-search",
"vue"
]
}
42 changes: 34 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,6 @@ pnpm bench:node
pnpm bench:node packages/my-desired-package
```

# Profiling

We currently use [`clinic`](https://clinicjs.org/) to profile and debug our tooling. For instance you can run clinic's flame command to create a flamegraph for a specific package:

```sh
# creates a flamegraph for a specific package
npm_config_package_name=account pnpm clinic:flame // runs flame against the account package
```

### CI Test

Expand Down Expand Up @@ -369,6 +361,40 @@ We'd follow the same approach as explained in the [Patching old releases](#patch
- have the versions of packages on `master` match the `latest` released package versions,
- have the released functionality on `master` as well

# Network Testing

The network test suite is designed to run locally against a specified network for validation purposes.

You can find the test suite at: `packages/fuel-gauge/src/network.test.ts`.

### Setup Instructions

Before running the tests, you need to configure the `.env` file:

1. Copy the `.env.example` file:

```sh
cp .env.example .env
```

2. Set the values for the following environment variables in the `.env` file:

```env
NETWORK_TEST_URL=https://testnet.fuel.network/v1/graphql
NETWORK_TEST_PVT_KEY=0x...
```

- `NETWORK_TEST_URL`: The URL of which network the test should run (e.g., Fuel Testnet endpoint).
- `NETWORK_TEST_PVT_KEY`: Your private key for the network.

### Running the Test Suite

Once the environment is set up, run the network tests using the following command:

```sh
pnpm test:network
```

# FAQ

### Why is the prefix `fuels` and not `fuel`?
Expand Down
4 changes: 1 addition & 3 deletions apps/create-fuels-counter-guide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test:ui": "sh ./test/ui/test-ui.sh",
"original:dev": "vite",
"original:build": "tsc -b && vite build",
"original:start": "next start",
"original:start": "vite start",
"original:lint": "eslint .",
"fuels:build": "fuels build",
"fuels:dev": "fuels dev",
Expand All @@ -18,8 +18,6 @@
"@fuels/react": "0.36.1",
"@tanstack/react-query": "5.55.4",
"clsx": "2.1.1",
"@wagmi/connectors": "5.1.14",
"@wagmi/core": "2.13.9",
"dotenv": "16.4.5",
"fuels": "workspace:*",
"react": "18.3.1",
Expand Down
2 changes: 0 additions & 2 deletions apps/demo-bun-fuels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
},
"license": "Apache-2.0",
"dependencies": {
"@fuel-ts/account": "workspace:*",
"@fuel-ts/errors": "workspace:*",
"fuels": "workspace:*"
},
"devDependencies": {
Expand Down
2 changes: 0 additions & 2 deletions apps/demo-fuels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
},
"license": "Apache-2.0",
"dependencies": {
"@fuel-ts/errors": "workspace:*",
"@fuel-ts/account": "workspace:*",
"fuels": "workspace:*"
}
}
2 changes: 0 additions & 2 deletions apps/demo-typegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
"fuels": "workspace:*"
},
"devDependencies": {
"@fuel-ts/account": "workspace:*",
"@fuel-ts/errors": "workspace:*",
"@internal/forc": "workspace:*"
}
}
24 changes: 14 additions & 10 deletions apps/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,24 +333,24 @@ export default defineConfig({
collapsed: true,
items: [
{
text: 'Transaction Request',
link: '/guide/transactions/transaction-request',
text: 'Modifying the Request',
link: '/guide/transactions/modifying-the-request',
},
{
text: 'Transaction Parameters',
link: '/guide/transactions/transaction-parameters',
text: 'Adding Parameters',
link: '/guide/transactions/adding-parameters',
},
{
text: 'Transaction Policies',
link: '/guide/transactions/transaction-policies',
text: 'Adding Policies',
link: '/guide/transactions/adding-policies',
},
{
text: 'Transaction Response',
link: '/guide/transactions/transaction-response',
text: 'Getting the Response',
link: '/guide/transactions/getting-the-response',
},
{
text: 'Transaction Subscriptions',
link: '/guide/transactions/transaction-subscriptions',
text: 'Optimizing Frontend Apps',
link: '/guide/transactions/optimizing-frontend-apps',
},
],
},
Expand Down Expand Up @@ -437,6 +437,10 @@ export default defineConfig({
text: 'Splitting UTXOs',
link: '/guide/cookbook/splitting-utxos',
},
{
text: 'Optimized React Example',
link: '/guide/cookbook/optimized-react-example',
},
],
},
{
Expand Down
Loading

0 comments on commit 86b7109

Please sign in to comment.