dAppBooster
    Preparing search index...

    Variable tokenSchemaConst

    tokenSchema: ZodObject<
        {
            address: ZodString;
            chainId: ZodNumber;
            decimals: ZodNumber;
            extensions: ZodOptional<
                ZodRecord<
                    ZodString,
                    ZodUnion<
                        [
                            ZodRecord<
                                ZodString,
                                ZodUnion<
                                    [ZodRecord<ZodString, ZodUnion<(...)>>, ZodUnion<[(...), (...)]>],
                                >,
                            >,
                            ZodUnion<[ZodUnion<[ZodUnion<(...)>, ZodUndefined]>, ZodBigInt]>,
                        ],
                    >,
                >,
            >;
            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<string, undefined | null | string | number | bigint | boolean>,
                >,
            >;
            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<string, undefined | null | string | number | bigint | boolean>,
                >,
            >;
            logoURI?: string;
            name: string;
            symbol: string;
        },
    > = ...

    An schema of a token object. Matches the Uniswap token type.

    export const tokenSchema = z.object({
    name: z.string().min(1),
    address,
    symbol: z.string().min(1),
    decimals: z.number(),
    chainId: z.number().min(1),
    logoURI: z.string().url().optional(),
    extensions: z
    .record(key, z.record(key, z.record(key, extensionValue).or(extensionValue)).or(extensionValue))
    .optional(),
    })