@pancakeswap/chains
Version:
The single source of truth for Pancakeswap chain-related information
9 lines • 1.01 kB
TypeScript
import { ChainId } from './chainId';
import { mainnetChainNamesInKebabCase } from './chainNames';
export declare function getChainName(chainId: ChainId): string;
export declare function getChainNameInKebabCase(chainId: ChainId): "goerli" | "bsc" | "linea" | "base" | "sepolia" | "ethereum" | "bsc-testnet" | "arbitrum" | "arbitrum-goerli" | "polygon-zkevm" | "polygon-zkevm-testnet" | "zksync" | "zksync-testnet" | "linea-testnet" | "opbnb" | "opbnb-testnet" | "base-testnet" | "scroll-sepolia" | "arbitrum-sepolia" | "base-sepolia" | "monad-testnet";
export declare function getMainnetChainNameInKebabCase(chainId: keyof typeof mainnetChainNamesInKebabCase): "bsc" | "linea" | "base" | "ethereum" | "arbitrum" | "polygon-zkevm" | "zksync" | "opbnb";
export declare function getLlamaChainName(chainId: ChainId): string;
export declare function getChainIdByChainName(chainName?: string): ChainId | undefined;
export declare function isTestnetChainId(chainId: ChainId): boolean;
//# sourceMappingURL=utils.d.ts.map