UNPKG

@funkit/chains

Version:

Funkit Chains SDK centralizes chain information across all funkit apps and packages.

139 lines 3.83 kB
import { type Chain } from 'viem/chains'; export declare const DYDX_MAINNET_CHAIN_ID = 1511490300; export declare const dydxChain: { id: typeof DYDX_MAINNET_CHAIN_ID; name: string; nativeCurrency: { symbol: string; decimals: number; name: string; }; rpcUrls: { default: { http: string[]; }; }; blockExplorers: { default: { name: string; url: string; apiUrl: string; }; }; contracts: { ensRegistry: { address: `0x${string}`; }; ensUniversalResolver: { address: `0x${string}`; blockCreated: number; }; multicall3: { address: `0x${string}`; blockCreated: number; }; }; }; export declare const KATANA_CHAIN_ID = 747474; export declare const katanaChain: { id: typeof KATANA_CHAIN_ID; name: string; nativeCurrency: { symbol: string; decimals: number; name: string; }; rpcUrls: { default: { http: string[]; }; }; blockExplorers: { default: { name: string; url: string; apiUrl: string; }; }; contracts: { multicall3: { address: `0x${string}`; blockCreated: number; }; }; }; export declare const SOLANA_MAINNET_CHAIN_ID = 1151111081099710; export declare const solanaChain: { id: typeof SOLANA_MAINNET_CHAIN_ID; name: string; nativeCurrency: { symbol: string; decimals: number; name: string; }; rpcUrls: { default: { http: string[]; }; }; blockExplorers: { default: { name: string; url: string; apiUrl: string; }; }; contracts: { ensRegistry: { address: `0x${string}`; }; ensUniversalResolver: { address: `0x${string}`; blockCreated: number; }; multicall3: { address: `0x${string}`; blockCreated: number; }; }; }; export declare const FUNKIT_CONNECT_SUPPORTED_CHAINS_ID_LIST: readonly [1, 8453, 137, 42161, 10, 56, 324, 5000, 1511490300, 1151111081099710, 747474, 534352, 5, 421614]; type FunKitConnectSupportedChainId = (typeof FUNKIT_CONNECT_SUPPORTED_CHAINS_ID_LIST)[number]; interface FunTokenInfo { symbol: string; decimals: number; name: string; } export interface FunChainInfo { name: string; nativeCurrency: FunTokenInfo; coreToken?: FunTokenInfo; chainInfo: Chain; explorerInfo: NonNullable<NonNullable<Chain['blockExplorers']>['default']>; isCheckoutSupported: boolean; checkoutAssetWhitelist: string[]; isFunWalletSupported: boolean; isMainnet: boolean; moonpayChainName: string | null; pickPriority: number; isStandardEvmAddress: boolean; fallbackRpcUrls: string[]; } /** this type is used to mock `noUncheckedIndexedAccess` */ type SupportedChainInfos = { [key in FunKitConnectSupportedChainId]: FunChainInfo; } & { [k: string]: FunChainInfo | undefined; }; /** * Info on the supported chains of FunkitConnect * Added into coresdk because it is used in here too. * * fallbackRpcUrl: see https://chainlist.org/ for more public RPC endpoints */ export declare const FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO: SupportedChainInfos; export declare const FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO_LIST: (Chain | undefined)[]; export declare const FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST: Chain[]; export declare const FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"; export {}; //# sourceMappingURL=index.d.ts.map