Skip to content
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b5d5791
feat: add ResponseValidationFailure event for swap and bridge quotes
micaelae Aug 22, 2025
8d9a7b9
chore: changelog
micaelae Aug 22, 2025
50b3fff
fix: rm quotes_count property
micaelae Aug 22, 2025
1dabf58
feat: ResponseValidationFailure for getTxStatus
micaelae Aug 22, 2025
82abd6d
chore: rename validation event path to endpoint
micaelae Aug 25, 2025
23f67ee
chore: return validationFailures from fetchBridgeTxStatus
micaelae Aug 25, 2025
61113b8
test: fix unit tests
micaelae Aug 25, 2025
fd26569
fix: bridge-status-controller unit tests
micaelae Aug 25, 2025
0f85181
fix: token selector issues (#6358)
bergarces Aug 22, 2025
8edefd2
Fix: Normalize token addresses to prevent duplicate balance entries (…
salimtb Aug 22, 2025
2983b45
fix: reduce rpc fetch timeout and batch size (#6365)
salimtb Aug 22, 2025
d0e410c
feat: implement enableAllPopularNetworks function with comprehensive …
salimtb Aug 22, 2025
83b43b6
feat: add pay properties to transaction metadata (#6361)
matthewwalsh0 Aug 25, 2025
94b9e4b
Release/510.0.0 (#6371)
salimtb Aug 25, 2025
230f26a
feat: add account api support (#6369)
salimtb Aug 25, 2025
ea9e520
Integrate Shield gateway in transaction controller (#6281)
matthiasgeihs Aug 25, 2025
c623882
Release/511.0.0 (#6372)
bergarces Aug 25, 2025
0745bc7
Swaps 2807 account for min dest token amount (#6373)
bfullam Aug 25, 2025
1704559
Release/512.0.0 (#6376)
bfullam Aug 25, 2025
7aba689
feat: add ResponseValidationFailure event for swap and bridge quotes
micaelae Aug 22, 2025
64a8480
Merge branch 'main' into swaps2730-quote-validation-failure-event
micaelae Aug 25, 2025
90d9ef5
chore: update changelog
micaelae Aug 25, 2025
b093eb4
fix: update snapshots
micaelae Aug 26, 2025
f7cd6f6
chore: remove unused condition
micaelae Aug 26, 2025
efe6377
chore: rename events
micaelae Aug 26, 2025
6a80b40
fix: refresh_count value
micaelae Aug 26, 2025
abae1ed
Merge branch 'main' into swaps2730-quote-validation-failure-event
micaelae Aug 26, 2025
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
4 changes: 4 additions & 0 deletions packages/bridge-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Publish `QuotesValidationFailed` and `StatusValidationFailed` events ([#6362](https://github.com/MetaMask/core/pull/6362))

## [41.2.0]

### Uncategorized
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,20 @@ Array [
]
`;

exports[`BridgeController trackUnifiedSwapBridgeEvent bridge-status-controller calls should track the StatusValidationFailed event 1`] = `
Array [
Array [
"Unified SwapBridge Status Failed Validation",
Object {
"action_type": "swapbridge-v1",
"failures": Array [
"Failed to submit tx",
],
},
],
]
`;

exports[`BridgeController trackUnifiedSwapBridgeEvent bridge-status-controller calls should track the Submitted event 1`] = `
Array [
Array [
Expand Down Expand Up @@ -1021,6 +1035,60 @@ Array [
]
`;

exports[`BridgeController updateBridgeQuoteRequestParams: should append solanaFees for Solana quotes 2`] = `Array []`;

exports[`BridgeController updateBridgeQuoteRequestParams: should handle malformed quotes 1`] = `
Array [
Array [
"SnapController:handleRequest",
Object {
"handler": "onProtocolRequest",
"origin": "metamask",
"request": Object {
"jsonrpc": "2.0",
"method": " ",
"params": Object {
"request": Object {
"id": "test-uuid-1234",
"jsonrpc": "2.0",
"method": "getMinimumBalanceForRentExemption",
"params": Array [
0,
Object {
"commitment": "confirmed",
},
],
},
"scope": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
},
},
"snapId": "npm:@metamask/solana-snap",
},
],
]
`;

exports[`BridgeController updateBridgeQuoteRequestParams: should handle malformed quotes 2`] = `
Array [
Array [
"Unified SwapBridge Quotes Failed Validation",
Object {
"action_type": "swapbridge-v1",
"chain_id_destination": "eip155:1",
"chain_id_source": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"failures": Array [
"socket|quote.srcAsset.decimals",
"socket|quote.destAsset.address",
"lifi|quote.srcAsset.decimals",
],
"refresh_count": 0,
"token_address_destination": "eip155:1/slip44:60",
"token_address_source": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/token:NATIVE",
},
],
]
`;

exports[`BridgeController updateBridgeQuoteRequestParams: should handle mixed Solana and non-Solana quotes by not appending fees 1`] = `
Array [
Array [
Expand Down Expand Up @@ -1052,4 +1120,8 @@ Array [
]
`;

exports[`BridgeController updateBridgeQuoteRequestParams: should handle mixed Solana and non-Solana quotes by not appending fees 2`] = `Array []`;

exports[`BridgeController updateBridgeQuoteRequestParams: should not append solanaFees if selected account is not a snap 1`] = `Array []`;

exports[`BridgeController updateBridgeQuoteRequestParams: should not append solanaFees if selected account is not a snap 2`] = `Array []`;
Loading
Loading