Skip to content

chore(runway): cherry-pick STAKE-1005 refresh staking data when staking txs are confirmed (#14520)#14541

Merged
NicolasMassart merged 2 commits into
release/7.44.0from
cherry-pick-db7e9e0
Apr 9, 2025
Merged

chore(runway): cherry-pick STAKE-1005 refresh staking data when staking txs are confirmed (#14520)#14541
NicolasMassart merged 2 commits into
release/7.44.0from
cherry-pick-db7e9e0

Conversation

@runway-github

@runway-github runway-github Bot commented Apr 8, 2025

Copy link
Copy Markdown
Contributor

Description

This PR aims to fix missing pooled-staking data refreshing when a
transaction is confirmed using the redesigned confirmation screens.

Changes:

  • Bumped the @metamask/earn-controller dependency to ^11.0.0
  • Removed existing calls to refreshPooledStakes in transaction
    subscription handlers
  • Added new TransactionController:transactionConfirmed event to
    EarnController messengers

Related issues

Fixes:

Manual testing steps

Prerequisite:

  • Ensure you have ETH to stake.
  • Update your local .js.env file to include the following variables
export FEATURE_FLAG_REDESIGNED_STAKING_TRANSACTIONS=true
export FEATURE_FLAG_REDESIGNED_SIGNATURES=true

To test the unstaking flow, we must first stake some ETH. You can skip
this part if you have Staked Ethereum already.

  1. From the token list home screen, click on Ethereum or Staked Ethereum

  2. On the Ethereum token details screen, click "stake" or "stake more"

  3. Stake a valid amount of ETH and continue to the confirmation screen

  4. Review and confirm your stake

  5. To unstake, click on Ethereum or Staked Ethereum from the token list
    screen

  6. Click "unstake" (only visible if you have Staked ETH already)

  7. Enter a valid amount to unstake and continue to the confirmation
    screen

  8. Review and confirm your unstake transaction

  9. Wait for smart transaction success

  10. After your transaction is confirmed, return to the Ethereum token
    details screen and you should see a new blue unstaking banner.

Screenshots/Recordings

stake-1005-refresh-staking-data-when-staking-txs-are-confirmed-with-redesigned-confirmation-screens.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. db7e9e0

@runway-github runway-github Bot requested a review from a team as a code owner April 8, 2025 23:05
@runway-github runway-github Bot requested a review from a team April 8, 2025 23:05
@runway-github runway-github Bot requested a review from a team as a code owner April 8, 2025 23:05
@github-actions

github-actions Bot commented Apr 8, 2025

Copy link
Copy Markdown
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.

@metamaskbot metamaskbot added the team-runway-bot-deprecated DEPRECATED: please use "team-bots" instead label Apr 8, 2025
@socket-security

socket-security Bot commented Apr 8, 2025

Copy link
Copy Markdown

Updated dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/controller-utils@11.6.011.7.0 Transitive: network +1 702 kB
npm/@metamask/earn-controller@0.10.00.11.0 None 0 113 kB metamaskbot

View full report↗︎

@github-actions

This comment was marked as outdated.

@sonarqubecloud

sonarqubecloud Bot commented Apr 8, 2025

Copy link
Copy Markdown

@NicolasMassart NicolasMassart merged commit 2143eec into release/7.44.0 Apr 9, 2025
@NicolasMassart NicolasMassart deleted the cherry-pick-db7e9e0 branch April 9, 2025 10:16
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 9, 2025
@NicolasMassart NicolasMassart changed the title chore(runway): cherry-pick STAKE-1005 refresh staking data when staking txs are confirmed chore(runway): cherry-pick STAKE-1005 refresh staking data when staking txs are confirmed (#14520) Apr 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

team-runway-bot-deprecated DEPRECATED: please use "team-bots" instead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants