opensea-js 2.0.1-beta.1 → 2.0.2-beta.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 (59) hide show
  1. package/README.md +2 -3
  2. package/lib/__tests__/api/api.js +5 -3
  3. package/lib/__tests__/api/api.js.map +1 -1
  4. package/lib/__tests__/seaport/bundles.js +218 -18
  5. package/lib/__tests__/seaport/bundles.js.map +1 -1
  6. package/lib/__tests__/seaport/fees.js +0 -1
  7. package/lib/__tests__/seaport/fees.js.map +1 -1
  8. package/lib/__tests__/seaport/orders.js +218 -26
  9. package/lib/__tests__/seaport/orders.js.map +1 -1
  10. package/lib/__tests__/seaport/staticCall.js +0 -3
  11. package/lib/__tests__/seaport/staticCall.js.map +1 -1
  12. package/lib/__tests__/utils.d.ts +1 -0
  13. package/lib/__tests__/utils.js +9 -0
  14. package/lib/__tests__/utils.js.map +1 -0
  15. package/lib/constants.d.ts +2 -1
  16. package/lib/constants.js +4 -3
  17. package/lib/constants.js.map +1 -1
  18. package/lib/seaport.d.ts +9 -9
  19. package/lib/seaport.js +73 -55
  20. package/lib/seaport.js.map +1 -1
  21. package/lib/utils/utils.d.ts +5 -0
  22. package/lib/utils/utils.js +11 -1
  23. package/lib/utils/utils.js.map +1 -1
  24. package/package.json +1 -1
  25. package/lib/abi/CheezeWizardsBasicTournamentAbi.json +0 -523
  26. package/lib/abi/DecentralandEstatesAbi.json +0 -614
  27. package/lib/abi/ERC1155Abi.json +0 -2346
  28. package/lib/abi/ERC721v3Abi.json +0 -470
  29. package/lib/abi/UniswapExchangeAbi.json +0 -451
  30. package/lib/abi/UniswapFactoryAbi.json +0 -67
  31. package/lib/abi/WrappedNFTAbi.json +0 -331
  32. package/lib/abi/WrappedNFTFactoryAbi.json +0 -250
  33. package/lib/typechain/contracts/CheezeWizardsBasicTournamentAbi.d.ts +0 -232
  34. package/lib/typechain/contracts/CheezeWizardsBasicTournamentAbi.js +0 -6
  35. package/lib/typechain/contracts/CheezeWizardsBasicTournamentAbi.js.map +0 -1
  36. package/lib/typechain/contracts/DecentralandEstatesAbi.d.ts +0 -189
  37. package/lib/typechain/contracts/DecentralandEstatesAbi.js +0 -6
  38. package/lib/typechain/contracts/DecentralandEstatesAbi.js.map +0 -1
  39. package/lib/typechain/contracts/ERC1155Abi.d.ts +0 -436
  40. package/lib/typechain/contracts/ERC1155Abi.js +0 -6
  41. package/lib/typechain/contracts/ERC1155Abi.js.map +0 -1
  42. package/lib/typechain/contracts/ERC721v3Abi.d.ts +0 -76
  43. package/lib/typechain/contracts/ERC721v3Abi.js +0 -6
  44. package/lib/typechain/contracts/ERC721v3Abi.js.map +0 -1
  45. package/lib/typechain/contracts/UniswapExchangeAbi.d.ts +0 -132
  46. package/lib/typechain/contracts/UniswapExchangeAbi.js +0 -6
  47. package/lib/typechain/contracts/UniswapExchangeAbi.js.map +0 -1
  48. package/lib/typechain/contracts/UniswapFactoryAbi.d.ts +0 -37
  49. package/lib/typechain/contracts/UniswapFactoryAbi.js +0 -6
  50. package/lib/typechain/contracts/UniswapFactoryAbi.js.map +0 -1
  51. package/lib/typechain/contracts/WrappedNFTAbi.d.ts +0 -80
  52. package/lib/typechain/contracts/WrappedNFTAbi.js +0 -6
  53. package/lib/typechain/contracts/WrappedNFTAbi.js.map +0 -1
  54. package/lib/typechain/contracts/WrappedNFTFactoryAbi.d.ts +0 -57
  55. package/lib/typechain/contracts/WrappedNFTFactoryAbi.js +0 -6
  56. package/lib/typechain/contracts/WrappedNFTFactoryAbi.js.map +0 -1
  57. package/lib/typechain/contracts/types.d.ts +0 -54
  58. package/lib/typechain/contracts/types.js +0 -3
  59. package/lib/typechain/contracts/types.js.map +0 -1
@@ -1,523 +0,0 @@
1
- [
2
- {
3
- "constant": true,
4
- "inputs": [],
5
- "name": "cfoAddress",
6
- "outputs": [{ "name": "", "type": "address" }],
7
- "payable": false,
8
- "stateMutability": "view",
9
- "type": "function"
10
- },
11
- {
12
- "constant": true,
13
- "inputs": [],
14
- "name": "ceoAddress",
15
- "outputs": [{ "name": "", "type": "address" }],
16
- "payable": false,
17
- "stateMutability": "view",
18
- "type": "function"
19
- },
20
- {
21
- "constant": false,
22
- "inputs": [{ "name": "pauseDuration", "type": "uint256" }],
23
- "name": "pause",
24
- "outputs": [],
25
- "payable": false,
26
- "stateMutability": "nonpayable",
27
- "type": "function"
28
- },
29
- {
30
- "constant": false,
31
- "inputs": [{ "name": "newCfo", "type": "address" }],
32
- "name": "setCfo",
33
- "outputs": [],
34
- "payable": false,
35
- "stateMutability": "nonpayable",
36
- "type": "function"
37
- },
38
- {
39
- "constant": true,
40
- "inputs": [],
41
- "name": "duelResolver",
42
- "outputs": [{ "name": "", "type": "address" }],
43
- "payable": false,
44
- "stateMutability": "view",
45
- "type": "function"
46
- },
47
- {
48
- "constant": false,
49
- "inputs": [{ "name": "newCeo", "type": "address" }],
50
- "name": "setCeo",
51
- "outputs": [],
52
- "payable": false,
53
- "stateMutability": "nonpayable",
54
- "type": "function"
55
- },
56
- {
57
- "constant": false,
58
- "inputs": [{ "name": "newCoo", "type": "address" }],
59
- "name": "setCoo",
60
- "outputs": [],
61
- "payable": false,
62
- "stateMutability": "nonpayable",
63
- "type": "function"
64
- },
65
- {
66
- "constant": true,
67
- "inputs": [],
68
- "name": "powerScale",
69
- "outputs": [{ "name": "", "type": "uint256" }],
70
- "payable": false,
71
- "stateMutability": "view",
72
- "type": "function"
73
- },
74
- {
75
- "constant": true,
76
- "inputs": [],
77
- "name": "cooAddress",
78
- "outputs": [{ "name": "", "type": "address" }],
79
- "payable": false,
80
- "stateMutability": "view",
81
- "type": "function"
82
- },
83
- {
84
- "constant": true,
85
- "inputs": [],
86
- "name": "isPaused",
87
- "outputs": [{ "name": "", "type": "bool" }],
88
- "payable": false,
89
- "stateMutability": "view",
90
- "type": "function"
91
- },
92
- {
93
- "inputs": [
94
- { "name": "cooAddress_", "type": "address" },
95
- { "name": "duelResolver_", "type": "address" },
96
- { "name": "powerScale_", "type": "uint256" },
97
- { "name": "tournamentStartBlock_", "type": "uint256" },
98
- { "name": "admissionDuration_", "type": "uint256" },
99
- { "name": "revivalDuration_", "type": "uint256" },
100
- { "name": "ascensionDuration_", "type": "uint256" },
101
- { "name": "fightDuration_", "type": "uint256" },
102
- { "name": "cullingDuration_", "type": "uint256" },
103
- { "name": "blueMoldBasePower_", "type": "uint256" },
104
- { "name": "sessionsBetweenMoldDoubling_", "type": "uint256" },
105
- { "name": "duelTimeoutBlocks_", "type": "uint256" }
106
- ],
107
- "payable": false,
108
- "stateMutability": "nonpayable",
109
- "type": "constructor"
110
- },
111
- { "payable": true, "stateMutability": "payable", "type": "fallback" },
112
- {
113
- "anonymous": false,
114
- "inputs": [
115
- { "indexed": false, "name": "duelId", "type": "bytes32" },
116
- { "indexed": false, "name": "wizardId1", "type": "uint256" },
117
- { "indexed": false, "name": "wizardId2", "type": "uint256" },
118
- { "indexed": false, "name": "timeoutBlock", "type": "uint256" },
119
- { "indexed": false, "name": "isAscensionBattle", "type": "bool" }
120
- ],
121
- "name": "DuelStart",
122
- "type": "event"
123
- },
124
- {
125
- "anonymous": false,
126
- "inputs": [
127
- { "indexed": false, "name": "duelId", "type": "bytes32" },
128
- { "indexed": false, "name": "wizardId1", "type": "uint256" },
129
- { "indexed": false, "name": "wizardId2", "type": "uint256" },
130
- { "indexed": false, "name": "moveSet1", "type": "bytes32" },
131
- { "indexed": false, "name": "moveSet2", "type": "bytes32" },
132
- { "indexed": false, "name": "power1", "type": "uint256" },
133
- { "indexed": false, "name": "power2", "type": "uint256" }
134
- ],
135
- "name": "DuelEnd",
136
- "type": "event"
137
- },
138
- {
139
- "anonymous": false,
140
- "inputs": [
141
- { "indexed": false, "name": "duelId", "type": "bytes32" },
142
- { "indexed": false, "name": "wizardId1", "type": "uint256" },
143
- { "indexed": false, "name": "wizardId2", "type": "uint256" },
144
- { "indexed": false, "name": "power1", "type": "uint256" },
145
- { "indexed": false, "name": "power2", "type": "uint256" }
146
- ],
147
- "name": "DuelTimeOut",
148
- "type": "event"
149
- },
150
- {
151
- "anonymous": false,
152
- "inputs": [{ "indexed": false, "name": "wizardId", "type": "uint256" }],
153
- "name": "WizardElimination",
154
- "type": "event"
155
- },
156
- {
157
- "anonymous": false,
158
- "inputs": [{ "indexed": false, "name": "wizardId", "type": "uint256" }],
159
- "name": "AscensionStart",
160
- "type": "event"
161
- },
162
- {
163
- "anonymous": false,
164
- "inputs": [
165
- { "indexed": false, "name": "wizardId1", "type": "uint256" },
166
- { "indexed": false, "name": "wizardId2", "type": "uint256" }
167
- ],
168
- "name": "AscensionPairUp",
169
- "type": "event"
170
- },
171
- {
172
- "anonymous": false,
173
- "inputs": [
174
- { "indexed": false, "name": "wizardId", "type": "uint256" },
175
- { "indexed": false, "name": "power", "type": "uint256" }
176
- ],
177
- "name": "AscensionComplete",
178
- "type": "event"
179
- },
180
- {
181
- "anonymous": false,
182
- "inputs": [
183
- { "indexed": false, "name": "wizId", "type": "uint256" },
184
- { "indexed": false, "name": "power", "type": "uint256" }
185
- ],
186
- "name": "Revive",
187
- "type": "event"
188
- },
189
- {
190
- "anonymous": false,
191
- "inputs": [
192
- { "indexed": false, "name": "givingWizId", "type": "uint256" },
193
- { "indexed": false, "name": "receivingWizId", "type": "uint256" },
194
- { "indexed": false, "name": "amountGifted", "type": "uint256" }
195
- ],
196
- "name": "PowerGifted",
197
- "type": "event"
198
- },
199
- {
200
- "anonymous": false,
201
- "inputs": [
202
- { "indexed": false, "name": "claimingWinnerId", "type": "uint256" },
203
- { "indexed": false, "name": "prizeAmount", "type": "uint256" }
204
- ],
205
- "name": "PrizeClaimed",
206
- "type": "event"
207
- },
208
- {
209
- "anonymous": false,
210
- "inputs": [
211
- { "indexed": false, "name": "pauseEndingBlock", "type": "uint256" }
212
- ],
213
- "name": "Paused",
214
- "type": "event"
215
- },
216
- {
217
- "anonymous": false,
218
- "inputs": [
219
- { "indexed": false, "name": "previousCeo", "type": "address" },
220
- { "indexed": false, "name": "newCeo", "type": "address" }
221
- ],
222
- "name": "CEOTransferred",
223
- "type": "event"
224
- },
225
- {
226
- "anonymous": false,
227
- "inputs": [
228
- { "indexed": false, "name": "previousCoo", "type": "address" },
229
- { "indexed": false, "name": "newCoo", "type": "address" }
230
- ],
231
- "name": "COOTransferred",
232
- "type": "event"
233
- },
234
- {
235
- "anonymous": false,
236
- "inputs": [
237
- { "indexed": false, "name": "previousCfo", "type": "address" },
238
- { "indexed": false, "name": "newCfo", "type": "address" }
239
- ],
240
- "name": "CFOTransferred",
241
- "type": "event"
242
- },
243
- {
244
- "constant": true,
245
- "inputs": [{ "name": "interfaceId", "type": "bytes4" }],
246
- "name": "supportsInterface",
247
- "outputs": [{ "name": "", "type": "bool" }],
248
- "payable": false,
249
- "stateMutability": "view",
250
- "type": "function"
251
- },
252
- {
253
- "constant": true,
254
- "inputs": [],
255
- "name": "isActive",
256
- "outputs": [{ "name": "", "type": "bool" }],
257
- "payable": false,
258
- "stateMutability": "view",
259
- "type": "function"
260
- },
261
- {
262
- "constant": true,
263
- "inputs": [{ "name": "wizardId", "type": "uint256" }],
264
- "name": "getWizard",
265
- "outputs": [
266
- { "name": "affinity", "type": "uint256" },
267
- { "name": "power", "type": "uint256" },
268
- { "name": "maxPower", "type": "uint256" },
269
- { "name": "nonce", "type": "uint256" },
270
- { "name": "currentDuel", "type": "bytes32" },
271
- { "name": "ascending", "type": "bool" },
272
- { "name": "ascensionOpponent", "type": "uint256" },
273
- { "name": "molded", "type": "bool" },
274
- { "name": "ready", "type": "bool" }
275
- ],
276
- "payable": false,
277
- "stateMutability": "view",
278
- "type": "function"
279
- },
280
- {
281
- "constant": true,
282
- "inputs": [{ "name": "wizardId", "type": "uint256" }],
283
- "name": "wizardFingerprint",
284
- "outputs": [{ "name": "", "type": "bytes32" }],
285
- "payable": false,
286
- "stateMutability": "view",
287
- "type": "function"
288
- },
289
- {
290
- "constant": true,
291
- "inputs": [{ "name": "wizardId", "type": "uint256" }],
292
- "name": "isReady",
293
- "outputs": [{ "name": "", "type": "bool" }],
294
- "payable": false,
295
- "stateMutability": "view",
296
- "type": "function"
297
- },
298
- {
299
- "constant": false,
300
- "inputs": [
301
- { "name": "wizardIds", "type": "uint256[]" },
302
- { "name": "powers", "type": "uint88[]" }
303
- ],
304
- "name": "enterWizards",
305
- "outputs": [],
306
- "payable": true,
307
- "stateMutability": "payable",
308
- "type": "function"
309
- },
310
- {
311
- "constant": false,
312
- "inputs": [{ "name": "wizardId", "type": "uint256" }],
313
- "name": "revive",
314
- "outputs": [],
315
- "payable": true,
316
- "stateMutability": "payable",
317
- "type": "function"
318
- },
319
- {
320
- "constant": false,
321
- "inputs": [{ "name": "wizardId", "type": "uint256" }],
322
- "name": "updateAffinity",
323
- "outputs": [],
324
- "payable": false,
325
- "stateMutability": "nonpayable",
326
- "type": "function"
327
- },
328
- {
329
- "constant": false,
330
- "inputs": [{ "name": "wizardId", "type": "uint256" }],
331
- "name": "startAscension",
332
- "outputs": [],
333
- "payable": false,
334
- "stateMutability": "nonpayable",
335
- "type": "function"
336
- },
337
- {
338
- "constant": false,
339
- "inputs": [
340
- { "name": "wizardId", "type": "uint256" },
341
- { "name": "commitment", "type": "bytes32" }
342
- ],
343
- "name": "challengeAscending",
344
- "outputs": [],
345
- "payable": false,
346
- "stateMutability": "nonpayable",
347
- "type": "function"
348
- },
349
- {
350
- "constant": false,
351
- "inputs": [{ "name": "commitment", "type": "bytes32" }],
352
- "name": "acceptAscensionChallenge",
353
- "outputs": [],
354
- "payable": false,
355
- "stateMutability": "nonpayable",
356
- "type": "function"
357
- },
358
- {
359
- "constant": false,
360
- "inputs": [],
361
- "name": "completeAscension",
362
- "outputs": [],
363
- "payable": false,
364
- "stateMutability": "nonpayable",
365
- "type": "function"
366
- },
367
- {
368
- "constant": false,
369
- "inputs": [
370
- { "name": "committingWizardId", "type": "uint256" },
371
- { "name": "otherWizardId", "type": "uint256" },
372
- { "name": "commitment", "type": "bytes32" }
373
- ],
374
- "name": "oneSidedCommit",
375
- "outputs": [],
376
- "payable": false,
377
- "stateMutability": "nonpayable",
378
- "type": "function"
379
- },
380
- {
381
- "constant": false,
382
- "inputs": [{ "name": "wizardId", "type": "uint256" }],
383
- "name": "cancelCommitment",
384
- "outputs": [],
385
- "payable": false,
386
- "stateMutability": "nonpayable",
387
- "type": "function"
388
- },
389
- {
390
- "constant": false,
391
- "inputs": [
392
- { "name": "wizardId1", "type": "uint256" },
393
- { "name": "wizardId2", "type": "uint256" },
394
- { "name": "commit1", "type": "bytes32" },
395
- { "name": "commit2", "type": "bytes32" },
396
- { "name": "sig1", "type": "bytes" },
397
- { "name": "sig2", "type": "bytes" }
398
- ],
399
- "name": "doubleCommit",
400
- "outputs": [{ "name": "duelId", "type": "bytes32" }],
401
- "payable": false,
402
- "stateMutability": "nonpayable",
403
- "type": "function"
404
- },
405
- {
406
- "constant": false,
407
- "inputs": [
408
- { "name": "committingWizardId", "type": "uint256" },
409
- { "name": "commit", "type": "bytes32" },
410
- { "name": "moveSet", "type": "bytes32" },
411
- { "name": "salt", "type": "bytes32" },
412
- { "name": "otherWizardId", "type": "uint256" },
413
- { "name": "otherCommit", "type": "bytes32" }
414
- ],
415
- "name": "oneSidedReveal",
416
- "outputs": [],
417
- "payable": false,
418
- "stateMutability": "nonpayable",
419
- "type": "function"
420
- },
421
- {
422
- "constant": false,
423
- "inputs": [
424
- { "name": "wizardId1", "type": "uint256" },
425
- { "name": "wizardId2", "type": "uint256" },
426
- { "name": "commit1", "type": "bytes32" },
427
- { "name": "commit2", "type": "bytes32" },
428
- { "name": "moveSet1", "type": "bytes32" },
429
- { "name": "moveSet2", "type": "bytes32" },
430
- { "name": "salt1", "type": "bytes32" },
431
- { "name": "salt2", "type": "bytes32" }
432
- ],
433
- "name": "doubleReveal",
434
- "outputs": [],
435
- "payable": false,
436
- "stateMutability": "nonpayable",
437
- "type": "function"
438
- },
439
- {
440
- "constant": false,
441
- "inputs": [
442
- { "name": "wizardId1", "type": "uint256" },
443
- { "name": "wizardId2", "type": "uint256" }
444
- ],
445
- "name": "resolveTimedOutDuel",
446
- "outputs": [],
447
- "payable": false,
448
- "stateMutability": "nonpayable",
449
- "type": "function"
450
- },
451
- {
452
- "constant": false,
453
- "inputs": [
454
- { "name": "sendingWizardId", "type": "uint256" },
455
- { "name": "receivingWizardId", "type": "uint256" }
456
- ],
457
- "name": "giftPower",
458
- "outputs": [],
459
- "payable": false,
460
- "stateMutability": "nonpayable",
461
- "type": "function"
462
- },
463
- {
464
- "constant": false,
465
- "inputs": [
466
- { "name": "wizardIds", "type": "uint256[]" },
467
- { "name": "survivor", "type": "uint256" }
468
- ],
469
- "name": "cullMoldedWithSurvivor",
470
- "outputs": [],
471
- "payable": false,
472
- "stateMutability": "nonpayable",
473
- "type": "function"
474
- },
475
- {
476
- "constant": false,
477
- "inputs": [{ "name": "moldyWizardIds", "type": "uint256[]" }],
478
- "name": "cullMoldedWithMolded",
479
- "outputs": [],
480
- "payable": false,
481
- "stateMutability": "nonpayable",
482
- "type": "function"
483
- },
484
- {
485
- "constant": false,
486
- "inputs": [{ "name": "wizardIds", "type": "uint256[]" }],
487
- "name": "cullTiredWizards",
488
- "outputs": [],
489
- "payable": false,
490
- "stateMutability": "nonpayable",
491
- "type": "function"
492
- },
493
- {
494
- "constant": false,
495
- "inputs": [{ "name": "claimingWinnerId", "type": "uint256" }],
496
- "name": "claimTheBigCheeze",
497
- "outputs": [],
498
- "payable": false,
499
- "stateMutability": "nonpayable",
500
- "type": "function"
501
- },
502
- {
503
- "constant": false,
504
- "inputs": [
505
- { "name": "claimingWinnerId", "type": "uint256" },
506
- { "name": "allWinners", "type": "uint256[]" }
507
- ],
508
- "name": "claimSharedWinnings",
509
- "outputs": [],
510
- "payable": false,
511
- "stateMutability": "nonpayable",
512
- "type": "function"
513
- },
514
- {
515
- "constant": false,
516
- "inputs": [],
517
- "name": "destroy",
518
- "outputs": [],
519
- "payable": false,
520
- "stateMutability": "nonpayable",
521
- "type": "function"
522
- }
523
- ]