Skip to content

Commit 38cd6a5

Browse files
authored
feat: adding new transaction types for money account deposit and withdraw (#8312)
## Explanation Adding new transaction types for money account deposit and withdraw. ## References Related to https://consensyssoftware.atlassian.net/browse/CONF-1110 ## 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] > **Low Risk** > Low risk type-only change that adds new `TransactionType` enum values; downstream consumers with exhaustive `switch`/mapping logic may need to handle the new cases. > > **Overview** > Adds two new `TransactionType` enum values—`moneyAccountDeposit` and `moneyAccountWithdraw`—to classify Money Account deposit/withdraw transactions. > > Updates the `@metamask/transaction-controller` changelog under **Unreleased** to announce the new transaction types. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 529440c. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent fb601af commit 38cd6a5

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

packages/transaction-controller/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Adding new transaction types for Money Account ([#8312](https://github.com/MetaMask/core/pull/8312))
13+
1014
## [63.2.0]
1115

1216
### Changed

packages/transaction-controller/src/types.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,16 @@ export enum TransactionType {
775775
*/
776776
lendingWithdraw = 'lendingWithdraw',
777777

778+
/**
779+
* A transaction that deposits funds into a money account.
780+
*/
781+
moneyAccountDeposit = 'moneyAccountDeposit',
782+
783+
/**
784+
* A transaction that withdraws funds from a money account.
785+
*/
786+
moneyAccountWithdraw = 'moneyAccountWithdraw',
787+
778788
/**
779789
* A transaction that claims yield from a mUSD contract.
780790
*/

0 commit comments

Comments
 (0)