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
1 change: 1 addition & 0 deletions packages/controller-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Add constant `NETWORKS_BYPASSING_VALIDATION` to allow clients to ignore warning messages for specific networks. ([#6557](https://github.com/MetaMask/core/pull/6557))
- Add `circuitBreakDuration` to the object returned by `createServicePolicy` ([#6423](https://github.com/MetaMask/core/pull/6423))
- This is the amount of time that the underlying circuit breaker policy will pause execution of the input function while the circuit is broken.
- Add `getRemainingCircuitOpenDuration` to the object returned by `createServicePolicy` ([#6423](https://github.com/MetaMask/core/pull/6423))
Expand Down
16 changes: 16 additions & 0 deletions packages/controller-utils/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,22 @@ export const BUILT_IN_NETWORKS = {
},
} as const;

/**
* When a user adds a custom network to MetaMask, we perform some basic
* validations on the network. For instance, usually a network cannot share the
* same chain as another. In some cases, however, we want to allow networks that
* would normally be invalid. This mapping contains networks that should bypass
* validation.
*/
export const NETWORKS_BYPASSING_VALIDATION = {
// HyperEVM uses the same chain ID as Wanchain
'0x3e7': {
name: 'HyperEVM',
symbol: 'HYPE',
rpcUrl: 'https://rpc.hyperliquid.xyz',
},
};

// APIs
export const OPENSEA_PROXY_URL =
'https://proxy.api.cx.metamask.io/opensea/v1/api/v2';
Expand Down
Loading