UNPKG

@erc7824/nitrolite

Version:

The Nitrolite SDK empowers developers to build high-performance, scalable web3 applications using state channels. It's designed to provide near-instant transactions and significantly improved user experiences by minimizing direct blockchain interactions.

16 lines (15 loc) 906 B
import { z } from 'zod'; import { RPCChannelStatus, RPCMethod } from '../types'; export interface ParamsParser<T> { (params: object[]): T; } export declare class ParserParamsMissingError extends Error { constructor(method: RPCMethod); } export declare const hexSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>; export declare const addressSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>; export declare const bigIntSchema: z.ZodString; export declare const dateSchema: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, Date, string | Date>; export declare const decimalSchema: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>; export declare const statusEnum: z.ZodNativeEnum<typeof RPCChannelStatus>; export declare const noop: ParamsParser<unknown>;