Skip to content
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 (cherry-pick): display staking transaction methods (#12110) #12186

Merged

Conversation

matthewwalsh0
Copy link
Member

Description

Cherry-pick of #12110 for release 7.35.0.

Related issues

Manual testing steps

Screenshots/Recordings

Before

After

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.

## **Description**

Display staking transaction methods in the transaction confirmation
rather than `Unknown Method`.

Specifically:

- Provide new `TransactionType` values in the `addTransaction` options.
- Add action keys for staking transaction types.
- Upgrade `@metamask/transaction-controller` to `38.2.0`.

## **Related issues**

Fixes: [#2012](MetaMask/mobile-planning#2012)

## **Manual testing steps**

1. Add `export MM_POOLED_STAKING_UI_ENABLED="true"` to `.js.env`.
2. Create each staking transaction type.
3. Verify method is correct and not `Unknown Method`.

## **Screenshots/Recordings**

### **Before**

<img width="200" alt="Before"
src="https://github.com/user-attachments/assets/c68c7f06-eb73-4d09-b02e-939ac4232a1c">

### **After**

<img width="200" alt="Deposit"
src="https://github.com/user-attachments/assets/3cf566eb-8269-4ea9-a2bf-246cbf80f787">

<img width="200" alt="Claim"
src="https://github.com/user-attachments/assets/5704717d-e037-4e25-9ad2-b345fd53d8cf">

<img width="200" alt="Unstake"
src="https://github.com/user-attachments/assets/5d0f0e5e-138f-4913-93b6-9fc28233b244">

<img width="200" alt="Activity List"
src="https://github.com/user-attachments/assets/6d8c7224-4fdb-45c2-8b30-2cdeae0eb97c">

## **Pre-merge author checklist**

- [x] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/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.
@matthewwalsh0 matthewwalsh0 requested review from a team as code owners November 5, 2024 17:07
@matthewwalsh0 matthewwalsh0 changed the title feat: display staking transaction methods (#12110) feat (cherry-pick): display staking transaction methods (#12110) Nov 5, 2024
@github-actions github-actions bot added the team-confirmations Push issues to confirmations team label Nov 5, 2024
Copy link

sonarqubecloud bot commented Nov 5, 2024

@matthewwalsh0 matthewwalsh0 added the Run Smoke E2E Triggers smoke e2e on Bitrise label Nov 6, 2024
Copy link
Contributor

github-actions bot commented Nov 6, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 8714034
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/0db7f26f-b6fa-4641-8320-ebffc131237e

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

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@matthewwalsh0 matthewwalsh0 merged commit ad4d81f into release/7.35.0 Nov 6, 2024
39 of 40 checks passed
@matthewwalsh0 matthewwalsh0 deleted the feat/cherry-pick-staking-transaction-methods branch November 6, 2024 14:52
@github-actions github-actions bot locked and limited conversation to collaborators Nov 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Run Smoke E2E Triggers smoke e2e on Bitrise team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants