@nucypher/taco 0.7.0-alpha.5 → 0.7.0-alpha.7
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.
- package/dist/cjs/conditions/schemas/context-variable.d.ts +13 -13
- package/dist/cjs/conditions/schemas/contract.d.ts +15 -15
- package/dist/cjs/conditions/schemas/json-api.d.ts +15 -15
- package/dist/cjs/conditions/schemas/json-rpc.d.ts +15 -15
- package/dist/cjs/conditions/schemas/json.d.ts +13 -13
- package/dist/cjs/conditions/schemas/return-value-test.d.ts +22 -22
- package/dist/cjs/conditions/schemas/rpc.d.ts +13 -13
- package/dist/cjs/conditions/schemas/time.d.ts +13 -13
- package/dist/cjs/conditions/schemas/utils.js +2 -0
- package/dist/cjs/conditions/schemas/utils.js.map +1 -1
- package/dist/cjs/conditions/schemas/variable-operation.d.ts +15 -15
- package/dist/cjs/conditions/schemas/variable-operation.js +16 -0
- package/dist/cjs/conditions/schemas/variable-operation.js.map +1 -1
- package/dist/es/conditions/schemas/context-variable.d.ts +13 -13
- package/dist/es/conditions/schemas/contract.d.ts +15 -15
- package/dist/es/conditions/schemas/json-api.d.ts +15 -15
- package/dist/es/conditions/schemas/json-rpc.d.ts +15 -15
- package/dist/es/conditions/schemas/json.d.ts +13 -13
- package/dist/es/conditions/schemas/return-value-test.d.ts +22 -22
- package/dist/es/conditions/schemas/rpc.d.ts +13 -13
- package/dist/es/conditions/schemas/time.d.ts +13 -13
- package/dist/es/conditions/schemas/utils.js +2 -0
- package/dist/es/conditions/schemas/utils.js.map +1 -1
- package/dist/es/conditions/schemas/variable-operation.d.ts +15 -15
- package/dist/es/conditions/schemas/variable-operation.js +16 -0
- package/dist/es/conditions/schemas/variable-operation.js.map +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.es.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -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,7 +61,7 @@ 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
|
}>;
|
|
@@ -72,7 +72,7 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
|
|
|
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
|
};
|
|
@@ -85,7 +85,7 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
|
|
|
85
85
|
value?: any;
|
|
86
86
|
index?: number | undefined;
|
|
87
87
|
operations?: {
|
|
88
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
88
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
89
89
|
value?: any;
|
|
90
90
|
}[] | undefined;
|
|
91
91
|
};
|
|
@@ -9,25 +9,25 @@ export declare const timeConditionSchema: 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 timeConditionSchema: 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 timeConditionSchema: 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 timeConditionSchema: 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,7 +61,7 @@ export declare const timeConditionSchema: 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
|
}>;
|
|
@@ -72,7 +72,7 @@ export declare const timeConditionSchema: z.ZodObject<{
|
|
|
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 timeConditionSchema: 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
|
};
|
|
@@ -7,6 +7,7 @@ const context_variable_1 = require("./context-variable");
|
|
|
7
7
|
const contract_1 = require("./contract");
|
|
8
8
|
const ecdsa_1 = require("./ecdsa");
|
|
9
9
|
const if_then_else_1 = require("./if-then-else");
|
|
10
|
+
const json_1 = require("./json");
|
|
10
11
|
const json_api_1 = require("./json-api");
|
|
11
12
|
const json_rpc_1 = require("./json-rpc");
|
|
12
13
|
const jwt_1 = require("./jwt");
|
|
@@ -20,6 +21,7 @@ exports.anyConditionSchema = zod_1.z.lazy(() => zod_1.z.union([
|
|
|
20
21
|
context_variable_1.contextVariableConditionSchema,
|
|
21
22
|
contract_1.contractConditionSchema,
|
|
22
23
|
ecdsa_1.ecdsaConditionSchema,
|
|
24
|
+
json_1.jsonConditionSchema,
|
|
23
25
|
json_api_1.jsonApiConditionSchema,
|
|
24
26
|
json_rpc_1.jsonRpcConditionSchema,
|
|
25
27
|
jwt_1.jwtConditionSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/utils.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,8DAAgE;AAEhE,yDAAoE;AACpE,yCAAqD;AACrD,mCAA+C;AAC/C,iDAA2D;AAC3D,yCAAoD;AACpD,yCAAoD;AACpD,+BAA2C;AAC3C,+BAA2C;AAC3C,6CAAyD;AACzD,uCAGmB;AACnB,iCAA6C;AAEhC,QAAA,kBAAkB,GAAgB,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACzD,OAAC,CAAC,KAAK,CAAC;IACN,wBAAkB;IAClB,0BAAmB;IACnB,iDAA8B;IAC9B,kCAAuB;IACvB,4BAAoB;IACpB,iCAAsB;IACtB,iCAAsB;IACtB,wBAAkB;IAClB,+CAAqC;IACrC,kDAAwC;IACxC,4CAAuB;IACvB,sCAAyB;IACzB,wCAAyB;CAC1B,CAAC,CACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/utils.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,8DAAgE;AAEhE,yDAAoE;AACpE,yCAAqD;AACrD,mCAA+C;AAC/C,iDAA2D;AAC3D,iCAA6C;AAC7C,yCAAoD;AACpD,yCAAoD;AACpD,+BAA2C;AAC3C,+BAA2C;AAC3C,6CAAyD;AACzD,uCAGmB;AACnB,iCAA6C;AAEhC,QAAA,kBAAkB,GAAgB,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACzD,OAAC,CAAC,KAAK,CAAC;IACN,wBAAkB;IAClB,0BAAmB;IACnB,iDAA8B;IAC9B,kCAAuB;IACvB,4BAAoB;IACpB,0BAAmB;IACnB,iCAAsB;IACtB,iCAAsB;IACtB,wBAAkB;IAClB,+CAAqC;IACrC,kDAAwC;IACxC,4CAAuB;IACvB,sCAAyB;IACzB,wCAAyB;CAC1B,CAAC,CACH,CAAC"}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const OPERATOR_FUNCTIONS: readonly ["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"];
|
|
2
|
+
export declare const OPERATOR_FUNCTIONS: readonly ["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str", "fromJson", "toJson", "fromHex", "toHex", "keccak"];
|
|
3
3
|
export declare const UNARY_OPERATOR_FUNCTIONS: string[];
|
|
4
4
|
export declare const variableOperationSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
5
|
-
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
|
|
5
|
+
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str", "fromJson", "toJson", "fromHex", "toHex", "keccak"]>;
|
|
6
6
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
8
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
9
9
|
value?: any;
|
|
10
10
|
}, {
|
|
11
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
11
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
12
12
|
value?: any;
|
|
13
13
|
}>, {
|
|
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
26
|
export declare const MAX_VARIABLE_OPERATIONS = 5;
|
|
27
27
|
export declare const variableOperationsArraySchema: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
28
|
-
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
|
|
28
|
+
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str", "fromJson", "toJson", "fromHex", "toHex", "keccak"]>;
|
|
29
29
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
31
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
32
32
|
value?: any;
|
|
33
33
|
}, {
|
|
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
|
}>, {
|
|
37
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
37
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
38
38
|
value?: any;
|
|
39
39
|
}, {
|
|
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
|
}>, {
|
|
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
|
}, {
|
|
46
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
46
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
47
47
|
value?: any;
|
|
48
48
|
}>, "many">>;
|
|
@@ -27,6 +27,14 @@ exports.OPERATOR_FUNCTIONS = [
|
|
|
27
27
|
'float',
|
|
28
28
|
'int',
|
|
29
29
|
'str',
|
|
30
|
+
// JSON conversion
|
|
31
|
+
'fromJson',
|
|
32
|
+
'toJson',
|
|
33
|
+
// hex conversion
|
|
34
|
+
'fromHex',
|
|
35
|
+
'toHex',
|
|
36
|
+
// hashing
|
|
37
|
+
'keccak',
|
|
30
38
|
];
|
|
31
39
|
exports.UNARY_OPERATOR_FUNCTIONS = [
|
|
32
40
|
'abs',
|
|
@@ -44,6 +52,14 @@ exports.UNARY_OPERATOR_FUNCTIONS = [
|
|
|
44
52
|
'float',
|
|
45
53
|
'int',
|
|
46
54
|
'str',
|
|
55
|
+
// JSON conversion
|
|
56
|
+
'fromJson',
|
|
57
|
+
'toJson',
|
|
58
|
+
// hex conversion
|
|
59
|
+
'fromHex',
|
|
60
|
+
'toHex',
|
|
61
|
+
// hashing
|
|
62
|
+
'keccak',
|
|
47
63
|
];
|
|
48
64
|
exports.variableOperationSchema = zod_1.z
|
|
49
65
|
.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variable-operation.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/variable-operation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,uCAAsD;AAEzC,QAAA,kBAAkB,GAAG;IAChC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,OAAO;IACP,0CAA0C;IAC1C,KAAK;IACL,KAAK;IACL,MAAM;IACN,UAAU;IACV,OAAO;IACP,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,UAAU;IACV,UAAU;IACV,MAAM;IACN,OAAO;IACP,KAAK;IACL,KAAK;
|
|
1
|
+
{"version":3,"file":"variable-operation.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/variable-operation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,uCAAsD;AAEzC,QAAA,kBAAkB,GAAG;IAChC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,OAAO;IACP,0CAA0C;IAC1C,KAAK;IACL,KAAK;IACL,MAAM;IACN,UAAU;IACV,OAAO;IACP,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,UAAU;IACV,UAAU;IACV,MAAM;IACN,OAAO;IACP,KAAK;IACL,KAAK;IACL,kBAAkB;IAClB,UAAU;IACV,QAAQ;IACR,iBAAiB;IACjB,SAAS;IACT,OAAO;IACP,UAAU;IACV,QAAQ;CACA,CAAC;AAEE,QAAA,wBAAwB,GAAG;IACtC,KAAK;IACL,KAAK;IACL,MAAM;IACN,UAAU;IACV,OAAO;IACP,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,UAAU;IACV,UAAU;IACV,MAAM;IACN,OAAO;IACP,KAAK;IACL,KAAK;IACL,kBAAkB;IAClB,UAAU;IACV,QAAQ;IACR,iBAAiB;IACjB,SAAS;IACT,OAAO;IACP,UAAU;IACV,QAAQ;CACT,CAAC;AAEW,QAAA,uBAAuB,GAAG,OAAC;KACrC,MAAM,CAAC;IACN,SAAS,EAAE,OAAC,CAAC,IAAI,CAAC,0BAAkB,CAAC;IACrC,KAAK,EAAE,mCAAyB,CAAC,QAAQ,EAAE;CAC5C,CAAC;KACD,MAAM,CACL,CAAC,IAAI,EAAE,EAAE;IACP,IACE,gCAAwB,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC;QACjD,IAAI,CAAC,KAAK,KAAK,SAAS,EACxB,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,EACD;IACE,OAAO,EAAE,sCAAsC;IAC/C,IAAI,EAAE,CAAC,OAAO,CAAC;CAChB,CACF;KACA,MAAM,CACL,CAAC,IAAI,EAAE,EAAE;IACP,IACE,CAAC,gCAAwB,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC;QAClD,IAAI,CAAC,KAAK,KAAK,SAAS,EACxB,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,EACD;IACE,OAAO,EAAE,qCAAqC;IAC9C,IAAI,EAAE,CAAC,OAAO,CAAC;CAChB,CACF;KACA,QAAQ,CAAC,2DAA2D,CAAC,CAAC;AAE5D,QAAA,uBAAuB,GAAG,CAAC,CAAC;AAE5B,QAAA,6BAA6B,GAAG,OAAC;KAC3C,KAAK,CAAC,+BAAuB,CAAC;KAC9B,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,+BAAuB,CAAC;KAC5B,QAAQ,EAAE;KACV,QAAQ,CAAC,uDAAuD,CAAC,CAAC"}
|