@nucypher/taco 0.7.0-alpha.6 → 0.7.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/cjs/conditions/context/context.js +25 -2
  2. package/dist/cjs/conditions/context/context.js.map +1 -1
  3. package/dist/cjs/conditions/schemas/context-variable.d.ts +15 -15
  4. package/dist/cjs/conditions/schemas/contract.d.ts +31 -31
  5. package/dist/cjs/conditions/schemas/json-api.d.ts +15 -15
  6. package/dist/cjs/conditions/schemas/json-rpc.d.ts +19 -19
  7. package/dist/cjs/conditions/schemas/json.d.ts +14 -14
  8. package/dist/cjs/conditions/schemas/return-value-test.d.ts +22 -22
  9. package/dist/cjs/conditions/schemas/rpc.d.ts +17 -17
  10. package/dist/cjs/conditions/schemas/sequential.d.ts +2 -0
  11. package/dist/cjs/conditions/schemas/sequential.js +9 -8
  12. package/dist/cjs/conditions/schemas/sequential.js.map +1 -1
  13. package/dist/cjs/conditions/schemas/time.d.ts +16 -16
  14. package/dist/cjs/conditions/schemas/utils.js +2 -0
  15. package/dist/cjs/conditions/schemas/utils.js.map +1 -1
  16. package/dist/cjs/conditions/schemas/variable-operation.d.ts +15 -15
  17. package/dist/cjs/conditions/schemas/variable-operation.js +16 -0
  18. package/dist/cjs/conditions/schemas/variable-operation.js.map +1 -1
  19. package/dist/cjs/index.d.ts +1 -1
  20. package/dist/cjs/index.js.map +1 -1
  21. package/dist/cjs/sign.js +15 -10
  22. package/dist/cjs/sign.js.map +1 -1
  23. package/dist/es/conditions/context/context.js +25 -2
  24. package/dist/es/conditions/context/context.js.map +1 -1
  25. package/dist/es/conditions/schemas/context-variable.d.ts +15 -15
  26. package/dist/es/conditions/schemas/contract.d.ts +31 -31
  27. package/dist/es/conditions/schemas/json-api.d.ts +15 -15
  28. package/dist/es/conditions/schemas/json-rpc.d.ts +19 -19
  29. package/dist/es/conditions/schemas/json.d.ts +14 -14
  30. package/dist/es/conditions/schemas/return-value-test.d.ts +22 -22
  31. package/dist/es/conditions/schemas/rpc.d.ts +17 -17
  32. package/dist/es/conditions/schemas/sequential.d.ts +2 -0
  33. package/dist/es/conditions/schemas/sequential.js +2 -2
  34. package/dist/es/conditions/schemas/sequential.js.map +1 -1
  35. package/dist/es/conditions/schemas/time.d.ts +16 -16
  36. package/dist/es/conditions/schemas/utils.js +2 -0
  37. package/dist/es/conditions/schemas/utils.js.map +1 -1
  38. package/dist/es/conditions/schemas/variable-operation.d.ts +15 -15
  39. package/dist/es/conditions/schemas/variable-operation.js +16 -0
  40. package/dist/es/conditions/schemas/variable-operation.js.map +1 -1
  41. package/dist/es/index.d.ts +1 -1
  42. package/dist/es/index.js.map +1 -1
  43. package/dist/es/sign.js +15 -10
  44. package/dist/es/sign.js.map +1 -1
  45. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  46. package/dist/tsconfig.es.tsbuildinfo +1 -1
  47. package/package.json +3 -3
@@ -12,25 +12,25 @@ export declare const jsonRpcConditionSchema: z.ZodEffects<z.ZodObject<{} & {
12
12
  index: z.ZodOptional<z.ZodNumber>;
13
13
  comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
14
14
  operations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
15
- operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
15
+ operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str", "fromJson", "toJson", "fromHex", "toHex", "keccak"]>;
16
16
  value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
18
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
19
19
  value?: any;
20
20
  }, {
21
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
21
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
22
22
  value?: any;
23
23
  }>, {
24
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
24
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
25
25
  value?: any;
26
26
  }, {
27
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
27
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
28
28
  value?: any;
29
29
  }>, {
30
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
30
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
31
31
  value?: any;
32
32
  }, {
33
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
33
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
34
34
  value?: any;
35
35
  }>, "many">>;
36
36
  } & {
@@ -40,7 +40,7 @@ export declare const jsonRpcConditionSchema: z.ZodEffects<z.ZodObject<{} & {
40
40
  value?: any;
41
41
  index?: number | undefined;
42
42
  operations?: {
43
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
43
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
44
44
  value?: any;
45
45
  }[] | undefined;
46
46
  }, {
@@ -48,7 +48,7 @@ export declare const jsonRpcConditionSchema: z.ZodEffects<z.ZodObject<{} & {
48
48
  value?: any;
49
49
  index?: number | undefined;
50
50
  operations?: {
51
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
51
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
52
52
  value?: any;
53
53
  }[] | undefined;
54
54
  }>, {
@@ -56,7 +56,7 @@ export declare const jsonRpcConditionSchema: z.ZodEffects<z.ZodObject<{} & {
56
56
  value?: any;
57
57
  index?: number | undefined;
58
58
  operations?: {
59
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
59
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
60
60
  value?: any;
61
61
  }[] | undefined;
62
62
  }, {
@@ -64,38 +64,38 @@ export declare const jsonRpcConditionSchema: z.ZodEffects<z.ZodObject<{} & {
64
64
  value?: any;
65
65
  index?: number | undefined;
66
66
  operations?: {
67
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
67
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
68
68
  value?: any;
69
69
  }[] | undefined;
70
70
  }>;
71
71
  }, "strip", z.ZodTypeAny, {
72
72
  conditionType: "json-rpc";
73
- method: string;
74
73
  returnValueTest: {
75
74
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
76
75
  value?: any;
77
76
  index?: number | undefined;
78
77
  operations?: {
79
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
78
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
80
79
  value?: any;
81
80
  }[] | undefined;
82
81
  };
82
+ method: string;
83
83
  endpoint: string;
84
84
  params?: unknown[] | Record<string, unknown> | undefined;
85
85
  query?: string | undefined;
86
86
  authorizationToken?: string | undefined;
87
87
  authorizationType?: "Bearer" | "Basic" | "X-API-Key" | undefined;
88
88
  }, {
89
- method: string;
90
89
  returnValueTest: {
91
90
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
92
91
  value?: any;
93
92
  index?: number | undefined;
94
93
  operations?: {
95
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
94
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
96
95
  value?: any;
97
96
  }[] | undefined;
98
97
  };
98
+ method: string;
99
99
  endpoint: string;
100
100
  params?: unknown[] | Record<string, unknown> | undefined;
101
101
  conditionType?: "json-rpc" | undefined;
@@ -104,32 +104,32 @@ export declare const jsonRpcConditionSchema: z.ZodEffects<z.ZodObject<{} & {
104
104
  authorizationType?: "Bearer" | "Basic" | "X-API-Key" | undefined;
105
105
  }>, {
106
106
  conditionType: "json-rpc";
107
- method: string;
108
107
  returnValueTest: {
109
108
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
110
109
  value?: any;
111
110
  index?: number | undefined;
112
111
  operations?: {
113
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
112
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
114
113
  value?: any;
115
114
  }[] | undefined;
116
115
  };
116
+ method: string;
117
117
  endpoint: string;
118
118
  params?: unknown[] | Record<string, unknown> | undefined;
119
119
  query?: string | undefined;
120
120
  authorizationToken?: string | undefined;
121
121
  authorizationType?: "Bearer" | "Basic" | "X-API-Key" | undefined;
122
122
  }, {
123
- method: string;
124
123
  returnValueTest: {
125
124
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
126
125
  value?: any;
127
126
  index?: number | undefined;
128
127
  operations?: {
129
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
128
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
130
129
  value?: any;
131
130
  }[] | undefined;
132
131
  };
132
+ method: string;
133
133
  endpoint: string;
134
134
  params?: unknown[] | Record<string, unknown> | undefined;
135
135
  conditionType?: "json-rpc" | undefined;
@@ -8,25 +8,25 @@ export declare const jsonConditionSchema: z.ZodObject<{} & {
8
8
  index: z.ZodOptional<z.ZodNumber>;
9
9
  comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
10
10
  operations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
11
- operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
11
+ operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str", "fromJson", "toJson", "fromHex", "toHex", "keccak"]>;
12
12
  value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
13
13
  }, "strip", z.ZodTypeAny, {
14
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
14
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
15
15
  value?: any;
16
16
  }, {
17
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
17
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
18
18
  value?: any;
19
19
  }>, {
20
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
20
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
21
21
  value?: any;
22
22
  }, {
23
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
23
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
24
24
  value?: any;
25
25
  }>, {
26
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
26
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
27
27
  value?: any;
28
28
  }, {
29
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
29
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
30
30
  value?: any;
31
31
  }>, "many">>;
32
32
  } & {
@@ -36,7 +36,7 @@ export declare const jsonConditionSchema: z.ZodObject<{} & {
36
36
  value?: any;
37
37
  index?: number | undefined;
38
38
  operations?: {
39
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
39
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
40
40
  value?: any;
41
41
  }[] | undefined;
42
42
  }, {
@@ -44,7 +44,7 @@ export declare const jsonConditionSchema: z.ZodObject<{} & {
44
44
  value?: any;
45
45
  index?: number | undefined;
46
46
  operations?: {
47
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
47
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
48
48
  value?: any;
49
49
  }[] | undefined;
50
50
  }>, {
@@ -52,7 +52,7 @@ export declare const jsonConditionSchema: z.ZodObject<{} & {
52
52
  value?: any;
53
53
  index?: number | undefined;
54
54
  operations?: {
55
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
55
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
56
56
  value?: any;
57
57
  }[] | undefined;
58
58
  }, {
@@ -60,19 +60,19 @@ export declare const jsonConditionSchema: z.ZodObject<{} & {
60
60
  value?: any;
61
61
  index?: number | undefined;
62
62
  operations?: {
63
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
63
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
64
64
  value?: any;
65
65
  }[] | undefined;
66
66
  }>;
67
67
  }, "strip", z.ZodTypeAny, {
68
- data: string;
69
68
  conditionType: "json";
69
+ data: string;
70
70
  returnValueTest: {
71
71
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
72
72
  value?: any;
73
73
  index?: number | undefined;
74
74
  operations?: {
75
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
75
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
76
76
  value?: any;
77
77
  }[] | undefined;
78
78
  };
@@ -84,7 +84,7 @@ export declare const jsonConditionSchema: z.ZodObject<{} & {
84
84
  value?: any;
85
85
  index?: number | undefined;
86
86
  operations?: {
87
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
87
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
88
88
  value?: any;
89
89
  }[] | undefined;
90
90
  };
@@ -3,25 +3,25 @@ export declare const returnValueTestSchema: z.ZodEffects<z.ZodObject<{
3
3
  index: z.ZodOptional<z.ZodNumber>;
4
4
  comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
5
5
  operations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
6
- operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
6
+ operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str", "fromJson", "toJson", "fromHex", "toHex", "keccak"]>;
7
7
  value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
9
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
10
10
  value?: any;
11
11
  }, {
12
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
12
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
13
13
  value?: any;
14
14
  }>, {
15
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
15
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
16
16
  value?: any;
17
17
  }, {
18
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
18
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
19
19
  value?: any;
20
20
  }>, {
21
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
21
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
22
22
  value?: any;
23
23
  }, {
24
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
24
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
25
25
  value?: any;
26
26
  }>, "many">>;
27
27
  } & {
@@ -31,7 +31,7 @@ export declare const returnValueTestSchema: z.ZodEffects<z.ZodObject<{
31
31
  value?: any;
32
32
  index?: number | undefined;
33
33
  operations?: {
34
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
34
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
35
35
  value?: any;
36
36
  }[] | undefined;
37
37
  }, {
@@ -39,7 +39,7 @@ export declare const returnValueTestSchema: z.ZodEffects<z.ZodObject<{
39
39
  value?: any;
40
40
  index?: number | undefined;
41
41
  operations?: {
42
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
42
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
43
43
  value?: any;
44
44
  }[] | undefined;
45
45
  }>, {
@@ -47,7 +47,7 @@ export declare const returnValueTestSchema: z.ZodEffects<z.ZodObject<{
47
47
  value?: any;
48
48
  index?: number | undefined;
49
49
  operations?: {
50
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
50
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
51
51
  value?: any;
52
52
  }[] | undefined;
53
53
  }, {
@@ -55,7 +55,7 @@ export declare const returnValueTestSchema: z.ZodEffects<z.ZodObject<{
55
55
  value?: any;
56
56
  index?: number | undefined;
57
57
  operations?: {
58
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
58
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
59
59
  value?: any;
60
60
  }[] | undefined;
61
61
  }>;
@@ -63,25 +63,25 @@ export declare const blockchainReturnValueTestSchema: z.ZodEffects<z.ZodObject<{
63
63
  index: z.ZodOptional<z.ZodNumber>;
64
64
  comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
65
65
  operations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
66
- operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
66
+ operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str", "fromJson", "toJson", "fromHex", "toHex", "keccak"]>;
67
67
  value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
68
68
  }, "strip", z.ZodTypeAny, {
69
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
69
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
70
70
  value?: any;
71
71
  }, {
72
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
72
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
73
73
  value?: any;
74
74
  }>, {
75
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
75
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
76
76
  value?: any;
77
77
  }, {
78
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
78
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
79
79
  value?: any;
80
80
  }>, {
81
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
81
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
82
82
  value?: any;
83
83
  }, {
84
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
84
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
85
85
  value?: any;
86
86
  }>, "many">>;
87
87
  } & {
@@ -91,7 +91,7 @@ export declare const blockchainReturnValueTestSchema: z.ZodEffects<z.ZodObject<{
91
91
  value?: any;
92
92
  index?: number | undefined;
93
93
  operations?: {
94
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
94
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
95
95
  value?: any;
96
96
  }[] | undefined;
97
97
  }, {
@@ -99,7 +99,7 @@ export declare const blockchainReturnValueTestSchema: z.ZodEffects<z.ZodObject<{
99
99
  value?: any;
100
100
  index?: number | undefined;
101
101
  operations?: {
102
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
102
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
103
103
  value?: any;
104
104
  }[] | undefined;
105
105
  }>, {
@@ -107,7 +107,7 @@ export declare const blockchainReturnValueTestSchema: z.ZodEffects<z.ZodObject<{
107
107
  value?: any;
108
108
  index?: number | undefined;
109
109
  operations?: {
110
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
110
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
111
111
  value?: any;
112
112
  }[] | undefined;
113
113
  }, {
@@ -115,7 +115,7 @@ export declare const blockchainReturnValueTestSchema: z.ZodEffects<z.ZodObject<{
115
115
  value?: any;
116
116
  index?: number | undefined;
117
117
  operations?: {
118
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
118
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
119
119
  value?: any;
120
120
  }[] | undefined;
121
121
  }>;
@@ -9,25 +9,25 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
9
9
  index: z.ZodOptional<z.ZodNumber>;
10
10
  comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
11
11
  operations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
12
- operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
12
+ operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str", "fromJson", "toJson", "fromHex", "toHex", "keccak"]>;
13
13
  value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
14
14
  }, "strip", z.ZodTypeAny, {
15
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
15
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
16
16
  value?: any;
17
17
  }, {
18
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
18
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
19
19
  value?: any;
20
20
  }>, {
21
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
21
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
22
22
  value?: any;
23
23
  }, {
24
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
24
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
25
25
  value?: any;
26
26
  }>, {
27
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
27
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
28
28
  value?: any;
29
29
  }, {
30
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
30
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
31
31
  value?: any;
32
32
  }>, "many">>;
33
33
  } & {
@@ -37,7 +37,7 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
37
37
  value?: any;
38
38
  index?: number | undefined;
39
39
  operations?: {
40
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
40
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
41
41
  value?: any;
42
42
  }[] | undefined;
43
43
  }, {
@@ -45,7 +45,7 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
45
45
  value?: any;
46
46
  index?: number | undefined;
47
47
  operations?: {
48
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
48
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
49
49
  value?: any;
50
50
  }[] | undefined;
51
51
  }>, {
@@ -53,7 +53,7 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
53
53
  value?: any;
54
54
  index?: number | undefined;
55
55
  operations?: {
56
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
56
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
57
57
  value?: any;
58
58
  }[] | undefined;
59
59
  }, {
@@ -61,37 +61,37 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
61
61
  value?: any;
62
62
  index?: number | undefined;
63
63
  operations?: {
64
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
64
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
65
65
  value?: any;
66
66
  }[] | undefined;
67
67
  }>;
68
68
  }, "strip", z.ZodTypeAny, {
69
69
  conditionType: "rpc";
70
+ chain: number;
71
+ method: "eth_getBalance";
72
+ parameters: [string, string | number] | [string];
70
73
  returnValueTest: {
71
74
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
72
75
  value?: any;
73
76
  index?: number | undefined;
74
77
  operations?: {
75
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
78
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
76
79
  value?: any;
77
80
  }[] | undefined;
78
81
  };
82
+ }, {
79
83
  chain: number;
80
84
  method: "eth_getBalance";
81
85
  parameters: [string, string | number] | [string];
82
- }, {
83
86
  returnValueTest: {
84
87
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
85
88
  value?: any;
86
89
  index?: number | undefined;
87
90
  operations?: {
88
- operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
91
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
89
92
  value?: any;
90
93
  }[] | undefined;
91
94
  };
92
- chain: number;
93
- method: "eth_getBalance";
94
- parameters: [string, string | number] | [string];
95
95
  conditionType?: "rpc" | undefined;
96
96
  }>;
97
97
  export type RpcConditionProps = z.infer<typeof rpcConditionSchema>;
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { ConditionProps } from '../condition';
3
+ export declare const getAllNestedConditionVariableNames: (condition: ConditionProps) => string[];
2
4
  export declare const SequentialConditionType = "sequential";
3
5
  export declare const conditionVariableSchema: z.ZodSchema;
4
6
  export type ConditionVariableProps = z.infer<typeof conditionVariableSchema>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sequentialConditionSchema = exports.conditionVariableSchema = exports.SequentialConditionType = void 0;
3
+ exports.sequentialConditionSchema = exports.conditionVariableSchema = exports.SequentialConditionType = exports.getAllNestedConditionVariableNames = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const multi_condition_1 = require("../multi-condition");
6
6
  const common_1 = require("./common");
@@ -13,25 +13,26 @@ const getAllNestedConditionVariableNames = (condition) => {
13
13
  if (condition.conditionType === exports.SequentialConditionType) {
14
14
  for (const variable of condition.conditionVariables) {
15
15
  conditionVariables.push(variable.varName);
16
- conditionVariables.push(...getAllNestedConditionVariableNames(variable.condition));
16
+ conditionVariables.push(...(0, exports.getAllNestedConditionVariableNames)(variable.condition));
17
17
  }
18
18
  }
19
19
  else if (condition.conditionType === if_then_else_1.IfThenElseConditionType) {
20
- conditionVariables.push(...getAllNestedConditionVariableNames(condition.ifCondition));
21
- conditionVariables.push(...getAllNestedConditionVariableNames(condition.thenCondition));
20
+ conditionVariables.push(...(0, exports.getAllNestedConditionVariableNames)(condition.ifCondition));
21
+ conditionVariables.push(...(0, exports.getAllNestedConditionVariableNames)(condition.thenCondition));
22
22
  if (typeof condition.elseCondition !== 'boolean') {
23
- conditionVariables.push(...getAllNestedConditionVariableNames(condition.elseCondition));
23
+ conditionVariables.push(...(0, exports.getAllNestedConditionVariableNames)(condition.elseCondition));
24
24
  }
25
25
  }
26
26
  else if (condition.conditionType === compound_1.CompoundConditionType) {
27
27
  for (const operand of condition.operands) {
28
- conditionVariables.push(...getAllNestedConditionVariableNames(operand));
28
+ conditionVariables.push(...(0, exports.getAllNestedConditionVariableNames)(operand));
29
29
  }
30
30
  }
31
31
  return conditionVariables;
32
32
  };
33
+ exports.getAllNestedConditionVariableNames = getAllNestedConditionVariableNames;
33
34
  const noDuplicateVarNames = (condition) => {
34
- const allVarNames = getAllNestedConditionVariableNames(condition);
35
+ const allVarNames = (0, exports.getAllNestedConditionVariableNames)(condition);
35
36
  const duplicates = allVarNames.filter((item, index) => allVarNames.indexOf(item) !== index);
36
37
  return duplicates.length === 0;
37
38
  };
@@ -48,7 +49,7 @@ exports.sequentialConditionSchema = common_1.baseConditionSchema
48
49
  conditionType: zod_1.z
49
50
  .literal(exports.SequentialConditionType)
50
51
  .default(exports.SequentialConditionType),
51
- conditionVariables: zod_1.z.array(exports.conditionVariableSchema).min(2).max(5),
52
+ conditionVariables: zod_1.z.array(exports.conditionVariableSchema).min(2).max(10),
52
53
  })
53
54
  .refine((condition) => (0, multi_condition_1.maxNestedDepth)(2)(condition), {
54
55
  message: 'Exceeded max nested depth of 2 for multi-condition type',