New module with top Ethereum mainnet ERC-20 tokens sourced from CoinGecko API (market cap ranking) with decimals verified on-chain via eth_call to each contract. Addresses are EIP-55 checksummed. Exports: - TOKENS: full array ordered by market cap - TOKEN_BY_ADDRESS: Map of lowercase address -> token info - KNOWN_SYMBOLS: Map of uppercase symbol -> legitimate address - getTopTokens(n): return first n tokens This module is not yet integrated into the existing token.js — it exists alongside it for now as a data source ready for integration.
This commit is contained in: