/** * @fileoverview Supported chains and factory addresses for EscapeHub Token Creator. * * Users can import these configs directly instead of hardcoding addresses. * * @example * ```typescript * import { SUPPORTED_CHAINS, getChainConfig } from '@escapehub/token-creator'; * * const baseConfig = getChainConfig(8453); // Base * console.log(baseConfig.factoryAddress); * ``` */ /** * Chain configuration for token deployment. */ export interface SupportedChainConfig { /** Chain ID */ chainId: number; /** Chain name */ name: string; /** Factory contract address */ factoryAddress: string; /** Whether this is a testnet */ testnet: boolean; /** Multicall3 address (false if not available) */ multicall3Address: string | false; /** Public RPC URL (may be rate limited) */ rpcUrl?: string; } /** * Standard Multicall3 address deployed on most EVM chains. */ export declare const STANDARD_MULTICALL3 = "0xcA11bde05977b3631167028862bE2a173976CA11"; /** * All supported chains with their factory addresses. * * Factory addresses are where the LaunchERC20Factory contract is deployed. * These are the official EscapeHub deployments. */ export declare const SUPPORTED_CHAINS: SupportedChainConfig[]; /** * Map of chain ID to chain config for quick lookup. */ export declare const CHAIN_MAP: Map; /** * Get chain configuration by chain ID. * * @param chainId - The chain ID to look up * @returns Chain config or undefined if not supported * * @example * ```typescript * import { getChainConfig } from '@escapehub/token-creator'; * * const base = getChainConfig(8453); * if (base) { * console.log(base.factoryAddress); // '0x10ca27bc0c4f9c1ea9169a76270c0c136d160a54' * } * ``` */ export declare function getChainConfig(chainId: number): SupportedChainConfig | undefined; /** * Get factory address for a chain. * * @param chainId - The chain ID * @returns Factory address or undefined if not supported * * @example * ```typescript * import { getFactoryAddress } from '@escapehub/token-creator'; * * const factory = getFactoryAddress(8453); // Base * // '0x10ca27bc0c4f9c1ea9169a76270c0c136d160a54' * ``` */ export declare function getFactoryAddress(chainId: number): string | undefined; /** * Check if a chain is supported. * * @param chainId - The chain ID to check * @returns true if the chain is supported */ export declare function isChainSupported(chainId: number): boolean; /** * Get all mainnet chains. */ export declare function getMainnets(): SupportedChainConfig[]; /** * Get all testnet chains. */ export declare function getTestnets(): SupportedChainConfig[]; //# sourceMappingURL=chains.d.ts.map