@coti-io/coti-contracts 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/.github/workflows/npm-publish.yml +52 -0
  2. package/CODE_OF_CONDUCT.md +44 -0
  3. package/CONTRIBUTING.md +101 -0
  4. package/LICENSE +201 -0
  5. package/README.md +48 -0
  6. package/contracts/access/DataPrivacyFramework/DataPrivacyFramework.sol +480 -0
  7. package/contracts/access/DataPrivacyFramework/README.md +68 -0
  8. package/contracts/access/DataPrivacyFramework/extensions/DataPrivacyFrameworkMpc.sol +1139 -0
  9. package/contracts/mocks/README.md +5 -0
  10. package/contracts/mocks/access/DataPrivacyFramework/DataPrivacyFrameworkMock.sol +9 -0
  11. package/contracts/mocks/token/PrivateERC20/PrivateERC20Mock.sol +17 -0
  12. package/contracts/mocks/token/PrivateERC721/PrivateERC721URIStorageMock.sol +34 -0
  13. package/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol +431 -0
  14. package/contracts/mocks/utils/mpc/BitwiseTestsContract.sol +361 -0
  15. package/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol +307 -0
  16. package/contracts/mocks/utils/mpc/Comparison2TestsContract.sol +307 -0
  17. package/contracts/mocks/utils/mpc/MinMaxTestsContract.sol +297 -0
  18. package/contracts/mocks/utils/mpc/Miscellaneous1TestsContract.sol +185 -0
  19. package/contracts/mocks/utils/mpc/Miscellaneous2TestsContract.sol +448 -0
  20. package/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol +81 -0
  21. package/contracts/mocks/utils/mpc/README.md +486 -0
  22. package/contracts/mocks/utils/mpc/ShiftTestsContract.sol +311 -0
  23. package/contracts/mocks/utils/mpc/StringTestsContract.sol +59 -0
  24. package/contracts/mocks/utils/mpc/TransferScalarTestsContract.sol +271 -0
  25. package/contracts/mocks/utils/mpc/TransferTestsContract.sol +715 -0
  26. package/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock.sol +25 -0
  27. package/contracts/onboard/AccountOnboard.sol +21 -0
  28. package/contracts/onboard/README.md +65 -0
  29. package/contracts/package.json +11 -0
  30. package/contracts/token/PrivateERC20/IPrivateERC20.sol +142 -0
  31. package/contracts/token/PrivateERC20/PrivateERC20.sol +478 -0
  32. package/contracts/token/PrivateERC20/README.md +104 -0
  33. package/contracts/token/PrivateERC721/PrivateERC721.sol +458 -0
  34. package/contracts/token/PrivateERC721/README.md +282 -0
  35. package/contracts/token/PrivateERC721/extensions/PrivateERC721URIStorage.sol +87 -0
  36. package/contracts/utils/mpc/MpcCore.sol +3215 -0
  37. package/contracts/utils/mpc/MpcInterface.sol +41 -0
  38. package/contracts/utils/mpc/README.md +82 -0
  39. package/hardhat.config.ts +18 -0
  40. package/package.json +14 -0
  41. package/test/access/DataPrivacyFramework/DataPrivacyFramework.test.ts +780 -0
  42. package/test/onboard/AccountOnboard.test.ts +45 -0
  43. package/test/token/PrivateERC20/PrivateERC20.test.ts +546 -0
  44. package/test/token/PrivateERC721/PrivateERC721.test.ts +223 -0
  45. package/test/utils/accounts.ts +55 -0
  46. package/test/utils/mpc/Precompile.test.ts +113 -0
  47. package/test/utils/mpc/String.test.ts +227 -0
  48. package/tsconfig.json +11 -0
  49. package/typechain-types/@openzeppelin/contracts/index.ts +9 -0
  50. package/typechain-types/@openzeppelin/contracts/interfaces/IERC4906.ts +462 -0
  51. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.ts +69 -0
  52. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.ts +69 -0
  53. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.ts +69 -0
  54. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +6 -0
  55. package/typechain-types/@openzeppelin/contracts/interfaces/index.ts +6 -0
  56. package/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.ts +393 -0
  57. package/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721Receiver.ts +110 -0
  58. package/typechain-types/@openzeppelin/contracts/token/ERC721/index.ts +5 -0
  59. package/typechain-types/@openzeppelin/contracts/token/index.ts +5 -0
  60. package/typechain-types/@openzeppelin/contracts/utils/index.ts +5 -0
  61. package/typechain-types/@openzeppelin/contracts/utils/introspection/ERC165.ts +94 -0
  62. package/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.ts +94 -0
  63. package/typechain-types/@openzeppelin/contracts/utils/introspection/index.ts +5 -0
  64. package/typechain-types/@openzeppelin/index.ts +5 -0
  65. package/typechain-types/common.ts +131 -0
  66. package/typechain-types/contracts/access/DataPrivacyFramework/DataPrivacyFramework.ts +598 -0
  67. package/typechain-types/contracts/access/DataPrivacyFramework/extensions/DataPrivacyFrameworkMpc.ts +598 -0
  68. package/typechain-types/contracts/access/DataPrivacyFramework/extensions/index.ts +4 -0
  69. package/typechain-types/contracts/access/DataPrivacyFramework/index.ts +6 -0
  70. package/typechain-types/contracts/access/index.ts +5 -0
  71. package/typechain-types/contracts/index.ts +13 -0
  72. package/typechain-types/contracts/mocks/access/DataPrivacyFramework/DataPrivacyFrameworkMock.ts +598 -0
  73. package/typechain-types/contracts/mocks/access/DataPrivacyFramework/index.ts +4 -0
  74. package/typechain-types/contracts/mocks/access/index.ts +5 -0
  75. package/typechain-types/contracts/mocks/index.ts +11 -0
  76. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20Mock.ts +543 -0
  77. package/typechain-types/contracts/mocks/token/PrivateERC20/index.ts +4 -0
  78. package/typechain-types/contracts/mocks/token/PrivateERC721/PrivateERC721URIStorageMock.ts +576 -0
  79. package/typechain-types/contracts/mocks/token/PrivateERC721/index.ts +4 -0
  80. package/typechain-types/contracts/mocks/token/index.ts +7 -0
  81. package/typechain-types/contracts/mocks/utils/index.ts +5 -0
  82. package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.ts +354 -0
  83. package/typechain-types/contracts/mocks/utils/mpc/BitwiseTestsContract.ts +340 -0
  84. package/typechain-types/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/Comparison1TestsContract.ts +340 -0
  85. package/typechain-types/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/index.ts +4 -0
  86. package/typechain-types/contracts/mocks/utils/mpc/Comparison2TestsContract.ts +340 -0
  87. package/typechain-types/contracts/mocks/utils/mpc/MinMaxTestsContract.ts +321 -0
  88. package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous1TestsContract.ts +199 -0
  89. package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous2TestsContract.ts +384 -0
  90. package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract.ts +218 -0
  91. package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/index.ts +4 -0
  92. package/typechain-types/contracts/mocks/utils/mpc/ShiftTestsContract.ts +339 -0
  93. package/typechain-types/contracts/mocks/utils/mpc/StringTestsContract.ts +211 -0
  94. package/typechain-types/contracts/mocks/utils/mpc/TransferScalarTestsContract.ts +266 -0
  95. package/typechain-types/contracts/mocks/utils/mpc/TransferTestsContract.ts +288 -0
  96. package/typechain-types/contracts/mocks/utils/mpc/index.ts +17 -0
  97. package/typechain-types/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock.ts +173 -0
  98. package/typechain-types/contracts/mocks/wallet/PrivateERC20Wallet/index.ts +4 -0
  99. package/typechain-types/contracts/mocks/wallet/index.ts +5 -0
  100. package/typechain-types/contracts/onboard/AccountOnboard.ts +135 -0
  101. package/typechain-types/contracts/onboard/index.ts +4 -0
  102. package/typechain-types/contracts/token/PrivateERC20/IPrivateERC20.ts +437 -0
  103. package/typechain-types/contracts/token/PrivateERC20/PrivateERC20.ts +505 -0
  104. package/typechain-types/contracts/token/PrivateERC20/index.ts +5 -0
  105. package/typechain-types/contracts/token/PrivateERC721/PrivateERC721.ts +409 -0
  106. package/typechain-types/contracts/token/PrivateERC721/extensions/PrivateERC721URIStorage.ts +501 -0
  107. package/typechain-types/contracts/token/PrivateERC721/extensions/index.ts +4 -0
  108. package/typechain-types/contracts/token/PrivateERC721/index.ts +6 -0
  109. package/typechain-types/contracts/token/index.ts +7 -0
  110. package/typechain-types/contracts/utils/index.ts +5 -0
  111. package/typechain-types/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations.ts +698 -0
  112. package/typechain-types/contracts/utils/mpc/MpcInterface.sol/index.ts +4 -0
  113. package/typechain-types/contracts/utils/mpc/index.ts +5 -0
  114. package/typechain-types/factories/@openzeppelin/contracts/index.ts +6 -0
  115. package/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC4906__factory.ts +339 -0
  116. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts +127 -0
  117. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts +111 -0
  118. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts +128 -0
  119. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +6 -0
  120. package/typechain-types/factories/@openzeppelin/contracts/interfaces/index.ts +5 -0
  121. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.ts +59 -0
  122. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.ts +307 -0
  123. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/index.ts +5 -0
  124. package/typechain-types/factories/@openzeppelin/contracts/token/index.ts +4 -0
  125. package/typechain-types/factories/@openzeppelin/contracts/utils/index.ts +4 -0
  126. package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.ts +41 -0
  127. package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts +41 -0
  128. package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.ts +5 -0
  129. package/typechain-types/factories/@openzeppelin/index.ts +4 -0
  130. package/typechain-types/factories/contracts/access/DataPrivacyFramework/DataPrivacyFramework__factory.ts +621 -0
  131. package/typechain-types/factories/contracts/access/DataPrivacyFramework/extensions/DataPrivacyFrameworkMpc__factory.ts +621 -0
  132. package/typechain-types/factories/contracts/access/DataPrivacyFramework/extensions/index.ts +4 -0
  133. package/typechain-types/factories/contracts/access/DataPrivacyFramework/index.ts +5 -0
  134. package/typechain-types/factories/contracts/access/index.ts +4 -0
  135. package/typechain-types/factories/contracts/index.ts +8 -0
  136. package/typechain-types/factories/contracts/mocks/access/DataPrivacyFramework/DataPrivacyFrameworkMock__factory.ts +670 -0
  137. package/typechain-types/factories/contracts/mocks/access/DataPrivacyFramework/index.ts +4 -0
  138. package/typechain-types/factories/contracts/mocks/access/index.ts +4 -0
  139. package/typechain-types/factories/contracts/mocks/index.ts +7 -0
  140. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20Mock__factory.ts +615 -0
  141. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/index.ts +4 -0
  142. package/typechain-types/factories/contracts/mocks/token/PrivateERC721/PrivateERC721URIStorageMock__factory.ts +630 -0
  143. package/typechain-types/factories/contracts/mocks/token/PrivateERC721/index.ts +4 -0
  144. package/typechain-types/factories/contracts/mocks/token/index.ts +5 -0
  145. package/typechain-types/factories/contracts/mocks/utils/index.ts +4 -0
  146. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract__factory.ts +374 -0
  147. package/typechain-types/factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory.ts +361 -0
  148. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/Comparison1TestsContract__factory.ts +361 -0
  149. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/index.ts +4 -0
  150. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison2TestsContract__factory.ts +361 -0
  151. package/typechain-types/factories/contracts/mocks/utils/mpc/MinMaxTestsContract__factory.ts +337 -0
  152. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous1TestsContract__factory.ts +236 -0
  153. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous2TestsContract__factory.ts +432 -0
  154. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract__factory.ts +245 -0
  155. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/index.ts +4 -0
  156. package/typechain-types/factories/contracts/mocks/utils/mpc/ShiftTestsContract__factory.ts +374 -0
  157. package/typechain-types/factories/contracts/mocks/utils/mpc/StringTestsContract__factory.ts +264 -0
  158. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferScalarTestsContract__factory.ts +360 -0
  159. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferTestsContract__factory.ts +441 -0
  160. package/typechain-types/factories/contracts/mocks/utils/mpc/index.ts +15 -0
  161. package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock__factory.ts +194 -0
  162. package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/index.ts +4 -0
  163. package/typechain-types/factories/contracts/mocks/wallet/index.ts +4 -0
  164. package/typechain-types/factories/contracts/onboard/AccountOnboard__factory.ts +104 -0
  165. package/typechain-types/factories/contracts/onboard/index.ts +4 -0
  166. package/typechain-types/factories/contracts/token/PrivateERC20/IPrivateERC20__factory.ts +406 -0
  167. package/typechain-types/factories/contracts/token/PrivateERC20/PrivateERC20__factory.ts +532 -0
  168. package/typechain-types/factories/contracts/token/PrivateERC20/index.ts +5 -0
  169. package/typechain-types/factories/contracts/token/PrivateERC721/PrivateERC721__factory.ts +439 -0
  170. package/typechain-types/factories/contracts/token/PrivateERC721/extensions/PrivateERC721URIStorage__factory.ts +512 -0
  171. package/typechain-types/factories/contracts/token/PrivateERC721/extensions/index.ts +4 -0
  172. package/typechain-types/factories/contracts/token/PrivateERC721/index.ts +5 -0
  173. package/typechain-types/factories/contracts/token/index.ts +5 -0
  174. package/typechain-types/factories/contracts/utils/index.ts +4 -0
  175. package/typechain-types/factories/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations__factory.ts +919 -0
  176. package/typechain-types/factories/contracts/utils/mpc/MpcInterface.sol/index.ts +4 -0
  177. package/typechain-types/factories/contracts/utils/mpc/index.ts +4 -0
  178. package/typechain-types/factories/index.ts +5 -0
  179. package/typechain-types/hardhat.d.ts +621 -0
  180. package/typechain-types/index.ts +72 -0
@@ -0,0 +1,339 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Interface, type ContractRunner } from "ethers";
6
+ import type {
7
+ IERC4906,
8
+ IERC4906Interface,
9
+ } from "../../../../@openzeppelin/contracts/interfaces/IERC4906";
10
+
11
+ const _abi = [
12
+ {
13
+ anonymous: false,
14
+ inputs: [
15
+ {
16
+ indexed: true,
17
+ internalType: "address",
18
+ name: "owner",
19
+ type: "address",
20
+ },
21
+ {
22
+ indexed: true,
23
+ internalType: "address",
24
+ name: "approved",
25
+ type: "address",
26
+ },
27
+ {
28
+ indexed: true,
29
+ internalType: "uint256",
30
+ name: "tokenId",
31
+ type: "uint256",
32
+ },
33
+ ],
34
+ name: "Approval",
35
+ type: "event",
36
+ },
37
+ {
38
+ anonymous: false,
39
+ inputs: [
40
+ {
41
+ indexed: true,
42
+ internalType: "address",
43
+ name: "owner",
44
+ type: "address",
45
+ },
46
+ {
47
+ indexed: true,
48
+ internalType: "address",
49
+ name: "operator",
50
+ type: "address",
51
+ },
52
+ {
53
+ indexed: false,
54
+ internalType: "bool",
55
+ name: "approved",
56
+ type: "bool",
57
+ },
58
+ ],
59
+ name: "ApprovalForAll",
60
+ type: "event",
61
+ },
62
+ {
63
+ anonymous: false,
64
+ inputs: [
65
+ {
66
+ indexed: false,
67
+ internalType: "uint256",
68
+ name: "_fromTokenId",
69
+ type: "uint256",
70
+ },
71
+ {
72
+ indexed: false,
73
+ internalType: "uint256",
74
+ name: "_toTokenId",
75
+ type: "uint256",
76
+ },
77
+ ],
78
+ name: "BatchMetadataUpdate",
79
+ type: "event",
80
+ },
81
+ {
82
+ anonymous: false,
83
+ inputs: [
84
+ {
85
+ indexed: false,
86
+ internalType: "uint256",
87
+ name: "_tokenId",
88
+ type: "uint256",
89
+ },
90
+ ],
91
+ name: "MetadataUpdate",
92
+ type: "event",
93
+ },
94
+ {
95
+ anonymous: false,
96
+ inputs: [
97
+ {
98
+ indexed: true,
99
+ internalType: "address",
100
+ name: "from",
101
+ type: "address",
102
+ },
103
+ {
104
+ indexed: true,
105
+ internalType: "address",
106
+ name: "to",
107
+ type: "address",
108
+ },
109
+ {
110
+ indexed: true,
111
+ internalType: "uint256",
112
+ name: "tokenId",
113
+ type: "uint256",
114
+ },
115
+ ],
116
+ name: "Transfer",
117
+ type: "event",
118
+ },
119
+ {
120
+ inputs: [
121
+ {
122
+ internalType: "address",
123
+ name: "to",
124
+ type: "address",
125
+ },
126
+ {
127
+ internalType: "uint256",
128
+ name: "tokenId",
129
+ type: "uint256",
130
+ },
131
+ ],
132
+ name: "approve",
133
+ outputs: [],
134
+ stateMutability: "nonpayable",
135
+ type: "function",
136
+ },
137
+ {
138
+ inputs: [
139
+ {
140
+ internalType: "address",
141
+ name: "owner",
142
+ type: "address",
143
+ },
144
+ ],
145
+ name: "balanceOf",
146
+ outputs: [
147
+ {
148
+ internalType: "uint256",
149
+ name: "balance",
150
+ type: "uint256",
151
+ },
152
+ ],
153
+ stateMutability: "view",
154
+ type: "function",
155
+ },
156
+ {
157
+ inputs: [
158
+ {
159
+ internalType: "uint256",
160
+ name: "tokenId",
161
+ type: "uint256",
162
+ },
163
+ ],
164
+ name: "getApproved",
165
+ outputs: [
166
+ {
167
+ internalType: "address",
168
+ name: "operator",
169
+ type: "address",
170
+ },
171
+ ],
172
+ stateMutability: "view",
173
+ type: "function",
174
+ },
175
+ {
176
+ inputs: [
177
+ {
178
+ internalType: "address",
179
+ name: "owner",
180
+ type: "address",
181
+ },
182
+ {
183
+ internalType: "address",
184
+ name: "operator",
185
+ type: "address",
186
+ },
187
+ ],
188
+ name: "isApprovedForAll",
189
+ outputs: [
190
+ {
191
+ internalType: "bool",
192
+ name: "",
193
+ type: "bool",
194
+ },
195
+ ],
196
+ stateMutability: "view",
197
+ type: "function",
198
+ },
199
+ {
200
+ inputs: [
201
+ {
202
+ internalType: "uint256",
203
+ name: "tokenId",
204
+ type: "uint256",
205
+ },
206
+ ],
207
+ name: "ownerOf",
208
+ outputs: [
209
+ {
210
+ internalType: "address",
211
+ name: "owner",
212
+ type: "address",
213
+ },
214
+ ],
215
+ stateMutability: "view",
216
+ type: "function",
217
+ },
218
+ {
219
+ inputs: [
220
+ {
221
+ internalType: "address",
222
+ name: "from",
223
+ type: "address",
224
+ },
225
+ {
226
+ internalType: "address",
227
+ name: "to",
228
+ type: "address",
229
+ },
230
+ {
231
+ internalType: "uint256",
232
+ name: "tokenId",
233
+ type: "uint256",
234
+ },
235
+ ],
236
+ name: "safeTransferFrom",
237
+ outputs: [],
238
+ stateMutability: "nonpayable",
239
+ type: "function",
240
+ },
241
+ {
242
+ inputs: [
243
+ {
244
+ internalType: "address",
245
+ name: "from",
246
+ type: "address",
247
+ },
248
+ {
249
+ internalType: "address",
250
+ name: "to",
251
+ type: "address",
252
+ },
253
+ {
254
+ internalType: "uint256",
255
+ name: "tokenId",
256
+ type: "uint256",
257
+ },
258
+ {
259
+ internalType: "bytes",
260
+ name: "data",
261
+ type: "bytes",
262
+ },
263
+ ],
264
+ name: "safeTransferFrom",
265
+ outputs: [],
266
+ stateMutability: "nonpayable",
267
+ type: "function",
268
+ },
269
+ {
270
+ inputs: [
271
+ {
272
+ internalType: "address",
273
+ name: "operator",
274
+ type: "address",
275
+ },
276
+ {
277
+ internalType: "bool",
278
+ name: "approved",
279
+ type: "bool",
280
+ },
281
+ ],
282
+ name: "setApprovalForAll",
283
+ outputs: [],
284
+ stateMutability: "nonpayable",
285
+ type: "function",
286
+ },
287
+ {
288
+ inputs: [
289
+ {
290
+ internalType: "bytes4",
291
+ name: "interfaceId",
292
+ type: "bytes4",
293
+ },
294
+ ],
295
+ name: "supportsInterface",
296
+ outputs: [
297
+ {
298
+ internalType: "bool",
299
+ name: "",
300
+ type: "bool",
301
+ },
302
+ ],
303
+ stateMutability: "view",
304
+ type: "function",
305
+ },
306
+ {
307
+ inputs: [
308
+ {
309
+ internalType: "address",
310
+ name: "from",
311
+ type: "address",
312
+ },
313
+ {
314
+ internalType: "address",
315
+ name: "to",
316
+ type: "address",
317
+ },
318
+ {
319
+ internalType: "uint256",
320
+ name: "tokenId",
321
+ type: "uint256",
322
+ },
323
+ ],
324
+ name: "transferFrom",
325
+ outputs: [],
326
+ stateMutability: "nonpayable",
327
+ type: "function",
328
+ },
329
+ ] as const;
330
+
331
+ export class IERC4906__factory {
332
+ static readonly abi = _abi;
333
+ static createInterface(): IERC4906Interface {
334
+ return new Interface(_abi) as IERC4906Interface;
335
+ }
336
+ static connect(address: string, runner?: ContractRunner | null): IERC4906 {
337
+ return new Contract(address, _abi, runner) as unknown as IERC4906;
338
+ }
339
+ }
@@ -0,0 +1,127 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Interface, type ContractRunner } from "ethers";
6
+ import type {
7
+ IERC1155Errors,
8
+ IERC1155ErrorsInterface,
9
+ } from "../../../../../@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "sender",
17
+ type: "address",
18
+ },
19
+ {
20
+ internalType: "uint256",
21
+ name: "balance",
22
+ type: "uint256",
23
+ },
24
+ {
25
+ internalType: "uint256",
26
+ name: "needed",
27
+ type: "uint256",
28
+ },
29
+ {
30
+ internalType: "uint256",
31
+ name: "tokenId",
32
+ type: "uint256",
33
+ },
34
+ ],
35
+ name: "ERC1155InsufficientBalance",
36
+ type: "error",
37
+ },
38
+ {
39
+ inputs: [
40
+ {
41
+ internalType: "address",
42
+ name: "approver",
43
+ type: "address",
44
+ },
45
+ ],
46
+ name: "ERC1155InvalidApprover",
47
+ type: "error",
48
+ },
49
+ {
50
+ inputs: [
51
+ {
52
+ internalType: "uint256",
53
+ name: "idsLength",
54
+ type: "uint256",
55
+ },
56
+ {
57
+ internalType: "uint256",
58
+ name: "valuesLength",
59
+ type: "uint256",
60
+ },
61
+ ],
62
+ name: "ERC1155InvalidArrayLength",
63
+ type: "error",
64
+ },
65
+ {
66
+ inputs: [
67
+ {
68
+ internalType: "address",
69
+ name: "operator",
70
+ type: "address",
71
+ },
72
+ ],
73
+ name: "ERC1155InvalidOperator",
74
+ type: "error",
75
+ },
76
+ {
77
+ inputs: [
78
+ {
79
+ internalType: "address",
80
+ name: "receiver",
81
+ type: "address",
82
+ },
83
+ ],
84
+ name: "ERC1155InvalidReceiver",
85
+ type: "error",
86
+ },
87
+ {
88
+ inputs: [
89
+ {
90
+ internalType: "address",
91
+ name: "sender",
92
+ type: "address",
93
+ },
94
+ ],
95
+ name: "ERC1155InvalidSender",
96
+ type: "error",
97
+ },
98
+ {
99
+ inputs: [
100
+ {
101
+ internalType: "address",
102
+ name: "operator",
103
+ type: "address",
104
+ },
105
+ {
106
+ internalType: "address",
107
+ name: "owner",
108
+ type: "address",
109
+ },
110
+ ],
111
+ name: "ERC1155MissingApprovalForAll",
112
+ type: "error",
113
+ },
114
+ ] as const;
115
+
116
+ export class IERC1155Errors__factory {
117
+ static readonly abi = _abi;
118
+ static createInterface(): IERC1155ErrorsInterface {
119
+ return new Interface(_abi) as IERC1155ErrorsInterface;
120
+ }
121
+ static connect(
122
+ address: string,
123
+ runner?: ContractRunner | null
124
+ ): IERC1155Errors {
125
+ return new Contract(address, _abi, runner) as unknown as IERC1155Errors;
126
+ }
127
+ }
@@ -0,0 +1,111 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Interface, type ContractRunner } from "ethers";
6
+ import type {
7
+ IERC20Errors,
8
+ IERC20ErrorsInterface,
9
+ } from "../../../../../@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "spender",
17
+ type: "address",
18
+ },
19
+ {
20
+ internalType: "uint256",
21
+ name: "allowance",
22
+ type: "uint256",
23
+ },
24
+ {
25
+ internalType: "uint256",
26
+ name: "needed",
27
+ type: "uint256",
28
+ },
29
+ ],
30
+ name: "ERC20InsufficientAllowance",
31
+ type: "error",
32
+ },
33
+ {
34
+ inputs: [
35
+ {
36
+ internalType: "address",
37
+ name: "sender",
38
+ type: "address",
39
+ },
40
+ {
41
+ internalType: "uint256",
42
+ name: "balance",
43
+ type: "uint256",
44
+ },
45
+ {
46
+ internalType: "uint256",
47
+ name: "needed",
48
+ type: "uint256",
49
+ },
50
+ ],
51
+ name: "ERC20InsufficientBalance",
52
+ type: "error",
53
+ },
54
+ {
55
+ inputs: [
56
+ {
57
+ internalType: "address",
58
+ name: "approver",
59
+ type: "address",
60
+ },
61
+ ],
62
+ name: "ERC20InvalidApprover",
63
+ type: "error",
64
+ },
65
+ {
66
+ inputs: [
67
+ {
68
+ internalType: "address",
69
+ name: "receiver",
70
+ type: "address",
71
+ },
72
+ ],
73
+ name: "ERC20InvalidReceiver",
74
+ type: "error",
75
+ },
76
+ {
77
+ inputs: [
78
+ {
79
+ internalType: "address",
80
+ name: "sender",
81
+ type: "address",
82
+ },
83
+ ],
84
+ name: "ERC20InvalidSender",
85
+ type: "error",
86
+ },
87
+ {
88
+ inputs: [
89
+ {
90
+ internalType: "address",
91
+ name: "spender",
92
+ type: "address",
93
+ },
94
+ ],
95
+ name: "ERC20InvalidSpender",
96
+ type: "error",
97
+ },
98
+ ] as const;
99
+
100
+ export class IERC20Errors__factory {
101
+ static readonly abi = _abi;
102
+ static createInterface(): IERC20ErrorsInterface {
103
+ return new Interface(_abi) as IERC20ErrorsInterface;
104
+ }
105
+ static connect(
106
+ address: string,
107
+ runner?: ContractRunner | null
108
+ ): IERC20Errors {
109
+ return new Contract(address, _abi, runner) as unknown as IERC20Errors;
110
+ }
111
+ }
@@ -0,0 +1,128 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Interface, type ContractRunner } from "ethers";
6
+ import type {
7
+ IERC721Errors,
8
+ IERC721ErrorsInterface,
9
+ } from "../../../../../@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "sender",
17
+ type: "address",
18
+ },
19
+ {
20
+ internalType: "uint256",
21
+ name: "tokenId",
22
+ type: "uint256",
23
+ },
24
+ {
25
+ internalType: "address",
26
+ name: "owner",
27
+ type: "address",
28
+ },
29
+ ],
30
+ name: "ERC721IncorrectOwner",
31
+ type: "error",
32
+ },
33
+ {
34
+ inputs: [
35
+ {
36
+ internalType: "address",
37
+ name: "operator",
38
+ type: "address",
39
+ },
40
+ {
41
+ internalType: "uint256",
42
+ name: "tokenId",
43
+ type: "uint256",
44
+ },
45
+ ],
46
+ name: "ERC721InsufficientApproval",
47
+ type: "error",
48
+ },
49
+ {
50
+ inputs: [
51
+ {
52
+ internalType: "address",
53
+ name: "approver",
54
+ type: "address",
55
+ },
56
+ ],
57
+ name: "ERC721InvalidApprover",
58
+ type: "error",
59
+ },
60
+ {
61
+ inputs: [
62
+ {
63
+ internalType: "address",
64
+ name: "operator",
65
+ type: "address",
66
+ },
67
+ ],
68
+ name: "ERC721InvalidOperator",
69
+ type: "error",
70
+ },
71
+ {
72
+ inputs: [
73
+ {
74
+ internalType: "address",
75
+ name: "owner",
76
+ type: "address",
77
+ },
78
+ ],
79
+ name: "ERC721InvalidOwner",
80
+ type: "error",
81
+ },
82
+ {
83
+ inputs: [
84
+ {
85
+ internalType: "address",
86
+ name: "receiver",
87
+ type: "address",
88
+ },
89
+ ],
90
+ name: "ERC721InvalidReceiver",
91
+ type: "error",
92
+ },
93
+ {
94
+ inputs: [
95
+ {
96
+ internalType: "address",
97
+ name: "sender",
98
+ type: "address",
99
+ },
100
+ ],
101
+ name: "ERC721InvalidSender",
102
+ type: "error",
103
+ },
104
+ {
105
+ inputs: [
106
+ {
107
+ internalType: "uint256",
108
+ name: "tokenId",
109
+ type: "uint256",
110
+ },
111
+ ],
112
+ name: "ERC721NonexistentToken",
113
+ type: "error",
114
+ },
115
+ ] as const;
116
+
117
+ export class IERC721Errors__factory {
118
+ static readonly abi = _abi;
119
+ static createInterface(): IERC721ErrorsInterface {
120
+ return new Interface(_abi) as IERC721ErrorsInterface;
121
+ }
122
+ static connect(
123
+ address: string,
124
+ runner?: ContractRunner | null
125
+ ): IERC721Errors {
126
+ return new Contract(address, _abi, runner) as unknown as IERC721Errors;
127
+ }
128
+ }
@@ -0,0 +1,6 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { IERC1155Errors__factory } from "./IERC1155Errors__factory";
5
+ export { IERC20Errors__factory } from "./IERC20Errors__factory";
6
+ export { IERC721Errors__factory } from "./IERC721Errors__factory";
@@ -0,0 +1,5 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as draftIerc6093Sol from "./draft-IERC6093.sol";
5
+ export { IERC4906__factory } from "./IERC4906__factory";