MetaMask / metamask-mobile

Mobile web browser providing access to websites that use the Ethereum blockchain
https://metamask.io
Other
2.18k stars 1.12k forks source link

feat: add PooledStaking slice for managing staking state #12363

Open amitabh94 opened 5 days ago

amitabh94 commented 5 days ago

Description

This PR refactors the staking-related state management by introducing a staking redux slice. This change improves state management consistency, reduces duplicate state, and makes the data flow more predictable across the staking feature.

Related issues

Fixes: STAKE-870

Manual testing steps

  1. Perform an unstake transaction
  2. Navigate to Eth details page while the transaction is still processing
  3. You will now see the unstaking banner pop up when transaction is completed without navigating away and coming back to the details page

Screenshots/Recordings

Before

https://github.com/user-attachments/assets/cbdfad52-58ae-4396-a214-0c793eb49f7c

After

https://github.com/user-attachments/assets/d064012f-32c3-41a3-8537-4593b6e409af

Pre-merge author checklist

Pre-merge reviewer checklist

github-actions[bot] commented 5 days ago

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.

github-actions[bot] commented 5 days ago

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: c910e77fdfb04f0dc6569cbc4ac3a56ffa3accdc Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/a241c65b-45ff-4d5b-9f6e-eae0fdf069de

[!NOTE]

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request
sonarcloud[bot] commented 5 days ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
94.4% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

github-actions[bot] commented 5 days ago

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 98523bae01c47cad054f4d185cad71c3f4878347 Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/cbd212bb-fd40-46e3-a4ab-f897ba842f5c

[!NOTE]

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request