Skip to content

feat: Integrate SPL tokens and rates from multichainAssetsRates #30389

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

Merged
merged 70 commits into from
Feb 24, 2025

Conversation

sahar-fehri
Copy link
Contributor

@sahar-fehri sahar-fehri commented Feb 18, 2025

Description

This PR
1- Integrate SPL tokens into token list.
2- Integrates the new MultichainAssetsRatesController to be used instead of the of ratesController.

Open in GitHub Codespaces

Related issues

Solana Effort

Manual testing steps

  1. clone snaps repo: git clone [email protected]:MetaMask/snap-solana-wallet.git
  2. Add .env to /packages/snap (ask around for this)
  3. yarn && yarn start -> go to localhost:3000

In separate terminal, for extension:

  1. checkout this branch
  2. yarn && yarn start:flask or yarn && yarn webpack --watch --type flask
  3. Go to localhost:3000 and install snap
    Settings -> Experimental -> toggle Enable "Add a new Solana account (Beta)"
    Add the Solana Account (you may need to refresh extension)

You should see Solana tokens populating the token list!

Sort controls should be functional

Screenshots/Recordings

Screen.Recording.2025-02-14.at.3.33.58.PM.mov

Pre-merge author checklist

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.

Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@sahar-fehri sahar-fehri changed the title Feat/spl token rates v3 feat: spl token rates v3 Feb 18, 2025
@sahar-fehri sahar-fehri changed the title feat: spl token rates v3 feat: spl token rates integration Feb 18, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [08d5b4b]
Page Load Metrics (1757 ± 74 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14472002175515574
domContentLoaded14371989173115072
load14462008175715574
domInteractive22103502512
backgroundConnect106728189
firstReactRender1481402613
getState46117199
initialActions01000
loadScripts10161493126613967
setupStore76214147
uiStartup16972303200017082
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 3.09 KiB (0.04%)
  • common: 240 Bytes (0.00%)

@GuillaumeRx
Copy link
Contributor

Can we also rename the PR ? This is not only related to solana, this is integrating the rates for all the multichain accounts.

@metamaskbot
Copy link
Collaborator

Builds ready [ff49d70]
Page Load Metrics (1571 ± 99 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint13052000155720699
domContentLoaded129919921533208100
load13072010157120699
domInteractive24116372412
backgroundConnect10102412311
firstReactRender1375332311
getState55515168
initialActions01000
loadScripts9331477112716077
setupStore76914178
uiStartup147722271773227109
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 7.74 KiB (0.10%)
  • common: -4.85 KiB (-0.06%)

@sahar-fehri sahar-fehri changed the title feat: spl token rates integration feat: Integrate SPL tokens and rates from multichainAssetsRates Feb 24, 2025
GuillaumeRx
GuillaumeRx previously approved these changes Feb 24, 2025
aganglada
aganglada previously approved these changes Feb 24, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [1de7ab4]
Page Load Metrics (1659 ± 89 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint13591982164617986
domContentLoaded13491972162217584
load13591984165918589
domInteractive23209635627
backgroundConnect1087362713
firstReactRender147524199
getState579202210
initialActions01000
loadScripts9851449119913364
setupStore768202110
uiStartup15862177188718890
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 7.74 KiB (0.10%)
  • common: -4.85 KiB (-0.06%)

jonybur
jonybur previously approved these changes Feb 24, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [8b7e0d9]
Page Load Metrics (1641 ± 95 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23721351568359173
domContentLoaded13942077160718488
load14132143164119795
domInteractive256134115
backgroundConnect1198382612
firstReactRender146826199
getState471222512
initialActions01000
loadScripts9851537117614670
setupStore772182110
uiStartup165124311882221106
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 7.74 KiB (0.10%)
  • common: -4.88 KiB (-0.06%)

@metamaskbot
Copy link
Collaborator

Builds ready [bc9c47c]
Page Load Metrics (1691 ± 75 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint38122091615322155
domContentLoaded14402139165515072
load14552212169115675
domInteractive26653895
backgroundConnect1282422412
firstReactRender1473322210
getState5201042
initialActions01000
loadScripts10081691121414268
setupStore774252311
uiStartup17082453191916378
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 7.74 KiB (0.10%)
  • common: -4.88 KiB (-0.06%)

@sahar-fehri sahar-fehri added this pull request to the merge queue Feb 24, 2025
Merged via the queue into main with commit ffe7ec5 Feb 24, 2025
79 checks passed
@sahar-fehri sahar-fehri deleted the feat/spl-token-rates-v3 branch February 24, 2025 17:47
@github-actions github-actions bot locked and limited conversation to collaborators Feb 24, 2025
@metamaskbot metamaskbot added the release-12.14.0 Issue or pull request that will be included in release 12.14.0 label Feb 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.14.0 Issue or pull request that will be included in release 12.14.0 team-assets
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.