@opensea/sdk 9.0.0 → 10.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 (311) hide show
  1. package/README.md +35 -6
  2. package/lib/abi/abis.d.ts +301 -0
  3. package/lib/abi/abis.js +231 -0
  4. package/lib/abi/abis.js.map +1 -0
  5. package/lib/api/api.d.ts +26 -2
  6. package/lib/api/api.js +83 -51
  7. package/lib/api/api.js.map +1 -1
  8. package/lib/api/apiPaths.d.ts +2 -0
  9. package/lib/api/apiPaths.js +9 -1
  10. package/lib/api/apiPaths.js.map +1 -1
  11. package/lib/api/nfts.d.ts +13 -2
  12. package/lib/api/nfts.js +18 -0
  13. package/lib/api/nfts.js.map +1 -1
  14. package/lib/api/orders.js +2 -2
  15. package/lib/api/orders.js.map +1 -1
  16. package/lib/api/types.d.ts +7 -0
  17. package/lib/api/types.js.map +1 -1
  18. package/lib/constants.d.ts +2 -2
  19. package/lib/constants.js +7 -4
  20. package/lib/constants.js.map +1 -1
  21. package/lib/index.d.ts +2 -0
  22. package/lib/index.js +1 -0
  23. package/lib/index.js.map +1 -1
  24. package/lib/orders/privateListings.js +2 -2
  25. package/lib/orders/privateListings.js.map +1 -1
  26. package/lib/orders/utils.js +9 -1
  27. package/lib/orders/utils.js.map +1 -1
  28. package/lib/provider/ethers-adapter.d.ts +17 -0
  29. package/lib/provider/ethers-adapter.js +135 -0
  30. package/lib/provider/ethers-adapter.js.map +1 -0
  31. package/lib/provider/seaport-bridge.d.ts +11 -0
  32. package/lib/provider/seaport-bridge.js +130 -0
  33. package/lib/provider/seaport-bridge.js.map +1 -0
  34. package/lib/provider/types.d.ts +62 -0
  35. package/lib/provider/types.js +7 -0
  36. package/lib/provider/types.js.map +1 -0
  37. package/lib/provider/viem-adapter.d.ts +27 -0
  38. package/lib/provider/viem-adapter.js +122 -0
  39. package/lib/provider/viem-adapter.js.map +1 -0
  40. package/lib/sdk/assets.d.ts +7 -23
  41. package/lib/sdk/assets.js +101 -77
  42. package/lib/sdk/assets.js.map +1 -1
  43. package/lib/sdk/base.d.ts +350 -0
  44. package/lib/sdk/base.js +325 -0
  45. package/lib/sdk/base.js.map +1 -0
  46. package/lib/sdk/cancellation.d.ts +1 -2
  47. package/lib/sdk/cancellation.js +4 -4
  48. package/lib/sdk/cancellation.js.map +1 -1
  49. package/lib/sdk/context.d.ts +5 -5
  50. package/lib/sdk/fulfillment.d.ts +20 -59
  51. package/lib/sdk/fulfillment.js +18 -58
  52. package/lib/sdk/fulfillment.js.map +1 -1
  53. package/lib/sdk/orders.d.ts +25 -26
  54. package/lib/sdk/orders.js +8 -9
  55. package/lib/sdk/orders.js.map +1 -1
  56. package/lib/sdk/tokens.d.ts +3 -3
  57. package/lib/sdk/tokens.js +17 -7
  58. package/lib/sdk/tokens.js.map +1 -1
  59. package/lib/sdk.d.ts +16 -550
  60. package/lib/sdk.js +35 -663
  61. package/lib/sdk.js.map +1 -1
  62. package/lib/types.d.ts +11 -6
  63. package/lib/types.js +3 -3
  64. package/lib/types.js.map +1 -1
  65. package/lib/utils/address.d.ts +12 -0
  66. package/lib/utils/address.js +39 -0
  67. package/lib/utils/address.js.map +1 -0
  68. package/lib/utils/chain.d.ts +1 -1
  69. package/lib/utils/fees.d.ts +5 -0
  70. package/lib/utils/fees.js +24 -6
  71. package/lib/utils/fees.js.map +1 -1
  72. package/lib/utils/protocol.js +5 -5
  73. package/lib/utils/protocol.js.map +1 -1
  74. package/lib/utils/units.d.ts +12 -0
  75. package/lib/utils/units.js +43 -0
  76. package/lib/utils/units.js.map +1 -0
  77. package/lib/utils/utils.d.ts +2 -10
  78. package/lib/utils/utils.js +2 -17
  79. package/lib/utils/utils.js.map +1 -1
  80. package/lib/viem.d.ts +44 -0
  81. package/lib/viem.js +114 -0
  82. package/lib/viem.js.map +1 -0
  83. package/package.json +31 -13
  84. package/src/abi/abis.ts +236 -0
  85. package/src/api/api.ts +100 -59
  86. package/src/api/apiPaths.ts +16 -0
  87. package/src/api/nfts.ts +37 -1
  88. package/src/api/orders.ts +2 -2
  89. package/src/api/types.ts +8 -0
  90. package/src/constants.ts +7 -3
  91. package/src/index.ts +8 -0
  92. package/src/orders/privateListings.ts +2 -2
  93. package/src/orders/utils.ts +8 -1
  94. package/src/provider/ethers-adapter.ts +182 -0
  95. package/src/provider/seaport-bridge.ts +163 -0
  96. package/src/provider/types.ts +67 -0
  97. package/src/provider/viem-adapter.ts +165 -0
  98. package/src/sdk/assets.ts +128 -158
  99. package/src/sdk/base.ts +577 -0
  100. package/src/sdk/cancellation.ts +6 -9
  101. package/src/sdk/context.ts +5 -5
  102. package/src/sdk/fulfillment.ts +34 -73
  103. package/src/sdk/orders.ts +44 -44
  104. package/src/sdk/tokens.ts +18 -18
  105. package/src/sdk.ts +40 -1011
  106. package/src/types.ts +12 -6
  107. package/src/utils/address.ts +40 -0
  108. package/src/utils/fees.ts +28 -8
  109. package/src/utils/protocol.ts +5 -5
  110. package/src/utils/units.ts +47 -0
  111. package/src/utils/utils.ts +2 -22
  112. package/src/viem.ts +125 -0
  113. package/lib/src/api/accounts.d.ts +0 -18
  114. package/lib/src/api/accounts.js +0 -30
  115. package/lib/src/api/accounts.js.map +0 -1
  116. package/lib/src/api/api.d.ts +0 -429
  117. package/lib/src/api/api.js +0 -652
  118. package/lib/src/api/api.js.map +0 -1
  119. package/lib/src/api/apiPaths.d.ts +0 -37
  120. package/lib/src/api/apiPaths.js +0 -140
  121. package/lib/src/api/apiPaths.js.map +0 -1
  122. package/lib/src/api/collections.d.ts +0 -26
  123. package/lib/src/api/collections.js +0 -57
  124. package/lib/src/api/collections.js.map +0 -1
  125. package/lib/src/api/events.d.ts +0 -26
  126. package/lib/src/api/events.js +0 -42
  127. package/lib/src/api/events.js.map +0 -1
  128. package/lib/src/api/fetcher.d.ts +0 -24
  129. package/lib/src/api/fetcher.js +0 -3
  130. package/lib/src/api/fetcher.js.map +0 -1
  131. package/lib/src/api/index.d.ts +0 -2
  132. package/lib/src/api/index.js +0 -19
  133. package/lib/src/api/index.js.map +0 -1
  134. package/lib/src/api/listings.d.ts +0 -44
  135. package/lib/src/api/listings.js +0 -86
  136. package/lib/src/api/listings.js.map +0 -1
  137. package/lib/src/api/nfts.d.ts +0 -35
  138. package/lib/src/api/nfts.js +0 -66
  139. package/lib/src/api/nfts.js.map +0 -1
  140. package/lib/src/api/offers.d.ts +0 -54
  141. package/lib/src/api/offers.js +0 -122
  142. package/lib/src/api/offers.js.map +0 -1
  143. package/lib/src/api/orders.d.ts +0 -50
  144. package/lib/src/api/orders.js +0 -151
  145. package/lib/src/api/orders.js.map +0 -1
  146. package/lib/src/api/search.d.ts +0 -13
  147. package/lib/src/api/search.js +0 -21
  148. package/lib/src/api/search.js.map +0 -1
  149. package/lib/src/api/tokens.d.ts +0 -25
  150. package/lib/src/api/tokens.js +0 -42
  151. package/lib/src/api/tokens.js.map +0 -1
  152. package/lib/src/api/types.d.ts +0 -840
  153. package/lib/src/api/types.js +0 -65
  154. package/lib/src/api/types.js.map +0 -1
  155. package/lib/src/constants.d.ts +0 -22
  156. package/lib/src/constants.js +0 -52
  157. package/lib/src/constants.js.map +0 -1
  158. package/lib/src/index.d.ts +0 -18
  159. package/lib/src/index.js +0 -24
  160. package/lib/src/index.js.map +0 -1
  161. package/lib/src/orders/privateListings.d.ts +0 -12
  162. package/lib/src/orders/privateListings.js +0 -130
  163. package/lib/src/orders/privateListings.js.map +0 -1
  164. package/lib/src/orders/types.d.ts +0 -160
  165. package/lib/src/orders/types.js +0 -10
  166. package/lib/src/orders/types.js.map +0 -1
  167. package/lib/src/orders/utils.d.ts +0 -89
  168. package/lib/src/orders/utils.js +0 -177
  169. package/lib/src/orders/utils.js.map +0 -1
  170. package/lib/src/sdk/assets.d.ts +0 -104
  171. package/lib/src/sdk/assets.js +0 -397
  172. package/lib/src/sdk/assets.js.map +0 -1
  173. package/lib/src/sdk/cancellation.d.ts +0 -97
  174. package/lib/src/sdk/cancellation.js +0 -234
  175. package/lib/src/sdk/cancellation.js.map +0 -1
  176. package/lib/src/sdk/context.d.ts +0 -28
  177. package/lib/src/sdk/context.js +0 -3
  178. package/lib/src/sdk/context.js.map +0 -1
  179. package/lib/src/sdk/fulfillment.d.ts +0 -153
  180. package/lib/src/sdk/fulfillment.js +0 -296
  181. package/lib/src/sdk/fulfillment.js.map +0 -1
  182. package/lib/src/sdk/orders.d.ts +0 -253
  183. package/lib/src/sdk/orders.js +0 -677
  184. package/lib/src/sdk/orders.js.map +0 -1
  185. package/lib/src/sdk/tokens.d.ts +0 -31
  186. package/lib/src/sdk/tokens.js +0 -64
  187. package/lib/src/sdk/tokens.js.map +0 -1
  188. package/lib/src/sdk.d.ts +0 -560
  189. package/lib/src/sdk.js +0 -675
  190. package/lib/src/sdk.js.map +0 -1
  191. package/lib/src/typechain/contracts/ERC1155.d.ts +0 -236
  192. package/lib/src/typechain/contracts/ERC1155.js +0 -3
  193. package/lib/src/typechain/contracts/ERC1155.js.map +0 -1
  194. package/lib/src/typechain/contracts/ERC20.d.ts +0 -141
  195. package/lib/src/typechain/contracts/ERC20.js +0 -3
  196. package/lib/src/typechain/contracts/ERC20.js.map +0 -1
  197. package/lib/src/typechain/contracts/ERC721.d.ts +0 -213
  198. package/lib/src/typechain/contracts/ERC721.js +0 -3
  199. package/lib/src/typechain/contracts/ERC721.js.map +0 -1
  200. package/lib/src/typechain/contracts/Multicall3.d.ts +0 -57
  201. package/lib/src/typechain/contracts/Multicall3.js +0 -3
  202. package/lib/src/typechain/contracts/Multicall3.js.map +0 -1
  203. package/lib/src/typechain/contracts/TransferHelper.d.ts +0 -55
  204. package/lib/src/typechain/contracts/TransferHelper.js +0 -3
  205. package/lib/src/typechain/contracts/TransferHelper.js.map +0 -1
  206. package/lib/src/typechain/contracts/common.d.ts +0 -50
  207. package/lib/src/typechain/contracts/common.js +0 -3
  208. package/lib/src/typechain/contracts/common.js.map +0 -1
  209. package/lib/src/typechain/contracts/factories/ERC1155__factory.d.ts +0 -250
  210. package/lib/src/typechain/contracts/factories/ERC1155__factory.js +0 -332
  211. package/lib/src/typechain/contracts/factories/ERC1155__factory.js.map +0 -1
  212. package/lib/src/typechain/contracts/factories/ERC20__factory.d.ts +0 -174
  213. package/lib/src/typechain/contracts/factories/ERC20__factory.js +0 -240
  214. package/lib/src/typechain/contracts/factories/ERC20__factory.js.map +0 -1
  215. package/lib/src/typechain/contracts/factories/ERC721__factory.d.ts +0 -268
  216. package/lib/src/typechain/contracts/factories/ERC721__factory.js +0 -351
  217. package/lib/src/typechain/contracts/factories/ERC721__factory.js.map +0 -1
  218. package/lib/src/typechain/contracts/factories/Multicall3__factory.d.ts +0 -43
  219. package/lib/src/typechain/contracts/factories/Multicall3__factory.js +0 -68
  220. package/lib/src/typechain/contracts/factories/Multicall3__factory.js.map +0 -1
  221. package/lib/src/typechain/contracts/factories/TransferHelper__factory.d.ts +0 -46
  222. package/lib/src/typechain/contracts/factories/TransferHelper__factory.js +0 -71
  223. package/lib/src/typechain/contracts/factories/TransferHelper__factory.js.map +0 -1
  224. package/lib/src/typechain/contracts/factories/index.d.ts +0 -5
  225. package/lib/src/typechain/contracts/factories/index.js +0 -17
  226. package/lib/src/typechain/contracts/factories/index.js.map +0 -1
  227. package/lib/src/typechain/contracts/index.d.ts +0 -11
  228. package/lib/src/typechain/contracts/index.js +0 -48
  229. package/lib/src/typechain/contracts/index.js.map +0 -1
  230. package/lib/src/types.d.ts +0 -387
  231. package/lib/src/types.js +0 -127
  232. package/lib/src/types.js.map +0 -1
  233. package/lib/src/utils/chain.d.ts +0 -60
  234. package/lib/src/utils/chain.js +0 -248
  235. package/lib/src/utils/chain.js.map +0 -1
  236. package/lib/src/utils/converters.d.ts +0 -37
  237. package/lib/src/utils/converters.js +0 -137
  238. package/lib/src/utils/converters.js.map +0 -1
  239. package/lib/src/utils/dateHelper.d.ts +0 -38
  240. package/lib/src/utils/dateHelper.js +0 -52
  241. package/lib/src/utils/dateHelper.js.map +0 -1
  242. package/lib/src/utils/fees.d.ts +0 -13
  243. package/lib/src/utils/fees.js +0 -29
  244. package/lib/src/utils/fees.js.map +0 -1
  245. package/lib/src/utils/index.d.ts +0 -2
  246. package/lib/src/utils/index.js +0 -19
  247. package/lib/src/utils/index.js.map +0 -1
  248. package/lib/src/utils/protocol.d.ts +0 -75
  249. package/lib/src/utils/protocol.js +0 -161
  250. package/lib/src/utils/protocol.js.map +0 -1
  251. package/lib/src/utils/rateLimit.d.ts +0 -34
  252. package/lib/src/utils/rateLimit.js +0 -97
  253. package/lib/src/utils/rateLimit.js.map +0 -1
  254. package/lib/src/utils/stringHelper.d.ts +0 -18
  255. package/lib/src/utils/stringHelper.js +0 -24
  256. package/lib/src/utils/stringHelper.js.map +0 -1
  257. package/lib/src/utils/utils.d.ts +0 -18
  258. package/lib/src/utils/utils.js +0 -45
  259. package/lib/src/utils/utils.js.map +0 -1
  260. package/lib/typechain/contracts/ERC1155.d.ts +0 -236
  261. package/lib/typechain/contracts/ERC1155.js +0 -3
  262. package/lib/typechain/contracts/ERC1155.js.map +0 -1
  263. package/lib/typechain/contracts/ERC20.d.ts +0 -141
  264. package/lib/typechain/contracts/ERC20.js +0 -3
  265. package/lib/typechain/contracts/ERC20.js.map +0 -1
  266. package/lib/typechain/contracts/ERC721.d.ts +0 -213
  267. package/lib/typechain/contracts/ERC721.js +0 -3
  268. package/lib/typechain/contracts/ERC721.js.map +0 -1
  269. package/lib/typechain/contracts/Multicall3.d.ts +0 -57
  270. package/lib/typechain/contracts/Multicall3.js +0 -3
  271. package/lib/typechain/contracts/Multicall3.js.map +0 -1
  272. package/lib/typechain/contracts/TransferHelper.d.ts +0 -55
  273. package/lib/typechain/contracts/TransferHelper.js +0 -3
  274. package/lib/typechain/contracts/TransferHelper.js.map +0 -1
  275. package/lib/typechain/contracts/common.d.ts +0 -50
  276. package/lib/typechain/contracts/common.js +0 -3
  277. package/lib/typechain/contracts/common.js.map +0 -1
  278. package/lib/typechain/contracts/factories/ERC1155__factory.d.ts +0 -250
  279. package/lib/typechain/contracts/factories/ERC1155__factory.js +0 -332
  280. package/lib/typechain/contracts/factories/ERC1155__factory.js.map +0 -1
  281. package/lib/typechain/contracts/factories/ERC20__factory.d.ts +0 -174
  282. package/lib/typechain/contracts/factories/ERC20__factory.js +0 -240
  283. package/lib/typechain/contracts/factories/ERC20__factory.js.map +0 -1
  284. package/lib/typechain/contracts/factories/ERC721__factory.d.ts +0 -268
  285. package/lib/typechain/contracts/factories/ERC721__factory.js +0 -351
  286. package/lib/typechain/contracts/factories/ERC721__factory.js.map +0 -1
  287. package/lib/typechain/contracts/factories/Multicall3__factory.d.ts +0 -43
  288. package/lib/typechain/contracts/factories/Multicall3__factory.js +0 -68
  289. package/lib/typechain/contracts/factories/Multicall3__factory.js.map +0 -1
  290. package/lib/typechain/contracts/factories/TransferHelper__factory.d.ts +0 -46
  291. package/lib/typechain/contracts/factories/TransferHelper__factory.js +0 -71
  292. package/lib/typechain/contracts/factories/TransferHelper__factory.js.map +0 -1
  293. package/lib/typechain/contracts/factories/index.d.ts +0 -5
  294. package/lib/typechain/contracts/factories/index.js +0 -17
  295. package/lib/typechain/contracts/factories/index.js.map +0 -1
  296. package/lib/typechain/contracts/index.d.ts +0 -11
  297. package/lib/typechain/contracts/index.js +0 -48
  298. package/lib/typechain/contracts/index.js.map +0 -1
  299. package/src/typechain/contracts/ERC1155.ts +0 -440
  300. package/src/typechain/contracts/ERC20.ts +0 -286
  301. package/src/typechain/contracts/ERC721.ts +0 -412
  302. package/src/typechain/contracts/Multicall3.ts +0 -117
  303. package/src/typechain/contracts/TransferHelper.ts +0 -122
  304. package/src/typechain/contracts/common.ts +0 -131
  305. package/src/typechain/contracts/factories/ERC1155__factory.ts +0 -331
  306. package/src/typechain/contracts/factories/ERC20__factory.ts +0 -239
  307. package/src/typechain/contracts/factories/ERC721__factory.ts +0 -350
  308. package/src/typechain/contracts/factories/Multicall3__factory.ts +0 -67
  309. package/src/typechain/contracts/factories/TransferHelper__factory.ts +0 -76
  310. package/src/typechain/contracts/factories/index.ts +0 -8
  311. package/src/typechain/contracts/index.ts +0 -14
@@ -1,117 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import type {
5
- BaseContract,
6
- BytesLike,
7
- FunctionFragment,
8
- Result,
9
- Interface,
10
- AddressLike,
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 Multicall3 {
24
- export type Call3Struct = {
25
- target: AddressLike;
26
- allowFailure: boolean;
27
- callData: BytesLike;
28
- };
29
-
30
- export type Call3StructOutput = [
31
- target: string,
32
- allowFailure: boolean,
33
- callData: string
34
- ] & { target: string; allowFailure: boolean; callData: string };
35
-
36
- export type ResultStruct = { success: boolean; returnData: BytesLike };
37
-
38
- export type ResultStructOutput = [success: boolean, returnData: string] & {
39
- success: boolean;
40
- returnData: string;
41
- };
42
- }
43
-
44
- export interface Multicall3Interface extends Interface {
45
- getFunction(nameOrSignature: "aggregate3"): FunctionFragment;
46
-
47
- encodeFunctionData(
48
- functionFragment: "aggregate3",
49
- values: [Multicall3.Call3Struct[]]
50
- ): string;
51
-
52
- decodeFunctionResult(functionFragment: "aggregate3", data: BytesLike): Result;
53
- }
54
-
55
- export interface Multicall3 extends BaseContract {
56
- connect(runner?: ContractRunner | null): Multicall3;
57
- waitForDeployment(): Promise<this>;
58
-
59
- interface: Multicall3Interface;
60
-
61
- queryFilter<TCEvent extends TypedContractEvent>(
62
- event: TCEvent,
63
- fromBlockOrBlockhash?: string | number | undefined,
64
- toBlock?: string | number | undefined
65
- ): Promise<Array<TypedEventLog<TCEvent>>>;
66
- queryFilter<TCEvent extends TypedContractEvent>(
67
- filter: TypedDeferredTopicFilter<TCEvent>,
68
- fromBlockOrBlockhash?: string | number | undefined,
69
- toBlock?: string | number | undefined
70
- ): Promise<Array<TypedEventLog<TCEvent>>>;
71
-
72
- on<TCEvent extends TypedContractEvent>(
73
- event: TCEvent,
74
- listener: TypedListener<TCEvent>
75
- ): Promise<this>;
76
- on<TCEvent extends TypedContractEvent>(
77
- filter: TypedDeferredTopicFilter<TCEvent>,
78
- listener: TypedListener<TCEvent>
79
- ): Promise<this>;
80
-
81
- once<TCEvent extends TypedContractEvent>(
82
- event: TCEvent,
83
- listener: TypedListener<TCEvent>
84
- ): Promise<this>;
85
- once<TCEvent extends TypedContractEvent>(
86
- filter: TypedDeferredTopicFilter<TCEvent>,
87
- listener: TypedListener<TCEvent>
88
- ): Promise<this>;
89
-
90
- listeners<TCEvent extends TypedContractEvent>(
91
- event: TCEvent
92
- ): Promise<Array<TypedListener<TCEvent>>>;
93
- listeners(eventName?: string): Promise<Array<Listener>>;
94
- removeAllListeners<TCEvent extends TypedContractEvent>(
95
- event?: TCEvent
96
- ): Promise<this>;
97
-
98
- aggregate3: TypedContractMethod<
99
- [calls: Multicall3.Call3Struct[]],
100
- [Multicall3.ResultStructOutput[]],
101
- "payable"
102
- >;
103
-
104
- getFunction<T extends ContractMethod = ContractMethod>(
105
- key: string | FunctionFragment
106
- ): T;
107
-
108
- getFunction(
109
- nameOrSignature: "aggregate3"
110
- ): TypedContractMethod<
111
- [calls: Multicall3.Call3Struct[]],
112
- [Multicall3.ResultStructOutput[]],
113
- "payable"
114
- >;
115
-
116
- filters: {};
117
- }
@@ -1,122 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import type {
5
- BaseContract,
6
- BigNumberish,
7
- BytesLike,
8
- FunctionFragment,
9
- Result,
10
- Interface,
11
- AddressLike,
12
- ContractRunner,
13
- ContractMethod,
14
- Listener,
15
- } from "ethers";
16
- import type {
17
- TypedContractEvent,
18
- TypedDeferredTopicFilter,
19
- TypedEventLog,
20
- TypedListener,
21
- TypedContractMethod,
22
- } from "./common";
23
-
24
- export type TransferHelperItemStruct = {
25
- itemType: BigNumberish;
26
- token: AddressLike;
27
- identifier: BigNumberish;
28
- amount: BigNumberish;
29
- recipient: AddressLike;
30
- };
31
-
32
- export type TransferHelperItemStructOutput = [
33
- itemType: bigint,
34
- token: string,
35
- identifier: bigint,
36
- amount: bigint,
37
- recipient: string
38
- ] & {
39
- itemType: bigint;
40
- token: string;
41
- identifier: bigint;
42
- amount: bigint;
43
- recipient: string;
44
- };
45
-
46
- export interface TransferHelperInterface extends Interface {
47
- getFunction(nameOrSignature: "bulkTransfer"): FunctionFragment;
48
-
49
- encodeFunctionData(
50
- functionFragment: "bulkTransfer",
51
- values: [TransferHelperItemStruct[], BytesLike]
52
- ): string;
53
-
54
- decodeFunctionResult(
55
- functionFragment: "bulkTransfer",
56
- data: BytesLike
57
- ): Result;
58
- }
59
-
60
- export interface TransferHelper extends BaseContract {
61
- connect(runner?: ContractRunner | null): TransferHelper;
62
- waitForDeployment(): Promise<this>;
63
-
64
- interface: TransferHelperInterface;
65
-
66
- queryFilter<TCEvent extends TypedContractEvent>(
67
- event: TCEvent,
68
- fromBlockOrBlockhash?: string | number | undefined,
69
- toBlock?: string | number | undefined
70
- ): Promise<Array<TypedEventLog<TCEvent>>>;
71
- queryFilter<TCEvent extends TypedContractEvent>(
72
- filter: TypedDeferredTopicFilter<TCEvent>,
73
- fromBlockOrBlockhash?: string | number | undefined,
74
- toBlock?: string | number | undefined
75
- ): Promise<Array<TypedEventLog<TCEvent>>>;
76
-
77
- on<TCEvent extends TypedContractEvent>(
78
- event: TCEvent,
79
- listener: TypedListener<TCEvent>
80
- ): Promise<this>;
81
- on<TCEvent extends TypedContractEvent>(
82
- filter: TypedDeferredTopicFilter<TCEvent>,
83
- listener: TypedListener<TCEvent>
84
- ): Promise<this>;
85
-
86
- once<TCEvent extends TypedContractEvent>(
87
- event: TCEvent,
88
- listener: TypedListener<TCEvent>
89
- ): Promise<this>;
90
- once<TCEvent extends TypedContractEvent>(
91
- filter: TypedDeferredTopicFilter<TCEvent>,
92
- listener: TypedListener<TCEvent>
93
- ): Promise<this>;
94
-
95
- listeners<TCEvent extends TypedContractEvent>(
96
- event: TCEvent
97
- ): Promise<Array<TypedListener<TCEvent>>>;
98
- listeners(eventName?: string): Promise<Array<Listener>>;
99
- removeAllListeners<TCEvent extends TypedContractEvent>(
100
- event?: TCEvent
101
- ): Promise<this>;
102
-
103
- bulkTransfer: TypedContractMethod<
104
- [items: TransferHelperItemStruct[], conduitKey: BytesLike],
105
- [string],
106
- "nonpayable"
107
- >;
108
-
109
- getFunction<T extends ContractMethod = ContractMethod>(
110
- key: string | FunctionFragment
111
- ): T;
112
-
113
- getFunction(
114
- nameOrSignature: "bulkTransfer"
115
- ): TypedContractMethod<
116
- [items: TransferHelperItemStruct[], conduitKey: BytesLike],
117
- [string],
118
- "nonpayable"
119
- >;
120
-
121
- filters: {};
122
- }
@@ -1,131 +0,0 @@
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
- }
@@ -1,331 +0,0 @@
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
- }