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": "574.0.0",
"version": "573.0.0",
"private": true,
"description": "Monorepo for packages shared between MetaMask clients",
"repository": {
Expand Down
59 changes: 23 additions & 36 deletions packages/bridge-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,40 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [45.0.0]

### Uncategorized

- Release/574.0.0 ([#6680](https://github.com/MetaMask/core/pull/6680))

### Added

- Add support for Bitcoin bridge transactions ([#6454](https://github.com/MetaMask/core/pull/6454))
- Handle Bitcoin PSBT (Partially Signed Bitcoin Transaction) format in trade data
- Add `BitcoinTradeDataSchema` and `BitcoinQuoteResponseSchema` validators
- Support Bitcoin chain ID (`ChainId.BTC = 20000000000001`) and CAIP format (`bip122:000000000019d6689c085ae165831e93`)
- Export `isNonEvmChainId` utility function to check for non-EVM chains (Solana, Bitcoin) ([#6454](https://github.com/MetaMask/core/pull/6454))

### Changed

- **BREAKING:** Rename fee handling for non-EVM chains ([#6454](https://github.com/MetaMask/core/pull/6454))
- Replace `SolanaFees` type with `NonEvmFees` type
- Replace `solanaFeesInLamports` field with `nonEvmFeesInNative` field
- Update `#appendSolanaFees` to `#appendNonEvmFees` to support all non-EVM chains
- The `nonEvmFeesInNative` field stores fees in the smallest units for each chain (lamports for Solana, satoshis for Bitcoin)
- Update Snap methods to use new unified interface for non-EVM chains ([#6454](https://github.com/MetaMask/core/pull/6454))
- Replace `getFeeForTransaction` with `computeFee` method that returns fees in native token units
- Update fee calculation to handle different unit conversions per chain
- Support fee computation for Bitcoin and Solana chains
- Update quote validation to support Bitcoin-specific trade data format ([#6454](https://github.com/MetaMask/core/pull/6454))
- Add separate validation for Bitcoin quotes that include `unsignedPsbtBase64` field
- Update selectors and utilities to use `isNonEvmChainId` instead of `isSolanaChainId` for generic non-EVM handling ([#6454](https://github.com/MetaMask/core/pull/6454))

### Removed

- **BREAKING:** Remove deprecated `SolanaFees` type - use `NonEvmFees` type instead ([#6454](https://github.com/MetaMask/core/pull/6454))
- **BREAKING:** Remove `solanaFeesInLamports` field from quotes - use `nonEvmFeesInNative` field instead ([#6454](https://github.com/MetaMask/core/pull/6454))

## [44.0.0]

### Changed
Expand All @@ -63,6 +29,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Add support for Bitcoin bridge transactions ([#6454](https://github.com/MetaMask/core/pull/6454))
- Handle Bitcoin PSBT (Partially Signed Bitcoin Transaction) format in trade data
- Add `BitcoinTradeDataSchema` and `BitcoinQuoteResponseSchema` validators
- Support Bitcoin chain ID (`ChainId.BTC = 20000000000001`) and CAIP format (`bip122:000000000019d6689c085ae165831e93`)
- Export `isNonEvmChainId` utility function to check for non-EVM chains (Solana, Bitcoin) ([#6454](https://github.com/MetaMask/core/pull/6454))
- Add `selectDefaultSlippagePercentage` that returns the default slippage for a chain and token combination ([#6616](https://github.com/MetaMask/core/pull/6616))
- Return `0.5` if requesting a bridge quote
- Return `undefined` (auto) if requesting a Solana swap
Expand All @@ -72,9 +43,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- **BREAKING:** Rename fee handling for non-EVM chains ([#6454](https://github.com/MetaMask/core/pull/6454))
- Replace `SolanaFees` type with `NonEvmFees` type
- Replace `solanaFeesInLamports` field with `nonEvmFeesInNative` field
- Update `#appendSolanaFees` to `#appendNonEvmFees` to support all non-EVM chains
- The `nonEvmFeesInNative` field stores fees in the smallest units for each chain (lamports for Solana, satoshis for Bitcoin)
- Update Snap methods to use new unified interface for non-EVM chains ([#6454](https://github.com/MetaMask/core/pull/6454))
- Replace `getFeeForTransaction` with `computeFee` method that returns fees in native token units
- Update fee calculation to handle different unit conversions per chain
- Support fee computation for Bitcoin and Solana chains
- Update quote validation to support Bitcoin-specific trade data format ([#6454](https://github.com/MetaMask/core/pull/6454))
- Add separate validation for Bitcoin quotes that include `unsignedPsbtBase64` field
- Update selectors and utilities to use `isNonEvmChainId` instead of `isSolanaChainId` for generic non-EVM handling ([#6454](https://github.com/MetaMask/core/pull/6454))
- Bump `@metamask/controller-utils` from `^11.12.0` to `^11.14.0` ([#6620](https://github.com/MetaMask/core/pull/6620), [#6629](https://github.com/MetaMask/core/pull/6629))
- Bump `@metamask/base-controller` from `^8.3.0` to `^8.4.0` ([#6632](https://github.com/MetaMask/core/pull/6632))

### Removed

- **BREAKING:** Remove deprecated `SolanaFees` type - use `NonEvmFees` type instead ([#6454](https://github.com/MetaMask/core/pull/6454))
- **BREAKING:** Remove `solanaFeesInLamports` field from quotes - use `nonEvmFeesInNative` field instead ([#6454](https://github.com/MetaMask/core/pull/6454))

## [43.0.0]

### Added
Expand Down Expand Up @@ -637,8 +625,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Initial release ([#5317](https://github.com/MetaMask/core/pull/5317))

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/bridge-controller@45.0.0...HEAD
[45.0.0]: https://github.com/MetaMask/core/compare/@metamask/bridge-controller@44.0.0...@metamask/bridge-controller@45.0.0
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/bridge-controller@44.0.0...HEAD
[44.0.0]: https://github.com/MetaMask/core/compare/@metamask/bridge-controller@43.2.1...@metamask/bridge-controller@44.0.0
[43.2.1]: https://github.com/MetaMask/core/compare/@metamask/bridge-controller@43.2.0...@metamask/bridge-controller@43.2.1
[43.2.0]: https://github.com/MetaMask/core/compare/@metamask/bridge-controller@43.1.0...@metamask/bridge-controller@43.2.0
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-controller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/bridge-controller",
"version": "45.0.0",
"version": "44.0.0",
"description": "Manages bridge-related quote fetching functionality for MetaMask",
"keywords": [
"MetaMask",
Expand Down
36 changes: 13 additions & 23 deletions packages/bridge-status-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [45.0.0]
### Changed

- Refactor `handleLineaDelay` to `handleApprovalDelay` for improved abstraction and add support for Base chain by using an array and `includes` for chain ID checks ([#6674](https://github.com/MetaMask/core/pull/6674))

## [44.0.0]

### Uncategorized
### Changed

- Release/574.0.0 ([#6680](https://github.com/MetaMask/core/pull/6680))
- **BREAKING:** Bump peer dependency `@metamask/bridge-controller` from `^43.0.0` to `^44.0.0` ([#6652](https://github.com/MetaMask/core/pull/6652), [#6676](https://github.com/MetaMask/core/pull/6676))

## [43.1.0]

### Added

Expand All @@ -20,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Support Bitcoin transaction submission through unified Snap interface
- Add Bitcoin-specific transaction handling in `#handleNonEvmTx` method
- Support extraction of `unsignedPsbtBase64` from trade data for Bitcoin transactions
- Add new controller metadata properties to `BridgeStatusController` ([#6589](https://github.com/MetaMask/core/pull/6589))

### Changed

Expand All @@ -42,29 +49,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Use `formatChainIdToCaip` to get proper scope for each chain
- Extract transaction data from either string or PSBT object format
- Remove dependency on `@metamask/keyring-api` ([#6454](https://github.com/MetaMask/core/pull/6454))
- Refactor `handleLineaDelay` to `handleApprovalDelay` for improved abstraction and add support for Base chain by using an array and `includes` for chain ID checks ([#6674](https://github.com/MetaMask/core/pull/6674))
- Bump `@metamask/controller-utils` from `^11.12.0` to `^11.14.0` ([#6620](https://github.com/MetaMask/core/pull/6620), [#6629](https://github.com/MetaMask/core/pull/6629))
- Bump `@metamask/base-controller` from `^8.3.0` to `^8.4.0` ([#6632](https://github.com/MetaMask/core/pull/6632))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Changelog Mismatch: Bitcoin Features Misplaced

The changelog incorrectly moves Bitcoin support features and related non-EVM changes from the reverted 45.0.0 release to 43.1.0. This backdates features that were never part of 43.1.0, making the historical changelog inaccurate.

Additional Locations (1)

Fix in Cursor Fix in Web

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, but, this is a revert commit.


### Removed

- Remove direct dependency on `@metamask/keyring-api` - no longer needed with unified Snap interface ([#6454](https://github.com/MetaMask/core/pull/6454))

## [44.0.0]

### Changed

- **BREAKING:** Bump peer dependency `@metamask/bridge-controller` from `^43.0.0` to `^44.0.0` ([#6652](https://github.com/MetaMask/core/pull/6652), [#6676](https://github.com/MetaMask/core/pull/6676))

## [43.1.0]

### Added

- Add new controller metadata properties to `BridgeStatusController` ([#6589](https://github.com/MetaMask/core/pull/6589))

### Changed

- Bump `@metamask/controller-utils` from `^11.12.0` to `^11.14.0` ([#6620](https://github.com/MetaMask/core/pull/6620), [#6629](https://github.com/MetaMask/core/pull/6629))
- Bump `@metamask/base-controller` from `^8.3.0` to `^8.4.0` ([#6632](https://github.com/MetaMask/core/pull/6632))

## [43.0.0]

### Changed
Expand Down Expand Up @@ -599,8 +590,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Initial release ([#5317](https://github.com/MetaMask/core/pull/5317))

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/bridge-status-controller@45.0.0...HEAD
[45.0.0]: https://github.com/MetaMask/core/compare/@metamask/bridge-status-controller@44.0.0...@metamask/bridge-status-controller@45.0.0
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/bridge-status-controller@44.0.0...HEAD
[44.0.0]: https://github.com/MetaMask/core/compare/@metamask/bridge-status-controller@43.1.0...@metamask/bridge-status-controller@44.0.0
[43.1.0]: https://github.com/MetaMask/core/compare/@metamask/bridge-status-controller@43.0.0...@metamask/bridge-status-controller@43.1.0
[43.0.0]: https://github.com/MetaMask/core/compare/@metamask/bridge-status-controller@42.0.0...@metamask/bridge-status-controller@43.0.0
Expand Down
6 changes: 3 additions & 3 deletions packages/bridge-status-controller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/bridge-status-controller",
"version": "45.0.0",
"version": "44.0.0",
"description": "Manages bridge-related status fetching functionality for MetaMask",
"keywords": [
"MetaMask",
Expand Down Expand Up @@ -59,7 +59,7 @@
"devDependencies": {
"@metamask/accounts-controller": "^33.1.0",
"@metamask/auto-changelog": "^3.4.4",
"@metamask/bridge-controller": "^45.0.0",
"@metamask/bridge-controller": "^44.0.0",
"@metamask/gas-fee-controller": "^24.0.0",
"@metamask/network-controller": "^24.2.0",
"@metamask/snaps-controllers": "^14.0.1",
Expand All @@ -77,7 +77,7 @@
},
"peerDependencies": {
"@metamask/accounts-controller": "^33.0.0",
"@metamask/bridge-controller": "^45.0.0",
"@metamask/bridge-controller": "^44.0.0",
"@metamask/gas-fee-controller": "^24.0.0",
"@metamask/network-controller": "^24.0.0",
"@metamask/snaps-controllers": "^14.0.0",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2723,7 +2723,7 @@ __metadata:
languageName: unknown
linkType: soft

"@metamask/bridge-controller@npm:^45.0.0, @metamask/bridge-controller@workspace:packages/bridge-controller":
"@metamask/bridge-controller@npm:^44.0.0, @metamask/bridge-controller@workspace:packages/bridge-controller":
version: 0.0.0-use.local
resolution: "@metamask/bridge-controller@workspace:packages/bridge-controller"
dependencies:
Expand Down Expand Up @@ -2779,7 +2779,7 @@ __metadata:
"@metamask/accounts-controller": "npm:^33.1.0"
"@metamask/auto-changelog": "npm:^3.4.4"
"@metamask/base-controller": "npm:^8.4.0"
"@metamask/bridge-controller": "npm:^45.0.0"
"@metamask/bridge-controller": "npm:^44.0.0"
"@metamask/controller-utils": "npm:^11.14.0"
"@metamask/gas-fee-controller": "npm:^24.0.0"
"@metamask/keyring-api": "npm:^21.0.0"
Expand All @@ -2803,7 +2803,7 @@ __metadata:
uuid: "npm:^8.3.2"
peerDependencies:
"@metamask/accounts-controller": ^33.0.0
"@metamask/bridge-controller": ^45.0.0
"@metamask/bridge-controller": ^44.0.0
"@metamask/gas-fee-controller": ^24.0.0
"@metamask/network-controller": ^24.0.0
"@metamask/snaps-controllers": ^14.0.0
Expand Down
Loading