Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/core-monorepo",
"version": "1131.0.0",
"version": "1132.0.0",
"private": true,
"description": "Monorepo for packages shared between MetaMask clients",
"repository": {
Expand Down
5 changes: 4 additions & 1 deletion packages/money-account-api-data-service/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.0]

### Added

- Add optional nullable `balance` field to the positions response (`musd_balance`, `vmusd_value_in_musd`, `total_balance`), matching the Money Account API contract. Export `PositionBalance` type. ([#9554](https://github.com/MetaMask/core/pull/9554))
Expand All @@ -21,5 +23,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fetch cursor-paginated cash-flow history (`fetchHistory`)
- Fetch vault exchange-rate time series (`fetchRateHistory`)

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/money-account-api-data-service@0.1.0...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/money-account-api-data-service@0.2.0...HEAD
[0.2.0]: https://github.com/MetaMask/core/compare/@metamask/money-account-api-data-service@0.1.0...@metamask/money-account-api-data-service@0.2.0
[0.1.0]: https://github.com/MetaMask/core/releases/tag/@metamask/money-account-api-data-service@0.1.0
2 changes: 1 addition & 1 deletion packages/money-account-api-data-service/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/money-account-api-data-service",
"version": "0.1.0",
"version": "0.2.0",
"description": "Data service for fetching Money account positions, interest, cash-flow history, and vault rate history from the Money Account API",
"keywords": [
"Ethereum",
Expand Down
9 changes: 8 additions & 1 deletion packages/money-account-balance-service/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.3.0]

### Added

- Add `fetchBalanceWithFallback` facade that selects Money API or RPC balance sources from the `moneyAccountBalanceSource` remote feature flag (`api` | `rpc` | `api-only` | `rpc-only`; default `rpc` = RPC primary with Money API fallback). Returns canonical amounts plus `source` and `usedFallback` provenance; reports validation/unavailable source defects via messenger `captureException`; throws `MoneyAccountBalanceFetchError` when all eligible sources fail. ([#9554](https://github.com/MetaMask/core/pull/9554))
- Permit `MoneyAccountApiDataService:fetchPositions` on the balance service messenger so the facade can read Money API balances. ([#9554](https://github.com/MetaMask/core/pull/9554))
- Export `CanonicalMoneyAccountBalanceResponse`, balance-source constants/types, and `MoneyAccountBalanceFetchError` / `MoneyAccountBalanceUnavailableError` / `MoneyAccountBalanceValidationError`. ([#9554](https://github.com/MetaMask/core/pull/9554))

### Changed

- Bump `@metamask/money-account-api-data-service` from `^0.1.0` to `^0.2.0` ([#9573](https://github.com/MetaMask/core/pull/9573))

## [2.2.0]

### Added
Expand Down Expand Up @@ -113,7 +119,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Compute mUSD-equivalent value of vault share holdings (`getMusdEquivalentValue`)
- Fetch vault APY from the Veda performance REST API (`getVaultApy`)

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/money-account-balance-service@2.2.0...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/money-account-balance-service@2.3.0...HEAD
[2.3.0]: https://github.com/MetaMask/core/compare/@metamask/money-account-balance-service@2.2.0...@metamask/money-account-balance-service@2.3.0
[2.2.0]: https://github.com/MetaMask/core/compare/@metamask/money-account-balance-service@2.1.2...@metamask/money-account-balance-service@2.2.0
[2.1.2]: https://github.com/MetaMask/core/compare/@metamask/money-account-balance-service@2.1.1...@metamask/money-account-balance-service@2.1.2
[2.1.1]: https://github.com/MetaMask/core/compare/@metamask/money-account-balance-service@2.1.0...@metamask/money-account-balance-service@2.1.1
Expand Down
4 changes: 2 additions & 2 deletions packages/money-account-balance-service/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/money-account-balance-service",
"version": "2.2.0",
"version": "2.3.0",
"description": "Data service for fetching Money account balances, exchange rates, and vault APY",
"keywords": [
"Ethereum",
Expand Down Expand Up @@ -61,7 +61,7 @@
"@metamask/controller-utils": "^12.3.0",
"@metamask/messenger": "^2.0.0",
"@metamask/metamask-eth-abis": "^3.1.1",
"@metamask/money-account-api-data-service": "^0.1.0",
"@metamask/money-account-api-data-service": "^0.2.0",
"@metamask/network-controller": "^34.0.0",
"@metamask/remote-feature-flag-controller": "^4.2.2",
"@metamask/superstruct": "^3.1.0",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7485,7 +7485,7 @@ __metadata:
languageName: node
linkType: hard

"@metamask/money-account-api-data-service@npm:^0.1.0, @metamask/money-account-api-data-service@workspace:packages/money-account-api-data-service":
"@metamask/money-account-api-data-service@npm:^0.2.0, @metamask/money-account-api-data-service@workspace:packages/money-account-api-data-service":
version: 0.0.0-use.local
resolution: "@metamask/money-account-api-data-service@workspace:packages/money-account-api-data-service"
dependencies:
Expand Down Expand Up @@ -7520,7 +7520,7 @@ __metadata:
"@metamask/controller-utils": "npm:^12.3.0"
"@metamask/messenger": "npm:^2.0.0"
"@metamask/metamask-eth-abis": "npm:^3.1.1"
"@metamask/money-account-api-data-service": "npm:^0.1.0"
"@metamask/money-account-api-data-service": "npm:^0.2.0"
"@metamask/network-controller": "npm:^34.0.0"
"@metamask/remote-feature-flag-controller": "npm:^4.2.2"
"@metamask/superstruct": "npm:^3.1.0"
Expand Down