@coti-io/coti-contracts 1.0.4 → 1.0.5
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 +6 -6
- package/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol +309 -0
- package/contracts/utils/mpc/MpcCore.sol +527 -18
- package/contracts/utils/mpc/MpcInterface.sol +1 -2
- package/package.json +1 -1
- package/test/utils/mpc/CheckedArithmetic.test.ts +41 -0
- package/typechain-types/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol → ArithmeticWithOverflowBitTestsContract.sol}/ArithmeticTestsContract.ts +52 -43
- package/typechain-types/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol → ArithmeticWithOverflowBitTestsContract.sol}/index.ts +0 -1
- package/typechain-types/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract.ts → CheckedArithmeticWIthOverflowBitTestsContract.sol/CheckedArithmeticWithOverflowBitTestsContract.ts} +73 -60
- package/typechain-types/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/index.ts +4 -0
- package/typechain-types/contracts/mocks/utils/mpc/index.ts +4 -0
- package/typechain-types/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations.ts +43 -18
- 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__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticWithOverflowBitTestsContract.sol/ArithmeticTestsContract__factory.ts +387 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol → ArithmeticWithOverflowBitTestsContract.sol}/index.ts +0 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/CheckedArithmeticWithOverflowBitTestsContract__factory.ts +397 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/index.ts +4 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison2TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MinMaxTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous1TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MiscellaneousTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract__factory.ts +1 -1
- 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 +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/index.ts +2 -0
- package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock__factory.ts +1 -1
- package/typechain-types/factories/contracts/onboard/AccountOnboard__factory.ts +1 -1
- package/typechain-types/factories/contracts/utils/mpc/MpcCore__factory.ts +1 -1
- package/typechain-types/factories/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations__factory.ts +44 -19
- package/typechain-types/hardhat.d.ts +36 -0
- package/typechain-types/index.ts +2 -0
- package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.ts +0 -69
- package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.ts +0 -69
- package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.ts +0 -69
- package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +0 -6
- package/typechain-types/contracts/GasTest.ts +0 -91
- package/typechain-types/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/Comparison1TestsContract.ts +0 -340
- package/typechain-types/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/index.ts +0 -4
- package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous2TestsContract.ts +0 -384
- package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract.ts +0 -221
- package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/index.ts +0 -4
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract.ts +0 -251
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract.ts +0 -250
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +0 -5
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.ts +0 -389
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract.ts +0 -391
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract.ts +0 -391
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +0 -5
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract.ts +0 -125
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract.ts +0 -125
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +0 -5
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts +0 -127
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts +0 -111
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts +0 -128
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +0 -6
- package/typechain-types/factories/contracts/GasTest__factory.ts +0 -75
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/ArithmeticTestsContract__factory.ts +0 -387
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract__factory.ts +0 -388
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/Comparison1TestsContract__factory.ts +0 -361
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/index.ts +0 -4
- package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous2TestsContract__factory.ts +0 -432
- package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract__factory.ts +0 -261
- package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/index.ts +0 -4
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract__factory.ts +0 -294
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +0 -292
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +0 -5
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract__factory.ts +0 -720
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract__factory.ts +0 -724
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract__factory.ts +0 -724
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +0 -5
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract__factory.ts +0 -150
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +0 -150
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +0 -5
|
@@ -1,384 +0,0 @@
|
|
|
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 Miscellaneous2TestsContract {
|
|
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 Miscellaneous2TestsContractInterface extends Interface {
|
|
119
|
-
getFunction(
|
|
120
|
-
nameOrSignature:
|
|
121
|
-
| "decryptAndCompareResults16"
|
|
122
|
-
| "decryptAndCompareResults32"
|
|
123
|
-
| "decryptAndCompareResults64"
|
|
124
|
-
| "divTest"
|
|
125
|
-
| "getBoolResult"
|
|
126
|
-
| "getResult"
|
|
127
|
-
| "muxTest"
|
|
128
|
-
| "notTest"
|
|
129
|
-
| "offboardOnboardTest"
|
|
130
|
-
| "remTest"
|
|
131
|
-
| "setPublicValues"
|
|
132
|
-
): FunctionFragment;
|
|
133
|
-
|
|
134
|
-
encodeFunctionData(
|
|
135
|
-
functionFragment: "decryptAndCompareResults16",
|
|
136
|
-
values: [Miscellaneous2TestsContract.Check16Struct]
|
|
137
|
-
): string;
|
|
138
|
-
encodeFunctionData(
|
|
139
|
-
functionFragment: "decryptAndCompareResults32",
|
|
140
|
-
values: [Miscellaneous2TestsContract.Check32Struct]
|
|
141
|
-
): string;
|
|
142
|
-
encodeFunctionData(
|
|
143
|
-
functionFragment: "decryptAndCompareResults64",
|
|
144
|
-
values: [Miscellaneous2TestsContract.Check64Struct]
|
|
145
|
-
): string;
|
|
146
|
-
encodeFunctionData(
|
|
147
|
-
functionFragment: "divTest",
|
|
148
|
-
values: [BigNumberish, BigNumberish]
|
|
149
|
-
): string;
|
|
150
|
-
encodeFunctionData(
|
|
151
|
-
functionFragment: "getBoolResult",
|
|
152
|
-
values?: undefined
|
|
153
|
-
): string;
|
|
154
|
-
encodeFunctionData(functionFragment: "getResult", values?: undefined): string;
|
|
155
|
-
encodeFunctionData(
|
|
156
|
-
functionFragment: "muxTest",
|
|
157
|
-
values: [boolean, BigNumberish, BigNumberish]
|
|
158
|
-
): string;
|
|
159
|
-
encodeFunctionData(functionFragment: "notTest", values: [boolean]): string;
|
|
160
|
-
encodeFunctionData(
|
|
161
|
-
functionFragment: "offboardOnboardTest",
|
|
162
|
-
values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]
|
|
163
|
-
): string;
|
|
164
|
-
encodeFunctionData(
|
|
165
|
-
functionFragment: "remTest",
|
|
166
|
-
values: [BigNumberish, BigNumberish]
|
|
167
|
-
): string;
|
|
168
|
-
encodeFunctionData(
|
|
169
|
-
functionFragment: "setPublicValues",
|
|
170
|
-
values: [
|
|
171
|
-
Miscellaneous2TestsContract.AllGTCastingValuesStruct,
|
|
172
|
-
BigNumberish,
|
|
173
|
-
BigNumberish
|
|
174
|
-
]
|
|
175
|
-
): string;
|
|
176
|
-
|
|
177
|
-
decodeFunctionResult(
|
|
178
|
-
functionFragment: "decryptAndCompareResults16",
|
|
179
|
-
data: BytesLike
|
|
180
|
-
): Result;
|
|
181
|
-
decodeFunctionResult(
|
|
182
|
-
functionFragment: "decryptAndCompareResults32",
|
|
183
|
-
data: BytesLike
|
|
184
|
-
): Result;
|
|
185
|
-
decodeFunctionResult(
|
|
186
|
-
functionFragment: "decryptAndCompareResults64",
|
|
187
|
-
data: BytesLike
|
|
188
|
-
): Result;
|
|
189
|
-
decodeFunctionResult(functionFragment: "divTest", data: BytesLike): Result;
|
|
190
|
-
decodeFunctionResult(
|
|
191
|
-
functionFragment: "getBoolResult",
|
|
192
|
-
data: BytesLike
|
|
193
|
-
): Result;
|
|
194
|
-
decodeFunctionResult(functionFragment: "getResult", data: BytesLike): Result;
|
|
195
|
-
decodeFunctionResult(functionFragment: "muxTest", data: BytesLike): Result;
|
|
196
|
-
decodeFunctionResult(functionFragment: "notTest", data: BytesLike): Result;
|
|
197
|
-
decodeFunctionResult(
|
|
198
|
-
functionFragment: "offboardOnboardTest",
|
|
199
|
-
data: BytesLike
|
|
200
|
-
): Result;
|
|
201
|
-
decodeFunctionResult(functionFragment: "remTest", data: BytesLike): Result;
|
|
202
|
-
decodeFunctionResult(
|
|
203
|
-
functionFragment: "setPublicValues",
|
|
204
|
-
data: BytesLike
|
|
205
|
-
): Result;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export interface Miscellaneous2TestsContract extends BaseContract {
|
|
209
|
-
connect(runner?: ContractRunner | null): Miscellaneous2TestsContract;
|
|
210
|
-
waitForDeployment(): Promise<this>;
|
|
211
|
-
|
|
212
|
-
interface: Miscellaneous2TestsContractInterface;
|
|
213
|
-
|
|
214
|
-
queryFilter<TCEvent extends TypedContractEvent>(
|
|
215
|
-
event: TCEvent,
|
|
216
|
-
fromBlockOrBlockhash?: string | number | undefined,
|
|
217
|
-
toBlock?: string | number | undefined
|
|
218
|
-
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
219
|
-
queryFilter<TCEvent extends TypedContractEvent>(
|
|
220
|
-
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
221
|
-
fromBlockOrBlockhash?: string | number | undefined,
|
|
222
|
-
toBlock?: string | number | undefined
|
|
223
|
-
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
224
|
-
|
|
225
|
-
on<TCEvent extends TypedContractEvent>(
|
|
226
|
-
event: TCEvent,
|
|
227
|
-
listener: TypedListener<TCEvent>
|
|
228
|
-
): Promise<this>;
|
|
229
|
-
on<TCEvent extends TypedContractEvent>(
|
|
230
|
-
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
231
|
-
listener: TypedListener<TCEvent>
|
|
232
|
-
): Promise<this>;
|
|
233
|
-
|
|
234
|
-
once<TCEvent extends TypedContractEvent>(
|
|
235
|
-
event: TCEvent,
|
|
236
|
-
listener: TypedListener<TCEvent>
|
|
237
|
-
): Promise<this>;
|
|
238
|
-
once<TCEvent extends TypedContractEvent>(
|
|
239
|
-
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
240
|
-
listener: TypedListener<TCEvent>
|
|
241
|
-
): Promise<this>;
|
|
242
|
-
|
|
243
|
-
listeners<TCEvent extends TypedContractEvent>(
|
|
244
|
-
event: TCEvent
|
|
245
|
-
): Promise<Array<TypedListener<TCEvent>>>;
|
|
246
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
247
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
248
|
-
event?: TCEvent
|
|
249
|
-
): Promise<this>;
|
|
250
|
-
|
|
251
|
-
decryptAndCompareResults16: TypedContractMethod<
|
|
252
|
-
[check16: Miscellaneous2TestsContract.Check16Struct],
|
|
253
|
-
[bigint],
|
|
254
|
-
"nonpayable"
|
|
255
|
-
>;
|
|
256
|
-
|
|
257
|
-
decryptAndCompareResults32: TypedContractMethod<
|
|
258
|
-
[check32: Miscellaneous2TestsContract.Check32Struct],
|
|
259
|
-
[bigint],
|
|
260
|
-
"nonpayable"
|
|
261
|
-
>;
|
|
262
|
-
|
|
263
|
-
decryptAndCompareResults64: TypedContractMethod<
|
|
264
|
-
[check64: Miscellaneous2TestsContract.Check64Struct],
|
|
265
|
-
[bigint],
|
|
266
|
-
"nonpayable"
|
|
267
|
-
>;
|
|
268
|
-
|
|
269
|
-
divTest: TypedContractMethod<
|
|
270
|
-
[a: BigNumberish, b: BigNumberish],
|
|
271
|
-
[bigint],
|
|
272
|
-
"nonpayable"
|
|
273
|
-
>;
|
|
274
|
-
|
|
275
|
-
getBoolResult: TypedContractMethod<[], [boolean], "view">;
|
|
276
|
-
|
|
277
|
-
getResult: TypedContractMethod<[], [bigint], "view">;
|
|
278
|
-
|
|
279
|
-
muxTest: TypedContractMethod<
|
|
280
|
-
[selectionBit: boolean, a: BigNumberish, b: BigNumberish],
|
|
281
|
-
[bigint],
|
|
282
|
-
"nonpayable"
|
|
283
|
-
>;
|
|
284
|
-
|
|
285
|
-
notTest: TypedContractMethod<[a: boolean], [boolean], "nonpayable">;
|
|
286
|
-
|
|
287
|
-
offboardOnboardTest: TypedContractMethod<
|
|
288
|
-
[a8: BigNumberish, a16: BigNumberish, a32: BigNumberish, a64: BigNumberish],
|
|
289
|
-
[bigint],
|
|
290
|
-
"nonpayable"
|
|
291
|
-
>;
|
|
292
|
-
|
|
293
|
-
remTest: TypedContractMethod<
|
|
294
|
-
[a: BigNumberish, b: BigNumberish],
|
|
295
|
-
[bigint],
|
|
296
|
-
"nonpayable"
|
|
297
|
-
>;
|
|
298
|
-
|
|
299
|
-
setPublicValues: TypedContractMethod<
|
|
300
|
-
[
|
|
301
|
-
castingValues: Miscellaneous2TestsContract.AllGTCastingValuesStruct,
|
|
302
|
-
a: BigNumberish,
|
|
303
|
-
b: BigNumberish
|
|
304
|
-
],
|
|
305
|
-
[void],
|
|
306
|
-
"nonpayable"
|
|
307
|
-
>;
|
|
308
|
-
|
|
309
|
-
getFunction<T extends ContractMethod = ContractMethod>(
|
|
310
|
-
key: string | FunctionFragment
|
|
311
|
-
): T;
|
|
312
|
-
|
|
313
|
-
getFunction(
|
|
314
|
-
nameOrSignature: "decryptAndCompareResults16"
|
|
315
|
-
): TypedContractMethod<
|
|
316
|
-
[check16: Miscellaneous2TestsContract.Check16Struct],
|
|
317
|
-
[bigint],
|
|
318
|
-
"nonpayable"
|
|
319
|
-
>;
|
|
320
|
-
getFunction(
|
|
321
|
-
nameOrSignature: "decryptAndCompareResults32"
|
|
322
|
-
): TypedContractMethod<
|
|
323
|
-
[check32: Miscellaneous2TestsContract.Check32Struct],
|
|
324
|
-
[bigint],
|
|
325
|
-
"nonpayable"
|
|
326
|
-
>;
|
|
327
|
-
getFunction(
|
|
328
|
-
nameOrSignature: "decryptAndCompareResults64"
|
|
329
|
-
): TypedContractMethod<
|
|
330
|
-
[check64: Miscellaneous2TestsContract.Check64Struct],
|
|
331
|
-
[bigint],
|
|
332
|
-
"nonpayable"
|
|
333
|
-
>;
|
|
334
|
-
getFunction(
|
|
335
|
-
nameOrSignature: "divTest"
|
|
336
|
-
): TypedContractMethod<
|
|
337
|
-
[a: BigNumberish, b: BigNumberish],
|
|
338
|
-
[bigint],
|
|
339
|
-
"nonpayable"
|
|
340
|
-
>;
|
|
341
|
-
getFunction(
|
|
342
|
-
nameOrSignature: "getBoolResult"
|
|
343
|
-
): TypedContractMethod<[], [boolean], "view">;
|
|
344
|
-
getFunction(
|
|
345
|
-
nameOrSignature: "getResult"
|
|
346
|
-
): TypedContractMethod<[], [bigint], "view">;
|
|
347
|
-
getFunction(
|
|
348
|
-
nameOrSignature: "muxTest"
|
|
349
|
-
): TypedContractMethod<
|
|
350
|
-
[selectionBit: boolean, a: BigNumberish, b: BigNumberish],
|
|
351
|
-
[bigint],
|
|
352
|
-
"nonpayable"
|
|
353
|
-
>;
|
|
354
|
-
getFunction(
|
|
355
|
-
nameOrSignature: "notTest"
|
|
356
|
-
): TypedContractMethod<[a: boolean], [boolean], "nonpayable">;
|
|
357
|
-
getFunction(
|
|
358
|
-
nameOrSignature: "offboardOnboardTest"
|
|
359
|
-
): TypedContractMethod<
|
|
360
|
-
[a8: BigNumberish, a16: BigNumberish, a32: BigNumberish, a64: BigNumberish],
|
|
361
|
-
[bigint],
|
|
362
|
-
"nonpayable"
|
|
363
|
-
>;
|
|
364
|
-
getFunction(
|
|
365
|
-
nameOrSignature: "remTest"
|
|
366
|
-
): TypedContractMethod<
|
|
367
|
-
[a: BigNumberish, b: BigNumberish],
|
|
368
|
-
[bigint],
|
|
369
|
-
"nonpayable"
|
|
370
|
-
>;
|
|
371
|
-
getFunction(
|
|
372
|
-
nameOrSignature: "setPublicValues"
|
|
373
|
-
): TypedContractMethod<
|
|
374
|
-
[
|
|
375
|
-
castingValues: Miscellaneous2TestsContract.AllGTCastingValuesStruct,
|
|
376
|
-
a: BigNumberish,
|
|
377
|
-
b: BigNumberish
|
|
378
|
-
],
|
|
379
|
-
[void],
|
|
380
|
-
"nonpayable"
|
|
381
|
-
>;
|
|
382
|
-
|
|
383
|
-
filters: {};
|
|
384
|
-
}
|
|
@@ -1,221 +0,0 @@
|
|
|
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
|
-
EventFragment,
|
|
12
|
-
AddressLike,
|
|
13
|
-
ContractRunner,
|
|
14
|
-
ContractMethod,
|
|
15
|
-
Listener,
|
|
16
|
-
} from "ethers";
|
|
17
|
-
import type {
|
|
18
|
-
TypedContractEvent,
|
|
19
|
-
TypedDeferredTopicFilter,
|
|
20
|
-
TypedEventLog,
|
|
21
|
-
TypedLogDescription,
|
|
22
|
-
TypedListener,
|
|
23
|
-
TypedContractMethod,
|
|
24
|
-
} from "../../../../../common";
|
|
25
|
-
|
|
26
|
-
export interface OffboardToUserKeyTestContractInterface extends Interface {
|
|
27
|
-
getFunction(
|
|
28
|
-
nameOrSignature:
|
|
29
|
-
| "getCTs"
|
|
30
|
-
| "getCt"
|
|
31
|
-
| "getUserKeyShares"
|
|
32
|
-
| "getUserKeyTest"
|
|
33
|
-
| "getX"
|
|
34
|
-
| "offboardToUserTest"
|
|
35
|
-
| "userKeyTest"
|
|
36
|
-
): FunctionFragment;
|
|
37
|
-
|
|
38
|
-
getEvent(nameOrSignatureOrTopic: "AccountOnboarded"): EventFragment;
|
|
39
|
-
|
|
40
|
-
encodeFunctionData(functionFragment: "getCTs", values?: undefined): string;
|
|
41
|
-
encodeFunctionData(functionFragment: "getCt", values?: undefined): string;
|
|
42
|
-
encodeFunctionData(
|
|
43
|
-
functionFragment: "getUserKeyShares",
|
|
44
|
-
values?: undefined
|
|
45
|
-
): string;
|
|
46
|
-
encodeFunctionData(
|
|
47
|
-
functionFragment: "getUserKeyTest",
|
|
48
|
-
values: [BytesLike, BytesLike, AddressLike]
|
|
49
|
-
): string;
|
|
50
|
-
encodeFunctionData(functionFragment: "getX", values?: undefined): string;
|
|
51
|
-
encodeFunctionData(
|
|
52
|
-
functionFragment: "offboardToUserTest",
|
|
53
|
-
values: [BigNumberish, AddressLike]
|
|
54
|
-
): string;
|
|
55
|
-
encodeFunctionData(
|
|
56
|
-
functionFragment: "userKeyTest",
|
|
57
|
-
values: [BytesLike, BytesLike]
|
|
58
|
-
): string;
|
|
59
|
-
|
|
60
|
-
decodeFunctionResult(functionFragment: "getCTs", data: BytesLike): Result;
|
|
61
|
-
decodeFunctionResult(functionFragment: "getCt", data: BytesLike): Result;
|
|
62
|
-
decodeFunctionResult(
|
|
63
|
-
functionFragment: "getUserKeyShares",
|
|
64
|
-
data: BytesLike
|
|
65
|
-
): Result;
|
|
66
|
-
decodeFunctionResult(
|
|
67
|
-
functionFragment: "getUserKeyTest",
|
|
68
|
-
data: BytesLike
|
|
69
|
-
): Result;
|
|
70
|
-
decodeFunctionResult(functionFragment: "getX", data: BytesLike): Result;
|
|
71
|
-
decodeFunctionResult(
|
|
72
|
-
functionFragment: "offboardToUserTest",
|
|
73
|
-
data: BytesLike
|
|
74
|
-
): Result;
|
|
75
|
-
decodeFunctionResult(
|
|
76
|
-
functionFragment: "userKeyTest",
|
|
77
|
-
data: BytesLike
|
|
78
|
-
): Result;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export namespace AccountOnboardedEvent {
|
|
82
|
-
export type InputTuple = [_from: AddressLike, userKey: BytesLike];
|
|
83
|
-
export type OutputTuple = [_from: string, userKey: string];
|
|
84
|
-
export interface OutputObject {
|
|
85
|
-
_from: string;
|
|
86
|
-
userKey: string;
|
|
87
|
-
}
|
|
88
|
-
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
89
|
-
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
90
|
-
export type Log = TypedEventLog<Event>;
|
|
91
|
-
export type LogDescription = TypedLogDescription<Event>;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface OffboardToUserKeyTestContract extends BaseContract {
|
|
95
|
-
connect(runner?: ContractRunner | null): OffboardToUserKeyTestContract;
|
|
96
|
-
waitForDeployment(): Promise<this>;
|
|
97
|
-
|
|
98
|
-
interface: OffboardToUserKeyTestContractInterface;
|
|
99
|
-
|
|
100
|
-
queryFilter<TCEvent extends TypedContractEvent>(
|
|
101
|
-
event: TCEvent,
|
|
102
|
-
fromBlockOrBlockhash?: string | number | undefined,
|
|
103
|
-
toBlock?: string | number | undefined
|
|
104
|
-
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
105
|
-
queryFilter<TCEvent extends TypedContractEvent>(
|
|
106
|
-
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
107
|
-
fromBlockOrBlockhash?: string | number | undefined,
|
|
108
|
-
toBlock?: string | number | undefined
|
|
109
|
-
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
110
|
-
|
|
111
|
-
on<TCEvent extends TypedContractEvent>(
|
|
112
|
-
event: TCEvent,
|
|
113
|
-
listener: TypedListener<TCEvent>
|
|
114
|
-
): Promise<this>;
|
|
115
|
-
on<TCEvent extends TypedContractEvent>(
|
|
116
|
-
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
117
|
-
listener: TypedListener<TCEvent>
|
|
118
|
-
): Promise<this>;
|
|
119
|
-
|
|
120
|
-
once<TCEvent extends TypedContractEvent>(
|
|
121
|
-
event: TCEvent,
|
|
122
|
-
listener: TypedListener<TCEvent>
|
|
123
|
-
): Promise<this>;
|
|
124
|
-
once<TCEvent extends TypedContractEvent>(
|
|
125
|
-
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
126
|
-
listener: TypedListener<TCEvent>
|
|
127
|
-
): Promise<this>;
|
|
128
|
-
|
|
129
|
-
listeners<TCEvent extends TypedContractEvent>(
|
|
130
|
-
event: TCEvent
|
|
131
|
-
): Promise<Array<TypedListener<TCEvent>>>;
|
|
132
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
133
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
134
|
-
event?: TCEvent
|
|
135
|
-
): Promise<this>;
|
|
136
|
-
|
|
137
|
-
getCTs: TypedContractMethod<[], [[bigint, bigint, bigint, bigint]], "view">;
|
|
138
|
-
|
|
139
|
-
getCt: TypedContractMethod<[], [bigint], "view">;
|
|
140
|
-
|
|
141
|
-
getUserKeyShares: TypedContractMethod<[], [[string, string]], "view">;
|
|
142
|
-
|
|
143
|
-
getUserKeyTest: TypedContractMethod<
|
|
144
|
-
[signedEK: BytesLike, signature: BytesLike, addr: AddressLike],
|
|
145
|
-
[bigint],
|
|
146
|
-
"nonpayable"
|
|
147
|
-
>;
|
|
148
|
-
|
|
149
|
-
getX: TypedContractMethod<[], [bigint], "view">;
|
|
150
|
-
|
|
151
|
-
offboardToUserTest: TypedContractMethod<
|
|
152
|
-
[a: BigNumberish, addr: AddressLike],
|
|
153
|
-
[[bigint, bigint, bigint, bigint]],
|
|
154
|
-
"nonpayable"
|
|
155
|
-
>;
|
|
156
|
-
|
|
157
|
-
userKeyTest: TypedContractMethod<
|
|
158
|
-
[signedEK: BytesLike, signature: BytesLike],
|
|
159
|
-
[[string, string]],
|
|
160
|
-
"nonpayable"
|
|
161
|
-
>;
|
|
162
|
-
|
|
163
|
-
getFunction<T extends ContractMethod = ContractMethod>(
|
|
164
|
-
key: string | FunctionFragment
|
|
165
|
-
): T;
|
|
166
|
-
|
|
167
|
-
getFunction(
|
|
168
|
-
nameOrSignature: "getCTs"
|
|
169
|
-
): TypedContractMethod<[], [[bigint, bigint, bigint, bigint]], "view">;
|
|
170
|
-
getFunction(
|
|
171
|
-
nameOrSignature: "getCt"
|
|
172
|
-
): TypedContractMethod<[], [bigint], "view">;
|
|
173
|
-
getFunction(
|
|
174
|
-
nameOrSignature: "getUserKeyShares"
|
|
175
|
-
): TypedContractMethod<[], [[string, string]], "view">;
|
|
176
|
-
getFunction(
|
|
177
|
-
nameOrSignature: "getUserKeyTest"
|
|
178
|
-
): TypedContractMethod<
|
|
179
|
-
[signedEK: BytesLike, signature: BytesLike, addr: AddressLike],
|
|
180
|
-
[bigint],
|
|
181
|
-
"nonpayable"
|
|
182
|
-
>;
|
|
183
|
-
getFunction(
|
|
184
|
-
nameOrSignature: "getX"
|
|
185
|
-
): TypedContractMethod<[], [bigint], "view">;
|
|
186
|
-
getFunction(
|
|
187
|
-
nameOrSignature: "offboardToUserTest"
|
|
188
|
-
): TypedContractMethod<
|
|
189
|
-
[a: BigNumberish, addr: AddressLike],
|
|
190
|
-
[[bigint, bigint, bigint, bigint]],
|
|
191
|
-
"nonpayable"
|
|
192
|
-
>;
|
|
193
|
-
getFunction(
|
|
194
|
-
nameOrSignature: "userKeyTest"
|
|
195
|
-
): TypedContractMethod<
|
|
196
|
-
[signedEK: BytesLike, signature: BytesLike],
|
|
197
|
-
[[string, string]],
|
|
198
|
-
"nonpayable"
|
|
199
|
-
>;
|
|
200
|
-
|
|
201
|
-
getEvent(
|
|
202
|
-
key: "AccountOnboarded"
|
|
203
|
-
): TypedContractEvent<
|
|
204
|
-
AccountOnboardedEvent.InputTuple,
|
|
205
|
-
AccountOnboardedEvent.OutputTuple,
|
|
206
|
-
AccountOnboardedEvent.OutputObject
|
|
207
|
-
>;
|
|
208
|
-
|
|
209
|
-
filters: {
|
|
210
|
-
"AccountOnboarded(address,bytes)": TypedContractEvent<
|
|
211
|
-
AccountOnboardedEvent.InputTuple,
|
|
212
|
-
AccountOnboardedEvent.OutputTuple,
|
|
213
|
-
AccountOnboardedEvent.OutputObject
|
|
214
|
-
>;
|
|
215
|
-
AccountOnboarded: TypedContractEvent<
|
|
216
|
-
AccountOnboardedEvent.InputTuple,
|
|
217
|
-
AccountOnboardedEvent.OutputTuple,
|
|
218
|
-
AccountOnboardedEvent.OutputObject
|
|
219
|
-
>;
|
|
220
|
-
};
|
|
221
|
-
}
|