Skip to content

Commit b4f52e0

Browse files
LuizAsFightarthurgeronhelciofranco
authored
feat: update to fuel-core 0.26.0 (#1240)
Closes #1216 --------- Co-authored-by: Arthur Geron <3487334+arthurgeron@users.noreply.github.com> Co-authored-by: Hélcio Franco <helciofranco@me.com>
1 parent 7ac8f7c commit b4f52e0

File tree

172 files changed

+17139
-10271
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+17139
-10271
lines changed

.changeset/old-boxes-cheat.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@fuel-wallet/connections": minor
3+
"@fuel-wallet/types": minor
4+
"fuels-wallet": minor
5+
---
6+
7+
feat: update wallet to the latest fuel core (0.26.0)

.changeset/stupid-flowers-provide.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"fuels-wallet": minor
3+
---
4+
5+
feat: add custom network fees, offering options like regular, fast and custom tip.

.github/workflows/pr-tests.yml

+71-70
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@ jobs:
2828
password: ${{ secrets.GITHUB_TOKEN }}
2929

3030
- name: Start Test Node
31-
run: pnpm node:up:test
32-
33-
- name: Graphql Codegen
34-
run: pnpm codegen:app
35-
env:
36-
NODE_ENV: test
31+
run: pnpm node:up
32+
33+
- name: Generate .env
34+
run: cp packages/app/.env.example packages/app/.env
3735

3836
# Unit tests running with JEST
3937
- name: Find PR number
@@ -64,7 +62,7 @@ jobs:
6462
base-coverage-file: ${{ env.COVERAGE_FILE }}
6563

6664
- name: Stop Test Node
67-
run: pnpm node:clean:test
65+
run: pnpm node:clean
6866

6967
tests-e2e:
7068
name: E2E Tests
@@ -81,20 +79,17 @@ jobs:
8179
password: ${{ secrets.GITHUB_TOKEN }}
8280

8381
- name: Start Test Node
84-
run: pnpm node:up:test
85-
86-
- name: Graphql Codegen
87-
run: pnpm codegen:app
88-
env:
89-
NODE_ENV: test
82+
run: pnpm node:up
83+
84+
- name: Generate .env
85+
run: cp packages/app/.env.example packages/app/.env
9086

9187
- name: Build Application
92-
run: pnpm build:test
88+
run: pnpm build:app
9389
env:
9490
## increase node.js m memory limit for building
9591
## with sourcemaps
9692
NODE_OPTIONS: "--max-old-space-size=4096"
97-
NODE_ENV: test
9893

9994
# E2E tests running with Playwright
10095
- name: Install Playwright Browsers
@@ -113,60 +108,66 @@ jobs:
113108
retention-days: 30
114109

115110
- name: Stop Test Node
116-
run: pnpm node:clean:test
111+
run: pnpm node:clean
117112

118-
tests-e2e-contracts:
119-
name: E2E Contract Tests
120-
runs-on: buildjet-4vcpu-ubuntu-2204
121-
steps:
122-
- uses: actions/checkout@v3
123-
- uses: FuelLabs/github-actions/setups/node@master
124-
with:
125-
node-version: 18.14.1
126-
pnpm-version: 8.15.7
127-
- uses: FuelLabs/github-actions/setups/docker@master
128-
with:
129-
username: ${{ github.repository_owner }}
130-
password: ${{ secrets.GITHUB_TOKEN }}
131-
132-
- name: Run PNPM install
133-
id: pnpm-cache
134-
run:
135-
pnpm recursive install --frozen-lockfile
136-
137-
- name: Start Test Node
138-
run: pnpm node:up:test
139-
140-
- name: Build Application
141-
run: pnpm build:all
142-
env:
143-
## increase node.js m memory limit for building
144-
## with sourcemaps
145-
NODE_OPTIONS: "--max-old-space-size=4096"
146-
NODE_ENV: test
147-
148-
- name: Build & Deploy Contracts
149-
run: pnpm deploy:contracts
150-
working-directory: ./packages/e2e-contract-tests
151-
152-
# E2E tests running with Playwright
153-
- name: Install Playwright Browsers
154-
run: npx playwright install --with-deps chromium
155-
156-
- name: Run E2E Contract Tests
157-
run: xvfb-run --auto-servernum -- pnpm test:e2e:contracts
158-
env:
159-
NODE_ENV: test
160-
161-
- uses: actions/upload-artifact@v4
162-
if: always()
163-
with:
164-
name: playwright-report
165-
path: |
166-
packages/app/playwright-report/
167-
packages/app/playwright-html/
168-
retention-days: 30
169-
170-
- name: Stop Test Node
171-
run: pnpm node:clean:test
113+
# tests-e2e-contracts:
114+
# name: E2E Contract Tests
115+
# runs-on: buildjet-4vcpu-ubuntu-2204
116+
# steps:
117+
# - uses: actions/checkout@v3
118+
# - uses: FuelLabs/github-actions/setups/node@master
119+
# with:
120+
# node-version: 18.14.1
121+
# pnpm-version: 8.15.7
122+
# - uses: FuelLabs/github-actions/setups/docker@master
123+
# with:
124+
# username: ${{ github.repository_owner }}
125+
# password: ${{ secrets.GITHUB_TOKEN }}
126+
127+
# - name: Run PNPM install
128+
# id: pnpm-cache
129+
# run:
130+
# pnpm recursive install --frozen-lockfile
131+
132+
# - name: Start Test Node
133+
# run: pnpm node:up
134+
135+
# - name: Generate .env app
136+
# run: cp packages/app/.env.example packages/app/.env
137+
138+
# - name: Generate .env e2e-contracts
139+
# run: cp packages/e2e-contract-tests/.env.example packages/e2e-contract-tests/.env
140+
141+
# - name: Build Application
142+
# run: pnpm build:all
143+
# env:
144+
# ## increase node.js m memory limit for building
145+
# ## with sourcemaps
146+
# NODE_OPTIONS: "--max-old-space-size=4096"
147+
# NODE_ENV: test
148+
149+
# - name: Build & Deploy Contracts
150+
# run: pnpm deploy:contracts
151+
# working-directory: ./packages/e2e-contract-tests
152+
153+
# # E2E tests running with Playwright
154+
# - name: Install Playwright Browsers
155+
# run: npx playwright install --with-deps chromium
156+
157+
# - name: Run E2E Contract Tests
158+
# run: xvfb-run --auto-servernum -- pnpm test:e2e:contracts
159+
# env:
160+
# NODE_ENV: test
161+
162+
# - uses: actions/upload-artifact@v4
163+
# if: always()
164+
# with:
165+
# name: playwright-report
166+
# path: |
167+
# packages/app/playwright-report/
168+
# packages/app/playwright-html/
169+
# retention-days: 30
170+
171+
# - name: Stop Test Node
172+
# run: pnpm node:clean
172173

Forc.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[workspace]
2+
members = [
3+
"packages/e2e-contract-tests/contracts/custom_asset"
4+
]

biome.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"**/build",
4949
"**/dist",
5050
"**/dist-crx",
51-
"**/contracts",
51+
"**/contracts/**",
5252
"pnpm-lock.yaml"
5353
]
5454
}

docker/.env.test

-6
This file was deleted.

docker/Makefile

-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
11
up:
22
docker compose -p dev --env-file .env up -d --build
33

4-
up-test:
5-
docker compose -p test --env-file .env.test up -d --build
6-
74
down:
85
docker compose -p dev stop
96

10-
down-test:
11-
docker compose -p test stop
12-
137
clean:
148
docker compose -p dev down --rmi local -v --remove-orphans
15-
16-
clean-test:
17-
docker compose -p test down --rmi local -v --remove-orphans

docker/docker-compose.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
volumes:
1717
- fuel-core-db:/mnt/db
1818
healthcheck:
19-
test: curl --fail http://localhost:4000/health || exit 1
19+
test: curl --fail http://localhost:4000/v1/health || exit 1
2020
interval: 1s
2121
timeout: 5s
2222
retries: 20
@@ -30,8 +30,8 @@ services:
3030
MIN_GAS_PRICE: ${MIN_GAS_PRICE}
3131
WALLET_SECRET_KEY: ${WALLET_SECRET}
3232
DISPENSE_AMOUNT: ${DISPENSE_AMOUNT}
33-
FUEL_NODE_URL: http://${PROJECT:-fuel-node}_fuel-core:4000/graphql
34-
image: ghcr.io/fuellabs/faucet:v0.6.2
33+
FUEL_NODE_URL: http://${PROJECT:-fuel-node}_fuel-core:4000/v1/graphql
34+
image: ghcr.io/fuellabs/faucet:v0.7.2
3535
ports:
3636
- '${FUEL_FAUCET_PORT:-4040}:3000'
3737
links:

docker/fuel-core/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/fuellabs/fuel-core:v0.22.0
1+
FROM ghcr.io/fuellabs/fuel-core:v0.26.0
22

33
ENV MIN_GAS_PRICE="${MIN_GAS_PRICE}"
44
ENV CONSENSUS_KEY="${CONSENSUS_KEY}"
@@ -11,7 +11,7 @@ RUN apt install curl -y
1111

1212
WORKDIR /root/
1313

14-
COPY chainConfig.json .
14+
COPY config ./config
1515
COPY run.sh .
1616
EXPOSE ${PORT}
1717

0 commit comments

Comments
 (0)