UNPKG

@nucypher/taco

Version:

### [`nucypher/taco-web`](../../README.md)

46 lines (45 loc) 1.89 kB
import { z } from 'zod'; export declare const RpcConditionType = "rpc"; export declare const rpcConditionSchema: z.ZodObject<z.objectUtil.extendShape<{ conditionType: z.ZodString; }, { conditionType: z.ZodDefault<z.ZodLiteral<"rpc">>; chain: z.ZodNumber; method: z.ZodEnum<["eth_getBalance"]>; parameters: z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<":userAddress">, z.ZodString]>, z.ZodUnion<[z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodEnum<["earliest", "finalized", "safe", "latest", "pending"]>]>, z.ZodString]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<":userAddress">, z.ZodString]>], null>]>; returnValueTest: z.ZodObject<z.objectUtil.extendShape<{ index: z.ZodOptional<z.ZodNumber>; comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!="]>; }, { value: z.ZodType<any, z.ZodTypeDef, any>; }>, "strip", z.ZodTypeAny, { comparator: "==" | ">" | "<" | ">=" | "<=" | "!="; value?: any; index?: number | undefined; }, { comparator: "==" | ">" | "<" | ">=" | "<=" | "!="; value?: any; index?: number | undefined; }>; }>, "strip", z.ZodTypeAny, { conditionType: "rpc"; chain: number; method: "eth_getBalance"; parameters: [string, string | number] | [string]; returnValueTest: { comparator: "==" | ">" | "<" | ">=" | "<=" | "!="; value?: any; index?: number | undefined; }; }, { chain: number; method: "eth_getBalance"; parameters: [string, string | number] | [string]; returnValueTest: { comparator: "==" | ">" | "<" | ">=" | "<=" | "!="; value?: any; index?: number | undefined; }; conditionType?: "rpc" | undefined; }>; export type RpcConditionProps = z.infer<typeof rpcConditionSchema>;