UNPKG

@metamask/multichain-network-controller

Version:
64 lines 2.75 kB
import { type CaipChainId } from "@metamask/keyring-api"; import type { MultichainNetworkConfiguration, MultichainNetworkControllerState, MultichainNetworkMetadata, SupportedCaipChainId } from "./types.mjs"; export declare const BTC_NATIVE_ASSET = "bip122:000000000019d6689c085ae165831e93/slip44:0"; export declare const BTC_TESTNET_NATIVE_ASSET = "bip122:000000000933ea01ad0ee984209779ba/slip44:0"; export declare const BTC_SIGNET_NATIVE_ASSET = "bip122:00000008819873e925422c1ff0f99f7c/slip44:0"; export declare const SOL_NATIVE_ASSET = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/slip44:501"; export declare const SOL_TESTNET_NATIVE_ASSET = "solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z/slip44:501"; export declare const SOL_DEVNET_NATIVE_ASSET = "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1/slip44:501"; /** * Supported networks by the MultichainNetworkController */ export declare const AVAILABLE_MULTICHAIN_NETWORK_CONFIGURATIONS: Record<SupportedCaipChainId, MultichainNetworkConfiguration>; /** * Array of all the Non-EVM chain IDs. * This is a temporary mention until we develop * a more robust solution to identify testnet networks. */ export declare const NON_EVM_TESTNET_IDS: CaipChainId[]; /** * Metadata for the supported networks. */ export declare const NETWORKS_METADATA: Record<string, MultichainNetworkMetadata>; /** * Default state of the {@link MultichainNetworkController}. * * @returns The default state of the {@link MultichainNetworkController}. */ export declare const getDefaultMultichainNetworkControllerState: () => MultichainNetworkControllerState; /** * {@link MultichainNetworkController}'s metadata. * * This allows us to choose if fields of the state should be persisted or not * using the `persist` flag; and if they can be sent to Sentry or not, using * the `anonymous` flag. */ export declare const MULTICHAIN_NETWORK_CONTROLLER_METADATA: { multichainNetworkConfigurationsByChainId: { persist: true; anonymous: true; }; selectedMultichainNetworkChainId: { persist: true; anonymous: true; }; isEvmSelected: { persist: true; anonymous: true; }; networksWithTransactionActivity: { persist: true; anonymous: true; }; }; /** * Multichain network ticker for the supported networks. * TODO: This should be part of the assets-controllers or the snap itself. */ export declare const MULTICHAIN_NETWORK_TICKER: Record<CaipChainId, string>; /** * Multichain network asset decimals for the supported networks. * TODO: This should be part of the assets-controllers or the snap itself. */ export declare const MULTICHAIN_NETWORK_DECIMAL_PLACES: Record<CaipChainId, number>; //# sourceMappingURL=constants.d.mts.map