@coti-io/coti-contracts 1.0.3 → 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 (90) 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/token/PrivateERC721/extensions/IPrivateERC721URIStorage.sol +15 -0
  4. package/contracts/token/PrivateERC721/extensions/PrivateERC721URIStorage.sol +27 -1
  5. package/contracts/utils/mpc/MpcCore.sol +527 -18
  6. package/contracts/utils/mpc/MpcInterface.sol +1 -2
  7. package/package.json +1 -1
  8. package/test/utils/mpc/CheckedArithmetic.test.ts +41 -0
  9. package/typechain-types/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol → ArithmeticWithOverflowBitTestsContract.sol}/ArithmeticTestsContract.ts +52 -43
  10. package/typechain-types/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol → ArithmeticWithOverflowBitTestsContract.sol}/index.ts +0 -1
  11. package/typechain-types/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract.ts → CheckedArithmeticWIthOverflowBitTestsContract.sol/CheckedArithmeticWithOverflowBitTestsContract.ts} +73 -60
  12. package/typechain-types/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/index.ts +4 -0
  13. package/typechain-types/contracts/mocks/utils/mpc/index.ts +4 -0
  14. package/typechain-types/contracts/{GasTest.ts → token/PrivateERC721/extensions/IPrivateERC721URIStorage.ts} +27 -18
  15. package/typechain-types/contracts/token/PrivateERC721/extensions/index.ts +1 -0
  16. package/typechain-types/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations.ts +43 -18
  17. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20Mock__factory.ts +1 -1
  18. package/typechain-types/factories/contracts/mocks/token/PrivateERC721/PrivateERC721URIStorageMock__factory.ts +1 -1
  19. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract__factory.ts +1 -1
  20. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticWithOverflowBitTestsContract.sol/ArithmeticTestsContract__factory.ts +387 -0
  21. package/typechain-types/factories/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol → ArithmeticWithOverflowBitTestsContract.sol}/index.ts +0 -1
  22. package/typechain-types/factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory.ts +1 -1
  23. package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/CheckedArithmeticWithOverflowBitTestsContract__factory.ts +397 -0
  24. package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/index.ts +4 -0
  25. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1TestsContract__factory.ts +1 -1
  26. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison2TestsContract__factory.ts +1 -1
  27. package/typechain-types/factories/contracts/mocks/utils/mpc/MinMaxTestsContract__factory.ts +1 -1
  28. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous1TestsContract__factory.ts +1 -1
  29. package/typechain-types/factories/contracts/mocks/utils/mpc/MiscellaneousTestsContract__factory.ts +1 -1
  30. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract__factory.ts +1 -1
  31. package/typechain-types/factories/contracts/mocks/utils/mpc/ShiftTestsContract__factory.ts +1 -1
  32. package/typechain-types/factories/contracts/mocks/utils/mpc/StringTestsContract__factory.ts +1 -1
  33. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferScalarTestsContract__factory.ts +1 -1
  34. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferTestsContract__factory.ts +1 -1
  35. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract__factory.ts +1 -1
  36. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract__factory.ts +1 -1
  37. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract__factory.ts +1 -1
  38. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract__factory.ts +1 -1
  39. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract__factory.ts +1 -1
  40. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract__factory.ts +1 -1
  41. package/typechain-types/factories/contracts/mocks/utils/mpc/index.ts +2 -0
  42. package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock__factory.ts +1 -1
  43. package/typechain-types/factories/contracts/onboard/AccountOnboard__factory.ts +1 -1
  44. package/typechain-types/factories/contracts/token/PrivateERC721/extensions/IPrivateERC721URIStorage__factory.ts +55 -0
  45. package/typechain-types/factories/contracts/token/PrivateERC721/extensions/index.ts +1 -0
  46. package/typechain-types/factories/contracts/utils/mpc/MpcCore__factory.ts +1 -1
  47. package/typechain-types/factories/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations__factory.ts +44 -19
  48. package/typechain-types/hardhat.d.ts +54 -0
  49. package/typechain-types/index.ts +4 -0
  50. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.ts +0 -69
  51. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.ts +0 -69
  52. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.ts +0 -69
  53. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +0 -6
  54. package/typechain-types/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/Comparison1TestsContract.ts +0 -340
  55. package/typechain-types/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/index.ts +0 -4
  56. package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous2TestsContract.ts +0 -384
  57. package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract.ts +0 -221
  58. package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/index.ts +0 -4
  59. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract.ts +0 -251
  60. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract.ts +0 -250
  61. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +0 -5
  62. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.ts +0 -389
  63. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract.ts +0 -391
  64. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract.ts +0 -391
  65. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +0 -5
  66. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract.ts +0 -125
  67. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract.ts +0 -125
  68. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +0 -5
  69. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts +0 -127
  70. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts +0 -111
  71. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts +0 -128
  72. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +0 -6
  73. package/typechain-types/factories/contracts/GasTest__factory.ts +0 -75
  74. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/ArithmeticTestsContract__factory.ts +0 -387
  75. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract__factory.ts +0 -388
  76. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/Comparison1TestsContract__factory.ts +0 -361
  77. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/index.ts +0 -4
  78. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous2TestsContract__factory.ts +0 -432
  79. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract__factory.ts +0 -261
  80. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/index.ts +0 -4
  81. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract__factory.ts +0 -294
  82. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +0 -292
  83. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +0 -5
  84. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract__factory.ts +0 -720
  85. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract__factory.ts +0 -724
  86. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract__factory.ts +0 -724
  87. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +0 -5
  88. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract__factory.ts +0 -150
  89. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +0 -150
  90. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +0 -5
@@ -57,10 +57,18 @@ declare module "hardhat/types/runtime" {
57
57
  name: "ArithmeticTestsContract",
58
58
  signerOrOptions?: ethers.Signer | FactoryOptions
59
59
  ): Promise<Contracts.ArithmeticTestsContract__factory>;
60
+ getContractFactory(
61
+ name: "ArithmeticTestsContract",
62
+ signerOrOptions?: ethers.Signer | FactoryOptions
63
+ ): Promise<Contracts.ArithmeticTestsContract__factory>;
60
64
  getContractFactory(
61
65
  name: "BitwiseTestsContract",
62
66
  signerOrOptions?: ethers.Signer | FactoryOptions
63
67
  ): Promise<Contracts.BitwiseTestsContract__factory>;
68
+ getContractFactory(
69
+ name: "CheckedArithmeticWithOverflowBitTestsContract",
70
+ signerOrOptions?: ethers.Signer | FactoryOptions
71
+ ): Promise<Contracts.CheckedArithmeticWithOverflowBitTestsContract__factory>;
64
72
  getContractFactory(
65
73
  name: "Comparison1TestsContract",
66
74
  signerOrOptions?: ethers.Signer | FactoryOptions
@@ -141,6 +149,10 @@ declare module "hardhat/types/runtime" {
141
149
  name: "PrivateERC20",
142
150
  signerOrOptions?: ethers.Signer | FactoryOptions
143
151
  ): Promise<Contracts.PrivateERC20__factory>;
152
+ getContractFactory(
153
+ name: "IPrivateERC721URIStorage",
154
+ signerOrOptions?: ethers.Signer | FactoryOptions
155
+ ): Promise<Contracts.IPrivateERC721URIStorage__factory>;
144
156
  getContractFactory(
145
157
  name: "PrivateERC721URIStorage",
146
158
  signerOrOptions?: ethers.Signer | FactoryOptions
@@ -217,11 +229,21 @@ declare module "hardhat/types/runtime" {
217
229
  address: string | ethers.Addressable,
218
230
  signer?: ethers.Signer
219
231
  ): Promise<Contracts.ArithmeticTestsContract>;
232
+ getContractAt(
233
+ name: "ArithmeticTestsContract",
234
+ address: string | ethers.Addressable,
235
+ signer?: ethers.Signer
236
+ ): Promise<Contracts.ArithmeticTestsContract>;
220
237
  getContractAt(
221
238
  name: "BitwiseTestsContract",
222
239
  address: string | ethers.Addressable,
223
240
  signer?: ethers.Signer
224
241
  ): Promise<Contracts.BitwiseTestsContract>;
242
+ getContractAt(
243
+ name: "CheckedArithmeticWithOverflowBitTestsContract",
244
+ address: string | ethers.Addressable,
245
+ signer?: ethers.Signer
246
+ ): Promise<Contracts.CheckedArithmeticWithOverflowBitTestsContract>;
225
247
  getContractAt(
226
248
  name: "Comparison1TestsContract",
227
249
  address: string | ethers.Addressable,
@@ -322,6 +344,11 @@ declare module "hardhat/types/runtime" {
322
344
  address: string | ethers.Addressable,
323
345
  signer?: ethers.Signer
324
346
  ): Promise<Contracts.PrivateERC20>;
347
+ getContractAt(
348
+ name: "IPrivateERC721URIStorage",
349
+ address: string | ethers.Addressable,
350
+ signer?: ethers.Signer
351
+ ): Promise<Contracts.IPrivateERC721URIStorage>;
325
352
  getContractAt(
326
353
  name: "PrivateERC721URIStorage",
327
354
  address: string | ethers.Addressable,
@@ -392,10 +419,18 @@ declare module "hardhat/types/runtime" {
392
419
  name: "ArithmeticTestsContract",
393
420
  signerOrOptions?: ethers.Signer | DeployContractOptions
394
421
  ): Promise<Contracts.ArithmeticTestsContract>;
422
+ deployContract(
423
+ name: "ArithmeticTestsContract",
424
+ signerOrOptions?: ethers.Signer | DeployContractOptions
425
+ ): Promise<Contracts.ArithmeticTestsContract>;
395
426
  deployContract(
396
427
  name: "BitwiseTestsContract",
397
428
  signerOrOptions?: ethers.Signer | DeployContractOptions
398
429
  ): Promise<Contracts.BitwiseTestsContract>;
430
+ deployContract(
431
+ name: "CheckedArithmeticWithOverflowBitTestsContract",
432
+ signerOrOptions?: ethers.Signer | DeployContractOptions
433
+ ): Promise<Contracts.CheckedArithmeticWithOverflowBitTestsContract>;
399
434
  deployContract(
400
435
  name: "Comparison1TestsContract",
401
436
  signerOrOptions?: ethers.Signer | DeployContractOptions
@@ -476,6 +511,10 @@ declare module "hardhat/types/runtime" {
476
511
  name: "PrivateERC20",
477
512
  signerOrOptions?: ethers.Signer | DeployContractOptions
478
513
  ): Promise<Contracts.PrivateERC20>;
514
+ deployContract(
515
+ name: "IPrivateERC721URIStorage",
516
+ signerOrOptions?: ethers.Signer | DeployContractOptions
517
+ ): Promise<Contracts.IPrivateERC721URIStorage>;
479
518
  deployContract(
480
519
  name: "PrivateERC721URIStorage",
481
520
  signerOrOptions?: ethers.Signer | DeployContractOptions
@@ -552,11 +591,21 @@ declare module "hardhat/types/runtime" {
552
591
  args: any[],
553
592
  signerOrOptions?: ethers.Signer | DeployContractOptions
554
593
  ): Promise<Contracts.ArithmeticTestsContract>;
594
+ deployContract(
595
+ name: "ArithmeticTestsContract",
596
+ args: any[],
597
+ signerOrOptions?: ethers.Signer | DeployContractOptions
598
+ ): Promise<Contracts.ArithmeticTestsContract>;
555
599
  deployContract(
556
600
  name: "BitwiseTestsContract",
557
601
  args: any[],
558
602
  signerOrOptions?: ethers.Signer | DeployContractOptions
559
603
  ): Promise<Contracts.BitwiseTestsContract>;
604
+ deployContract(
605
+ name: "CheckedArithmeticWithOverflowBitTestsContract",
606
+ args: any[],
607
+ signerOrOptions?: ethers.Signer | DeployContractOptions
608
+ ): Promise<Contracts.CheckedArithmeticWithOverflowBitTestsContract>;
560
609
  deployContract(
561
610
  name: "Comparison1TestsContract",
562
611
  args: any[],
@@ -657,6 +706,11 @@ declare module "hardhat/types/runtime" {
657
706
  args: any[],
658
707
  signerOrOptions?: ethers.Signer | DeployContractOptions
659
708
  ): Promise<Contracts.PrivateERC20>;
709
+ deployContract(
710
+ name: "IPrivateERC721URIStorage",
711
+ args: any[],
712
+ signerOrOptions?: ethers.Signer | DeployContractOptions
713
+ ): Promise<Contracts.IPrivateERC721URIStorage>;
660
714
  deployContract(
661
715
  name: "PrivateERC721URIStorage",
662
716
  args: any[],
@@ -30,6 +30,8 @@ export type { ArithmeticTestsContract } from "./contracts/mocks/utils/mpc/Arithm
30
30
  export { ArithmeticTestsContract__factory } from "./factories/contracts/mocks/utils/mpc/ArithmeticTestsContract__factory";
31
31
  export type { BitwiseTestsContract } from "./contracts/mocks/utils/mpc/BitwiseTestsContract";
32
32
  export { BitwiseTestsContract__factory } from "./factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory";
33
+ export type { CheckedArithmeticWithOverflowBitTestsContract } from "./contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/CheckedArithmeticWithOverflowBitTestsContract";
34
+ export { CheckedArithmeticWithOverflowBitTestsContract__factory } from "./factories/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/CheckedArithmeticWithOverflowBitTestsContract__factory";
33
35
  export type { Comparison1TestsContract } from "./contracts/mocks/utils/mpc/Comparison1TestsContract";
34
36
  export { Comparison1TestsContract__factory } from "./factories/contracts/mocks/utils/mpc/Comparison1TestsContract__factory";
35
37
  export type { Comparison2TestsContract } from "./contracts/mocks/utils/mpc/Comparison2TestsContract";
@@ -70,6 +72,8 @@ export type { IPrivateERC20 } from "./contracts/token/PrivateERC20/IPrivateERC20
70
72
  export { IPrivateERC20__factory } from "./factories/contracts/token/PrivateERC20/IPrivateERC20__factory";
71
73
  export type { PrivateERC20 } from "./contracts/token/PrivateERC20/PrivateERC20";
72
74
  export { PrivateERC20__factory } from "./factories/contracts/token/PrivateERC20/PrivateERC20__factory";
75
+ export type { IPrivateERC721URIStorage } from "./contracts/token/PrivateERC721/extensions/IPrivateERC721URIStorage";
76
+ export { IPrivateERC721URIStorage__factory } from "./factories/contracts/token/PrivateERC721/extensions/IPrivateERC721URIStorage__factory";
73
77
  export type { PrivateERC721URIStorage } from "./contracts/token/PrivateERC721/extensions/PrivateERC721URIStorage";
74
78
  export { PrivateERC721URIStorage__factory } from "./factories/contracts/token/PrivateERC721/extensions/PrivateERC721URIStorage__factory";
75
79
  export type { IERC721Errors } from "./contracts/token/PrivateERC721/IERC721Errors";
@@ -1,69 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import type {
5
- BaseContract,
6
- FunctionFragment,
7
- Interface,
8
- ContractRunner,
9
- ContractMethod,
10
- Listener,
11
- } from "ethers";
12
- import type {
13
- TypedContractEvent,
14
- TypedDeferredTopicFilter,
15
- TypedEventLog,
16
- TypedListener,
17
- } from "../../../../common";
18
-
19
- export interface IERC1155ErrorsInterface extends Interface {}
20
-
21
- export interface IERC1155Errors extends BaseContract {
22
- connect(runner?: ContractRunner | null): IERC1155Errors;
23
- waitForDeployment(): Promise<this>;
24
-
25
- interface: IERC1155ErrorsInterface;
26
-
27
- queryFilter<TCEvent extends TypedContractEvent>(
28
- event: TCEvent,
29
- fromBlockOrBlockhash?: string | number | undefined,
30
- toBlock?: string | number | undefined
31
- ): Promise<Array<TypedEventLog<TCEvent>>>;
32
- queryFilter<TCEvent extends TypedContractEvent>(
33
- filter: TypedDeferredTopicFilter<TCEvent>,
34
- fromBlockOrBlockhash?: string | number | undefined,
35
- toBlock?: string | number | undefined
36
- ): Promise<Array<TypedEventLog<TCEvent>>>;
37
-
38
- on<TCEvent extends TypedContractEvent>(
39
- event: TCEvent,
40
- listener: TypedListener<TCEvent>
41
- ): Promise<this>;
42
- on<TCEvent extends TypedContractEvent>(
43
- filter: TypedDeferredTopicFilter<TCEvent>,
44
- listener: TypedListener<TCEvent>
45
- ): Promise<this>;
46
-
47
- once<TCEvent extends TypedContractEvent>(
48
- event: TCEvent,
49
- listener: TypedListener<TCEvent>
50
- ): Promise<this>;
51
- once<TCEvent extends TypedContractEvent>(
52
- filter: TypedDeferredTopicFilter<TCEvent>,
53
- listener: TypedListener<TCEvent>
54
- ): Promise<this>;
55
-
56
- listeners<TCEvent extends TypedContractEvent>(
57
- event: TCEvent
58
- ): Promise<Array<TypedListener<TCEvent>>>;
59
- listeners(eventName?: string): Promise<Array<Listener>>;
60
- removeAllListeners<TCEvent extends TypedContractEvent>(
61
- event?: TCEvent
62
- ): Promise<this>;
63
-
64
- getFunction<T extends ContractMethod = ContractMethod>(
65
- key: string | FunctionFragment
66
- ): T;
67
-
68
- filters: {};
69
- }
@@ -1,69 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import type {
5
- BaseContract,
6
- FunctionFragment,
7
- Interface,
8
- ContractRunner,
9
- ContractMethod,
10
- Listener,
11
- } from "ethers";
12
- import type {
13
- TypedContractEvent,
14
- TypedDeferredTopicFilter,
15
- TypedEventLog,
16
- TypedListener,
17
- } from "../../../../common";
18
-
19
- export interface IERC20ErrorsInterface extends Interface {}
20
-
21
- export interface IERC20Errors extends BaseContract {
22
- connect(runner?: ContractRunner | null): IERC20Errors;
23
- waitForDeployment(): Promise<this>;
24
-
25
- interface: IERC20ErrorsInterface;
26
-
27
- queryFilter<TCEvent extends TypedContractEvent>(
28
- event: TCEvent,
29
- fromBlockOrBlockhash?: string | number | undefined,
30
- toBlock?: string | number | undefined
31
- ): Promise<Array<TypedEventLog<TCEvent>>>;
32
- queryFilter<TCEvent extends TypedContractEvent>(
33
- filter: TypedDeferredTopicFilter<TCEvent>,
34
- fromBlockOrBlockhash?: string | number | undefined,
35
- toBlock?: string | number | undefined
36
- ): Promise<Array<TypedEventLog<TCEvent>>>;
37
-
38
- on<TCEvent extends TypedContractEvent>(
39
- event: TCEvent,
40
- listener: TypedListener<TCEvent>
41
- ): Promise<this>;
42
- on<TCEvent extends TypedContractEvent>(
43
- filter: TypedDeferredTopicFilter<TCEvent>,
44
- listener: TypedListener<TCEvent>
45
- ): Promise<this>;
46
-
47
- once<TCEvent extends TypedContractEvent>(
48
- event: TCEvent,
49
- listener: TypedListener<TCEvent>
50
- ): Promise<this>;
51
- once<TCEvent extends TypedContractEvent>(
52
- filter: TypedDeferredTopicFilter<TCEvent>,
53
- listener: TypedListener<TCEvent>
54
- ): Promise<this>;
55
-
56
- listeners<TCEvent extends TypedContractEvent>(
57
- event: TCEvent
58
- ): Promise<Array<TypedListener<TCEvent>>>;
59
- listeners(eventName?: string): Promise<Array<Listener>>;
60
- removeAllListeners<TCEvent extends TypedContractEvent>(
61
- event?: TCEvent
62
- ): Promise<this>;
63
-
64
- getFunction<T extends ContractMethod = ContractMethod>(
65
- key: string | FunctionFragment
66
- ): T;
67
-
68
- filters: {};
69
- }
@@ -1,69 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import type {
5
- BaseContract,
6
- FunctionFragment,
7
- Interface,
8
- ContractRunner,
9
- ContractMethod,
10
- Listener,
11
- } from "ethers";
12
- import type {
13
- TypedContractEvent,
14
- TypedDeferredTopicFilter,
15
- TypedEventLog,
16
- TypedListener,
17
- } from "../../../../common";
18
-
19
- export interface IERC721ErrorsInterface extends Interface {}
20
-
21
- export interface IERC721Errors extends BaseContract {
22
- connect(runner?: ContractRunner | null): IERC721Errors;
23
- waitForDeployment(): Promise<this>;
24
-
25
- interface: IERC721ErrorsInterface;
26
-
27
- queryFilter<TCEvent extends TypedContractEvent>(
28
- event: TCEvent,
29
- fromBlockOrBlockhash?: string | number | undefined,
30
- toBlock?: string | number | undefined
31
- ): Promise<Array<TypedEventLog<TCEvent>>>;
32
- queryFilter<TCEvent extends TypedContractEvent>(
33
- filter: TypedDeferredTopicFilter<TCEvent>,
34
- fromBlockOrBlockhash?: string | number | undefined,
35
- toBlock?: string | number | undefined
36
- ): Promise<Array<TypedEventLog<TCEvent>>>;
37
-
38
- on<TCEvent extends TypedContractEvent>(
39
- event: TCEvent,
40
- listener: TypedListener<TCEvent>
41
- ): Promise<this>;
42
- on<TCEvent extends TypedContractEvent>(
43
- filter: TypedDeferredTopicFilter<TCEvent>,
44
- listener: TypedListener<TCEvent>
45
- ): Promise<this>;
46
-
47
- once<TCEvent extends TypedContractEvent>(
48
- event: TCEvent,
49
- listener: TypedListener<TCEvent>
50
- ): Promise<this>;
51
- once<TCEvent extends TypedContractEvent>(
52
- filter: TypedDeferredTopicFilter<TCEvent>,
53
- listener: TypedListener<TCEvent>
54
- ): Promise<this>;
55
-
56
- listeners<TCEvent extends TypedContractEvent>(
57
- event: TCEvent
58
- ): Promise<Array<TypedListener<TCEvent>>>;
59
- listeners(eventName?: string): Promise<Array<Listener>>;
60
- removeAllListeners<TCEvent extends TypedContractEvent>(
61
- event?: TCEvent
62
- ): Promise<this>;
63
-
64
- getFunction<T extends ContractMethod = ContractMethod>(
65
- key: string | FunctionFragment
66
- ): T;
67
-
68
- filters: {};
69
- }
@@ -1,6 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- export type { IERC1155Errors } from "./IERC1155Errors";
5
- export type { IERC20Errors } from "./IERC20Errors";
6
- export type { IERC721Errors } from "./IERC721Errors";
@@ -1,340 +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 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
- | "getResult"
125
- | "gtTest"
126
- | "leTest"
127
- | "ltTest"
128
- | "setPublicValues"
129
- ): FunctionFragment;
130
-
131
- encodeFunctionData(
132
- functionFragment: "decryptAndCompareResults16",
133
- values: [Comparison1TestsContract.Check16Struct]
134
- ): string;
135
- encodeFunctionData(
136
- functionFragment: "decryptAndCompareResults32",
137
- values: [Comparison1TestsContract.Check32Struct]
138
- ): string;
139
- encodeFunctionData(
140
- functionFragment: "decryptAndCompareResults64",
141
- values: [Comparison1TestsContract.Check64Struct]
142
- ): string;
143
- encodeFunctionData(functionFragment: "getResult", values?: undefined): string;
144
- encodeFunctionData(
145
- functionFragment: "gtTest",
146
- values: [BigNumberish, BigNumberish]
147
- ): string;
148
- encodeFunctionData(
149
- functionFragment: "leTest",
150
- values: [BigNumberish, BigNumberish]
151
- ): string;
152
- encodeFunctionData(
153
- functionFragment: "ltTest",
154
- values: [BigNumberish, BigNumberish]
155
- ): string;
156
- encodeFunctionData(
157
- functionFragment: "setPublicValues",
158
- values: [
159
- Comparison1TestsContract.AllGTCastingValuesStruct,
160
- BigNumberish,
161
- BigNumberish
162
- ]
163
- ): string;
164
-
165
- decodeFunctionResult(
166
- functionFragment: "decryptAndCompareResults16",
167
- data: BytesLike
168
- ): Result;
169
- decodeFunctionResult(
170
- functionFragment: "decryptAndCompareResults32",
171
- data: BytesLike
172
- ): Result;
173
- decodeFunctionResult(
174
- functionFragment: "decryptAndCompareResults64",
175
- data: BytesLike
176
- ): Result;
177
- decodeFunctionResult(functionFragment: "getResult", data: BytesLike): Result;
178
- decodeFunctionResult(functionFragment: "gtTest", data: BytesLike): Result;
179
- decodeFunctionResult(functionFragment: "leTest", data: BytesLike): Result;
180
- decodeFunctionResult(functionFragment: "ltTest", data: BytesLike): Result;
181
- decodeFunctionResult(
182
- functionFragment: "setPublicValues",
183
- data: BytesLike
184
- ): Result;
185
- }
186
-
187
- export interface Comparison1TestsContract extends BaseContract {
188
- connect(runner?: ContractRunner | null): Comparison1TestsContract;
189
- waitForDeployment(): Promise<this>;
190
-
191
- interface: Comparison1TestsContractInterface;
192
-
193
- queryFilter<TCEvent extends TypedContractEvent>(
194
- event: TCEvent,
195
- fromBlockOrBlockhash?: string | number | undefined,
196
- toBlock?: string | number | undefined
197
- ): Promise<Array<TypedEventLog<TCEvent>>>;
198
- queryFilter<TCEvent extends TypedContractEvent>(
199
- filter: TypedDeferredTopicFilter<TCEvent>,
200
- fromBlockOrBlockhash?: string | number | undefined,
201
- toBlock?: string | number | undefined
202
- ): Promise<Array<TypedEventLog<TCEvent>>>;
203
-
204
- on<TCEvent extends TypedContractEvent>(
205
- event: TCEvent,
206
- listener: TypedListener<TCEvent>
207
- ): Promise<this>;
208
- on<TCEvent extends TypedContractEvent>(
209
- filter: TypedDeferredTopicFilter<TCEvent>,
210
- listener: TypedListener<TCEvent>
211
- ): Promise<this>;
212
-
213
- once<TCEvent extends TypedContractEvent>(
214
- event: TCEvent,
215
- listener: TypedListener<TCEvent>
216
- ): Promise<this>;
217
- once<TCEvent extends TypedContractEvent>(
218
- filter: TypedDeferredTopicFilter<TCEvent>,
219
- listener: TypedListener<TCEvent>
220
- ): Promise<this>;
221
-
222
- listeners<TCEvent extends TypedContractEvent>(
223
- event: TCEvent
224
- ): Promise<Array<TypedListener<TCEvent>>>;
225
- listeners(eventName?: string): Promise<Array<Listener>>;
226
- removeAllListeners<TCEvent extends TypedContractEvent>(
227
- event?: TCEvent
228
- ): Promise<this>;
229
-
230
- decryptAndCompareResults16: TypedContractMethod<
231
- [check16: Comparison1TestsContract.Check16Struct],
232
- [boolean],
233
- "nonpayable"
234
- >;
235
-
236
- decryptAndCompareResults32: TypedContractMethod<
237
- [check32: Comparison1TestsContract.Check32Struct],
238
- [boolean],
239
- "nonpayable"
240
- >;
241
-
242
- decryptAndCompareResults64: TypedContractMethod<
243
- [check64: Comparison1TestsContract.Check64Struct],
244
- [boolean],
245
- "nonpayable"
246
- >;
247
-
248
- getResult: TypedContractMethod<[], [boolean], "view">;
249
-
250
- gtTest: TypedContractMethod<
251
- [a: BigNumberish, b: BigNumberish],
252
- [boolean],
253
- "nonpayable"
254
- >;
255
-
256
- leTest: TypedContractMethod<
257
- [a: BigNumberish, b: BigNumberish],
258
- [boolean],
259
- "nonpayable"
260
- >;
261
-
262
- ltTest: TypedContractMethod<
263
- [a: BigNumberish, b: BigNumberish],
264
- [boolean],
265
- "nonpayable"
266
- >;
267
-
268
- setPublicValues: TypedContractMethod<
269
- [
270
- castingValues: Comparison1TestsContract.AllGTCastingValuesStruct,
271
- a: BigNumberish,
272
- b: BigNumberish
273
- ],
274
- [void],
275
- "nonpayable"
276
- >;
277
-
278
- getFunction<T extends ContractMethod = ContractMethod>(
279
- key: string | FunctionFragment
280
- ): T;
281
-
282
- getFunction(
283
- nameOrSignature: "decryptAndCompareResults16"
284
- ): TypedContractMethod<
285
- [check16: Comparison1TestsContract.Check16Struct],
286
- [boolean],
287
- "nonpayable"
288
- >;
289
- getFunction(
290
- nameOrSignature: "decryptAndCompareResults32"
291
- ): TypedContractMethod<
292
- [check32: Comparison1TestsContract.Check32Struct],
293
- [boolean],
294
- "nonpayable"
295
- >;
296
- getFunction(
297
- nameOrSignature: "decryptAndCompareResults64"
298
- ): TypedContractMethod<
299
- [check64: Comparison1TestsContract.Check64Struct],
300
- [boolean],
301
- "nonpayable"
302
- >;
303
- getFunction(
304
- nameOrSignature: "getResult"
305
- ): TypedContractMethod<[], [boolean], "view">;
306
- getFunction(
307
- nameOrSignature: "gtTest"
308
- ): TypedContractMethod<
309
- [a: BigNumberish, b: BigNumberish],
310
- [boolean],
311
- "nonpayable"
312
- >;
313
- getFunction(
314
- nameOrSignature: "leTest"
315
- ): TypedContractMethod<
316
- [a: BigNumberish, b: BigNumberish],
317
- [boolean],
318
- "nonpayable"
319
- >;
320
- getFunction(
321
- nameOrSignature: "ltTest"
322
- ): TypedContractMethod<
323
- [a: BigNumberish, b: BigNumberish],
324
- [boolean],
325
- "nonpayable"
326
- >;
327
- getFunction(
328
- nameOrSignature: "setPublicValues"
329
- ): TypedContractMethod<
330
- [
331
- castingValues: Comparison1TestsContract.AllGTCastingValuesStruct,
332
- a: BigNumberish,
333
- b: BigNumberish
334
- ],
335
- [void],
336
- "nonpayable"
337
- >;
338
-
339
- filters: {};
340
- }