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