@opensea/sdk 9.0.0 → 10.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 (300) hide show
  1. package/README.md +25 -4
  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 +6 -1
  6. package/lib/api/api.js +60 -51
  7. package/lib/api/api.js.map +1 -1
  8. package/lib/api/orders.js +2 -2
  9. package/lib/api/orders.js.map +1 -1
  10. package/lib/constants.d.ts +2 -2
  11. package/lib/constants.js +7 -4
  12. package/lib/constants.js.map +1 -1
  13. package/lib/index.d.ts +2 -0
  14. package/lib/index.js +1 -0
  15. package/lib/index.js.map +1 -1
  16. package/lib/orders/privateListings.js +2 -2
  17. package/lib/orders/privateListings.js.map +1 -1
  18. package/lib/orders/utils.js +9 -1
  19. package/lib/orders/utils.js.map +1 -1
  20. package/lib/provider/ethers-adapter.d.ts +17 -0
  21. package/lib/provider/ethers-adapter.js +135 -0
  22. package/lib/provider/ethers-adapter.js.map +1 -0
  23. package/lib/provider/seaport-bridge.d.ts +11 -0
  24. package/lib/provider/seaport-bridge.js +130 -0
  25. package/lib/provider/seaport-bridge.js.map +1 -0
  26. package/lib/provider/types.d.ts +62 -0
  27. package/lib/provider/types.js +7 -0
  28. package/lib/provider/types.js.map +1 -0
  29. package/lib/provider/viem-adapter.d.ts +27 -0
  30. package/lib/provider/viem-adapter.js +122 -0
  31. package/lib/provider/viem-adapter.js.map +1 -0
  32. package/lib/sdk/assets.d.ts +7 -23
  33. package/lib/sdk/assets.js +101 -77
  34. package/lib/sdk/assets.js.map +1 -1
  35. package/lib/sdk/base.d.ts +334 -0
  36. package/lib/sdk/base.js +312 -0
  37. package/lib/sdk/base.js.map +1 -0
  38. package/lib/sdk/cancellation.d.ts +1 -2
  39. package/lib/sdk/cancellation.js +4 -4
  40. package/lib/sdk/cancellation.js.map +1 -1
  41. package/lib/sdk/context.d.ts +5 -5
  42. package/lib/sdk/fulfillment.d.ts +13 -58
  43. package/lib/sdk/fulfillment.js +16 -58
  44. package/lib/sdk/fulfillment.js.map +1 -1
  45. package/lib/sdk/orders.d.ts +25 -26
  46. package/lib/sdk/orders.js +8 -9
  47. package/lib/sdk/orders.js.map +1 -1
  48. package/lib/sdk/tokens.d.ts +3 -3
  49. package/lib/sdk/tokens.js +17 -7
  50. package/lib/sdk/tokens.js.map +1 -1
  51. package/lib/sdk.d.ts +16 -550
  52. package/lib/sdk.js +35 -663
  53. package/lib/sdk.js.map +1 -1
  54. package/lib/types.d.ts +11 -6
  55. package/lib/types.js +3 -3
  56. package/lib/types.js.map +1 -1
  57. package/lib/utils/address.d.ts +12 -0
  58. package/lib/utils/address.js +39 -0
  59. package/lib/utils/address.js.map +1 -0
  60. package/lib/utils/chain.d.ts +1 -1
  61. package/lib/utils/fees.d.ts +5 -0
  62. package/lib/utils/fees.js +24 -6
  63. package/lib/utils/fees.js.map +1 -1
  64. package/lib/utils/protocol.js +5 -5
  65. package/lib/utils/protocol.js.map +1 -1
  66. package/lib/utils/units.d.ts +12 -0
  67. package/lib/utils/units.js +43 -0
  68. package/lib/utils/units.js.map +1 -0
  69. package/lib/utils/utils.d.ts +2 -10
  70. package/lib/utils/utils.js +2 -17
  71. package/lib/utils/utils.js.map +1 -1
  72. package/lib/viem.d.ts +44 -0
  73. package/lib/viem.js +114 -0
  74. package/lib/viem.js.map +1 -0
  75. package/package.json +25 -8
  76. package/src/abi/abis.ts +236 -0
  77. package/src/api/api.ts +66 -59
  78. package/src/api/orders.ts +2 -2
  79. package/src/constants.ts +7 -3
  80. package/src/index.ts +8 -0
  81. package/src/orders/privateListings.ts +2 -2
  82. package/src/orders/utils.ts +8 -1
  83. package/src/provider/ethers-adapter.ts +182 -0
  84. package/src/provider/seaport-bridge.ts +163 -0
  85. package/src/provider/types.ts +67 -0
  86. package/src/provider/viem-adapter.ts +165 -0
  87. package/src/sdk/assets.ts +128 -158
  88. package/src/sdk/base.ts +558 -0
  89. package/src/sdk/cancellation.ts +6 -9
  90. package/src/sdk/context.ts +5 -5
  91. package/src/sdk/fulfillment.ts +31 -72
  92. package/src/sdk/orders.ts +44 -44
  93. package/src/sdk/tokens.ts +18 -18
  94. package/src/sdk.ts +40 -1011
  95. package/src/types.ts +12 -6
  96. package/src/utils/address.ts +40 -0
  97. package/src/utils/fees.ts +28 -8
  98. package/src/utils/protocol.ts +5 -5
  99. package/src/utils/units.ts +47 -0
  100. package/src/utils/utils.ts +2 -22
  101. package/src/viem.ts +125 -0
  102. package/lib/src/api/accounts.d.ts +0 -18
  103. package/lib/src/api/accounts.js +0 -30
  104. package/lib/src/api/accounts.js.map +0 -1
  105. package/lib/src/api/api.d.ts +0 -429
  106. package/lib/src/api/api.js +0 -652
  107. package/lib/src/api/api.js.map +0 -1
  108. package/lib/src/api/apiPaths.d.ts +0 -37
  109. package/lib/src/api/apiPaths.js +0 -140
  110. package/lib/src/api/apiPaths.js.map +0 -1
  111. package/lib/src/api/collections.d.ts +0 -26
  112. package/lib/src/api/collections.js +0 -57
  113. package/lib/src/api/collections.js.map +0 -1
  114. package/lib/src/api/events.d.ts +0 -26
  115. package/lib/src/api/events.js +0 -42
  116. package/lib/src/api/events.js.map +0 -1
  117. package/lib/src/api/fetcher.d.ts +0 -24
  118. package/lib/src/api/fetcher.js +0 -3
  119. package/lib/src/api/fetcher.js.map +0 -1
  120. package/lib/src/api/index.d.ts +0 -2
  121. package/lib/src/api/index.js +0 -19
  122. package/lib/src/api/index.js.map +0 -1
  123. package/lib/src/api/listings.d.ts +0 -44
  124. package/lib/src/api/listings.js +0 -86
  125. package/lib/src/api/listings.js.map +0 -1
  126. package/lib/src/api/nfts.d.ts +0 -35
  127. package/lib/src/api/nfts.js +0 -66
  128. package/lib/src/api/nfts.js.map +0 -1
  129. package/lib/src/api/offers.d.ts +0 -54
  130. package/lib/src/api/offers.js +0 -122
  131. package/lib/src/api/offers.js.map +0 -1
  132. package/lib/src/api/orders.d.ts +0 -50
  133. package/lib/src/api/orders.js +0 -151
  134. package/lib/src/api/orders.js.map +0 -1
  135. package/lib/src/api/search.d.ts +0 -13
  136. package/lib/src/api/search.js +0 -21
  137. package/lib/src/api/search.js.map +0 -1
  138. package/lib/src/api/tokens.d.ts +0 -25
  139. package/lib/src/api/tokens.js +0 -42
  140. package/lib/src/api/tokens.js.map +0 -1
  141. package/lib/src/api/types.d.ts +0 -840
  142. package/lib/src/api/types.js +0 -65
  143. package/lib/src/api/types.js.map +0 -1
  144. package/lib/src/constants.d.ts +0 -22
  145. package/lib/src/constants.js +0 -52
  146. package/lib/src/constants.js.map +0 -1
  147. package/lib/src/index.d.ts +0 -18
  148. package/lib/src/index.js +0 -24
  149. package/lib/src/index.js.map +0 -1
  150. package/lib/src/orders/privateListings.d.ts +0 -12
  151. package/lib/src/orders/privateListings.js +0 -130
  152. package/lib/src/orders/privateListings.js.map +0 -1
  153. package/lib/src/orders/types.d.ts +0 -160
  154. package/lib/src/orders/types.js +0 -10
  155. package/lib/src/orders/types.js.map +0 -1
  156. package/lib/src/orders/utils.d.ts +0 -89
  157. package/lib/src/orders/utils.js +0 -177
  158. package/lib/src/orders/utils.js.map +0 -1
  159. package/lib/src/sdk/assets.d.ts +0 -104
  160. package/lib/src/sdk/assets.js +0 -397
  161. package/lib/src/sdk/assets.js.map +0 -1
  162. package/lib/src/sdk/cancellation.d.ts +0 -97
  163. package/lib/src/sdk/cancellation.js +0 -234
  164. package/lib/src/sdk/cancellation.js.map +0 -1
  165. package/lib/src/sdk/context.d.ts +0 -28
  166. package/lib/src/sdk/context.js +0 -3
  167. package/lib/src/sdk/context.js.map +0 -1
  168. package/lib/src/sdk/fulfillment.d.ts +0 -153
  169. package/lib/src/sdk/fulfillment.js +0 -296
  170. package/lib/src/sdk/fulfillment.js.map +0 -1
  171. package/lib/src/sdk/orders.d.ts +0 -253
  172. package/lib/src/sdk/orders.js +0 -677
  173. package/lib/src/sdk/orders.js.map +0 -1
  174. package/lib/src/sdk/tokens.d.ts +0 -31
  175. package/lib/src/sdk/tokens.js +0 -64
  176. package/lib/src/sdk/tokens.js.map +0 -1
  177. package/lib/src/sdk.d.ts +0 -560
  178. package/lib/src/sdk.js +0 -675
  179. package/lib/src/sdk.js.map +0 -1
  180. package/lib/src/typechain/contracts/ERC1155.d.ts +0 -236
  181. package/lib/src/typechain/contracts/ERC1155.js +0 -3
  182. package/lib/src/typechain/contracts/ERC1155.js.map +0 -1
  183. package/lib/src/typechain/contracts/ERC20.d.ts +0 -141
  184. package/lib/src/typechain/contracts/ERC20.js +0 -3
  185. package/lib/src/typechain/contracts/ERC20.js.map +0 -1
  186. package/lib/src/typechain/contracts/ERC721.d.ts +0 -213
  187. package/lib/src/typechain/contracts/ERC721.js +0 -3
  188. package/lib/src/typechain/contracts/ERC721.js.map +0 -1
  189. package/lib/src/typechain/contracts/Multicall3.d.ts +0 -57
  190. package/lib/src/typechain/contracts/Multicall3.js +0 -3
  191. package/lib/src/typechain/contracts/Multicall3.js.map +0 -1
  192. package/lib/src/typechain/contracts/TransferHelper.d.ts +0 -55
  193. package/lib/src/typechain/contracts/TransferHelper.js +0 -3
  194. package/lib/src/typechain/contracts/TransferHelper.js.map +0 -1
  195. package/lib/src/typechain/contracts/common.d.ts +0 -50
  196. package/lib/src/typechain/contracts/common.js +0 -3
  197. package/lib/src/typechain/contracts/common.js.map +0 -1
  198. package/lib/src/typechain/contracts/factories/ERC1155__factory.d.ts +0 -250
  199. package/lib/src/typechain/contracts/factories/ERC1155__factory.js +0 -332
  200. package/lib/src/typechain/contracts/factories/ERC1155__factory.js.map +0 -1
  201. package/lib/src/typechain/contracts/factories/ERC20__factory.d.ts +0 -174
  202. package/lib/src/typechain/contracts/factories/ERC20__factory.js +0 -240
  203. package/lib/src/typechain/contracts/factories/ERC20__factory.js.map +0 -1
  204. package/lib/src/typechain/contracts/factories/ERC721__factory.d.ts +0 -268
  205. package/lib/src/typechain/contracts/factories/ERC721__factory.js +0 -351
  206. package/lib/src/typechain/contracts/factories/ERC721__factory.js.map +0 -1
  207. package/lib/src/typechain/contracts/factories/Multicall3__factory.d.ts +0 -43
  208. package/lib/src/typechain/contracts/factories/Multicall3__factory.js +0 -68
  209. package/lib/src/typechain/contracts/factories/Multicall3__factory.js.map +0 -1
  210. package/lib/src/typechain/contracts/factories/TransferHelper__factory.d.ts +0 -46
  211. package/lib/src/typechain/contracts/factories/TransferHelper__factory.js +0 -71
  212. package/lib/src/typechain/contracts/factories/TransferHelper__factory.js.map +0 -1
  213. package/lib/src/typechain/contracts/factories/index.d.ts +0 -5
  214. package/lib/src/typechain/contracts/factories/index.js +0 -17
  215. package/lib/src/typechain/contracts/factories/index.js.map +0 -1
  216. package/lib/src/typechain/contracts/index.d.ts +0 -11
  217. package/lib/src/typechain/contracts/index.js +0 -48
  218. package/lib/src/typechain/contracts/index.js.map +0 -1
  219. package/lib/src/types.d.ts +0 -387
  220. package/lib/src/types.js +0 -127
  221. package/lib/src/types.js.map +0 -1
  222. package/lib/src/utils/chain.d.ts +0 -60
  223. package/lib/src/utils/chain.js +0 -248
  224. package/lib/src/utils/chain.js.map +0 -1
  225. package/lib/src/utils/converters.d.ts +0 -37
  226. package/lib/src/utils/converters.js +0 -137
  227. package/lib/src/utils/converters.js.map +0 -1
  228. package/lib/src/utils/dateHelper.d.ts +0 -38
  229. package/lib/src/utils/dateHelper.js +0 -52
  230. package/lib/src/utils/dateHelper.js.map +0 -1
  231. package/lib/src/utils/fees.d.ts +0 -13
  232. package/lib/src/utils/fees.js +0 -29
  233. package/lib/src/utils/fees.js.map +0 -1
  234. package/lib/src/utils/index.d.ts +0 -2
  235. package/lib/src/utils/index.js +0 -19
  236. package/lib/src/utils/index.js.map +0 -1
  237. package/lib/src/utils/protocol.d.ts +0 -75
  238. package/lib/src/utils/protocol.js +0 -161
  239. package/lib/src/utils/protocol.js.map +0 -1
  240. package/lib/src/utils/rateLimit.d.ts +0 -34
  241. package/lib/src/utils/rateLimit.js +0 -97
  242. package/lib/src/utils/rateLimit.js.map +0 -1
  243. package/lib/src/utils/stringHelper.d.ts +0 -18
  244. package/lib/src/utils/stringHelper.js +0 -24
  245. package/lib/src/utils/stringHelper.js.map +0 -1
  246. package/lib/src/utils/utils.d.ts +0 -18
  247. package/lib/src/utils/utils.js +0 -45
  248. package/lib/src/utils/utils.js.map +0 -1
  249. package/lib/typechain/contracts/ERC1155.d.ts +0 -236
  250. package/lib/typechain/contracts/ERC1155.js +0 -3
  251. package/lib/typechain/contracts/ERC1155.js.map +0 -1
  252. package/lib/typechain/contracts/ERC20.d.ts +0 -141
  253. package/lib/typechain/contracts/ERC20.js +0 -3
  254. package/lib/typechain/contracts/ERC20.js.map +0 -1
  255. package/lib/typechain/contracts/ERC721.d.ts +0 -213
  256. package/lib/typechain/contracts/ERC721.js +0 -3
  257. package/lib/typechain/contracts/ERC721.js.map +0 -1
  258. package/lib/typechain/contracts/Multicall3.d.ts +0 -57
  259. package/lib/typechain/contracts/Multicall3.js +0 -3
  260. package/lib/typechain/contracts/Multicall3.js.map +0 -1
  261. package/lib/typechain/contracts/TransferHelper.d.ts +0 -55
  262. package/lib/typechain/contracts/TransferHelper.js +0 -3
  263. package/lib/typechain/contracts/TransferHelper.js.map +0 -1
  264. package/lib/typechain/contracts/common.d.ts +0 -50
  265. package/lib/typechain/contracts/common.js +0 -3
  266. package/lib/typechain/contracts/common.js.map +0 -1
  267. package/lib/typechain/contracts/factories/ERC1155__factory.d.ts +0 -250
  268. package/lib/typechain/contracts/factories/ERC1155__factory.js +0 -332
  269. package/lib/typechain/contracts/factories/ERC1155__factory.js.map +0 -1
  270. package/lib/typechain/contracts/factories/ERC20__factory.d.ts +0 -174
  271. package/lib/typechain/contracts/factories/ERC20__factory.js +0 -240
  272. package/lib/typechain/contracts/factories/ERC20__factory.js.map +0 -1
  273. package/lib/typechain/contracts/factories/ERC721__factory.d.ts +0 -268
  274. package/lib/typechain/contracts/factories/ERC721__factory.js +0 -351
  275. package/lib/typechain/contracts/factories/ERC721__factory.js.map +0 -1
  276. package/lib/typechain/contracts/factories/Multicall3__factory.d.ts +0 -43
  277. package/lib/typechain/contracts/factories/Multicall3__factory.js +0 -68
  278. package/lib/typechain/contracts/factories/Multicall3__factory.js.map +0 -1
  279. package/lib/typechain/contracts/factories/TransferHelper__factory.d.ts +0 -46
  280. package/lib/typechain/contracts/factories/TransferHelper__factory.js +0 -71
  281. package/lib/typechain/contracts/factories/TransferHelper__factory.js.map +0 -1
  282. package/lib/typechain/contracts/factories/index.d.ts +0 -5
  283. package/lib/typechain/contracts/factories/index.js +0 -17
  284. package/lib/typechain/contracts/factories/index.js.map +0 -1
  285. package/lib/typechain/contracts/index.d.ts +0 -11
  286. package/lib/typechain/contracts/index.js +0 -48
  287. package/lib/typechain/contracts/index.js.map +0 -1
  288. package/src/typechain/contracts/ERC1155.ts +0 -440
  289. package/src/typechain/contracts/ERC20.ts +0 -286
  290. package/src/typechain/contracts/ERC721.ts +0 -412
  291. package/src/typechain/contracts/Multicall3.ts +0 -117
  292. package/src/typechain/contracts/TransferHelper.ts +0 -122
  293. package/src/typechain/contracts/common.ts +0 -131
  294. package/src/typechain/contracts/factories/ERC1155__factory.ts +0 -331
  295. package/src/typechain/contracts/factories/ERC20__factory.ts +0 -239
  296. package/src/typechain/contracts/factories/ERC721__factory.ts +0 -350
  297. package/src/typechain/contracts/factories/Multicall3__factory.ts +0 -67
  298. package/src/typechain/contracts/factories/TransferHelper__factory.ts +0 -76
  299. package/src/typechain/contracts/factories/index.ts +0 -8
  300. package/src/typechain/contracts/index.ts +0 -14
@@ -1,239 +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 { 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
- }
@@ -1,350 +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 { ERC721, ERC721Interface } from "../ERC721";
7
-
8
- const _abi = [
9
- {
10
- constant: false,
11
- inputs: [
12
- {
13
- internalType: "address",
14
- name: "to",
15
- type: "address",
16
- },
17
- {
18
- internalType: "uint256",
19
- name: "tokenId",
20
- type: "uint256",
21
- },
22
- ],
23
- name: "approve",
24
- outputs: [],
25
- payable: false,
26
- stateMutability: "nonpayable",
27
- type: "function",
28
- },
29
- {
30
- constant: false,
31
- inputs: [
32
- {
33
- internalType: "address",
34
- name: "to",
35
- type: "address",
36
- },
37
- {
38
- internalType: "uint256",
39
- name: "tokenId",
40
- type: "uint256",
41
- },
42
- ],
43
- name: "mint",
44
- outputs: [],
45
- payable: false,
46
- stateMutability: "nonpayable",
47
- type: "function",
48
- },
49
- {
50
- constant: false,
51
- inputs: [
52
- {
53
- internalType: "address",
54
- name: "from",
55
- type: "address",
56
- },
57
- {
58
- internalType: "address",
59
- name: "to",
60
- type: "address",
61
- },
62
- {
63
- internalType: "uint256",
64
- name: "tokenId",
65
- type: "uint256",
66
- },
67
- ],
68
- name: "safeTransferFrom",
69
- outputs: [],
70
- payable: false,
71
- stateMutability: "nonpayable",
72
- type: "function",
73
- },
74
- {
75
- constant: false,
76
- inputs: [
77
- {
78
- internalType: "address",
79
- name: "from",
80
- type: "address",
81
- },
82
- {
83
- internalType: "address",
84
- name: "to",
85
- type: "address",
86
- },
87
- {
88
- internalType: "uint256",
89
- name: "tokenId",
90
- type: "uint256",
91
- },
92
- {
93
- internalType: "bytes",
94
- name: "_data",
95
- type: "bytes",
96
- },
97
- ],
98
- name: "safeTransferFrom",
99
- outputs: [],
100
- payable: false,
101
- stateMutability: "nonpayable",
102
- type: "function",
103
- },
104
- {
105
- constant: false,
106
- inputs: [
107
- {
108
- internalType: "address",
109
- name: "to",
110
- type: "address",
111
- },
112
- {
113
- internalType: "bool",
114
- name: "approved",
115
- type: "bool",
116
- },
117
- ],
118
- name: "setApprovalForAll",
119
- outputs: [],
120
- payable: false,
121
- stateMutability: "nonpayable",
122
- type: "function",
123
- },
124
- {
125
- constant: false,
126
- inputs: [
127
- {
128
- internalType: "address",
129
- name: "from",
130
- type: "address",
131
- },
132
- {
133
- internalType: "address",
134
- name: "to",
135
- type: "address",
136
- },
137
- {
138
- internalType: "uint256",
139
- name: "tokenId",
140
- type: "uint256",
141
- },
142
- ],
143
- name: "transferFrom",
144
- outputs: [],
145
- payable: false,
146
- stateMutability: "nonpayable",
147
- type: "function",
148
- },
149
- {
150
- inputs: [],
151
- payable: false,
152
- stateMutability: "nonpayable",
153
- type: "constructor",
154
- },
155
- {
156
- anonymous: false,
157
- inputs: [
158
- {
159
- indexed: true,
160
- internalType: "address",
161
- name: "from",
162
- type: "address",
163
- },
164
- {
165
- indexed: true,
166
- internalType: "address",
167
- name: "to",
168
- type: "address",
169
- },
170
- {
171
- indexed: true,
172
- internalType: "uint256",
173
- name: "tokenId",
174
- type: "uint256",
175
- },
176
- ],
177
- name: "Transfer",
178
- type: "event",
179
- },
180
- {
181
- anonymous: false,
182
- inputs: [
183
- {
184
- indexed: true,
185
- internalType: "address",
186
- name: "owner",
187
- type: "address",
188
- },
189
- {
190
- indexed: true,
191
- internalType: "address",
192
- name: "approved",
193
- type: "address",
194
- },
195
- {
196
- indexed: true,
197
- internalType: "uint256",
198
- name: "tokenId",
199
- type: "uint256",
200
- },
201
- ],
202
- name: "Approval",
203
- type: "event",
204
- },
205
- {
206
- anonymous: false,
207
- inputs: [
208
- {
209
- indexed: true,
210
- internalType: "address",
211
- name: "owner",
212
- type: "address",
213
- },
214
- {
215
- indexed: true,
216
- internalType: "address",
217
- name: "operator",
218
- type: "address",
219
- },
220
- {
221
- indexed: false,
222
- internalType: "bool",
223
- name: "approved",
224
- type: "bool",
225
- },
226
- ],
227
- name: "ApprovalForAll",
228
- type: "event",
229
- },
230
- {
231
- constant: true,
232
- inputs: [
233
- {
234
- internalType: "address",
235
- name: "owner",
236
- type: "address",
237
- },
238
- ],
239
- name: "balanceOf",
240
- outputs: [
241
- {
242
- internalType: "uint256",
243
- name: "",
244
- type: "uint256",
245
- },
246
- ],
247
- payable: false,
248
- stateMutability: "view",
249
- type: "function",
250
- },
251
- {
252
- constant: true,
253
- inputs: [
254
- {
255
- internalType: "uint256",
256
- name: "tokenId",
257
- type: "uint256",
258
- },
259
- ],
260
- name: "getApproved",
261
- outputs: [
262
- {
263
- internalType: "address",
264
- name: "",
265
- type: "address",
266
- },
267
- ],
268
- payable: false,
269
- stateMutability: "view",
270
- type: "function",
271
- },
272
- {
273
- constant: true,
274
- inputs: [
275
- {
276
- internalType: "address",
277
- name: "owner",
278
- type: "address",
279
- },
280
- {
281
- internalType: "address",
282
- name: "operator",
283
- type: "address",
284
- },
285
- ],
286
- name: "isApprovedForAll",
287
- outputs: [
288
- {
289
- internalType: "bool",
290
- name: "",
291
- type: "bool",
292
- },
293
- ],
294
- payable: false,
295
- stateMutability: "view",
296
- type: "function",
297
- },
298
- {
299
- constant: true,
300
- inputs: [
301
- {
302
- internalType: "uint256",
303
- name: "tokenId",
304
- type: "uint256",
305
- },
306
- ],
307
- name: "ownerOf",
308
- outputs: [
309
- {
310
- internalType: "address",
311
- name: "",
312
- type: "address",
313
- },
314
- ],
315
- payable: false,
316
- stateMutability: "view",
317
- type: "function",
318
- },
319
- {
320
- constant: true,
321
- inputs: [
322
- {
323
- internalType: "bytes4",
324
- name: "interfaceId",
325
- type: "bytes4",
326
- },
327
- ],
328
- name: "supportsInterface",
329
- outputs: [
330
- {
331
- internalType: "bool",
332
- name: "",
333
- type: "bool",
334
- },
335
- ],
336
- payable: false,
337
- stateMutability: "view",
338
- type: "function",
339
- },
340
- ] as const;
341
-
342
- export class ERC721__factory {
343
- static readonly abi = _abi;
344
- static createInterface(): ERC721Interface {
345
- return new Interface(_abi) as ERC721Interface;
346
- }
347
- static connect(address: string, runner?: ContractRunner | null): ERC721 {
348
- return new Contract(address, _abi, runner) as unknown as ERC721;
349
- }
350
- }
@@ -1,67 +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 { Multicall3, Multicall3Interface } from "../Multicall3";
7
-
8
- const _abi = [
9
- {
10
- inputs: [
11
- {
12
- components: [
13
- {
14
- internalType: "address",
15
- name: "target",
16
- type: "address",
17
- },
18
- {
19
- internalType: "bool",
20
- name: "allowFailure",
21
- type: "bool",
22
- },
23
- {
24
- internalType: "bytes",
25
- name: "callData",
26
- type: "bytes",
27
- },
28
- ],
29
- internalType: "struct Multicall3.Call3[]",
30
- name: "calls",
31
- type: "tuple[]",
32
- },
33
- ],
34
- name: "aggregate3",
35
- outputs: [
36
- {
37
- components: [
38
- {
39
- internalType: "bool",
40
- name: "success",
41
- type: "bool",
42
- },
43
- {
44
- internalType: "bytes",
45
- name: "returnData",
46
- type: "bytes",
47
- },
48
- ],
49
- internalType: "struct Multicall3.Result[]",
50
- name: "returnData",
51
- type: "tuple[]",
52
- },
53
- ],
54
- stateMutability: "payable",
55
- type: "function",
56
- },
57
- ] as const;
58
-
59
- export class Multicall3__factory {
60
- static readonly abi = _abi;
61
- static createInterface(): Multicall3Interface {
62
- return new Interface(_abi) as Multicall3Interface;
63
- }
64
- static connect(address: string, runner?: ContractRunner | null): Multicall3 {
65
- return new Contract(address, _abi, runner) as unknown as Multicall3;
66
- }
67
- }
@@ -1,76 +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 {
7
- TransferHelper,
8
- TransferHelperInterface,
9
- } from "../TransferHelper";
10
-
11
- const _abi = [
12
- {
13
- inputs: [
14
- {
15
- components: [
16
- {
17
- internalType: "enum ConduitItemType",
18
- name: "itemType",
19
- type: "uint8",
20
- },
21
- {
22
- internalType: "address",
23
- name: "token",
24
- type: "address",
25
- },
26
- {
27
- internalType: "uint256",
28
- name: "identifier",
29
- type: "uint256",
30
- },
31
- {
32
- internalType: "uint256",
33
- name: "amount",
34
- type: "uint256",
35
- },
36
- {
37
- internalType: "address",
38
- name: "recipient",
39
- type: "address",
40
- },
41
- ],
42
- internalType: "struct TransferHelperItem[]",
43
- name: "items",
44
- type: "tuple[]",
45
- },
46
- {
47
- internalType: "bytes32",
48
- name: "conduitKey",
49
- type: "bytes32",
50
- },
51
- ],
52
- name: "bulkTransfer",
53
- outputs: [
54
- {
55
- internalType: "bytes4",
56
- name: "magicValue",
57
- type: "bytes4",
58
- },
59
- ],
60
- stateMutability: "nonpayable",
61
- type: "function",
62
- },
63
- ] as const;
64
-
65
- export class TransferHelper__factory {
66
- static readonly abi = _abi;
67
- static createInterface(): TransferHelperInterface {
68
- return new Interface(_abi) as TransferHelperInterface;
69
- }
70
- static connect(
71
- address: string,
72
- runner?: ContractRunner | null
73
- ): TransferHelper {
74
- return new Contract(address, _abi, runner) as unknown as TransferHelper;
75
- }
76
- }