@nucypher/taco 0.7.0-alpha.10 → 0.7.0-alpha.12
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/const.d.ts +1 -0
- package/dist/cjs/conditions/const.js +2 -1
- package/dist/cjs/conditions/const.js.map +1 -1
- package/dist/cjs/conditions/context/context.js +2 -0
- package/dist/cjs/conditions/context/context.js.map +1 -1
- package/dist/cjs/conditions/schemas/context-variable.d.ts +93 -33
- package/dist/cjs/conditions/schemas/contract.d.ts +121 -49
- package/dist/cjs/conditions/schemas/json-api.d.ts +121 -49
- package/dist/cjs/conditions/schemas/json-rpc.d.ts +121 -49
- package/dist/cjs/conditions/schemas/json.d.ts +95 -35
- package/dist/cjs/conditions/schemas/return-value-test.d.ts +156 -60
- package/dist/cjs/conditions/schemas/rpc.d.ts +97 -37
- package/dist/cjs/conditions/schemas/signing.js +60 -31
- package/dist/cjs/conditions/schemas/signing.js.map +1 -1
- package/dist/cjs/conditions/schemas/time.d.ts +94 -34
- package/dist/cjs/conditions/schemas/variable-operation.d.ts +67 -19
- package/dist/cjs/conditions/schemas/variable-operation.js +27 -3
- package/dist/cjs/conditions/schemas/variable-operation.js.map +1 -1
- package/dist/es/conditions/const.d.ts +1 -0
- package/dist/es/conditions/const.js +1 -0
- package/dist/es/conditions/const.js.map +1 -1
- package/dist/es/conditions/context/context.js +3 -1
- package/dist/es/conditions/context/context.js.map +1 -1
- package/dist/es/conditions/schemas/context-variable.d.ts +95 -35
- package/dist/es/conditions/schemas/contract.d.ts +121 -49
- package/dist/es/conditions/schemas/json-api.d.ts +121 -49
- package/dist/es/conditions/schemas/json-rpc.d.ts +121 -49
- package/dist/es/conditions/schemas/json.d.ts +95 -35
- package/dist/es/conditions/schemas/return-value-test.d.ts +156 -60
- package/dist/es/conditions/schemas/rpc.d.ts +97 -37
- package/dist/es/conditions/schemas/signing.js +60 -31
- package/dist/es/conditions/schemas/signing.js.map +1 -1
- package/dist/es/conditions/schemas/time.d.ts +94 -34
- package/dist/es/conditions/schemas/variable-operation.d.ts +67 -19
- package/dist/es/conditions/schemas/variable-operation.js +28 -4
- 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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const CONTEXT_PARAM_REGEXP: RegExp;
|
|
2
2
|
export declare const CONTEXT_PARAM_FULL_MATCH_REGEXP: RegExp;
|
|
3
3
|
export declare const CONTEXT_PARAM_PREFIX = ":";
|
|
4
|
+
export declare const NULL_ADDRESS_CONTEXT_VAR = ":nullAddress";
|
|
4
5
|
export declare const USER_ADDRESS_PARAMS: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.USER_ADDRESS_PARAMS = exports.CONTEXT_PARAM_PREFIX = exports.CONTEXT_PARAM_FULL_MATCH_REGEXP = exports.CONTEXT_PARAM_REGEXP = void 0;
|
|
3
|
+
exports.USER_ADDRESS_PARAMS = exports.NULL_ADDRESS_CONTEXT_VAR = exports.CONTEXT_PARAM_PREFIX = exports.CONTEXT_PARAM_FULL_MATCH_REGEXP = exports.CONTEXT_PARAM_REGEXP = void 0;
|
|
4
4
|
const taco_auth_1 = require("@nucypher/taco-auth");
|
|
5
5
|
// Only allow alphanumeric characters and underscores
|
|
6
6
|
const contextParamRegexString = ':[a-zA-Z_][a-zA-Z0-9_]*';
|
|
@@ -8,6 +8,7 @@ exports.CONTEXT_PARAM_REGEXP = new RegExp(contextParamRegexString);
|
|
|
8
8
|
// Entire string is context param
|
|
9
9
|
exports.CONTEXT_PARAM_FULL_MATCH_REGEXP = new RegExp(`^${contextParamRegexString}$`);
|
|
10
10
|
exports.CONTEXT_PARAM_PREFIX = ':';
|
|
11
|
+
exports.NULL_ADDRESS_CONTEXT_VAR = ':nullAddress';
|
|
11
12
|
exports.USER_ADDRESS_PARAMS = [
|
|
12
13
|
// Ordering matters, this should always be last
|
|
13
14
|
taco_auth_1.USER_ADDRESS_PARAM_DEFAULT,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"const.js","sourceRoot":"","sources":["../../../src/conditions/const.ts"],"names":[],"mappings":";;;AAAA,mDAAiE;AAEjE,qDAAqD;AACrD,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;AAE7C,QAAA,oBAAoB,GAAG,IAAI,MAAM,CAAC,uBAAuB,CAAC,CAAC;AAExE,iCAAiC;AACpB,QAAA,+BAA+B,GAAG,IAAI,MAAM,CACvD,IAAI,uBAAuB,GAAG,CAC/B,CAAC;AAEW,QAAA,oBAAoB,GAAG,GAAG,CAAC;AAE3B,QAAA,mBAAmB,GAAG;IACjC,+CAA+C;IAC/C,sCAA0B;CAC3B,CAAC"}
|
|
1
|
+
{"version":3,"file":"const.js","sourceRoot":"","sources":["../../../src/conditions/const.ts"],"names":[],"mappings":";;;AAAA,mDAAiE;AAEjE,qDAAqD;AACrD,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;AAE7C,QAAA,oBAAoB,GAAG,IAAI,MAAM,CAAC,uBAAuB,CAAC,CAAC;AAExE,iCAAiC;AACpB,QAAA,+BAA+B,GAAG,IAAI,MAAM,CACvD,IAAI,uBAAuB,GAAG,CAC/B,CAAC;AAEW,QAAA,oBAAoB,GAAG,GAAG,CAAC;AAE3B,QAAA,wBAAwB,GAAG,cAAc,CAAC;AAE1C,QAAA,mBAAmB,GAAG;IACjC,+CAA+C;IAC/C,sCAA0B;CAC3B,CAAC"}
|
|
@@ -28,10 +28,12 @@ const EXPECTED_AUTH_PROVIDER_TYPES = {
|
|
|
28
28
|
exports.AUTOMATICALLY_INJECTED_CONTEXT_PARAMS = [
|
|
29
29
|
// These context parameters are automatically injected on the node side.
|
|
30
30
|
signing_1.SIGNING_CONDITION_OBJECT_CONTEXT_VAR,
|
|
31
|
+
const_1.NULL_ADDRESS_CONTEXT_VAR,
|
|
31
32
|
];
|
|
32
33
|
exports.RESERVED_CONTEXT_PARAMS = [
|
|
33
34
|
taco_auth_1.USER_ADDRESS_PARAM_DEFAULT,
|
|
34
35
|
signing_1.SIGNING_CONDITION_OBJECT_CONTEXT_VAR,
|
|
36
|
+
const_1.NULL_ADDRESS_CONTEXT_VAR,
|
|
35
37
|
];
|
|
36
38
|
class ConditionContext {
|
|
37
39
|
requestedContextParameters;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/conditions/context/context.ts"],"names":[],"mappings":";;;AACA,6CAAmE;AACnE,mDAO6B;AAC7B,mCAAgC;AAEhC,uCAA0D;AAC1D,uCAAqC;AAErC,sDAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/conditions/context/context.ts"],"names":[],"mappings":";;;AACA,6CAAmE;AACnE,mDAO6B;AAC7B,mCAAgC;AAEhC,uCAA0D;AAC1D,uCAAqC;AAErC,sDAAwD;AACxD,oCAMkB;AAElB,gDAA0E;AAC1E,8CAGuB;AAUvB,MAAM,kBAAkB,GAAG,CAAC,GAAW,EAAE,EAAE,CACzC,sCAAsC,GAAG,sBAAsB,CAAC;AAClE,MAAM,wBAAwB,GAAG,CAAC,GAAW,EAAE,EAAE,CAC/C,oBAAoB,GAAG,oBAAoB,4BAAoB,EAAE,CAAC;AACpE,MAAM,0BAA0B,GAAG,CAAC,GAAW,EAAE,EAAE,CACjD,kDAAkD,GAAG,gCAAgC,CAAC;AACxF,MAAM,0BAA0B,GAAG,CAAC,MAAgB,EAAE,EAAE,CACtD,wCAAwC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AAC9D,MAAM,gCAAgC,GAAG,CAAC,KAAa,EAAE,EAAE,CACzD,qCAAqC,KAAK,EAAE,CAAC;AAC/C,MAAM,8BAA8B,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CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IAEM,mBAAmB,GAAG,KAAK,IAEhC,EAAE;QACF,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC7B,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,qBAAqB,CACjD,IAAI,CAAC,0BAA0B,CAChC,CAAC;QACF,IAAI,CAAC,kCAAkC,CAAC,UAAU,CAAC,CAAC;QACpD,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC;IAEK,MAAM,CAAC,cAAc,CAC1B,UAA+B;QAE/B,MAAM,aAAa,GAAG,oCAAmB,CAAC,kBAAkB,CAC1D,UAAU,CAAC,GAAG,CAAC,UAAU,CAC1B,CAAC;QACF,OAAO,IAAI,gBAAgB,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACvD,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAClC,QAA0C,EAC1C,MAAc,EACd,QAAgB,EAChB,OAAe;QAEf,yDAAyD;QACzD,MAAM,kBAAkB,GACtB,MAAM,gCAAuB,CAAC,0BAA0B,CACtD,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,OAAO,CACR,CAAC;QAEJ,0CAA0C;QAC1C,MAAM,mBAAmB,GAAG,eAAM,CAAC,KAAK,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;QAE1E,MAAM,eAAe,GAAG,IAAI,sBAAc,CAAC,mBAAmB,CAAC,CAAC;QAChE,MAAM,aAAa,GACjB,oCAAmB,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;QAC1D,OAAO,IAAI,gBAAgB,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACvD,CAAC;CACF;AAjRD,4CAiRC"}
|
|
@@ -6,85 +6,145 @@ export declare const contextVariableConditionSchema: z.ZodObject<{} & {
|
|
|
6
6
|
returnValueTest: z.ZodEffects<z.ZodObject<{
|
|
7
7
|
index: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
|
|
9
|
-
operations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
10
|
-
operation: z.ZodEnum<[
|
|
9
|
+
operations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObject<{} & {
|
|
10
|
+
operation: z.ZodEnum<[string, ...string[]]>;
|
|
11
11
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
operation:
|
|
13
|
+
operation: string;
|
|
14
14
|
value?: any;
|
|
15
15
|
}, {
|
|
16
|
-
operation:
|
|
16
|
+
operation: string;
|
|
17
17
|
value?: any;
|
|
18
18
|
}>, {
|
|
19
|
-
operation:
|
|
19
|
+
operation: string;
|
|
20
20
|
value?: any;
|
|
21
21
|
}, {
|
|
22
|
-
operation:
|
|
22
|
+
operation: string;
|
|
23
23
|
value?: any;
|
|
24
24
|
}>, {
|
|
25
|
-
operation:
|
|
25
|
+
operation: string;
|
|
26
26
|
value?: any;
|
|
27
27
|
}, {
|
|
28
|
-
operation:
|
|
28
|
+
operation: string;
|
|
29
29
|
value?: any;
|
|
30
|
-
}>,
|
|
30
|
+
}>, z.ZodObject<{} & {
|
|
31
|
+
operation: z.ZodLiteral<"create2">;
|
|
32
|
+
value: z.ZodObject<{
|
|
33
|
+
deployerAddress: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
34
|
+
bytecodeHash: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
deployerAddress: string;
|
|
37
|
+
bytecodeHash: string;
|
|
38
|
+
}, {
|
|
39
|
+
deployerAddress: string;
|
|
40
|
+
bytecodeHash: string;
|
|
41
|
+
}>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
value: {
|
|
44
|
+
deployerAddress: string;
|
|
45
|
+
bytecodeHash: string;
|
|
46
|
+
};
|
|
47
|
+
operation: "create2";
|
|
48
|
+
}, {
|
|
49
|
+
value: {
|
|
50
|
+
deployerAddress: string;
|
|
51
|
+
bytecodeHash: string;
|
|
52
|
+
};
|
|
53
|
+
operation: "create2";
|
|
54
|
+
}>]>, "many">>;
|
|
31
55
|
} & {
|
|
32
56
|
value: z.ZodType<any, z.ZodTypeDef, any>;
|
|
33
57
|
}, "strip", z.ZodTypeAny, {
|
|
34
58
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
35
|
-
index?: number | undefined;
|
|
36
59
|
value?: any;
|
|
37
|
-
|
|
38
|
-
|
|
60
|
+
index?: number | undefined;
|
|
61
|
+
operations?: ({
|
|
62
|
+
operation: string;
|
|
39
63
|
value?: any;
|
|
40
|
-
}
|
|
64
|
+
} | {
|
|
65
|
+
value: {
|
|
66
|
+
deployerAddress: string;
|
|
67
|
+
bytecodeHash: string;
|
|
68
|
+
};
|
|
69
|
+
operation: "create2";
|
|
70
|
+
})[] | undefined;
|
|
41
71
|
}, {
|
|
42
72
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
43
|
-
index?: number | undefined;
|
|
44
73
|
value?: any;
|
|
45
|
-
|
|
46
|
-
|
|
74
|
+
index?: number | undefined;
|
|
75
|
+
operations?: ({
|
|
76
|
+
operation: string;
|
|
47
77
|
value?: any;
|
|
48
|
-
}
|
|
78
|
+
} | {
|
|
79
|
+
value: {
|
|
80
|
+
deployerAddress: string;
|
|
81
|
+
bytecodeHash: string;
|
|
82
|
+
};
|
|
83
|
+
operation: "create2";
|
|
84
|
+
})[] | undefined;
|
|
49
85
|
}>, {
|
|
50
86
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
51
|
-
index?: number | undefined;
|
|
52
87
|
value?: any;
|
|
53
|
-
|
|
54
|
-
|
|
88
|
+
index?: number | undefined;
|
|
89
|
+
operations?: ({
|
|
90
|
+
operation: string;
|
|
55
91
|
value?: any;
|
|
56
|
-
}
|
|
92
|
+
} | {
|
|
93
|
+
value: {
|
|
94
|
+
deployerAddress: string;
|
|
95
|
+
bytecodeHash: string;
|
|
96
|
+
};
|
|
97
|
+
operation: "create2";
|
|
98
|
+
})[] | undefined;
|
|
57
99
|
}, {
|
|
58
100
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
59
|
-
index?: number | undefined;
|
|
60
101
|
value?: any;
|
|
61
|
-
|
|
62
|
-
|
|
102
|
+
index?: number | undefined;
|
|
103
|
+
operations?: ({
|
|
104
|
+
operation: string;
|
|
63
105
|
value?: any;
|
|
64
|
-
}
|
|
106
|
+
} | {
|
|
107
|
+
value: {
|
|
108
|
+
deployerAddress: string;
|
|
109
|
+
bytecodeHash: string;
|
|
110
|
+
};
|
|
111
|
+
operation: "create2";
|
|
112
|
+
})[] | undefined;
|
|
65
113
|
}>;
|
|
66
114
|
}, "strict", z.ZodTypeAny, {
|
|
67
115
|
conditionType: "context-variable";
|
|
68
116
|
returnValueTest: {
|
|
69
117
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
70
|
-
index?: number | undefined;
|
|
71
118
|
value?: any;
|
|
72
|
-
|
|
73
|
-
|
|
119
|
+
index?: number | undefined;
|
|
120
|
+
operations?: ({
|
|
121
|
+
operation: string;
|
|
74
122
|
value?: any;
|
|
75
|
-
}
|
|
123
|
+
} | {
|
|
124
|
+
value: {
|
|
125
|
+
deployerAddress: string;
|
|
126
|
+
bytecodeHash: string;
|
|
127
|
+
};
|
|
128
|
+
operation: "create2";
|
|
129
|
+
})[] | undefined;
|
|
76
130
|
};
|
|
77
131
|
contextVariable: string;
|
|
78
132
|
}, {
|
|
79
133
|
conditionType: "context-variable";
|
|
80
134
|
returnValueTest: {
|
|
81
135
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
82
|
-
index?: number | undefined;
|
|
83
136
|
value?: any;
|
|
84
|
-
|
|
85
|
-
|
|
137
|
+
index?: number | undefined;
|
|
138
|
+
operations?: ({
|
|
139
|
+
operation: string;
|
|
86
140
|
value?: any;
|
|
87
|
-
}
|
|
141
|
+
} | {
|
|
142
|
+
value: {
|
|
143
|
+
deployerAddress: string;
|
|
144
|
+
bytecodeHash: string;
|
|
145
|
+
};
|
|
146
|
+
operation: "create2";
|
|
147
|
+
})[] | undefined;
|
|
88
148
|
};
|
|
89
149
|
contextVariable: string;
|
|
90
150
|
}>;
|
|
@@ -158,62 +158,110 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
158
158
|
returnValueTest: z.ZodEffects<z.ZodObject<{
|
|
159
159
|
index: z.ZodOptional<z.ZodNumber>;
|
|
160
160
|
comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
|
|
161
|
-
operations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
162
|
-
operation: z.ZodEnum<[
|
|
161
|
+
operations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObject<{} & {
|
|
162
|
+
operation: z.ZodEnum<[string, ...string[]]>;
|
|
163
163
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
164
164
|
}, "strip", z.ZodTypeAny, {
|
|
165
|
-
operation:
|
|
165
|
+
operation: string;
|
|
166
166
|
value?: any;
|
|
167
167
|
}, {
|
|
168
|
-
operation:
|
|
168
|
+
operation: string;
|
|
169
169
|
value?: any;
|
|
170
170
|
}>, {
|
|
171
|
-
operation:
|
|
171
|
+
operation: string;
|
|
172
172
|
value?: any;
|
|
173
173
|
}, {
|
|
174
|
-
operation:
|
|
174
|
+
operation: string;
|
|
175
175
|
value?: any;
|
|
176
176
|
}>, {
|
|
177
|
-
operation:
|
|
177
|
+
operation: string;
|
|
178
178
|
value?: any;
|
|
179
179
|
}, {
|
|
180
|
-
operation:
|
|
180
|
+
operation: string;
|
|
181
181
|
value?: any;
|
|
182
|
-
}>,
|
|
182
|
+
}>, z.ZodObject<{} & {
|
|
183
|
+
operation: z.ZodLiteral<"create2">;
|
|
184
|
+
value: z.ZodObject<{
|
|
185
|
+
deployerAddress: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
186
|
+
bytecodeHash: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
187
|
+
}, "strip", z.ZodTypeAny, {
|
|
188
|
+
deployerAddress: string;
|
|
189
|
+
bytecodeHash: string;
|
|
190
|
+
}, {
|
|
191
|
+
deployerAddress: string;
|
|
192
|
+
bytecodeHash: string;
|
|
193
|
+
}>;
|
|
194
|
+
}, "strip", z.ZodTypeAny, {
|
|
195
|
+
value: {
|
|
196
|
+
deployerAddress: string;
|
|
197
|
+
bytecodeHash: string;
|
|
198
|
+
};
|
|
199
|
+
operation: "create2";
|
|
200
|
+
}, {
|
|
201
|
+
value: {
|
|
202
|
+
deployerAddress: string;
|
|
203
|
+
bytecodeHash: string;
|
|
204
|
+
};
|
|
205
|
+
operation: "create2";
|
|
206
|
+
}>]>, "many">>;
|
|
183
207
|
} & {
|
|
184
208
|
value: z.ZodType<any, z.ZodTypeDef, any>;
|
|
185
209
|
}, "strip", z.ZodTypeAny, {
|
|
186
210
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
187
|
-
index?: number | undefined;
|
|
188
211
|
value?: any;
|
|
189
|
-
|
|
190
|
-
|
|
212
|
+
index?: number | undefined;
|
|
213
|
+
operations?: ({
|
|
214
|
+
operation: string;
|
|
191
215
|
value?: any;
|
|
192
|
-
}
|
|
216
|
+
} | {
|
|
217
|
+
value: {
|
|
218
|
+
deployerAddress: string;
|
|
219
|
+
bytecodeHash: string;
|
|
220
|
+
};
|
|
221
|
+
operation: "create2";
|
|
222
|
+
})[] | undefined;
|
|
193
223
|
}, {
|
|
194
224
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
195
|
-
index?: number | undefined;
|
|
196
225
|
value?: any;
|
|
197
|
-
|
|
198
|
-
|
|
226
|
+
index?: number | undefined;
|
|
227
|
+
operations?: ({
|
|
228
|
+
operation: string;
|
|
199
229
|
value?: any;
|
|
200
|
-
}
|
|
230
|
+
} | {
|
|
231
|
+
value: {
|
|
232
|
+
deployerAddress: string;
|
|
233
|
+
bytecodeHash: string;
|
|
234
|
+
};
|
|
235
|
+
operation: "create2";
|
|
236
|
+
})[] | undefined;
|
|
201
237
|
}>, {
|
|
202
238
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
203
|
-
index?: number | undefined;
|
|
204
239
|
value?: any;
|
|
205
|
-
|
|
206
|
-
|
|
240
|
+
index?: number | undefined;
|
|
241
|
+
operations?: ({
|
|
242
|
+
operation: string;
|
|
207
243
|
value?: any;
|
|
208
|
-
}
|
|
244
|
+
} | {
|
|
245
|
+
value: {
|
|
246
|
+
deployerAddress: string;
|
|
247
|
+
bytecodeHash: string;
|
|
248
|
+
};
|
|
249
|
+
operation: "create2";
|
|
250
|
+
})[] | undefined;
|
|
209
251
|
}, {
|
|
210
252
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
211
|
-
index?: number | undefined;
|
|
212
253
|
value?: any;
|
|
213
|
-
|
|
214
|
-
|
|
254
|
+
index?: number | undefined;
|
|
255
|
+
operations?: ({
|
|
256
|
+
operation: string;
|
|
215
257
|
value?: any;
|
|
216
|
-
}
|
|
258
|
+
} | {
|
|
259
|
+
value: {
|
|
260
|
+
deployerAddress: string;
|
|
261
|
+
bytecodeHash: string;
|
|
262
|
+
};
|
|
263
|
+
operation: "create2";
|
|
264
|
+
})[] | undefined;
|
|
217
265
|
}>;
|
|
218
266
|
} & {
|
|
219
267
|
conditionType: z.ZodDefault<z.ZodLiteral<"contract">>;
|
|
@@ -362,18 +410,24 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
362
410
|
parameters: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
363
411
|
}, "strip", z.ZodTypeAny, {
|
|
364
412
|
conditionType: "contract";
|
|
365
|
-
method: string;
|
|
366
413
|
returnValueTest: {
|
|
367
414
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
368
|
-
index?: number | undefined;
|
|
369
415
|
value?: any;
|
|
370
|
-
|
|
371
|
-
|
|
416
|
+
index?: number | undefined;
|
|
417
|
+
operations?: ({
|
|
418
|
+
operation: string;
|
|
372
419
|
value?: any;
|
|
373
|
-
}
|
|
420
|
+
} | {
|
|
421
|
+
value: {
|
|
422
|
+
deployerAddress: string;
|
|
423
|
+
bytecodeHash: string;
|
|
424
|
+
};
|
|
425
|
+
operation: "create2";
|
|
426
|
+
})[] | undefined;
|
|
374
427
|
};
|
|
375
|
-
parameters: any[];
|
|
376
428
|
chain: number;
|
|
429
|
+
method: string;
|
|
430
|
+
parameters: any[];
|
|
377
431
|
contractAddress: string;
|
|
378
432
|
functionAbi?: {
|
|
379
433
|
type: "function";
|
|
@@ -396,18 +450,24 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
396
450
|
} | undefined;
|
|
397
451
|
standardContractType?: "ERC20" | "ERC721" | undefined;
|
|
398
452
|
}, {
|
|
399
|
-
method: string;
|
|
400
453
|
returnValueTest: {
|
|
401
454
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
402
|
-
index?: number | undefined;
|
|
403
455
|
value?: any;
|
|
404
|
-
|
|
405
|
-
|
|
456
|
+
index?: number | undefined;
|
|
457
|
+
operations?: ({
|
|
458
|
+
operation: string;
|
|
406
459
|
value?: any;
|
|
407
|
-
}
|
|
460
|
+
} | {
|
|
461
|
+
value: {
|
|
462
|
+
deployerAddress: string;
|
|
463
|
+
bytecodeHash: string;
|
|
464
|
+
};
|
|
465
|
+
operation: "create2";
|
|
466
|
+
})[] | undefined;
|
|
408
467
|
};
|
|
409
|
-
parameters: any[];
|
|
410
468
|
chain: number;
|
|
469
|
+
method: string;
|
|
470
|
+
parameters: any[];
|
|
411
471
|
contractAddress: string;
|
|
412
472
|
conditionType?: "contract" | undefined;
|
|
413
473
|
functionAbi?: {
|
|
@@ -432,18 +492,24 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
432
492
|
standardContractType?: "ERC20" | "ERC721" | undefined;
|
|
433
493
|
}>, {
|
|
434
494
|
conditionType: "contract";
|
|
435
|
-
method: string;
|
|
436
495
|
returnValueTest: {
|
|
437
496
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
438
|
-
index?: number | undefined;
|
|
439
497
|
value?: any;
|
|
440
|
-
|
|
441
|
-
|
|
498
|
+
index?: number | undefined;
|
|
499
|
+
operations?: ({
|
|
500
|
+
operation: string;
|
|
442
501
|
value?: any;
|
|
443
|
-
}
|
|
502
|
+
} | {
|
|
503
|
+
value: {
|
|
504
|
+
deployerAddress: string;
|
|
505
|
+
bytecodeHash: string;
|
|
506
|
+
};
|
|
507
|
+
operation: "create2";
|
|
508
|
+
})[] | undefined;
|
|
444
509
|
};
|
|
445
|
-
parameters: any[];
|
|
446
510
|
chain: number;
|
|
511
|
+
method: string;
|
|
512
|
+
parameters: any[];
|
|
447
513
|
contractAddress: string;
|
|
448
514
|
functionAbi?: {
|
|
449
515
|
type: "function";
|
|
@@ -466,18 +532,24 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
466
532
|
} | undefined;
|
|
467
533
|
standardContractType?: "ERC20" | "ERC721" | undefined;
|
|
468
534
|
}, {
|
|
469
|
-
method: string;
|
|
470
535
|
returnValueTest: {
|
|
471
536
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
472
|
-
index?: number | undefined;
|
|
473
537
|
value?: any;
|
|
474
|
-
|
|
475
|
-
|
|
538
|
+
index?: number | undefined;
|
|
539
|
+
operations?: ({
|
|
540
|
+
operation: string;
|
|
476
541
|
value?: any;
|
|
477
|
-
}
|
|
542
|
+
} | {
|
|
543
|
+
value: {
|
|
544
|
+
deployerAddress: string;
|
|
545
|
+
bytecodeHash: string;
|
|
546
|
+
};
|
|
547
|
+
operation: "create2";
|
|
548
|
+
})[] | undefined;
|
|
478
549
|
};
|
|
479
|
-
parameters: any[];
|
|
480
550
|
chain: number;
|
|
551
|
+
method: string;
|
|
552
|
+
parameters: any[];
|
|
481
553
|
contractAddress: string;
|
|
482
554
|
conditionType?: "contract" | undefined;
|
|
483
555
|
functionAbi?: {
|