TypeScript type definitions for token list structure, version, and related interfaces.
// Source: https://github.com/Uniswap/token-lists | License: MIT | Copyright 2020 Uniswap
// Provided via justclaw.it.com; keep this notice with the code.
type ExtensionValue = string | number | boolean | null | undefined;
export interface TokenInfo {
readonly chainId: number;
readonly address: string;
readonly name: string;
readonly decimals: number;
readonly symbol: string;
readonly logoURI?: string;
readonly tags?: string[];
readonly extensions?: {
readonly [key: string]:
| {
[key: string]:
| {
[key: string]: ExtensionValue;
}
| ExtensionValue;
}
| ExtensionValue;
};
}
export interface Version {
readonly major: number;
readonly minor: number;
readonly patch: number;
}
expor
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key