Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add multichain support to bridge-controller #5486

Merged
merged 53 commits into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
d546e88
feat: add multichain support to bridge-controller
micaelae Mar 14, 2025
2a78428
chore: updates after self-review
micaelae Mar 14, 2025
e39a237
chore: update comments and rm hardcoded values
micaelae Mar 14, 2025
959b593
chore: move tenderly insufficientBal param to controller
micaelae Mar 14, 2025
bbbd9d9
chore: revert BridgeControllerState change
micaelae Mar 17, 2025
35f0c20
chore: export more constants, utils and types
micaelae Mar 17, 2025
5f6df52
fix: type definitions
micaelae Mar 17, 2025
42b9e6c
chore: return native and solana tokens in fetchBridgeTokens
micaelae Mar 18, 2025
79ae2ce
chore: add comments and rm assetId from SwapsTokenObject
micaelae Mar 18, 2025
f9bbc6e
fix: lint issue
micaelae Mar 18, 2025
17d0718
fix: build
micaelae Mar 18, 2025
accbf8f
fix: package constraints
micaelae Mar 18, 2025
8b0133a
fix: add iconUrl to BridgeAssetSchema
micaelae Mar 18, 2025
504122e
test: add assetId to bridge tokens
micaelae Mar 18, 2025
1cbef13
fix: unit tests
micaelae Mar 18, 2025
ea22176
fix: unused var
micaelae Mar 18, 2025
9336158
test: update bridge-status test data
micaelae Mar 18, 2025
f95dbb5
test: fix lint issue
micaelae Mar 18, 2025
b3e6933
test: add unit tests for caip-formatters utils
micaelae Mar 18, 2025
638a9ab
test: add bridge-controller and quote unit tests
micaelae Mar 19, 2025
90fae92
fix: bridge-status test mocks
micaelae Mar 19, 2025
080441c
Merge branch 'main' into mms2100-bridge-multichain-support
micaelae Mar 19, 2025
ad68a28
Merge branch 'main' into mms2100-bridge-multichain-support
micaelae Mar 19, 2025
bbfcb78
fix: remove new peerDependencies
micaelae Mar 19, 2025
903be62
test: remove comments from test
micaelae Mar 19, 2025
4eaec44
refactor: rename formatAddressToString -> formatAddressToCaipReference
micaelae Mar 19, 2025
8ca9e4a
chore: add comments for L1 and Solana fees
micaelae Mar 19, 2025
befb478
chore: add solana to AllowedBridgeChainIds
micaelae Mar 19, 2025
1275f99
chore: rm formatChainIdToHexOrCaip
micaelae Mar 19, 2025
f9b83e6
feat: deprecate SwapsTokenObject and SWAPS_CHAINID_DEFAULT_TOKEN_MAP
micaelae Mar 19, 2025
e0fde63
chore: add comment for removing BridgeToken.string
micaelae Mar 19, 2025
977fa2c
fix: import
micaelae Mar 19, 2025
9c4a47f
fix: types
micaelae Mar 19, 2025
f83ca28
fix: lint
micaelae Mar 19, 2025
84fd841
chore: update changelog
micaelae Mar 19, 2025
3cbf01b
fix: format changelog
micaelae Mar 19, 2025
03c4c9c
chore: update changelog
micaelae Mar 19, 2025
15656fc
chore: export getDefaultBridgeControllerState
micaelae Mar 19, 2025
a0cc569
chore: validate refreshRate FF
micaelae Mar 19, 2025
2530dd3
Merge branch 'main' into mms2100-bridge-multichain-support
micaelae Mar 19, 2025
7b3f118
fix: constraints
micaelae Mar 19, 2025
72a1a9f
fix: yarn.lock
micaelae Mar 19, 2025
1cbe139
Merge branch 'main' into mms2100-bridge-multichain-support
micaelae Mar 20, 2025
ebfdb5b
Revert "fix: yarn.lock"
micaelae Mar 20, 2025
22bbc02
Revert "fix: constraints"
micaelae Mar 20, 2025
4f74761
chore: add comment for assetType/assetId
micaelae Mar 20, 2025
8c783cb
fix: constraints
micaelae Mar 20, 2025
3938915
fix: package.json
micaelae Mar 20, 2025
76e0419
Merge branch 'main' into mms2100-bridge-multichain-support
micaelae Mar 20, 2025
a213df2
chore: update changelog
micaelae Mar 20, 2025
ec8afda
chore: replace AddressZero check with isNativeAddress
micaelae Mar 20, 2025
330335c
chore: throw an error if native asset is not found for a chain
micaelae Mar 20, 2025
e7013a5
Merge branch 'main' into mms2100-bridge-multichain-support
micaelae Mar 21, 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
18 changes: 18 additions & 0 deletions packages/bridge-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- BREAKING: Bump dependency @metamask/keyring-api to ^17.2.0 ([#5486](https://github.com/MetaMask/core/pull/5486))
- BREAKING: Bump dependency @metamask/multichain-network-controller to ^0.3.0 ([#5486](https://github.com/MetaMask/core/pull/5486))
- BREAKING: Bump dependency @metamask/snaps-utils to ^8.10.0 ([#5486](https://github.com/MetaMask/core/pull/5486))
- BREAKING: Bump peer dependency @metamask/snaps-controllers to ^9.19.0 ([#5486](https://github.com/MetaMask/core/pull/5486))
- Solana constants, utils, quote and token support ([#5486](https://github.com/MetaMask/core/pull/5486))
- Utilities to convert chainIds between `ChainId`, `Hex`, `string` and `CaipChainId` ([#5486](https://github.com/MetaMask/core/pull/5486))
- Add `refreshRate` feature flag to enable chain-specific quote refresh intervals ([#5486](https://github.com/MetaMask/core/pull/5486))
- `isNativeAddress` and `isSolanaChainId` utilities that can be used by both the controller and clients ([#5486](https://github.com/MetaMask/core/pull/5486))

### Changed

- Replace QuoteRequest usages with `GenericQuoteRequest` to support both EVM and multichain input parameters ([#5486](https://github.com/MetaMask/core/pull/5486))
- Make `QuoteRequest.slippage` optional ([#5486](https://github.com/MetaMask/core/pull/5486))
- Deprecate `SwapsTokenObject` and replace usages with multichain BridgeAsset ([#5486](https://github.com/MetaMask/core/pull/5486))
- Changed `bridgeFeatureFlags.extensionConfig.chains` to key configs by CAIP chainIds ([#5486](https://github.com/MetaMask/core/pull/5486))

## [10.0.0]

### Changed
Expand Down
5 changes: 5 additions & 0 deletions packages/bridge-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,19 @@
"@ethersproject/providers": "^5.7.0",
"@metamask/base-controller": "^8.0.0",
"@metamask/controller-utils": "^11.6.0",
"@metamask/keyring-api": "^17.2.0",
"@metamask/metamask-eth-abis": "^3.1.1",
"@metamask/multichain-network-controller": "^0.3.0",
"@metamask/polling-controller": "^13.0.0",
"@metamask/snaps-utils": "^8.10.0",
"@metamask/utils": "^11.2.0"
},
"devDependencies": {
"@metamask/accounts-controller": "^27.0.0",
"@metamask/auto-changelog": "^3.4.4",
"@metamask/eth-json-rpc-provider": "^4.1.8",
"@metamask/network-controller": "^23.1.0",
"@metamask/snaps-controllers": "^9.19.0",
"@metamask/superstruct": "^3.1.0",
"@metamask/transaction-controller": "^52.0.0",
"@types/jest": "^27.4.1",
Expand All @@ -79,6 +83,7 @@
"peerDependencies": {
"@metamask/accounts-controller": "^27.0.0",
"@metamask/network-controller": "^23.0.0",
"@metamask/snaps-controllers": "^9.19.0",
"@metamask/transaction-controller": "^52.0.0"
},
"engines": {
Expand Down
Loading
Loading