@nucypher/taco 0.7.0-alpha.5 → 0.7.0-alpha.6
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 +14 -14
- package/dist/cjs/conditions/schemas/contract.d.ts +14 -14
- package/dist/cjs/conditions/schemas/json-api.d.ts +14 -14
- package/dist/cjs/conditions/schemas/json-rpc.d.ts +18 -18
- package/dist/cjs/conditions/schemas/json.d.ts +13 -13
- package/dist/cjs/conditions/schemas/return-value-test.d.ts +20 -20
- package/dist/cjs/conditions/schemas/rpc.d.ts +12 -12
- package/dist/cjs/conditions/schemas/time.d.ts +12 -12
- package/dist/cjs/conditions/schemas/variable-operation.d.ts +12 -12
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/sign.js +10 -15
- package/dist/cjs/sign.js.map +1 -1
- package/dist/es/conditions/schemas/context-variable.d.ts +14 -14
- package/dist/es/conditions/schemas/contract.d.ts +14 -14
- package/dist/es/conditions/schemas/json-api.d.ts +14 -14
- package/dist/es/conditions/schemas/json-rpc.d.ts +18 -18
- package/dist/es/conditions/schemas/json.d.ts +13 -13
- package/dist/es/conditions/schemas/return-value-test.d.ts +20 -20
- package/dist/es/conditions/schemas/rpc.d.ts +12 -12
- package/dist/es/conditions/schemas/time.d.ts +12 -12
- package/dist/es/conditions/schemas/variable-operation.d.ts +12 -12
- package/dist/es/index.d.ts +1 -1
- package/dist/es/index.js.map +1 -1
- package/dist/es/sign.js +10 -15
- package/dist/es/sign.js.map +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.es.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -6,22 +6,22 @@ export declare const returnValueTestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6
6
|
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
|
|
7
7
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
9
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
10
10
|
value?: any;
|
|
11
11
|
}, {
|
|
12
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
12
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
13
13
|
value?: any;
|
|
14
14
|
}>, {
|
|
15
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
15
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
16
16
|
value?: any;
|
|
17
17
|
}, {
|
|
18
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
18
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
19
19
|
value?: any;
|
|
20
20
|
}>, {
|
|
21
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
21
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
22
22
|
value?: any;
|
|
23
23
|
}, {
|
|
24
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
24
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
34
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
42
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
50
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
58
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
59
59
|
value?: any;
|
|
60
60
|
}[] | undefined;
|
|
61
61
|
}>;
|
|
@@ -66,22 +66,22 @@ export declare const blockchainReturnValueTestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
66
66
|
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
|
|
67
67
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
68
68
|
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
69
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
70
70
|
value?: any;
|
|
71
71
|
}, {
|
|
72
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
72
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
73
73
|
value?: any;
|
|
74
74
|
}>, {
|
|
75
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
75
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
76
76
|
value?: any;
|
|
77
77
|
}, {
|
|
78
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
78
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
79
79
|
value?: any;
|
|
80
80
|
}>, {
|
|
81
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
81
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
82
82
|
value?: any;
|
|
83
83
|
}, {
|
|
84
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
84
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
94
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
102
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
110
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
118
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
119
119
|
value?: any;
|
|
120
120
|
}[] | undefined;
|
|
121
121
|
}>;
|
|
@@ -12,22 +12,22 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
|
|
|
12
12
|
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
|
|
13
13
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
15
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
16
16
|
value?: any;
|
|
17
17
|
}, {
|
|
18
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
18
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
19
19
|
value?: any;
|
|
20
20
|
}>, {
|
|
21
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
21
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
22
22
|
value?: any;
|
|
23
23
|
}, {
|
|
24
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
24
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
25
25
|
value?: any;
|
|
26
26
|
}>, {
|
|
27
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
27
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
28
28
|
value?: any;
|
|
29
29
|
}, {
|
|
30
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
30
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
40
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
48
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
56
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
64
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
75
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
88
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
89
89
|
value?: any;
|
|
90
90
|
}[] | undefined;
|
|
91
91
|
};
|
|
@@ -12,22 +12,22 @@ export declare const timeConditionSchema: z.ZodObject<{
|
|
|
12
12
|
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
|
|
13
13
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
15
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
16
16
|
value?: any;
|
|
17
17
|
}, {
|
|
18
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
18
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
19
19
|
value?: any;
|
|
20
20
|
}>, {
|
|
21
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
21
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
22
22
|
value?: any;
|
|
23
23
|
}, {
|
|
24
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
24
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
25
25
|
value?: any;
|
|
26
26
|
}>, {
|
|
27
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
27
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
28
28
|
value?: any;
|
|
29
29
|
}, {
|
|
30
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
30
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
40
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
48
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
56
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
64
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
75
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
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" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
87
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
88
88
|
value?: any;
|
|
89
89
|
}[] | undefined;
|
|
90
90
|
};
|
|
@@ -5,22 +5,22 @@ export declare const variableOperationSchema: z.ZodEffects<z.ZodEffects<z.ZodObj
|
|
|
5
5
|
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
|
|
6
6
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
8
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
9
9
|
value?: any;
|
|
10
10
|
}, {
|
|
11
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
11
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
12
12
|
value?: any;
|
|
13
13
|
}>, {
|
|
14
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
14
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
15
15
|
value?: any;
|
|
16
16
|
}, {
|
|
17
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
17
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
18
18
|
value?: any;
|
|
19
19
|
}>, {
|
|
20
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
20
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
21
21
|
value?: any;
|
|
22
22
|
}, {
|
|
23
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
23
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
24
24
|
value?: any;
|
|
25
25
|
}>;
|
|
26
26
|
export declare const MAX_VARIABLE_OPERATIONS = 5;
|
|
@@ -28,21 +28,21 @@ export declare const variableOperationsArraySchema: z.ZodOptional<z.ZodArray<z.Z
|
|
|
28
28
|
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
|
|
29
29
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
31
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
32
32
|
value?: any;
|
|
33
33
|
}, {
|
|
34
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
34
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
35
35
|
value?: any;
|
|
36
36
|
}>, {
|
|
37
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
37
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
38
38
|
value?: any;
|
|
39
39
|
}, {
|
|
40
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
40
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
41
41
|
value?: any;
|
|
42
42
|
}>, {
|
|
43
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
43
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
44
44
|
value?: any;
|
|
45
45
|
}, {
|
|
46
|
-
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "
|
|
46
|
+
operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
47
47
|
value?: any;
|
|
48
48
|
}>, "many">>;
|
package/dist/es/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { DkgPublicKey, ThresholdMessageKit } from '@nucypher/nucypher-core';
|
|
2
|
-
export { Domain,
|
|
2
|
+
export { Domain, domains, fromBytes, getPorterUris, initialize, toBytes, toHexString, } from '@nucypher/shared';
|
|
3
3
|
export * as conditions from './conditions';
|
|
4
4
|
export { SignResult, TacoSignature, setSigningCohortConditions, signUserOp, } from './sign';
|
|
5
5
|
export { decrypt, encrypt, encryptWithPublicKey } from './taco';
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAEL,OAAO,EACP,SAAS,EACT,aAAa,EACb,UAAU,EACV,OAAO,EACP,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAE3C,OAAO,EAGL,0BAA0B,EAC1B,UAAU,GACX,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC"}
|
package/dist/es/sign.js
CHANGED
|
@@ -4,21 +4,16 @@ import { ethers } from 'ethers';
|
|
|
4
4
|
import { ConditionExpression } from './conditions/condition-expr';
|
|
5
5
|
const ERR_INSUFFICIENT_SIGNATURES = (errors) => `Threshold of signatures not met; TACo signing failed with errors: ${JSON.stringify(errors)}`;
|
|
6
6
|
const ERR_MISMATCHED_HASHES = (hashToSignatures) => `Threshold of signatures not met; multiple mismatched hashes found: ${JSON.stringify(Object.fromEntries(hashToSignatures.entries()))}`;
|
|
7
|
-
function aggregateSignatures(
|
|
8
|
-
// Aggregate hex signatures by concatenating them; being careful to
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
.localeCompare(b.signerAddress.toLowerCase()))
|
|
15
|
-
.map((sig) => sig.signature);
|
|
16
|
-
const thresholdSignatures = sortedSignatures.slice(0, threshold);
|
|
17
|
-
if (thresholdSignatures.length === 1) {
|
|
18
|
-
return thresholdSignatures[0];
|
|
7
|
+
function aggregateSignatures(signaturesByAddress, threshold) {
|
|
8
|
+
// Aggregate hex signatures by concatenating them; being careful to remove the '0x' prefix from each signature except the first one.
|
|
9
|
+
const signatures = Object.values(signaturesByAddress)
|
|
10
|
+
.map((sig) => sig.signature)
|
|
11
|
+
.slice(0, threshold);
|
|
12
|
+
if (signatures.length === 1) {
|
|
13
|
+
return signatures[0];
|
|
19
14
|
}
|
|
20
15
|
// Concatenate signatures
|
|
21
|
-
const allBytes =
|
|
16
|
+
const allBytes = signatures.flatMap((hex) => Array.from(fromHexString(hex)));
|
|
22
17
|
return `0x${toHexString(new Uint8Array(allBytes))}`;
|
|
23
18
|
}
|
|
24
19
|
async function makeSigningRequests(cohortId, chainId, signers, userOp, aaVersion, conditionContext) {
|
|
@@ -73,7 +68,7 @@ export async function signUserOp(provider, domain, cohortId, chainId, userOp, aa
|
|
|
73
68
|
throw new Error(ERR_INSUFFICIENT_SIGNATURES(errors));
|
|
74
69
|
}
|
|
75
70
|
const signaturesToAggregate = collectSignatures(encryptedResponses, sharedSecrets, threshold);
|
|
76
|
-
const aggregatedSignature = aggregateSignatures(
|
|
71
|
+
const aggregatedSignature = aggregateSignatures(signaturesToAggregate, threshold);
|
|
77
72
|
return {
|
|
78
73
|
messageHash: Object.values(signaturesToAggregate)[0].messageHash,
|
|
79
74
|
aggregatedSignature,
|
|
@@ -125,7 +120,7 @@ function collectSignatures(encryptedResponses, sharedSecrets, threshold) {
|
|
|
125
120
|
}
|
|
126
121
|
// Insufficient signatures for a message hash to meet the threshold
|
|
127
122
|
if (!signaturesToAggregate) {
|
|
128
|
-
//
|
|
123
|
+
//we have multiple hashes, which means we have mismatched hashes from different nodes
|
|
129
124
|
// we don't really expect this to happen (other than some malicious nodes)
|
|
130
125
|
console.error('Porter returned mismatched message hashes:', hashToSignatures);
|
|
131
126
|
throw new Error(ERR_MISMATCHED_HASHES(hashToSignatures));
|
package/dist/es/sign.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign.js","sourceRoot":"","sources":["../../src/sign.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,mCAAmC,EAEnC,mBAAmB,EAEnB,6BAA6B,GAC9B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,aAAa,EACb,aAAa,EACb,qBAAqB,EAErB,YAAY,EAEZ,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACnB,WAAW,GAEZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAGlE,MAAM,2BAA2B,GAAG,CAAC,MAAe,EAAE,EAAE,CACtD,qEAAqE,IAAI,CAAC,SAAS,CACjF,MAAM,CACP,EAAE,CAAC;AACN,MAAM,qBAAqB,GAAG,CAC5B,gBAAyE,EACzE,EAAE,CACF,sEAAsE,IAAI,CAAC,SAAS,CAClF,MAAM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