@opensea/sdk 9.0.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 (363) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +70 -0
  3. package/lib/api/accounts.d.ts +27 -0
  4. package/lib/api/accounts.js +46 -0
  5. package/lib/api/accounts.js.map +1 -0
  6. package/lib/api/api.d.ts +489 -0
  7. package/lib/api/api.js +754 -0
  8. package/lib/api/api.js.map +1 -0
  9. package/lib/api/apiPaths.d.ts +46 -0
  10. package/lib/api/apiPaths.js +176 -0
  11. package/lib/api/apiPaths.js.map +1 -0
  12. package/lib/api/chains.d.ts +13 -0
  13. package/lib/api/chains.js +22 -0
  14. package/lib/api/chains.js.map +1 -0
  15. package/lib/api/collections.d.ts +34 -0
  16. package/lib/api/collections.js +80 -0
  17. package/lib/api/collections.js.map +1 -0
  18. package/lib/api/drops.d.ts +21 -0
  19. package/lib/api/drops.js +39 -0
  20. package/lib/api/drops.js.map +1 -0
  21. package/lib/api/events.d.ts +26 -0
  22. package/lib/api/events.js +43 -0
  23. package/lib/api/events.js.map +1 -0
  24. package/lib/api/fetcher.d.ts +24 -0
  25. package/lib/api/fetcher.js +3 -0
  26. package/lib/api/fetcher.js.map +1 -0
  27. package/lib/api/index.d.ts +2 -0
  28. package/lib/api/index.js +19 -0
  29. package/lib/api/index.js.map +1 -0
  30. package/lib/api/listings.d.ts +44 -0
  31. package/lib/api/listings.js +88 -0
  32. package/lib/api/listings.js.map +1 -0
  33. package/lib/api/nfts.d.ts +39 -0
  34. package/lib/api/nfts.js +79 -0
  35. package/lib/api/nfts.js.map +1 -0
  36. package/lib/api/offers.d.ts +54 -0
  37. package/lib/api/offers.js +124 -0
  38. package/lib/api/offers.js.map +1 -0
  39. package/lib/api/orders.d.ts +50 -0
  40. package/lib/api/orders.js +153 -0
  41. package/lib/api/orders.js.map +1 -0
  42. package/lib/api/search.d.ts +13 -0
  43. package/lib/api/search.js +22 -0
  44. package/lib/api/search.js.map +1 -0
  45. package/lib/api/tokens.d.ts +25 -0
  46. package/lib/api/tokens.js +43 -0
  47. package/lib/api/tokens.js.map +1 -0
  48. package/lib/api/types.d.ts +1113 -0
  49. package/lib/api/types.js +65 -0
  50. package/lib/api/types.js.map +1 -0
  51. package/lib/constants.d.ts +22 -0
  52. package/lib/constants.js +52 -0
  53. package/lib/constants.js.map +1 -0
  54. package/lib/index.d.ts +18 -0
  55. package/lib/index.js +24 -0
  56. package/lib/index.js.map +1 -0
  57. package/lib/orders/privateListings.d.ts +12 -0
  58. package/lib/orders/privateListings.js +130 -0
  59. package/lib/orders/privateListings.js.map +1 -0
  60. package/lib/orders/types.d.ts +160 -0
  61. package/lib/orders/types.js +10 -0
  62. package/lib/orders/types.js.map +1 -0
  63. package/lib/orders/utils.d.ts +89 -0
  64. package/lib/orders/utils.js +177 -0
  65. package/lib/orders/utils.js.map +1 -0
  66. package/lib/sdk/assets.d.ts +104 -0
  67. package/lib/sdk/assets.js +398 -0
  68. package/lib/sdk/assets.js.map +1 -0
  69. package/lib/sdk/cancellation.d.ts +97 -0
  70. package/lib/sdk/cancellation.js +235 -0
  71. package/lib/sdk/cancellation.js.map +1 -0
  72. package/lib/sdk/context.d.ts +28 -0
  73. package/lib/sdk/context.js +3 -0
  74. package/lib/sdk/context.js.map +1 -0
  75. package/lib/sdk/fulfillment.d.ts +153 -0
  76. package/lib/sdk/fulfillment.js +298 -0
  77. package/lib/sdk/fulfillment.js.map +1 -0
  78. package/lib/sdk/orders.d.ts +253 -0
  79. package/lib/sdk/orders.js +679 -0
  80. package/lib/sdk/orders.js.map +1 -0
  81. package/lib/sdk/tokens.d.ts +31 -0
  82. package/lib/sdk/tokens.js +65 -0
  83. package/lib/sdk/tokens.js.map +1 -0
  84. package/lib/sdk.d.ts +560 -0
  85. package/lib/sdk.js +693 -0
  86. package/lib/sdk.js.map +1 -0
  87. package/lib/src/api/accounts.d.ts +18 -0
  88. package/lib/src/api/accounts.js +30 -0
  89. package/lib/src/api/accounts.js.map +1 -0
  90. package/lib/src/api/api.d.ts +429 -0
  91. package/lib/src/api/api.js +652 -0
  92. package/lib/src/api/api.js.map +1 -0
  93. package/lib/src/api/apiPaths.d.ts +37 -0
  94. package/lib/src/api/apiPaths.js +140 -0
  95. package/lib/src/api/apiPaths.js.map +1 -0
  96. package/lib/src/api/collections.d.ts +26 -0
  97. package/lib/src/api/collections.js +57 -0
  98. package/lib/src/api/collections.js.map +1 -0
  99. package/lib/src/api/events.d.ts +26 -0
  100. package/lib/src/api/events.js +42 -0
  101. package/lib/src/api/events.js.map +1 -0
  102. package/lib/src/api/fetcher.d.ts +24 -0
  103. package/lib/src/api/fetcher.js +3 -0
  104. package/lib/src/api/fetcher.js.map +1 -0
  105. package/lib/src/api/index.d.ts +2 -0
  106. package/lib/src/api/index.js +19 -0
  107. package/lib/src/api/index.js.map +1 -0
  108. package/lib/src/api/listings.d.ts +44 -0
  109. package/lib/src/api/listings.js +86 -0
  110. package/lib/src/api/listings.js.map +1 -0
  111. package/lib/src/api/nfts.d.ts +35 -0
  112. package/lib/src/api/nfts.js +66 -0
  113. package/lib/src/api/nfts.js.map +1 -0
  114. package/lib/src/api/offers.d.ts +54 -0
  115. package/lib/src/api/offers.js +122 -0
  116. package/lib/src/api/offers.js.map +1 -0
  117. package/lib/src/api/orders.d.ts +50 -0
  118. package/lib/src/api/orders.js +151 -0
  119. package/lib/src/api/orders.js.map +1 -0
  120. package/lib/src/api/search.d.ts +13 -0
  121. package/lib/src/api/search.js +21 -0
  122. package/lib/src/api/search.js.map +1 -0
  123. package/lib/src/api/tokens.d.ts +25 -0
  124. package/lib/src/api/tokens.js +42 -0
  125. package/lib/src/api/tokens.js.map +1 -0
  126. package/lib/src/api/types.d.ts +840 -0
  127. package/lib/src/api/types.js +65 -0
  128. package/lib/src/api/types.js.map +1 -0
  129. package/lib/src/constants.d.ts +22 -0
  130. package/lib/src/constants.js +52 -0
  131. package/lib/src/constants.js.map +1 -0
  132. package/lib/src/index.d.ts +18 -0
  133. package/lib/src/index.js +24 -0
  134. package/lib/src/index.js.map +1 -0
  135. package/lib/src/orders/privateListings.d.ts +12 -0
  136. package/lib/src/orders/privateListings.js +130 -0
  137. package/lib/src/orders/privateListings.js.map +1 -0
  138. package/lib/src/orders/types.d.ts +160 -0
  139. package/lib/src/orders/types.js +10 -0
  140. package/lib/src/orders/types.js.map +1 -0
  141. package/lib/src/orders/utils.d.ts +89 -0
  142. package/lib/src/orders/utils.js +177 -0
  143. package/lib/src/orders/utils.js.map +1 -0
  144. package/lib/src/sdk/assets.d.ts +104 -0
  145. package/lib/src/sdk/assets.js +397 -0
  146. package/lib/src/sdk/assets.js.map +1 -0
  147. package/lib/src/sdk/cancellation.d.ts +97 -0
  148. package/lib/src/sdk/cancellation.js +234 -0
  149. package/lib/src/sdk/cancellation.js.map +1 -0
  150. package/lib/src/sdk/context.d.ts +28 -0
  151. package/lib/src/sdk/context.js +3 -0
  152. package/lib/src/sdk/context.js.map +1 -0
  153. package/lib/src/sdk/fulfillment.d.ts +153 -0
  154. package/lib/src/sdk/fulfillment.js +296 -0
  155. package/lib/src/sdk/fulfillment.js.map +1 -0
  156. package/lib/src/sdk/orders.d.ts +253 -0
  157. package/lib/src/sdk/orders.js +677 -0
  158. package/lib/src/sdk/orders.js.map +1 -0
  159. package/lib/src/sdk/tokens.d.ts +31 -0
  160. package/lib/src/sdk/tokens.js +64 -0
  161. package/lib/src/sdk/tokens.js.map +1 -0
  162. package/lib/src/sdk.d.ts +560 -0
  163. package/lib/src/sdk.js +675 -0
  164. package/lib/src/sdk.js.map +1 -0
  165. package/lib/src/typechain/contracts/ERC1155.d.ts +236 -0
  166. package/lib/src/typechain/contracts/ERC1155.js +3 -0
  167. package/lib/src/typechain/contracts/ERC1155.js.map +1 -0
  168. package/lib/src/typechain/contracts/ERC20.d.ts +141 -0
  169. package/lib/src/typechain/contracts/ERC20.js +3 -0
  170. package/lib/src/typechain/contracts/ERC20.js.map +1 -0
  171. package/lib/src/typechain/contracts/ERC721.d.ts +213 -0
  172. package/lib/src/typechain/contracts/ERC721.js +3 -0
  173. package/lib/src/typechain/contracts/ERC721.js.map +1 -0
  174. package/lib/src/typechain/contracts/Multicall3.d.ts +57 -0
  175. package/lib/src/typechain/contracts/Multicall3.js +3 -0
  176. package/lib/src/typechain/contracts/Multicall3.js.map +1 -0
  177. package/lib/src/typechain/contracts/TransferHelper.d.ts +55 -0
  178. package/lib/src/typechain/contracts/TransferHelper.js +3 -0
  179. package/lib/src/typechain/contracts/TransferHelper.js.map +1 -0
  180. package/lib/src/typechain/contracts/common.d.ts +50 -0
  181. package/lib/src/typechain/contracts/common.js +3 -0
  182. package/lib/src/typechain/contracts/common.js.map +1 -0
  183. package/lib/src/typechain/contracts/factories/ERC1155__factory.d.ts +250 -0
  184. package/lib/src/typechain/contracts/factories/ERC1155__factory.js +332 -0
  185. package/lib/src/typechain/contracts/factories/ERC1155__factory.js.map +1 -0
  186. package/lib/src/typechain/contracts/factories/ERC20__factory.d.ts +174 -0
  187. package/lib/src/typechain/contracts/factories/ERC20__factory.js +240 -0
  188. package/lib/src/typechain/contracts/factories/ERC20__factory.js.map +1 -0
  189. package/lib/src/typechain/contracts/factories/ERC721__factory.d.ts +268 -0
  190. package/lib/src/typechain/contracts/factories/ERC721__factory.js +351 -0
  191. package/lib/src/typechain/contracts/factories/ERC721__factory.js.map +1 -0
  192. package/lib/src/typechain/contracts/factories/Multicall3__factory.d.ts +43 -0
  193. package/lib/src/typechain/contracts/factories/Multicall3__factory.js +68 -0
  194. package/lib/src/typechain/contracts/factories/Multicall3__factory.js.map +1 -0
  195. package/lib/src/typechain/contracts/factories/TransferHelper__factory.d.ts +46 -0
  196. package/lib/src/typechain/contracts/factories/TransferHelper__factory.js +71 -0
  197. package/lib/src/typechain/contracts/factories/TransferHelper__factory.js.map +1 -0
  198. package/lib/src/typechain/contracts/factories/index.d.ts +5 -0
  199. package/lib/src/typechain/contracts/factories/index.js +17 -0
  200. package/lib/src/typechain/contracts/factories/index.js.map +1 -0
  201. package/lib/src/typechain/contracts/index.d.ts +11 -0
  202. package/lib/src/typechain/contracts/index.js +48 -0
  203. package/lib/src/typechain/contracts/index.js.map +1 -0
  204. package/lib/src/types.d.ts +387 -0
  205. package/lib/src/types.js +127 -0
  206. package/lib/src/types.js.map +1 -0
  207. package/lib/src/utils/chain.d.ts +60 -0
  208. package/lib/src/utils/chain.js +248 -0
  209. package/lib/src/utils/chain.js.map +1 -0
  210. package/lib/src/utils/converters.d.ts +37 -0
  211. package/lib/src/utils/converters.js +137 -0
  212. package/lib/src/utils/converters.js.map +1 -0
  213. package/lib/src/utils/dateHelper.d.ts +38 -0
  214. package/lib/src/utils/dateHelper.js +52 -0
  215. package/lib/src/utils/dateHelper.js.map +1 -0
  216. package/lib/src/utils/fees.d.ts +13 -0
  217. package/lib/src/utils/fees.js +29 -0
  218. package/lib/src/utils/fees.js.map +1 -0
  219. package/lib/src/utils/index.d.ts +2 -0
  220. package/lib/src/utils/index.js +19 -0
  221. package/lib/src/utils/index.js.map +1 -0
  222. package/lib/src/utils/protocol.d.ts +75 -0
  223. package/lib/src/utils/protocol.js +161 -0
  224. package/lib/src/utils/protocol.js.map +1 -0
  225. package/lib/src/utils/rateLimit.d.ts +34 -0
  226. package/lib/src/utils/rateLimit.js +97 -0
  227. package/lib/src/utils/rateLimit.js.map +1 -0
  228. package/lib/src/utils/stringHelper.d.ts +18 -0
  229. package/lib/src/utils/stringHelper.js +24 -0
  230. package/lib/src/utils/stringHelper.js.map +1 -0
  231. package/lib/src/utils/utils.d.ts +18 -0
  232. package/lib/src/utils/utils.js +45 -0
  233. package/lib/src/utils/utils.js.map +1 -0
  234. package/lib/typechain/contracts/ERC1155.d.ts +236 -0
  235. package/lib/typechain/contracts/ERC1155.js +3 -0
  236. package/lib/typechain/contracts/ERC1155.js.map +1 -0
  237. package/lib/typechain/contracts/ERC20.d.ts +141 -0
  238. package/lib/typechain/contracts/ERC20.js +3 -0
  239. package/lib/typechain/contracts/ERC20.js.map +1 -0
  240. package/lib/typechain/contracts/ERC721.d.ts +213 -0
  241. package/lib/typechain/contracts/ERC721.js +3 -0
  242. package/lib/typechain/contracts/ERC721.js.map +1 -0
  243. package/lib/typechain/contracts/Multicall3.d.ts +57 -0
  244. package/lib/typechain/contracts/Multicall3.js +3 -0
  245. package/lib/typechain/contracts/Multicall3.js.map +1 -0
  246. package/lib/typechain/contracts/TransferHelper.d.ts +55 -0
  247. package/lib/typechain/contracts/TransferHelper.js +3 -0
  248. package/lib/typechain/contracts/TransferHelper.js.map +1 -0
  249. package/lib/typechain/contracts/common.d.ts +50 -0
  250. package/lib/typechain/contracts/common.js +3 -0
  251. package/lib/typechain/contracts/common.js.map +1 -0
  252. package/lib/typechain/contracts/factories/ERC1155__factory.d.ts +250 -0
  253. package/lib/typechain/contracts/factories/ERC1155__factory.js +332 -0
  254. package/lib/typechain/contracts/factories/ERC1155__factory.js.map +1 -0
  255. package/lib/typechain/contracts/factories/ERC20__factory.d.ts +174 -0
  256. package/lib/typechain/contracts/factories/ERC20__factory.js +240 -0
  257. package/lib/typechain/contracts/factories/ERC20__factory.js.map +1 -0
  258. package/lib/typechain/contracts/factories/ERC721__factory.d.ts +268 -0
  259. package/lib/typechain/contracts/factories/ERC721__factory.js +351 -0
  260. package/lib/typechain/contracts/factories/ERC721__factory.js.map +1 -0
  261. package/lib/typechain/contracts/factories/Multicall3__factory.d.ts +43 -0
  262. package/lib/typechain/contracts/factories/Multicall3__factory.js +68 -0
  263. package/lib/typechain/contracts/factories/Multicall3__factory.js.map +1 -0
  264. package/lib/typechain/contracts/factories/TransferHelper__factory.d.ts +46 -0
  265. package/lib/typechain/contracts/factories/TransferHelper__factory.js +71 -0
  266. package/lib/typechain/contracts/factories/TransferHelper__factory.js.map +1 -0
  267. package/lib/typechain/contracts/factories/index.d.ts +5 -0
  268. package/lib/typechain/contracts/factories/index.js +17 -0
  269. package/lib/typechain/contracts/factories/index.js.map +1 -0
  270. package/lib/typechain/contracts/index.d.ts +11 -0
  271. package/lib/typechain/contracts/index.js +48 -0
  272. package/lib/typechain/contracts/index.js.map +1 -0
  273. package/lib/types.d.ts +389 -0
  274. package/lib/types.js +129 -0
  275. package/lib/types.js.map +1 -0
  276. package/lib/utils/chain.d.ts +64 -0
  277. package/lib/utils/chain.js +211 -0
  278. package/lib/utils/chain.js.map +1 -0
  279. package/lib/utils/chainIds.generated.d.ts +7 -0
  280. package/lib/utils/chainIds.generated.js +37 -0
  281. package/lib/utils/chainIds.generated.js.map +1 -0
  282. package/lib/utils/converters.d.ts +37 -0
  283. package/lib/utils/converters.js +137 -0
  284. package/lib/utils/converters.js.map +1 -0
  285. package/lib/utils/dateHelper.d.ts +38 -0
  286. package/lib/utils/dateHelper.js +52 -0
  287. package/lib/utils/dateHelper.js.map +1 -0
  288. package/lib/utils/fees.d.ts +13 -0
  289. package/lib/utils/fees.js +29 -0
  290. package/lib/utils/fees.js.map +1 -0
  291. package/lib/utils/index.d.ts +2 -0
  292. package/lib/utils/index.js +19 -0
  293. package/lib/utils/index.js.map +1 -0
  294. package/lib/utils/protocol.d.ts +75 -0
  295. package/lib/utils/protocol.js +161 -0
  296. package/lib/utils/protocol.js.map +1 -0
  297. package/lib/utils/rateLimit.d.ts +34 -0
  298. package/lib/utils/rateLimit.js +97 -0
  299. package/lib/utils/rateLimit.js.map +1 -0
  300. package/lib/utils/stringHelper.d.ts +18 -0
  301. package/lib/utils/stringHelper.js +24 -0
  302. package/lib/utils/stringHelper.js.map +1 -0
  303. package/lib/utils/utils.d.ts +18 -0
  304. package/lib/utils/utils.js +45 -0
  305. package/lib/utils/utils.js.map +1 -0
  306. package/package.json +72 -0
  307. package/src/abi/ERC1155.json +314 -0
  308. package/src/abi/ERC20.json +222 -0
  309. package/src/abi/ERC721.json +333 -0
  310. package/src/abi/Multicall3.json +50 -0
  311. package/src/abi/TransferHelper.json +53 -0
  312. package/src/api/accounts.ts +69 -0
  313. package/src/api/api.ts +1152 -0
  314. package/src/api/apiPaths.ts +208 -0
  315. package/src/api/chains.ts +18 -0
  316. package/src/api/collections.ts +120 -0
  317. package/src/api/drops.ts +49 -0
  318. package/src/api/events.ts +71 -0
  319. package/src/api/fetcher.ts +31 -0
  320. package/src/api/index.ts +2 -0
  321. package/src/api/listings.ts +126 -0
  322. package/src/api/nfts.ts +144 -0
  323. package/src/api/offers.ts +242 -0
  324. package/src/api/orders.ts +283 -0
  325. package/src/api/search.ts +21 -0
  326. package/src/api/tokens.ts +67 -0
  327. package/src/api/types.ts +1210 -0
  328. package/src/constants.ts +90 -0
  329. package/src/index.ts +22 -0
  330. package/src/orders/privateListings.ts +173 -0
  331. package/src/orders/types.ts +191 -0
  332. package/src/orders/utils.ts +253 -0
  333. package/src/sdk/assets.ts +591 -0
  334. package/src/sdk/cancellation.ts +346 -0
  335. package/src/sdk/context.ts +33 -0
  336. package/src/sdk/fulfillment.ts +478 -0
  337. package/src/sdk/orders.ts +1149 -0
  338. package/src/sdk/tokens.ts +95 -0
  339. package/src/sdk.ts +1051 -0
  340. package/src/typechain/contracts/ERC1155.ts +440 -0
  341. package/src/typechain/contracts/ERC20.ts +286 -0
  342. package/src/typechain/contracts/ERC721.ts +412 -0
  343. package/src/typechain/contracts/Multicall3.ts +117 -0
  344. package/src/typechain/contracts/TransferHelper.ts +122 -0
  345. package/src/typechain/contracts/common.ts +131 -0
  346. package/src/typechain/contracts/factories/ERC1155__factory.ts +331 -0
  347. package/src/typechain/contracts/factories/ERC20__factory.ts +239 -0
  348. package/src/typechain/contracts/factories/ERC721__factory.ts +350 -0
  349. package/src/typechain/contracts/factories/Multicall3__factory.ts +67 -0
  350. package/src/typechain/contracts/factories/TransferHelper__factory.ts +76 -0
  351. package/src/typechain/contracts/factories/index.ts +8 -0
  352. package/src/typechain/contracts/index.ts +14 -0
  353. package/src/types.ts +413 -0
  354. package/src/utils/chain.ts +224 -0
  355. package/src/utils/chainIds.generated.ts +34 -0
  356. package/src/utils/converters.ts +145 -0
  357. package/src/utils/dateHelper.ts +48 -0
  358. package/src/utils/fees.ts +31 -0
  359. package/src/utils/index.ts +2 -0
  360. package/src/utils/protocol.ts +185 -0
  361. package/src/utils/rateLimit.ts +147 -0
  362. package/src/utils/stringHelper.ts +25 -0
  363. package/src/utils/utils.ts +36 -0
@@ -0,0 +1,131 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ FunctionFragment,
6
+ Typed,
7
+ EventFragment,
8
+ ContractTransaction,
9
+ ContractTransactionResponse,
10
+ DeferredTopicFilter,
11
+ EventLog,
12
+ TransactionRequest,
13
+ LogDescription,
14
+ } from "ethers";
15
+
16
+ export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent>
17
+ extends DeferredTopicFilter {}
18
+
19
+ export interface TypedContractEvent<
20
+ InputTuple extends Array<any> = any,
21
+ OutputTuple extends Array<any> = any,
22
+ OutputObject = any
23
+ > {
24
+ (...args: Partial<InputTuple>): TypedDeferredTopicFilter<
25
+ TypedContractEvent<InputTuple, OutputTuple, OutputObject>
26
+ >;
27
+ name: string;
28
+ fragment: EventFragment;
29
+ getFragment(...args: Partial<InputTuple>): EventFragment;
30
+ }
31
+
32
+ type __TypechainAOutputTuple<T> = T extends TypedContractEvent<
33
+ infer _U,
34
+ infer W
35
+ >
36
+ ? W
37
+ : never;
38
+ type __TypechainOutputObject<T> = T extends TypedContractEvent<
39
+ infer _U,
40
+ infer _W,
41
+ infer V
42
+ >
43
+ ? V
44
+ : never;
45
+
46
+ export interface TypedEventLog<TCEvent extends TypedContractEvent>
47
+ extends Omit<EventLog, "args"> {
48
+ args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
49
+ }
50
+
51
+ export interface TypedLogDescription<TCEvent extends TypedContractEvent>
52
+ extends Omit<LogDescription, "args"> {
53
+ args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
54
+ }
55
+
56
+ export type TypedListener<TCEvent extends TypedContractEvent> = (
57
+ ...listenerArg: [
58
+ ...__TypechainAOutputTuple<TCEvent>,
59
+ TypedEventLog<TCEvent>,
60
+ ...undefined[]
61
+ ]
62
+ ) => void;
63
+
64
+ export type MinEthersFactory<C, ARGS> = {
65
+ deploy(...a: ARGS[]): Promise<C>;
66
+ };
67
+
68
+ export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<
69
+ infer C,
70
+ any
71
+ >
72
+ ? C
73
+ : never;
74
+ export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any>
75
+ ? Parameters<F["deploy"]>
76
+ : never;
77
+
78
+ export type StateMutability = "nonpayable" | "payable" | "view";
79
+
80
+ export type BaseOverrides = Omit<TransactionRequest, "to" | "data">;
81
+ export type NonPayableOverrides = Omit<
82
+ BaseOverrides,
83
+ "value" | "blockTag" | "enableCcipRead"
84
+ >;
85
+ export type PayableOverrides = Omit<
86
+ BaseOverrides,
87
+ "blockTag" | "enableCcipRead"
88
+ >;
89
+ export type ViewOverrides = Omit<TransactionRequest, "to" | "data">;
90
+ export type Overrides<S extends StateMutability> = S extends "nonpayable"
91
+ ? NonPayableOverrides
92
+ : S extends "payable"
93
+ ? PayableOverrides
94
+ : ViewOverrides;
95
+
96
+ export type PostfixOverrides<A extends Array<any>, S extends StateMutability> =
97
+ | A
98
+ | [...A, Overrides<S>];
99
+ export type ContractMethodArgs<
100
+ A extends Array<any>,
101
+ S extends StateMutability
102
+ > = PostfixOverrides<{ [I in keyof A]-?: A[I] | Typed }, S>;
103
+
104
+ export type DefaultReturnType<R> = R extends Array<any> ? R[0] : R;
105
+
106
+ // export interface ContractMethod<A extends Array<any> = Array<any>, R = any, D extends R | ContractTransactionResponse = R | ContractTransactionResponse> {
107
+ export interface TypedContractMethod<
108
+ A extends Array<any> = Array<any>,
109
+ R = any,
110
+ S extends StateMutability = "payable"
111
+ > {
112
+ (...args: ContractMethodArgs<A, S>): S extends "view"
113
+ ? Promise<DefaultReturnType<R>>
114
+ : Promise<ContractTransactionResponse>;
115
+
116
+ name: string;
117
+
118
+ fragment: FunctionFragment;
119
+
120
+ getFragment(...args: ContractMethodArgs<A, S>): FunctionFragment;
121
+
122
+ populateTransaction(
123
+ ...args: ContractMethodArgs<A, S>
124
+ ): Promise<ContractTransaction>;
125
+ staticCall(
126
+ ...args: ContractMethodArgs<A, "view">
127
+ ): Promise<DefaultReturnType<R>>;
128
+ send(...args: ContractMethodArgs<A, S>): Promise<ContractTransactionResponse>;
129
+ estimateGas(...args: ContractMethodArgs<A, S>): Promise<bigint>;
130
+ staticCallResult(...args: ContractMethodArgs<A, "view">): Promise<R>;
131
+ }
@@ -0,0 +1,331 @@
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 { ERC1155, ERC1155Interface } from "../ERC1155";
7
+
8
+ const _abi = [
9
+ {
10
+ anonymous: false,
11
+ inputs: [
12
+ {
13
+ indexed: true,
14
+ internalType: "address",
15
+ name: "account",
16
+ type: "address",
17
+ },
18
+ {
19
+ indexed: true,
20
+ internalType: "address",
21
+ name: "operator",
22
+ type: "address",
23
+ },
24
+ {
25
+ indexed: false,
26
+ internalType: "bool",
27
+ name: "approved",
28
+ type: "bool",
29
+ },
30
+ ],
31
+ name: "ApprovalForAll",
32
+ type: "event",
33
+ },
34
+ {
35
+ anonymous: false,
36
+ inputs: [
37
+ {
38
+ indexed: true,
39
+ internalType: "address",
40
+ name: "operator",
41
+ type: "address",
42
+ },
43
+ {
44
+ indexed: true,
45
+ internalType: "address",
46
+ name: "from",
47
+ type: "address",
48
+ },
49
+ {
50
+ indexed: true,
51
+ internalType: "address",
52
+ name: "to",
53
+ type: "address",
54
+ },
55
+ {
56
+ indexed: false,
57
+ internalType: "uint256[]",
58
+ name: "ids",
59
+ type: "uint256[]",
60
+ },
61
+ {
62
+ indexed: false,
63
+ internalType: "uint256[]",
64
+ name: "values",
65
+ type: "uint256[]",
66
+ },
67
+ ],
68
+ name: "TransferBatch",
69
+ type: "event",
70
+ },
71
+ {
72
+ anonymous: false,
73
+ inputs: [
74
+ {
75
+ indexed: true,
76
+ internalType: "address",
77
+ name: "operator",
78
+ type: "address",
79
+ },
80
+ {
81
+ indexed: true,
82
+ internalType: "address",
83
+ name: "from",
84
+ type: "address",
85
+ },
86
+ {
87
+ indexed: true,
88
+ internalType: "address",
89
+ name: "to",
90
+ type: "address",
91
+ },
92
+ {
93
+ indexed: false,
94
+ internalType: "uint256",
95
+ name: "id",
96
+ type: "uint256",
97
+ },
98
+ {
99
+ indexed: false,
100
+ internalType: "uint256",
101
+ name: "value",
102
+ type: "uint256",
103
+ },
104
+ ],
105
+ name: "TransferSingle",
106
+ type: "event",
107
+ },
108
+ {
109
+ anonymous: false,
110
+ inputs: [
111
+ {
112
+ indexed: false,
113
+ internalType: "string",
114
+ name: "value",
115
+ type: "string",
116
+ },
117
+ {
118
+ indexed: true,
119
+ internalType: "uint256",
120
+ name: "id",
121
+ type: "uint256",
122
+ },
123
+ ],
124
+ name: "URI",
125
+ type: "event",
126
+ },
127
+ {
128
+ inputs: [
129
+ {
130
+ internalType: "address",
131
+ name: "account",
132
+ type: "address",
133
+ },
134
+ {
135
+ internalType: "uint256",
136
+ name: "id",
137
+ type: "uint256",
138
+ },
139
+ ],
140
+ name: "balanceOf",
141
+ outputs: [
142
+ {
143
+ internalType: "uint256",
144
+ name: "",
145
+ type: "uint256",
146
+ },
147
+ ],
148
+ stateMutability: "view",
149
+ type: "function",
150
+ },
151
+ {
152
+ inputs: [
153
+ {
154
+ internalType: "address[]",
155
+ name: "accounts",
156
+ type: "address[]",
157
+ },
158
+ {
159
+ internalType: "uint256[]",
160
+ name: "ids",
161
+ type: "uint256[]",
162
+ },
163
+ ],
164
+ name: "balanceOfBatch",
165
+ outputs: [
166
+ {
167
+ internalType: "uint256[]",
168
+ name: "",
169
+ type: "uint256[]",
170
+ },
171
+ ],
172
+ stateMutability: "view",
173
+ type: "function",
174
+ },
175
+ {
176
+ inputs: [
177
+ {
178
+ internalType: "address",
179
+ name: "account",
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: "address",
203
+ name: "from",
204
+ type: "address",
205
+ },
206
+ {
207
+ internalType: "address",
208
+ name: "to",
209
+ type: "address",
210
+ },
211
+ {
212
+ internalType: "uint256[]",
213
+ name: "ids",
214
+ type: "uint256[]",
215
+ },
216
+ {
217
+ internalType: "uint256[]",
218
+ name: "amounts",
219
+ type: "uint256[]",
220
+ },
221
+ {
222
+ internalType: "bytes",
223
+ name: "data",
224
+ type: "bytes",
225
+ },
226
+ ],
227
+ name: "safeBatchTransferFrom",
228
+ outputs: [],
229
+ stateMutability: "nonpayable",
230
+ type: "function",
231
+ },
232
+ {
233
+ inputs: [
234
+ {
235
+ internalType: "address",
236
+ name: "from",
237
+ type: "address",
238
+ },
239
+ {
240
+ internalType: "address",
241
+ name: "to",
242
+ type: "address",
243
+ },
244
+ {
245
+ internalType: "uint256",
246
+ name: "id",
247
+ type: "uint256",
248
+ },
249
+ {
250
+ internalType: "uint256",
251
+ name: "amount",
252
+ type: "uint256",
253
+ },
254
+ {
255
+ internalType: "bytes",
256
+ name: "data",
257
+ type: "bytes",
258
+ },
259
+ ],
260
+ name: "safeTransferFrom",
261
+ outputs: [],
262
+ stateMutability: "nonpayable",
263
+ type: "function",
264
+ },
265
+ {
266
+ inputs: [
267
+ {
268
+ internalType: "address",
269
+ name: "operator",
270
+ type: "address",
271
+ },
272
+ {
273
+ internalType: "bool",
274
+ name: "approved",
275
+ type: "bool",
276
+ },
277
+ ],
278
+ name: "setApprovalForAll",
279
+ outputs: [],
280
+ stateMutability: "nonpayable",
281
+ type: "function",
282
+ },
283
+ {
284
+ inputs: [
285
+ {
286
+ internalType: "bytes4",
287
+ name: "interfaceId",
288
+ type: "bytes4",
289
+ },
290
+ ],
291
+ name: "supportsInterface",
292
+ outputs: [
293
+ {
294
+ internalType: "bool",
295
+ name: "",
296
+ type: "bool",
297
+ },
298
+ ],
299
+ stateMutability: "view",
300
+ type: "function",
301
+ },
302
+ {
303
+ inputs: [
304
+ {
305
+ internalType: "uint256",
306
+ name: "id",
307
+ type: "uint256",
308
+ },
309
+ ],
310
+ name: "uri",
311
+ outputs: [
312
+ {
313
+ internalType: "string",
314
+ name: "",
315
+ type: "string",
316
+ },
317
+ ],
318
+ stateMutability: "view",
319
+ type: "function",
320
+ },
321
+ ] as const;
322
+
323
+ export class ERC1155__factory {
324
+ static readonly abi = _abi;
325
+ static createInterface(): ERC1155Interface {
326
+ return new Interface(_abi) as ERC1155Interface;
327
+ }
328
+ static connect(address: string, runner?: ContractRunner | null): ERC1155 {
329
+ return new Contract(address, _abi, runner) as unknown as ERC1155;
330
+ }
331
+ }
@@ -0,0 +1,239 @@
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 { ERC20, ERC20Interface } from "../ERC20";
7
+
8
+ const _abi = [
9
+ {
10
+ constant: true,
11
+ inputs: [],
12
+ name: "name",
13
+ outputs: [
14
+ {
15
+ name: "",
16
+ type: "string",
17
+ },
18
+ ],
19
+ payable: false,
20
+ stateMutability: "view",
21
+ type: "function",
22
+ },
23
+ {
24
+ constant: false,
25
+ inputs: [
26
+ {
27
+ name: "_spender",
28
+ type: "address",
29
+ },
30
+ {
31
+ name: "_value",
32
+ type: "uint256",
33
+ },
34
+ ],
35
+ name: "approve",
36
+ outputs: [
37
+ {
38
+ name: "",
39
+ type: "bool",
40
+ },
41
+ ],
42
+ payable: false,
43
+ stateMutability: "nonpayable",
44
+ type: "function",
45
+ },
46
+ {
47
+ constant: true,
48
+ inputs: [],
49
+ name: "totalSupply",
50
+ outputs: [
51
+ {
52
+ name: "",
53
+ type: "uint256",
54
+ },
55
+ ],
56
+ payable: false,
57
+ stateMutability: "view",
58
+ type: "function",
59
+ },
60
+ {
61
+ constant: false,
62
+ inputs: [
63
+ {
64
+ name: "_from",
65
+ type: "address",
66
+ },
67
+ {
68
+ name: "_to",
69
+ type: "address",
70
+ },
71
+ {
72
+ name: "_value",
73
+ type: "uint256",
74
+ },
75
+ ],
76
+ name: "transferFrom",
77
+ outputs: [
78
+ {
79
+ name: "",
80
+ type: "bool",
81
+ },
82
+ ],
83
+ payable: false,
84
+ stateMutability: "nonpayable",
85
+ type: "function",
86
+ },
87
+ {
88
+ constant: true,
89
+ inputs: [],
90
+ name: "decimals",
91
+ outputs: [
92
+ {
93
+ name: "",
94
+ type: "uint8",
95
+ },
96
+ ],
97
+ payable: false,
98
+ stateMutability: "view",
99
+ type: "function",
100
+ },
101
+ {
102
+ constant: true,
103
+ inputs: [
104
+ {
105
+ name: "_owner",
106
+ type: "address",
107
+ },
108
+ ],
109
+ name: "balanceOf",
110
+ outputs: [
111
+ {
112
+ name: "balance",
113
+ type: "uint256",
114
+ },
115
+ ],
116
+ payable: false,
117
+ stateMutability: "view",
118
+ type: "function",
119
+ },
120
+ {
121
+ constant: true,
122
+ inputs: [],
123
+ name: "symbol",
124
+ outputs: [
125
+ {
126
+ name: "",
127
+ type: "string",
128
+ },
129
+ ],
130
+ payable: false,
131
+ stateMutability: "view",
132
+ type: "function",
133
+ },
134
+ {
135
+ constant: false,
136
+ inputs: [
137
+ {
138
+ name: "_to",
139
+ type: "address",
140
+ },
141
+ {
142
+ name: "_value",
143
+ type: "uint256",
144
+ },
145
+ ],
146
+ name: "transfer",
147
+ outputs: [
148
+ {
149
+ name: "",
150
+ type: "bool",
151
+ },
152
+ ],
153
+ payable: false,
154
+ stateMutability: "nonpayable",
155
+ type: "function",
156
+ },
157
+ {
158
+ constant: true,
159
+ inputs: [
160
+ {
161
+ name: "_owner",
162
+ type: "address",
163
+ },
164
+ {
165
+ name: "_spender",
166
+ type: "address",
167
+ },
168
+ ],
169
+ name: "allowance",
170
+ outputs: [
171
+ {
172
+ name: "",
173
+ type: "uint256",
174
+ },
175
+ ],
176
+ payable: false,
177
+ stateMutability: "view",
178
+ type: "function",
179
+ },
180
+ {
181
+ payable: true,
182
+ stateMutability: "payable",
183
+ type: "fallback",
184
+ },
185
+ {
186
+ anonymous: false,
187
+ inputs: [
188
+ {
189
+ indexed: true,
190
+ name: "owner",
191
+ type: "address",
192
+ },
193
+ {
194
+ indexed: true,
195
+ name: "spender",
196
+ type: "address",
197
+ },
198
+ {
199
+ indexed: false,
200
+ name: "value",
201
+ type: "uint256",
202
+ },
203
+ ],
204
+ name: "Approval",
205
+ type: "event",
206
+ },
207
+ {
208
+ anonymous: false,
209
+ inputs: [
210
+ {
211
+ indexed: true,
212
+ name: "from",
213
+ type: "address",
214
+ },
215
+ {
216
+ indexed: true,
217
+ name: "to",
218
+ type: "address",
219
+ },
220
+ {
221
+ indexed: false,
222
+ name: "value",
223
+ type: "uint256",
224
+ },
225
+ ],
226
+ name: "Transfer",
227
+ type: "event",
228
+ },
229
+ ] as const;
230
+
231
+ export class ERC20__factory {
232
+ static readonly abi = _abi;
233
+ static createInterface(): ERC20Interface {
234
+ return new Interface(_abi) as ERC20Interface;
235
+ }
236
+ static connect(address: string, runner?: ContractRunner | null): ERC20 {
237
+ return new Contract(address, _abi, runner) as unknown as ERC20;
238
+ }
239
+ }