diff --git a/packages/config-registry-controller/CHANGELOG.md b/packages/config-registry-controller/CHANGELOG.md index f3d6629e2e5..260baaef01d 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.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 - 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..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 @@ -48,11 +48,15 @@ const ChainConfigSchema = type({ isFeatured: boolean(), isDeprecated: boolean(), isDeletable: boolean(), + isSwapsEnabled: optional(boolean()), + isBridgeEnabled: optional(boolean()), priority: number(), }); const NetworkContractsSchema = type({ multicall3: optional(StrictHexStruct), + swapRouter: optional(StrictHexStruct), + weth: optional(StrictHexStruct), }); /**