Commit 9719b34
authored
chore: bump core-backend + refactor query (#40731)
## **Description**
Refactored multichain activity transaction queries to use apiClient
query options directly and removed the now-redundant local query helper.
Bump core-backend
## **Changelog**
<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`
If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`
(This helps the Release Engineer do their job more quickly and
accurately)
-->
CHANGELOG entry: chore: bump core-backend; refactor query
## **Related issues**
Fixes:
## **Manual testing steps**
1. Activity list works as normal
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
<!-- [screenshots/recordings] -->
### **After**
<!-- [screenshots/recordings] -->
## **Pre-merge author checklist**
- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **Pre-merge reviewer checklist**
- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Touches multichain activity transaction fetching by switching to
`apiClient`-provided infinite query options and adjusting `react-query`
enable/refetch behavior, which could affect caching, pagination, or when
requests fire. Dependency bump to `@metamask/core-backend` may also
change runtime query option defaults.
>
> **Overview**
> **Multichain Activity v2 transaction fetching was refactored** to use
`apiClient.accounts.getV4MultiAccountTransactionsInfiniteQueryOptions`
directly instead of the local `queries.transactions` helper, and
`ui/helpers/queries.ts` was removed.
>
> `useTransactionsQuery` now explicitly gates queries on external
services + non-empty networks/accounts and sets additional `react-query`
behaviors (`keepPreviousData`, `refetchOnMount`,
`refetchOnWindowFocus`); `usePrefetchTransactions` was updated
accordingly, and tests were rewritten to mock the new `apiClient`
query-options call.
>
> Separately, **`@metamask/core-backend` was bumped to `^6.1.0`** (with
corresponding lockfile updates).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
4c14966. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 1dd41cf commit 9719b34
File tree
5 files changed
+57
-98
lines changed- ui
- components/multichain/activity-v2
- helpers
5 files changed
+57
-98
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
536 | 539 | | |
537 | 540 | | |
538 | 541 | | |
539 | | - | |
| 542 | + | |
540 | 543 | | |
541 | 544 | | |
542 | 545 | | |
| |||
556 | 559 | | |
557 | 560 | | |
558 | 561 | | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
567 | 569 | | |
568 | | - | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
569 | 574 | | |
570 | 575 | | |
571 | 576 | | |
| |||
583 | 588 | | |
584 | 589 | | |
585 | 590 | | |
586 | | - | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
587 | 594 | | |
588 | 595 | | |
589 | 596 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
76 | 71 | | |
77 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
| |||
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
86 | | - | |
87 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
88 | 99 | | |
89 | 100 | | |
90 | 101 | | |
| |||
101 | 112 | | |
102 | 113 | | |
103 | 114 | | |
| 115 | + | |
104 | 116 | | |
105 | 117 | | |
106 | 118 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5940 | 5940 | | |
5941 | 5941 | | |
5942 | 5942 | | |
5943 | | - | |
5944 | | - | |
5945 | | - | |
| 5943 | + | |
| 5944 | + | |
| 5945 | + | |
5946 | 5946 | | |
5947 | | - | |
5948 | | - | |
| 5947 | + | |
| 5948 | + | |
5949 | 5949 | | |
5950 | 5950 | | |
5951 | 5951 | | |
5952 | 5952 | | |
5953 | 5953 | | |
5954 | 5954 | | |
5955 | | - | |
| 5955 | + | |
5956 | 5956 | | |
5957 | 5957 | | |
5958 | 5958 | | |
| |||
33369 | 33369 | | |
33370 | 33370 | | |
33371 | 33371 | | |
33372 | | - | |
| 33372 | + | |
33373 | 33373 | | |
33374 | 33374 | | |
33375 | 33375 | | |
| |||
0 commit comments