@gitmyabi/rari 1.0.2 → 1.0.3
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.
- package/README.md +4 -4
- package/contracts/{ERC1155Rarible_json.d.ts → ERC721RaribleMinimal.d.ts} +214 -385
- package/contracts/{ERC1155Rarible_json.js → ERC721RaribleMinimal.js} +237 -451
- package/contracts/{ERC1155Rarible_json.ts → ERC721RaribleMinimal.ts} +271 -484
- package/contracts/{TransparentUpgradeableProxy_json.d.ts → TransparentUpgradeableProxy.d.ts} +14 -14
- package/contracts/{TransparentUpgradeableProxy_json.js → TransparentUpgradeableProxy.js} +13 -13
- package/contracts/{TransparentUpgradeableProxy_json.ts → TransparentUpgradeableProxy.ts} +21 -21
- package/contracts/index.d.ts +4 -4
- package/contracts/index.js +7 -7
- package/contracts/index.ts +4 -4
- package/package.json +4 -4
|
@@ -1,49 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ERC721RaribleMinimal = exports.ERC721RaribleMinimalAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* ERC721RaribleMinimal ABI
|
|
7
7
|
*
|
|
8
8
|
* This ABI is typed using viem's type system for full type safety.
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.ERC721RaribleMinimalAbi = [
|
|
11
11
|
{
|
|
12
12
|
"anonymous": false,
|
|
13
13
|
"inputs": [
|
|
14
14
|
{
|
|
15
15
|
"indexed": true,
|
|
16
16
|
"internalType": "address",
|
|
17
|
-
"name": "
|
|
17
|
+
"name": "owner",
|
|
18
18
|
"type": "address"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"indexed": true,
|
|
22
22
|
"internalType": "address",
|
|
23
|
-
"name": "
|
|
23
|
+
"name": "approved",
|
|
24
24
|
"type": "address"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"indexed":
|
|
28
|
-
"internalType": "
|
|
29
|
-
"name": "
|
|
30
|
-
"type": "
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"name": "ApprovalForAll",
|
|
34
|
-
"type": "event"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"anonymous": false,
|
|
38
|
-
"inputs": [
|
|
39
|
-
{
|
|
40
|
-
"indexed": false,
|
|
41
|
-
"internalType": "string",
|
|
42
|
-
"name": "newBaseURI",
|
|
43
|
-
"type": "string"
|
|
27
|
+
"indexed": true,
|
|
28
|
+
"internalType": "uint256",
|
|
29
|
+
"name": "tokenId",
|
|
30
|
+
"type": "uint256"
|
|
44
31
|
}
|
|
45
32
|
],
|
|
46
|
-
"name": "
|
|
33
|
+
"name": "Approval",
|
|
47
34
|
"type": "event"
|
|
48
35
|
},
|
|
49
36
|
{
|
|
@@ -52,60 +39,36 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
52
39
|
{
|
|
53
40
|
"indexed": true,
|
|
54
41
|
"internalType": "address",
|
|
55
|
-
"name": "
|
|
42
|
+
"name": "owner",
|
|
56
43
|
"type": "address"
|
|
57
44
|
},
|
|
58
45
|
{
|
|
59
46
|
"indexed": true,
|
|
60
47
|
"internalType": "address",
|
|
61
|
-
"name": "
|
|
48
|
+
"name": "operator",
|
|
62
49
|
"type": "address"
|
|
63
50
|
},
|
|
64
51
|
{
|
|
65
52
|
"indexed": false,
|
|
66
|
-
"internalType": "
|
|
67
|
-
"name": "
|
|
68
|
-
"type": "
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"indexed": false,
|
|
72
|
-
"internalType": "uint256",
|
|
73
|
-
"name": "amount",
|
|
74
|
-
"type": "uint256"
|
|
53
|
+
"internalType": "bool",
|
|
54
|
+
"name": "approved",
|
|
55
|
+
"type": "bool"
|
|
75
56
|
}
|
|
76
57
|
],
|
|
77
|
-
"name": "
|
|
58
|
+
"name": "ApprovalForAll",
|
|
78
59
|
"type": "event"
|
|
79
60
|
},
|
|
80
61
|
{
|
|
81
62
|
"anonymous": false,
|
|
82
63
|
"inputs": [
|
|
83
|
-
{
|
|
84
|
-
"indexed": true,
|
|
85
|
-
"internalType": "address",
|
|
86
|
-
"name": "operator",
|
|
87
|
-
"type": "address"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"indexed": true,
|
|
91
|
-
"internalType": "address",
|
|
92
|
-
"name": "account",
|
|
93
|
-
"type": "address"
|
|
94
|
-
},
|
|
95
64
|
{
|
|
96
65
|
"indexed": false,
|
|
97
|
-
"internalType": "
|
|
98
|
-
"name": "
|
|
99
|
-
"type": "
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"indexed": false,
|
|
103
|
-
"internalType": "uint256[]",
|
|
104
|
-
"name": "amounts",
|
|
105
|
-
"type": "uint256[]"
|
|
66
|
+
"internalType": "string",
|
|
67
|
+
"name": "newBaseURI",
|
|
68
|
+
"type": "string"
|
|
106
69
|
}
|
|
107
70
|
],
|
|
108
|
-
"name": "
|
|
71
|
+
"name": "BaseUriChanged",
|
|
109
72
|
"type": "event"
|
|
110
73
|
},
|
|
111
74
|
{
|
|
@@ -130,7 +93,7 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
130
93
|
"type": "string"
|
|
131
94
|
}
|
|
132
95
|
],
|
|
133
|
-
"name": "
|
|
96
|
+
"name": "CreateERC721Rarible",
|
|
134
97
|
"type": "event"
|
|
135
98
|
},
|
|
136
99
|
{
|
|
@@ -155,7 +118,7 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
155
118
|
"type": "string"
|
|
156
119
|
}
|
|
157
120
|
],
|
|
158
|
-
"name": "
|
|
121
|
+
"name": "CreateERC721RaribleUser",
|
|
159
122
|
"type": "event"
|
|
160
123
|
},
|
|
161
124
|
{
|
|
@@ -280,31 +243,6 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
280
243
|
{
|
|
281
244
|
"anonymous": false,
|
|
282
245
|
"inputs": [
|
|
283
|
-
{
|
|
284
|
-
"indexed": false,
|
|
285
|
-
"internalType": "uint256",
|
|
286
|
-
"name": "tokenId",
|
|
287
|
-
"type": "uint256"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"indexed": false,
|
|
291
|
-
"internalType": "uint256",
|
|
292
|
-
"name": "value",
|
|
293
|
-
"type": "uint256"
|
|
294
|
-
}
|
|
295
|
-
],
|
|
296
|
-
"name": "Supply",
|
|
297
|
-
"type": "event"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"anonymous": false,
|
|
301
|
-
"inputs": [
|
|
302
|
-
{
|
|
303
|
-
"indexed": true,
|
|
304
|
-
"internalType": "address",
|
|
305
|
-
"name": "operator",
|
|
306
|
-
"type": "address"
|
|
307
|
-
},
|
|
308
246
|
{
|
|
309
247
|
"indexed": true,
|
|
310
248
|
"internalType": "address",
|
|
@@ -317,76 +255,14 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
317
255
|
"name": "to",
|
|
318
256
|
"type": "address"
|
|
319
257
|
},
|
|
320
|
-
{
|
|
321
|
-
"indexed": false,
|
|
322
|
-
"internalType": "uint256[]",
|
|
323
|
-
"name": "ids",
|
|
324
|
-
"type": "uint256[]"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"indexed": false,
|
|
328
|
-
"internalType": "uint256[]",
|
|
329
|
-
"name": "values",
|
|
330
|
-
"type": "uint256[]"
|
|
331
|
-
}
|
|
332
|
-
],
|
|
333
|
-
"name": "TransferBatch",
|
|
334
|
-
"type": "event"
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
"anonymous": false,
|
|
338
|
-
"inputs": [
|
|
339
|
-
{
|
|
340
|
-
"indexed": true,
|
|
341
|
-
"internalType": "address",
|
|
342
|
-
"name": "operator",
|
|
343
|
-
"type": "address"
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
"indexed": true,
|
|
347
|
-
"internalType": "address",
|
|
348
|
-
"name": "from",
|
|
349
|
-
"type": "address"
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
"indexed": true,
|
|
353
|
-
"internalType": "address",
|
|
354
|
-
"name": "to",
|
|
355
|
-
"type": "address"
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
"indexed": false,
|
|
359
|
-
"internalType": "uint256",
|
|
360
|
-
"name": "id",
|
|
361
|
-
"type": "uint256"
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
"indexed": false,
|
|
365
|
-
"internalType": "uint256",
|
|
366
|
-
"name": "value",
|
|
367
|
-
"type": "uint256"
|
|
368
|
-
}
|
|
369
|
-
],
|
|
370
|
-
"name": "TransferSingle",
|
|
371
|
-
"type": "event"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"anonymous": false,
|
|
375
|
-
"inputs": [
|
|
376
|
-
{
|
|
377
|
-
"indexed": false,
|
|
378
|
-
"internalType": "string",
|
|
379
|
-
"name": "value",
|
|
380
|
-
"type": "string"
|
|
381
|
-
},
|
|
382
258
|
{
|
|
383
259
|
"indexed": true,
|
|
384
260
|
"internalType": "uint256",
|
|
385
|
-
"name": "
|
|
261
|
+
"name": "tokenId",
|
|
386
262
|
"type": "uint256"
|
|
387
263
|
}
|
|
388
264
|
],
|
|
389
|
-
"name": "
|
|
265
|
+
"name": "Transfer",
|
|
390
266
|
"type": "event"
|
|
391
267
|
},
|
|
392
268
|
{
|
|
@@ -427,7 +303,7 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
427
303
|
"type": "address"
|
|
428
304
|
}
|
|
429
305
|
],
|
|
430
|
-
"name": "
|
|
306
|
+
"name": "__ERC721RaribleUser_init",
|
|
431
307
|
"outputs": [],
|
|
432
308
|
"stateMutability": "nonpayable",
|
|
433
309
|
"type": "function"
|
|
@@ -465,7 +341,7 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
465
341
|
"type": "address"
|
|
466
342
|
}
|
|
467
343
|
],
|
|
468
|
-
"name": "
|
|
344
|
+
"name": "__ERC721Rarible_init",
|
|
469
345
|
"outputs": [],
|
|
470
346
|
"stateMutability": "nonpayable",
|
|
471
347
|
"type": "function"
|
|
@@ -500,45 +376,34 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
500
376
|
"inputs": [
|
|
501
377
|
{
|
|
502
378
|
"internalType": "address",
|
|
503
|
-
"name": "
|
|
379
|
+
"name": "to",
|
|
504
380
|
"type": "address"
|
|
505
381
|
},
|
|
506
382
|
{
|
|
507
383
|
"internalType": "uint256",
|
|
508
|
-
"name": "
|
|
509
|
-
"type": "uint256"
|
|
510
|
-
}
|
|
511
|
-
],
|
|
512
|
-
"name": "balanceOf",
|
|
513
|
-
"outputs": [
|
|
514
|
-
{
|
|
515
|
-
"internalType": "uint256",
|
|
516
|
-
"name": "",
|
|
384
|
+
"name": "tokenId",
|
|
517
385
|
"type": "uint256"
|
|
518
386
|
}
|
|
519
387
|
],
|
|
520
|
-
"
|
|
388
|
+
"name": "approve",
|
|
389
|
+
"outputs": [],
|
|
390
|
+
"stateMutability": "nonpayable",
|
|
521
391
|
"type": "function"
|
|
522
392
|
},
|
|
523
393
|
{
|
|
524
394
|
"inputs": [
|
|
525
395
|
{
|
|
526
|
-
"internalType": "address
|
|
527
|
-
"name": "
|
|
528
|
-
"type": "address
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
"internalType": "uint256[]",
|
|
532
|
-
"name": "ids",
|
|
533
|
-
"type": "uint256[]"
|
|
396
|
+
"internalType": "address",
|
|
397
|
+
"name": "owner",
|
|
398
|
+
"type": "address"
|
|
534
399
|
}
|
|
535
400
|
],
|
|
536
|
-
"name": "
|
|
401
|
+
"name": "balanceOf",
|
|
537
402
|
"outputs": [
|
|
538
403
|
{
|
|
539
|
-
"internalType": "uint256
|
|
404
|
+
"internalType": "uint256",
|
|
540
405
|
"name": "",
|
|
541
|
-
"type": "uint256
|
|
406
|
+
"type": "uint256"
|
|
542
407
|
}
|
|
543
408
|
],
|
|
544
409
|
"stateMutability": "view",
|
|
@@ -559,19 +424,9 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
559
424
|
},
|
|
560
425
|
{
|
|
561
426
|
"inputs": [
|
|
562
|
-
{
|
|
563
|
-
"internalType": "address",
|
|
564
|
-
"name": "account",
|
|
565
|
-
"type": "address"
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
"internalType": "uint256",
|
|
569
|
-
"name": "id",
|
|
570
|
-
"type": "uint256"
|
|
571
|
-
},
|
|
572
427
|
{
|
|
573
428
|
"internalType": "uint256",
|
|
574
|
-
"name": "
|
|
429
|
+
"name": "tokenId",
|
|
575
430
|
"type": "uint256"
|
|
576
431
|
}
|
|
577
432
|
],
|
|
@@ -581,36 +436,32 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
581
436
|
"type": "function"
|
|
582
437
|
},
|
|
583
438
|
{
|
|
584
|
-
"inputs": [
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
"name": "account",
|
|
588
|
-
"type": "address"
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
"internalType": "uint256[]",
|
|
592
|
-
"name": "ids",
|
|
593
|
-
"type": "uint256[]"
|
|
594
|
-
},
|
|
439
|
+
"inputs": [],
|
|
440
|
+
"name": "contractURI",
|
|
441
|
+
"outputs": [
|
|
595
442
|
{
|
|
596
|
-
"internalType": "
|
|
597
|
-
"name": "
|
|
598
|
-
"type": "
|
|
443
|
+
"internalType": "string",
|
|
444
|
+
"name": "",
|
|
445
|
+
"type": "string"
|
|
599
446
|
}
|
|
600
447
|
],
|
|
601
|
-
"
|
|
602
|
-
"outputs": [],
|
|
603
|
-
"stateMutability": "nonpayable",
|
|
448
|
+
"stateMutability": "view",
|
|
604
449
|
"type": "function"
|
|
605
450
|
},
|
|
606
451
|
{
|
|
607
|
-
"inputs": [
|
|
608
|
-
|
|
452
|
+
"inputs": [
|
|
453
|
+
{
|
|
454
|
+
"internalType": "uint256",
|
|
455
|
+
"name": "tokenId",
|
|
456
|
+
"type": "uint256"
|
|
457
|
+
}
|
|
458
|
+
],
|
|
459
|
+
"name": "getApproved",
|
|
609
460
|
"outputs": [
|
|
610
461
|
{
|
|
611
|
-
"internalType": "
|
|
462
|
+
"internalType": "address",
|
|
612
463
|
"name": "",
|
|
613
|
-
"type": "
|
|
464
|
+
"type": "address"
|
|
614
465
|
}
|
|
615
466
|
],
|
|
616
467
|
"stateMutability": "view",
|
|
@@ -682,12 +533,12 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
682
533
|
"inputs": [
|
|
683
534
|
{
|
|
684
535
|
"internalType": "address",
|
|
685
|
-
"name": "
|
|
536
|
+
"name": "owner",
|
|
686
537
|
"type": "address"
|
|
687
538
|
},
|
|
688
539
|
{
|
|
689
540
|
"internalType": "address",
|
|
690
|
-
"name": "
|
|
541
|
+
"name": "operator",
|
|
691
542
|
"type": "address"
|
|
692
543
|
}
|
|
693
544
|
],
|
|
@@ -735,11 +586,6 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
735
586
|
"name": "tokenURI",
|
|
736
587
|
"type": "string"
|
|
737
588
|
},
|
|
738
|
-
{
|
|
739
|
-
"internalType": "uint256",
|
|
740
|
-
"name": "supply",
|
|
741
|
-
"type": "uint256"
|
|
742
|
-
},
|
|
743
589
|
{
|
|
744
590
|
"components": [
|
|
745
591
|
{
|
|
@@ -780,7 +626,7 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
780
626
|
"type": "bytes[]"
|
|
781
627
|
}
|
|
782
628
|
],
|
|
783
|
-
"internalType": "struct
|
|
629
|
+
"internalType": "struct LibERC721LazyMint.Mint721Data",
|
|
784
630
|
"name": "data",
|
|
785
631
|
"type": "tuple"
|
|
786
632
|
},
|
|
@@ -788,11 +634,6 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
788
634
|
"internalType": "address",
|
|
789
635
|
"name": "to",
|
|
790
636
|
"type": "address"
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
"internalType": "uint256",
|
|
794
|
-
"name": "_amount",
|
|
795
|
-
"type": "uint256"
|
|
796
637
|
}
|
|
797
638
|
],
|
|
798
639
|
"name": "mintAndTransfer",
|
|
@@ -826,6 +667,25 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
826
667
|
"stateMutability": "view",
|
|
827
668
|
"type": "function"
|
|
828
669
|
},
|
|
670
|
+
{
|
|
671
|
+
"inputs": [
|
|
672
|
+
{
|
|
673
|
+
"internalType": "uint256",
|
|
674
|
+
"name": "tokenId",
|
|
675
|
+
"type": "uint256"
|
|
676
|
+
}
|
|
677
|
+
],
|
|
678
|
+
"name": "ownerOf",
|
|
679
|
+
"outputs": [
|
|
680
|
+
{
|
|
681
|
+
"internalType": "address",
|
|
682
|
+
"name": "",
|
|
683
|
+
"type": "address"
|
|
684
|
+
}
|
|
685
|
+
],
|
|
686
|
+
"stateMutability": "view",
|
|
687
|
+
"type": "function"
|
|
688
|
+
},
|
|
829
689
|
{
|
|
830
690
|
"inputs": [
|
|
831
691
|
{
|
|
@@ -888,22 +748,12 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
888
748
|
"type": "address"
|
|
889
749
|
},
|
|
890
750
|
{
|
|
891
|
-
"internalType": "uint256
|
|
892
|
-
"name": "
|
|
893
|
-
"type": "uint256
|
|
894
|
-
},
|
|
895
|
-
{
|
|
896
|
-
"internalType": "uint256[]",
|
|
897
|
-
"name": "amounts",
|
|
898
|
-
"type": "uint256[]"
|
|
899
|
-
},
|
|
900
|
-
{
|
|
901
|
-
"internalType": "bytes",
|
|
902
|
-
"name": "data",
|
|
903
|
-
"type": "bytes"
|
|
751
|
+
"internalType": "uint256",
|
|
752
|
+
"name": "tokenId",
|
|
753
|
+
"type": "uint256"
|
|
904
754
|
}
|
|
905
755
|
],
|
|
906
|
-
"name": "
|
|
756
|
+
"name": "safeTransferFrom",
|
|
907
757
|
"outputs": [],
|
|
908
758
|
"stateMutability": "nonpayable",
|
|
909
759
|
"type": "function"
|
|
@@ -922,17 +772,12 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
922
772
|
},
|
|
923
773
|
{
|
|
924
774
|
"internalType": "uint256",
|
|
925
|
-
"name": "
|
|
926
|
-
"type": "uint256"
|
|
927
|
-
},
|
|
928
|
-
{
|
|
929
|
-
"internalType": "uint256",
|
|
930
|
-
"name": "amount",
|
|
775
|
+
"name": "tokenId",
|
|
931
776
|
"type": "uint256"
|
|
932
777
|
},
|
|
933
778
|
{
|
|
934
779
|
"internalType": "bytes",
|
|
935
|
-
"name": "
|
|
780
|
+
"name": "_data",
|
|
936
781
|
"type": "bytes"
|
|
937
782
|
}
|
|
938
783
|
],
|
|
@@ -1004,6 +849,48 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
1004
849
|
"stateMutability": "view",
|
|
1005
850
|
"type": "function"
|
|
1006
851
|
},
|
|
852
|
+
{
|
|
853
|
+
"inputs": [
|
|
854
|
+
{
|
|
855
|
+
"internalType": "uint256",
|
|
856
|
+
"name": "tokenId",
|
|
857
|
+
"type": "uint256"
|
|
858
|
+
}
|
|
859
|
+
],
|
|
860
|
+
"name": "tokenURI",
|
|
861
|
+
"outputs": [
|
|
862
|
+
{
|
|
863
|
+
"internalType": "string",
|
|
864
|
+
"name": "",
|
|
865
|
+
"type": "string"
|
|
866
|
+
}
|
|
867
|
+
],
|
|
868
|
+
"stateMutability": "view",
|
|
869
|
+
"type": "function"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"inputs": [
|
|
873
|
+
{
|
|
874
|
+
"internalType": "address",
|
|
875
|
+
"name": "from",
|
|
876
|
+
"type": "address"
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
"internalType": "address",
|
|
880
|
+
"name": "to",
|
|
881
|
+
"type": "address"
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"internalType": "uint256",
|
|
885
|
+
"name": "tokenId",
|
|
886
|
+
"type": "uint256"
|
|
887
|
+
}
|
|
888
|
+
],
|
|
889
|
+
"name": "transferFrom",
|
|
890
|
+
"outputs": [],
|
|
891
|
+
"stateMutability": "nonpayable",
|
|
892
|
+
"type": "function"
|
|
893
|
+
},
|
|
1007
894
|
{
|
|
1008
895
|
"inputs": [
|
|
1009
896
|
{
|
|
@@ -1018,11 +905,6 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
1018
905
|
"name": "tokenURI",
|
|
1019
906
|
"type": "string"
|
|
1020
907
|
},
|
|
1021
|
-
{
|
|
1022
|
-
"internalType": "uint256",
|
|
1023
|
-
"name": "supply",
|
|
1024
|
-
"type": "uint256"
|
|
1025
|
-
},
|
|
1026
908
|
{
|
|
1027
909
|
"components": [
|
|
1028
910
|
{
|
|
@@ -1063,7 +945,7 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
1063
945
|
"type": "bytes[]"
|
|
1064
946
|
}
|
|
1065
947
|
],
|
|
1066
|
-
"internalType": "struct
|
|
948
|
+
"internalType": "struct LibERC721LazyMint.Mint721Data",
|
|
1067
949
|
"name": "data",
|
|
1068
950
|
"type": "tuple"
|
|
1069
951
|
},
|
|
@@ -1076,11 +958,6 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
1076
958
|
"internalType": "address",
|
|
1077
959
|
"name": "to",
|
|
1078
960
|
"type": "address"
|
|
1079
|
-
},
|
|
1080
|
-
{
|
|
1081
|
-
"internalType": "uint256",
|
|
1082
|
-
"name": "amount",
|
|
1083
|
-
"type": "uint256"
|
|
1084
961
|
}
|
|
1085
962
|
],
|
|
1086
963
|
"name": "transferFromOrMint",
|
|
@@ -1123,29 +1000,10 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
1123
1000
|
"outputs": [],
|
|
1124
1001
|
"stateMutability": "nonpayable",
|
|
1125
1002
|
"type": "function"
|
|
1126
|
-
},
|
|
1127
|
-
{
|
|
1128
|
-
"inputs": [
|
|
1129
|
-
{
|
|
1130
|
-
"internalType": "uint256",
|
|
1131
|
-
"name": "id",
|
|
1132
|
-
"type": "uint256"
|
|
1133
|
-
}
|
|
1134
|
-
],
|
|
1135
|
-
"name": "uri",
|
|
1136
|
-
"outputs": [
|
|
1137
|
-
{
|
|
1138
|
-
"internalType": "string",
|
|
1139
|
-
"name": "",
|
|
1140
|
-
"type": "string"
|
|
1141
|
-
}
|
|
1142
|
-
],
|
|
1143
|
-
"stateMutability": "view",
|
|
1144
|
-
"type": "function"
|
|
1145
1003
|
}
|
|
1146
1004
|
];
|
|
1147
1005
|
/**
|
|
1148
|
-
*
|
|
1006
|
+
* ERC721RaribleMinimal Contract Class
|
|
1149
1007
|
*
|
|
1150
1008
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1151
1009
|
*
|
|
@@ -1153,12 +1011,12 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
1153
1011
|
* ```typescript
|
|
1154
1012
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1155
1013
|
* import { mainnet } from 'viem/chains';
|
|
1156
|
-
* import {
|
|
1014
|
+
* import { ERC721RaribleMinimal } from 'ERC721RaribleMinimal';
|
|
1157
1015
|
*
|
|
1158
1016
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1159
1017
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1160
1018
|
*
|
|
1161
|
-
* const contract = new
|
|
1019
|
+
* const contract = new ERC721RaribleMinimal('0x...', { publicClient, walletClient });
|
|
1162
1020
|
*
|
|
1163
1021
|
* // Read functions
|
|
1164
1022
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -1176,13 +1034,13 @@ exports.ERC1155Rarible_jsonAbi = [
|
|
|
1176
1034
|
* });
|
|
1177
1035
|
* ```
|
|
1178
1036
|
*/
|
|
1179
|
-
class
|
|
1037
|
+
class ERC721RaribleMinimal {
|
|
1180
1038
|
constructor(address, clients) {
|
|
1181
1039
|
this.contractAddress = address;
|
|
1182
1040
|
this.publicClient = clients.publicClient;
|
|
1183
1041
|
this.contract = (0, viem_1.getContract)({
|
|
1184
1042
|
address,
|
|
1185
|
-
abi: exports.
|
|
1043
|
+
abi: exports.ERC721RaribleMinimalAbi,
|
|
1186
1044
|
client: {
|
|
1187
1045
|
public: clients.publicClient,
|
|
1188
1046
|
wallet: clients.walletClient,
|
|
@@ -1196,7 +1054,7 @@ class ERC1155Rarible_json {
|
|
|
1196
1054
|
return this.contractAddress;
|
|
1197
1055
|
}
|
|
1198
1056
|
/**
|
|
1199
|
-
* Get the underlying viem contract instance
|
|
1057
|
+
* Get the underlying viem contract instance.
|
|
1200
1058
|
*/
|
|
1201
1059
|
getContract() {
|
|
1202
1060
|
return this.contract;
|
|
@@ -1205,15 +1063,8 @@ class ERC1155Rarible_json {
|
|
|
1205
1063
|
* balanceOf
|
|
1206
1064
|
* view
|
|
1207
1065
|
*/
|
|
1208
|
-
async balanceOf(
|
|
1209
|
-
return this.contract.read.balanceOf([
|
|
1210
|
-
}
|
|
1211
|
-
/**
|
|
1212
|
-
* balanceOfBatch
|
|
1213
|
-
* view
|
|
1214
|
-
*/
|
|
1215
|
-
async balanceOfBatch(accounts, ids) {
|
|
1216
|
-
return this.contract.read.balanceOfBatch([accounts, ids]);
|
|
1066
|
+
async balanceOf(owner) {
|
|
1067
|
+
return this.contract.read.balanceOf([owner]);
|
|
1217
1068
|
}
|
|
1218
1069
|
/**
|
|
1219
1070
|
* baseURI
|
|
@@ -1229,6 +1080,13 @@ class ERC1155Rarible_json {
|
|
|
1229
1080
|
async contractURI() {
|
|
1230
1081
|
return this.contract.read.contractURI();
|
|
1231
1082
|
}
|
|
1083
|
+
/**
|
|
1084
|
+
* getApproved
|
|
1085
|
+
* view
|
|
1086
|
+
*/
|
|
1087
|
+
async getApproved(tokenId) {
|
|
1088
|
+
return this.contract.read.getApproved([tokenId]);
|
|
1089
|
+
}
|
|
1232
1090
|
/**
|
|
1233
1091
|
* getCreators
|
|
1234
1092
|
* view
|
|
@@ -1247,8 +1105,8 @@ class ERC1155Rarible_json {
|
|
|
1247
1105
|
* isApprovedForAll
|
|
1248
1106
|
* view
|
|
1249
1107
|
*/
|
|
1250
|
-
async isApprovedForAll(
|
|
1251
|
-
return this.contract.read.isApprovedForAll([
|
|
1108
|
+
async isApprovedForAll(owner, operator) {
|
|
1109
|
+
return this.contract.read.isApprovedForAll([owner, operator]);
|
|
1252
1110
|
}
|
|
1253
1111
|
/**
|
|
1254
1112
|
* isMinter
|
|
@@ -1271,6 +1129,13 @@ class ERC1155Rarible_json {
|
|
|
1271
1129
|
async owner() {
|
|
1272
1130
|
return this.contract.read.owner();
|
|
1273
1131
|
}
|
|
1132
|
+
/**
|
|
1133
|
+
* ownerOf
|
|
1134
|
+
* view
|
|
1135
|
+
*/
|
|
1136
|
+
async ownerOf(tokenId) {
|
|
1137
|
+
return this.contract.read.ownerOf([tokenId]);
|
|
1138
|
+
}
|
|
1274
1139
|
/**
|
|
1275
1140
|
* royaltyInfo
|
|
1276
1141
|
* view
|
|
@@ -1293,33 +1158,33 @@ class ERC1155Rarible_json {
|
|
|
1293
1158
|
return this.contract.read.symbol();
|
|
1294
1159
|
}
|
|
1295
1160
|
/**
|
|
1296
|
-
*
|
|
1161
|
+
* tokenURI
|
|
1297
1162
|
* view
|
|
1298
1163
|
*/
|
|
1299
|
-
async
|
|
1300
|
-
return this.contract.read.
|
|
1164
|
+
async tokenURI(tokenId) {
|
|
1165
|
+
return this.contract.read.tokenURI([tokenId]);
|
|
1301
1166
|
}
|
|
1302
1167
|
/**
|
|
1303
|
-
*
|
|
1168
|
+
* __ERC721RaribleUser_init
|
|
1304
1169
|
* nonpayable
|
|
1305
1170
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1306
1171
|
*/
|
|
1307
|
-
async
|
|
1172
|
+
async __ERC721RaribleUser_init(_name, _symbol, baseURI, contractURI, operators, transferProxy, lazyTransferProxy, options) {
|
|
1308
1173
|
if (!this.contract.write) {
|
|
1309
1174
|
throw new Error('Wallet client is required for write operations');
|
|
1310
1175
|
}
|
|
1311
|
-
return this.contract.write.
|
|
1176
|
+
return this.contract.write.__ERC721RaribleUser_init([_name, _symbol, baseURI, contractURI, operators, transferProxy, lazyTransferProxy], options);
|
|
1312
1177
|
}
|
|
1313
1178
|
/**
|
|
1314
|
-
*
|
|
1179
|
+
* __ERC721Rarible_init
|
|
1315
1180
|
* nonpayable
|
|
1316
1181
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1317
1182
|
*/
|
|
1318
|
-
async
|
|
1183
|
+
async __ERC721Rarible_init(_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy, options) {
|
|
1319
1184
|
if (!this.contract.write) {
|
|
1320
1185
|
throw new Error('Wallet client is required for write operations');
|
|
1321
1186
|
}
|
|
1322
|
-
return this.contract.write.
|
|
1187
|
+
return this.contract.write.__ERC721Rarible_init([_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy], options);
|
|
1323
1188
|
}
|
|
1324
1189
|
/**
|
|
1325
1190
|
* addMinter
|
|
@@ -1344,37 +1209,37 @@ class ERC1155Rarible_json {
|
|
|
1344
1209
|
return this.contract.write.addMinters([minters], options);
|
|
1345
1210
|
}
|
|
1346
1211
|
/**
|
|
1347
|
-
*
|
|
1212
|
+
* approve
|
|
1348
1213
|
* nonpayable
|
|
1349
1214
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1350
1215
|
*/
|
|
1351
|
-
async
|
|
1216
|
+
async approve(to, tokenId, options) {
|
|
1352
1217
|
if (!this.contract.write) {
|
|
1353
1218
|
throw new Error('Wallet client is required for write operations');
|
|
1354
1219
|
}
|
|
1355
|
-
return this.contract.write.
|
|
1220
|
+
return this.contract.write.approve([to, tokenId], options);
|
|
1356
1221
|
}
|
|
1357
1222
|
/**
|
|
1358
|
-
*
|
|
1223
|
+
* burn
|
|
1359
1224
|
* nonpayable
|
|
1360
1225
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1361
1226
|
*/
|
|
1362
|
-
async
|
|
1227
|
+
async burn(tokenId, options) {
|
|
1363
1228
|
if (!this.contract.write) {
|
|
1364
1229
|
throw new Error('Wallet client is required for write operations');
|
|
1365
1230
|
}
|
|
1366
|
-
return this.contract.write.
|
|
1231
|
+
return this.contract.write.burn([tokenId], options);
|
|
1367
1232
|
}
|
|
1368
1233
|
/**
|
|
1369
1234
|
* mintAndTransfer
|
|
1370
1235
|
* nonpayable
|
|
1371
1236
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1372
1237
|
*/
|
|
1373
|
-
async mintAndTransfer(data, to,
|
|
1238
|
+
async mintAndTransfer(data, to, options) {
|
|
1374
1239
|
if (!this.contract.write) {
|
|
1375
1240
|
throw new Error('Wallet client is required for write operations');
|
|
1376
1241
|
}
|
|
1377
|
-
return this.contract.write.mintAndTransfer([data, to
|
|
1242
|
+
return this.contract.write.mintAndTransfer([data, to], options);
|
|
1378
1243
|
}
|
|
1379
1244
|
/**
|
|
1380
1245
|
* removeMinter
|
|
@@ -1398,60 +1263,55 @@ class ERC1155Rarible_json {
|
|
|
1398
1263
|
}
|
|
1399
1264
|
return this.contract.write.renounceOwnership(options);
|
|
1400
1265
|
}
|
|
1401
|
-
|
|
1402
|
-
* safeBatchTransferFrom
|
|
1403
|
-
* nonpayable
|
|
1404
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1405
|
-
*/
|
|
1406
|
-
async safeBatchTransferFrom(from, to, ids, amounts, data, options) {
|
|
1266
|
+
async safeTransferFrom(...args) {
|
|
1407
1267
|
if (!this.contract.write) {
|
|
1408
1268
|
throw new Error('Wallet client is required for write operations');
|
|
1409
1269
|
}
|
|
1410
|
-
return this.contract.write.
|
|
1270
|
+
return this.contract.write.safeTransferFrom(args);
|
|
1411
1271
|
}
|
|
1412
1272
|
/**
|
|
1413
|
-
*
|
|
1273
|
+
* setApprovalForAll
|
|
1414
1274
|
* nonpayable
|
|
1415
1275
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1416
1276
|
*/
|
|
1417
|
-
async
|
|
1277
|
+
async setApprovalForAll(operator, approved, options) {
|
|
1418
1278
|
if (!this.contract.write) {
|
|
1419
1279
|
throw new Error('Wallet client is required for write operations');
|
|
1420
1280
|
}
|
|
1421
|
-
return this.contract.write.
|
|
1281
|
+
return this.contract.write.setApprovalForAll([operator, approved], options);
|
|
1422
1282
|
}
|
|
1423
1283
|
/**
|
|
1424
|
-
*
|
|
1284
|
+
* setBaseURI
|
|
1425
1285
|
* nonpayable
|
|
1426
1286
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1427
1287
|
*/
|
|
1428
|
-
async
|
|
1288
|
+
async setBaseURI(newBaseURI, options) {
|
|
1429
1289
|
if (!this.contract.write) {
|
|
1430
1290
|
throw new Error('Wallet client is required for write operations');
|
|
1431
1291
|
}
|
|
1432
|
-
return this.contract.write.
|
|
1292
|
+
return this.contract.write.setBaseURI([newBaseURI], options);
|
|
1433
1293
|
}
|
|
1434
1294
|
/**
|
|
1435
|
-
*
|
|
1295
|
+
* transferFrom
|
|
1436
1296
|
* nonpayable
|
|
1437
1297
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1438
1298
|
*/
|
|
1439
|
-
async
|
|
1299
|
+
async transferFrom(from, to, tokenId, options) {
|
|
1440
1300
|
if (!this.contract.write) {
|
|
1441
1301
|
throw new Error('Wallet client is required for write operations');
|
|
1442
1302
|
}
|
|
1443
|
-
return this.contract.write.
|
|
1303
|
+
return this.contract.write.transferFrom([from, to, tokenId], options);
|
|
1444
1304
|
}
|
|
1445
1305
|
/**
|
|
1446
1306
|
* transferFromOrMint
|
|
1447
1307
|
* nonpayable
|
|
1448
1308
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1449
1309
|
*/
|
|
1450
|
-
async transferFromOrMint(data, from, to,
|
|
1310
|
+
async transferFromOrMint(data, from, to, options) {
|
|
1451
1311
|
if (!this.contract.write) {
|
|
1452
1312
|
throw new Error('Wallet client is required for write operations');
|
|
1453
1313
|
}
|
|
1454
|
-
return this.contract.write.transferFromOrMint([data, from, to
|
|
1314
|
+
return this.contract.write.transferFromOrMint([data, from, to], options);
|
|
1455
1315
|
}
|
|
1456
1316
|
/**
|
|
1457
1317
|
* transferOwnership
|
|
@@ -1490,20 +1350,20 @@ class ERC1155Rarible_json {
|
|
|
1490
1350
|
}
|
|
1491
1351
|
return {
|
|
1492
1352
|
/**
|
|
1493
|
-
* Simulate
|
|
1353
|
+
* Simulate __ERC721RaribleUser_init
|
|
1494
1354
|
* Returns gas estimate and result without sending transaction
|
|
1495
1355
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1496
1356
|
*/
|
|
1497
|
-
async
|
|
1498
|
-
return contract.simulate.
|
|
1357
|
+
async __ERC721RaribleUser_init(_name, _symbol, baseURI, contractURI, operators, transferProxy, lazyTransferProxy, options) {
|
|
1358
|
+
return contract.simulate.__ERC721RaribleUser_init([_name, _symbol, baseURI, contractURI, operators, transferProxy, lazyTransferProxy], options);
|
|
1499
1359
|
},
|
|
1500
1360
|
/**
|
|
1501
|
-
* Simulate
|
|
1361
|
+
* Simulate __ERC721Rarible_init
|
|
1502
1362
|
* Returns gas estimate and result without sending transaction
|
|
1503
1363
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1504
1364
|
*/
|
|
1505
|
-
async
|
|
1506
|
-
return contract.simulate.
|
|
1365
|
+
async __ERC721Rarible_init(_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy, options) {
|
|
1366
|
+
return contract.simulate.__ERC721Rarible_init([_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy], options);
|
|
1507
1367
|
},
|
|
1508
1368
|
/**
|
|
1509
1369
|
* Simulate addMinter
|
|
@@ -1522,28 +1382,28 @@ class ERC1155Rarible_json {
|
|
|
1522
1382
|
return contract.simulate.addMinters([minters], options);
|
|
1523
1383
|
},
|
|
1524
1384
|
/**
|
|
1525
|
-
* Simulate
|
|
1385
|
+
* Simulate approve
|
|
1526
1386
|
* Returns gas estimate and result without sending transaction
|
|
1527
1387
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1528
1388
|
*/
|
|
1529
|
-
async
|
|
1530
|
-
return contract.simulate.
|
|
1389
|
+
async approve(to, tokenId, options) {
|
|
1390
|
+
return contract.simulate.approve([to, tokenId], options);
|
|
1531
1391
|
},
|
|
1532
1392
|
/**
|
|
1533
|
-
* Simulate
|
|
1393
|
+
* Simulate burn
|
|
1534
1394
|
* Returns gas estimate and result without sending transaction
|
|
1535
1395
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1536
1396
|
*/
|
|
1537
|
-
async
|
|
1538
|
-
return contract.simulate.
|
|
1397
|
+
async burn(tokenId, options) {
|
|
1398
|
+
return contract.simulate.burn([tokenId], options);
|
|
1539
1399
|
},
|
|
1540
1400
|
/**
|
|
1541
1401
|
* Simulate mintAndTransfer
|
|
1542
1402
|
* Returns gas estimate and result without sending transaction
|
|
1543
1403
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1544
1404
|
*/
|
|
1545
|
-
async mintAndTransfer(data, to,
|
|
1546
|
-
return contract.simulate.mintAndTransfer([data, to
|
|
1405
|
+
async mintAndTransfer(data, to, options) {
|
|
1406
|
+
return contract.simulate.mintAndTransfer([data, to], options);
|
|
1547
1407
|
},
|
|
1548
1408
|
/**
|
|
1549
1409
|
* Simulate removeMinter
|
|
@@ -1561,21 +1421,14 @@ class ERC1155Rarible_json {
|
|
|
1561
1421
|
async renounceOwnership(options) {
|
|
1562
1422
|
return contract.simulate.renounceOwnership(options);
|
|
1563
1423
|
},
|
|
1564
|
-
/**
|
|
1565
|
-
* Simulate safeBatchTransferFrom
|
|
1566
|
-
* Returns gas estimate and result without sending transaction
|
|
1567
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1568
|
-
*/
|
|
1569
|
-
async safeBatchTransferFrom(from, to, ids, amounts, data, options) {
|
|
1570
|
-
return contract.simulate.safeBatchTransferFrom([from, to, ids, amounts, data], options);
|
|
1571
|
-
},
|
|
1572
1424
|
/**
|
|
1573
1425
|
* Simulate safeTransferFrom
|
|
1574
1426
|
* Returns gas estimate and result without sending transaction
|
|
1427
|
+
* Supports multiple overloads: (address, address, uint256), (address, address, uint256, bytes)
|
|
1575
1428
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1576
1429
|
*/
|
|
1577
|
-
async safeTransferFrom(
|
|
1578
|
-
return contract.simulate.safeTransferFrom(
|
|
1430
|
+
async safeTransferFrom(...args) {
|
|
1431
|
+
return contract.simulate.safeTransferFrom(args);
|
|
1579
1432
|
},
|
|
1580
1433
|
/**
|
|
1581
1434
|
* Simulate setApprovalForAll
|
|
@@ -1593,13 +1446,21 @@ class ERC1155Rarible_json {
|
|
|
1593
1446
|
async setBaseURI(newBaseURI, options) {
|
|
1594
1447
|
return contract.simulate.setBaseURI([newBaseURI], options);
|
|
1595
1448
|
},
|
|
1449
|
+
/**
|
|
1450
|
+
* Simulate transferFrom
|
|
1451
|
+
* Returns gas estimate and result without sending transaction
|
|
1452
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1453
|
+
*/
|
|
1454
|
+
async transferFrom(from, to, tokenId, options) {
|
|
1455
|
+
return contract.simulate.transferFrom([from, to, tokenId], options);
|
|
1456
|
+
},
|
|
1596
1457
|
/**
|
|
1597
1458
|
* Simulate transferFromOrMint
|
|
1598
1459
|
* Returns gas estimate and result without sending transaction
|
|
1599
1460
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1600
1461
|
*/
|
|
1601
|
-
async transferFromOrMint(data, from, to,
|
|
1602
|
-
return contract.simulate.transferFromOrMint([data, from, to
|
|
1462
|
+
async transferFromOrMint(data, from, to, options) {
|
|
1463
|
+
return contract.simulate.transferFromOrMint([data, from, to], options);
|
|
1603
1464
|
},
|
|
1604
1465
|
/**
|
|
1605
1466
|
* Simulate transferOwnership
|
|
@@ -1634,16 +1495,16 @@ class ERC1155Rarible_json {
|
|
|
1634
1495
|
get watch() {
|
|
1635
1496
|
return {
|
|
1636
1497
|
/**
|
|
1637
|
-
* Watch
|
|
1498
|
+
* Watch Approval events
|
|
1638
1499
|
* @param callback Function to call when event is emitted
|
|
1639
1500
|
* @param filter Optional filter for indexed parameters
|
|
1640
1501
|
* @returns Unwatch function to stop listening
|
|
1641
1502
|
*/
|
|
1642
|
-
|
|
1503
|
+
Approval: (callback, filter) => {
|
|
1643
1504
|
return this.publicClient.watchContractEvent({
|
|
1644
1505
|
address: this.contractAddress,
|
|
1645
|
-
abi: exports.
|
|
1646
|
-
eventName: '
|
|
1506
|
+
abi: exports.ERC721RaribleMinimalAbi,
|
|
1507
|
+
eventName: 'Approval',
|
|
1647
1508
|
args: filter,
|
|
1648
1509
|
onLogs: (logs) => {
|
|
1649
1510
|
logs.forEach((log) => {
|
|
@@ -1653,34 +1514,16 @@ class ERC1155Rarible_json {
|
|
|
1653
1514
|
});
|
|
1654
1515
|
},
|
|
1655
1516
|
/**
|
|
1656
|
-
* Watch
|
|
1657
|
-
* @param callback Function to call when event is emitted
|
|
1658
|
-
* @param filter Optional filter for indexed parameters
|
|
1659
|
-
* @returns Unwatch function to stop listening
|
|
1660
|
-
*/
|
|
1661
|
-
BaseUriChanged: (callback) => {
|
|
1662
|
-
return this.publicClient.watchContractEvent({
|
|
1663
|
-
address: this.contractAddress,
|
|
1664
|
-
abi: exports.ERC1155Rarible_jsonAbi,
|
|
1665
|
-
eventName: 'BaseUriChanged',
|
|
1666
|
-
onLogs: (logs) => {
|
|
1667
|
-
logs.forEach((log) => {
|
|
1668
|
-
callback(log.args);
|
|
1669
|
-
});
|
|
1670
|
-
},
|
|
1671
|
-
});
|
|
1672
|
-
},
|
|
1673
|
-
/**
|
|
1674
|
-
* Watch BurnLazy events
|
|
1517
|
+
* Watch ApprovalForAll events
|
|
1675
1518
|
* @param callback Function to call when event is emitted
|
|
1676
1519
|
* @param filter Optional filter for indexed parameters
|
|
1677
1520
|
* @returns Unwatch function to stop listening
|
|
1678
1521
|
*/
|
|
1679
|
-
|
|
1522
|
+
ApprovalForAll: (callback, filter) => {
|
|
1680
1523
|
return this.publicClient.watchContractEvent({
|
|
1681
1524
|
address: this.contractAddress,
|
|
1682
|
-
abi: exports.
|
|
1683
|
-
eventName: '
|
|
1525
|
+
abi: exports.ERC721RaribleMinimalAbi,
|
|
1526
|
+
eventName: 'ApprovalForAll',
|
|
1684
1527
|
args: filter,
|
|
1685
1528
|
onLogs: (logs) => {
|
|
1686
1529
|
logs.forEach((log) => {
|
|
@@ -1690,17 +1533,16 @@ class ERC1155Rarible_json {
|
|
|
1690
1533
|
});
|
|
1691
1534
|
},
|
|
1692
1535
|
/**
|
|
1693
|
-
* Watch
|
|
1536
|
+
* Watch BaseUriChanged events
|
|
1694
1537
|
* @param callback Function to call when event is emitted
|
|
1695
1538
|
* @param filter Optional filter for indexed parameters
|
|
1696
1539
|
* @returns Unwatch function to stop listening
|
|
1697
1540
|
*/
|
|
1698
|
-
|
|
1541
|
+
BaseUriChanged: (callback) => {
|
|
1699
1542
|
return this.publicClient.watchContractEvent({
|
|
1700
1543
|
address: this.contractAddress,
|
|
1701
|
-
abi: exports.
|
|
1702
|
-
eventName: '
|
|
1703
|
-
args: filter,
|
|
1544
|
+
abi: exports.ERC721RaribleMinimalAbi,
|
|
1545
|
+
eventName: 'BaseUriChanged',
|
|
1704
1546
|
onLogs: (logs) => {
|
|
1705
1547
|
logs.forEach((log) => {
|
|
1706
1548
|
callback(log.args);
|
|
@@ -1709,16 +1551,16 @@ class ERC1155Rarible_json {
|
|
|
1709
1551
|
});
|
|
1710
1552
|
},
|
|
1711
1553
|
/**
|
|
1712
|
-
* Watch
|
|
1554
|
+
* Watch CreateERC721Rarible events
|
|
1713
1555
|
* @param callback Function to call when event is emitted
|
|
1714
1556
|
* @param filter Optional filter for indexed parameters
|
|
1715
1557
|
* @returns Unwatch function to stop listening
|
|
1716
1558
|
*/
|
|
1717
|
-
|
|
1559
|
+
CreateERC721Rarible: (callback) => {
|
|
1718
1560
|
return this.publicClient.watchContractEvent({
|
|
1719
1561
|
address: this.contractAddress,
|
|
1720
|
-
abi: exports.
|
|
1721
|
-
eventName: '
|
|
1562
|
+
abi: exports.ERC721RaribleMinimalAbi,
|
|
1563
|
+
eventName: 'CreateERC721Rarible',
|
|
1722
1564
|
onLogs: (logs) => {
|
|
1723
1565
|
logs.forEach((log) => {
|
|
1724
1566
|
callback(log.args);
|
|
@@ -1727,16 +1569,16 @@ class ERC1155Rarible_json {
|
|
|
1727
1569
|
});
|
|
1728
1570
|
},
|
|
1729
1571
|
/**
|
|
1730
|
-
* Watch
|
|
1572
|
+
* Watch CreateERC721RaribleUser events
|
|
1731
1573
|
* @param callback Function to call when event is emitted
|
|
1732
1574
|
* @param filter Optional filter for indexed parameters
|
|
1733
1575
|
* @returns Unwatch function to stop listening
|
|
1734
1576
|
*/
|
|
1735
|
-
|
|
1577
|
+
CreateERC721RaribleUser: (callback) => {
|
|
1736
1578
|
return this.publicClient.watchContractEvent({
|
|
1737
1579
|
address: this.contractAddress,
|
|
1738
|
-
abi: exports.
|
|
1739
|
-
eventName: '
|
|
1580
|
+
abi: exports.ERC721RaribleMinimalAbi,
|
|
1581
|
+
eventName: 'CreateERC721RaribleUser',
|
|
1740
1582
|
onLogs: (logs) => {
|
|
1741
1583
|
logs.forEach((log) => {
|
|
1742
1584
|
callback(log.args);
|
|
@@ -1753,7 +1595,7 @@ class ERC1155Rarible_json {
|
|
|
1753
1595
|
Creators: (callback) => {
|
|
1754
1596
|
return this.publicClient.watchContractEvent({
|
|
1755
1597
|
address: this.contractAddress,
|
|
1756
|
-
abi: exports.
|
|
1598
|
+
abi: exports.ERC721RaribleMinimalAbi,
|
|
1757
1599
|
eventName: 'Creators',
|
|
1758
1600
|
onLogs: (logs) => {
|
|
1759
1601
|
logs.forEach((log) => {
|
|
@@ -1771,7 +1613,7 @@ class ERC1155Rarible_json {
|
|
|
1771
1613
|
DefaultApproval: (callback, filter) => {
|
|
1772
1614
|
return this.publicClient.watchContractEvent({
|
|
1773
1615
|
address: this.contractAddress,
|
|
1774
|
-
abi: exports.
|
|
1616
|
+
abi: exports.ERC721RaribleMinimalAbi,
|
|
1775
1617
|
eventName: 'DefaultApproval',
|
|
1776
1618
|
args: filter,
|
|
1777
1619
|
onLogs: (logs) => {
|
|
@@ -1790,7 +1632,7 @@ class ERC1155Rarible_json {
|
|
|
1790
1632
|
MinterStatusChanged: (callback, filter) => {
|
|
1791
1633
|
return this.publicClient.watchContractEvent({
|
|
1792
1634
|
address: this.contractAddress,
|
|
1793
|
-
abi: exports.
|
|
1635
|
+
abi: exports.ERC721RaribleMinimalAbi,
|
|
1794
1636
|
eventName: 'MinterStatusChanged',
|
|
1795
1637
|
args: filter,
|
|
1796
1638
|
onLogs: (logs) => {
|
|
@@ -1809,7 +1651,7 @@ class ERC1155Rarible_json {
|
|
|
1809
1651
|
OwnershipTransferred: (callback, filter) => {
|
|
1810
1652
|
return this.publicClient.watchContractEvent({
|
|
1811
1653
|
address: this.contractAddress,
|
|
1812
|
-
abi: exports.
|
|
1654
|
+
abi: exports.ERC721RaribleMinimalAbi,
|
|
1813
1655
|
eventName: 'OwnershipTransferred',
|
|
1814
1656
|
args: filter,
|
|
1815
1657
|
onLogs: (logs) => {
|
|
@@ -1828,7 +1670,7 @@ class ERC1155Rarible_json {
|
|
|
1828
1670
|
RoyaltiesSet: (callback) => {
|
|
1829
1671
|
return this.publicClient.watchContractEvent({
|
|
1830
1672
|
address: this.contractAddress,
|
|
1831
|
-
abi: exports.
|
|
1673
|
+
abi: exports.ERC721RaribleMinimalAbi,
|
|
1832
1674
|
eventName: 'RoyaltiesSet',
|
|
1833
1675
|
onLogs: (logs) => {
|
|
1834
1676
|
logs.forEach((log) => {
|
|
@@ -1838,72 +1680,16 @@ class ERC1155Rarible_json {
|
|
|
1838
1680
|
});
|
|
1839
1681
|
},
|
|
1840
1682
|
/**
|
|
1841
|
-
* Watch
|
|
1842
|
-
* @param callback Function to call when event is emitted
|
|
1843
|
-
* @param filter Optional filter for indexed parameters
|
|
1844
|
-
* @returns Unwatch function to stop listening
|
|
1845
|
-
*/
|
|
1846
|
-
Supply: (callback) => {
|
|
1847
|
-
return this.publicClient.watchContractEvent({
|
|
1848
|
-
address: this.contractAddress,
|
|
1849
|
-
abi: exports.ERC1155Rarible_jsonAbi,
|
|
1850
|
-
eventName: 'Supply',
|
|
1851
|
-
onLogs: (logs) => {
|
|
1852
|
-
logs.forEach((log) => {
|
|
1853
|
-
callback(log.args);
|
|
1854
|
-
});
|
|
1855
|
-
},
|
|
1856
|
-
});
|
|
1857
|
-
},
|
|
1858
|
-
/**
|
|
1859
|
-
* Watch TransferBatch events
|
|
1860
|
-
* @param callback Function to call when event is emitted
|
|
1861
|
-
* @param filter Optional filter for indexed parameters
|
|
1862
|
-
* @returns Unwatch function to stop listening
|
|
1863
|
-
*/
|
|
1864
|
-
TransferBatch: (callback, filter) => {
|
|
1865
|
-
return this.publicClient.watchContractEvent({
|
|
1866
|
-
address: this.contractAddress,
|
|
1867
|
-
abi: exports.ERC1155Rarible_jsonAbi,
|
|
1868
|
-
eventName: 'TransferBatch',
|
|
1869
|
-
args: filter,
|
|
1870
|
-
onLogs: (logs) => {
|
|
1871
|
-
logs.forEach((log) => {
|
|
1872
|
-
callback(log.args);
|
|
1873
|
-
});
|
|
1874
|
-
},
|
|
1875
|
-
});
|
|
1876
|
-
},
|
|
1877
|
-
/**
|
|
1878
|
-
* Watch TransferSingle events
|
|
1879
|
-
* @param callback Function to call when event is emitted
|
|
1880
|
-
* @param filter Optional filter for indexed parameters
|
|
1881
|
-
* @returns Unwatch function to stop listening
|
|
1882
|
-
*/
|
|
1883
|
-
TransferSingle: (callback, filter) => {
|
|
1884
|
-
return this.publicClient.watchContractEvent({
|
|
1885
|
-
address: this.contractAddress,
|
|
1886
|
-
abi: exports.ERC1155Rarible_jsonAbi,
|
|
1887
|
-
eventName: 'TransferSingle',
|
|
1888
|
-
args: filter,
|
|
1889
|
-
onLogs: (logs) => {
|
|
1890
|
-
logs.forEach((log) => {
|
|
1891
|
-
callback(log.args);
|
|
1892
|
-
});
|
|
1893
|
-
},
|
|
1894
|
-
});
|
|
1895
|
-
},
|
|
1896
|
-
/**
|
|
1897
|
-
* Watch URI events
|
|
1683
|
+
* Watch Transfer events
|
|
1898
1684
|
* @param callback Function to call when event is emitted
|
|
1899
1685
|
* @param filter Optional filter for indexed parameters
|
|
1900
1686
|
* @returns Unwatch function to stop listening
|
|
1901
1687
|
*/
|
|
1902
|
-
|
|
1688
|
+
Transfer: (callback, filter) => {
|
|
1903
1689
|
return this.publicClient.watchContractEvent({
|
|
1904
1690
|
address: this.contractAddress,
|
|
1905
|
-
abi: exports.
|
|
1906
|
-
eventName: '
|
|
1691
|
+
abi: exports.ERC721RaribleMinimalAbi,
|
|
1692
|
+
eventName: 'Transfer',
|
|
1907
1693
|
args: filter,
|
|
1908
1694
|
onLogs: (logs) => {
|
|
1909
1695
|
logs.forEach((log) => {
|
|
@@ -1915,4 +1701,4 @@ class ERC1155Rarible_json {
|
|
|
1915
1701
|
};
|
|
1916
1702
|
}
|
|
1917
1703
|
}
|
|
1918
|
-
exports.
|
|
1704
|
+
exports.ERC721RaribleMinimal = ERC721RaribleMinimal;
|