Commit 3cbad62
Release/1062.0.0 (#9225)
## Explanation
<!--
Thanks for your contribution! Take a moment to answer these questions so
that reviewers have the information they need to properly understand
your changes:
* What is the current state of things and why does it need to change?
* What is the solution your changes offer and how does it work?
* Are there any changes whose purpose might not obvious to those
unfamiliar with the domain?
* If your primary goal was to update one package but you found you had
to update another one along the way, why did you do so?
* If you had to upgrade a dependency, why did you do so?
-->
Add persisted bridge-controller state for the source input primary
denomination (token_amount or fiat_value) and expose it through
setInputPrimaryDenomination.
Emit input_primary_denomination on Unified SwapBridge
page/quote/submission/completion analytics.
Add the Unified SwapBridge Fiat Crypto Toggle Clicked event and allow
clients to provide selected source/destination chain, token, security,
and swap type metadata before a quote request exists.
Persist the submit-time denomination in bridge-status history so
Submitted and Completed analytics use the denomination selected at
submission time.
## References
<!--
Are there any issues that this pull request is tied to?
Are there other links that reviewers should consult to understand these
changes better?
Are there client or consumer pull requests to adopt any breaking
changes?
For example:
* Fixes #12345
* Related to #67890
-->
## Checklist
- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/processes/updating-changelogs.md)
- [x] I've introduced [breaking
changes](https://github.com/MetaMask/core/tree/main/docs/processes/breaking-changes.md)
in this PR and have prepared draft pull requests for clients and
consumer packages to resolve them
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Risk is moderate because bridge-controller 76.0.0 is a breaking
persisted-state and analytics API change; clients must upgrade
coherently and handle migration for the new denomination field.
>
> **Overview**
> This PR cuts **monorepo release 1062.0.0** by updating root and
package versions, changelogs, `package.json` dependency ranges, and
`yarn.lock`—no application source changes in the diff.
>
> It ships **`@metamask/bridge-controller@76.0.0`**, documented as a
**breaking** release for persisted source **input primary denomination**
(`token_amount` / `fiat_value`), `setInputPrimaryDenomination`,
**`input_primary_denomination`** on Unified SwapBridge analytics, and
the **Fiat Crypto Toggle Clicked** event (including client metadata
before a quote exists).
>
> **`@metamask/bridge-status-controller@72.2.0`** records submit-time
denomination on bridge history so **Submitted** / **Completed**
analytics use the value at submission, and bumps its bridge-controller
dependency to `^76.0.0`.
>
> **`@metamask/transaction-pay-controller@23.14.0`** only advances
bridge-related dependencies to match those releases.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
21b7ca2. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>1 parent 0719a0a commit 3cbad62
8 files changed
Lines changed: 33 additions & 15 deletions
File tree
- packages
- bridge-controller
- bridge-status-controller
- transaction-pay-controller
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
1637 | 1639 | | |
1638 | 1640 | | |
1639 | 1641 | | |
1640 | | - | |
| 1642 | + | |
| 1643 | + | |
1641 | 1644 | | |
1642 | 1645 | | |
1643 | 1646 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| |||
1301 | 1307 | | |
1302 | 1308 | | |
1303 | 1309 | | |
1304 | | - | |
| 1310 | + | |
| 1311 | + | |
1305 | 1312 | | |
1306 | 1313 | | |
1307 | 1314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
10 | 17 | | |
11 | 18 | | |
12 | 19 | | |
| |||
1143 | 1150 | | |
1144 | 1151 | | |
1145 | 1152 | | |
1146 | | - | |
| 1153 | + | |
| 1154 | + | |
1147 | 1155 | | |
1148 | 1156 | | |
1149 | 1157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5904 | 5904 | | |
5905 | 5905 | | |
5906 | 5906 | | |
5907 | | - | |
| 5907 | + | |
5908 | 5908 | | |
5909 | 5909 | | |
5910 | 5910 | | |
| |||
5951 | 5951 | | |
5952 | 5952 | | |
5953 | 5953 | | |
5954 | | - | |
| 5954 | + | |
5955 | 5955 | | |
5956 | 5956 | | |
5957 | 5957 | | |
5958 | 5958 | | |
5959 | 5959 | | |
5960 | 5960 | | |
5961 | | - | |
| 5961 | + | |
5962 | 5962 | | |
5963 | 5963 | | |
5964 | 5964 | | |
| |||
8747 | 8747 | | |
8748 | 8748 | | |
8749 | 8749 | | |
8750 | | - | |
8751 | | - | |
| 8750 | + | |
| 8751 | + | |
8752 | 8752 | | |
8753 | 8753 | | |
8754 | 8754 | | |
| |||
0 commit comments