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

refactor: migrate wallet snippets from fuel gauge #1669

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
cd99e17
Adding RCs list
arboleya Dec 8, 2023
2b9495a
Ignoring RC labels
arboleya Dec 8, 2023
4dfd727
Configuring RC label
arboleya Dec 8, 2023
75ed18d
Re-configuring RC label
arboleya Dec 8, 2023
820b5e2
Adjusting PRs accepted labels
arboleya Dec 8, 2023
8b2c663
Merge branch 'master' into rc/salamander
arboleya Dec 10, 2023
8ebd388
chore: updating code owners (#1496)
arboleya Dec 12, 2023
4b3c8ea
Merge branch 'master' into rc/salamander
arboleya Dec 12, 2023
e12a62d
Merge branch 'master' into rc/salamander
arboleya Dec 13, 2023
c7b9b92
Merge branch 'master' into rc/salamander
arboleya Dec 13, 2023
cdc3e84
Merge branch 'master' into rc/salamander
arboleya Dec 13, 2023
8bea836
docs: purge hardcoded snippets on 'using typegen' page (#1403)
Dhaiwat10 Dec 14, 2023
5d5c939
chore: remove method that's same as base method (#1445)
nedsalk Dec 14, 2023
cd7aed5
Merge branch 'master' into rc/salamander
arboleya Dec 14, 2023
5261579
chore: implement RC workflow (#1497)
danielbate Dec 15, 2023
6a1c2f1
chore: fix rc release string replace (#1529)
danielbate Dec 15, 2023
b52c137
Merge branch 'master' into rc/salamander
arboleya Dec 15, 2023
e236fc8
Merge branch 'master' into rc/salamander
arboleya Dec 15, 2023
55e8301
docs: Update some hyperlinks to reference the new documentation hub (…
petertonysmith94 Dec 18, 2023
c5e56b4
Merge branch 'master' into rc/salamander
arboleya Dec 19, 2023
53ab0d6
chore: improve rc release message (#1559)
danielbate Dec 19, 2023
8021b38
feat: GraphQL subscriptions (#1374)
nedsalk Dec 20, 2023
58ef6e7
chore: pin `graphql-request` to `v5` (#1567)
danielbate Dec 20, 2023
e52a1cc
Merge branch 'master' into rc/salamander
arboleya Dec 20, 2023
5ebe5eb
chore: upgrade `tsx` (#1574)
danielbate Dec 20, 2023
5f12a6b
feat: migrate from Jest to Vitest (#1310)
danielbate Dec 21, 2023
92add1d
chore: fix temp test workflow (#1579)
danielbate Dec 21, 2023
76fee0e
Merge branch 'master' into rc/salamander
arboleya Dec 21, 2023
098c349
Fixing tsconfig.json
arboleya Dec 21, 2023
d759de2
chore: update required node engine in `create-fuels` (#1582)
danielbate Dec 21, 2023
576a46e
chore: add node version test matrix (#1575)
danielbate Dec 21, 2023
d3335de
chore: fix broken rc message (#1580)
danielbate Dec 22, 2023
c988199
chore: update nodejs to v20 (#1544)
nedsalk Dec 22, 2023
8d84846
feat: accepting addresses as `string` (#1583)
Torres-ssf Dec 22, 2023
773194c
chore: properly format the PR coverage report comment (#1586)
danielbate Dec 22, 2023
7949bb8
fix: flaky test (#1590)
Torres-ssf Dec 22, 2023
00e5850
docs: update `deposit-and-withdraw` page (#1591)
Torres-ssf Dec 23, 2023
563914e
feat: retry mechanism (#1474)
nedsalk Jan 3, 2024
87b7ce1
Merge branch 'master' into rc/salamander
arboleya Jan 3, 2024
7e46db9
Merge branch 'master' into rc/salamander
arboleya Jan 4, 2024
f698256
feat: replaced `semver` dependency with custom implementation (#1594)
nedsalk Jan 5, 2024
6c82640
feat: replace `elliptic` with `@noble/curves` (#1601)
nedsalk Jan 5, 2024
168a0e8
Merge branch 'master' into rc/salamander
arboleya Jan 5, 2024
ad7ee46
chore: fix CI failing due to missing tag in test (#1614)
nedsalk Jan 5, 2024
78e5e40
feat: improve ABI Coders `decode` validation (#1426)
danielbate Jan 5, 2024
ad5923d
Merge branch 'master' into rc/salamander
arboleya Jan 9, 2024
6796ef2
fix: do not generate a coverage diff without coverage artifact (#1629)
danielbate Jan 11, 2024
0668d88
Merge branch 'master' into rc/salamander
arboleya Jan 11, 2024
d31ee60
chore: pinpoint vitest to 1.0.4 (#1637)
arboleya Jan 12, 2024
88f9940
docs: copied "it can work with wallets" test to docs-snippets
petertonysmith94 Jan 19, 2024
eeee537
docs: moved reference for "wallets" examples
petertonysmith94 Jan 19, 2024
89a8737
docs: moved reference for "wallet-locked-to-unlocked" examples
petertonysmith94 Jan 19, 2024
3993764
docs: moved "wallet-from-private-key" to doc-snippets
petertonysmith94 Jan 19, 2024
adf9b59
docs: moved `wallet-unlocked-to-locked` to doc snippets
petertonysmith94 Jan 19, 2024
d6eab2a
docs: moved "balance" methods to doc-snippets
petertonysmith94 Jan 19, 2024
299ac2c
chore: added skip to test (duplicated)
petertonysmith94 Jan 19, 2024
4aa83b0
docs: moved wallet-message-signing to docs-snippets
petertonysmith94 Jan 19, 2024
59f1d92
docs: added skip to docs-examples test
petertonysmith94 Jan 19, 2024
828f68f
docs: updated docs references for `wallet-message-signing` to doc-sni…
petertonysmith94 Jan 19, 2024
c35db5d
docs: moved `wallet-setup`
petertonysmith94 Jan 19, 2024
6297d8f
chore: skipped `wallet-setup` test in fuel-gauge
petertonysmith94 Jan 19, 2024
f9bb48c
docs: moved test for provider-testnet + signer-address
petertonysmith94 Jan 19, 2024
ecf093f
docs: update docs for signer-address
petertonysmith94 Jan 19, 2024
8adf160
docs: moved doc reference `provider-testnet` to snippets
petertonysmith94 Jan 19, 2024
4e79249
chore: added skip to fuel-gauge test
petertonysmith94 Jan 19, 2024
e5868db
docs: moved `provider-local` test
petertonysmith94 Jan 19, 2024
f0cc238
docs: moved docs `provider-local` reference
petertonysmith94 Jan 19, 2024
728d762
docs: added test skip
petertonysmith94 Jan 19, 2024
7846a67
docs: moved query wallet docs + test
petertonysmith94 Jan 19, 2024
609b1dc
chore: added skip for query wallet fuel guage
petertonysmith94 Jan 19, 2024
c4a0965
fix: moved `wallet-message-signing` test to basic-wallet-functionality
petertonysmith94 Jan 20, 2024
50b2c1e
Merge branch 'master' of github.com:FuelLabs/fuels-ts into ps/docs/mi…
petertonysmith94 Jan 20, 2024
15e6c6e
fix: incorrect test name
petertonysmith94 Jan 20, 2024
3b6665b
fix: signing link
petertonysmith94 Jan 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .changeset/angry-humans-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .changeset/big-boxes-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .changeset/early-humans-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .changeset/flat-dodos-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .changeset/funny-radios-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
5 changes: 5 additions & 0 deletions .changeset/giant-pumpkins-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuel-ts/abi-coder": minor
---

Improve decode validation of ABI Coders
5 changes: 5 additions & 0 deletions .changeset/kind-hotels-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuel-ts/transactions": minor
---

update deposit and withdraw doc page
2 changes: 2 additions & 0 deletions .changeset/late-mugs-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .changeset/odd-kids-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .changeset/olive-clocks-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .changeset/poor-ravens-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .changeset/rare-snails-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .changeset/real-owls-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .changeset/rotten-seas-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .changeset/selfish-wombats-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
6 changes: 6 additions & 0 deletions .changeset/serious-laws-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@fuel-ts/providers": minor
"@fuel-ts/errors": patch
---

Implemented GraphQL subscriptions
7 changes: 7 additions & 0 deletions .changeset/soft-falcons-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@fuel-ts/providers": minor
"@fuel-ts/wallet": minor
"@fuel-ts/wallet-manager": minor
---

accepting string as address instead of only AbstractAddress
2 changes: 2 additions & 0 deletions .changeset/stale-lizards-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
5 changes: 5 additions & 0 deletions .changeset/swift-students-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-fuels": minor
---

Update supported node version in create fuels
2 changes: 2 additions & 0 deletions .changeset/tasty-hotels-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .changeset/tender-onions-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .changeset/twenty-clocks-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
6 changes: 6 additions & 0 deletions .changeset/warm-poems-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@fuel-ts/signer": minor
---

- Stopped exporting `getCurve()` / secp256k1
- Replaced `elliptic` with `@noble/curves`
2 changes: 2 additions & 0 deletions .changeset/wicked-timers-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ dist/
out/

apps/demo-fuels/src/sway-programs-api
apps/demo-typegen/src/generated-types
apps/demo-typegen/src/contract-types
apps/demo-typegen/src/script-types
apps/demo-typegen/src/predicate-types
apps/demo-nextjs
apps/demo-react-cra
apps/demo-react-vite
Expand Down
7 changes: 6 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ module.exports = {
},
},
rules: {
'no-restricted-syntax': [
'off',
{
selector: 'ForOfStatement',
},
],
'@typescript-eslint/no-non-null-assertion': 1,
// Disable error on devDependencies importing since this isn't a TS library
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
Expand Down Expand Up @@ -56,7 +62,6 @@ module.exports = {
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-explicit-any': 'error',
Expand Down
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @digorithm @arboleya @camsjams @Torres-ssf @Dhaiwat10 @danielbate @nedsalk
* @digorithm @arboleya @Torres-ssf @Dhaiwat10 @danielbate @nedsalk
2 changes: 1 addition & 1 deletion .github/actions/ci-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "CI Setup"
inputs:
node-version:
description: "Node version"
default: 18.17.1
default: 20.10.0
pnpm-version:
description: "PNPM version"
default: 8.9.0
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/test-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Test Setup"
inputs:
node-version:
description: "Node version"
default: 18.17.1
default: 20.10.0
pnpm-version:
description: "PNPM version"
default: 8.9.0
Expand Down
148 changes: 148 additions & 0 deletions .github/rc-list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
- [ ] African Elephant
- [ ] Albatross
- [ ] Alpaca
- [ ] Angelfish
- [ ] Ant
- [ ] Appaloosa
- [ ] Arabian Horse
- [ ] Arctic Fox
- [ ] Asian Elephant
- [ ] Bactrian Camel
- [ ] Bald Eagle
- [ ] Beagle
- [ ] Bee
- [ ] Beluga Whale
- [ ] Black Bear
- [ ] Blue Jay
- [ ] Blue Whale
- [ ] Bobcat
- [ ] Brown Bear
- [ ] Bulldog
- [ ] Butterfly
- [ ] Camel
- [ ] Caracal
- [ ] Cardinal
- [ ] Cheetah
- [ ] Chicken
- [ ] Chimpanzee
- [ ] Clownfish
- [ ] Clydesdale
- [ ] Cockatoo
- [ ] Cockroach
- [ ] Coral
- [ ] Cougar
- [ ] Coyote
- [ ] Crab
- [ ] Cricket
- [ ] Crow
- [ ] Cuttlefish
- [ ] Dachshund
- [ ] Dingo
- [ ] Dolphin
- [ ] Domestic Cat
- [ ] Domestic Dog
- [ ] Dragonfly
- [ ] Dromedary
- [ ] Duck
- [ ] Elephant
- [ ] Falcon
- [ ] Fennec Fox
- [ ] Finch
- [ ] Firefly
- [ ] Flamingo
- [ ] Friesian
- [ ] German Shepherd
- [ ] Giraffe
- [ ] Golden Retriever
- [ ] Goose
- [ ] Gorilla
- [ ] Grasshopper
- [ ] Grevy's Zebra
- [ ] Grizzly Bear
- [ ] Hawk
- [ ] Hermit Crab
- [ ] Hippopotamus
- [ ] Hornet
- [ ] Horse
- [ ] Hummingbird
- [ ] Humpback Whale
- [ ] Husky
- [ ] Hyena
- [ ] Jaguar
- [ ] Jellyfish
- [ ] Kangaroo
- [ ] Katydid
- [ ] Kingfisher
- [ ] Koala
- [ ] Labrador Retriever
- [ ] Ladybug
- [ ] Leopard
- [ ] Lion
- [ ] Llama
- [ ] Lobster
- [ ] Lynx
- [ ] Macaw
- [ ] Magpie
- [ ] Manatee
- [ ] Mantis Shrimp
- [ ] Moth
- [ ] Mountain Lion
- [ ] Mountain Zebra
- [ ] Mustang
- [ ] Narwhal
- [ ] Nautilus
- [ ] Octopus
- [ ] Orca
- [ ] Ostrich
- [ ] Owl
- [ ] Palomino
- [ ] Panda
- [ ] Panther
- [ ] Parrot
- [ ] Peacock
- [ ] Pelican
- [ ] Penguin
- [ ] Pigeon
- [ ] Plains Zebra
- [ ] Polar Bear
- [ ] Pony
- [ ] Poodle
- [ ] Praying Mantis
- [ ] Pufferfish
- [ ] Puffin
- [ ] Quarter Horse
- [ ] Raven
- [ ] Red Panda
- [ ] Rhino
- [ ] Rhinoceros Beetle
- [ ] Robin
- [ ] Rooster
- [ ] Rottweiler
- [x] Salamander
- [ ] Scarab Beetle
- [ ] Sea Anemone
- [ ] Sea Cucumber
- [ ] Sea Lion
- [ ] Sea Urchin
- [ ] Seahorse
- [ ] Seal
- [ ] Serval
- [ ] Shetland Pony
- [ ] Shrimp
- [ ] Snow Leopard
- [ ] Sparrow
- [ ] Sperm Whale
- [ ] Squid
- [ ] Starfish
- [ ] Stork
- [ ] Swan
- [ ] Thoroughbred
- [ ] Tiger
- [ ] Toucan
- [ ] Turkey
- [ ] Vicuña
- [ ] Walrus
- [ ] Wasp
- [ ] Wolf
- [ ] Woodpecker
- [ ] Zebra
8 changes: 8 additions & 0 deletions .github/workflows/pr-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ jobs:
- uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
chore
docs
ci
rc

validate-changeset:
name: Validate PR Changeset
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/rc-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Release to @rc-<name> tag on npm

on:
push:
branches:
- "rc/*"

jobs:
release-pr:
name: "Release RC to npm"
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}

- name: CI Setup
uses: ./.github/actions/ci-setup

- name: Ensure NPM access
run: npm whoami
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Build
run: pnpm build

- name: Get RC name
uses: frabert/replace-string-action@v2
id: rc_name
with:
string: ${{ github.ref }}
pattern: "refs/heads/rc/"
replace-with: "rc-"

- name: Release to @${{ steps.rc_name.outputs.replaced }} tag on npm
id: release
run: |
echo "${{ steps.rc_name.outputs.replaced }}"
pnpm changeset:next
git add .changeset/fuel-labs-ci.md
pnpm changeset version --snapshot ${{ steps.rc_name.outputs.replaced }}
changetsets=$(pnpm changeset publish --tag ${{ steps.rc_name.outputs.replaced }})
published_version=$(echo "$changetsets" | grep -oP '@\K([0-9]+\.){2}[0-9]+-${{ steps.rc_name.outputs.replaced }}-\d+' | head -1)
echo "published_version=$published_version" >> $GITHUB_OUTPUT
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: mshick/add-pr-comment@v2
with:
message: |
RC published under the `**${{ steps.rc_name.outputs.replaced }}**` tag.

Install it:
```bash
pnpm add fuels@${{ steps.rc_name.outputs.replaced }}
pnpm add fuels@${{ steps.release.outputs.published_version }}
```
Check it out:
- https://www.npmjs.com/package/fuels/v/${{ steps.rc_name.outputs.replaced }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading
Loading