@nucypher/taco
Version:
### [`nucypher/taco-web`](../../README.md)
42 lines (41 loc) • 1.4 kB
TypeScript
import { z } from 'zod';
export declare const TimeConditionType = "time";
export declare const TimeConditionMethod = "blocktime";
export declare const timeConditionSchema: z.ZodObject<{
conditionType: z.ZodDefault<z.ZodLiteral<"time">>;
method: z.ZodDefault<z.ZodLiteral<"blocktime">>;
chain: z.ZodNumber;
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: "time";
chain: number;
method: "blocktime";
returnValueTest: {
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=";
value?: any;
index?: number | undefined;
};
}, {
chain: number;
returnValueTest: {
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=";
value?: any;
index?: number | undefined;
};
conditionType?: "time" | undefined;
method?: "blocktime" | undefined;
}>;
export type TimeConditionProps = z.infer<typeof timeConditionSchema>;