-
Notifications
You must be signed in to change notification settings - Fork 5k
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
feat: cross chain aggregated balance #28456
Merged
+1,642
−49
Merged
Changes from all commits
Commits
Show all changes
91 commits
Select commit
Hold shift + click to select a range
85fe12d
bump asset controllers to 39
bergeron 0f3cd64
update ConfirmTransaction
bergeron bdf921b
fix useGasFeeEstimates unit test
bergeron 9bc4ecf
fix usePolling tests
bergeron 9b1529b
bump controller utils
bergeron c8bcc0b
remove patch
bergeron d1a3782
Merge branch 'develop' into brian/asset-controller-39
bergeron 05fd6ef
Update LavaMoat policies
metamaskbot 9dfdfa8
lint
bergeron 04ea3d6
Merge branch 'brian/asset-controller-39' of github.com:MetaMask/metam…
bergeron cf66072
Merge branch 'develop' into brian/asset-controller-39
bergeron 785de28
initial multi chain polling for currency and token rates
bergeron f461767
fix testnets
bergeron f1da818
only refetch prices on chains whose tokens changed
bergeron 878f407
poll multiple native currencies
bergeron e8a9d6a
fix test
bergeron 245f8d3
yarn dedupe
bergeron 1afebee
Update LavaMoat policies
metamaskbot e99e2ef
Merge branch 'develop' into brian/currency-rate-multichain-polling2
bergeron ca590ec
fix e2e test mocks
bergeron d2191ac
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 70c0db4
fix e2e test
bergeron 6b7df4d
.
bergeron 4e816c2
lint
bergeron aaef377
fix e2e test
bergeron 48bff46
Merge branch 'brian/currency-rate-multichain-polling2' of github.com:…
bergeron 0450b04
package.json
bergeron fdc04ad
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 3ec3574
bump controller preview version
bergeron dcc8a64
Merge branch 'develop' into brian/multiexchangerate
bergeron 0e7a872
fix: fix lint
sahar-fehri ea95aca
fix: update js file to tsx
sahar-fehri 3bf7b78
Merge branch 'develop' into brian/multiexchangerate
sahar-fehri bb1f278
make polling input a chain id
bergeron 14dc84b
Merge branch 'develop' into brian/multiexchangerate
bergeron ef3ef10
bump to asset controller v42
bergeron ab6e7cc
.
bergeron 44861d9
Merge branch 'brian/multiexchangerate' of github.com:MetaMask/metamas…
bergeron 0b543e0
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 411fc1c
initial token balances controller
bergeron c2b6afe
Update metamask-controller.js
bergeron 69404a5
Merge branch 'develop' into brian/token-balances-controller
bergeron bb1d6bf
cleanup
bergeron f6e56b3
Merge branch 'brian/token-balances-controller' of github.com:MetaMask…
bergeron 8e752a1
yarn
bergeron febc7f1
fix typo
bergeron 31303e6
feat: cross-chain aggregated balances and percentages
sahar-fehri 3d19aaa
fix: fix network change error
sahar-fehri e6e60fd
fix: fix conversion rate
sahar-fehri e1ea312
fix: refactor
sahar-fehri 14eb579
fix: hook account list item with agg balance cross chains
sahar-fehri a970af1
fix: merge conflicts
sahar-fehri 25e5a2b
fix: merge conflicts
sahar-fehri 355f908
fix: merge conflicts
sahar-fehri b218da9
fix: rm comments
sahar-fehri 068ca67
fix: fix cross chain agg balance with network filter
sahar-fehri a0d0791
fix: fix unit test
sahar-fehri 96acc46
fix: fix unit test
sahar-fehri c0ce3ca
fix: fix unit test
sahar-fehri 7ae5b8f
fix: fix unit test
sahar-fehri 234cf09
fix: unit test
sahar-fehri ab32ced
fix: fix unit test
sahar-fehri e01f04b
fix: fix test
sahar-fehri df0c3d0
fix: convert to .ts file
sahar-fehri 1e8062d
fix: lint
sahar-fehri 83c7eba
fix: fix
sahar-fehri 302a757
fix: fix e2e fixtures
sahar-fehri 4d7a1ac
fix: fix e2e
sahar-fehri 1520ef4
fix: rm hardcoded value in network filter
sahar-fehri b212907
fix: fix Sentry e2e
sahar-fehri 3b7f4bf
fix: fix e2e
sahar-fehri cfaa119
fix: fix e2e and update types
sahar-fehri 47c6e9f
fix: fix unit test
sahar-fehri 5d512e6
fix: fix network filter format and disable network filter when on tes…
sahar-fehri bfa6b86
fix: lint
sahar-fehri ac78d0d
Merge branch 'develop' into feat/cross-chain-aggregated-balance
sahar-fehri f92add6
fix: use getChainIdsToPoll selector
sahar-fehri decb2f1
fix: fix import
sahar-fehri 1f97c68
fix: fix
sahar-fehri fa55e4c
fix: refactor usage of getChainIdsToPoll
sahar-fehri 33bcfad
fix: add feature flag for agg percentage overview
sahar-fehri 4cbeb57
fix: feature flag on account list item
sahar-fehri 04505e4
fix: add unit test
sahar-fehri 31a6b36
fix: fix unit test
sahar-fehri 48312b7
fix: add unit test
sahar-fehri 69c9d5b
fix: update popover text
sahar-fehri 69ed10a
fix: fix import
sahar-fehri 30ffad5
Merge branch 'develop' into feat/cross-chain-aggregated-balance
sahar-fehri 0c058aa
fix: rm privacy snapshot updates
sahar-fehri d380413
fix: add mock for e2e and update privacy snapshot
sahar-fehri fd49581
Merge branch 'develop' into feat/cross-chain-aggregated-balance
sahar-fehri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...p/wallet-overview/__snapshots__/aggregated-percentage-overview-cross-chains.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`AggregatedPercentageOverviewCrossChains render renders correctly 1`] = ` | ||
<div> | ||
<div | ||
class="mm-box mm-box--display-flex" | ||
> | ||
<p | ||
class="mm-box mm-text mm-text--body-md-medium mm-text--ellipsis mm-box--color-success-default" | ||
data-testid="aggregated-value-change" | ||
style="white-space: pre;" | ||
> | ||
+$0.22 | ||
</p> | ||
<p | ||
class="mm-box mm-text mm-text--body-md-medium mm-text--ellipsis mm-box--color-success-default" | ||
data-testid="aggregated-percentage-change" | ||
> | ||
(+0.08%) | ||
</p> | ||
</div> | ||
</div> | ||
`; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we'd prefer to mock all places hitting this. I think we expected #28277 to cover all places and, aren't sure which caller remains.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree; Inspecting the network tab on the test
test/e2e/tests/settings/account-token-list.spec.js
; the calls to infura that i see areeth_blockNumber
, even though i added a mock for those, it is still requiring the snapshot update; not quite sure what i missed there