@metamask/multichain-network-controller
Version:
Multichain network controller
77 lines • 3.43 kB
text/typescript
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_TESTNET4_NATIVE_ASSET = "bip122:00000000da84f2bafbbc53dee25a72ae/slip44:0";
export declare const BTC_SIGNET_NATIVE_ASSET = "bip122:00000008819873e925422c1ff0f99f7c/slip44:0";
export declare const BTC_REGTEST_NATIVE_ASSET = "bip122:regtest/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";
export declare const TRX_NATIVE_ASSET = "tron:728126428/slip44:195";
export declare const TRX_NILE_NATIVE_ASSET = "tron:3448148188/slip44:195";
export declare const TRX_SHASTA_NATIVE_ASSET = "tron:2494104990/slip44:195";
/**
* 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: {
includeInStateLogs: true;
persist: true;
includeInDebugSnapshot: true;
usedInUi: true;
};
selectedMultichainNetworkChainId: {
includeInStateLogs: true;
persist: true;
includeInDebugSnapshot: true;
usedInUi: true;
};
isEvmSelected: {
includeInStateLogs: true;
persist: true;
includeInDebugSnapshot: true;
usedInUi: true;
};
networksWithTransactionActivity: {
includeInStateLogs: true;
persist: true;
includeInDebugSnapshot: true;
usedInUi: 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