Skip to content

Commit

Permalink
Merge branch 'master' into create-assetid-helper-fn
Browse files Browse the repository at this point in the history
  • Loading branch information
bolajahmad authored Jul 2, 2024
2 parents 075ef73 + 99b14a5 commit ba6dbc4
Show file tree
Hide file tree
Showing 106 changed files with 1,247 additions and 948 deletions.
5 changes: 5 additions & 0 deletions .changeset/cuddly-cooks-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuel-ts/account": patch
---

build(deps-dev): bump @graphql-codegen/typescript-*
4 changes: 4 additions & 0 deletions .changeset/cuddly-humans-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

build(deps-dev): bump bun from 1.1.12 to 1.1.17
5 changes: 5 additions & 0 deletions .changeset/early-squids-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-fuels": patch
---

feat: add next link component to `create-fuels`
2 changes: 2 additions & 0 deletions .changeset/eight-grapes-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
4 changes: 4 additions & 0 deletions .changeset/fifty-worms-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

ci: introduce github credentials for committing changesets
5 changes: 5 additions & 0 deletions .changeset/four-flowers-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels": patch
---

chore: export test and cli utilities in `fuels` umbrella package
4 changes: 4 additions & 0 deletions .changeset/lucky-games-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

docs: update transaction parameters doc page
5 changes: 5 additions & 0 deletions .changeset/new-toys-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels": patch
---

build(deps): bump yup from 0.32.11 to 1.4.0
4 changes: 4 additions & 0 deletions .changeset/quiet-apes-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

build(deps-dev): bump vite-plugin-node-polyfills from 0.21.0 to 0.22.0
5 changes: 5 additions & 0 deletions .changeset/rude-cameras-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-fuels": patch
---

build(deps): bump react and @types/react
5 changes: 5 additions & 0 deletions .changeset/shy-panthers-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuel-ts/abi-typegen": patch
---

build(deps): bump rimraf from 3.0.2 to 5.0.7
4 changes: 4 additions & 0 deletions .changeset/sour-forks-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

docs: add `Provider` doc section for `cacheUtxo`
5 changes: 5 additions & 0 deletions .changeset/strange-lizards-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-fuels": patch
---

build(deps): bump react-dom and @types/react-dom
5 changes: 5 additions & 0 deletions .changeset/strong-hounds-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels": patch
---

build(deps): bump esbuild from 0.19.3 to 0.22.0
5 changes: 5 additions & 0 deletions .changeset/warm-numbers-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuel-ts/logger": patch
---

build(deps): bump debug from 4.3.4 to 4.3.5
5 changes: 2 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
open-pull-requests-limit: 10
interval: "daily"
open-pull-requests-limit: 1
labels:
- "chore"
commit-message:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/pr-validate-changesets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,16 @@ jobs:
env:
PR_TITLE: ${{ github.event.pull_request.title }}

- name: Set up .netrc file
run: |
echo "machine github.com" > $HOME/.netrc
echo "login github-actions[bot]" >> $HOME/.netrc
echo "password ${{ secrets.REPO_TOKEN }}" >> $HOME/.netrc
chmod 600 $HOME/.netrc
- name: Commit Changeset
run: |
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git add .
git commit -m "build: update dependency changeset"
Expand Down
8 changes: 4 additions & 4 deletions apps/create-fuels-counter-guide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
"@tanstack/react-query": "^5.29.2",
"dotenv": "^16.4.5",
"next": "14.2.4",
"react": "^18.2",
"react-dom": "^18.2",
"react": "^18.3",
"react-dom": "^18.3",
"react-hot-toast": "^2.4.1",
"react-use": "^17.5.0"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18.2",
"@types/react-dom": "^18.2",
"@types/react": "^18.3",
"@types/react-dom": "^18.3",
"autoprefixer": "^10.0.1",
"eslint": "^8",
"eslint-config-next": "14.2.4",
Expand Down
6 changes: 4 additions & 2 deletions apps/create-fuels-counter-guide/src/components/Link.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import NextLink from 'next/link';

export const Link = ({
href,
children,
Expand All @@ -10,12 +12,12 @@ export const Link = ({
target?: string;
}) => {
return (
<a
<NextLink
href={href}
className={`text-fuel-green hover:underline ${className}`}
target={target}
>
{children}
</a>
</NextLink>
);
};
2 changes: 1 addition & 1 deletion apps/demo-bun-fuels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"version": null,
"devDependencies": {
"bun": "^1.1.9"
"bun": "^1.1.17"
}
}
3 changes: 1 addition & 2 deletions apps/demo-bun-fuels/src/bun.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
* It ensures that built code is fully working.
*/

import { generateTestWallet } from '@fuel-ts/account/test-utils';
import { safeExec } from '@fuel-ts/errors/test-utils';
import { ContractFactory, Provider, toHex, Wallet, FUEL_NETWORK_URL } from 'fuels';
import { generateTestWallet , safeExec } from 'fuels/test-utils';

import { SampleAbi__factory } from './sway-programs-api';
import bytecode from './sway-programs-api/contracts/SampleAbi.hex';
Expand Down
3 changes: 1 addition & 2 deletions apps/demo-fuels/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
* It ensures that built code is fully working.
*/

import { generateTestWallet } from '@fuel-ts/account/test-utils';
import { safeExec } from '@fuel-ts/errors/test-utils';
import { ContractFactory, Provider, toHex, Wallet, FUEL_NETWORK_URL } from 'fuels';
import { generateTestWallet , safeExec } from 'fuels/test-utils';

import { SampleAbi__factory } from './sway-programs-api';
import bytecode from './sway-programs-api/contracts/SampleAbi.hex';
Expand Down
8 changes: 4 additions & 4 deletions apps/demo-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"dependencies": {
"@fuels/vm-asm": "0.54.0",
"@types/node": "18.15.3",
"@types/react-dom": "18.2.4",
"@types/react": "18.2.9",
"@types/react-dom": "18.3.0",
"@types/react": "18.3.3",
"fuels": "workspace:*",
"next": "14.2.4",
"react-dom": "18.2.0",
"react": "18.2.0",
"react-dom": "18.3.1",
"react": "18.3.1",
"typescript": "~5.4.5"
}
}
8 changes: 4 additions & 4 deletions apps/demo-react-cra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"@fuels/vm-asm": "0.54.0",
"@testing-library/react": "^16.0.0",
"@types/node": "^16.18.34",
"@types/react": "^18.2.9",
"@types/react-dom": "^18.2.4",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"eslint-config-react-app": "^7.0.1",
"fuels": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-scripts": "5.0.1",
"typescript": "~5.4.5",
"web-vitals": "^2.1.4"
Expand Down
8 changes: 4 additions & 4 deletions apps/demo-react-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"dependencies": {
"@fuels/vm-asm": "0.54.0",
"fuels": "workspace:*",
"react-dom": "^18.2.0",
"react": "^18.2.0"
"react-dom": "^18.3.1",
"react": "^18.3.1"
},
"devDependencies": {
"@types/react": "^18.0.37",
"@types/react-dom": "^18.0.11",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"@vitejs/plugin-react": "^4.2.1",
Expand Down
3 changes: 1 addition & 2 deletions apps/demo-typegen/src/demo.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// #region Testing-in-ts-ts
import { generateTestWallet } from '@fuel-ts/account/test-utils';
import { safeExec } from '@fuel-ts/errors/test-utils';
import { ContractFactory, Provider, toHex, Wallet, FUEL_NETWORK_URL, Address } from 'fuels';
import { generateTestWallet , safeExec } from 'fuels/test-utils';

import storageSlots from '../contract/out/release/demo-contract-storage_slots.json';

Expand Down
4 changes: 2 additions & 2 deletions apps/demo-wallet-sdk-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"@tanstack/react-query": "^5.29.2",
"fuels": "workspace:*",
"next": "14.2.4",
"react": "^18",
"react": "^18.3.1",
"react-dom": "^18"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react": "^18.3.3",
"@types/react-dom": "^18",
"autoprefixer": "^10.0.1",
"postcss": "^8",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ASSET_A, ASSET_B } from '@fuel-ts/utils/test-utils';
import type { Account, Contract, Provider, TransferParams } from 'fuels';
import { Wallet } from 'fuels';
import { ASSET_A, ASSET_B } from 'fuels/test-utils';

import { DocSnippetProjectsEnum } from '../../../test/fixtures/forc-projects';
import { createAndDeployContractFromProject, getTestWallet } from '../../utils';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { generateTestWallet } from '@fuel-ts/account/test-utils';
import {
FUEL_NETWORK_URL,
Provider,
Expand All @@ -9,6 +8,7 @@ import {
arrayify,
} from 'fuels';
import type { Account, JsonAbi, JsonAbiArgument, TransactionResultReturnDataReceipt } from 'fuels';
import { generateTestWallet } from 'fuels/test-utils';

import abiSnippet from '../../../test/fixtures/abi/encode-and-decode.jsonc';
import { SumScriptAbi__factory as factory } from '../../../test/typegen/scripts/factories/SumScriptAbi__factory';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { seedTestWallet } from '@fuel-ts/account/test-utils';
import type { Provider, WalletUnlocked } from 'fuels';
import { ScriptTransactionRequest, bn, Predicate, BN } from 'fuels';
import { seedTestWallet } from 'fuels/test-utils';

import {
DocSnippetProjectsEnum,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { seedTestWallet } from '@fuel-ts/account/test-utils';
import { safeExec } from '@fuel-ts/errors/test-utils';
import type { Provider } from 'fuels';
import { WalletUnlocked, Predicate, getRandomB256 } from 'fuels';
import { seedTestWallet, safeExec } from 'fuels/test-utils';

import {
DocSnippetProjectsEnum,
Expand Down
10 changes: 10 additions & 0 deletions apps/docs-snippets/src/guide/provider/provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ describe('Provider', () => {
// #endregion options-fetch
});

it('options: cacheUtxo', async () => {
// #region options-cache-utxo
const provider = await Provider.create(FUEL_NETWORK_URL, {
cacheUtxo: 5000, // cache UTXO for 5 seconds
});
// #endregion options-cache-utxo

expect(provider).toBeDefined();
});

it('fetches the base asset ID', async () => {
const recipientAddress = Address.fromRandom();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { generateTestWallet } from '@fuel-ts/account/test-utils';
import { FUEL_NETWORK_URL, Provider, ScriptTransactionRequest, bn } from 'fuels';
import { generateTestWallet } from 'fuels/test-utils';

/**
* @group node
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ASSET_A, ASSET_B } from '@fuel-ts/utils/test-utils';
import {
BN,
ContractFactory,
Expand All @@ -8,6 +7,7 @@ import {
Provider,
} from 'fuels';
import type { CoinQuantityLike, Contract, WalletUnlocked } from 'fuels';
import { ASSET_A, ASSET_B } from 'fuels/test-utils';

import {
DocSnippetProjectsEnum,
Expand Down
Loading

0 comments on commit ba6dbc4

Please sign in to comment.