@coti-io/coti-contracts 1.0.9 → 1.1.0

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 (35) hide show
  1. package/contracts/mocks/utils/mpc/Arithmetic128BitTestsContract.sol +260 -0
  2. package/contracts/mocks/utils/mpc/Arithmetic256BitTestsContract.sol +264 -0
  3. package/contracts/mocks/utils/mpc/Bitwise128BitTestsContract.sol +91 -0
  4. package/contracts/mocks/utils/mpc/Bitwise256BitTestsContract.sol +91 -0
  5. package/contracts/mocks/utils/mpc/Comparison128BitTestsContract.sol +158 -0
  6. package/contracts/mocks/utils/mpc/Comparison256BitTestsContract.sol +158 -0
  7. package/contracts/mocks/utils/mpc/Miscellaneous128BitTestsContract.sol +185 -0
  8. package/contracts/mocks/utils/mpc/Miscellaneous256BitTestsContract.sol +190 -0
  9. package/contracts/utils/mpc/MpcCore.sol +2804 -180
  10. package/package.json +1 -1
  11. package/test/token/PrivateERC20/PrivateERC20.test.ts +3 -3
  12. package/test/utils/mpc/Unsigned128BitIntegers.test.ts +945 -0
  13. package/test/utils/mpc/Unsigned256BitIntegers.test.ts +1124 -0
  14. package/test/utils/mpc/helpers.ts +77 -0
  15. package/typechain-types/contracts/mocks/utils/mpc/Arithmetic128BitTestsContract.ts +341 -0
  16. package/typechain-types/contracts/mocks/utils/mpc/Arithmetic256BitTestsContract.ts +347 -0
  17. package/typechain-types/contracts/mocks/utils/mpc/Bitwise128BitTestsContract.ts +186 -0
  18. package/typechain-types/contracts/mocks/utils/mpc/Bitwise256BitTestsContract.ts +186 -0
  19. package/typechain-types/contracts/mocks/utils/mpc/Comparison128BitTestsContract.ts +260 -0
  20. package/typechain-types/contracts/mocks/utils/mpc/Comparison256BitTestsContract.ts +260 -0
  21. package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous128BitTestsContract.ts +302 -0
  22. package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous256BitTestsContract.ts +322 -0
  23. package/typechain-types/contracts/mocks/utils/mpc/index.ts +8 -0
  24. package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic128BitTestsContract__factory.ts +349 -0
  25. package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic256BitTestsContract__factory.ts +364 -0
  26. package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise128BitTestsContract__factory.ts +182 -0
  27. package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise256BitTestsContract__factory.ts +182 -0
  28. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison128BitTestsContract__factory.ts +255 -0
  29. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison256BitTestsContract__factory.ts +255 -0
  30. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous128BitTestsContract__factory.ts +332 -0
  31. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous256BitTestsContract__factory.ts +380 -0
  32. package/typechain-types/factories/contracts/mocks/utils/mpc/index.ts +8 -0
  33. package/typechain-types/hardhat.d.ts +144 -0
  34. package/typechain-types/index.ts +16 -0
  35. package/contracts/package.json +0 -11
@@ -0,0 +1,347 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumberish,
7
+ BytesLike,
8
+ FunctionFragment,
9
+ Result,
10
+ Interface,
11
+ ContractRunner,
12
+ ContractMethod,
13
+ Listener,
14
+ } from "ethers";
15
+ import type {
16
+ TypedContractEvent,
17
+ TypedDeferredTopicFilter,
18
+ TypedEventLog,
19
+ TypedListener,
20
+ TypedContractMethod,
21
+ } from "../../../../common";
22
+
23
+ export interface Arithmetic256BitTestsContractInterface extends Interface {
24
+ getFunction(
25
+ nameOrSignature:
26
+ | "addTest"
27
+ | "checkedAddTest"
28
+ | "checkedAddWithOverflowBitTest"
29
+ | "checkedMulTest"
30
+ | "checkedMulWithOverflowBitTest"
31
+ | "checkedSubTest"
32
+ | "checkedSubWithOverflowBitTest"
33
+ | "mulTest"
34
+ | "numbers2"
35
+ | "numbersLHS2"
36
+ | "numbersRHS2"
37
+ | "overflows"
38
+ | "overflowsLHS"
39
+ | "overflowsRHS"
40
+ | "subTest"
41
+ ): FunctionFragment;
42
+
43
+ encodeFunctionData(
44
+ functionFragment: "addTest",
45
+ values: [BigNumberish[], BigNumberish[]]
46
+ ): string;
47
+ encodeFunctionData(
48
+ functionFragment: "checkedAddTest",
49
+ values: [BigNumberish, BigNumberish]
50
+ ): string;
51
+ encodeFunctionData(
52
+ functionFragment: "checkedAddWithOverflowBitTest",
53
+ values: [BigNumberish[], BigNumberish[]]
54
+ ): string;
55
+ encodeFunctionData(
56
+ functionFragment: "checkedMulTest",
57
+ values: [BigNumberish, BigNumberish, BigNumberish]
58
+ ): string;
59
+ encodeFunctionData(
60
+ functionFragment: "checkedMulWithOverflowBitTest",
61
+ values: [BigNumberish[], BigNumberish[], BigNumberish]
62
+ ): string;
63
+ encodeFunctionData(
64
+ functionFragment: "checkedSubTest",
65
+ values: [BigNumberish, BigNumberish]
66
+ ): string;
67
+ encodeFunctionData(
68
+ functionFragment: "checkedSubWithOverflowBitTest",
69
+ values: [BigNumberish[], BigNumberish[]]
70
+ ): string;
71
+ encodeFunctionData(
72
+ functionFragment: "mulTest",
73
+ values: [BigNumberish[], BigNumberish[], BigNumberish]
74
+ ): string;
75
+ encodeFunctionData(
76
+ functionFragment: "numbers2",
77
+ values: [BigNumberish]
78
+ ): string;
79
+ encodeFunctionData(
80
+ functionFragment: "numbersLHS2",
81
+ values: [BigNumberish]
82
+ ): string;
83
+ encodeFunctionData(
84
+ functionFragment: "numbersRHS2",
85
+ values: [BigNumberish]
86
+ ): string;
87
+ encodeFunctionData(
88
+ functionFragment: "overflows",
89
+ values: [BigNumberish]
90
+ ): string;
91
+ encodeFunctionData(
92
+ functionFragment: "overflowsLHS",
93
+ values: [BigNumberish]
94
+ ): string;
95
+ encodeFunctionData(
96
+ functionFragment: "overflowsRHS",
97
+ values: [BigNumberish]
98
+ ): string;
99
+ encodeFunctionData(
100
+ functionFragment: "subTest",
101
+ values: [BigNumberish[], BigNumberish[]]
102
+ ): string;
103
+
104
+ decodeFunctionResult(functionFragment: "addTest", data: BytesLike): Result;
105
+ decodeFunctionResult(
106
+ functionFragment: "checkedAddTest",
107
+ data: BytesLike
108
+ ): Result;
109
+ decodeFunctionResult(
110
+ functionFragment: "checkedAddWithOverflowBitTest",
111
+ data: BytesLike
112
+ ): Result;
113
+ decodeFunctionResult(
114
+ functionFragment: "checkedMulTest",
115
+ data: BytesLike
116
+ ): Result;
117
+ decodeFunctionResult(
118
+ functionFragment: "checkedMulWithOverflowBitTest",
119
+ data: BytesLike
120
+ ): Result;
121
+ decodeFunctionResult(
122
+ functionFragment: "checkedSubTest",
123
+ data: BytesLike
124
+ ): Result;
125
+ decodeFunctionResult(
126
+ functionFragment: "checkedSubWithOverflowBitTest",
127
+ data: BytesLike
128
+ ): Result;
129
+ decodeFunctionResult(functionFragment: "mulTest", data: BytesLike): Result;
130
+ decodeFunctionResult(functionFragment: "numbers2", data: BytesLike): Result;
131
+ decodeFunctionResult(
132
+ functionFragment: "numbersLHS2",
133
+ data: BytesLike
134
+ ): Result;
135
+ decodeFunctionResult(
136
+ functionFragment: "numbersRHS2",
137
+ data: BytesLike
138
+ ): Result;
139
+ decodeFunctionResult(functionFragment: "overflows", data: BytesLike): Result;
140
+ decodeFunctionResult(
141
+ functionFragment: "overflowsLHS",
142
+ data: BytesLike
143
+ ): Result;
144
+ decodeFunctionResult(
145
+ functionFragment: "overflowsRHS",
146
+ data: BytesLike
147
+ ): Result;
148
+ decodeFunctionResult(functionFragment: "subTest", data: BytesLike): Result;
149
+ }
150
+
151
+ export interface Arithmetic256BitTestsContract extends BaseContract {
152
+ connect(runner?: ContractRunner | null): Arithmetic256BitTestsContract;
153
+ waitForDeployment(): Promise<this>;
154
+
155
+ interface: Arithmetic256BitTestsContractInterface;
156
+
157
+ queryFilter<TCEvent extends TypedContractEvent>(
158
+ event: TCEvent,
159
+ fromBlockOrBlockhash?: string | number | undefined,
160
+ toBlock?: string | number | undefined
161
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
162
+ queryFilter<TCEvent extends TypedContractEvent>(
163
+ filter: TypedDeferredTopicFilter<TCEvent>,
164
+ fromBlockOrBlockhash?: string | number | undefined,
165
+ toBlock?: string | number | undefined
166
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
167
+
168
+ on<TCEvent extends TypedContractEvent>(
169
+ event: TCEvent,
170
+ listener: TypedListener<TCEvent>
171
+ ): Promise<this>;
172
+ on<TCEvent extends TypedContractEvent>(
173
+ filter: TypedDeferredTopicFilter<TCEvent>,
174
+ listener: TypedListener<TCEvent>
175
+ ): Promise<this>;
176
+
177
+ once<TCEvent extends TypedContractEvent>(
178
+ event: TCEvent,
179
+ listener: TypedListener<TCEvent>
180
+ ): Promise<this>;
181
+ once<TCEvent extends TypedContractEvent>(
182
+ filter: TypedDeferredTopicFilter<TCEvent>,
183
+ listener: TypedListener<TCEvent>
184
+ ): Promise<this>;
185
+
186
+ listeners<TCEvent extends TypedContractEvent>(
187
+ event: TCEvent
188
+ ): Promise<Array<TypedListener<TCEvent>>>;
189
+ listeners(eventName?: string): Promise<Array<Listener>>;
190
+ removeAllListeners<TCEvent extends TypedContractEvent>(
191
+ event?: TCEvent
192
+ ): Promise<this>;
193
+
194
+ addTest: TypedContractMethod<
195
+ [a: BigNumberish[], b: BigNumberish[]],
196
+ [void],
197
+ "nonpayable"
198
+ >;
199
+
200
+ checkedAddTest: TypedContractMethod<
201
+ [a: BigNumberish, b: BigNumberish],
202
+ [void],
203
+ "nonpayable"
204
+ >;
205
+
206
+ checkedAddWithOverflowBitTest: TypedContractMethod<
207
+ [a: BigNumberish[], b: BigNumberish[]],
208
+ [void],
209
+ "nonpayable"
210
+ >;
211
+
212
+ checkedMulTest: TypedContractMethod<
213
+ [a: BigNumberish, b: BigNumberish, privateInput: BigNumberish],
214
+ [void],
215
+ "nonpayable"
216
+ >;
217
+
218
+ checkedMulWithOverflowBitTest: TypedContractMethod<
219
+ [a: BigNumberish[], b: BigNumberish[], privateInput: BigNumberish],
220
+ [void],
221
+ "nonpayable"
222
+ >;
223
+
224
+ checkedSubTest: TypedContractMethod<
225
+ [a: BigNumberish, b: BigNumberish],
226
+ [void],
227
+ "nonpayable"
228
+ >;
229
+
230
+ checkedSubWithOverflowBitTest: TypedContractMethod<
231
+ [a: BigNumberish[], b: BigNumberish[]],
232
+ [void],
233
+ "nonpayable"
234
+ >;
235
+
236
+ mulTest: TypedContractMethod<
237
+ [a: BigNumberish[], b: BigNumberish[], privateInput: BigNumberish],
238
+ [void],
239
+ "nonpayable"
240
+ >;
241
+
242
+ numbers2: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
243
+
244
+ numbersLHS2: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
245
+
246
+ numbersRHS2: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
247
+
248
+ overflows: TypedContractMethod<[arg0: BigNumberish], [boolean], "view">;
249
+
250
+ overflowsLHS: TypedContractMethod<[arg0: BigNumberish], [boolean], "view">;
251
+
252
+ overflowsRHS: TypedContractMethod<[arg0: BigNumberish], [boolean], "view">;
253
+
254
+ subTest: TypedContractMethod<
255
+ [a: BigNumberish[], b: BigNumberish[]],
256
+ [void],
257
+ "nonpayable"
258
+ >;
259
+
260
+ getFunction<T extends ContractMethod = ContractMethod>(
261
+ key: string | FunctionFragment
262
+ ): T;
263
+
264
+ getFunction(
265
+ nameOrSignature: "addTest"
266
+ ): TypedContractMethod<
267
+ [a: BigNumberish[], b: BigNumberish[]],
268
+ [void],
269
+ "nonpayable"
270
+ >;
271
+ getFunction(
272
+ nameOrSignature: "checkedAddTest"
273
+ ): TypedContractMethod<
274
+ [a: BigNumberish, b: BigNumberish],
275
+ [void],
276
+ "nonpayable"
277
+ >;
278
+ getFunction(
279
+ nameOrSignature: "checkedAddWithOverflowBitTest"
280
+ ): TypedContractMethod<
281
+ [a: BigNumberish[], b: BigNumberish[]],
282
+ [void],
283
+ "nonpayable"
284
+ >;
285
+ getFunction(
286
+ nameOrSignature: "checkedMulTest"
287
+ ): TypedContractMethod<
288
+ [a: BigNumberish, b: BigNumberish, privateInput: BigNumberish],
289
+ [void],
290
+ "nonpayable"
291
+ >;
292
+ getFunction(
293
+ nameOrSignature: "checkedMulWithOverflowBitTest"
294
+ ): TypedContractMethod<
295
+ [a: BigNumberish[], b: BigNumberish[], privateInput: BigNumberish],
296
+ [void],
297
+ "nonpayable"
298
+ >;
299
+ getFunction(
300
+ nameOrSignature: "checkedSubTest"
301
+ ): TypedContractMethod<
302
+ [a: BigNumberish, b: BigNumberish],
303
+ [void],
304
+ "nonpayable"
305
+ >;
306
+ getFunction(
307
+ nameOrSignature: "checkedSubWithOverflowBitTest"
308
+ ): TypedContractMethod<
309
+ [a: BigNumberish[], b: BigNumberish[]],
310
+ [void],
311
+ "nonpayable"
312
+ >;
313
+ getFunction(
314
+ nameOrSignature: "mulTest"
315
+ ): TypedContractMethod<
316
+ [a: BigNumberish[], b: BigNumberish[], privateInput: BigNumberish],
317
+ [void],
318
+ "nonpayable"
319
+ >;
320
+ getFunction(
321
+ nameOrSignature: "numbers2"
322
+ ): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
323
+ getFunction(
324
+ nameOrSignature: "numbersLHS2"
325
+ ): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
326
+ getFunction(
327
+ nameOrSignature: "numbersRHS2"
328
+ ): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
329
+ getFunction(
330
+ nameOrSignature: "overflows"
331
+ ): TypedContractMethod<[arg0: BigNumberish], [boolean], "view">;
332
+ getFunction(
333
+ nameOrSignature: "overflowsLHS"
334
+ ): TypedContractMethod<[arg0: BigNumberish], [boolean], "view">;
335
+ getFunction(
336
+ nameOrSignature: "overflowsRHS"
337
+ ): TypedContractMethod<[arg0: BigNumberish], [boolean], "view">;
338
+ getFunction(
339
+ nameOrSignature: "subTest"
340
+ ): TypedContractMethod<
341
+ [a: BigNumberish[], b: BigNumberish[]],
342
+ [void],
343
+ "nonpayable"
344
+ >;
345
+
346
+ filters: {};
347
+ }
@@ -0,0 +1,186 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumberish,
7
+ BytesLike,
8
+ FunctionFragment,
9
+ Result,
10
+ Interface,
11
+ ContractRunner,
12
+ ContractMethod,
13
+ Listener,
14
+ } from "ethers";
15
+ import type {
16
+ TypedContractEvent,
17
+ TypedDeferredTopicFilter,
18
+ TypedEventLog,
19
+ TypedListener,
20
+ TypedContractMethod,
21
+ } from "../../../../common";
22
+
23
+ export interface Bitwise128BitTestsContractInterface extends Interface {
24
+ getFunction(
25
+ nameOrSignature:
26
+ | "andTest"
27
+ | "numbers"
28
+ | "orTest"
29
+ | "shlTest"
30
+ | "shrTest"
31
+ | "xorTest"
32
+ ): FunctionFragment;
33
+
34
+ encodeFunctionData(
35
+ functionFragment: "andTest",
36
+ values: [BigNumberish[], BigNumberish[]]
37
+ ): string;
38
+ encodeFunctionData(
39
+ functionFragment: "numbers",
40
+ values: [BigNumberish]
41
+ ): string;
42
+ encodeFunctionData(
43
+ functionFragment: "orTest",
44
+ values: [BigNumberish[], BigNumberish[]]
45
+ ): string;
46
+ encodeFunctionData(
47
+ functionFragment: "shlTest",
48
+ values: [BigNumberish[], BigNumberish[]]
49
+ ): string;
50
+ encodeFunctionData(
51
+ functionFragment: "shrTest",
52
+ values: [BigNumberish[], BigNumberish[]]
53
+ ): string;
54
+ encodeFunctionData(
55
+ functionFragment: "xorTest",
56
+ values: [BigNumberish[], BigNumberish[]]
57
+ ): string;
58
+
59
+ decodeFunctionResult(functionFragment: "andTest", data: BytesLike): Result;
60
+ decodeFunctionResult(functionFragment: "numbers", data: BytesLike): Result;
61
+ decodeFunctionResult(functionFragment: "orTest", data: BytesLike): Result;
62
+ decodeFunctionResult(functionFragment: "shlTest", data: BytesLike): Result;
63
+ decodeFunctionResult(functionFragment: "shrTest", data: BytesLike): Result;
64
+ decodeFunctionResult(functionFragment: "xorTest", data: BytesLike): Result;
65
+ }
66
+
67
+ export interface Bitwise128BitTestsContract extends BaseContract {
68
+ connect(runner?: ContractRunner | null): Bitwise128BitTestsContract;
69
+ waitForDeployment(): Promise<this>;
70
+
71
+ interface: Bitwise128BitTestsContractInterface;
72
+
73
+ queryFilter<TCEvent extends TypedContractEvent>(
74
+ event: TCEvent,
75
+ fromBlockOrBlockhash?: string | number | undefined,
76
+ toBlock?: string | number | undefined
77
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
78
+ queryFilter<TCEvent extends TypedContractEvent>(
79
+ filter: TypedDeferredTopicFilter<TCEvent>,
80
+ fromBlockOrBlockhash?: string | number | undefined,
81
+ toBlock?: string | number | undefined
82
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
83
+
84
+ on<TCEvent extends TypedContractEvent>(
85
+ event: TCEvent,
86
+ listener: TypedListener<TCEvent>
87
+ ): Promise<this>;
88
+ on<TCEvent extends TypedContractEvent>(
89
+ filter: TypedDeferredTopicFilter<TCEvent>,
90
+ listener: TypedListener<TCEvent>
91
+ ): Promise<this>;
92
+
93
+ once<TCEvent extends TypedContractEvent>(
94
+ event: TCEvent,
95
+ listener: TypedListener<TCEvent>
96
+ ): Promise<this>;
97
+ once<TCEvent extends TypedContractEvent>(
98
+ filter: TypedDeferredTopicFilter<TCEvent>,
99
+ listener: TypedListener<TCEvent>
100
+ ): Promise<this>;
101
+
102
+ listeners<TCEvent extends TypedContractEvent>(
103
+ event: TCEvent
104
+ ): Promise<Array<TypedListener<TCEvent>>>;
105
+ listeners(eventName?: string): Promise<Array<Listener>>;
106
+ removeAllListeners<TCEvent extends TypedContractEvent>(
107
+ event?: TCEvent
108
+ ): Promise<this>;
109
+
110
+ andTest: TypedContractMethod<
111
+ [a: BigNumberish[], b: BigNumberish[]],
112
+ [void],
113
+ "nonpayable"
114
+ >;
115
+
116
+ numbers: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
117
+
118
+ orTest: TypedContractMethod<
119
+ [a: BigNumberish[], b: BigNumberish[]],
120
+ [void],
121
+ "nonpayable"
122
+ >;
123
+
124
+ shlTest: TypedContractMethod<
125
+ [a: BigNumberish[], b: BigNumberish[]],
126
+ [void],
127
+ "nonpayable"
128
+ >;
129
+
130
+ shrTest: TypedContractMethod<
131
+ [a: BigNumberish[], b: BigNumberish[]],
132
+ [void],
133
+ "nonpayable"
134
+ >;
135
+
136
+ xorTest: TypedContractMethod<
137
+ [a: BigNumberish[], b: BigNumberish[]],
138
+ [void],
139
+ "nonpayable"
140
+ >;
141
+
142
+ getFunction<T extends ContractMethod = ContractMethod>(
143
+ key: string | FunctionFragment
144
+ ): T;
145
+
146
+ getFunction(
147
+ nameOrSignature: "andTest"
148
+ ): TypedContractMethod<
149
+ [a: BigNumberish[], b: BigNumberish[]],
150
+ [void],
151
+ "nonpayable"
152
+ >;
153
+ getFunction(
154
+ nameOrSignature: "numbers"
155
+ ): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
156
+ getFunction(
157
+ nameOrSignature: "orTest"
158
+ ): TypedContractMethod<
159
+ [a: BigNumberish[], b: BigNumberish[]],
160
+ [void],
161
+ "nonpayable"
162
+ >;
163
+ getFunction(
164
+ nameOrSignature: "shlTest"
165
+ ): TypedContractMethod<
166
+ [a: BigNumberish[], b: BigNumberish[]],
167
+ [void],
168
+ "nonpayable"
169
+ >;
170
+ getFunction(
171
+ nameOrSignature: "shrTest"
172
+ ): TypedContractMethod<
173
+ [a: BigNumberish[], b: BigNumberish[]],
174
+ [void],
175
+ "nonpayable"
176
+ >;
177
+ getFunction(
178
+ nameOrSignature: "xorTest"
179
+ ): TypedContractMethod<
180
+ [a: BigNumberish[], b: BigNumberish[]],
181
+ [void],
182
+ "nonpayable"
183
+ >;
184
+
185
+ filters: {};
186
+ }
@@ -0,0 +1,186 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumberish,
7
+ BytesLike,
8
+ FunctionFragment,
9
+ Result,
10
+ Interface,
11
+ ContractRunner,
12
+ ContractMethod,
13
+ Listener,
14
+ } from "ethers";
15
+ import type {
16
+ TypedContractEvent,
17
+ TypedDeferredTopicFilter,
18
+ TypedEventLog,
19
+ TypedListener,
20
+ TypedContractMethod,
21
+ } from "../../../../common";
22
+
23
+ export interface Bitwise256BitTestsContractInterface extends Interface {
24
+ getFunction(
25
+ nameOrSignature:
26
+ | "andTest"
27
+ | "numbers2"
28
+ | "orTest"
29
+ | "shlTest"
30
+ | "shrTest"
31
+ | "xorTest"
32
+ ): FunctionFragment;
33
+
34
+ encodeFunctionData(
35
+ functionFragment: "andTest",
36
+ values: [BigNumberish[], BigNumberish[]]
37
+ ): string;
38
+ encodeFunctionData(
39
+ functionFragment: "numbers2",
40
+ values: [BigNumberish]
41
+ ): string;
42
+ encodeFunctionData(
43
+ functionFragment: "orTest",
44
+ values: [BigNumberish[], BigNumberish[]]
45
+ ): string;
46
+ encodeFunctionData(
47
+ functionFragment: "shlTest",
48
+ values: [BigNumberish[], BigNumberish[]]
49
+ ): string;
50
+ encodeFunctionData(
51
+ functionFragment: "shrTest",
52
+ values: [BigNumberish[], BigNumberish[]]
53
+ ): string;
54
+ encodeFunctionData(
55
+ functionFragment: "xorTest",
56
+ values: [BigNumberish[], BigNumberish[]]
57
+ ): string;
58
+
59
+ decodeFunctionResult(functionFragment: "andTest", data: BytesLike): Result;
60
+ decodeFunctionResult(functionFragment: "numbers2", data: BytesLike): Result;
61
+ decodeFunctionResult(functionFragment: "orTest", data: BytesLike): Result;
62
+ decodeFunctionResult(functionFragment: "shlTest", data: BytesLike): Result;
63
+ decodeFunctionResult(functionFragment: "shrTest", data: BytesLike): Result;
64
+ decodeFunctionResult(functionFragment: "xorTest", data: BytesLike): Result;
65
+ }
66
+
67
+ export interface Bitwise256BitTestsContract extends BaseContract {
68
+ connect(runner?: ContractRunner | null): Bitwise256BitTestsContract;
69
+ waitForDeployment(): Promise<this>;
70
+
71
+ interface: Bitwise256BitTestsContractInterface;
72
+
73
+ queryFilter<TCEvent extends TypedContractEvent>(
74
+ event: TCEvent,
75
+ fromBlockOrBlockhash?: string | number | undefined,
76
+ toBlock?: string | number | undefined
77
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
78
+ queryFilter<TCEvent extends TypedContractEvent>(
79
+ filter: TypedDeferredTopicFilter<TCEvent>,
80
+ fromBlockOrBlockhash?: string | number | undefined,
81
+ toBlock?: string | number | undefined
82
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
83
+
84
+ on<TCEvent extends TypedContractEvent>(
85
+ event: TCEvent,
86
+ listener: TypedListener<TCEvent>
87
+ ): Promise<this>;
88
+ on<TCEvent extends TypedContractEvent>(
89
+ filter: TypedDeferredTopicFilter<TCEvent>,
90
+ listener: TypedListener<TCEvent>
91
+ ): Promise<this>;
92
+
93
+ once<TCEvent extends TypedContractEvent>(
94
+ event: TCEvent,
95
+ listener: TypedListener<TCEvent>
96
+ ): Promise<this>;
97
+ once<TCEvent extends TypedContractEvent>(
98
+ filter: TypedDeferredTopicFilter<TCEvent>,
99
+ listener: TypedListener<TCEvent>
100
+ ): Promise<this>;
101
+
102
+ listeners<TCEvent extends TypedContractEvent>(
103
+ event: TCEvent
104
+ ): Promise<Array<TypedListener<TCEvent>>>;
105
+ listeners(eventName?: string): Promise<Array<Listener>>;
106
+ removeAllListeners<TCEvent extends TypedContractEvent>(
107
+ event?: TCEvent
108
+ ): Promise<this>;
109
+
110
+ andTest: TypedContractMethod<
111
+ [a: BigNumberish[], b: BigNumberish[]],
112
+ [void],
113
+ "nonpayable"
114
+ >;
115
+
116
+ numbers2: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
117
+
118
+ orTest: TypedContractMethod<
119
+ [a: BigNumberish[], b: BigNumberish[]],
120
+ [void],
121
+ "nonpayable"
122
+ >;
123
+
124
+ shlTest: TypedContractMethod<
125
+ [a: BigNumberish[], b: BigNumberish[]],
126
+ [void],
127
+ "nonpayable"
128
+ >;
129
+
130
+ shrTest: TypedContractMethod<
131
+ [a: BigNumberish[], b: BigNumberish[]],
132
+ [void],
133
+ "nonpayable"
134
+ >;
135
+
136
+ xorTest: TypedContractMethod<
137
+ [a: BigNumberish[], b: BigNumberish[]],
138
+ [void],
139
+ "nonpayable"
140
+ >;
141
+
142
+ getFunction<T extends ContractMethod = ContractMethod>(
143
+ key: string | FunctionFragment
144
+ ): T;
145
+
146
+ getFunction(
147
+ nameOrSignature: "andTest"
148
+ ): TypedContractMethod<
149
+ [a: BigNumberish[], b: BigNumberish[]],
150
+ [void],
151
+ "nonpayable"
152
+ >;
153
+ getFunction(
154
+ nameOrSignature: "numbers2"
155
+ ): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
156
+ getFunction(
157
+ nameOrSignature: "orTest"
158
+ ): TypedContractMethod<
159
+ [a: BigNumberish[], b: BigNumberish[]],
160
+ [void],
161
+ "nonpayable"
162
+ >;
163
+ getFunction(
164
+ nameOrSignature: "shlTest"
165
+ ): TypedContractMethod<
166
+ [a: BigNumberish[], b: BigNumberish[]],
167
+ [void],
168
+ "nonpayable"
169
+ >;
170
+ getFunction(
171
+ nameOrSignature: "shrTest"
172
+ ): TypedContractMethod<
173
+ [a: BigNumberish[], b: BigNumberish[]],
174
+ [void],
175
+ "nonpayable"
176
+ >;
177
+ getFunction(
178
+ nameOrSignature: "xorTest"
179
+ ): TypedContractMethod<
180
+ [a: BigNumberish[], b: BigNumberish[]],
181
+ [void],
182
+ "nonpayable"
183
+ >;
184
+
185
+ filters: {};
186
+ }