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