/** * CCIP Token Discovery Service * * Discovers and validates tokens that can be transferred between chains using Chainlink's CCIP. * The service handles pagination, parallel processing, and comprehensive error collection. * * Architecture: * 1. Chain & Contract Setup: Validates cross-chain paths and initializes core contracts * 2. Token Discovery: Fetches all registered tokens with pagination * 3. Support Validation: Checks token support for destination chain * 4. Detail Collection: Gathers token and pool information in parallel * * Performance Considerations: * - Uses batching to prevent RPC timeouts (configurable batch sizes) * - Implements parallel processing with rate limiting * - Memory-efficient token processing through pagination * * Error Handling: * - Individual token failures don't halt the process * - Errors are collected and reported comprehensively * - Detailed error reporting for debugging * * @module supported-tokens */ import type { Providers } from '../providers.ts'; import { Format } from './types.ts'; interface CCIPSupportedToken { name: string; symbol: string; decimals: number; token: string; pool: string; poolTypeAndVersion: string; poolDetails: TokenPoolLane; } interface TokenBucket { tokens: bigint; lastUpdated: number; isEnabled: boolean; capacity: bigint; rate: bigint; } interface TokenPoolLane { remoteToken: string; remotePools: readonly string[]; outboundRateLimiter: TokenBucket; inboundRateLimiter: TokenBucket; remoteChainSelector: bigint; } export declare function prettySupportedToken(token: CCIPSupportedToken): void; /** * Main entry point for token discovery process. * * Process Flow: * 1. Chain setup and validation * 2. Registry contract initialization * 3. Token discovery and filtering * 4. Detailed information gathering * 5. Result compilation and reporting * * Error Handling: * - Critical errors (chain/contract setup) halt the process * - Non-critical errors (individual tokens) are collected and reported * - Comprehensive error reporting for debugging * * Output Formats: * - json: Machine-readable complete output * - log: Basic console logging * - pretty: Formatted human-readable output */ export declare function showSupportedTokens(providers: Providers, argv: { source: string; router: string; dest: string; format: Format; }): Promise; export {}; //# sourceMappingURL=supported-tokens.d.ts.map