Commit 28cf97f
authored
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->
## **Description**
This PR consists in client integration of the `auxiliaryFunds` and
`requiredAssets` capabilities defined under
[ERC-7682](https://eips.ethereum.org/EIPS/eip-7682) to enable auxiliary
funds flows.
_Important: this capability isn't usable yet, but will later be wired up
by @MetaMask/confirmations team._
<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->
## **Changelog**
<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`
If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`
(This helps the Release Engineer do their job more quickly and
accurately)
-->
CHANGELOG entry: Add `auxiliaryFunds` + `requiredAssets` support defined
under [ERC-7682](https://eips.ethereum.org/EIPS/eip-7682)
([#19965](#19965))
## **Related issues**
Fixes: https://consensyssoftware.atlassian.net/browse/WAPI-409
## **Manual testing steps**
```gherkin
Feature: auxiliaryFunds support
Scenario: user has wallet permissions
Given support for EIP 7682 is enabled
When user requests `wallet_getCapabilities` (via https://metamask.github.io/test-dapp)
Then `auxiliaryFunds` should be returned as a supported capability
```
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
<!-- [screenshots/recordings] -->
### **After**
<!-- [screenshots/recordings] -->
## **Pre-merge author checklist**
- [ ] 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).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] 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.
1 parent 9ebf9e4 commit 28cf97f
File tree
3 files changed
+20
-14
lines changed- app/core/BackgroundBridge
3 files changed
+20
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
813 | 814 | | |
814 | 815 | | |
815 | 816 | | |
| 817 | + | |
| 818 | + | |
816 | 819 | | |
817 | 820 | | |
818 | 821 | | |
| |||
848 | 851 | | |
849 | 852 | | |
850 | 853 | | |
| 854 | + | |
| 855 | + | |
851 | 856 | | |
852 | 857 | | |
853 | 858 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5192 | 5192 | | |
5193 | 5193 | | |
5194 | 5194 | | |
5195 | | - | |
5196 | | - | |
5197 | | - | |
5198 | | - | |
| 5195 | + | |
| 5196 | + | |
| 5197 | + | |
| 5198 | + | |
5199 | 5199 | | |
5200 | 5200 | | |
5201 | 5201 | | |
5202 | | - | |
5203 | | - | |
| 5202 | + | |
| 5203 | + | |
| 5204 | + | |
5204 | 5205 | | |
5205 | 5206 | | |
5206 | 5207 | | |
| |||
6334 | 6335 | | |
6335 | 6336 | | |
6336 | 6337 | | |
6337 | | - | |
6338 | | - | |
6339 | | - | |
6340 | | - | |
| 6338 | + | |
| 6339 | + | |
| 6340 | + | |
| 6341 | + | |
6341 | 6342 | | |
6342 | 6343 | | |
6343 | 6344 | | |
| |||
6346 | 6347 | | |
6347 | 6348 | | |
6348 | 6349 | | |
6349 | | - | |
6350 | | - | |
| 6350 | + | |
| 6351 | + | |
6351 | 6352 | | |
6352 | 6353 | | |
6353 | 6354 | | |
6354 | 6355 | | |
6355 | | - | |
| 6356 | + | |
6356 | 6357 | | |
6357 | 6358 | | |
6358 | 6359 | | |
| |||
0 commit comments