@coti-io/coti-contracts 0.1.0 → 1.0.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.
- package/contracts/access/DataPrivacyFramework/extensions/DataPrivacyFrameworkMpc.sol +3 -115
- package/contracts/mocks/README.md +1 -1
- package/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol +105 -280
- package/contracts/mocks/utils/mpc/BitwiseTestsContract.sol +83 -187
- package/contracts/mocks/utils/mpc/{Comparison1Tests.Contract.sol → Comparison1TestsContract.sol} +67 -115
- package/contracts/mocks/utils/mpc/Comparison2TestsContract.sol +68 -116
- package/contracts/mocks/utils/mpc/MinMaxTestsContract.sol +69 -164
- package/contracts/mocks/utils/mpc/Miscellaneous1TestsContract.sol +70 -52
- package/contracts/mocks/utils/mpc/MiscellaneousTestsContract.sol +270 -0
- package/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract.sol +102 -0
- package/contracts/mocks/utils/mpc/README.md +12 -12
- package/contracts/mocks/utils/mpc/TransferScalarTestsContract.sol +54 -211
- package/contracts/mocks/utils/mpc/TransferTestsContract.sol +162 -640
- package/contracts/onboard/AccountOnboard.sol +3 -3
- package/contracts/utils/mpc/MpcCore.sol +2835 -988
- package/contracts/utils/mpc/MpcInterface.sol +6 -4
- package/hardhat.config.ts +8 -5
- package/package.json +2 -2
- package/test/utils/accounts.ts +1 -1
- package/test/utils/mpc/Precompile.test.ts +26 -37
- package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/ArithmeticTestsContract.ts +374 -0
- package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract.ts +374 -0
- package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/index.ts +5 -0
- package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.ts +30 -10
- package/typechain-types/contracts/mocks/utils/mpc/BitwiseTestsContract.ts +39 -5
- package/typechain-types/contracts/mocks/utils/mpc/Comparison1TestsContract.ts +374 -0
- package/typechain-types/contracts/mocks/utils/mpc/Comparison2TestsContract.ts +39 -5
- package/typechain-types/contracts/mocks/utils/mpc/MinMaxTestsContract.ts +25 -5
- package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous1TestsContract.ts +62 -0
- package/typechain-types/contracts/mocks/utils/mpc/MiscellaneousTestsContract.ts +396 -0
- package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract.ts +221 -0
- package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract.ts +11 -8
- package/typechain-types/contracts/mocks/utils/mpc/TransferScalarTestsContract.ts +15 -15
- package/typechain-types/contracts/mocks/utils/mpc/TransferTestsContract.ts +15 -15
- package/typechain-types/contracts/mocks/utils/mpc/index.ts +3 -6
- package/typechain-types/contracts/onboard/AccountOnboard.ts +9 -4
- package/typechain-types/contracts/utils/mpc/MpcCore.ts +84 -0
- package/typechain-types/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations.ts +81 -40
- package/typechain-types/contracts/utils/mpc/index.ts +1 -0
- package/typechain-types/factories/contracts/mocks/access/DataPrivacyFramework/DataPrivacyFrameworkMock__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20Mock__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/token/PrivateERC721/PrivateERC721URIStorageMock__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/ArithmeticTestsContract__factory.ts +387 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract__factory.ts +388 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/index.ts +5 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract__factory.ts +20 -7
- package/typechain-types/factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory.ts +28 -2
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/Comparison1TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1TestsContract__factory.ts +387 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison2TestsContract__factory.ts +28 -2
- package/typechain-types/factories/contracts/mocks/utils/mpc/MinMaxTestsContract__factory.ts +15 -2
- package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous1TestsContract__factory.ts +66 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous2TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MiscellaneousTestsContract__factory.ts +424 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract__factory.ts +289 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract__factory.ts +19 -3
- package/typechain-types/factories/contracts/mocks/utils/mpc/ShiftTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/StringTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferScalarTestsContract__factory.ts +4 -4
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferTestsContract__factory.ts +4 -4
- package/typechain-types/factories/contracts/mocks/utils/mpc/index.ts +3 -4
- package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock__factory.ts +1 -1
- package/typechain-types/factories/contracts/onboard/AccountOnboard__factory.ts +8 -2
- package/typechain-types/factories/contracts/utils/mpc/MpcCore__factory.ts +77 -0
- package/typechain-types/factories/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations__factory.ts +124 -61
- package/typechain-types/factories/contracts/utils/mpc/index.ts +1 -0
- package/typechain-types/hardhat.d.ts +26 -26
- package/typechain-types/index.ts +8 -8
- package/contracts/mocks/utils/mpc/Miscellaneous2TestsContract.sol +0 -448
- package/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol +0 -81
- package/contracts/mocks/utils/mpc/ShiftTestsContract.sol +0 -311
|
@@ -0,0 +1,374 @@
|
|
|
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 declare namespace Comparison1TestsContract {
|
|
24
|
+
export type Check16Struct = {
|
|
25
|
+
res16_16: BigNumberish;
|
|
26
|
+
res8_16: BigNumberish;
|
|
27
|
+
res16_8: BigNumberish;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type Check16StructOutput = [
|
|
31
|
+
res16_16: bigint,
|
|
32
|
+
res8_16: bigint,
|
|
33
|
+
res16_8: bigint
|
|
34
|
+
] & { res16_16: bigint; res8_16: bigint; res16_8: bigint };
|
|
35
|
+
|
|
36
|
+
export type Check32Struct = {
|
|
37
|
+
res32_32: BigNumberish;
|
|
38
|
+
res8_32: BigNumberish;
|
|
39
|
+
res32_8: BigNumberish;
|
|
40
|
+
res16_32: BigNumberish;
|
|
41
|
+
res32_16: BigNumberish;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type Check32StructOutput = [
|
|
45
|
+
res32_32: bigint,
|
|
46
|
+
res8_32: bigint,
|
|
47
|
+
res32_8: bigint,
|
|
48
|
+
res16_32: bigint,
|
|
49
|
+
res32_16: bigint
|
|
50
|
+
] & {
|
|
51
|
+
res32_32: bigint;
|
|
52
|
+
res8_32: bigint;
|
|
53
|
+
res32_8: bigint;
|
|
54
|
+
res16_32: bigint;
|
|
55
|
+
res32_16: bigint;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export type Check64Struct = {
|
|
59
|
+
res64_64: BigNumberish;
|
|
60
|
+
res8_64: BigNumberish;
|
|
61
|
+
res64_8: BigNumberish;
|
|
62
|
+
res16_64: BigNumberish;
|
|
63
|
+
res64_16: BigNumberish;
|
|
64
|
+
res32_64: BigNumberish;
|
|
65
|
+
res64_32: BigNumberish;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export type Check64StructOutput = [
|
|
69
|
+
res64_64: bigint,
|
|
70
|
+
res8_64: bigint,
|
|
71
|
+
res64_8: bigint,
|
|
72
|
+
res16_64: bigint,
|
|
73
|
+
res64_16: bigint,
|
|
74
|
+
res32_64: bigint,
|
|
75
|
+
res64_32: bigint
|
|
76
|
+
] & {
|
|
77
|
+
res64_64: bigint;
|
|
78
|
+
res8_64: bigint;
|
|
79
|
+
res64_8: bigint;
|
|
80
|
+
res16_64: bigint;
|
|
81
|
+
res64_16: bigint;
|
|
82
|
+
res32_64: bigint;
|
|
83
|
+
res64_32: bigint;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export type AllGTCastingValuesStruct = {
|
|
87
|
+
a8_s: BigNumberish;
|
|
88
|
+
b8_s: BigNumberish;
|
|
89
|
+
a16_s: BigNumberish;
|
|
90
|
+
b16_s: BigNumberish;
|
|
91
|
+
a32_s: BigNumberish;
|
|
92
|
+
b32_s: BigNumberish;
|
|
93
|
+
a64_s: BigNumberish;
|
|
94
|
+
b64_s: BigNumberish;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export type AllGTCastingValuesStructOutput = [
|
|
98
|
+
a8_s: bigint,
|
|
99
|
+
b8_s: bigint,
|
|
100
|
+
a16_s: bigint,
|
|
101
|
+
b16_s: bigint,
|
|
102
|
+
a32_s: bigint,
|
|
103
|
+
b32_s: bigint,
|
|
104
|
+
a64_s: bigint,
|
|
105
|
+
b64_s: bigint
|
|
106
|
+
] & {
|
|
107
|
+
a8_s: bigint;
|
|
108
|
+
b8_s: bigint;
|
|
109
|
+
a16_s: bigint;
|
|
110
|
+
b16_s: bigint;
|
|
111
|
+
a32_s: bigint;
|
|
112
|
+
b32_s: bigint;
|
|
113
|
+
a64_s: bigint;
|
|
114
|
+
b64_s: bigint;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface Comparison1TestsContractInterface extends Interface {
|
|
119
|
+
getFunction(
|
|
120
|
+
nameOrSignature:
|
|
121
|
+
| "decryptAndCompareResults16"
|
|
122
|
+
| "decryptAndCompareResults32"
|
|
123
|
+
| "decryptAndCompareResults64"
|
|
124
|
+
| "getGtResult"
|
|
125
|
+
| "getLeResult"
|
|
126
|
+
| "getLtResult"
|
|
127
|
+
| "gtTest"
|
|
128
|
+
| "leTest"
|
|
129
|
+
| "ltTest"
|
|
130
|
+
| "setPublicValues"
|
|
131
|
+
): FunctionFragment;
|
|
132
|
+
|
|
133
|
+
encodeFunctionData(
|
|
134
|
+
functionFragment: "decryptAndCompareResults16",
|
|
135
|
+
values: [Comparison1TestsContract.Check16Struct]
|
|
136
|
+
): string;
|
|
137
|
+
encodeFunctionData(
|
|
138
|
+
functionFragment: "decryptAndCompareResults32",
|
|
139
|
+
values: [Comparison1TestsContract.Check32Struct]
|
|
140
|
+
): string;
|
|
141
|
+
encodeFunctionData(
|
|
142
|
+
functionFragment: "decryptAndCompareResults64",
|
|
143
|
+
values: [Comparison1TestsContract.Check64Struct]
|
|
144
|
+
): string;
|
|
145
|
+
encodeFunctionData(
|
|
146
|
+
functionFragment: "getGtResult",
|
|
147
|
+
values?: undefined
|
|
148
|
+
): string;
|
|
149
|
+
encodeFunctionData(
|
|
150
|
+
functionFragment: "getLeResult",
|
|
151
|
+
values?: undefined
|
|
152
|
+
): string;
|
|
153
|
+
encodeFunctionData(
|
|
154
|
+
functionFragment: "getLtResult",
|
|
155
|
+
values?: undefined
|
|
156
|
+
): string;
|
|
157
|
+
encodeFunctionData(
|
|
158
|
+
functionFragment: "gtTest",
|
|
159
|
+
values: [BigNumberish, BigNumberish]
|
|
160
|
+
): string;
|
|
161
|
+
encodeFunctionData(
|
|
162
|
+
functionFragment: "leTest",
|
|
163
|
+
values: [BigNumberish, BigNumberish]
|
|
164
|
+
): string;
|
|
165
|
+
encodeFunctionData(
|
|
166
|
+
functionFragment: "ltTest",
|
|
167
|
+
values: [BigNumberish, BigNumberish]
|
|
168
|
+
): string;
|
|
169
|
+
encodeFunctionData(
|
|
170
|
+
functionFragment: "setPublicValues",
|
|
171
|
+
values: [
|
|
172
|
+
Comparison1TestsContract.AllGTCastingValuesStruct,
|
|
173
|
+
BigNumberish,
|
|
174
|
+
BigNumberish
|
|
175
|
+
]
|
|
176
|
+
): string;
|
|
177
|
+
|
|
178
|
+
decodeFunctionResult(
|
|
179
|
+
functionFragment: "decryptAndCompareResults16",
|
|
180
|
+
data: BytesLike
|
|
181
|
+
): Result;
|
|
182
|
+
decodeFunctionResult(
|
|
183
|
+
functionFragment: "decryptAndCompareResults32",
|
|
184
|
+
data: BytesLike
|
|
185
|
+
): Result;
|
|
186
|
+
decodeFunctionResult(
|
|
187
|
+
functionFragment: "decryptAndCompareResults64",
|
|
188
|
+
data: BytesLike
|
|
189
|
+
): Result;
|
|
190
|
+
decodeFunctionResult(
|
|
191
|
+
functionFragment: "getGtResult",
|
|
192
|
+
data: BytesLike
|
|
193
|
+
): Result;
|
|
194
|
+
decodeFunctionResult(
|
|
195
|
+
functionFragment: "getLeResult",
|
|
196
|
+
data: BytesLike
|
|
197
|
+
): Result;
|
|
198
|
+
decodeFunctionResult(
|
|
199
|
+
functionFragment: "getLtResult",
|
|
200
|
+
data: BytesLike
|
|
201
|
+
): Result;
|
|
202
|
+
decodeFunctionResult(functionFragment: "gtTest", data: BytesLike): Result;
|
|
203
|
+
decodeFunctionResult(functionFragment: "leTest", data: BytesLike): Result;
|
|
204
|
+
decodeFunctionResult(functionFragment: "ltTest", data: BytesLike): Result;
|
|
205
|
+
decodeFunctionResult(
|
|
206
|
+
functionFragment: "setPublicValues",
|
|
207
|
+
data: BytesLike
|
|
208
|
+
): Result;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface Comparison1TestsContract extends BaseContract {
|
|
212
|
+
connect(runner?: ContractRunner | null): Comparison1TestsContract;
|
|
213
|
+
waitForDeployment(): Promise<this>;
|
|
214
|
+
|
|
215
|
+
interface: Comparison1TestsContractInterface;
|
|
216
|
+
|
|
217
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
218
|
+
event: TCEvent,
|
|
219
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
220
|
+
toBlock?: string | number | undefined
|
|
221
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
222
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
223
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
224
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
225
|
+
toBlock?: string | number | undefined
|
|
226
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
227
|
+
|
|
228
|
+
on<TCEvent extends TypedContractEvent>(
|
|
229
|
+
event: TCEvent,
|
|
230
|
+
listener: TypedListener<TCEvent>
|
|
231
|
+
): Promise<this>;
|
|
232
|
+
on<TCEvent extends TypedContractEvent>(
|
|
233
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
234
|
+
listener: TypedListener<TCEvent>
|
|
235
|
+
): Promise<this>;
|
|
236
|
+
|
|
237
|
+
once<TCEvent extends TypedContractEvent>(
|
|
238
|
+
event: TCEvent,
|
|
239
|
+
listener: TypedListener<TCEvent>
|
|
240
|
+
): Promise<this>;
|
|
241
|
+
once<TCEvent extends TypedContractEvent>(
|
|
242
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
243
|
+
listener: TypedListener<TCEvent>
|
|
244
|
+
): Promise<this>;
|
|
245
|
+
|
|
246
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
247
|
+
event: TCEvent
|
|
248
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
249
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
250
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
251
|
+
event?: TCEvent
|
|
252
|
+
): Promise<this>;
|
|
253
|
+
|
|
254
|
+
decryptAndCompareResults16: TypedContractMethod<
|
|
255
|
+
[check16: Comparison1TestsContract.Check16Struct],
|
|
256
|
+
[boolean],
|
|
257
|
+
"nonpayable"
|
|
258
|
+
>;
|
|
259
|
+
|
|
260
|
+
decryptAndCompareResults32: TypedContractMethod<
|
|
261
|
+
[check32: Comparison1TestsContract.Check32Struct],
|
|
262
|
+
[boolean],
|
|
263
|
+
"nonpayable"
|
|
264
|
+
>;
|
|
265
|
+
|
|
266
|
+
decryptAndCompareResults64: TypedContractMethod<
|
|
267
|
+
[check64: Comparison1TestsContract.Check64Struct],
|
|
268
|
+
[boolean],
|
|
269
|
+
"nonpayable"
|
|
270
|
+
>;
|
|
271
|
+
|
|
272
|
+
getGtResult: TypedContractMethod<[], [boolean], "view">;
|
|
273
|
+
|
|
274
|
+
getLeResult: TypedContractMethod<[], [boolean], "view">;
|
|
275
|
+
|
|
276
|
+
getLtResult: TypedContractMethod<[], [boolean], "view">;
|
|
277
|
+
|
|
278
|
+
gtTest: TypedContractMethod<
|
|
279
|
+
[a: BigNumberish, b: BigNumberish],
|
|
280
|
+
[boolean],
|
|
281
|
+
"nonpayable"
|
|
282
|
+
>;
|
|
283
|
+
|
|
284
|
+
leTest: TypedContractMethod<
|
|
285
|
+
[a: BigNumberish, b: BigNumberish],
|
|
286
|
+
[boolean],
|
|
287
|
+
"nonpayable"
|
|
288
|
+
>;
|
|
289
|
+
|
|
290
|
+
ltTest: TypedContractMethod<
|
|
291
|
+
[a: BigNumberish, b: BigNumberish],
|
|
292
|
+
[boolean],
|
|
293
|
+
"nonpayable"
|
|
294
|
+
>;
|
|
295
|
+
|
|
296
|
+
setPublicValues: TypedContractMethod<
|
|
297
|
+
[
|
|
298
|
+
castingValues: Comparison1TestsContract.AllGTCastingValuesStruct,
|
|
299
|
+
a: BigNumberish,
|
|
300
|
+
b: BigNumberish
|
|
301
|
+
],
|
|
302
|
+
[void],
|
|
303
|
+
"nonpayable"
|
|
304
|
+
>;
|
|
305
|
+
|
|
306
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
307
|
+
key: string | FunctionFragment
|
|
308
|
+
): T;
|
|
309
|
+
|
|
310
|
+
getFunction(
|
|
311
|
+
nameOrSignature: "decryptAndCompareResults16"
|
|
312
|
+
): TypedContractMethod<
|
|
313
|
+
[check16: Comparison1TestsContract.Check16Struct],
|
|
314
|
+
[boolean],
|
|
315
|
+
"nonpayable"
|
|
316
|
+
>;
|
|
317
|
+
getFunction(
|
|
318
|
+
nameOrSignature: "decryptAndCompareResults32"
|
|
319
|
+
): TypedContractMethod<
|
|
320
|
+
[check32: Comparison1TestsContract.Check32Struct],
|
|
321
|
+
[boolean],
|
|
322
|
+
"nonpayable"
|
|
323
|
+
>;
|
|
324
|
+
getFunction(
|
|
325
|
+
nameOrSignature: "decryptAndCompareResults64"
|
|
326
|
+
): TypedContractMethod<
|
|
327
|
+
[check64: Comparison1TestsContract.Check64Struct],
|
|
328
|
+
[boolean],
|
|
329
|
+
"nonpayable"
|
|
330
|
+
>;
|
|
331
|
+
getFunction(
|
|
332
|
+
nameOrSignature: "getGtResult"
|
|
333
|
+
): TypedContractMethod<[], [boolean], "view">;
|
|
334
|
+
getFunction(
|
|
335
|
+
nameOrSignature: "getLeResult"
|
|
336
|
+
): TypedContractMethod<[], [boolean], "view">;
|
|
337
|
+
getFunction(
|
|
338
|
+
nameOrSignature: "getLtResult"
|
|
339
|
+
): TypedContractMethod<[], [boolean], "view">;
|
|
340
|
+
getFunction(
|
|
341
|
+
nameOrSignature: "gtTest"
|
|
342
|
+
): TypedContractMethod<
|
|
343
|
+
[a: BigNumberish, b: BigNumberish],
|
|
344
|
+
[boolean],
|
|
345
|
+
"nonpayable"
|
|
346
|
+
>;
|
|
347
|
+
getFunction(
|
|
348
|
+
nameOrSignature: "leTest"
|
|
349
|
+
): TypedContractMethod<
|
|
350
|
+
[a: BigNumberish, b: BigNumberish],
|
|
351
|
+
[boolean],
|
|
352
|
+
"nonpayable"
|
|
353
|
+
>;
|
|
354
|
+
getFunction(
|
|
355
|
+
nameOrSignature: "ltTest"
|
|
356
|
+
): TypedContractMethod<
|
|
357
|
+
[a: BigNumberish, b: BigNumberish],
|
|
358
|
+
[boolean],
|
|
359
|
+
"nonpayable"
|
|
360
|
+
>;
|
|
361
|
+
getFunction(
|
|
362
|
+
nameOrSignature: "setPublicValues"
|
|
363
|
+
): TypedContractMethod<
|
|
364
|
+
[
|
|
365
|
+
castingValues: Comparison1TestsContract.AllGTCastingValuesStruct,
|
|
366
|
+
a: BigNumberish,
|
|
367
|
+
b: BigNumberish
|
|
368
|
+
],
|
|
369
|
+
[void],
|
|
370
|
+
"nonpayable"
|
|
371
|
+
>;
|
|
372
|
+
|
|
373
|
+
filters: {};
|
|
374
|
+
}
|
|
@@ -123,7 +123,9 @@ export interface Comparison2TestsContractInterface extends Interface {
|
|
|
123
123
|
| "decryptAndCompareResults64"
|
|
124
124
|
| "eqTest"
|
|
125
125
|
| "geTest"
|
|
126
|
-
| "
|
|
126
|
+
| "getEqResult"
|
|
127
|
+
| "getGeResult"
|
|
128
|
+
| "getNeResult"
|
|
127
129
|
| "neTest"
|
|
128
130
|
| "setPublicValues"
|
|
129
131
|
): FunctionFragment;
|
|
@@ -148,7 +150,18 @@ export interface Comparison2TestsContractInterface extends Interface {
|
|
|
148
150
|
functionFragment: "geTest",
|
|
149
151
|
values: [BigNumberish, BigNumberish]
|
|
150
152
|
): string;
|
|
151
|
-
encodeFunctionData(
|
|
153
|
+
encodeFunctionData(
|
|
154
|
+
functionFragment: "getEqResult",
|
|
155
|
+
values?: undefined
|
|
156
|
+
): string;
|
|
157
|
+
encodeFunctionData(
|
|
158
|
+
functionFragment: "getGeResult",
|
|
159
|
+
values?: undefined
|
|
160
|
+
): string;
|
|
161
|
+
encodeFunctionData(
|
|
162
|
+
functionFragment: "getNeResult",
|
|
163
|
+
values?: undefined
|
|
164
|
+
): string;
|
|
152
165
|
encodeFunctionData(
|
|
153
166
|
functionFragment: "neTest",
|
|
154
167
|
values: [BigNumberish, BigNumberish]
|
|
@@ -176,7 +189,18 @@ export interface Comparison2TestsContractInterface extends Interface {
|
|
|
176
189
|
): Result;
|
|
177
190
|
decodeFunctionResult(functionFragment: "eqTest", data: BytesLike): Result;
|
|
178
191
|
decodeFunctionResult(functionFragment: "geTest", data: BytesLike): Result;
|
|
179
|
-
decodeFunctionResult(
|
|
192
|
+
decodeFunctionResult(
|
|
193
|
+
functionFragment: "getEqResult",
|
|
194
|
+
data: BytesLike
|
|
195
|
+
): Result;
|
|
196
|
+
decodeFunctionResult(
|
|
197
|
+
functionFragment: "getGeResult",
|
|
198
|
+
data: BytesLike
|
|
199
|
+
): Result;
|
|
200
|
+
decodeFunctionResult(
|
|
201
|
+
functionFragment: "getNeResult",
|
|
202
|
+
data: BytesLike
|
|
203
|
+
): Result;
|
|
180
204
|
decodeFunctionResult(functionFragment: "neTest", data: BytesLike): Result;
|
|
181
205
|
decodeFunctionResult(
|
|
182
206
|
functionFragment: "setPublicValues",
|
|
@@ -257,7 +281,11 @@ export interface Comparison2TestsContract extends BaseContract {
|
|
|
257
281
|
"nonpayable"
|
|
258
282
|
>;
|
|
259
283
|
|
|
260
|
-
|
|
284
|
+
getEqResult: TypedContractMethod<[], [boolean], "view">;
|
|
285
|
+
|
|
286
|
+
getGeResult: TypedContractMethod<[], [boolean], "view">;
|
|
287
|
+
|
|
288
|
+
getNeResult: TypedContractMethod<[], [boolean], "view">;
|
|
261
289
|
|
|
262
290
|
neTest: TypedContractMethod<
|
|
263
291
|
[a: BigNumberish, b: BigNumberish],
|
|
@@ -315,7 +343,13 @@ export interface Comparison2TestsContract extends BaseContract {
|
|
|
315
343
|
"nonpayable"
|
|
316
344
|
>;
|
|
317
345
|
getFunction(
|
|
318
|
-
nameOrSignature: "
|
|
346
|
+
nameOrSignature: "getEqResult"
|
|
347
|
+
): TypedContractMethod<[], [boolean], "view">;
|
|
348
|
+
getFunction(
|
|
349
|
+
nameOrSignature: "getGeResult"
|
|
350
|
+
): TypedContractMethod<[], [boolean], "view">;
|
|
351
|
+
getFunction(
|
|
352
|
+
nameOrSignature: "getNeResult"
|
|
319
353
|
): TypedContractMethod<[], [boolean], "view">;
|
|
320
354
|
getFunction(
|
|
321
355
|
nameOrSignature: "neTest"
|
|
@@ -121,7 +121,8 @@ export interface MinMaxTestsContractInterface extends Interface {
|
|
|
121
121
|
| "decryptAndCompareResults16"
|
|
122
122
|
| "decryptAndCompareResults32"
|
|
123
123
|
| "decryptAndCompareResults64"
|
|
124
|
-
| "
|
|
124
|
+
| "getMaxResult"
|
|
125
|
+
| "getMinResult"
|
|
125
126
|
| "maxTest"
|
|
126
127
|
| "minTest"
|
|
127
128
|
| "setPublicValues"
|
|
@@ -139,7 +140,14 @@ export interface MinMaxTestsContractInterface extends Interface {
|
|
|
139
140
|
functionFragment: "decryptAndCompareResults64",
|
|
140
141
|
values: [MinMaxTestsContract.Check64Struct]
|
|
141
142
|
): string;
|
|
142
|
-
encodeFunctionData(
|
|
143
|
+
encodeFunctionData(
|
|
144
|
+
functionFragment: "getMaxResult",
|
|
145
|
+
values?: undefined
|
|
146
|
+
): string;
|
|
147
|
+
encodeFunctionData(
|
|
148
|
+
functionFragment: "getMinResult",
|
|
149
|
+
values?: undefined
|
|
150
|
+
): string;
|
|
143
151
|
encodeFunctionData(
|
|
144
152
|
functionFragment: "maxTest",
|
|
145
153
|
values: [BigNumberish, BigNumberish]
|
|
@@ -169,7 +177,14 @@ export interface MinMaxTestsContractInterface extends Interface {
|
|
|
169
177
|
functionFragment: "decryptAndCompareResults64",
|
|
170
178
|
data: BytesLike
|
|
171
179
|
): Result;
|
|
172
|
-
decodeFunctionResult(
|
|
180
|
+
decodeFunctionResult(
|
|
181
|
+
functionFragment: "getMaxResult",
|
|
182
|
+
data: BytesLike
|
|
183
|
+
): Result;
|
|
184
|
+
decodeFunctionResult(
|
|
185
|
+
functionFragment: "getMinResult",
|
|
186
|
+
data: BytesLike
|
|
187
|
+
): Result;
|
|
173
188
|
decodeFunctionResult(functionFragment: "maxTest", data: BytesLike): Result;
|
|
174
189
|
decodeFunctionResult(functionFragment: "minTest", data: BytesLike): Result;
|
|
175
190
|
decodeFunctionResult(
|
|
@@ -239,7 +254,9 @@ export interface MinMaxTestsContract extends BaseContract {
|
|
|
239
254
|
"nonpayable"
|
|
240
255
|
>;
|
|
241
256
|
|
|
242
|
-
|
|
257
|
+
getMaxResult: TypedContractMethod<[], [bigint], "view">;
|
|
258
|
+
|
|
259
|
+
getMinResult: TypedContractMethod<[], [bigint], "view">;
|
|
243
260
|
|
|
244
261
|
maxTest: TypedContractMethod<
|
|
245
262
|
[a: BigNumberish, b: BigNumberish],
|
|
@@ -289,7 +306,10 @@ export interface MinMaxTestsContract extends BaseContract {
|
|
|
289
306
|
"nonpayable"
|
|
290
307
|
>;
|
|
291
308
|
getFunction(
|
|
292
|
-
nameOrSignature: "
|
|
309
|
+
nameOrSignature: "getMaxResult"
|
|
310
|
+
): TypedContractMethod<[], [bigint], "view">;
|
|
311
|
+
getFunction(
|
|
312
|
+
nameOrSignature: "getMinResult"
|
|
293
313
|
): TypedContractMethod<[], [bigint], "view">;
|
|
294
314
|
getFunction(
|
|
295
315
|
nameOrSignature: "maxTest"
|
|
@@ -27,9 +27,12 @@ export interface Miscellaneous1TestsContractInterface extends Interface {
|
|
|
27
27
|
| "checkBound"
|
|
28
28
|
| "getBooleanResults"
|
|
29
29
|
| "getRandom"
|
|
30
|
+
| "getRandomBounded"
|
|
31
|
+
| "getValidateCiphertextResult"
|
|
30
32
|
| "randTest_"
|
|
31
33
|
| "randomBoundedTest"
|
|
32
34
|
| "randomTest"
|
|
35
|
+
| "validateCiphertextTest"
|
|
33
36
|
): FunctionFragment;
|
|
34
37
|
|
|
35
38
|
encodeFunctionData(
|
|
@@ -45,6 +48,14 @@ export interface Miscellaneous1TestsContractInterface extends Interface {
|
|
|
45
48
|
values?: undefined
|
|
46
49
|
): string;
|
|
47
50
|
encodeFunctionData(functionFragment: "getRandom", values?: undefined): string;
|
|
51
|
+
encodeFunctionData(
|
|
52
|
+
functionFragment: "getRandomBounded",
|
|
53
|
+
values?: undefined
|
|
54
|
+
): string;
|
|
55
|
+
encodeFunctionData(
|
|
56
|
+
functionFragment: "getValidateCiphertextResult",
|
|
57
|
+
values?: undefined
|
|
58
|
+
): string;
|
|
48
59
|
encodeFunctionData(
|
|
49
60
|
functionFragment: "randTest_",
|
|
50
61
|
values: [boolean, BigNumberish]
|
|
@@ -57,6 +68,10 @@ export interface Miscellaneous1TestsContractInterface extends Interface {
|
|
|
57
68
|
functionFragment: "randomTest",
|
|
58
69
|
values?: undefined
|
|
59
70
|
): string;
|
|
71
|
+
encodeFunctionData(
|
|
72
|
+
functionFragment: "validateCiphertextTest",
|
|
73
|
+
values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BytesLike]
|
|
74
|
+
): string;
|
|
60
75
|
|
|
61
76
|
decodeFunctionResult(
|
|
62
77
|
functionFragment: "booleanTest",
|
|
@@ -68,12 +83,24 @@ export interface Miscellaneous1TestsContractInterface extends Interface {
|
|
|
68
83
|
data: BytesLike
|
|
69
84
|
): Result;
|
|
70
85
|
decodeFunctionResult(functionFragment: "getRandom", data: BytesLike): Result;
|
|
86
|
+
decodeFunctionResult(
|
|
87
|
+
functionFragment: "getRandomBounded",
|
|
88
|
+
data: BytesLike
|
|
89
|
+
): Result;
|
|
90
|
+
decodeFunctionResult(
|
|
91
|
+
functionFragment: "getValidateCiphertextResult",
|
|
92
|
+
data: BytesLike
|
|
93
|
+
): Result;
|
|
71
94
|
decodeFunctionResult(functionFragment: "randTest_", data: BytesLike): Result;
|
|
72
95
|
decodeFunctionResult(
|
|
73
96
|
functionFragment: "randomBoundedTest",
|
|
74
97
|
data: BytesLike
|
|
75
98
|
): Result;
|
|
76
99
|
decodeFunctionResult(functionFragment: "randomTest", data: BytesLike): Result;
|
|
100
|
+
decodeFunctionResult(
|
|
101
|
+
functionFragment: "validateCiphertextTest",
|
|
102
|
+
data: BytesLike
|
|
103
|
+
): Result;
|
|
77
104
|
}
|
|
78
105
|
|
|
79
106
|
export interface Miscellaneous1TestsContract extends BaseContract {
|
|
@@ -139,6 +166,10 @@ export interface Miscellaneous1TestsContract extends BaseContract {
|
|
|
139
166
|
|
|
140
167
|
getRandom: TypedContractMethod<[], [bigint], "view">;
|
|
141
168
|
|
|
169
|
+
getRandomBounded: TypedContractMethod<[], [bigint], "view">;
|
|
170
|
+
|
|
171
|
+
getValidateCiphertextResult: TypedContractMethod<[], [bigint], "view">;
|
|
172
|
+
|
|
142
173
|
randTest_: TypedContractMethod<
|
|
143
174
|
[isBounded: boolean, numBits: BigNumberish],
|
|
144
175
|
[bigint],
|
|
@@ -153,6 +184,18 @@ export interface Miscellaneous1TestsContract extends BaseContract {
|
|
|
153
184
|
|
|
154
185
|
randomTest: TypedContractMethod<[], [bigint], "nonpayable">;
|
|
155
186
|
|
|
187
|
+
validateCiphertextTest: TypedContractMethod<
|
|
188
|
+
[
|
|
189
|
+
ct8: BigNumberish,
|
|
190
|
+
ct16: BigNumberish,
|
|
191
|
+
ct32: BigNumberish,
|
|
192
|
+
ct64: BigNumberish,
|
|
193
|
+
signature: BytesLike
|
|
194
|
+
],
|
|
195
|
+
[bigint],
|
|
196
|
+
"nonpayable"
|
|
197
|
+
>;
|
|
198
|
+
|
|
156
199
|
getFunction<T extends ContractMethod = ContractMethod>(
|
|
157
200
|
key: string | FunctionFragment
|
|
158
201
|
): T;
|
|
@@ -181,6 +224,12 @@ export interface Miscellaneous1TestsContract extends BaseContract {
|
|
|
181
224
|
getFunction(
|
|
182
225
|
nameOrSignature: "getRandom"
|
|
183
226
|
): TypedContractMethod<[], [bigint], "view">;
|
|
227
|
+
getFunction(
|
|
228
|
+
nameOrSignature: "getRandomBounded"
|
|
229
|
+
): TypedContractMethod<[], [bigint], "view">;
|
|
230
|
+
getFunction(
|
|
231
|
+
nameOrSignature: "getValidateCiphertextResult"
|
|
232
|
+
): TypedContractMethod<[], [bigint], "view">;
|
|
184
233
|
getFunction(
|
|
185
234
|
nameOrSignature: "randTest_"
|
|
186
235
|
): TypedContractMethod<
|
|
@@ -194,6 +243,19 @@ export interface Miscellaneous1TestsContract extends BaseContract {
|
|
|
194
243
|
getFunction(
|
|
195
244
|
nameOrSignature: "randomTest"
|
|
196
245
|
): TypedContractMethod<[], [bigint], "nonpayable">;
|
|
246
|
+
getFunction(
|
|
247
|
+
nameOrSignature: "validateCiphertextTest"
|
|
248
|
+
): TypedContractMethod<
|
|
249
|
+
[
|
|
250
|
+
ct8: BigNumberish,
|
|
251
|
+
ct16: BigNumberish,
|
|
252
|
+
ct32: BigNumberish,
|
|
253
|
+
ct64: BigNumberish,
|
|
254
|
+
signature: BytesLike
|
|
255
|
+
],
|
|
256
|
+
[bigint],
|
|
257
|
+
"nonpayable"
|
|
258
|
+
>;
|
|
197
259
|
|
|
198
260
|
filters: {};
|
|
199
261
|
}
|