From 6bb04a6e80c246c1cecd9c8750a653bd479cd8b7 Mon Sep 17 00:00:00 2001 From: mikesposito Date: Tue, 11 Aug 2026 09:49:39 +0200 Subject: [PATCH 1/3] feat: add swaps-related properties to `config-registry-controller` --- packages/config-registry-controller/CHANGELOG.md | 5 +++++ .../src/config-registry-api-service/types.ts | 3 +++ 2 files changed, 8 insertions(+) diff --git a/packages/config-registry-controller/CHANGELOG.md b/packages/config-registry-controller/CHANGELOG.md index f3d6629e2e5..0dc20789de1 100644 --- a/packages/config-registry-controller/CHANGELOG.md +++ b/packages/config-registry-controller/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Add optional `contracts.swapRouters` property to `RegistryNetworkConfig` ([#0000](https://github.com/MetaMask/core/pull/0000)) +- Add optional `config.isSwapsEnabled` and `config.isBridgeEnabled` properties to `RegistryNetworkConfig` ([#0000](https://github.com/MetaMask/core/pull/0000)) + ### Changed - Bump `@metamask/superstruct` from `^3.1.0` to `^3.4.1` ([#9754](https://github.com/MetaMask/core/pull/9754)) diff --git a/packages/config-registry-controller/src/config-registry-api-service/types.ts b/packages/config-registry-controller/src/config-registry-api-service/types.ts index d1604ff8554..2a9f0574b40 100644 --- a/packages/config-registry-controller/src/config-registry-api-service/types.ts +++ b/packages/config-registry-controller/src/config-registry-api-service/types.ts @@ -48,11 +48,14 @@ const ChainConfigSchema = type({ isFeatured: boolean(), isDeprecated: boolean(), isDeletable: boolean(), + isSwapsEnabled: optional(boolean()), + isBridgeEnabled: optional(boolean()), priority: number(), }); const NetworkContractsSchema = type({ multicall3: optional(StrictHexStruct), + swapRouters: optional(array(StrictHexStruct)), }); /** From 04c16038c373c0bef059323180f0f7f419dec3a3 Mon Sep 17 00:00:00 2001 From: Michele Esposito <34438276+mikesposito@users.noreply.github.com> Date: Tue, 11 Aug 2026 09:55:35 +0200 Subject: [PATCH 2/3] update changelog with pr number --- packages/config-registry-controller/CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/config-registry-controller/CHANGELOG.md b/packages/config-registry-controller/CHANGELOG.md index 0dc20789de1..9362d2c9ac2 100644 --- a/packages/config-registry-controller/CHANGELOG.md +++ b/packages/config-registry-controller/CHANGELOG.md @@ -9,8 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Add optional `contracts.swapRouters` property to `RegistryNetworkConfig` ([#0000](https://github.com/MetaMask/core/pull/0000)) -- Add optional `config.isSwapsEnabled` and `config.isBridgeEnabled` properties to `RegistryNetworkConfig` ([#0000](https://github.com/MetaMask/core/pull/0000)) +- Add optional `contracts.swapRouters` property to `RegistryNetworkConfig` ([#9818](https://github.com/MetaMask/core/pull/9818)) +- Add optional `config.isSwapsEnabled` and `config.isBridgeEnabled` properties to `RegistryNetworkConfig` ([#9818](https://github.com/MetaMask/core/pull/9818)) ### Changed From 799fc5b573b74ad32ba78927f89330ce4edf93c0 Mon Sep 17 00:00:00 2001 From: mikesposito Date: Tue, 11 Aug 2026 10:00:55 +0200 Subject: [PATCH 3/3] chore: update properties --- packages/config-registry-controller/CHANGELOG.md | 2 +- .../src/config-registry-api-service/types.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/config-registry-controller/CHANGELOG.md b/packages/config-registry-controller/CHANGELOG.md index 9362d2c9ac2..260baaef01d 100644 --- a/packages/config-registry-controller/CHANGELOG.md +++ b/packages/config-registry-controller/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Add optional `contracts.swapRouters` property to `RegistryNetworkConfig` ([#9818](https://github.com/MetaMask/core/pull/9818)) +- Add optional `contracts.swapRouter` and `contracts.weth` properties to `RegistryNetworkConfig` ([#9818](https://github.com/MetaMask/core/pull/9818)) - Add optional `config.isSwapsEnabled` and `config.isBridgeEnabled` properties to `RegistryNetworkConfig` ([#9818](https://github.com/MetaMask/core/pull/9818)) ### Changed diff --git a/packages/config-registry-controller/src/config-registry-api-service/types.ts b/packages/config-registry-controller/src/config-registry-api-service/types.ts index 2a9f0574b40..773db3421ca 100644 --- a/packages/config-registry-controller/src/config-registry-api-service/types.ts +++ b/packages/config-registry-controller/src/config-registry-api-service/types.ts @@ -55,7 +55,8 @@ const ChainConfigSchema = type({ const NetworkContractsSchema = type({ multicall3: optional(StrictHexStruct), - swapRouters: optional(array(StrictHexStruct)), + swapRouter: optional(StrictHexStruct), + weth: optional(StrictHexStruct), }); /**