Variable tokenListSchemaConst
tokenListSchema: ZodObject<
{
keywords: ZodOptional<ZodArray<ZodString, "many">>;
logoURI: ZodOptional<ZodString>;
name: ZodString;
tags: ZodOptional<
ZodRecord<
ZodString,
ZodObject<
{ description: ZodString; name: ZodString },
"strip",
ZodTypeAny,
{ description: string; name: string },
{ description: string; name: string },
>,
>,
>;
timestamp: ZodString;
tokens: ZodArray<
ZodObject<
{
address: ZodString;
chainId: ZodNumber;
decimals: ZodNumber;
extensions: ZodOptional<
ZodRecord<
ZodString,
ZodUnion<
[ZodRecord<ZodString, ZodUnion<(...)>>, ZodUnion<[(...), (...)]>],
>,
>,
>;
logoURI: ZodOptional<ZodString>;
name: ZodString;
symbol: ZodString;
},
"strip",
ZodTypeAny,
{
address: string;
chainId: number;
decimals: number;
extensions?: Record<
string,
| undefined
| null
| string
| number
| bigint
| boolean
| Record<
string,
| undefined
| null
| string
| number
| bigint
| boolean
| Record<(...), (...)>,
>,
>;
logoURI?: string;
name: string;
symbol: string;
},
{
address: string;
chainId: number;
decimals: number;
extensions?: Record<
string,
| undefined
| null
| string
| number
| bigint
| boolean
| Record<
string,
| undefined
| null
| string
| number
| bigint
| boolean
| Record<(...), (...)>,
>,
>;
logoURI?: string;
name: string;
symbol: string;
},
>,
"many",
>;
version: ZodObject<
{ major: ZodNumber; minor: ZodNumber; patch: ZodNumber },
"strip",
ZodTypeAny,
{ major: number; minor: number; patch: number },
{ major: number; minor: number; patch: number },
>;
},
"strip",
ZodTypeAny,
{
keywords?: string[];
logoURI?: string;
name: string;
tags?: Record<string, { description: string; name: string }>;
timestamp: string;
tokens: {
address: string;
chainId: number;
decimals: number;
extensions?: Record<
string,
| undefined
| null
| string
| number
| bigint
| boolean
| Record<
string,
| undefined
| null
| string
| number
| bigint
| boolean
| Record<string, (...) | (...) | (...) | (...) | (...) | (...) | (...)>,
>,
>;
logoURI?: string;
name: string;
symbol: string;
}[];
version: { major: number; minor: number; patch: number };
},
{
keywords?: string[];
logoURI?: string;
name: string;
tags?: Record<string, { description: string; name: string }>;
timestamp: string;
tokens: {
address: string;
chainId: number;
decimals: number;
extensions?: Record<
string,
| undefined
| null
| string
| number
| bigint
| boolean
| Record<
string,
| undefined
| null
| string
| number
| bigint
| boolean
| Record<string, (...) | (...) | (...) | (...) | (...) | (...) | (...)>,
>,
>;
logoURI?: string;
name: string;
symbol: string;
}[];
version: { major: number; minor: number; patch: number };
},
> = ...
An schema of a token list object. Matches the Uniswap token list type.