@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.
Files changed (39) hide show
  1. package/dist/cjs/conditions/const.d.ts +1 -0
  2. package/dist/cjs/conditions/const.js +2 -1
  3. package/dist/cjs/conditions/const.js.map +1 -1
  4. package/dist/cjs/conditions/context/context.js +2 -0
  5. package/dist/cjs/conditions/context/context.js.map +1 -1
  6. package/dist/cjs/conditions/schemas/context-variable.d.ts +93 -33
  7. package/dist/cjs/conditions/schemas/contract.d.ts +121 -49
  8. package/dist/cjs/conditions/schemas/json-api.d.ts +121 -49
  9. package/dist/cjs/conditions/schemas/json-rpc.d.ts +121 -49
  10. package/dist/cjs/conditions/schemas/json.d.ts +95 -35
  11. package/dist/cjs/conditions/schemas/return-value-test.d.ts +156 -60
  12. package/dist/cjs/conditions/schemas/rpc.d.ts +97 -37
  13. package/dist/cjs/conditions/schemas/signing.js +60 -31
  14. package/dist/cjs/conditions/schemas/signing.js.map +1 -1
  15. package/dist/cjs/conditions/schemas/time.d.ts +94 -34
  16. package/dist/cjs/conditions/schemas/variable-operation.d.ts +67 -19
  17. package/dist/cjs/conditions/schemas/variable-operation.js +27 -3
  18. package/dist/cjs/conditions/schemas/variable-operation.js.map +1 -1
  19. package/dist/es/conditions/const.d.ts +1 -0
  20. package/dist/es/conditions/const.js +1 -0
  21. package/dist/es/conditions/const.js.map +1 -1
  22. package/dist/es/conditions/context/context.js +3 -1
  23. package/dist/es/conditions/context/context.js.map +1 -1
  24. package/dist/es/conditions/schemas/context-variable.d.ts +95 -35
  25. package/dist/es/conditions/schemas/contract.d.ts +121 -49
  26. package/dist/es/conditions/schemas/json-api.d.ts +121 -49
  27. package/dist/es/conditions/schemas/json-rpc.d.ts +121 -49
  28. package/dist/es/conditions/schemas/json.d.ts +95 -35
  29. package/dist/es/conditions/schemas/return-value-test.d.ts +156 -60
  30. package/dist/es/conditions/schemas/rpc.d.ts +97 -37
  31. package/dist/es/conditions/schemas/signing.js +60 -31
  32. package/dist/es/conditions/schemas/signing.js.map +1 -1
  33. package/dist/es/conditions/schemas/time.d.ts +94 -34
  34. package/dist/es/conditions/schemas/variable-operation.d.ts +67 -19
  35. package/dist/es/conditions/schemas/variable-operation.js +28 -4
  36. package/dist/es/conditions/schemas/variable-operation.js.map +1 -1
  37. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  38. package/dist/tsconfig.es.tsbuildinfo +1 -1
  39. package/package.json +3 -3
@@ -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<["+=", "-=", "*=", "/=", "%=", "toTokenBaseUnits", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str", "fromJson", "toJson", "fromHex", "toHex", "keccak"]>;
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: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
165
+ operation: string;
166
166
  value?: any;
167
167
  }, {
168
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
168
+ operation: string;
169
169
  value?: any;
170
170
  }>, {
171
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
171
+ operation: string;
172
172
  value?: any;
173
173
  }, {
174
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
174
+ operation: string;
175
175
  value?: any;
176
176
  }>, {
177
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
177
+ operation: string;
178
178
  value?: any;
179
179
  }, {
180
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
180
+ operation: string;
181
181
  value?: any;
182
- }>, "many">>;
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
- operations?: {
190
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
212
+ index?: number | undefined;
213
+ operations?: ({
214
+ operation: string;
191
215
  value?: any;
192
- }[] | undefined;
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
- operations?: {
198
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
226
+ index?: number | undefined;
227
+ operations?: ({
228
+ operation: string;
199
229
  value?: any;
200
- }[] | undefined;
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
- operations?: {
206
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
240
+ index?: number | undefined;
241
+ operations?: ({
242
+ operation: string;
207
243
  value?: any;
208
- }[] | undefined;
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
- operations?: {
214
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
254
+ index?: number | undefined;
255
+ operations?: ({
256
+ operation: string;
215
257
  value?: any;
216
- }[] | undefined;
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
- operations?: {
371
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
416
+ index?: number | undefined;
417
+ operations?: ({
418
+ operation: string;
372
419
  value?: any;
373
- }[] | undefined;
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
- operations?: {
405
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
456
+ index?: number | undefined;
457
+ operations?: ({
458
+ operation: string;
406
459
  value?: any;
407
- }[] | undefined;
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
- operations?: {
441
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
498
+ index?: number | undefined;
499
+ operations?: ({
500
+ operation: string;
442
501
  value?: any;
443
- }[] | undefined;
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
- operations?: {
475
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
538
+ index?: number | undefined;
539
+ operations?: ({
540
+ operation: string;
476
541
  value?: any;
477
- }[] | undefined;
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?: {
@@ -10,126 +10,198 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
10
10
  returnValueTest: z.ZodEffects<z.ZodObject<{
11
11
  index: z.ZodOptional<z.ZodNumber>;
12
12
  comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
13
- operations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
14
- operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "toTokenBaseUnits", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str", "fromJson", "toJson", "fromHex", "toHex", "keccak"]>;
13
+ operations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObject<{} & {
14
+ operation: z.ZodEnum<[string, ...string[]]>;
15
15
  value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
17
+ operation: string;
18
18
  value?: any;
19
19
  }, {
20
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
20
+ operation: string;
21
21
  value?: any;
22
22
  }>, {
23
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
23
+ operation: string;
24
24
  value?: any;
25
25
  }, {
26
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
26
+ operation: string;
27
27
  value?: any;
28
28
  }>, {
29
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
29
+ operation: string;
30
30
  value?: any;
31
31
  }, {
32
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
32
+ operation: string;
33
33
  value?: any;
34
- }>, "many">>;
34
+ }>, z.ZodObject<{} & {
35
+ operation: z.ZodLiteral<"create2">;
36
+ value: z.ZodObject<{
37
+ deployerAddress: z.ZodUnion<[z.ZodString, z.ZodString]>;
38
+ bytecodeHash: z.ZodUnion<[z.ZodString, z.ZodString]>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ deployerAddress: string;
41
+ bytecodeHash: string;
42
+ }, {
43
+ deployerAddress: string;
44
+ bytecodeHash: string;
45
+ }>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ value: {
48
+ deployerAddress: string;
49
+ bytecodeHash: string;
50
+ };
51
+ operation: "create2";
52
+ }, {
53
+ value: {
54
+ deployerAddress: string;
55
+ bytecodeHash: string;
56
+ };
57
+ operation: "create2";
58
+ }>]>, "many">>;
35
59
  } & {
36
60
  value: z.ZodType<any, z.ZodTypeDef, any>;
37
61
  }, "strip", z.ZodTypeAny, {
38
62
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
39
- index?: number | undefined;
40
63
  value?: any;
41
- operations?: {
42
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
64
+ index?: number | undefined;
65
+ operations?: ({
66
+ operation: string;
43
67
  value?: any;
44
- }[] | undefined;
68
+ } | {
69
+ value: {
70
+ deployerAddress: string;
71
+ bytecodeHash: string;
72
+ };
73
+ operation: "create2";
74
+ })[] | undefined;
45
75
  }, {
46
76
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
47
- index?: number | undefined;
48
77
  value?: any;
49
- operations?: {
50
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
78
+ index?: number | undefined;
79
+ operations?: ({
80
+ operation: string;
51
81
  value?: any;
52
- }[] | undefined;
82
+ } | {
83
+ value: {
84
+ deployerAddress: string;
85
+ bytecodeHash: string;
86
+ };
87
+ operation: "create2";
88
+ })[] | undefined;
53
89
  }>, {
54
90
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
55
- index?: number | undefined;
56
91
  value?: any;
57
- operations?: {
58
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
92
+ index?: number | undefined;
93
+ operations?: ({
94
+ operation: string;
59
95
  value?: any;
60
- }[] | undefined;
96
+ } | {
97
+ value: {
98
+ deployerAddress: string;
99
+ bytecodeHash: string;
100
+ };
101
+ operation: "create2";
102
+ })[] | undefined;
61
103
  }, {
62
104
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
63
- index?: number | undefined;
64
105
  value?: any;
65
- operations?: {
66
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
106
+ index?: number | undefined;
107
+ operations?: ({
108
+ operation: string;
67
109
  value?: any;
68
- }[] | undefined;
110
+ } | {
111
+ value: {
112
+ deployerAddress: string;
113
+ bytecodeHash: string;
114
+ };
115
+ operation: "create2";
116
+ })[] | undefined;
69
117
  }>;
70
118
  }, "strip", z.ZodTypeAny, {
71
119
  conditionType: "json-api";
72
- endpoint: string;
73
120
  returnValueTest: {
74
121
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
75
- index?: number | undefined;
76
122
  value?: any;
77
- operations?: {
78
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
123
+ index?: number | undefined;
124
+ operations?: ({
125
+ operation: string;
79
126
  value?: any;
80
- }[] | undefined;
127
+ } | {
128
+ value: {
129
+ deployerAddress: string;
130
+ bytecodeHash: string;
131
+ };
132
+ operation: "create2";
133
+ })[] | undefined;
81
134
  };
135
+ endpoint: string;
136
+ parameters?: Record<string, unknown> | undefined;
82
137
  query?: string | undefined;
83
138
  authorizationToken?: string | undefined;
84
139
  authorizationType?: "Bearer" | "Basic" | "X-API-Key" | undefined;
85
- parameters?: Record<string, unknown> | undefined;
86
140
  }, {
87
- endpoint: string;
88
141
  returnValueTest: {
89
142
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
90
- index?: number | undefined;
91
143
  value?: any;
92
- operations?: {
93
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
144
+ index?: number | undefined;
145
+ operations?: ({
146
+ operation: string;
94
147
  value?: any;
95
- }[] | undefined;
148
+ } | {
149
+ value: {
150
+ deployerAddress: string;
151
+ bytecodeHash: string;
152
+ };
153
+ operation: "create2";
154
+ })[] | undefined;
96
155
  };
156
+ endpoint: string;
97
157
  conditionType?: "json-api" | undefined;
158
+ parameters?: Record<string, unknown> | undefined;
98
159
  query?: string | undefined;
99
160
  authorizationToken?: string | undefined;
100
161
  authorizationType?: "Bearer" | "Basic" | "X-API-Key" | undefined;
101
- parameters?: Record<string, unknown> | undefined;
102
162
  }>, {
103
163
  conditionType: "json-api";
104
- endpoint: string;
105
164
  returnValueTest: {
106
165
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
107
- index?: number | undefined;
108
166
  value?: any;
109
- operations?: {
110
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
167
+ index?: number | undefined;
168
+ operations?: ({
169
+ operation: string;
111
170
  value?: any;
112
- }[] | undefined;
171
+ } | {
172
+ value: {
173
+ deployerAddress: string;
174
+ bytecodeHash: string;
175
+ };
176
+ operation: "create2";
177
+ })[] | undefined;
113
178
  };
179
+ endpoint: string;
180
+ parameters?: Record<string, unknown> | undefined;
114
181
  query?: string | undefined;
115
182
  authorizationToken?: string | undefined;
116
183
  authorizationType?: "Bearer" | "Basic" | "X-API-Key" | undefined;
117
- parameters?: Record<string, unknown> | undefined;
118
184
  }, {
119
- endpoint: string;
120
185
  returnValueTest: {
121
186
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
122
- index?: number | undefined;
123
187
  value?: any;
124
- operations?: {
125
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
188
+ index?: number | undefined;
189
+ operations?: ({
190
+ operation: string;
126
191
  value?: any;
127
- }[] | undefined;
192
+ } | {
193
+ value: {
194
+ deployerAddress: string;
195
+ bytecodeHash: string;
196
+ };
197
+ operation: "create2";
198
+ })[] | undefined;
128
199
  };
200
+ endpoint: string;
129
201
  conditionType?: "json-api" | undefined;
202
+ parameters?: Record<string, unknown> | undefined;
130
203
  query?: string | undefined;
131
204
  authorizationToken?: string | undefined;
132
205
  authorizationType?: "Bearer" | "Basic" | "X-API-Key" | undefined;
133
- parameters?: Record<string, unknown> | undefined;
134
206
  }>;
135
207
  export type JsonApiConditionProps = z.infer<typeof jsonApiConditionSchema>;