@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.
Files changed (85) hide show
  1. package/contracts/access/DataPrivacyFramework/extensions/DataPrivacyFrameworkMpc.sol +6 -6
  2. package/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol +309 -0
  3. package/contracts/utils/mpc/MpcCore.sol +527 -18
  4. package/contracts/utils/mpc/MpcInterface.sol +1 -2
  5. package/package.json +1 -1
  6. package/test/utils/mpc/CheckedArithmetic.test.ts +41 -0
  7. package/typechain-types/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol → ArithmeticWithOverflowBitTestsContract.sol}/ArithmeticTestsContract.ts +52 -43
  8. package/typechain-types/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol → ArithmeticWithOverflowBitTestsContract.sol}/index.ts +0 -1
  9. package/typechain-types/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract.ts → CheckedArithmeticWIthOverflowBitTestsContract.sol/CheckedArithmeticWithOverflowBitTestsContract.ts} +73 -60
  10. package/typechain-types/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/index.ts +4 -0
  11. package/typechain-types/contracts/mocks/utils/mpc/index.ts +4 -0
  12. package/typechain-types/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations.ts +43 -18
  13. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20Mock__factory.ts +1 -1
  14. package/typechain-types/factories/contracts/mocks/token/PrivateERC721/PrivateERC721URIStorageMock__factory.ts +1 -1
  15. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract__factory.ts +1 -1
  16. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticWithOverflowBitTestsContract.sol/ArithmeticTestsContract__factory.ts +387 -0
  17. package/typechain-types/factories/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol → ArithmeticWithOverflowBitTestsContract.sol}/index.ts +0 -1
  18. package/typechain-types/factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory.ts +1 -1
  19. package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/CheckedArithmeticWithOverflowBitTestsContract__factory.ts +397 -0
  20. package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/index.ts +4 -0
  21. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1TestsContract__factory.ts +1 -1
  22. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison2TestsContract__factory.ts +1 -1
  23. package/typechain-types/factories/contracts/mocks/utils/mpc/MinMaxTestsContract__factory.ts +1 -1
  24. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous1TestsContract__factory.ts +1 -1
  25. package/typechain-types/factories/contracts/mocks/utils/mpc/MiscellaneousTestsContract__factory.ts +1 -1
  26. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract__factory.ts +1 -1
  27. package/typechain-types/factories/contracts/mocks/utils/mpc/ShiftTestsContract__factory.ts +1 -1
  28. package/typechain-types/factories/contracts/mocks/utils/mpc/StringTestsContract__factory.ts +1 -1
  29. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferScalarTestsContract__factory.ts +1 -1
  30. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferTestsContract__factory.ts +1 -1
  31. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract__factory.ts +1 -1
  32. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract__factory.ts +1 -1
  33. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract__factory.ts +1 -1
  34. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract__factory.ts +1 -1
  35. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract__factory.ts +1 -1
  36. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract__factory.ts +1 -1
  37. package/typechain-types/factories/contracts/mocks/utils/mpc/index.ts +2 -0
  38. package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock__factory.ts +1 -1
  39. package/typechain-types/factories/contracts/onboard/AccountOnboard__factory.ts +1 -1
  40. package/typechain-types/factories/contracts/utils/mpc/MpcCore__factory.ts +1 -1
  41. package/typechain-types/factories/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations__factory.ts +44 -19
  42. package/typechain-types/hardhat.d.ts +36 -0
  43. package/typechain-types/index.ts +2 -0
  44. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.ts +0 -69
  45. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.ts +0 -69
  46. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.ts +0 -69
  47. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +0 -6
  48. package/typechain-types/contracts/GasTest.ts +0 -91
  49. package/typechain-types/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/Comparison1TestsContract.ts +0 -340
  50. package/typechain-types/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/index.ts +0 -4
  51. package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous2TestsContract.ts +0 -384
  52. package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract.ts +0 -221
  53. package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/index.ts +0 -4
  54. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract.ts +0 -251
  55. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract.ts +0 -250
  56. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +0 -5
  57. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.ts +0 -389
  58. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract.ts +0 -391
  59. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract.ts +0 -391
  60. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +0 -5
  61. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract.ts +0 -125
  62. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract.ts +0 -125
  63. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +0 -5
  64. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts +0 -127
  65. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts +0 -111
  66. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts +0 -128
  67. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +0 -6
  68. package/typechain-types/factories/contracts/GasTest__factory.ts +0 -75
  69. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/ArithmeticTestsContract__factory.ts +0 -387
  70. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract__factory.ts +0 -388
  71. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/Comparison1TestsContract__factory.ts +0 -361
  72. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/index.ts +0 -4
  73. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous2TestsContract__factory.ts +0 -432
  74. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract__factory.ts +0 -261
  75. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/index.ts +0 -4
  76. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract__factory.ts +0 -294
  77. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +0 -292
  78. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +0 -5
  79. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract__factory.ts +0 -720
  80. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract__factory.ts +0 -724
  81. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract__factory.ts +0 -724
  82. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +0 -5
  83. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract__factory.ts +0 -150
  84. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +0 -150
  85. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +0 -5
@@ -1,391 +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 TransferWithAllowance64_8TestsContract {
24
- export type AllGTCastingValuesStruct = {
25
- a8_s: BigNumberish;
26
- b8_s: BigNumberish;
27
- a16_s: BigNumberish;
28
- b16_s: BigNumberish;
29
- a32_s: BigNumberish;
30
- b32_s: BigNumberish;
31
- a64_s: BigNumberish;
32
- b64_s: BigNumberish;
33
- };
34
-
35
- export type AllGTCastingValuesStructOutput = [
36
- a8_s: bigint,
37
- b8_s: bigint,
38
- a16_s: bigint,
39
- b16_s: bigint,
40
- a32_s: bigint,
41
- b32_s: bigint,
42
- a64_s: bigint,
43
- b64_s: bigint
44
- ] & {
45
- a8_s: bigint;
46
- b8_s: bigint;
47
- a16_s: bigint;
48
- b16_s: bigint;
49
- a32_s: bigint;
50
- b32_s: bigint;
51
- a64_s: bigint;
52
- b64_s: bigint;
53
- };
54
-
55
- export type AllAmountValuesStruct = {
56
- amount8_s: BigNumberish;
57
- amount16_s: BigNumberish;
58
- amount32_s: BigNumberish;
59
- amount64_s: BigNumberish;
60
- amount: BigNumberish;
61
- };
62
-
63
- export type AllAmountValuesStructOutput = [
64
- amount8_s: bigint,
65
- amount16_s: bigint,
66
- amount32_s: bigint,
67
- amount64_s: bigint,
68
- amount: bigint
69
- ] & {
70
- amount8_s: bigint;
71
- amount16_s: bigint;
72
- amount32_s: bigint;
73
- amount64_s: bigint;
74
- amount: bigint;
75
- };
76
-
77
- export type AllAllowanceValuesStruct = {
78
- allowance8_s: BigNumberish;
79
- allowance16_s: BigNumberish;
80
- allowance32_s: BigNumberish;
81
- allowance64_s: BigNumberish;
82
- allowance: BigNumberish;
83
- };
84
-
85
- export type AllAllowanceValuesStructOutput = [
86
- allowance8_s: bigint,
87
- allowance16_s: bigint,
88
- allowance32_s: bigint,
89
- allowance64_s: bigint,
90
- allowance: bigint
91
- ] & {
92
- allowance8_s: bigint;
93
- allowance16_s: bigint;
94
- allowance32_s: bigint;
95
- allowance64_s: bigint;
96
- allowance: bigint;
97
- };
98
- }
99
-
100
- export interface TransferWithAllowance64_8TestsContractInterface
101
- extends Interface {
102
- getFunction(
103
- nameOrSignature:
104
- | "computeAndCheckTransfer64_16_64"
105
- | "computeAndCheckTransfer64_32_64"
106
- | "computeAndCheckTransfer64_64_64"
107
- | "computeAndCheckTransfer64_8_64"
108
- | "getResults"
109
- | "transferWithAllowance64Test"
110
- ): FunctionFragment;
111
-
112
- encodeFunctionData(
113
- functionFragment: "computeAndCheckTransfer64_16_64",
114
- values: [
115
- TransferWithAllowance64_8TestsContract.AllGTCastingValuesStruct,
116
- TransferWithAllowance64_8TestsContract.AllAmountValuesStruct,
117
- TransferWithAllowance64_8TestsContract.AllAllowanceValuesStruct,
118
- BigNumberish,
119
- BigNumberish,
120
- boolean,
121
- BigNumberish
122
- ]
123
- ): string;
124
- encodeFunctionData(
125
- functionFragment: "computeAndCheckTransfer64_32_64",
126
- values: [
127
- TransferWithAllowance64_8TestsContract.AllGTCastingValuesStruct,
128
- TransferWithAllowance64_8TestsContract.AllAmountValuesStruct,
129
- TransferWithAllowance64_8TestsContract.AllAllowanceValuesStruct,
130
- BigNumberish,
131
- BigNumberish,
132
- boolean,
133
- BigNumberish
134
- ]
135
- ): string;
136
- encodeFunctionData(
137
- functionFragment: "computeAndCheckTransfer64_64_64",
138
- values: [
139
- TransferWithAllowance64_8TestsContract.AllGTCastingValuesStruct,
140
- TransferWithAllowance64_8TestsContract.AllAmountValuesStruct,
141
- TransferWithAllowance64_8TestsContract.AllAllowanceValuesStruct,
142
- BigNumberish,
143
- BigNumberish,
144
- boolean,
145
- BigNumberish
146
- ]
147
- ): string;
148
- encodeFunctionData(
149
- functionFragment: "computeAndCheckTransfer64_8_64",
150
- values: [
151
- TransferWithAllowance64_8TestsContract.AllGTCastingValuesStruct,
152
- TransferWithAllowance64_8TestsContract.AllAmountValuesStruct,
153
- TransferWithAllowance64_8TestsContract.AllAllowanceValuesStruct,
154
- BigNumberish,
155
- BigNumberish,
156
- boolean,
157
- BigNumberish
158
- ]
159
- ): string;
160
- encodeFunctionData(
161
- functionFragment: "getResults",
162
- values?: undefined
163
- ): string;
164
- encodeFunctionData(
165
- functionFragment: "transferWithAllowance64Test",
166
- values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]
167
- ): string;
168
-
169
- decodeFunctionResult(
170
- functionFragment: "computeAndCheckTransfer64_16_64",
171
- data: BytesLike
172
- ): Result;
173
- decodeFunctionResult(
174
- functionFragment: "computeAndCheckTransfer64_32_64",
175
- data: BytesLike
176
- ): Result;
177
- decodeFunctionResult(
178
- functionFragment: "computeAndCheckTransfer64_64_64",
179
- data: BytesLike
180
- ): Result;
181
- decodeFunctionResult(
182
- functionFragment: "computeAndCheckTransfer64_8_64",
183
- data: BytesLike
184
- ): Result;
185
- decodeFunctionResult(functionFragment: "getResults", data: BytesLike): Result;
186
- decodeFunctionResult(
187
- functionFragment: "transferWithAllowance64Test",
188
- data: BytesLike
189
- ): Result;
190
- }
191
-
192
- export interface TransferWithAllowance64_8TestsContract extends BaseContract {
193
- connect(
194
- runner?: ContractRunner | null
195
- ): TransferWithAllowance64_8TestsContract;
196
- waitForDeployment(): Promise<this>;
197
-
198
- interface: TransferWithAllowance64_8TestsContractInterface;
199
-
200
- queryFilter<TCEvent extends TypedContractEvent>(
201
- event: TCEvent,
202
- fromBlockOrBlockhash?: string | number | undefined,
203
- toBlock?: string | number | undefined
204
- ): Promise<Array<TypedEventLog<TCEvent>>>;
205
- queryFilter<TCEvent extends TypedContractEvent>(
206
- filter: TypedDeferredTopicFilter<TCEvent>,
207
- fromBlockOrBlockhash?: string | number | undefined,
208
- toBlock?: string | number | undefined
209
- ): Promise<Array<TypedEventLog<TCEvent>>>;
210
-
211
- on<TCEvent extends TypedContractEvent>(
212
- event: TCEvent,
213
- listener: TypedListener<TCEvent>
214
- ): Promise<this>;
215
- on<TCEvent extends TypedContractEvent>(
216
- filter: TypedDeferredTopicFilter<TCEvent>,
217
- listener: TypedListener<TCEvent>
218
- ): Promise<this>;
219
-
220
- once<TCEvent extends TypedContractEvent>(
221
- event: TCEvent,
222
- listener: TypedListener<TCEvent>
223
- ): Promise<this>;
224
- once<TCEvent extends TypedContractEvent>(
225
- filter: TypedDeferredTopicFilter<TCEvent>,
226
- listener: TypedListener<TCEvent>
227
- ): Promise<this>;
228
-
229
- listeners<TCEvent extends TypedContractEvent>(
230
- event: TCEvent
231
- ): Promise<Array<TypedListener<TCEvent>>>;
232
- listeners(eventName?: string): Promise<Array<Listener>>;
233
- removeAllListeners<TCEvent extends TypedContractEvent>(
234
- event?: TCEvent
235
- ): Promise<this>;
236
-
237
- computeAndCheckTransfer64_16_64: TypedContractMethod<
238
- [
239
- allGTCastingValues: TransferWithAllowance64_8TestsContract.AllGTCastingValuesStruct,
240
- allAmountValues: TransferWithAllowance64_8TestsContract.AllAmountValuesStruct,
241
- allAllowanceValues: TransferWithAllowance64_8TestsContract.AllAllowanceValuesStruct,
242
- new_a: BigNumberish,
243
- new_b: BigNumberish,
244
- res: boolean,
245
- new_allowance: BigNumberish
246
- ],
247
- [void],
248
- "nonpayable"
249
- >;
250
-
251
- computeAndCheckTransfer64_32_64: TypedContractMethod<
252
- [
253
- allGTCastingValues: TransferWithAllowance64_8TestsContract.AllGTCastingValuesStruct,
254
- allAmountValues: TransferWithAllowance64_8TestsContract.AllAmountValuesStruct,
255
- allAllowanceValues: TransferWithAllowance64_8TestsContract.AllAllowanceValuesStruct,
256
- new_a: BigNumberish,
257
- new_b: BigNumberish,
258
- res: boolean,
259
- new_allowance: BigNumberish
260
- ],
261
- [void],
262
- "nonpayable"
263
- >;
264
-
265
- computeAndCheckTransfer64_64_64: TypedContractMethod<
266
- [
267
- allGTCastingValues: TransferWithAllowance64_8TestsContract.AllGTCastingValuesStruct,
268
- allAmountValues: TransferWithAllowance64_8TestsContract.AllAmountValuesStruct,
269
- allAllowanceValues: TransferWithAllowance64_8TestsContract.AllAllowanceValuesStruct,
270
- new_a: BigNumberish,
271
- new_b: BigNumberish,
272
- res: boolean,
273
- new_allowance: BigNumberish
274
- ],
275
- [void],
276
- "nonpayable"
277
- >;
278
-
279
- computeAndCheckTransfer64_8_64: TypedContractMethod<
280
- [
281
- allGTCastingValues: TransferWithAllowance64_8TestsContract.AllGTCastingValuesStruct,
282
- allAmountValues: TransferWithAllowance64_8TestsContract.AllAmountValuesStruct,
283
- allAllowanceValues: TransferWithAllowance64_8TestsContract.AllAllowanceValuesStruct,
284
- new_a: BigNumberish,
285
- new_b: BigNumberish,
286
- res: boolean,
287
- new_allowance: BigNumberish
288
- ],
289
- [void],
290
- "nonpayable"
291
- >;
292
-
293
- getResults: TypedContractMethod<
294
- [],
295
- [[bigint, bigint, boolean, bigint]],
296
- "view"
297
- >;
298
-
299
- transferWithAllowance64Test: TypedContractMethod<
300
- [
301
- a: BigNumberish,
302
- b: BigNumberish,
303
- amount: BigNumberish,
304
- allowance: BigNumberish
305
- ],
306
- [[bigint, bigint, boolean, bigint]],
307
- "nonpayable"
308
- >;
309
-
310
- getFunction<T extends ContractMethod = ContractMethod>(
311
- key: string | FunctionFragment
312
- ): T;
313
-
314
- getFunction(
315
- nameOrSignature: "computeAndCheckTransfer64_16_64"
316
- ): TypedContractMethod<
317
- [
318
- allGTCastingValues: TransferWithAllowance64_8TestsContract.AllGTCastingValuesStruct,
319
- allAmountValues: TransferWithAllowance64_8TestsContract.AllAmountValuesStruct,
320
- allAllowanceValues: TransferWithAllowance64_8TestsContract.AllAllowanceValuesStruct,
321
- new_a: BigNumberish,
322
- new_b: BigNumberish,
323
- res: boolean,
324
- new_allowance: BigNumberish
325
- ],
326
- [void],
327
- "nonpayable"
328
- >;
329
- getFunction(
330
- nameOrSignature: "computeAndCheckTransfer64_32_64"
331
- ): TypedContractMethod<
332
- [
333
- allGTCastingValues: TransferWithAllowance64_8TestsContract.AllGTCastingValuesStruct,
334
- allAmountValues: TransferWithAllowance64_8TestsContract.AllAmountValuesStruct,
335
- allAllowanceValues: TransferWithAllowance64_8TestsContract.AllAllowanceValuesStruct,
336
- new_a: BigNumberish,
337
- new_b: BigNumberish,
338
- res: boolean,
339
- new_allowance: BigNumberish
340
- ],
341
- [void],
342
- "nonpayable"
343
- >;
344
- getFunction(
345
- nameOrSignature: "computeAndCheckTransfer64_64_64"
346
- ): TypedContractMethod<
347
- [
348
- allGTCastingValues: TransferWithAllowance64_8TestsContract.AllGTCastingValuesStruct,
349
- allAmountValues: TransferWithAllowance64_8TestsContract.AllAmountValuesStruct,
350
- allAllowanceValues: TransferWithAllowance64_8TestsContract.AllAllowanceValuesStruct,
351
- new_a: BigNumberish,
352
- new_b: BigNumberish,
353
- res: boolean,
354
- new_allowance: BigNumberish
355
- ],
356
- [void],
357
- "nonpayable"
358
- >;
359
- getFunction(
360
- nameOrSignature: "computeAndCheckTransfer64_8_64"
361
- ): TypedContractMethod<
362
- [
363
- allGTCastingValues: TransferWithAllowance64_8TestsContract.AllGTCastingValuesStruct,
364
- allAmountValues: TransferWithAllowance64_8TestsContract.AllAmountValuesStruct,
365
- allAllowanceValues: TransferWithAllowance64_8TestsContract.AllAllowanceValuesStruct,
366
- new_a: BigNumberish,
367
- new_b: BigNumberish,
368
- res: boolean,
369
- new_allowance: BigNumberish
370
- ],
371
- [void],
372
- "nonpayable"
373
- >;
374
- getFunction(
375
- nameOrSignature: "getResults"
376
- ): TypedContractMethod<[], [[bigint, bigint, boolean, bigint]], "view">;
377
- getFunction(
378
- nameOrSignature: "transferWithAllowance64Test"
379
- ): TypedContractMethod<
380
- [
381
- a: BigNumberish,
382
- b: BigNumberish,
383
- amount: BigNumberish,
384
- allowance: BigNumberish
385
- ],
386
- [[bigint, bigint, boolean, bigint]],
387
- "nonpayable"
388
- >;
389
-
390
- filters: {};
391
- }
@@ -1,5 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- export type { TransferWithAllowance64_64TestsContract } from "./TransferWithAllowance64_64TestsContract";
5
- export type { TransferWithAllowance64_8TestsContract } from "./TransferWithAllowance64_8TestsContract";
@@ -1,125 +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 interface TransferTestsContractInterface extends Interface {
24
- getFunction(
25
- nameOrSignature: "getResults" | "transferWithAllowanceTest"
26
- ): FunctionFragment;
27
-
28
- encodeFunctionData(
29
- functionFragment: "getResults",
30
- values?: undefined
31
- ): string;
32
- encodeFunctionData(
33
- functionFragment: "transferWithAllowanceTest",
34
- values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]
35
- ): string;
36
-
37
- decodeFunctionResult(functionFragment: "getResults", data: BytesLike): Result;
38
- decodeFunctionResult(
39
- functionFragment: "transferWithAllowanceTest",
40
- data: BytesLike
41
- ): Result;
42
- }
43
-
44
- export interface TransferTestsContract extends BaseContract {
45
- connect(runner?: ContractRunner | null): TransferTestsContract;
46
- waitForDeployment(): Promise<this>;
47
-
48
- interface: TransferTestsContractInterface;
49
-
50
- queryFilter<TCEvent extends TypedContractEvent>(
51
- event: TCEvent,
52
- fromBlockOrBlockhash?: string | number | undefined,
53
- toBlock?: string | number | undefined
54
- ): Promise<Array<TypedEventLog<TCEvent>>>;
55
- queryFilter<TCEvent extends TypedContractEvent>(
56
- filter: TypedDeferredTopicFilter<TCEvent>,
57
- fromBlockOrBlockhash?: string | number | undefined,
58
- toBlock?: string | number | undefined
59
- ): Promise<Array<TypedEventLog<TCEvent>>>;
60
-
61
- on<TCEvent extends TypedContractEvent>(
62
- event: TCEvent,
63
- listener: TypedListener<TCEvent>
64
- ): Promise<this>;
65
- on<TCEvent extends TypedContractEvent>(
66
- filter: TypedDeferredTopicFilter<TCEvent>,
67
- listener: TypedListener<TCEvent>
68
- ): Promise<this>;
69
-
70
- once<TCEvent extends TypedContractEvent>(
71
- event: TCEvent,
72
- listener: TypedListener<TCEvent>
73
- ): Promise<this>;
74
- once<TCEvent extends TypedContractEvent>(
75
- filter: TypedDeferredTopicFilter<TCEvent>,
76
- listener: TypedListener<TCEvent>
77
- ): Promise<this>;
78
-
79
- listeners<TCEvent extends TypedContractEvent>(
80
- event: TCEvent
81
- ): Promise<Array<TypedListener<TCEvent>>>;
82
- listeners(eventName?: string): Promise<Array<Listener>>;
83
- removeAllListeners<TCEvent extends TypedContractEvent>(
84
- event?: TCEvent
85
- ): Promise<this>;
86
-
87
- getResults: TypedContractMethod<
88
- [],
89
- [[bigint, bigint, boolean, bigint]],
90
- "view"
91
- >;
92
-
93
- transferWithAllowanceTest: TypedContractMethod<
94
- [
95
- a: BigNumberish,
96
- b: BigNumberish,
97
- amount: BigNumberish,
98
- allowance: BigNumberish
99
- ],
100
- [[bigint, bigint, boolean, bigint]],
101
- "nonpayable"
102
- >;
103
-
104
- getFunction<T extends ContractMethod = ContractMethod>(
105
- key: string | FunctionFragment
106
- ): T;
107
-
108
- getFunction(
109
- nameOrSignature: "getResults"
110
- ): TypedContractMethod<[], [[bigint, bigint, boolean, bigint]], "view">;
111
- getFunction(
112
- nameOrSignature: "transferWithAllowanceTest"
113
- ): TypedContractMethod<
114
- [
115
- a: BigNumberish,
116
- b: BigNumberish,
117
- amount: BigNumberish,
118
- allowance: BigNumberish
119
- ],
120
- [[bigint, bigint, boolean, bigint]],
121
- "nonpayable"
122
- >;
123
-
124
- filters: {};
125
- }
@@ -1,125 +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 interface TransferWithAllowanceTestsContractInterface extends Interface {
24
- getFunction(
25
- nameOrSignature: "getResults" | "transferWithAllowanceTest"
26
- ): FunctionFragment;
27
-
28
- encodeFunctionData(
29
- functionFragment: "getResults",
30
- values?: undefined
31
- ): string;
32
- encodeFunctionData(
33
- functionFragment: "transferWithAllowanceTest",
34
- values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]
35
- ): string;
36
-
37
- decodeFunctionResult(functionFragment: "getResults", data: BytesLike): Result;
38
- decodeFunctionResult(
39
- functionFragment: "transferWithAllowanceTest",
40
- data: BytesLike
41
- ): Result;
42
- }
43
-
44
- export interface TransferWithAllowanceTestsContract extends BaseContract {
45
- connect(runner?: ContractRunner | null): TransferWithAllowanceTestsContract;
46
- waitForDeployment(): Promise<this>;
47
-
48
- interface: TransferWithAllowanceTestsContractInterface;
49
-
50
- queryFilter<TCEvent extends TypedContractEvent>(
51
- event: TCEvent,
52
- fromBlockOrBlockhash?: string | number | undefined,
53
- toBlock?: string | number | undefined
54
- ): Promise<Array<TypedEventLog<TCEvent>>>;
55
- queryFilter<TCEvent extends TypedContractEvent>(
56
- filter: TypedDeferredTopicFilter<TCEvent>,
57
- fromBlockOrBlockhash?: string | number | undefined,
58
- toBlock?: string | number | undefined
59
- ): Promise<Array<TypedEventLog<TCEvent>>>;
60
-
61
- on<TCEvent extends TypedContractEvent>(
62
- event: TCEvent,
63
- listener: TypedListener<TCEvent>
64
- ): Promise<this>;
65
- on<TCEvent extends TypedContractEvent>(
66
- filter: TypedDeferredTopicFilter<TCEvent>,
67
- listener: TypedListener<TCEvent>
68
- ): Promise<this>;
69
-
70
- once<TCEvent extends TypedContractEvent>(
71
- event: TCEvent,
72
- listener: TypedListener<TCEvent>
73
- ): Promise<this>;
74
- once<TCEvent extends TypedContractEvent>(
75
- filter: TypedDeferredTopicFilter<TCEvent>,
76
- listener: TypedListener<TCEvent>
77
- ): Promise<this>;
78
-
79
- listeners<TCEvent extends TypedContractEvent>(
80
- event: TCEvent
81
- ): Promise<Array<TypedListener<TCEvent>>>;
82
- listeners(eventName?: string): Promise<Array<Listener>>;
83
- removeAllListeners<TCEvent extends TypedContractEvent>(
84
- event?: TCEvent
85
- ): Promise<this>;
86
-
87
- getResults: TypedContractMethod<
88
- [],
89
- [[bigint, bigint, boolean, bigint]],
90
- "view"
91
- >;
92
-
93
- transferWithAllowanceTest: TypedContractMethod<
94
- [
95
- a: BigNumberish,
96
- b: BigNumberish,
97
- amount: BigNumberish,
98
- allowance: BigNumberish
99
- ],
100
- [[bigint, bigint, boolean, bigint]],
101
- "nonpayable"
102
- >;
103
-
104
- getFunction<T extends ContractMethod = ContractMethod>(
105
- key: string | FunctionFragment
106
- ): T;
107
-
108
- getFunction(
109
- nameOrSignature: "getResults"
110
- ): TypedContractMethod<[], [[bigint, bigint, boolean, bigint]], "view">;
111
- getFunction(
112
- nameOrSignature: "transferWithAllowanceTest"
113
- ): TypedContractMethod<
114
- [
115
- a: BigNumberish,
116
- b: BigNumberish,
117
- amount: BigNumberish,
118
- allowance: BigNumberish
119
- ],
120
- [[bigint, bigint, boolean, bigint]],
121
- "nonpayable"
122
- >;
123
-
124
- filters: {};
125
- }
@@ -1,5 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- export type { TransferTestsContract } from "./TransferTestsContract";
5
- export type { TransferWithAllowanceTestsContract } from "./TransferWithAllowanceTestsContract";