@coti-io/coti-contracts 0.1.0 → 1.0.2

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 (125) hide show
  1. package/.github/workflows/npm-publish.yml +2 -1
  2. package/CONTRIBUTING.md +2 -2
  3. package/LICENSE +1 -1
  4. package/README.md +18 -35
  5. package/contracts/access/DataPrivacyFramework/extensions/DataPrivacyFrameworkMpc.sol +3 -115
  6. package/contracts/mocks/README.md +1 -1
  7. package/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol +257 -280
  8. package/contracts/mocks/utils/mpc/BitwiseTestsContract.sol +93 -187
  9. package/contracts/mocks/utils/mpc/{Comparison1Tests.Contract.sol → Comparison1TestsContract.sol} +67 -115
  10. package/contracts/mocks/utils/mpc/Comparison2TestsContract.sol +76 -116
  11. package/contracts/mocks/utils/mpc/MinMaxTestsContract.sol +69 -164
  12. package/contracts/mocks/utils/mpc/Miscellaneous1TestsContract.sol +103 -56
  13. package/contracts/mocks/utils/mpc/MiscellaneousTestsContract.sol +270 -0
  14. package/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract.sol +127 -0
  15. package/contracts/mocks/utils/mpc/README.md +12 -12
  16. package/contracts/mocks/utils/mpc/TransferScalarTestsContract.sol +54 -211
  17. package/contracts/mocks/utils/mpc/TransferTestsContract.sol +165 -640
  18. package/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract.sol +222 -0
  19. package/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract.sol +222 -0
  20. package/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol +223 -0
  21. package/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract.sol +222 -0
  22. package/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract.sol +265 -0
  23. package/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol +281 -0
  24. package/contracts/onboard/AccountOnboard.sol +3 -3
  25. package/contracts/token/PrivateERC20/PrivateERC20.sol +1 -1
  26. package/contracts/token/PrivateERC721/IERC721Errors.sol +57 -0
  27. package/contracts/token/PrivateERC721/PrivateERC721.sol +1 -1
  28. package/contracts/utils/mpc/MpcCore.sol +2835 -988
  29. package/contracts/utils/mpc/MpcInterface.sol +6 -4
  30. package/hardhat.config.ts +17 -6
  31. package/package.json +20 -4
  32. package/test/token/PrivateERC20/PrivateERC20.test.ts +2 -2
  33. package/test/utils/accounts.ts +1 -1
  34. package/test/utils/mpc/Precompile.test.ts +42 -39
  35. package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/ArithmeticTestsContract.ts +374 -0
  36. package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract.ts +374 -0
  37. package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/index.ts +5 -0
  38. package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.ts +96 -10
  39. package/typechain-types/contracts/mocks/utils/mpc/BitwiseTestsContract.ts +45 -5
  40. package/typechain-types/contracts/mocks/utils/mpc/Comparison1TestsContract.ts +374 -0
  41. package/typechain-types/contracts/mocks/utils/mpc/Comparison2TestsContract.ts +45 -5
  42. package/typechain-types/contracts/mocks/utils/mpc/MinMaxTestsContract.ts +25 -5
  43. package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous1TestsContract.ts +62 -0
  44. package/typechain-types/contracts/mocks/utils/mpc/MiscellaneousTestsContract.ts +396 -0
  45. package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract.ts +251 -0
  46. package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract.ts +11 -8
  47. package/typechain-types/contracts/mocks/utils/mpc/TransferScalarTestsContract.ts +15 -15
  48. package/typechain-types/contracts/mocks/utils/mpc/TransferTestsContract.ts +15 -15
  49. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract.ts +251 -0
  50. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract.ts +250 -0
  51. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +5 -0
  52. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.ts +389 -0
  53. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract.ts +391 -0
  54. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract.ts +391 -0
  55. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract.ts +391 -0
  56. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract.ts +391 -0
  57. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +5 -0
  58. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.ts +391 -0
  59. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract.ts +391 -0
  60. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract.ts +306 -0
  61. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract.ts +125 -0
  62. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract.ts +125 -0
  63. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +5 -0
  64. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.ts +296 -0
  65. package/typechain-types/contracts/mocks/utils/mpc/index.ts +9 -6
  66. package/typechain-types/contracts/onboard/AccountOnboard.ts +9 -4
  67. package/typechain-types/contracts/token/PrivateERC721/IERC721Errors.ts +69 -0
  68. package/typechain-types/contracts/token/PrivateERC721/index.ts +1 -0
  69. package/typechain-types/contracts/utils/mpc/MpcCore.ts +84 -0
  70. package/typechain-types/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations.ts +81 -40
  71. package/typechain-types/contracts/utils/mpc/index.ts +1 -0
  72. package/typechain-types/factories/contracts/mocks/access/DataPrivacyFramework/DataPrivacyFrameworkMock__factory.ts +1 -1
  73. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20Mock__factory.ts +1 -1
  74. package/typechain-types/factories/contracts/mocks/token/PrivateERC721/PrivateERC721URIStorageMock__factory.ts +1 -1
  75. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/ArithmeticTestsContract__factory.ts +387 -0
  76. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract__factory.ts +388 -0
  77. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/index.ts +5 -0
  78. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract__factory.ts +92 -7
  79. package/typechain-types/factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory.ts +38 -2
  80. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/Comparison1TestsContract__factory.ts +1 -1
  81. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1TestsContract__factory.ts +387 -0
  82. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison2TestsContract__factory.ts +38 -2
  83. package/typechain-types/factories/contracts/mocks/utils/mpc/MinMaxTestsContract__factory.ts +15 -2
  84. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous1TestsContract__factory.ts +66 -1
  85. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous2TestsContract__factory.ts +1 -1
  86. package/typechain-types/factories/contracts/mocks/utils/mpc/MiscellaneousTestsContract__factory.ts +424 -0
  87. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract__factory.ts +285 -0
  88. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract__factory.ts +19 -3
  89. package/typechain-types/factories/contracts/mocks/utils/mpc/ShiftTestsContract__factory.ts +1 -1
  90. package/typechain-types/factories/contracts/mocks/utils/mpc/StringTestsContract__factory.ts +1 -1
  91. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferScalarTestsContract__factory.ts +4 -4
  92. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferTestsContract__factory.ts +4 -4
  93. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract__factory.ts +294 -0
  94. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +292 -0
  95. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +5 -0
  96. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract__factory.ts +720 -0
  97. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract__factory.ts +724 -0
  98. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract__factory.ts +724 -0
  99. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract__factory.ts +724 -0
  100. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract__factory.ts +724 -0
  101. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +5 -0
  102. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract__factory.ts +724 -0
  103. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract__factory.ts +724 -0
  104. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract__factory.ts +507 -0
  105. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract__factory.ts +150 -0
  106. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +150 -0
  107. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +5 -0
  108. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract__factory.ts +434 -0
  109. package/typechain-types/factories/contracts/mocks/utils/mpc/index.ts +9 -4
  110. package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock__factory.ts +1 -1
  111. package/typechain-types/factories/contracts/onboard/AccountOnboard__factory.ts +8 -2
  112. package/typechain-types/factories/contracts/token/PrivateERC721/IERC721Errors__factory.ts +128 -0
  113. package/typechain-types/factories/contracts/token/PrivateERC721/index.ts +1 -0
  114. package/typechain-types/factories/contracts/utils/mpc/MpcCore__factory.ts +77 -0
  115. package/typechain-types/factories/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations__factory.ts +124 -61
  116. package/typechain-types/factories/contracts/utils/mpc/index.ts +1 -0
  117. package/typechain-types/hardhat.d.ts +152 -26
  118. package/typechain-types/index.ts +20 -8
  119. package/contracts/access/DataPrivacyFramework/README.md +0 -68
  120. package/contracts/mocks/utils/mpc/Miscellaneous2TestsContract.sol +0 -448
  121. package/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol +0 -81
  122. package/contracts/mocks/utils/mpc/ShiftTestsContract.sol +0 -311
  123. package/contracts/token/PrivateERC20/README.md +0 -104
  124. package/contracts/token/PrivateERC721/README.md +0 -282
  125. package/contracts/utils/mpc/README.md +0 -82
@@ -56,15 +56,15 @@ export declare namespace TransferScalarTestsContract {
56
56
  export interface TransferScalarTestsContractInterface extends Interface {
57
57
  getFunction(
58
58
  nameOrSignature:
59
- | "computeAndChekTransfer16"
60
- | "computeAndChekTransfer32"
61
- | "computeAndChekTransfer64"
59
+ | "computeAndCheckTransfer16"
60
+ | "computeAndCheckTransfer32"
61
+ | "computeAndCheckTransfer64"
62
62
  | "getResults"
63
63
  | "transferScalarTest"
64
64
  ): FunctionFragment;
65
65
 
66
66
  encodeFunctionData(
67
- functionFragment: "computeAndChekTransfer16",
67
+ functionFragment: "computeAndCheckTransfer16",
68
68
  values: [
69
69
  TransferScalarTestsContract.AllGTCastingValuesStruct,
70
70
  BigNumberish,
@@ -74,7 +74,7 @@ export interface TransferScalarTestsContractInterface extends Interface {
74
74
  ]
75
75
  ): string;
76
76
  encodeFunctionData(
77
- functionFragment: "computeAndChekTransfer32",
77
+ functionFragment: "computeAndCheckTransfer32",
78
78
  values: [
79
79
  TransferScalarTestsContract.AllGTCastingValuesStruct,
80
80
  BigNumberish,
@@ -84,7 +84,7 @@ export interface TransferScalarTestsContractInterface extends Interface {
84
84
  ]
85
85
  ): string;
86
86
  encodeFunctionData(
87
- functionFragment: "computeAndChekTransfer64",
87
+ functionFragment: "computeAndCheckTransfer64",
88
88
  values: [
89
89
  TransferScalarTestsContract.AllGTCastingValuesStruct,
90
90
  BigNumberish,
@@ -103,15 +103,15 @@ export interface TransferScalarTestsContractInterface extends Interface {
103
103
  ): string;
104
104
 
105
105
  decodeFunctionResult(
106
- functionFragment: "computeAndChekTransfer16",
106
+ functionFragment: "computeAndCheckTransfer16",
107
107
  data: BytesLike
108
108
  ): Result;
109
109
  decodeFunctionResult(
110
- functionFragment: "computeAndChekTransfer32",
110
+ functionFragment: "computeAndCheckTransfer32",
111
111
  data: BytesLike
112
112
  ): Result;
113
113
  decodeFunctionResult(
114
- functionFragment: "computeAndChekTransfer64",
114
+ functionFragment: "computeAndCheckTransfer64",
115
115
  data: BytesLike
116
116
  ): Result;
117
117
  decodeFunctionResult(functionFragment: "getResults", data: BytesLike): Result;
@@ -164,7 +164,7 @@ export interface TransferScalarTestsContract extends BaseContract {
164
164
  event?: TCEvent
165
165
  ): Promise<this>;
166
166
 
167
- computeAndChekTransfer16: TypedContractMethod<
167
+ computeAndCheckTransfer16: TypedContractMethod<
168
168
  [
169
169
  allGTCastingValues: TransferScalarTestsContract.AllGTCastingValuesStruct,
170
170
  new_a: BigNumberish,
@@ -176,7 +176,7 @@ export interface TransferScalarTestsContract extends BaseContract {
176
176
  "nonpayable"
177
177
  >;
178
178
 
179
- computeAndChekTransfer32: TypedContractMethod<
179
+ computeAndCheckTransfer32: TypedContractMethod<
180
180
  [
181
181
  allGTCastingValues: TransferScalarTestsContract.AllGTCastingValuesStruct,
182
182
  new_a: BigNumberish,
@@ -188,7 +188,7 @@ export interface TransferScalarTestsContract extends BaseContract {
188
188
  "nonpayable"
189
189
  >;
190
190
 
191
- computeAndChekTransfer64: TypedContractMethod<
191
+ computeAndCheckTransfer64: TypedContractMethod<
192
192
  [
193
193
  allGTCastingValues: TransferScalarTestsContract.AllGTCastingValuesStruct,
194
194
  new_a: BigNumberish,
@@ -213,7 +213,7 @@ export interface TransferScalarTestsContract extends BaseContract {
213
213
  ): T;
214
214
 
215
215
  getFunction(
216
- nameOrSignature: "computeAndChekTransfer16"
216
+ nameOrSignature: "computeAndCheckTransfer16"
217
217
  ): TypedContractMethod<
218
218
  [
219
219
  allGTCastingValues: TransferScalarTestsContract.AllGTCastingValuesStruct,
@@ -226,7 +226,7 @@ export interface TransferScalarTestsContract extends BaseContract {
226
226
  "nonpayable"
227
227
  >;
228
228
  getFunction(
229
- nameOrSignature: "computeAndChekTransfer32"
229
+ nameOrSignature: "computeAndCheckTransfer32"
230
230
  ): TypedContractMethod<
231
231
  [
232
232
  allGTCastingValues: TransferScalarTestsContract.AllGTCastingValuesStruct,
@@ -239,7 +239,7 @@ export interface TransferScalarTestsContract extends BaseContract {
239
239
  "nonpayable"
240
240
  >;
241
241
  getFunction(
242
- nameOrSignature: "computeAndChekTransfer64"
242
+ nameOrSignature: "computeAndCheckTransfer64"
243
243
  ): TypedContractMethod<
244
244
  [
245
245
  allGTCastingValues: TransferScalarTestsContract.AllGTCastingValuesStruct,
@@ -78,15 +78,15 @@ export declare namespace TransferTestsContract {
78
78
  export interface TransferTestsContractInterface extends Interface {
79
79
  getFunction(
80
80
  nameOrSignature:
81
- | "computeAndChekTransfer16"
82
- | "computeAndChekTransfer32"
83
- | "computeAndChekTransfer64"
81
+ | "computeAndCheckTransfer16"
82
+ | "computeAndCheckTransfer32"
83
+ | "computeAndCheckTransfer64"
84
84
  | "getResults"
85
85
  | "transferTest"
86
86
  ): FunctionFragment;
87
87
 
88
88
  encodeFunctionData(
89
- functionFragment: "computeAndChekTransfer16",
89
+ functionFragment: "computeAndCheckTransfer16",
90
90
  values: [
91
91
  TransferTestsContract.AllGTCastingValuesStruct,
92
92
  TransferTestsContract.AllAmountValuesStruct,
@@ -96,7 +96,7 @@ export interface TransferTestsContractInterface extends Interface {
96
96
  ]
97
97
  ): string;
98
98
  encodeFunctionData(
99
- functionFragment: "computeAndChekTransfer32",
99
+ functionFragment: "computeAndCheckTransfer32",
100
100
  values: [
101
101
  TransferTestsContract.AllGTCastingValuesStruct,
102
102
  TransferTestsContract.AllAmountValuesStruct,
@@ -106,7 +106,7 @@ export interface TransferTestsContractInterface extends Interface {
106
106
  ]
107
107
  ): string;
108
108
  encodeFunctionData(
109
- functionFragment: "computeAndChekTransfer64",
109
+ functionFragment: "computeAndCheckTransfer64",
110
110
  values: [
111
111
  TransferTestsContract.AllGTCastingValuesStruct,
112
112
  TransferTestsContract.AllAmountValuesStruct,
@@ -125,15 +125,15 @@ export interface TransferTestsContractInterface extends Interface {
125
125
  ): string;
126
126
 
127
127
  decodeFunctionResult(
128
- functionFragment: "computeAndChekTransfer16",
128
+ functionFragment: "computeAndCheckTransfer16",
129
129
  data: BytesLike
130
130
  ): Result;
131
131
  decodeFunctionResult(
132
- functionFragment: "computeAndChekTransfer32",
132
+ functionFragment: "computeAndCheckTransfer32",
133
133
  data: BytesLike
134
134
  ): Result;
135
135
  decodeFunctionResult(
136
- functionFragment: "computeAndChekTransfer64",
136
+ functionFragment: "computeAndCheckTransfer64",
137
137
  data: BytesLike
138
138
  ): Result;
139
139
  decodeFunctionResult(functionFragment: "getResults", data: BytesLike): Result;
@@ -186,7 +186,7 @@ export interface TransferTestsContract extends BaseContract {
186
186
  event?: TCEvent
187
187
  ): Promise<this>;
188
188
 
189
- computeAndChekTransfer16: TypedContractMethod<
189
+ computeAndCheckTransfer16: TypedContractMethod<
190
190
  [
191
191
  allGTCastingValues: TransferTestsContract.AllGTCastingValuesStruct,
192
192
  allAmountValues: TransferTestsContract.AllAmountValuesStruct,
@@ -198,7 +198,7 @@ export interface TransferTestsContract extends BaseContract {
198
198
  "nonpayable"
199
199
  >;
200
200
 
201
- computeAndChekTransfer32: TypedContractMethod<
201
+ computeAndCheckTransfer32: TypedContractMethod<
202
202
  [
203
203
  allGTCastingValues: TransferTestsContract.AllGTCastingValuesStruct,
204
204
  allAmountValues: TransferTestsContract.AllAmountValuesStruct,
@@ -210,7 +210,7 @@ export interface TransferTestsContract extends BaseContract {
210
210
  "nonpayable"
211
211
  >;
212
212
 
213
- computeAndChekTransfer64: TypedContractMethod<
213
+ computeAndCheckTransfer64: TypedContractMethod<
214
214
  [
215
215
  allGTCastingValues: TransferTestsContract.AllGTCastingValuesStruct,
216
216
  allAmountValues: TransferTestsContract.AllAmountValuesStruct,
@@ -235,7 +235,7 @@ export interface TransferTestsContract extends BaseContract {
235
235
  ): T;
236
236
 
237
237
  getFunction(
238
- nameOrSignature: "computeAndChekTransfer16"
238
+ nameOrSignature: "computeAndCheckTransfer16"
239
239
  ): TypedContractMethod<
240
240
  [
241
241
  allGTCastingValues: TransferTestsContract.AllGTCastingValuesStruct,
@@ -248,7 +248,7 @@ export interface TransferTestsContract extends BaseContract {
248
248
  "nonpayable"
249
249
  >;
250
250
  getFunction(
251
- nameOrSignature: "computeAndChekTransfer32"
251
+ nameOrSignature: "computeAndCheckTransfer32"
252
252
  ): TypedContractMethod<
253
253
  [
254
254
  allGTCastingValues: TransferTestsContract.AllGTCastingValuesStruct,
@@ -261,7 +261,7 @@ export interface TransferTestsContract extends BaseContract {
261
261
  "nonpayable"
262
262
  >;
263
263
  getFunction(
264
- nameOrSignature: "computeAndChekTransfer64"
264
+ nameOrSignature: "computeAndCheckTransfer64"
265
265
  ): TypedContractMethod<
266
266
  [
267
267
  allGTCastingValues: TransferTestsContract.AllGTCastingValuesStruct,
@@ -0,0 +1,251 @@
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 TransferWithAllowance64TestsContract {
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 TransferWithAllowance64TestsContractInterface
101
+ extends Interface {
102
+ getFunction(
103
+ nameOrSignature:
104
+ | "computeAndCheckTransfer64"
105
+ | "getResults"
106
+ | "transferWithAllowanceTest"
107
+ ): FunctionFragment;
108
+
109
+ encodeFunctionData(
110
+ functionFragment: "computeAndCheckTransfer64",
111
+ values: [
112
+ TransferWithAllowance64TestsContract.AllGTCastingValuesStruct,
113
+ TransferWithAllowance64TestsContract.AllAmountValuesStruct,
114
+ TransferWithAllowance64TestsContract.AllAllowanceValuesStruct,
115
+ BigNumberish,
116
+ BigNumberish,
117
+ boolean,
118
+ BigNumberish
119
+ ]
120
+ ): string;
121
+ encodeFunctionData(
122
+ functionFragment: "getResults",
123
+ values?: undefined
124
+ ): string;
125
+ encodeFunctionData(
126
+ functionFragment: "transferWithAllowanceTest",
127
+ values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]
128
+ ): string;
129
+
130
+ decodeFunctionResult(
131
+ functionFragment: "computeAndCheckTransfer64",
132
+ data: BytesLike
133
+ ): Result;
134
+ decodeFunctionResult(functionFragment: "getResults", data: BytesLike): Result;
135
+ decodeFunctionResult(
136
+ functionFragment: "transferWithAllowanceTest",
137
+ data: BytesLike
138
+ ): Result;
139
+ }
140
+
141
+ export interface TransferWithAllowance64TestsContract extends BaseContract {
142
+ connect(runner?: ContractRunner | null): TransferWithAllowance64TestsContract;
143
+ waitForDeployment(): Promise<this>;
144
+
145
+ interface: TransferWithAllowance64TestsContractInterface;
146
+
147
+ queryFilter<TCEvent extends TypedContractEvent>(
148
+ event: TCEvent,
149
+ fromBlockOrBlockhash?: string | number | undefined,
150
+ toBlock?: string | number | undefined
151
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
152
+ queryFilter<TCEvent extends TypedContractEvent>(
153
+ filter: TypedDeferredTopicFilter<TCEvent>,
154
+ fromBlockOrBlockhash?: string | number | undefined,
155
+ toBlock?: string | number | undefined
156
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
157
+
158
+ on<TCEvent extends TypedContractEvent>(
159
+ event: TCEvent,
160
+ listener: TypedListener<TCEvent>
161
+ ): Promise<this>;
162
+ on<TCEvent extends TypedContractEvent>(
163
+ filter: TypedDeferredTopicFilter<TCEvent>,
164
+ listener: TypedListener<TCEvent>
165
+ ): Promise<this>;
166
+
167
+ once<TCEvent extends TypedContractEvent>(
168
+ event: TCEvent,
169
+ listener: TypedListener<TCEvent>
170
+ ): Promise<this>;
171
+ once<TCEvent extends TypedContractEvent>(
172
+ filter: TypedDeferredTopicFilter<TCEvent>,
173
+ listener: TypedListener<TCEvent>
174
+ ): Promise<this>;
175
+
176
+ listeners<TCEvent extends TypedContractEvent>(
177
+ event: TCEvent
178
+ ): Promise<Array<TypedListener<TCEvent>>>;
179
+ listeners(eventName?: string): Promise<Array<Listener>>;
180
+ removeAllListeners<TCEvent extends TypedContractEvent>(
181
+ event?: TCEvent
182
+ ): Promise<this>;
183
+
184
+ computeAndCheckTransfer64: TypedContractMethod<
185
+ [
186
+ allGTCastingValues: TransferWithAllowance64TestsContract.AllGTCastingValuesStruct,
187
+ allAmountValues: TransferWithAllowance64TestsContract.AllAmountValuesStruct,
188
+ allAllowanceValues: TransferWithAllowance64TestsContract.AllAllowanceValuesStruct,
189
+ new_a: BigNumberish,
190
+ new_b: BigNumberish,
191
+ res: boolean,
192
+ new_allowance: BigNumberish
193
+ ],
194
+ [void],
195
+ "nonpayable"
196
+ >;
197
+
198
+ getResults: TypedContractMethod<
199
+ [],
200
+ [[bigint, bigint, boolean, bigint]],
201
+ "view"
202
+ >;
203
+
204
+ transferWithAllowanceTest: TypedContractMethod<
205
+ [
206
+ a: BigNumberish,
207
+ b: BigNumberish,
208
+ amount: BigNumberish,
209
+ allowance: BigNumberish
210
+ ],
211
+ [[bigint, bigint, boolean, bigint]],
212
+ "nonpayable"
213
+ >;
214
+
215
+ getFunction<T extends ContractMethod = ContractMethod>(
216
+ key: string | FunctionFragment
217
+ ): T;
218
+
219
+ getFunction(
220
+ nameOrSignature: "computeAndCheckTransfer64"
221
+ ): TypedContractMethod<
222
+ [
223
+ allGTCastingValues: TransferWithAllowance64TestsContract.AllGTCastingValuesStruct,
224
+ allAmountValues: TransferWithAllowance64TestsContract.AllAmountValuesStruct,
225
+ allAllowanceValues: TransferWithAllowance64TestsContract.AllAllowanceValuesStruct,
226
+ new_a: BigNumberish,
227
+ new_b: BigNumberish,
228
+ res: boolean,
229
+ new_allowance: BigNumberish
230
+ ],
231
+ [void],
232
+ "nonpayable"
233
+ >;
234
+ getFunction(
235
+ nameOrSignature: "getResults"
236
+ ): TypedContractMethod<[], [[bigint, bigint, boolean, bigint]], "view">;
237
+ getFunction(
238
+ nameOrSignature: "transferWithAllowanceTest"
239
+ ): TypedContractMethod<
240
+ [
241
+ a: BigNumberish,
242
+ b: BigNumberish,
243
+ amount: BigNumberish,
244
+ allowance: BigNumberish
245
+ ],
246
+ [[bigint, bigint, boolean, bigint]],
247
+ "nonpayable"
248
+ >;
249
+
250
+ filters: {};
251
+ }