@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
|
@@ -11,58 +11,44 @@ export type LibPart_Part = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* LibERC721LazyMint.Mint721Data struct type
|
|
15
15
|
*/
|
|
16
|
-
export type
|
|
16
|
+
export type LibERC721LazyMint_Mint721Data = {
|
|
17
17
|
tokenId: bigint;
|
|
18
18
|
tokenURI: string;
|
|
19
|
-
supply: bigint;
|
|
20
19
|
creators: LibPart_Part[];
|
|
21
20
|
royalties: LibPart_Part[];
|
|
22
21
|
signatures: `0x${string}`[];
|
|
23
22
|
};
|
|
24
23
|
/**
|
|
25
|
-
*
|
|
24
|
+
* ERC721RaribleMinimal ABI
|
|
26
25
|
*
|
|
27
26
|
* This ABI is typed using viem's type system for full type safety.
|
|
28
27
|
*/
|
|
29
|
-
export const
|
|
28
|
+
export const ERC721RaribleMinimalAbi = [
|
|
30
29
|
{
|
|
31
30
|
"anonymous": false,
|
|
32
31
|
"inputs": [
|
|
33
32
|
{
|
|
34
33
|
"indexed": true,
|
|
35
34
|
"internalType": "address",
|
|
36
|
-
"name": "
|
|
35
|
+
"name": "owner",
|
|
37
36
|
"type": "address"
|
|
38
37
|
},
|
|
39
38
|
{
|
|
40
39
|
"indexed": true,
|
|
41
40
|
"internalType": "address",
|
|
42
|
-
"name": "
|
|
41
|
+
"name": "approved",
|
|
43
42
|
"type": "address"
|
|
44
43
|
},
|
|
45
44
|
{
|
|
46
|
-
"indexed":
|
|
47
|
-
"internalType": "
|
|
48
|
-
"name": "
|
|
49
|
-
"type": "
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"name": "ApprovalForAll",
|
|
53
|
-
"type": "event"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"anonymous": false,
|
|
57
|
-
"inputs": [
|
|
58
|
-
{
|
|
59
|
-
"indexed": false,
|
|
60
|
-
"internalType": "string",
|
|
61
|
-
"name": "newBaseURI",
|
|
62
|
-
"type": "string"
|
|
45
|
+
"indexed": true,
|
|
46
|
+
"internalType": "uint256",
|
|
47
|
+
"name": "tokenId",
|
|
48
|
+
"type": "uint256"
|
|
63
49
|
}
|
|
64
50
|
],
|
|
65
|
-
"name": "
|
|
51
|
+
"name": "Approval",
|
|
66
52
|
"type": "event"
|
|
67
53
|
},
|
|
68
54
|
{
|
|
@@ -71,60 +57,36 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
71
57
|
{
|
|
72
58
|
"indexed": true,
|
|
73
59
|
"internalType": "address",
|
|
74
|
-
"name": "
|
|
60
|
+
"name": "owner",
|
|
75
61
|
"type": "address"
|
|
76
62
|
},
|
|
77
63
|
{
|
|
78
64
|
"indexed": true,
|
|
79
65
|
"internalType": "address",
|
|
80
|
-
"name": "
|
|
66
|
+
"name": "operator",
|
|
81
67
|
"type": "address"
|
|
82
68
|
},
|
|
83
69
|
{
|
|
84
70
|
"indexed": false,
|
|
85
|
-
"internalType": "
|
|
86
|
-
"name": "
|
|
87
|
-
"type": "
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"indexed": false,
|
|
91
|
-
"internalType": "uint256",
|
|
92
|
-
"name": "amount",
|
|
93
|
-
"type": "uint256"
|
|
71
|
+
"internalType": "bool",
|
|
72
|
+
"name": "approved",
|
|
73
|
+
"type": "bool"
|
|
94
74
|
}
|
|
95
75
|
],
|
|
96
|
-
"name": "
|
|
76
|
+
"name": "ApprovalForAll",
|
|
97
77
|
"type": "event"
|
|
98
78
|
},
|
|
99
79
|
{
|
|
100
80
|
"anonymous": false,
|
|
101
81
|
"inputs": [
|
|
102
|
-
{
|
|
103
|
-
"indexed": true,
|
|
104
|
-
"internalType": "address",
|
|
105
|
-
"name": "operator",
|
|
106
|
-
"type": "address"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"indexed": true,
|
|
110
|
-
"internalType": "address",
|
|
111
|
-
"name": "account",
|
|
112
|
-
"type": "address"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"indexed": false,
|
|
116
|
-
"internalType": "uint256[]",
|
|
117
|
-
"name": "ids",
|
|
118
|
-
"type": "uint256[]"
|
|
119
|
-
},
|
|
120
82
|
{
|
|
121
83
|
"indexed": false,
|
|
122
|
-
"internalType": "
|
|
123
|
-
"name": "
|
|
124
|
-
"type": "
|
|
84
|
+
"internalType": "string",
|
|
85
|
+
"name": "newBaseURI",
|
|
86
|
+
"type": "string"
|
|
125
87
|
}
|
|
126
88
|
],
|
|
127
|
-
"name": "
|
|
89
|
+
"name": "BaseUriChanged",
|
|
128
90
|
"type": "event"
|
|
129
91
|
},
|
|
130
92
|
{
|
|
@@ -149,7 +111,7 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
149
111
|
"type": "string"
|
|
150
112
|
}
|
|
151
113
|
],
|
|
152
|
-
"name": "
|
|
114
|
+
"name": "CreateERC721Rarible",
|
|
153
115
|
"type": "event"
|
|
154
116
|
},
|
|
155
117
|
{
|
|
@@ -174,7 +136,7 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
174
136
|
"type": "string"
|
|
175
137
|
}
|
|
176
138
|
],
|
|
177
|
-
"name": "
|
|
139
|
+
"name": "CreateERC721RaribleUser",
|
|
178
140
|
"type": "event"
|
|
179
141
|
},
|
|
180
142
|
{
|
|
@@ -299,68 +261,6 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
299
261
|
{
|
|
300
262
|
"anonymous": false,
|
|
301
263
|
"inputs": [
|
|
302
|
-
{
|
|
303
|
-
"indexed": false,
|
|
304
|
-
"internalType": "uint256",
|
|
305
|
-
"name": "tokenId",
|
|
306
|
-
"type": "uint256"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
"indexed": false,
|
|
310
|
-
"internalType": "uint256",
|
|
311
|
-
"name": "value",
|
|
312
|
-
"type": "uint256"
|
|
313
|
-
}
|
|
314
|
-
],
|
|
315
|
-
"name": "Supply",
|
|
316
|
-
"type": "event"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"anonymous": false,
|
|
320
|
-
"inputs": [
|
|
321
|
-
{
|
|
322
|
-
"indexed": true,
|
|
323
|
-
"internalType": "address",
|
|
324
|
-
"name": "operator",
|
|
325
|
-
"type": "address"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"indexed": true,
|
|
329
|
-
"internalType": "address",
|
|
330
|
-
"name": "from",
|
|
331
|
-
"type": "address"
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
"indexed": true,
|
|
335
|
-
"internalType": "address",
|
|
336
|
-
"name": "to",
|
|
337
|
-
"type": "address"
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
"indexed": false,
|
|
341
|
-
"internalType": "uint256[]",
|
|
342
|
-
"name": "ids",
|
|
343
|
-
"type": "uint256[]"
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
"indexed": false,
|
|
347
|
-
"internalType": "uint256[]",
|
|
348
|
-
"name": "values",
|
|
349
|
-
"type": "uint256[]"
|
|
350
|
-
}
|
|
351
|
-
],
|
|
352
|
-
"name": "TransferBatch",
|
|
353
|
-
"type": "event"
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
"anonymous": false,
|
|
357
|
-
"inputs": [
|
|
358
|
-
{
|
|
359
|
-
"indexed": true,
|
|
360
|
-
"internalType": "address",
|
|
361
|
-
"name": "operator",
|
|
362
|
-
"type": "address"
|
|
363
|
-
},
|
|
364
264
|
{
|
|
365
265
|
"indexed": true,
|
|
366
266
|
"internalType": "address",
|
|
@@ -373,39 +273,14 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
373
273
|
"name": "to",
|
|
374
274
|
"type": "address"
|
|
375
275
|
},
|
|
376
|
-
{
|
|
377
|
-
"indexed": false,
|
|
378
|
-
"internalType": "uint256",
|
|
379
|
-
"name": "id",
|
|
380
|
-
"type": "uint256"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
"indexed": false,
|
|
384
|
-
"internalType": "uint256",
|
|
385
|
-
"name": "value",
|
|
386
|
-
"type": "uint256"
|
|
387
|
-
}
|
|
388
|
-
],
|
|
389
|
-
"name": "TransferSingle",
|
|
390
|
-
"type": "event"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
"anonymous": false,
|
|
394
|
-
"inputs": [
|
|
395
|
-
{
|
|
396
|
-
"indexed": false,
|
|
397
|
-
"internalType": "string",
|
|
398
|
-
"name": "value",
|
|
399
|
-
"type": "string"
|
|
400
|
-
},
|
|
401
276
|
{
|
|
402
277
|
"indexed": true,
|
|
403
278
|
"internalType": "uint256",
|
|
404
|
-
"name": "
|
|
279
|
+
"name": "tokenId",
|
|
405
280
|
"type": "uint256"
|
|
406
281
|
}
|
|
407
282
|
],
|
|
408
|
-
"name": "
|
|
283
|
+
"name": "Transfer",
|
|
409
284
|
"type": "event"
|
|
410
285
|
},
|
|
411
286
|
{
|
|
@@ -446,7 +321,7 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
446
321
|
"type": "address"
|
|
447
322
|
}
|
|
448
323
|
],
|
|
449
|
-
"name": "
|
|
324
|
+
"name": "__ERC721RaribleUser_init",
|
|
450
325
|
"outputs": [],
|
|
451
326
|
"stateMutability": "nonpayable",
|
|
452
327
|
"type": "function"
|
|
@@ -484,7 +359,7 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
484
359
|
"type": "address"
|
|
485
360
|
}
|
|
486
361
|
],
|
|
487
|
-
"name": "
|
|
362
|
+
"name": "__ERC721Rarible_init",
|
|
488
363
|
"outputs": [],
|
|
489
364
|
"stateMutability": "nonpayable",
|
|
490
365
|
"type": "function"
|
|
@@ -519,45 +394,34 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
519
394
|
"inputs": [
|
|
520
395
|
{
|
|
521
396
|
"internalType": "address",
|
|
522
|
-
"name": "
|
|
397
|
+
"name": "to",
|
|
523
398
|
"type": "address"
|
|
524
399
|
},
|
|
525
400
|
{
|
|
526
401
|
"internalType": "uint256",
|
|
527
|
-
"name": "
|
|
528
|
-
"type": "uint256"
|
|
529
|
-
}
|
|
530
|
-
],
|
|
531
|
-
"name": "balanceOf",
|
|
532
|
-
"outputs": [
|
|
533
|
-
{
|
|
534
|
-
"internalType": "uint256",
|
|
535
|
-
"name": "",
|
|
402
|
+
"name": "tokenId",
|
|
536
403
|
"type": "uint256"
|
|
537
404
|
}
|
|
538
405
|
],
|
|
539
|
-
"
|
|
406
|
+
"name": "approve",
|
|
407
|
+
"outputs": [],
|
|
408
|
+
"stateMutability": "nonpayable",
|
|
540
409
|
"type": "function"
|
|
541
410
|
},
|
|
542
411
|
{
|
|
543
412
|
"inputs": [
|
|
544
413
|
{
|
|
545
|
-
"internalType": "address
|
|
546
|
-
"name": "
|
|
547
|
-
"type": "address
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
"internalType": "uint256[]",
|
|
551
|
-
"name": "ids",
|
|
552
|
-
"type": "uint256[]"
|
|
414
|
+
"internalType": "address",
|
|
415
|
+
"name": "owner",
|
|
416
|
+
"type": "address"
|
|
553
417
|
}
|
|
554
418
|
],
|
|
555
|
-
"name": "
|
|
419
|
+
"name": "balanceOf",
|
|
556
420
|
"outputs": [
|
|
557
421
|
{
|
|
558
|
-
"internalType": "uint256
|
|
422
|
+
"internalType": "uint256",
|
|
559
423
|
"name": "",
|
|
560
|
-
"type": "uint256
|
|
424
|
+
"type": "uint256"
|
|
561
425
|
}
|
|
562
426
|
],
|
|
563
427
|
"stateMutability": "view",
|
|
@@ -578,19 +442,9 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
578
442
|
},
|
|
579
443
|
{
|
|
580
444
|
"inputs": [
|
|
581
|
-
{
|
|
582
|
-
"internalType": "address",
|
|
583
|
-
"name": "account",
|
|
584
|
-
"type": "address"
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
"internalType": "uint256",
|
|
588
|
-
"name": "id",
|
|
589
|
-
"type": "uint256"
|
|
590
|
-
},
|
|
591
445
|
{
|
|
592
446
|
"internalType": "uint256",
|
|
593
|
-
"name": "
|
|
447
|
+
"name": "tokenId",
|
|
594
448
|
"type": "uint256"
|
|
595
449
|
}
|
|
596
450
|
],
|
|
@@ -600,36 +454,32 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
600
454
|
"type": "function"
|
|
601
455
|
},
|
|
602
456
|
{
|
|
603
|
-
"inputs": [
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
"name": "account",
|
|
607
|
-
"type": "address"
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
"internalType": "uint256[]",
|
|
611
|
-
"name": "ids",
|
|
612
|
-
"type": "uint256[]"
|
|
613
|
-
},
|
|
457
|
+
"inputs": [],
|
|
458
|
+
"name": "contractURI",
|
|
459
|
+
"outputs": [
|
|
614
460
|
{
|
|
615
|
-
"internalType": "
|
|
616
|
-
"name": "
|
|
617
|
-
"type": "
|
|
461
|
+
"internalType": "string",
|
|
462
|
+
"name": "",
|
|
463
|
+
"type": "string"
|
|
618
464
|
}
|
|
619
465
|
],
|
|
620
|
-
"
|
|
621
|
-
"outputs": [],
|
|
622
|
-
"stateMutability": "nonpayable",
|
|
466
|
+
"stateMutability": "view",
|
|
623
467
|
"type": "function"
|
|
624
468
|
},
|
|
625
469
|
{
|
|
626
|
-
"inputs": [
|
|
627
|
-
|
|
470
|
+
"inputs": [
|
|
471
|
+
{
|
|
472
|
+
"internalType": "uint256",
|
|
473
|
+
"name": "tokenId",
|
|
474
|
+
"type": "uint256"
|
|
475
|
+
}
|
|
476
|
+
],
|
|
477
|
+
"name": "getApproved",
|
|
628
478
|
"outputs": [
|
|
629
479
|
{
|
|
630
|
-
"internalType": "
|
|
480
|
+
"internalType": "address",
|
|
631
481
|
"name": "",
|
|
632
|
-
"type": "
|
|
482
|
+
"type": "address"
|
|
633
483
|
}
|
|
634
484
|
],
|
|
635
485
|
"stateMutability": "view",
|
|
@@ -701,12 +551,12 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
701
551
|
"inputs": [
|
|
702
552
|
{
|
|
703
553
|
"internalType": "address",
|
|
704
|
-
"name": "
|
|
554
|
+
"name": "owner",
|
|
705
555
|
"type": "address"
|
|
706
556
|
},
|
|
707
557
|
{
|
|
708
558
|
"internalType": "address",
|
|
709
|
-
"name": "
|
|
559
|
+
"name": "operator",
|
|
710
560
|
"type": "address"
|
|
711
561
|
}
|
|
712
562
|
],
|
|
@@ -754,11 +604,6 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
754
604
|
"name": "tokenURI",
|
|
755
605
|
"type": "string"
|
|
756
606
|
},
|
|
757
|
-
{
|
|
758
|
-
"internalType": "uint256",
|
|
759
|
-
"name": "supply",
|
|
760
|
-
"type": "uint256"
|
|
761
|
-
},
|
|
762
607
|
{
|
|
763
608
|
"components": [
|
|
764
609
|
{
|
|
@@ -799,7 +644,7 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
799
644
|
"type": "bytes[]"
|
|
800
645
|
}
|
|
801
646
|
],
|
|
802
|
-
"internalType": "struct
|
|
647
|
+
"internalType": "struct LibERC721LazyMint.Mint721Data",
|
|
803
648
|
"name": "data",
|
|
804
649
|
"type": "tuple"
|
|
805
650
|
},
|
|
@@ -807,11 +652,6 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
807
652
|
"internalType": "address",
|
|
808
653
|
"name": "to",
|
|
809
654
|
"type": "address"
|
|
810
|
-
},
|
|
811
|
-
{
|
|
812
|
-
"internalType": "uint256",
|
|
813
|
-
"name": "_amount",
|
|
814
|
-
"type": "uint256"
|
|
815
655
|
}
|
|
816
656
|
],
|
|
817
657
|
"name": "mintAndTransfer",
|
|
@@ -845,6 +685,25 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
845
685
|
"stateMutability": "view",
|
|
846
686
|
"type": "function"
|
|
847
687
|
},
|
|
688
|
+
{
|
|
689
|
+
"inputs": [
|
|
690
|
+
{
|
|
691
|
+
"internalType": "uint256",
|
|
692
|
+
"name": "tokenId",
|
|
693
|
+
"type": "uint256"
|
|
694
|
+
}
|
|
695
|
+
],
|
|
696
|
+
"name": "ownerOf",
|
|
697
|
+
"outputs": [
|
|
698
|
+
{
|
|
699
|
+
"internalType": "address",
|
|
700
|
+
"name": "",
|
|
701
|
+
"type": "address"
|
|
702
|
+
}
|
|
703
|
+
],
|
|
704
|
+
"stateMutability": "view",
|
|
705
|
+
"type": "function"
|
|
706
|
+
},
|
|
848
707
|
{
|
|
849
708
|
"inputs": [
|
|
850
709
|
{
|
|
@@ -907,22 +766,12 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
907
766
|
"type": "address"
|
|
908
767
|
},
|
|
909
768
|
{
|
|
910
|
-
"internalType": "uint256
|
|
911
|
-
"name": "
|
|
912
|
-
"type": "uint256
|
|
913
|
-
},
|
|
914
|
-
{
|
|
915
|
-
"internalType": "uint256[]",
|
|
916
|
-
"name": "amounts",
|
|
917
|
-
"type": "uint256[]"
|
|
918
|
-
},
|
|
919
|
-
{
|
|
920
|
-
"internalType": "bytes",
|
|
921
|
-
"name": "data",
|
|
922
|
-
"type": "bytes"
|
|
769
|
+
"internalType": "uint256",
|
|
770
|
+
"name": "tokenId",
|
|
771
|
+
"type": "uint256"
|
|
923
772
|
}
|
|
924
773
|
],
|
|
925
|
-
"name": "
|
|
774
|
+
"name": "safeTransferFrom",
|
|
926
775
|
"outputs": [],
|
|
927
776
|
"stateMutability": "nonpayable",
|
|
928
777
|
"type": "function"
|
|
@@ -941,17 +790,12 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
941
790
|
},
|
|
942
791
|
{
|
|
943
792
|
"internalType": "uint256",
|
|
944
|
-
"name": "
|
|
945
|
-
"type": "uint256"
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
"internalType": "uint256",
|
|
949
|
-
"name": "amount",
|
|
793
|
+
"name": "tokenId",
|
|
950
794
|
"type": "uint256"
|
|
951
795
|
},
|
|
952
796
|
{
|
|
953
797
|
"internalType": "bytes",
|
|
954
|
-
"name": "
|
|
798
|
+
"name": "_data",
|
|
955
799
|
"type": "bytes"
|
|
956
800
|
}
|
|
957
801
|
],
|
|
@@ -1023,6 +867,48 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
1023
867
|
"stateMutability": "view",
|
|
1024
868
|
"type": "function"
|
|
1025
869
|
},
|
|
870
|
+
{
|
|
871
|
+
"inputs": [
|
|
872
|
+
{
|
|
873
|
+
"internalType": "uint256",
|
|
874
|
+
"name": "tokenId",
|
|
875
|
+
"type": "uint256"
|
|
876
|
+
}
|
|
877
|
+
],
|
|
878
|
+
"name": "tokenURI",
|
|
879
|
+
"outputs": [
|
|
880
|
+
{
|
|
881
|
+
"internalType": "string",
|
|
882
|
+
"name": "",
|
|
883
|
+
"type": "string"
|
|
884
|
+
}
|
|
885
|
+
],
|
|
886
|
+
"stateMutability": "view",
|
|
887
|
+
"type": "function"
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"inputs": [
|
|
891
|
+
{
|
|
892
|
+
"internalType": "address",
|
|
893
|
+
"name": "from",
|
|
894
|
+
"type": "address"
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"internalType": "address",
|
|
898
|
+
"name": "to",
|
|
899
|
+
"type": "address"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"internalType": "uint256",
|
|
903
|
+
"name": "tokenId",
|
|
904
|
+
"type": "uint256"
|
|
905
|
+
}
|
|
906
|
+
],
|
|
907
|
+
"name": "transferFrom",
|
|
908
|
+
"outputs": [],
|
|
909
|
+
"stateMutability": "nonpayable",
|
|
910
|
+
"type": "function"
|
|
911
|
+
},
|
|
1026
912
|
{
|
|
1027
913
|
"inputs": [
|
|
1028
914
|
{
|
|
@@ -1037,11 +923,6 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
1037
923
|
"name": "tokenURI",
|
|
1038
924
|
"type": "string"
|
|
1039
925
|
},
|
|
1040
|
-
{
|
|
1041
|
-
"internalType": "uint256",
|
|
1042
|
-
"name": "supply",
|
|
1043
|
-
"type": "uint256"
|
|
1044
|
-
},
|
|
1045
926
|
{
|
|
1046
927
|
"components": [
|
|
1047
928
|
{
|
|
@@ -1082,7 +963,7 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
1082
963
|
"type": "bytes[]"
|
|
1083
964
|
}
|
|
1084
965
|
],
|
|
1085
|
-
"internalType": "struct
|
|
966
|
+
"internalType": "struct LibERC721LazyMint.Mint721Data",
|
|
1086
967
|
"name": "data",
|
|
1087
968
|
"type": "tuple"
|
|
1088
969
|
},
|
|
@@ -1095,11 +976,6 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
1095
976
|
"internalType": "address",
|
|
1096
977
|
"name": "to",
|
|
1097
978
|
"type": "address"
|
|
1098
|
-
},
|
|
1099
|
-
{
|
|
1100
|
-
"internalType": "uint256",
|
|
1101
|
-
"name": "amount",
|
|
1102
|
-
"type": "uint256"
|
|
1103
979
|
}
|
|
1104
980
|
],
|
|
1105
981
|
"name": "transferFromOrMint",
|
|
@@ -1142,42 +1018,23 @@ export const ERC1155Rarible_jsonAbi = [
|
|
|
1142
1018
|
"outputs": [],
|
|
1143
1019
|
"stateMutability": "nonpayable",
|
|
1144
1020
|
"type": "function"
|
|
1145
|
-
},
|
|
1146
|
-
{
|
|
1147
|
-
"inputs": [
|
|
1148
|
-
{
|
|
1149
|
-
"internalType": "uint256",
|
|
1150
|
-
"name": "id",
|
|
1151
|
-
"type": "uint256"
|
|
1152
|
-
}
|
|
1153
|
-
],
|
|
1154
|
-
"name": "uri",
|
|
1155
|
-
"outputs": [
|
|
1156
|
-
{
|
|
1157
|
-
"internalType": "string",
|
|
1158
|
-
"name": "",
|
|
1159
|
-
"type": "string"
|
|
1160
|
-
}
|
|
1161
|
-
],
|
|
1162
|
-
"stateMutability": "view",
|
|
1163
|
-
"type": "function"
|
|
1164
1021
|
}
|
|
1165
1022
|
] as const satisfies Abi;
|
|
1166
1023
|
|
|
1167
1024
|
/**
|
|
1168
|
-
* Type-safe ABI for
|
|
1025
|
+
* Type-safe ABI for ERC721RaribleMinimal
|
|
1169
1026
|
*/
|
|
1170
|
-
export type
|
|
1027
|
+
export type ERC721RaribleMinimalAbi = typeof ERC721RaribleMinimalAbi;
|
|
1171
1028
|
|
|
1172
1029
|
/**
|
|
1173
|
-
* Contract instance type for
|
|
1030
|
+
* Contract instance type for ERC721RaribleMinimal
|
|
1174
1031
|
*/
|
|
1175
1032
|
// Use any for contract type to avoid complex viem type issues
|
|
1176
1033
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
1177
|
-
export type
|
|
1034
|
+
export type ERC721RaribleMinimalContract = any;
|
|
1178
1035
|
|
|
1179
1036
|
/**
|
|
1180
|
-
*
|
|
1037
|
+
* ERC721RaribleMinimal Contract Class
|
|
1181
1038
|
*
|
|
1182
1039
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1183
1040
|
*
|
|
@@ -1185,12 +1042,12 @@ export type ERC1155Rarible_jsonContract = any;
|
|
|
1185
1042
|
* ```typescript
|
|
1186
1043
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1187
1044
|
* import { mainnet } from 'viem/chains';
|
|
1188
|
-
* import {
|
|
1045
|
+
* import { ERC721RaribleMinimal } from 'ERC721RaribleMinimal';
|
|
1189
1046
|
*
|
|
1190
1047
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1191
1048
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1192
1049
|
*
|
|
1193
|
-
* const contract = new
|
|
1050
|
+
* const contract = new ERC721RaribleMinimal('0x...', { publicClient, walletClient });
|
|
1194
1051
|
*
|
|
1195
1052
|
* // Read functions
|
|
1196
1053
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -1208,8 +1065,8 @@ export type ERC1155Rarible_jsonContract = any;
|
|
|
1208
1065
|
* });
|
|
1209
1066
|
* ```
|
|
1210
1067
|
*/
|
|
1211
|
-
export class
|
|
1212
|
-
private contract:
|
|
1068
|
+
export class ERC721RaribleMinimal {
|
|
1069
|
+
private contract: ERC721RaribleMinimalContract;
|
|
1213
1070
|
private contractAddress: Address;
|
|
1214
1071
|
private publicClient: PublicClient;
|
|
1215
1072
|
|
|
@@ -1224,7 +1081,7 @@ export class ERC1155Rarible_json {
|
|
|
1224
1081
|
this.publicClient = clients.publicClient;
|
|
1225
1082
|
this.contract = getContract({
|
|
1226
1083
|
address,
|
|
1227
|
-
abi:
|
|
1084
|
+
abi: ERC721RaribleMinimalAbi,
|
|
1228
1085
|
client: {
|
|
1229
1086
|
public: clients.publicClient,
|
|
1230
1087
|
wallet: clients.walletClient,
|
|
@@ -1240,9 +1097,9 @@ export class ERC1155Rarible_json {
|
|
|
1240
1097
|
}
|
|
1241
1098
|
|
|
1242
1099
|
/**
|
|
1243
|
-
* Get the underlying viem contract instance
|
|
1100
|
+
* Get the underlying viem contract instance.
|
|
1244
1101
|
*/
|
|
1245
|
-
getContract():
|
|
1102
|
+
getContract(): ERC721RaribleMinimalContract {
|
|
1246
1103
|
return this.contract;
|
|
1247
1104
|
}
|
|
1248
1105
|
|
|
@@ -1250,16 +1107,8 @@ export class ERC1155Rarible_json {
|
|
|
1250
1107
|
* balanceOf
|
|
1251
1108
|
* view
|
|
1252
1109
|
*/
|
|
1253
|
-
async balanceOf(
|
|
1254
|
-
return this.contract.read.balanceOf([
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
/**
|
|
1258
|
-
* balanceOfBatch
|
|
1259
|
-
* view
|
|
1260
|
-
*/
|
|
1261
|
-
async balanceOfBatch(accounts: `0x${string}`[], ids: bigint[]): Promise<bigint[]> {
|
|
1262
|
-
return this.contract.read.balanceOfBatch([accounts, ids] as const) as Promise<bigint[]>;
|
|
1110
|
+
async balanceOf(owner: `0x${string}`): Promise<bigint> {
|
|
1111
|
+
return this.contract.read.balanceOf([owner] as const) as Promise<bigint>;
|
|
1263
1112
|
}
|
|
1264
1113
|
|
|
1265
1114
|
/**
|
|
@@ -1278,6 +1127,14 @@ export class ERC1155Rarible_json {
|
|
|
1278
1127
|
return this.contract.read.contractURI() as Promise<string>;
|
|
1279
1128
|
}
|
|
1280
1129
|
|
|
1130
|
+
/**
|
|
1131
|
+
* getApproved
|
|
1132
|
+
* view
|
|
1133
|
+
*/
|
|
1134
|
+
async getApproved(tokenId: bigint): Promise<`0x${string}`> {
|
|
1135
|
+
return this.contract.read.getApproved([tokenId] as const) as Promise<`0x${string}`>;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1281
1138
|
/**
|
|
1282
1139
|
* getCreators
|
|
1283
1140
|
* view
|
|
@@ -1298,8 +1155,8 @@ export class ERC1155Rarible_json {
|
|
|
1298
1155
|
* isApprovedForAll
|
|
1299
1156
|
* view
|
|
1300
1157
|
*/
|
|
1301
|
-
async isApprovedForAll(
|
|
1302
|
-
return this.contract.read.isApprovedForAll([
|
|
1158
|
+
async isApprovedForAll(owner: `0x${string}`, operator: `0x${string}`): Promise<boolean> {
|
|
1159
|
+
return this.contract.read.isApprovedForAll([owner, operator] as const) as Promise<boolean>;
|
|
1303
1160
|
}
|
|
1304
1161
|
|
|
1305
1162
|
/**
|
|
@@ -1326,6 +1183,14 @@ export class ERC1155Rarible_json {
|
|
|
1326
1183
|
return this.contract.read.owner() as Promise<`0x${string}`>;
|
|
1327
1184
|
}
|
|
1328
1185
|
|
|
1186
|
+
/**
|
|
1187
|
+
* ownerOf
|
|
1188
|
+
* view
|
|
1189
|
+
*/
|
|
1190
|
+
async ownerOf(tokenId: bigint): Promise<`0x${string}`> {
|
|
1191
|
+
return this.contract.read.ownerOf([tokenId] as const) as Promise<`0x${string}`>;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1329
1194
|
/**
|
|
1330
1195
|
* royaltyInfo
|
|
1331
1196
|
* view
|
|
@@ -1351,19 +1216,19 @@ export class ERC1155Rarible_json {
|
|
|
1351
1216
|
}
|
|
1352
1217
|
|
|
1353
1218
|
/**
|
|
1354
|
-
*
|
|
1219
|
+
* tokenURI
|
|
1355
1220
|
* view
|
|
1356
1221
|
*/
|
|
1357
|
-
async
|
|
1358
|
-
return this.contract.read.
|
|
1222
|
+
async tokenURI(tokenId: bigint): Promise<string> {
|
|
1223
|
+
return this.contract.read.tokenURI([tokenId] as const) as Promise<string>;
|
|
1359
1224
|
}
|
|
1360
1225
|
|
|
1361
1226
|
/**
|
|
1362
|
-
*
|
|
1227
|
+
* __ERC721RaribleUser_init
|
|
1363
1228
|
* nonpayable
|
|
1364
1229
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1365
1230
|
*/
|
|
1366
|
-
async
|
|
1231
|
+
async __ERC721RaribleUser_init(_name: string, _symbol: string, baseURI: string, contractURI: string, operators: `0x${string}`[], transferProxy: `0x${string}`, lazyTransferProxy: `0x${string}`, options?: {
|
|
1367
1232
|
accessList?: import('viem').AccessList;
|
|
1368
1233
|
authorizationList?: import('viem').AuthorizationList;
|
|
1369
1234
|
chain?: import('viem').Chain | null;
|
|
@@ -1378,15 +1243,15 @@ export class ERC1155Rarible_json {
|
|
|
1378
1243
|
if (!this.contract.write) {
|
|
1379
1244
|
throw new Error('Wallet client is required for write operations');
|
|
1380
1245
|
}
|
|
1381
|
-
return this.contract.write.
|
|
1246
|
+
return this.contract.write.__ERC721RaribleUser_init([_name, _symbol, baseURI, contractURI, operators, transferProxy, lazyTransferProxy] as const, options) as Promise<`0x${string}`>;
|
|
1382
1247
|
}
|
|
1383
1248
|
|
|
1384
1249
|
/**
|
|
1385
|
-
*
|
|
1250
|
+
* __ERC721Rarible_init
|
|
1386
1251
|
* nonpayable
|
|
1387
1252
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1388
1253
|
*/
|
|
1389
|
-
async
|
|
1254
|
+
async __ERC721Rarible_init(_name: string, _symbol: string, baseURI: string, contractURI: string, transferProxy: `0x${string}`, lazyTransferProxy: `0x${string}`, options?: {
|
|
1390
1255
|
accessList?: import('viem').AccessList;
|
|
1391
1256
|
authorizationList?: import('viem').AuthorizationList;
|
|
1392
1257
|
chain?: import('viem').Chain | null;
|
|
@@ -1401,7 +1266,7 @@ export class ERC1155Rarible_json {
|
|
|
1401
1266
|
if (!this.contract.write) {
|
|
1402
1267
|
throw new Error('Wallet client is required for write operations');
|
|
1403
1268
|
}
|
|
1404
|
-
return this.contract.write.
|
|
1269
|
+
return this.contract.write.__ERC721Rarible_init([_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy] as const, options) as Promise<`0x${string}`>;
|
|
1405
1270
|
}
|
|
1406
1271
|
|
|
1407
1272
|
/**
|
|
@@ -1451,11 +1316,11 @@ export class ERC1155Rarible_json {
|
|
|
1451
1316
|
}
|
|
1452
1317
|
|
|
1453
1318
|
/**
|
|
1454
|
-
*
|
|
1319
|
+
* approve
|
|
1455
1320
|
* nonpayable
|
|
1456
1321
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1457
1322
|
*/
|
|
1458
|
-
async
|
|
1323
|
+
async approve(to: `0x${string}`, tokenId: bigint, options?: {
|
|
1459
1324
|
accessList?: import('viem').AccessList;
|
|
1460
1325
|
authorizationList?: import('viem').AuthorizationList;
|
|
1461
1326
|
chain?: import('viem').Chain | null;
|
|
@@ -1470,15 +1335,15 @@ export class ERC1155Rarible_json {
|
|
|
1470
1335
|
if (!this.contract.write) {
|
|
1471
1336
|
throw new Error('Wallet client is required for write operations');
|
|
1472
1337
|
}
|
|
1473
|
-
return this.contract.write.
|
|
1338
|
+
return this.contract.write.approve([to, tokenId] as const, options) as Promise<`0x${string}`>;
|
|
1474
1339
|
}
|
|
1475
1340
|
|
|
1476
1341
|
/**
|
|
1477
|
-
*
|
|
1342
|
+
* burn
|
|
1478
1343
|
* nonpayable
|
|
1479
1344
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1480
1345
|
*/
|
|
1481
|
-
async
|
|
1346
|
+
async burn(tokenId: bigint, options?: {
|
|
1482
1347
|
accessList?: import('viem').AccessList;
|
|
1483
1348
|
authorizationList?: import('viem').AuthorizationList;
|
|
1484
1349
|
chain?: import('viem').Chain | null;
|
|
@@ -1493,7 +1358,7 @@ export class ERC1155Rarible_json {
|
|
|
1493
1358
|
if (!this.contract.write) {
|
|
1494
1359
|
throw new Error('Wallet client is required for write operations');
|
|
1495
1360
|
}
|
|
1496
|
-
return this.contract.write.
|
|
1361
|
+
return this.contract.write.burn([tokenId] as const, options) as Promise<`0x${string}`>;
|
|
1497
1362
|
}
|
|
1498
1363
|
|
|
1499
1364
|
/**
|
|
@@ -1501,7 +1366,7 @@ export class ERC1155Rarible_json {
|
|
|
1501
1366
|
* nonpayable
|
|
1502
1367
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1503
1368
|
*/
|
|
1504
|
-
async mintAndTransfer(data:
|
|
1369
|
+
async mintAndTransfer(data: LibERC721LazyMint_Mint721Data, to: `0x${string}`, options?: {
|
|
1505
1370
|
accessList?: import('viem').AccessList;
|
|
1506
1371
|
authorizationList?: import('viem').AuthorizationList;
|
|
1507
1372
|
chain?: import('viem').Chain | null;
|
|
@@ -1516,7 +1381,7 @@ export class ERC1155Rarible_json {
|
|
|
1516
1381
|
if (!this.contract.write) {
|
|
1517
1382
|
throw new Error('Wallet client is required for write operations');
|
|
1518
1383
|
}
|
|
1519
|
-
return this.contract.write.mintAndTransfer([data, to
|
|
1384
|
+
return this.contract.write.mintAndTransfer([data, to] as const, options) as Promise<`0x${string}`>;
|
|
1520
1385
|
}
|
|
1521
1386
|
|
|
1522
1387
|
/**
|
|
@@ -1565,12 +1430,7 @@ export class ERC1155Rarible_json {
|
|
|
1565
1430
|
return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
|
|
1566
1431
|
}
|
|
1567
1432
|
|
|
1568
|
-
|
|
1569
|
-
* safeBatchTransferFrom
|
|
1570
|
-
* nonpayable
|
|
1571
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1572
|
-
*/
|
|
1573
|
-
async safeBatchTransferFrom(from: `0x${string}`, to: `0x${string}`, ids: bigint[], amounts: bigint[], data: `0x${string}`, options?: {
|
|
1433
|
+
async safeTransferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
|
|
1574
1434
|
accessList?: import('viem').AccessList;
|
|
1575
1435
|
authorizationList?: import('viem').AuthorizationList;
|
|
1576
1436
|
chain?: import('viem').Chain | null;
|
|
@@ -1581,19 +1441,32 @@ export class ERC1155Rarible_json {
|
|
|
1581
1441
|
maxPriorityFeePerGas?: bigint;
|
|
1582
1442
|
nonce?: number;
|
|
1583
1443
|
value?: bigint;
|
|
1584
|
-
}): Promise<`0x${string}
|
|
1444
|
+
}): Promise<`0x${string}`>;
|
|
1445
|
+
async safeTransferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, _data: `0x${string}`, options?: {
|
|
1446
|
+
accessList?: import('viem').AccessList;
|
|
1447
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1448
|
+
chain?: import('viem').Chain | null;
|
|
1449
|
+
dataSuffix?: `0x${string}`;
|
|
1450
|
+
gas?: bigint;
|
|
1451
|
+
gasPrice?: bigint;
|
|
1452
|
+
maxFeePerGas?: bigint;
|
|
1453
|
+
maxPriorityFeePerGas?: bigint;
|
|
1454
|
+
nonce?: number;
|
|
1455
|
+
value?: bigint;
|
|
1456
|
+
}): Promise<`0x${string}`>;
|
|
1457
|
+
async safeTransferFrom(...args: any[]): Promise<`0x${string}`> {
|
|
1585
1458
|
if (!this.contract.write) {
|
|
1586
1459
|
throw new Error('Wallet client is required for write operations');
|
|
1587
1460
|
}
|
|
1588
|
-
return this.contract.write.
|
|
1461
|
+
return this.contract.write.safeTransferFrom(args as any) as Promise<`0x${string}`>;
|
|
1589
1462
|
}
|
|
1590
1463
|
|
|
1591
1464
|
/**
|
|
1592
|
-
*
|
|
1465
|
+
* setApprovalForAll
|
|
1593
1466
|
* nonpayable
|
|
1594
1467
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1595
1468
|
*/
|
|
1596
|
-
async
|
|
1469
|
+
async setApprovalForAll(operator: `0x${string}`, approved: boolean, options?: {
|
|
1597
1470
|
accessList?: import('viem').AccessList;
|
|
1598
1471
|
authorizationList?: import('viem').AuthorizationList;
|
|
1599
1472
|
chain?: import('viem').Chain | null;
|
|
@@ -1608,15 +1481,15 @@ export class ERC1155Rarible_json {
|
|
|
1608
1481
|
if (!this.contract.write) {
|
|
1609
1482
|
throw new Error('Wallet client is required for write operations');
|
|
1610
1483
|
}
|
|
1611
|
-
return this.contract.write.
|
|
1484
|
+
return this.contract.write.setApprovalForAll([operator, approved] as const, options) as Promise<`0x${string}`>;
|
|
1612
1485
|
}
|
|
1613
1486
|
|
|
1614
1487
|
/**
|
|
1615
|
-
*
|
|
1488
|
+
* setBaseURI
|
|
1616
1489
|
* nonpayable
|
|
1617
1490
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1618
1491
|
*/
|
|
1619
|
-
async
|
|
1492
|
+
async setBaseURI(newBaseURI: string, options?: {
|
|
1620
1493
|
accessList?: import('viem').AccessList;
|
|
1621
1494
|
authorizationList?: import('viem').AuthorizationList;
|
|
1622
1495
|
chain?: import('viem').Chain | null;
|
|
@@ -1631,15 +1504,15 @@ export class ERC1155Rarible_json {
|
|
|
1631
1504
|
if (!this.contract.write) {
|
|
1632
1505
|
throw new Error('Wallet client is required for write operations');
|
|
1633
1506
|
}
|
|
1634
|
-
return this.contract.write.
|
|
1507
|
+
return this.contract.write.setBaseURI([newBaseURI] as const, options) as Promise<`0x${string}`>;
|
|
1635
1508
|
}
|
|
1636
1509
|
|
|
1637
1510
|
/**
|
|
1638
|
-
*
|
|
1511
|
+
* transferFrom
|
|
1639
1512
|
* nonpayable
|
|
1640
1513
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1641
1514
|
*/
|
|
1642
|
-
async
|
|
1515
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
|
|
1643
1516
|
accessList?: import('viem').AccessList;
|
|
1644
1517
|
authorizationList?: import('viem').AuthorizationList;
|
|
1645
1518
|
chain?: import('viem').Chain | null;
|
|
@@ -1654,7 +1527,7 @@ export class ERC1155Rarible_json {
|
|
|
1654
1527
|
if (!this.contract.write) {
|
|
1655
1528
|
throw new Error('Wallet client is required for write operations');
|
|
1656
1529
|
}
|
|
1657
|
-
return this.contract.write.
|
|
1530
|
+
return this.contract.write.transferFrom([from, to, tokenId] as const, options) as Promise<`0x${string}`>;
|
|
1658
1531
|
}
|
|
1659
1532
|
|
|
1660
1533
|
/**
|
|
@@ -1662,7 +1535,7 @@ export class ERC1155Rarible_json {
|
|
|
1662
1535
|
* nonpayable
|
|
1663
1536
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1664
1537
|
*/
|
|
1665
|
-
async transferFromOrMint(data:
|
|
1538
|
+
async transferFromOrMint(data: LibERC721LazyMint_Mint721Data, from: `0x${string}`, to: `0x${string}`, options?: {
|
|
1666
1539
|
accessList?: import('viem').AccessList;
|
|
1667
1540
|
authorizationList?: import('viem').AuthorizationList;
|
|
1668
1541
|
chain?: import('viem').Chain | null;
|
|
@@ -1677,7 +1550,7 @@ export class ERC1155Rarible_json {
|
|
|
1677
1550
|
if (!this.contract.write) {
|
|
1678
1551
|
throw new Error('Wallet client is required for write operations');
|
|
1679
1552
|
}
|
|
1680
|
-
return this.contract.write.transferFromOrMint([data, from, to
|
|
1553
|
+
return this.contract.write.transferFromOrMint([data, from, to] as const, options) as Promise<`0x${string}`>;
|
|
1681
1554
|
}
|
|
1682
1555
|
|
|
1683
1556
|
/**
|
|
@@ -1743,11 +1616,11 @@ export class ERC1155Rarible_json {
|
|
|
1743
1616
|
}
|
|
1744
1617
|
return {
|
|
1745
1618
|
/**
|
|
1746
|
-
* Simulate
|
|
1619
|
+
* Simulate __ERC721RaribleUser_init
|
|
1747
1620
|
* Returns gas estimate and result without sending transaction
|
|
1748
1621
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1749
1622
|
*/
|
|
1750
|
-
async
|
|
1623
|
+
async __ERC721RaribleUser_init(_name: string, _symbol: string, baseURI: string, contractURI: string, operators: `0x${string}`[], transferProxy: `0x${string}`, lazyTransferProxy: `0x${string}`, options?: {
|
|
1751
1624
|
accessList?: import('viem').AccessList;
|
|
1752
1625
|
authorizationList?: import('viem').AuthorizationList;
|
|
1753
1626
|
chain?: import('viem').Chain | null;
|
|
@@ -1759,14 +1632,14 @@ export class ERC1155Rarible_json {
|
|
|
1759
1632
|
nonce?: number;
|
|
1760
1633
|
value?: bigint;
|
|
1761
1634
|
}): Promise<void> {
|
|
1762
|
-
return contract.simulate.
|
|
1635
|
+
return contract.simulate.__ERC721RaribleUser_init([_name, _symbol, baseURI, contractURI, operators, transferProxy, lazyTransferProxy] as const, options) as Promise<void>;
|
|
1763
1636
|
},
|
|
1764
1637
|
/**
|
|
1765
|
-
* Simulate
|
|
1638
|
+
* Simulate __ERC721Rarible_init
|
|
1766
1639
|
* Returns gas estimate and result without sending transaction
|
|
1767
1640
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1768
1641
|
*/
|
|
1769
|
-
async
|
|
1642
|
+
async __ERC721Rarible_init(_name: string, _symbol: string, baseURI: string, contractURI: string, transferProxy: `0x${string}`, lazyTransferProxy: `0x${string}`, options?: {
|
|
1770
1643
|
accessList?: import('viem').AccessList;
|
|
1771
1644
|
authorizationList?: import('viem').AuthorizationList;
|
|
1772
1645
|
chain?: import('viem').Chain | null;
|
|
@@ -1778,7 +1651,7 @@ export class ERC1155Rarible_json {
|
|
|
1778
1651
|
nonce?: number;
|
|
1779
1652
|
value?: bigint;
|
|
1780
1653
|
}): Promise<void> {
|
|
1781
|
-
return contract.simulate.
|
|
1654
|
+
return contract.simulate.__ERC721Rarible_init([_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy] as const, options) as Promise<void>;
|
|
1782
1655
|
},
|
|
1783
1656
|
/**
|
|
1784
1657
|
* Simulate addMinter
|
|
@@ -1819,11 +1692,11 @@ export class ERC1155Rarible_json {
|
|
|
1819
1692
|
return contract.simulate.addMinters([minters] as const, options) as Promise<void>;
|
|
1820
1693
|
},
|
|
1821
1694
|
/**
|
|
1822
|
-
* Simulate
|
|
1695
|
+
* Simulate approve
|
|
1823
1696
|
* Returns gas estimate and result without sending transaction
|
|
1824
1697
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1825
1698
|
*/
|
|
1826
|
-
async
|
|
1699
|
+
async approve(to: `0x${string}`, tokenId: bigint, options?: {
|
|
1827
1700
|
accessList?: import('viem').AccessList;
|
|
1828
1701
|
authorizationList?: import('viem').AuthorizationList;
|
|
1829
1702
|
chain?: import('viem').Chain | null;
|
|
@@ -1835,14 +1708,14 @@ export class ERC1155Rarible_json {
|
|
|
1835
1708
|
nonce?: number;
|
|
1836
1709
|
value?: bigint;
|
|
1837
1710
|
}): Promise<void> {
|
|
1838
|
-
return contract.simulate.
|
|
1711
|
+
return contract.simulate.approve([to, tokenId] as const, options) as Promise<void>;
|
|
1839
1712
|
},
|
|
1840
1713
|
/**
|
|
1841
|
-
* Simulate
|
|
1714
|
+
* Simulate burn
|
|
1842
1715
|
* Returns gas estimate and result without sending transaction
|
|
1843
1716
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1844
1717
|
*/
|
|
1845
|
-
async
|
|
1718
|
+
async burn(tokenId: bigint, options?: {
|
|
1846
1719
|
accessList?: import('viem').AccessList;
|
|
1847
1720
|
authorizationList?: import('viem').AuthorizationList;
|
|
1848
1721
|
chain?: import('viem').Chain | null;
|
|
@@ -1854,14 +1727,14 @@ export class ERC1155Rarible_json {
|
|
|
1854
1727
|
nonce?: number;
|
|
1855
1728
|
value?: bigint;
|
|
1856
1729
|
}): Promise<void> {
|
|
1857
|
-
return contract.simulate.
|
|
1730
|
+
return contract.simulate.burn([tokenId] as const, options) as Promise<void>;
|
|
1858
1731
|
},
|
|
1859
1732
|
/**
|
|
1860
1733
|
* Simulate mintAndTransfer
|
|
1861
1734
|
* Returns gas estimate and result without sending transaction
|
|
1862
1735
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1863
1736
|
*/
|
|
1864
|
-
async mintAndTransfer(data:
|
|
1737
|
+
async mintAndTransfer(data: LibERC721LazyMint_Mint721Data, to: `0x${string}`, options?: {
|
|
1865
1738
|
accessList?: import('viem').AccessList;
|
|
1866
1739
|
authorizationList?: import('viem').AuthorizationList;
|
|
1867
1740
|
chain?: import('viem').Chain | null;
|
|
@@ -1873,7 +1746,7 @@ export class ERC1155Rarible_json {
|
|
|
1873
1746
|
nonce?: number;
|
|
1874
1747
|
value?: bigint;
|
|
1875
1748
|
}): Promise<void> {
|
|
1876
|
-
return contract.simulate.mintAndTransfer([data, to
|
|
1749
|
+
return contract.simulate.mintAndTransfer([data, to] as const, options) as Promise<void>;
|
|
1877
1750
|
},
|
|
1878
1751
|
/**
|
|
1879
1752
|
* Simulate removeMinter
|
|
@@ -1914,30 +1787,20 @@ export class ERC1155Rarible_json {
|
|
|
1914
1787
|
return contract.simulate.renounceOwnership(options) as Promise<void>;
|
|
1915
1788
|
},
|
|
1916
1789
|
/**
|
|
1917
|
-
* Simulate
|
|
1790
|
+
* Simulate safeTransferFrom
|
|
1918
1791
|
* Returns gas estimate and result without sending transaction
|
|
1792
|
+
* Supports multiple overloads: (address, address, uint256), (address, address, uint256, bytes)
|
|
1919
1793
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1920
1794
|
*/
|
|
1921
|
-
async
|
|
1922
|
-
|
|
1923
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1924
|
-
chain?: import('viem').Chain | null;
|
|
1925
|
-
dataSuffix?: `0x${string}`;
|
|
1926
|
-
gas?: bigint;
|
|
1927
|
-
gasPrice?: bigint;
|
|
1928
|
-
maxFeePerGas?: bigint;
|
|
1929
|
-
maxPriorityFeePerGas?: bigint;
|
|
1930
|
-
nonce?: number;
|
|
1931
|
-
value?: bigint;
|
|
1932
|
-
}): Promise<void> {
|
|
1933
|
-
return contract.simulate.safeBatchTransferFrom([from, to, ids, amounts, data] as const, options) as Promise<void>;
|
|
1795
|
+
async safeTransferFrom(...args: any[]): Promise<any> {
|
|
1796
|
+
return contract.simulate.safeTransferFrom(args as any) as Promise<any>;
|
|
1934
1797
|
},
|
|
1935
1798
|
/**
|
|
1936
|
-
* Simulate
|
|
1799
|
+
* Simulate setApprovalForAll
|
|
1937
1800
|
* Returns gas estimate and result without sending transaction
|
|
1938
1801
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1939
1802
|
*/
|
|
1940
|
-
async
|
|
1803
|
+
async setApprovalForAll(operator: `0x${string}`, approved: boolean, options?: {
|
|
1941
1804
|
accessList?: import('viem').AccessList;
|
|
1942
1805
|
authorizationList?: import('viem').AuthorizationList;
|
|
1943
1806
|
chain?: import('viem').Chain | null;
|
|
@@ -1949,14 +1812,14 @@ export class ERC1155Rarible_json {
|
|
|
1949
1812
|
nonce?: number;
|
|
1950
1813
|
value?: bigint;
|
|
1951
1814
|
}): Promise<void> {
|
|
1952
|
-
return contract.simulate.
|
|
1815
|
+
return contract.simulate.setApprovalForAll([operator, approved] as const, options) as Promise<void>;
|
|
1953
1816
|
},
|
|
1954
1817
|
/**
|
|
1955
|
-
* Simulate
|
|
1818
|
+
* Simulate setBaseURI
|
|
1956
1819
|
* Returns gas estimate and result without sending transaction
|
|
1957
1820
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1958
1821
|
*/
|
|
1959
|
-
async
|
|
1822
|
+
async setBaseURI(newBaseURI: string, options?: {
|
|
1960
1823
|
accessList?: import('viem').AccessList;
|
|
1961
1824
|
authorizationList?: import('viem').AuthorizationList;
|
|
1962
1825
|
chain?: import('viem').Chain | null;
|
|
@@ -1968,14 +1831,14 @@ export class ERC1155Rarible_json {
|
|
|
1968
1831
|
nonce?: number;
|
|
1969
1832
|
value?: bigint;
|
|
1970
1833
|
}): Promise<void> {
|
|
1971
|
-
return contract.simulate.
|
|
1834
|
+
return contract.simulate.setBaseURI([newBaseURI] as const, options) as Promise<void>;
|
|
1972
1835
|
},
|
|
1973
1836
|
/**
|
|
1974
|
-
* Simulate
|
|
1837
|
+
* Simulate transferFrom
|
|
1975
1838
|
* Returns gas estimate and result without sending transaction
|
|
1976
1839
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1977
1840
|
*/
|
|
1978
|
-
async
|
|
1841
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
|
|
1979
1842
|
accessList?: import('viem').AccessList;
|
|
1980
1843
|
authorizationList?: import('viem').AuthorizationList;
|
|
1981
1844
|
chain?: import('viem').Chain | null;
|
|
@@ -1987,14 +1850,14 @@ export class ERC1155Rarible_json {
|
|
|
1987
1850
|
nonce?: number;
|
|
1988
1851
|
value?: bigint;
|
|
1989
1852
|
}): Promise<void> {
|
|
1990
|
-
return contract.simulate.
|
|
1853
|
+
return contract.simulate.transferFrom([from, to, tokenId] as const, options) as Promise<void>;
|
|
1991
1854
|
},
|
|
1992
1855
|
/**
|
|
1993
1856
|
* Simulate transferFromOrMint
|
|
1994
1857
|
* Returns gas estimate and result without sending transaction
|
|
1995
1858
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1996
1859
|
*/
|
|
1997
|
-
async transferFromOrMint(data:
|
|
1860
|
+
async transferFromOrMint(data: LibERC721LazyMint_Mint721Data, from: `0x${string}`, to: `0x${string}`, options?: {
|
|
1998
1861
|
accessList?: import('viem').AccessList;
|
|
1999
1862
|
authorizationList?: import('viem').AuthorizationList;
|
|
2000
1863
|
chain?: import('viem').Chain | null;
|
|
@@ -2006,7 +1869,7 @@ export class ERC1155Rarible_json {
|
|
|
2006
1869
|
nonce?: number;
|
|
2007
1870
|
value?: bigint;
|
|
2008
1871
|
}): Promise<void> {
|
|
2009
|
-
return contract.simulate.transferFromOrMint([data, from, to
|
|
1872
|
+
return contract.simulate.transferFromOrMint([data, from, to] as const, options) as Promise<void>;
|
|
2010
1873
|
},
|
|
2011
1874
|
/**
|
|
2012
1875
|
* Simulate transferOwnership
|
|
@@ -2064,36 +1927,17 @@ export class ERC1155Rarible_json {
|
|
|
2064
1927
|
get watch() {
|
|
2065
1928
|
return {
|
|
2066
1929
|
/**
|
|
2067
|
-
* Watch
|
|
2068
|
-
* @param callback Function to call when event is emitted
|
|
2069
|
-
* @param filter Optional filter for indexed parameters
|
|
2070
|
-
* @returns Unwatch function to stop listening
|
|
2071
|
-
*/
|
|
2072
|
-
ApprovalForAll: (callback: (event: { account: `0x${string}`; operator: `0x${string}`; approved: boolean }) => void, filter?: { account: `0x${string}`; operator: `0x${string}` }) => {
|
|
2073
|
-
return this.publicClient.watchContractEvent({
|
|
2074
|
-
address: this.contractAddress,
|
|
2075
|
-
abi: ERC1155Rarible_jsonAbi,
|
|
2076
|
-
eventName: 'ApprovalForAll',
|
|
2077
|
-
args: filter,
|
|
2078
|
-
onLogs: (logs: any[]) => {
|
|
2079
|
-
logs.forEach((log: any) => {
|
|
2080
|
-
callback(log.args as any);
|
|
2081
|
-
});
|
|
2082
|
-
},
|
|
2083
|
-
}) as () => void;
|
|
2084
|
-
},
|
|
2085
|
-
/**
|
|
2086
|
-
* Watch BaseUriChanged events
|
|
1930
|
+
* Watch Approval events
|
|
2087
1931
|
* @param callback Function to call when event is emitted
|
|
2088
1932
|
* @param filter Optional filter for indexed parameters
|
|
2089
1933
|
* @returns Unwatch function to stop listening
|
|
2090
1934
|
*/
|
|
2091
|
-
|
|
1935
|
+
Approval: (callback: (event: { owner: `0x${string}`; approved: `0x${string}`; tokenId: bigint }) => void, filter?: { owner?: `0x${string}` | `0x${string}`[] | null; approved?: `0x${string}` | `0x${string}`[] | null; tokenId?: bigint | bigint[] | null }) => {
|
|
2092
1936
|
return this.publicClient.watchContractEvent({
|
|
2093
1937
|
address: this.contractAddress,
|
|
2094
|
-
abi:
|
|
2095
|
-
eventName: '
|
|
2096
|
-
|
|
1938
|
+
abi: ERC721RaribleMinimalAbi,
|
|
1939
|
+
eventName: 'Approval',
|
|
1940
|
+
args: filter as any,
|
|
2097
1941
|
onLogs: (logs: any[]) => {
|
|
2098
1942
|
logs.forEach((log: any) => {
|
|
2099
1943
|
callback(log.args as any);
|
|
@@ -2102,17 +1946,17 @@ export class ERC1155Rarible_json {
|
|
|
2102
1946
|
}) as () => void;
|
|
2103
1947
|
},
|
|
2104
1948
|
/**
|
|
2105
|
-
* Watch
|
|
1949
|
+
* Watch ApprovalForAll events
|
|
2106
1950
|
* @param callback Function to call when event is emitted
|
|
2107
1951
|
* @param filter Optional filter for indexed parameters
|
|
2108
1952
|
* @returns Unwatch function to stop listening
|
|
2109
1953
|
*/
|
|
2110
|
-
|
|
1954
|
+
ApprovalForAll: (callback: (event: { owner: `0x${string}`; operator: `0x${string}`; approved: boolean }) => void, filter?: { owner?: `0x${string}` | `0x${string}`[] | null; operator?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
2111
1955
|
return this.publicClient.watchContractEvent({
|
|
2112
1956
|
address: this.contractAddress,
|
|
2113
|
-
abi:
|
|
2114
|
-
eventName: '
|
|
2115
|
-
args: filter,
|
|
1957
|
+
abi: ERC721RaribleMinimalAbi,
|
|
1958
|
+
eventName: 'ApprovalForAll',
|
|
1959
|
+
args: filter as any,
|
|
2116
1960
|
onLogs: (logs: any[]) => {
|
|
2117
1961
|
logs.forEach((log: any) => {
|
|
2118
1962
|
callback(log.args as any);
|
|
@@ -2121,17 +1965,17 @@ export class ERC1155Rarible_json {
|
|
|
2121
1965
|
}) as () => void;
|
|
2122
1966
|
},
|
|
2123
1967
|
/**
|
|
2124
|
-
* Watch
|
|
1968
|
+
* Watch BaseUriChanged events
|
|
2125
1969
|
* @param callback Function to call when event is emitted
|
|
2126
1970
|
* @param filter Optional filter for indexed parameters
|
|
2127
1971
|
* @returns Unwatch function to stop listening
|
|
2128
1972
|
*/
|
|
2129
|
-
|
|
1973
|
+
BaseUriChanged: (callback: (event: { newBaseURI: string }) => void) => {
|
|
2130
1974
|
return this.publicClient.watchContractEvent({
|
|
2131
1975
|
address: this.contractAddress,
|
|
2132
|
-
abi:
|
|
2133
|
-
eventName: '
|
|
2134
|
-
|
|
1976
|
+
abi: ERC721RaribleMinimalAbi,
|
|
1977
|
+
eventName: 'BaseUriChanged',
|
|
1978
|
+
|
|
2135
1979
|
onLogs: (logs: any[]) => {
|
|
2136
1980
|
logs.forEach((log: any) => {
|
|
2137
1981
|
callback(log.args as any);
|
|
@@ -2140,16 +1984,16 @@ export class ERC1155Rarible_json {
|
|
|
2140
1984
|
}) as () => void;
|
|
2141
1985
|
},
|
|
2142
1986
|
/**
|
|
2143
|
-
* Watch
|
|
1987
|
+
* Watch CreateERC721Rarible events
|
|
2144
1988
|
* @param callback Function to call when event is emitted
|
|
2145
1989
|
* @param filter Optional filter for indexed parameters
|
|
2146
1990
|
* @returns Unwatch function to stop listening
|
|
2147
1991
|
*/
|
|
2148
|
-
|
|
1992
|
+
CreateERC721Rarible: (callback: (event: { owner: `0x${string}`; name: string; symbol: string }) => void) => {
|
|
2149
1993
|
return this.publicClient.watchContractEvent({
|
|
2150
1994
|
address: this.contractAddress,
|
|
2151
|
-
abi:
|
|
2152
|
-
eventName: '
|
|
1995
|
+
abi: ERC721RaribleMinimalAbi,
|
|
1996
|
+
eventName: 'CreateERC721Rarible',
|
|
2153
1997
|
|
|
2154
1998
|
onLogs: (logs: any[]) => {
|
|
2155
1999
|
logs.forEach((log: any) => {
|
|
@@ -2159,16 +2003,16 @@ export class ERC1155Rarible_json {
|
|
|
2159
2003
|
}) as () => void;
|
|
2160
2004
|
},
|
|
2161
2005
|
/**
|
|
2162
|
-
* Watch
|
|
2006
|
+
* Watch CreateERC721RaribleUser events
|
|
2163
2007
|
* @param callback Function to call when event is emitted
|
|
2164
2008
|
* @param filter Optional filter for indexed parameters
|
|
2165
2009
|
* @returns Unwatch function to stop listening
|
|
2166
2010
|
*/
|
|
2167
|
-
|
|
2011
|
+
CreateERC721RaribleUser: (callback: (event: { owner: `0x${string}`; name: string; symbol: string }) => void) => {
|
|
2168
2012
|
return this.publicClient.watchContractEvent({
|
|
2169
2013
|
address: this.contractAddress,
|
|
2170
|
-
abi:
|
|
2171
|
-
eventName: '
|
|
2014
|
+
abi: ERC721RaribleMinimalAbi,
|
|
2015
|
+
eventName: 'CreateERC721RaribleUser',
|
|
2172
2016
|
|
|
2173
2017
|
onLogs: (logs: any[]) => {
|
|
2174
2018
|
logs.forEach((log: any) => {
|
|
@@ -2186,7 +2030,7 @@ export class ERC1155Rarible_json {
|
|
|
2186
2030
|
Creators: (callback: (event: { tokenId: bigint; creators: LibPart_Part[] }) => void) => {
|
|
2187
2031
|
return this.publicClient.watchContractEvent({
|
|
2188
2032
|
address: this.contractAddress,
|
|
2189
|
-
abi:
|
|
2033
|
+
abi: ERC721RaribleMinimalAbi,
|
|
2190
2034
|
eventName: 'Creators',
|
|
2191
2035
|
|
|
2192
2036
|
onLogs: (logs: any[]) => {
|
|
@@ -2202,12 +2046,12 @@ export class ERC1155Rarible_json {
|
|
|
2202
2046
|
* @param filter Optional filter for indexed parameters
|
|
2203
2047
|
* @returns Unwatch function to stop listening
|
|
2204
2048
|
*/
|
|
2205
|
-
DefaultApproval: (callback: (event: { operator: `0x${string}`; hasApproval: boolean }) => void, filter?: { operator
|
|
2049
|
+
DefaultApproval: (callback: (event: { operator: `0x${string}`; hasApproval: boolean }) => void, filter?: { operator?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
2206
2050
|
return this.publicClient.watchContractEvent({
|
|
2207
2051
|
address: this.contractAddress,
|
|
2208
|
-
abi:
|
|
2052
|
+
abi: ERC721RaribleMinimalAbi,
|
|
2209
2053
|
eventName: 'DefaultApproval',
|
|
2210
|
-
args: filter,
|
|
2054
|
+
args: filter as any,
|
|
2211
2055
|
onLogs: (logs: any[]) => {
|
|
2212
2056
|
logs.forEach((log: any) => {
|
|
2213
2057
|
callback(log.args as any);
|
|
@@ -2221,12 +2065,12 @@ export class ERC1155Rarible_json {
|
|
|
2221
2065
|
* @param filter Optional filter for indexed parameters
|
|
2222
2066
|
* @returns Unwatch function to stop listening
|
|
2223
2067
|
*/
|
|
2224
|
-
MinterStatusChanged: (callback: (event: { minter: `0x${string}`; status: boolean }) => void, filter?: { minter
|
|
2068
|
+
MinterStatusChanged: (callback: (event: { minter: `0x${string}`; status: boolean }) => void, filter?: { minter?: `0x${string}` | `0x${string}`[] | null; status?: boolean | boolean[] | null }) => {
|
|
2225
2069
|
return this.publicClient.watchContractEvent({
|
|
2226
2070
|
address: this.contractAddress,
|
|
2227
|
-
abi:
|
|
2071
|
+
abi: ERC721RaribleMinimalAbi,
|
|
2228
2072
|
eventName: 'MinterStatusChanged',
|
|
2229
|
-
args: filter,
|
|
2073
|
+
args: filter as any,
|
|
2230
2074
|
onLogs: (logs: any[]) => {
|
|
2231
2075
|
logs.forEach((log: any) => {
|
|
2232
2076
|
callback(log.args as any);
|
|
@@ -2240,12 +2084,12 @@ export class ERC1155Rarible_json {
|
|
|
2240
2084
|
* @param filter Optional filter for indexed parameters
|
|
2241
2085
|
* @returns Unwatch function to stop listening
|
|
2242
2086
|
*/
|
|
2243
|
-
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner
|
|
2087
|
+
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner?: `0x${string}` | `0x${string}`[] | null; newOwner?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
2244
2088
|
return this.publicClient.watchContractEvent({
|
|
2245
2089
|
address: this.contractAddress,
|
|
2246
|
-
abi:
|
|
2090
|
+
abi: ERC721RaribleMinimalAbi,
|
|
2247
2091
|
eventName: 'OwnershipTransferred',
|
|
2248
|
-
args: filter,
|
|
2092
|
+
args: filter as any,
|
|
2249
2093
|
onLogs: (logs: any[]) => {
|
|
2250
2094
|
logs.forEach((log: any) => {
|
|
2251
2095
|
callback(log.args as any);
|
|
@@ -2262,7 +2106,7 @@ export class ERC1155Rarible_json {
|
|
|
2262
2106
|
RoyaltiesSet: (callback: (event: { tokenId: bigint; royalties: LibPart_Part[] }) => void) => {
|
|
2263
2107
|
return this.publicClient.watchContractEvent({
|
|
2264
2108
|
address: this.contractAddress,
|
|
2265
|
-
abi:
|
|
2109
|
+
abi: ERC721RaribleMinimalAbi,
|
|
2266
2110
|
eventName: 'RoyaltiesSet',
|
|
2267
2111
|
|
|
2268
2112
|
onLogs: (logs: any[]) => {
|
|
@@ -2273,74 +2117,17 @@ export class ERC1155Rarible_json {
|
|
|
2273
2117
|
}) as () => void;
|
|
2274
2118
|
},
|
|
2275
2119
|
/**
|
|
2276
|
-
* Watch
|
|
2277
|
-
* @param callback Function to call when event is emitted
|
|
2278
|
-
* @param filter Optional filter for indexed parameters
|
|
2279
|
-
* @returns Unwatch function to stop listening
|
|
2280
|
-
*/
|
|
2281
|
-
Supply: (callback: (event: { tokenId: bigint; value: bigint }) => void) => {
|
|
2282
|
-
return this.publicClient.watchContractEvent({
|
|
2283
|
-
address: this.contractAddress,
|
|
2284
|
-
abi: ERC1155Rarible_jsonAbi,
|
|
2285
|
-
eventName: 'Supply',
|
|
2286
|
-
|
|
2287
|
-
onLogs: (logs: any[]) => {
|
|
2288
|
-
logs.forEach((log: any) => {
|
|
2289
|
-
callback(log.args as any);
|
|
2290
|
-
});
|
|
2291
|
-
},
|
|
2292
|
-
}) as () => void;
|
|
2293
|
-
},
|
|
2294
|
-
/**
|
|
2295
|
-
* Watch TransferBatch events
|
|
2296
|
-
* @param callback Function to call when event is emitted
|
|
2297
|
-
* @param filter Optional filter for indexed parameters
|
|
2298
|
-
* @returns Unwatch function to stop listening
|
|
2299
|
-
*/
|
|
2300
|
-
TransferBatch: (callback: (event: { operator: `0x${string}`; from: `0x${string}`; to: `0x${string}`; ids: bigint[]; values: bigint[] }) => void, filter?: { operator: `0x${string}`; from: `0x${string}`; to: `0x${string}` }) => {
|
|
2301
|
-
return this.publicClient.watchContractEvent({
|
|
2302
|
-
address: this.contractAddress,
|
|
2303
|
-
abi: ERC1155Rarible_jsonAbi,
|
|
2304
|
-
eventName: 'TransferBatch',
|
|
2305
|
-
args: filter,
|
|
2306
|
-
onLogs: (logs: any[]) => {
|
|
2307
|
-
logs.forEach((log: any) => {
|
|
2308
|
-
callback(log.args as any);
|
|
2309
|
-
});
|
|
2310
|
-
},
|
|
2311
|
-
}) as () => void;
|
|
2312
|
-
},
|
|
2313
|
-
/**
|
|
2314
|
-
* Watch TransferSingle events
|
|
2315
|
-
* @param callback Function to call when event is emitted
|
|
2316
|
-
* @param filter Optional filter for indexed parameters
|
|
2317
|
-
* @returns Unwatch function to stop listening
|
|
2318
|
-
*/
|
|
2319
|
-
TransferSingle: (callback: (event: { operator: `0x${string}`; from: `0x${string}`; to: `0x${string}`; id: bigint; value: bigint }) => void, filter?: { operator: `0x${string}`; from: `0x${string}`; to: `0x${string}` }) => {
|
|
2320
|
-
return this.publicClient.watchContractEvent({
|
|
2321
|
-
address: this.contractAddress,
|
|
2322
|
-
abi: ERC1155Rarible_jsonAbi,
|
|
2323
|
-
eventName: 'TransferSingle',
|
|
2324
|
-
args: filter,
|
|
2325
|
-
onLogs: (logs: any[]) => {
|
|
2326
|
-
logs.forEach((log: any) => {
|
|
2327
|
-
callback(log.args as any);
|
|
2328
|
-
});
|
|
2329
|
-
},
|
|
2330
|
-
}) as () => void;
|
|
2331
|
-
},
|
|
2332
|
-
/**
|
|
2333
|
-
* Watch URI events
|
|
2120
|
+
* Watch Transfer events
|
|
2334
2121
|
* @param callback Function to call when event is emitted
|
|
2335
2122
|
* @param filter Optional filter for indexed parameters
|
|
2336
2123
|
* @returns Unwatch function to stop listening
|
|
2337
2124
|
*/
|
|
2338
|
-
|
|
2125
|
+
Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; tokenId: bigint }) => void, filter?: { from?: `0x${string}` | `0x${string}`[] | null; to?: `0x${string}` | `0x${string}`[] | null; tokenId?: bigint | bigint[] | null }) => {
|
|
2339
2126
|
return this.publicClient.watchContractEvent({
|
|
2340
2127
|
address: this.contractAddress,
|
|
2341
|
-
abi:
|
|
2342
|
-
eventName: '
|
|
2343
|
-
args: filter,
|
|
2128
|
+
abi: ERC721RaribleMinimalAbi,
|
|
2129
|
+
eventName: 'Transfer',
|
|
2130
|
+
args: filter as any,
|
|
2344
2131
|
onLogs: (logs: any[]) => {
|
|
2345
2132
|
logs.forEach((log: any) => {
|
|
2346
2133
|
callback(log.args as any);
|