Skip to content

Commit

Permalink
Merge branch 'master' into st/fix/validate-receipts-from-estimation-d…
Browse files Browse the repository at this point in the history
…ry-run
  • Loading branch information
Torres-ssf committed May 15, 2024
2 parents aa869a5 + 8d47509 commit 79a6ac4
Show file tree
Hide file tree
Showing 199 changed files with 10,603 additions and 22,172 deletions.
4 changes: 0 additions & 4 deletions .changeset/green-houses-applaud.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/grumpy-years-stare.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lemon-berries-arrive.md

This file was deleted.

4 changes: 0 additions & 4 deletions .changeset/ninety-pianos-crash.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/rotten-bananas-explode.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/spotty-rats-dance.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tame-icons-film.md

This file was deleted.

File renamed without changes.
6 changes: 3 additions & 3 deletions .github/actions/ci-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ runs:
using: "composite"
steps:
- name: Cache PNPM modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.local/share/pnpm/store/v4
key: ${{ runner.os }}-node-${{ inputs.node-version }}-pnpm-${{ inputs.pnpm-version }}-lock-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
registry-url: "https://registry.npmjs.org"

- name: Setup PNPM
uses: pnpm/action-setup@v2.1.0
uses: pnpm/action-setup@v4
with:
version: ${{ inputs.pnpm-version }}
run_install: true
6 changes: 3 additions & 3 deletions .github/actions/test-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ runs:
using: "composite"
steps:
- name: Cache PNPM modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.local/share/pnpm/store/v4
key: ${{ runner.os }}-node-${{ inputs.node-version }}-pnpm-${{ inputs.pnpm-version }}-lock-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
registry-url: "https://registry.npmjs.org"

- name: Setup PNPM
uses: pnpm/action-setup@v2.1.0
uses: pnpm/action-setup@v4
with:
version: ${{ inputs.pnpm-version }}
run_install: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/breaking-change-pr-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ jobs:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: FuelLabs/github-actions/setups/node@master
- uses: ./.github/actions/ci-setup
with:
node-version: 20.10.0
pnpm-version: 9.0.5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/forc-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
verify-forc-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: CI Setup
uses: ./.github/actions/ci-setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/md-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI Setup
uses: ./.github/actions/ci-setup
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-unpublish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
name: Unpublish versions next and pr
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v3
- uses: FuelLabs/github-actions/setups/node@master
- uses: actions/checkout@v4
- uses: ./.github/actions/ci-setup
- uses: FuelLabs/github-actions/setups/npm@master
with:
npm-token: ${{ secrets.NPM_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:

- name: Checkout API Docs
if: env.SHOULD_DEPLOY_DOCS == 'true'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: docs
fetch-depth: 0
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
environments:
runs-on: ubuntu-latest
# name will be node@<version> or browser
name: ${{ matrix.env.name }}${{ matrix.env.name == 'node' && '@' || ''}}${{ matrix.env.name == 'node' && matrix.env.version || ''}}
name: ${{ matrix.env.name }}${{ matrix.env.version && '@' || ''}}${{ matrix.env.version || ''}}
strategy:
fail-fast: false
matrix:
Expand All @@ -33,7 +33,7 @@ jobs:
timeout-minutes: 25
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI Setup
uses: ./.github/actions/test-setup
Expand Down Expand Up @@ -63,10 +63,11 @@ jobs:
run: pnpm ci:test --${{ matrix.env.name }}

- name: Upload Coverage - ${{ matrix.env.name }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.env.name }}
path: coverage/environments/${{ matrix.env.name }}
overwrite: true

e2e:
runs-on: ubuntu-latest
Expand All @@ -75,7 +76,7 @@ jobs:
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -99,7 +100,7 @@ jobs:
needs: [environments, e2e]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI Setup
uses: ./.github/actions/test-setup
Expand All @@ -108,7 +109,7 @@ jobs:
run: mkdir -p coverage/environments

- name: Download Coverage Artifact for Node Tests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: node
path: coverage/environments
Expand All @@ -121,7 +122,7 @@ jobs:
id: findPr

- name: Upload Master Coverage Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ !steps.findPr.outputs.number }}
with:
name: coverage-master
Expand Down Expand Up @@ -155,13 +156,13 @@ jobs:
if: github.actor == 'dependabot[bot]'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.client_payload.ref }}

- name: Setup PNPM
uses: pnpm/action-setup@v2.1.0
uses: pnpm/action-setup@v4
with:
version: 9.0.5
run_install: true
Expand Down
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
"options": {
"useTabs": false
}
},
{
"files": ["pnpm-lock.yaml"],
"options": {
"singleQuote": true,
"printWidth": 300,
"bracketSpacing": false
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ describe('Transaction Request', () => {
// #endregion transaction-request-7

expect(transactionId).toBe(
'0x20995f5333a9cd4d7acfab212ee723faec022fd0bd17b7778d552f624ea55d8e'
'0xb82d9e3da13a1b56b623238c0d7a7ab4d602f2c7f886bf7a9c05ecfb99267ce3'
);
});
});
6 changes: 1 addition & 5 deletions apps/docs/src/guide/types/vectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,4 @@ Some functions require you to pass in bytecode to the function. The type of the

To pass bytecode to this function, you can make use of the `arrayify` function to convert the bytecode file contents into a `UInt8Array`, the TS compatible type for Sway's `Vec<u8>` type and pass it the function like so:

<<< @/../../docs-snippets/src/guide/types/vector.test.ts#vector-bytecode-input-ts{ts:line-numbers}

## Returning vectors

Currently, returning vectors is not supported by Sway. If you try returning a type that is or contains a Vector, you will get a compile-time error.
<<< @/../../docs-snippets/src/guide/types/vector.test.ts#vector-bytecode-input-ts{ts:line-numbers}
28 changes: 28 additions & 0 deletions internal/check-imports/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,34 @@

### Patch Changes

- Updated dependencies [316c757]
- Updated dependencies [ee969d3]
- Updated dependencies [8866c09]
- Updated dependencies [16196b6]
- Updated dependencies [0651a5f]
- Updated dependencies [64e9659]
- @fuel-ts/account@0.86.0
- @fuel-ts/crypto@0.86.0
- @fuel-ts/utils@0.86.0
- @fuel-ts/errors@0.86.0
- fuels@0.86.0
- @fuel-ts/abi-coder@0.86.0
- @fuel-ts/transactions@0.86.0
- @fuel-ts/versions@0.86.0
- @fuel-ts/program@0.86.0
- @fuel-ts/script@0.86.0
- @fuel-ts/contract@0.86.0
- @fuel-ts/address@0.86.0
- @fuel-ts/hasher@0.86.0
- @fuel-ts/abi-typegen@0.86.0
- @fuel-ts/math@0.86.0
- @fuel-ts/merkle@0.86.0
- @fuel-ts/interfaces@0.86.0

## null

### Patch Changes

- Updated dependencies [9bc893b]
- Updated dependencies [d0e9b1a]
- Updated dependencies [1115ade]
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
"pretest": "turbo run pretest",
"depcheck": "knip --dependencies --tags=-knipignore",
"knip:fix": "knip --fix",
"test": "vitest --run --coverage --config vite.node.config.mts $(scripts/tests-find.sh --node)",
"test:filter": "vitest --run --coverage --config vite.node.config.mts",
"test": "vitest --run --coverage --config vitest.node.config.mts $(scripts/tests-find.sh --node)",
"test:filter": "vitest --run --coverage --config vitest.node.config.mts",
"test:coverage-merge": "tsx ./scripts/tests-coverage-merge.ts",
"test:coverage-diff": "tsx ./scripts/tests-coverage-diff.ts",
"test:watch": "vitest --watch --config vite.node.config.mts $(scripts/tests-find.sh --node)",
"test:watch": "vitest --watch --config vitest.node.config.mts $(scripts/tests-find.sh --node)",
"test:validate": "./scripts/tests-validate.sh",
"test:browser": "vitest --run --coverage --config vite.browser.config.mts $(scripts/tests-find.sh --browser)",
"test:browser:filter": "vitest --run --coverage --config vite.browser.config.mts",
"test:e2e": "vitest --run --config vite.node.config.mts $(scripts/tests-find.sh --e2e)",
"test:browser": "vitest --run --coverage --config vitest.browser.config.mts $(scripts/tests-find.sh --browser)",
"test:browser:filter": "vitest --run --coverage --config vitest.browser.config.mts",
"test:e2e": "vitest --run --config vitest.node.config.mts $(scripts/tests-find.sh --e2e)",
"lint": "run-s lint:check prettier:check",
"lint:check": "eslint . --ext .ts --max-warnings 0",
"lint:fix": "pnpm lint:check --fix",
"lint:md-links": "tsx ./scripts/lint-md-links",
"lint:package-jsons": "tsx ./scripts/lint-package-jsons",
"prettier:check": "prettier --check packages --check apps/docs-snippets",
"prettier:format": "prettier --write packages --check apps/docs-snippets",
"prettier:check": "prettier --check pnpm-lock.yaml --check packages --check apps/docs-snippets",
"prettier:format": "prettier --write pnpm-lock.yaml --write packages --check apps/docs-snippets",
"verify:package-exports": "tsx ./scripts/verify-package-exports",
"changeset:publish": "tsx ./scripts/changeset/changeset-publish",
"changeset:next": "tsx ./scripts/changeset/changeset-next",
Expand Down Expand Up @@ -104,7 +104,7 @@
"ts-generator": "^0.1.1",
"tsup": "^6.7.0",
"tsx": "^4.7.0",
"turbo": "^1.8.8",
"turbo": "^1.13.3",
"typescript": "~5.2.2",
"vite": "^5.2.10",
"vite-plugin-node-polyfills": "^0.21.0",
Expand Down
19 changes: 19 additions & 0 deletions packages/abi-coder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Change Log

## 0.86.0

### Minor Changes

- 64e9659: feat!: upgrade `forc@0.58.0` and remove `V0` encoding

### Patch Changes

- 16196b6: feat: `VecCoder@v1` accepts `UInt8Array` as encode input
- 0651a5f: chore: remove `ethers` from `abi-coder`
- Updated dependencies [316c757]
- Updated dependencies [0651a5f]
- @fuel-ts/crypto@0.86.0
- @fuel-ts/utils@0.86.0
- @fuel-ts/errors@0.86.0
- @fuel-ts/hasher@0.86.0
- @fuel-ts/math@0.86.0
- @fuel-ts/interfaces@0.86.0

## 0.85.0

### Patch Changes
Expand Down
Loading

0 comments on commit 79a6ac4

Please sign in to comment.