@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
@@ -7,87 +7,147 @@ export declare const jsonConditionSchema: z.ZodObject<{} & {
7
7
  returnValueTest: z.ZodEffects<z.ZodObject<{
8
8
  index: z.ZodOptional<z.ZodNumber>;
9
9
  comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
10
- operations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
11
- 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"]>;
10
+ operations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObject<{} & {
11
+ operation: z.ZodEnum<[string, ...string[]]>;
12
12
  value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
13
13
  }, "strip", z.ZodTypeAny, {
14
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
14
+ operation: string;
15
15
  value?: any;
16
16
  }, {
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
- }>, "many">>;
31
+ }>, z.ZodObject<{} & {
32
+ operation: z.ZodLiteral<"create2">;
33
+ value: z.ZodObject<{
34
+ deployerAddress: z.ZodUnion<[z.ZodString, z.ZodString]>;
35
+ bytecodeHash: z.ZodUnion<[z.ZodString, z.ZodString]>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ deployerAddress: string;
38
+ bytecodeHash: string;
39
+ }, {
40
+ deployerAddress: string;
41
+ bytecodeHash: string;
42
+ }>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ value: {
45
+ deployerAddress: string;
46
+ bytecodeHash: string;
47
+ };
48
+ operation: "create2";
49
+ }, {
50
+ value: {
51
+ deployerAddress: string;
52
+ bytecodeHash: string;
53
+ };
54
+ operation: "create2";
55
+ }>]>, "many">>;
32
56
  } & {
33
57
  value: z.ZodType<any, z.ZodTypeDef, any>;
34
58
  }, "strip", z.ZodTypeAny, {
35
59
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
36
- index?: number | undefined;
37
60
  value?: any;
38
- operations?: {
39
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
61
+ index?: number | undefined;
62
+ operations?: ({
63
+ operation: string;
40
64
  value?: any;
41
- }[] | undefined;
65
+ } | {
66
+ value: {
67
+ deployerAddress: string;
68
+ bytecodeHash: string;
69
+ };
70
+ operation: "create2";
71
+ })[] | undefined;
42
72
  }, {
43
73
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
44
- index?: number | undefined;
45
74
  value?: any;
46
- operations?: {
47
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
75
+ index?: number | undefined;
76
+ operations?: ({
77
+ operation: string;
48
78
  value?: any;
49
- }[] | undefined;
79
+ } | {
80
+ value: {
81
+ deployerAddress: string;
82
+ bytecodeHash: string;
83
+ };
84
+ operation: "create2";
85
+ })[] | undefined;
50
86
  }>, {
51
87
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
52
- index?: number | undefined;
53
88
  value?: any;
54
- operations?: {
55
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
89
+ index?: number | undefined;
90
+ operations?: ({
91
+ operation: string;
56
92
  value?: any;
57
- }[] | undefined;
93
+ } | {
94
+ value: {
95
+ deployerAddress: string;
96
+ bytecodeHash: string;
97
+ };
98
+ operation: "create2";
99
+ })[] | undefined;
58
100
  }, {
59
101
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
60
- index?: number | undefined;
61
102
  value?: any;
62
- operations?: {
63
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
103
+ index?: number | undefined;
104
+ operations?: ({
105
+ operation: string;
64
106
  value?: any;
65
- }[] | undefined;
107
+ } | {
108
+ value: {
109
+ deployerAddress: string;
110
+ bytecodeHash: string;
111
+ };
112
+ operation: "create2";
113
+ })[] | undefined;
66
114
  }>;
67
115
  }, "strip", z.ZodTypeAny, {
68
116
  conditionType: "json";
117
+ data: string;
69
118
  returnValueTest: {
70
119
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
71
- index?: number | undefined;
72
120
  value?: any;
73
- operations?: {
74
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
121
+ index?: number | undefined;
122
+ operations?: ({
123
+ operation: string;
75
124
  value?: any;
76
- }[] | undefined;
125
+ } | {
126
+ value: {
127
+ deployerAddress: string;
128
+ bytecodeHash: string;
129
+ };
130
+ operation: "create2";
131
+ })[] | undefined;
77
132
  };
78
- data: string;
79
133
  query?: string | undefined;
80
134
  }, {
135
+ data: string;
81
136
  returnValueTest: {
82
137
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
83
- index?: number | undefined;
84
138
  value?: any;
85
- operations?: {
86
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
139
+ index?: number | undefined;
140
+ operations?: ({
141
+ operation: string;
87
142
  value?: any;
88
- }[] | undefined;
143
+ } | {
144
+ value: {
145
+ deployerAddress: string;
146
+ bytecodeHash: string;
147
+ };
148
+ operation: "create2";
149
+ })[] | undefined;
89
150
  };
90
- data: string;
91
151
  conditionType?: "json" | undefined;
92
152
  query?: string | undefined;
93
153
  }>;
@@ -2,122 +2,218 @@ import { z } from 'zod';
2
2
  export declare const returnValueTestSchema: z.ZodEffects<z.ZodObject<{
3
3
  index: z.ZodOptional<z.ZodNumber>;
4
4
  comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
5
- operations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
6
- 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"]>;
5
+ operations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObject<{} & {
6
+ operation: z.ZodEnum<[string, ...string[]]>;
7
7
  value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
9
+ operation: string;
10
10
  value?: any;
11
11
  }, {
12
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
12
+ operation: string;
13
13
  value?: any;
14
14
  }>, {
15
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
15
+ operation: string;
16
16
  value?: any;
17
17
  }, {
18
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
18
+ operation: string;
19
19
  value?: any;
20
20
  }>, {
21
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
21
+ operation: string;
22
22
  value?: any;
23
23
  }, {
24
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
25
- value?: any;
26
- }>, "many">>;
24
+ operation: string;
25
+ value?: any;
26
+ }>, z.ZodObject<{} & {
27
+ operation: z.ZodLiteral<"create2">;
28
+ value: z.ZodObject<{
29
+ deployerAddress: z.ZodUnion<[z.ZodString, z.ZodString]>;
30
+ bytecodeHash: z.ZodUnion<[z.ZodString, z.ZodString]>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ deployerAddress: string;
33
+ bytecodeHash: string;
34
+ }, {
35
+ deployerAddress: string;
36
+ bytecodeHash: string;
37
+ }>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ value: {
40
+ deployerAddress: string;
41
+ bytecodeHash: string;
42
+ };
43
+ operation: "create2";
44
+ }, {
45
+ value: {
46
+ deployerAddress: string;
47
+ bytecodeHash: string;
48
+ };
49
+ operation: "create2";
50
+ }>]>, "many">>;
27
51
  } & {
28
52
  value: z.ZodType<any, z.ZodTypeDef, any>;
29
53
  }, "strip", z.ZodTypeAny, {
30
54
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
31
- index?: number | undefined;
32
55
  value?: any;
33
- operations?: {
34
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
35
- value?: any;
36
- }[] | undefined;
56
+ index?: number | undefined;
57
+ operations?: ({
58
+ operation: string;
59
+ value?: any;
60
+ } | {
61
+ value: {
62
+ deployerAddress: string;
63
+ bytecodeHash: string;
64
+ };
65
+ operation: "create2";
66
+ })[] | undefined;
37
67
  }, {
38
68
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
39
- index?: number | undefined;
40
69
  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";
43
- value?: any;
44
- }[] | undefined;
70
+ index?: number | undefined;
71
+ operations?: ({
72
+ operation: string;
73
+ value?: any;
74
+ } | {
75
+ value: {
76
+ deployerAddress: string;
77
+ bytecodeHash: string;
78
+ };
79
+ operation: "create2";
80
+ })[] | undefined;
45
81
  }>, {
46
82
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
47
- index?: number | undefined;
48
83
  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";
51
- value?: any;
52
- }[] | undefined;
84
+ index?: number | undefined;
85
+ operations?: ({
86
+ operation: string;
87
+ value?: any;
88
+ } | {
89
+ value: {
90
+ deployerAddress: string;
91
+ bytecodeHash: string;
92
+ };
93
+ operation: "create2";
94
+ })[] | undefined;
53
95
  }, {
54
96
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
55
- index?: number | undefined;
56
97
  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";
59
- value?: any;
60
- }[] | undefined;
98
+ index?: number | undefined;
99
+ operations?: ({
100
+ operation: string;
101
+ value?: any;
102
+ } | {
103
+ value: {
104
+ deployerAddress: string;
105
+ bytecodeHash: string;
106
+ };
107
+ operation: "create2";
108
+ })[] | undefined;
61
109
  }>;
62
110
  export declare const blockchainReturnValueTestSchema: z.ZodEffects<z.ZodObject<{
63
111
  index: z.ZodOptional<z.ZodNumber>;
64
112
  comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
65
- operations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
66
- 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"]>;
113
+ operations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObject<{} & {
114
+ operation: z.ZodEnum<[string, ...string[]]>;
67
115
  value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
68
116
  }, "strip", z.ZodTypeAny, {
69
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
117
+ operation: string;
70
118
  value?: any;
71
119
  }, {
72
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
120
+ operation: string;
73
121
  value?: any;
74
122
  }>, {
75
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
123
+ operation: string;
76
124
  value?: any;
77
125
  }, {
78
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
126
+ operation: string;
79
127
  value?: any;
80
128
  }>, {
81
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
129
+ operation: string;
82
130
  value?: any;
83
131
  }, {
84
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
85
- value?: any;
86
- }>, "many">>;
132
+ operation: string;
133
+ value?: any;
134
+ }>, z.ZodObject<{} & {
135
+ operation: z.ZodLiteral<"create2">;
136
+ value: z.ZodObject<{
137
+ deployerAddress: z.ZodUnion<[z.ZodString, z.ZodString]>;
138
+ bytecodeHash: z.ZodUnion<[z.ZodString, z.ZodString]>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ deployerAddress: string;
141
+ bytecodeHash: string;
142
+ }, {
143
+ deployerAddress: string;
144
+ bytecodeHash: string;
145
+ }>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ value: {
148
+ deployerAddress: string;
149
+ bytecodeHash: string;
150
+ };
151
+ operation: "create2";
152
+ }, {
153
+ value: {
154
+ deployerAddress: string;
155
+ bytecodeHash: string;
156
+ };
157
+ operation: "create2";
158
+ }>]>, "many">>;
87
159
  } & {
88
160
  value: z.ZodType<any, z.ZodTypeDef, any>;
89
161
  }, "strip", z.ZodTypeAny, {
90
162
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
91
- index?: number | undefined;
92
163
  value?: any;
93
- operations?: {
94
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
95
- value?: any;
96
- }[] | undefined;
164
+ index?: number | undefined;
165
+ operations?: ({
166
+ operation: string;
167
+ value?: any;
168
+ } | {
169
+ value: {
170
+ deployerAddress: string;
171
+ bytecodeHash: string;
172
+ };
173
+ operation: "create2";
174
+ })[] | undefined;
97
175
  }, {
98
176
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
99
- index?: number | undefined;
100
177
  value?: any;
101
- operations?: {
102
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
103
- value?: any;
104
- }[] | undefined;
178
+ index?: number | undefined;
179
+ operations?: ({
180
+ operation: string;
181
+ value?: any;
182
+ } | {
183
+ value: {
184
+ deployerAddress: string;
185
+ bytecodeHash: string;
186
+ };
187
+ operation: "create2";
188
+ })[] | undefined;
105
189
  }>, {
106
190
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
107
- index?: number | undefined;
108
191
  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";
111
- value?: any;
112
- }[] | undefined;
192
+ index?: number | undefined;
193
+ operations?: ({
194
+ operation: string;
195
+ value?: any;
196
+ } | {
197
+ value: {
198
+ deployerAddress: string;
199
+ bytecodeHash: string;
200
+ };
201
+ operation: "create2";
202
+ })[] | undefined;
113
203
  }, {
114
204
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
115
- index?: number | undefined;
116
205
  value?: any;
117
- operations?: {
118
- operation: "+=" | "-=" | "*=" | "/=" | "%=" | "toTokenBaseUnits" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "float" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
119
- value?: any;
120
- }[] | undefined;
206
+ index?: number | undefined;
207
+ operations?: ({
208
+ operation: string;
209
+ value?: any;
210
+ } | {
211
+ value: {
212
+ deployerAddress: string;
213
+ bytecodeHash: string;
214
+ };
215
+ operation: "create2";
216
+ })[] | undefined;
121
217
  }>;
122
218
  export type ReturnValueTestProps = z.infer<typeof returnValueTestSchema>;
123
219
  export type BlockchainReturnValueTestProps = z.infer<typeof blockchainReturnValueTestSchema>;