@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.
13 lines (12 loc) • 498 B
TypeScript
import { z } from 'zod';
import { 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.ZodString, string, string>;
export declare const addressSchema: z.ZodEffects<z.ZodString, string, string>;
export declare const statusEnum: z.ZodEnum<[string, ...string[]]>;
export declare const noop: ParamsParser<unknown>;