@gitmyabi/rari 1.0.1 → 1.0.2

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.
@@ -1,44 +1,81 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RaribleToken_json = exports.RaribleToken_jsonAbi = void 0;
3
+ exports.ERC1155Rarible_json = exports.ERC1155Rarible_jsonAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * RaribleToken_json ABI
6
+ * ERC1155Rarible_json ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.RaribleToken_jsonAbi = [
10
+ exports.ERC1155Rarible_jsonAbi = [
11
11
  {
12
+ "anonymous": false,
12
13
  "inputs": [
13
14
  {
14
- "internalType": "string",
15
- "name": "_name",
16
- "type": "string"
15
+ "indexed": true,
16
+ "internalType": "address",
17
+ "name": "account",
18
+ "type": "address"
17
19
  },
18
20
  {
21
+ "indexed": true,
22
+ "internalType": "address",
23
+ "name": "operator",
24
+ "type": "address"
25
+ },
26
+ {
27
+ "indexed": false,
28
+ "internalType": "bool",
29
+ "name": "approved",
30
+ "type": "bool"
31
+ }
32
+ ],
33
+ "name": "ApprovalForAll",
34
+ "type": "event"
35
+ },
36
+ {
37
+ "anonymous": false,
38
+ "inputs": [
39
+ {
40
+ "indexed": false,
19
41
  "internalType": "string",
20
- "name": "_symbol",
42
+ "name": "newBaseURI",
21
43
  "type": "string"
44
+ }
45
+ ],
46
+ "name": "BaseUriChanged",
47
+ "type": "event"
48
+ },
49
+ {
50
+ "anonymous": false,
51
+ "inputs": [
52
+ {
53
+ "indexed": true,
54
+ "internalType": "address",
55
+ "name": "operator",
56
+ "type": "address"
22
57
  },
23
58
  {
59
+ "indexed": true,
24
60
  "internalType": "address",
25
- "name": "signer",
61
+ "name": "account",
26
62
  "type": "address"
27
63
  },
28
64
  {
29
- "internalType": "string",
30
- "name": "contractURI",
31
- "type": "string"
65
+ "indexed": false,
66
+ "internalType": "uint256",
67
+ "name": "id",
68
+ "type": "uint256"
32
69
  },
33
70
  {
34
- "internalType": "string",
35
- "name": "tokenURIPrefix",
36
- "type": "string"
71
+ "indexed": false,
72
+ "internalType": "uint256",
73
+ "name": "amount",
74
+ "type": "uint256"
37
75
  }
38
76
  ],
39
- "payable": false,
40
- "stateMutability": "nonpayable",
41
- "type": "constructor"
77
+ "name": "BurnLazy",
78
+ "type": "event"
42
79
  },
43
80
  {
44
81
  "anonymous": false,
@@ -46,42 +83,79 @@ exports.RaribleToken_jsonAbi = [
46
83
  {
47
84
  "indexed": true,
48
85
  "internalType": "address",
49
- "name": "_owner",
86
+ "name": "operator",
50
87
  "type": "address"
51
88
  },
52
89
  {
53
90
  "indexed": true,
54
91
  "internalType": "address",
55
- "name": "_operator",
92
+ "name": "account",
56
93
  "type": "address"
57
94
  },
58
95
  {
59
96
  "indexed": false,
60
- "internalType": "bool",
61
- "name": "_approved",
62
- "type": "bool"
97
+ "internalType": "uint256[]",
98
+ "name": "ids",
99
+ "type": "uint256[]"
100
+ },
101
+ {
102
+ "indexed": false,
103
+ "internalType": "uint256[]",
104
+ "name": "amounts",
105
+ "type": "uint256[]"
63
106
  }
64
107
  ],
65
- "name": "ApprovalForAll",
108
+ "name": "BurnLazyBatch",
66
109
  "type": "event"
67
110
  },
68
111
  {
69
112
  "anonymous": false,
70
113
  "inputs": [
71
114
  {
72
- "indexed": true,
115
+ "indexed": false,
73
116
  "internalType": "address",
74
- "name": "previousOwner",
117
+ "name": "owner",
75
118
  "type": "address"
76
119
  },
77
120
  {
78
- "indexed": true,
121
+ "indexed": false,
122
+ "internalType": "string",
123
+ "name": "name",
124
+ "type": "string"
125
+ },
126
+ {
127
+ "indexed": false,
128
+ "internalType": "string",
129
+ "name": "symbol",
130
+ "type": "string"
131
+ }
132
+ ],
133
+ "name": "CreateERC1155Rarible",
134
+ "type": "event"
135
+ },
136
+ {
137
+ "anonymous": false,
138
+ "inputs": [
139
+ {
140
+ "indexed": false,
79
141
  "internalType": "address",
80
- "name": "newOwner",
142
+ "name": "owner",
81
143
  "type": "address"
144
+ },
145
+ {
146
+ "indexed": false,
147
+ "internalType": "string",
148
+ "name": "name",
149
+ "type": "string"
150
+ },
151
+ {
152
+ "indexed": false,
153
+ "internalType": "string",
154
+ "name": "symbol",
155
+ "type": "string"
82
156
  }
83
157
  ],
84
- "name": "OwnershipTransferred",
158
+ "name": "CreateERC1155RaribleUser",
85
159
  "type": "event"
86
160
  },
87
161
  {
@@ -94,19 +168,44 @@ exports.RaribleToken_jsonAbi = [
94
168
  "type": "uint256"
95
169
  },
96
170
  {
171
+ "components": [
172
+ {
173
+ "internalType": "address payable",
174
+ "name": "account",
175
+ "type": "address"
176
+ },
177
+ {
178
+ "internalType": "uint96",
179
+ "name": "value",
180
+ "type": "uint96"
181
+ }
182
+ ],
97
183
  "indexed": false,
98
- "internalType": "address[]",
99
- "name": "recipients",
100
- "type": "address[]"
184
+ "internalType": "struct LibPart.Part[]",
185
+ "name": "creators",
186
+ "type": "tuple[]"
187
+ }
188
+ ],
189
+ "name": "Creators",
190
+ "type": "event"
191
+ },
192
+ {
193
+ "anonymous": false,
194
+ "inputs": [
195
+ {
196
+ "indexed": true,
197
+ "internalType": "address",
198
+ "name": "operator",
199
+ "type": "address"
101
200
  },
102
201
  {
103
202
  "indexed": false,
104
- "internalType": "uint256[]",
105
- "name": "bps",
106
- "type": "uint256[]"
203
+ "internalType": "bool",
204
+ "name": "hasApproval",
205
+ "type": "bool"
107
206
  }
108
207
  ],
109
- "name": "SecondarySaleFees",
208
+ "name": "DefaultApproval",
110
209
  "type": "event"
111
210
  },
112
211
  {
@@ -115,11 +214,17 @@ exports.RaribleToken_jsonAbi = [
115
214
  {
116
215
  "indexed": true,
117
216
  "internalType": "address",
118
- "name": "account",
217
+ "name": "minter",
119
218
  "type": "address"
219
+ },
220
+ {
221
+ "indexed": true,
222
+ "internalType": "bool",
223
+ "name": "status",
224
+ "type": "bool"
120
225
  }
121
226
  ],
122
- "name": "SignerAdded",
227
+ "name": "MinterStatusChanged",
123
228
  "type": "event"
124
229
  },
125
230
  {
@@ -128,11 +233,67 @@ exports.RaribleToken_jsonAbi = [
128
233
  {
129
234
  "indexed": true,
130
235
  "internalType": "address",
131
- "name": "account",
236
+ "name": "previousOwner",
237
+ "type": "address"
238
+ },
239
+ {
240
+ "indexed": true,
241
+ "internalType": "address",
242
+ "name": "newOwner",
132
243
  "type": "address"
133
244
  }
134
245
  ],
135
- "name": "SignerRemoved",
246
+ "name": "OwnershipTransferred",
247
+ "type": "event"
248
+ },
249
+ {
250
+ "anonymous": false,
251
+ "inputs": [
252
+ {
253
+ "indexed": false,
254
+ "internalType": "uint256",
255
+ "name": "tokenId",
256
+ "type": "uint256"
257
+ },
258
+ {
259
+ "components": [
260
+ {
261
+ "internalType": "address payable",
262
+ "name": "account",
263
+ "type": "address"
264
+ },
265
+ {
266
+ "internalType": "uint96",
267
+ "name": "value",
268
+ "type": "uint96"
269
+ }
270
+ ],
271
+ "indexed": false,
272
+ "internalType": "struct LibPart.Part[]",
273
+ "name": "royalties",
274
+ "type": "tuple[]"
275
+ }
276
+ ],
277
+ "name": "RoyaltiesSet",
278
+ "type": "event"
279
+ },
280
+ {
281
+ "anonymous": false,
282
+ "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",
136
297
  "type": "event"
137
298
  },
138
299
  {
@@ -141,31 +302,31 @@ exports.RaribleToken_jsonAbi = [
141
302
  {
142
303
  "indexed": true,
143
304
  "internalType": "address",
144
- "name": "_operator",
305
+ "name": "operator",
145
306
  "type": "address"
146
307
  },
147
308
  {
148
309
  "indexed": true,
149
310
  "internalType": "address",
150
- "name": "_from",
311
+ "name": "from",
151
312
  "type": "address"
152
313
  },
153
314
  {
154
315
  "indexed": true,
155
316
  "internalType": "address",
156
- "name": "_to",
317
+ "name": "to",
157
318
  "type": "address"
158
319
  },
159
320
  {
160
321
  "indexed": false,
161
322
  "internalType": "uint256[]",
162
- "name": "_ids",
323
+ "name": "ids",
163
324
  "type": "uint256[]"
164
325
  },
165
326
  {
166
327
  "indexed": false,
167
328
  "internalType": "uint256[]",
168
- "name": "_values",
329
+ "name": "values",
169
330
  "type": "uint256[]"
170
331
  }
171
332
  ],
@@ -178,31 +339,31 @@ exports.RaribleToken_jsonAbi = [
178
339
  {
179
340
  "indexed": true,
180
341
  "internalType": "address",
181
- "name": "_operator",
342
+ "name": "operator",
182
343
  "type": "address"
183
344
  },
184
345
  {
185
346
  "indexed": true,
186
347
  "internalType": "address",
187
- "name": "_from",
348
+ "name": "from",
188
349
  "type": "address"
189
350
  },
190
351
  {
191
352
  "indexed": true,
192
353
  "internalType": "address",
193
- "name": "_to",
354
+ "name": "to",
194
355
  "type": "address"
195
356
  },
196
357
  {
197
358
  "indexed": false,
198
359
  "internalType": "uint256",
199
- "name": "_id",
360
+ "name": "id",
200
361
  "type": "uint256"
201
362
  },
202
363
  {
203
364
  "indexed": false,
204
365
  "internalType": "uint256",
205
- "name": "_value",
366
+ "name": "value",
206
367
  "type": "uint256"
207
368
  }
208
369
  ],
@@ -215,13 +376,13 @@ exports.RaribleToken_jsonAbi = [
215
376
  {
216
377
  "indexed": false,
217
378
  "internalType": "string",
218
- "name": "_value",
379
+ "name": "value",
219
380
  "type": "string"
220
381
  },
221
382
  {
222
383
  "indexed": true,
223
384
  "internalType": "uint256",
224
- "name": "_id",
385
+ "name": "id",
225
386
  "type": "uint256"
226
387
  }
227
388
  ],
@@ -229,31 +390,122 @@ exports.RaribleToken_jsonAbi = [
229
390
  "type": "event"
230
391
  },
231
392
  {
232
- "constant": false,
233
393
  "inputs": [
394
+ {
395
+ "internalType": "string",
396
+ "name": "_name",
397
+ "type": "string"
398
+ },
399
+ {
400
+ "internalType": "string",
401
+ "name": "_symbol",
402
+ "type": "string"
403
+ },
404
+ {
405
+ "internalType": "string",
406
+ "name": "baseURI",
407
+ "type": "string"
408
+ },
409
+ {
410
+ "internalType": "string",
411
+ "name": "contractURI",
412
+ "type": "string"
413
+ },
414
+ {
415
+ "internalType": "address[]",
416
+ "name": "operators",
417
+ "type": "address[]"
418
+ },
234
419
  {
235
420
  "internalType": "address",
236
- "name": "account",
421
+ "name": "transferProxy",
422
+ "type": "address"
423
+ },
424
+ {
425
+ "internalType": "address",
426
+ "name": "lazyTransferProxy",
237
427
  "type": "address"
238
428
  }
239
429
  ],
240
- "name": "addSigner",
430
+ "name": "__ERC1155RaribleUser_init",
241
431
  "outputs": [],
242
- "payable": false,
243
432
  "stateMutability": "nonpayable",
244
433
  "type": "function"
245
434
  },
246
435
  {
247
- "constant": true,
248
436
  "inputs": [
437
+ {
438
+ "internalType": "string",
439
+ "name": "_name",
440
+ "type": "string"
441
+ },
442
+ {
443
+ "internalType": "string",
444
+ "name": "_symbol",
445
+ "type": "string"
446
+ },
447
+ {
448
+ "internalType": "string",
449
+ "name": "baseURI",
450
+ "type": "string"
451
+ },
452
+ {
453
+ "internalType": "string",
454
+ "name": "contractURI",
455
+ "type": "string"
456
+ },
249
457
  {
250
458
  "internalType": "address",
251
- "name": "_owner",
459
+ "name": "transferProxy",
460
+ "type": "address"
461
+ },
462
+ {
463
+ "internalType": "address",
464
+ "name": "lazyTransferProxy",
465
+ "type": "address"
466
+ }
467
+ ],
468
+ "name": "__ERC1155Rarible_init",
469
+ "outputs": [],
470
+ "stateMutability": "nonpayable",
471
+ "type": "function"
472
+ },
473
+ {
474
+ "inputs": [
475
+ {
476
+ "internalType": "address",
477
+ "name": "minter",
478
+ "type": "address"
479
+ }
480
+ ],
481
+ "name": "addMinter",
482
+ "outputs": [],
483
+ "stateMutability": "nonpayable",
484
+ "type": "function"
485
+ },
486
+ {
487
+ "inputs": [
488
+ {
489
+ "internalType": "address[]",
490
+ "name": "minters",
491
+ "type": "address[]"
492
+ }
493
+ ],
494
+ "name": "addMinters",
495
+ "outputs": [],
496
+ "stateMutability": "nonpayable",
497
+ "type": "function"
498
+ },
499
+ {
500
+ "inputs": [
501
+ {
502
+ "internalType": "address",
503
+ "name": "account",
252
504
  "type": "address"
253
505
  },
254
506
  {
255
507
  "internalType": "uint256",
256
- "name": "_id",
508
+ "name": "id",
257
509
  "type": "uint256"
258
510
  }
259
511
  ],
@@ -265,21 +517,19 @@ exports.RaribleToken_jsonAbi = [
265
517
  "type": "uint256"
266
518
  }
267
519
  ],
268
- "payable": false,
269
520
  "stateMutability": "view",
270
521
  "type": "function"
271
522
  },
272
523
  {
273
- "constant": true,
274
524
  "inputs": [
275
525
  {
276
526
  "internalType": "address[]",
277
- "name": "_owners",
527
+ "name": "accounts",
278
528
  "type": "address[]"
279
529
  },
280
530
  {
281
531
  "internalType": "uint256[]",
282
- "name": "_ids",
532
+ "name": "ids",
283
533
  "type": "uint256[]"
284
534
  }
285
535
  ],
@@ -291,125 +541,113 @@ exports.RaribleToken_jsonAbi = [
291
541
  "type": "uint256[]"
292
542
  }
293
543
  ],
294
- "payable": false,
295
544
  "stateMutability": "view",
296
545
  "type": "function"
297
546
  },
298
547
  {
299
- "constant": false,
548
+ "inputs": [],
549
+ "name": "baseURI",
550
+ "outputs": [
551
+ {
552
+ "internalType": "string",
553
+ "name": "",
554
+ "type": "string"
555
+ }
556
+ ],
557
+ "stateMutability": "view",
558
+ "type": "function"
559
+ },
560
+ {
300
561
  "inputs": [
301
562
  {
302
563
  "internalType": "address",
303
- "name": "_owner",
564
+ "name": "account",
304
565
  "type": "address"
305
566
  },
306
567
  {
307
568
  "internalType": "uint256",
308
- "name": "_id",
569
+ "name": "id",
309
570
  "type": "uint256"
310
571
  },
311
572
  {
312
573
  "internalType": "uint256",
313
- "name": "_value",
574
+ "name": "amount",
314
575
  "type": "uint256"
315
576
  }
316
577
  ],
317
578
  "name": "burn",
318
579
  "outputs": [],
319
- "payable": false,
320
580
  "stateMutability": "nonpayable",
321
581
  "type": "function"
322
582
  },
323
583
  {
324
- "constant": true,
325
- "inputs": [],
326
- "name": "contractURI",
327
- "outputs": [
328
- {
329
- "internalType": "string",
330
- "name": "",
331
- "type": "string"
332
- }
333
- ],
334
- "payable": false,
335
- "stateMutability": "view",
336
- "type": "function"
337
- },
338
- {
339
- "constant": true,
340
584
  "inputs": [
341
- {
342
- "internalType": "uint256",
343
- "name": "",
344
- "type": "uint256"
345
- }
346
- ],
347
- "name": "creators",
348
- "outputs": [
349
585
  {
350
586
  "internalType": "address",
351
- "name": "",
587
+ "name": "account",
352
588
  "type": "address"
353
- }
354
- ],
355
- "payable": false,
356
- "stateMutability": "view",
357
- "type": "function"
358
- },
359
- {
360
- "constant": true,
361
- "inputs": [
589
+ },
362
590
  {
363
- "internalType": "uint256",
364
- "name": "",
365
- "type": "uint256"
591
+ "internalType": "uint256[]",
592
+ "name": "ids",
593
+ "type": "uint256[]"
366
594
  },
367
595
  {
368
- "internalType": "uint256",
369
- "name": "",
370
- "type": "uint256"
596
+ "internalType": "uint256[]",
597
+ "name": "amounts",
598
+ "type": "uint256[]"
371
599
  }
372
600
  ],
373
- "name": "fees",
601
+ "name": "burnBatch",
602
+ "outputs": [],
603
+ "stateMutability": "nonpayable",
604
+ "type": "function"
605
+ },
606
+ {
607
+ "inputs": [],
608
+ "name": "contractURI",
374
609
  "outputs": [
375
610
  {
376
- "internalType": "address payable",
377
- "name": "recipient",
378
- "type": "address"
379
- },
380
- {
381
- "internalType": "uint256",
382
- "name": "value",
383
- "type": "uint256"
611
+ "internalType": "string",
612
+ "name": "",
613
+ "type": "string"
384
614
  }
385
615
  ],
386
- "payable": false,
387
616
  "stateMutability": "view",
388
617
  "type": "function"
389
618
  },
390
619
  {
391
- "constant": true,
392
620
  "inputs": [
393
621
  {
394
622
  "internalType": "uint256",
395
- "name": "id",
623
+ "name": "_id",
396
624
  "type": "uint256"
397
625
  }
398
626
  ],
399
- "name": "getFeeBps",
627
+ "name": "getCreators",
400
628
  "outputs": [
401
629
  {
402
- "internalType": "uint256[]",
630
+ "components": [
631
+ {
632
+ "internalType": "address payable",
633
+ "name": "account",
634
+ "type": "address"
635
+ },
636
+ {
637
+ "internalType": "uint96",
638
+ "name": "value",
639
+ "type": "uint96"
640
+ }
641
+ ],
642
+ "internalType": "struct LibPart.Part[]",
403
643
  "name": "",
404
- "type": "uint256[]"
644
+ "type": "tuple[]"
405
645
  }
406
646
  ],
407
- "payable": false,
408
647
  "stateMutability": "view",
409
648
  "type": "function"
410
649
  },
411
650
  {
412
- "constant": true,
413
651
  "inputs": [
414
652
  {
415
653
  "internalType": "uint256",
@@ -417,20 +655,30 @@ exports.RaribleToken_jsonAbi = [
417
655
  "type": "uint256"
418
656
  }
419
657
  ],
420
- "name": "getFeeRecipients",
658
+ "name": "getRaribleV2Royalties",
421
659
  "outputs": [
422
660
  {
423
- "internalType": "address payable[]",
661
+ "components": [
662
+ {
663
+ "internalType": "address payable",
664
+ "name": "account",
665
+ "type": "address"
666
+ },
667
+ {
668
+ "internalType": "uint96",
669
+ "name": "value",
670
+ "type": "uint96"
671
+ }
672
+ ],
673
+ "internalType": "struct LibPart.Part[]",
424
674
  "name": "",
425
- "type": "address[]"
675
+ "type": "tuple[]"
426
676
  }
427
677
  ],
428
- "payable": false,
429
678
  "stateMutability": "view",
430
679
  "type": "function"
431
680
  },
432
681
  {
433
- "constant": true,
434
682
  "inputs": [
435
683
  {
436
684
  "internalType": "address",
@@ -451,27 +699,10 @@ exports.RaribleToken_jsonAbi = [
451
699
  "type": "bool"
452
700
  }
453
701
  ],
454
- "payable": false,
455
702
  "stateMutability": "view",
456
703
  "type": "function"
457
704
  },
458
705
  {
459
- "constant": true,
460
- "inputs": [],
461
- "name": "isOwner",
462
- "outputs": [
463
- {
464
- "internalType": "bool",
465
- "name": "",
466
- "type": "bool"
467
- }
468
- ],
469
- "payable": false,
470
- "stateMutability": "view",
471
- "type": "function"
472
- },
473
- {
474
- "constant": true,
475
706
  "inputs": [
476
707
  {
477
708
  "internalType": "address",
@@ -479,7 +710,7 @@ exports.RaribleToken_jsonAbi = [
479
710
  "type": "address"
480
711
  }
481
712
  ],
482
- "name": "isSigner",
713
+ "name": "isMinter",
483
714
  "outputs": [
484
715
  {
485
716
  "internalType": "bool",
@@ -487,69 +718,89 @@ exports.RaribleToken_jsonAbi = [
487
718
  "type": "bool"
488
719
  }
489
720
  ],
490
- "payable": false,
491
721
  "stateMutability": "view",
492
722
  "type": "function"
493
723
  },
494
724
  {
495
- "constant": false,
496
725
  "inputs": [
497
- {
498
- "internalType": "uint256",
499
- "name": "id",
500
- "type": "uint256"
501
- },
502
- {
503
- "internalType": "uint8",
504
- "name": "v",
505
- "type": "uint8"
506
- },
507
- {
508
- "internalType": "bytes32",
509
- "name": "r",
510
- "type": "bytes32"
511
- },
512
- {
513
- "internalType": "bytes32",
514
- "name": "s",
515
- "type": "bytes32"
516
- },
517
726
  {
518
727
  "components": [
519
728
  {
520
- "internalType": "address payable",
521
- "name": "recipient",
522
- "type": "address"
729
+ "internalType": "uint256",
730
+ "name": "tokenId",
731
+ "type": "uint256"
732
+ },
733
+ {
734
+ "internalType": "string",
735
+ "name": "tokenURI",
736
+ "type": "string"
523
737
  },
524
738
  {
525
739
  "internalType": "uint256",
526
- "name": "value",
740
+ "name": "supply",
527
741
  "type": "uint256"
742
+ },
743
+ {
744
+ "components": [
745
+ {
746
+ "internalType": "address payable",
747
+ "name": "account",
748
+ "type": "address"
749
+ },
750
+ {
751
+ "internalType": "uint96",
752
+ "name": "value",
753
+ "type": "uint96"
754
+ }
755
+ ],
756
+ "internalType": "struct LibPart.Part[]",
757
+ "name": "creators",
758
+ "type": "tuple[]"
759
+ },
760
+ {
761
+ "components": [
762
+ {
763
+ "internalType": "address payable",
764
+ "name": "account",
765
+ "type": "address"
766
+ },
767
+ {
768
+ "internalType": "uint96",
769
+ "name": "value",
770
+ "type": "uint96"
771
+ }
772
+ ],
773
+ "internalType": "struct LibPart.Part[]",
774
+ "name": "royalties",
775
+ "type": "tuple[]"
776
+ },
777
+ {
778
+ "internalType": "bytes[]",
779
+ "name": "signatures",
780
+ "type": "bytes[]"
528
781
  }
529
782
  ],
530
- "internalType": "struct ERC1155Base.Fee[]",
531
- "name": "fees",
532
- "type": "tuple[]"
783
+ "internalType": "struct LibERC1155LazyMint.Mint1155Data",
784
+ "name": "data",
785
+ "type": "tuple"
533
786
  },
534
787
  {
535
- "internalType": "uint256",
536
- "name": "supply",
537
- "type": "uint256"
788
+ "internalType": "address",
789
+ "name": "to",
790
+ "type": "address"
538
791
  },
539
792
  {
540
- "internalType": "string",
541
- "name": "uri",
542
- "type": "string"
793
+ "internalType": "uint256",
794
+ "name": "_amount",
795
+ "type": "uint256"
543
796
  }
544
797
  ],
545
- "name": "mint",
798
+ "name": "mintAndTransfer",
546
799
  "outputs": [],
547
- "payable": false,
548
800
  "stateMutability": "nonpayable",
549
801
  "type": "function"
550
802
  },
551
803
  {
552
- "constant": true,
553
804
  "inputs": [],
554
805
  "name": "name",
555
806
  "outputs": [
@@ -559,12 +810,10 @@ exports.RaribleToken_jsonAbi = [
559
810
  "type": "string"
560
811
  }
561
812
  ],
562
- "payable": false,
563
813
  "stateMutability": "view",
564
814
  "type": "function"
565
815
  },
566
816
  {
567
- "constant": true,
568
817
  "inputs": [],
569
818
  "name": "owner",
570
819
  "outputs": [
@@ -574,165 +823,156 @@ exports.RaribleToken_jsonAbi = [
574
823
  "type": "address"
575
824
  }
576
825
  ],
577
- "payable": false,
578
826
  "stateMutability": "view",
579
827
  "type": "function"
580
828
  },
581
829
  {
582
- "constant": false,
583
830
  "inputs": [
584
831
  {
585
832
  "internalType": "address",
586
- "name": "account",
833
+ "name": "_minter",
587
834
  "type": "address"
588
835
  }
589
836
  ],
590
- "name": "removeSigner",
837
+ "name": "removeMinter",
591
838
  "outputs": [],
592
- "payable": false,
593
839
  "stateMutability": "nonpayable",
594
840
  "type": "function"
595
841
  },
596
842
  {
597
- "constant": false,
598
843
  "inputs": [],
599
844
  "name": "renounceOwnership",
600
845
  "outputs": [],
601
- "payable": false,
602
846
  "stateMutability": "nonpayable",
603
847
  "type": "function"
604
848
  },
605
849
  {
606
- "constant": false,
607
- "inputs": [],
608
- "name": "renounceSigner",
609
- "outputs": [],
610
- "payable": false,
611
- "stateMutability": "nonpayable",
850
+ "inputs": [
851
+ {
852
+ "internalType": "uint256",
853
+ "name": "id",
854
+ "type": "uint256"
855
+ },
856
+ {
857
+ "internalType": "uint256",
858
+ "name": "_salePrice",
859
+ "type": "uint256"
860
+ }
861
+ ],
862
+ "name": "royaltyInfo",
863
+ "outputs": [
864
+ {
865
+ "internalType": "address",
866
+ "name": "receiver",
867
+ "type": "address"
868
+ },
869
+ {
870
+ "internalType": "uint256",
871
+ "name": "royaltyAmount",
872
+ "type": "uint256"
873
+ }
874
+ ],
875
+ "stateMutability": "view",
612
876
  "type": "function"
613
877
  },
614
878
  {
615
- "constant": false,
616
879
  "inputs": [
617
880
  {
618
881
  "internalType": "address",
619
- "name": "_from",
882
+ "name": "from",
620
883
  "type": "address"
621
884
  },
622
885
  {
623
886
  "internalType": "address",
624
- "name": "_to",
887
+ "name": "to",
625
888
  "type": "address"
626
889
  },
627
890
  {
628
891
  "internalType": "uint256[]",
629
- "name": "_ids",
892
+ "name": "ids",
630
893
  "type": "uint256[]"
631
894
  },
632
895
  {
633
896
  "internalType": "uint256[]",
634
- "name": "_values",
897
+ "name": "amounts",
635
898
  "type": "uint256[]"
636
899
  },
637
900
  {
638
901
  "internalType": "bytes",
639
- "name": "_data",
902
+ "name": "data",
640
903
  "type": "bytes"
641
904
  }
642
905
  ],
643
906
  "name": "safeBatchTransferFrom",
644
907
  "outputs": [],
645
- "payable": false,
646
908
  "stateMutability": "nonpayable",
647
909
  "type": "function"
648
910
  },
649
911
  {
650
- "constant": false,
651
912
  "inputs": [
652
913
  {
653
914
  "internalType": "address",
654
- "name": "_from",
915
+ "name": "from",
655
916
  "type": "address"
656
917
  },
657
918
  {
658
919
  "internalType": "address",
659
- "name": "_to",
920
+ "name": "to",
660
921
  "type": "address"
661
922
  },
662
923
  {
663
924
  "internalType": "uint256",
664
- "name": "_id",
925
+ "name": "id",
665
926
  "type": "uint256"
666
927
  },
667
928
  {
668
929
  "internalType": "uint256",
669
- "name": "_value",
930
+ "name": "amount",
670
931
  "type": "uint256"
671
932
  },
672
933
  {
673
934
  "internalType": "bytes",
674
- "name": "_data",
935
+ "name": "data",
675
936
  "type": "bytes"
676
937
  }
677
938
  ],
678
939
  "name": "safeTransferFrom",
679
940
  "outputs": [],
680
- "payable": false,
681
941
  "stateMutability": "nonpayable",
682
942
  "type": "function"
683
943
  },
684
944
  {
685
- "constant": false,
686
945
  "inputs": [
687
946
  {
688
947
  "internalType": "address",
689
- "name": "_operator",
948
+ "name": "operator",
690
949
  "type": "address"
691
- },
692
- {
693
- "internalType": "bool",
694
- "name": "_approved",
695
- "type": "bool"
696
- }
697
- ],
698
- "name": "setApprovalForAll",
699
- "outputs": [],
700
- "payable": false,
701
- "stateMutability": "nonpayable",
702
- "type": "function"
703
- },
704
- {
705
- "constant": false,
706
- "inputs": [
950
+ },
707
951
  {
708
- "internalType": "string",
709
- "name": "contractURI",
710
- "type": "string"
952
+ "internalType": "bool",
953
+ "name": "approved",
954
+ "type": "bool"
711
955
  }
712
956
  ],
713
- "name": "setContractURI",
957
+ "name": "setApprovalForAll",
714
958
  "outputs": [],
715
- "payable": false,
716
959
  "stateMutability": "nonpayable",
717
960
  "type": "function"
718
961
  },
719
962
  {
720
- "constant": false,
721
963
  "inputs": [
722
964
  {
723
965
  "internalType": "string",
724
- "name": "tokenURIPrefix",
966
+ "name": "newBaseURI",
725
967
  "type": "string"
726
968
  }
727
969
  ],
728
- "name": "setTokenURIPrefix",
970
+ "name": "setBaseURI",
729
971
  "outputs": [],
730
- "payable": false,
731
972
  "stateMutability": "nonpayable",
732
973
  "type": "function"
733
974
  },
734
975
  {
735
- "constant": true,
736
976
  "inputs": [
737
977
  {
738
978
  "internalType": "bytes4",
@@ -748,12 +988,10 @@ exports.RaribleToken_jsonAbi = [
748
988
  "type": "bool"
749
989
  }
750
990
  ],
751
- "payable": false,
752
991
  "stateMutability": "view",
753
992
  "type": "function"
754
993
  },
755
994
  {
756
- "constant": true,
757
995
  "inputs": [],
758
996
  "name": "symbol",
759
997
  "outputs": [
@@ -763,27 +1001,94 @@ exports.RaribleToken_jsonAbi = [
763
1001
  "type": "string"
764
1002
  }
765
1003
  ],
766
- "payable": false,
767
1004
  "stateMutability": "view",
768
1005
  "type": "function"
769
1006
  },
770
1007
  {
771
- "constant": true,
772
- "inputs": [],
773
- "name": "tokenURIPrefix",
774
- "outputs": [
1008
+ "inputs": [
775
1009
  {
776
- "internalType": "string",
777
- "name": "",
778
- "type": "string"
1010
+ "components": [
1011
+ {
1012
+ "internalType": "uint256",
1013
+ "name": "tokenId",
1014
+ "type": "uint256"
1015
+ },
1016
+ {
1017
+ "internalType": "string",
1018
+ "name": "tokenURI",
1019
+ "type": "string"
1020
+ },
1021
+ {
1022
+ "internalType": "uint256",
1023
+ "name": "supply",
1024
+ "type": "uint256"
1025
+ },
1026
+ {
1027
+ "components": [
1028
+ {
1029
+ "internalType": "address payable",
1030
+ "name": "account",
1031
+ "type": "address"
1032
+ },
1033
+ {
1034
+ "internalType": "uint96",
1035
+ "name": "value",
1036
+ "type": "uint96"
1037
+ }
1038
+ ],
1039
+ "internalType": "struct LibPart.Part[]",
1040
+ "name": "creators",
1041
+ "type": "tuple[]"
1042
+ },
1043
+ {
1044
+ "components": [
1045
+ {
1046
+ "internalType": "address payable",
1047
+ "name": "account",
1048
+ "type": "address"
1049
+ },
1050
+ {
1051
+ "internalType": "uint96",
1052
+ "name": "value",
1053
+ "type": "uint96"
1054
+ }
1055
+ ],
1056
+ "internalType": "struct LibPart.Part[]",
1057
+ "name": "royalties",
1058
+ "type": "tuple[]"
1059
+ },
1060
+ {
1061
+ "internalType": "bytes[]",
1062
+ "name": "signatures",
1063
+ "type": "bytes[]"
1064
+ }
1065
+ ],
1066
+ "internalType": "struct LibERC1155LazyMint.Mint1155Data",
1067
+ "name": "data",
1068
+ "type": "tuple"
1069
+ },
1070
+ {
1071
+ "internalType": "address",
1072
+ "name": "from",
1073
+ "type": "address"
1074
+ },
1075
+ {
1076
+ "internalType": "address",
1077
+ "name": "to",
1078
+ "type": "address"
1079
+ },
1080
+ {
1081
+ "internalType": "uint256",
1082
+ "name": "amount",
1083
+ "type": "uint256"
779
1084
  }
780
1085
  ],
781
- "payable": false,
782
- "stateMutability": "view",
1086
+ "name": "transferFromOrMint",
1087
+ "outputs": [],
1088
+ "stateMutability": "nonpayable",
783
1089
  "type": "function"
784
1090
  },
785
1091
  {
786
- "constant": false,
787
1092
  "inputs": [
788
1093
  {
789
1094
  "internalType": "address",
@@ -793,17 +1098,38 @@ exports.RaribleToken_jsonAbi = [
793
1098
  ],
794
1099
  "name": "transferOwnership",
795
1100
  "outputs": [],
796
- "payable": false,
797
1101
  "stateMutability": "nonpayable",
798
1102
  "type": "function"
799
1103
  },
800
1104
  {
801
- "constant": true,
802
1105
  "inputs": [
803
1106
  {
804
1107
  "internalType": "uint256",
805
1108
  "name": "_id",
806
1109
  "type": "uint256"
1110
+ },
1111
+ {
1112
+ "internalType": "address",
1113
+ "name": "_from",
1114
+ "type": "address"
1115
+ },
1116
+ {
1117
+ "internalType": "address",
1118
+ "name": "_to",
1119
+ "type": "address"
1120
+ }
1121
+ ],
1122
+ "name": "updateAccount",
1123
+ "outputs": [],
1124
+ "stateMutability": "nonpayable",
1125
+ "type": "function"
1126
+ },
1127
+ {
1128
+ "inputs": [
1129
+ {
1130
+ "internalType": "uint256",
1131
+ "name": "id",
1132
+ "type": "uint256"
807
1133
  }
808
1134
  ],
809
1135
  "name": "uri",
@@ -814,13 +1140,12 @@ exports.RaribleToken_jsonAbi = [
814
1140
  "type": "string"
815
1141
  }
816
1142
  ],
817
- "payable": false,
818
1143
  "stateMutability": "view",
819
1144
  "type": "function"
820
1145
  }
821
1146
  ];
822
1147
  /**
823
- * RaribleToken_json Contract Class
1148
+ * ERC1155Rarible_json Contract Class
824
1149
  *
825
1150
  * Provides a class-based API similar to TypeChain for interacting with the contract.
826
1151
  *
@@ -828,12 +1153,12 @@ exports.RaribleToken_jsonAbi = [
828
1153
  * ```typescript
829
1154
  * import { createPublicClient, createWalletClient, http } from 'viem';
830
1155
  * import { mainnet } from 'viem/chains';
831
- * import { RaribleToken_json } from 'RaribleToken_json';
1156
+ * import { ERC1155Rarible_json } from 'ERC1155Rarible_json';
832
1157
  *
833
1158
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
834
1159
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
835
1160
  *
836
- * const contract = new RaribleToken_json('0x...', { publicClient, walletClient });
1161
+ * const contract = new ERC1155Rarible_json('0x...', { publicClient, walletClient });
837
1162
  *
838
1163
  * // Read functions
839
1164
  * const result = await contract.balanceOf('0x...');
@@ -851,13 +1176,13 @@ exports.RaribleToken_jsonAbi = [
851
1176
  * });
852
1177
  * ```
853
1178
  */
854
- class RaribleToken_json {
1179
+ class ERC1155Rarible_json {
855
1180
  constructor(address, clients) {
856
1181
  this.contractAddress = address;
857
1182
  this.publicClient = clients.publicClient;
858
1183
  this.contract = (0, viem_1.getContract)({
859
1184
  address,
860
- abi: exports.RaribleToken_jsonAbi,
1185
+ abi: exports.ERC1155Rarible_jsonAbi,
861
1186
  client: {
862
1187
  public: clients.publicClient,
863
1188
  wallet: clients.walletClient,
@@ -880,50 +1205,43 @@ class RaribleToken_json {
880
1205
  * balanceOf
881
1206
  * view
882
1207
  */
883
- async balanceOf(_owner, _id) {
884
- return this.contract.read.balanceOf([_owner, _id]);
1208
+ async balanceOf(account, id) {
1209
+ return this.contract.read.balanceOf([account, id]);
885
1210
  }
886
1211
  /**
887
1212
  * balanceOfBatch
888
1213
  * view
889
1214
  */
890
- async balanceOfBatch(_owners, _ids) {
891
- return this.contract.read.balanceOfBatch([_owners, _ids]);
892
- }
893
- /**
894
- * contractURI
895
- * view
896
- */
897
- async contractURI() {
898
- return this.contract.read.contractURI();
1215
+ async balanceOfBatch(accounts, ids) {
1216
+ return this.contract.read.balanceOfBatch([accounts, ids]);
899
1217
  }
900
1218
  /**
901
- * creators
1219
+ * baseURI
902
1220
  * view
903
1221
  */
904
- async creators(arg0) {
905
- return this.contract.read.creators([arg0]);
1222
+ async baseURI() {
1223
+ return this.contract.read.baseURI();
906
1224
  }
907
1225
  /**
908
- * fees
1226
+ * contractURI
909
1227
  * view
910
1228
  */
911
- async fees(arg0, arg1) {
912
- return this.contract.read.fees([arg0, arg1]);
1229
+ async contractURI() {
1230
+ return this.contract.read.contractURI();
913
1231
  }
914
1232
  /**
915
- * getFeeBps
1233
+ * getCreators
916
1234
  * view
917
1235
  */
918
- async getFeeBps(id) {
919
- return this.contract.read.getFeeBps([id]);
1236
+ async getCreators(_id) {
1237
+ return this.contract.read.getCreators([_id]);
920
1238
  }
921
1239
  /**
922
- * getFeeRecipients
1240
+ * getRaribleV2Royalties
923
1241
  * view
924
1242
  */
925
- async getFeeRecipients(id) {
926
- return this.contract.read.getFeeRecipients([id]);
1243
+ async getRaribleV2Royalties(id) {
1244
+ return this.contract.read.getRaribleV2Royalties([id]);
927
1245
  }
928
1246
  /**
929
1247
  * isApprovedForAll
@@ -933,18 +1251,11 @@ class RaribleToken_json {
933
1251
  return this.contract.read.isApprovedForAll([_owner, _operator]);
934
1252
  }
935
1253
  /**
936
- * isOwner
937
- * view
938
- */
939
- async isOwner() {
940
- return this.contract.read.isOwner();
941
- }
942
- /**
943
- * isSigner
1254
+ * isMinter
944
1255
  * view
945
1256
  */
946
- async isSigner(account) {
947
- return this.contract.read.isSigner([account]);
1257
+ async isMinter(account) {
1258
+ return this.contract.read.isMinter([account]);
948
1259
  }
949
1260
  /**
950
1261
  * name
@@ -960,6 +1271,13 @@ class RaribleToken_json {
960
1271
  async owner() {
961
1272
  return this.contract.read.owner();
962
1273
  }
1274
+ /**
1275
+ * royaltyInfo
1276
+ * view
1277
+ */
1278
+ async royaltyInfo(id, _salePrice) {
1279
+ return this.contract.read.royaltyInfo([id, _salePrice]);
1280
+ }
963
1281
  /**
964
1282
  * supportsInterface
965
1283
  * view
@@ -975,139 +1293,165 @@ class RaribleToken_json {
975
1293
  return this.contract.read.symbol();
976
1294
  }
977
1295
  /**
978
- * tokenURIPrefix
1296
+ * uri
979
1297
  * view
980
1298
  */
981
- async tokenURIPrefix() {
982
- return this.contract.read.tokenURIPrefix();
1299
+ async uri(id) {
1300
+ return this.contract.read.uri([id]);
983
1301
  }
984
1302
  /**
985
- * uri
986
- * view
1303
+ * __ERC1155RaribleUser_init
1304
+ * nonpayable
1305
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1306
+ */
1307
+ async __ERC1155RaribleUser_init(_name, _symbol, baseURI, contractURI, operators, transferProxy, lazyTransferProxy, options) {
1308
+ if (!this.contract.write) {
1309
+ throw new Error('Wallet client is required for write operations');
1310
+ }
1311
+ return this.contract.write.__ERC1155RaribleUser_init([_name, _symbol, baseURI, contractURI, operators, transferProxy, lazyTransferProxy], options);
1312
+ }
1313
+ /**
1314
+ * __ERC1155Rarible_init
1315
+ * nonpayable
1316
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1317
+ */
1318
+ async __ERC1155Rarible_init(_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy, options) {
1319
+ if (!this.contract.write) {
1320
+ throw new Error('Wallet client is required for write operations');
1321
+ }
1322
+ return this.contract.write.__ERC1155Rarible_init([_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy], options);
1323
+ }
1324
+ /**
1325
+ * addMinter
1326
+ * nonpayable
1327
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
987
1328
  */
988
- async uri(_id) {
989
- return this.contract.read.uri([_id]);
1329
+ async addMinter(minter, options) {
1330
+ if (!this.contract.write) {
1331
+ throw new Error('Wallet client is required for write operations');
1332
+ }
1333
+ return this.contract.write.addMinter([minter], options);
990
1334
  }
991
1335
  /**
992
- * addSigner
1336
+ * addMinters
993
1337
  * nonpayable
994
1338
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
995
1339
  */
996
- async addSigner(account, options) {
1340
+ async addMinters(minters, options) {
997
1341
  if (!this.contract.write) {
998
1342
  throw new Error('Wallet client is required for write operations');
999
1343
  }
1000
- return this.contract.write.addSigner([account], options);
1344
+ return this.contract.write.addMinters([minters], options);
1001
1345
  }
1002
1346
  /**
1003
1347
  * burn
1004
1348
  * nonpayable
1005
1349
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1006
1350
  */
1007
- async burn(_owner, _id, _value, options) {
1351
+ async burn(account, id, amount, options) {
1008
1352
  if (!this.contract.write) {
1009
1353
  throw new Error('Wallet client is required for write operations');
1010
1354
  }
1011
- return this.contract.write.burn([_owner, _id, _value], options);
1355
+ return this.contract.write.burn([account, id, amount], options);
1012
1356
  }
1013
1357
  /**
1014
- * mint
1358
+ * burnBatch
1015
1359
  * nonpayable
1016
1360
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1017
1361
  */
1018
- async mint(id, v, r, s, fees, supply, uri, options) {
1362
+ async burnBatch(account, ids, amounts, options) {
1019
1363
  if (!this.contract.write) {
1020
1364
  throw new Error('Wallet client is required for write operations');
1021
1365
  }
1022
- return this.contract.write.mint([id, v, r, s, fees, supply, uri], options);
1366
+ return this.contract.write.burnBatch([account, ids, amounts], options);
1023
1367
  }
1024
1368
  /**
1025
- * removeSigner
1369
+ * mintAndTransfer
1026
1370
  * nonpayable
1027
1371
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1028
1372
  */
1029
- async removeSigner(account, options) {
1373
+ async mintAndTransfer(data, to, _amount, options) {
1030
1374
  if (!this.contract.write) {
1031
1375
  throw new Error('Wallet client is required for write operations');
1032
1376
  }
1033
- return this.contract.write.removeSigner([account], options);
1377
+ return this.contract.write.mintAndTransfer([data, to, _amount], options);
1034
1378
  }
1035
1379
  /**
1036
- * renounceOwnership
1380
+ * removeMinter
1037
1381
  * nonpayable
1038
1382
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1039
1383
  */
1040
- async renounceOwnership(options) {
1384
+ async removeMinter(_minter, options) {
1041
1385
  if (!this.contract.write) {
1042
1386
  throw new Error('Wallet client is required for write operations');
1043
1387
  }
1044
- return this.contract.write.renounceOwnership(options);
1388
+ return this.contract.write.removeMinter([_minter], options);
1045
1389
  }
1046
1390
  /**
1047
- * renounceSigner
1391
+ * renounceOwnership
1048
1392
  * nonpayable
1049
1393
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1050
1394
  */
1051
- async renounceSigner(options) {
1395
+ async renounceOwnership(options) {
1052
1396
  if (!this.contract.write) {
1053
1397
  throw new Error('Wallet client is required for write operations');
1054
1398
  }
1055
- return this.contract.write.renounceSigner(options);
1399
+ return this.contract.write.renounceOwnership(options);
1056
1400
  }
1057
1401
  /**
1058
1402
  * safeBatchTransferFrom
1059
1403
  * nonpayable
1060
1404
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1061
1405
  */
1062
- async safeBatchTransferFrom(_from, _to, _ids, _values, _data, options) {
1406
+ async safeBatchTransferFrom(from, to, ids, amounts, data, options) {
1063
1407
  if (!this.contract.write) {
1064
1408
  throw new Error('Wallet client is required for write operations');
1065
1409
  }
1066
- return this.contract.write.safeBatchTransferFrom([_from, _to, _ids, _values, _data], options);
1410
+ return this.contract.write.safeBatchTransferFrom([from, to, ids, amounts, data], options);
1067
1411
  }
1068
1412
  /**
1069
1413
  * safeTransferFrom
1070
1414
  * nonpayable
1071
1415
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1072
1416
  */
1073
- async safeTransferFrom(_from, _to, _id, _value, _data, options) {
1417
+ async safeTransferFrom(from, to, id, amount, data, options) {
1074
1418
  if (!this.contract.write) {
1075
1419
  throw new Error('Wallet client is required for write operations');
1076
1420
  }
1077
- return this.contract.write.safeTransferFrom([_from, _to, _id, _value, _data], options);
1421
+ return this.contract.write.safeTransferFrom([from, to, id, amount, data], options);
1078
1422
  }
1079
1423
  /**
1080
1424
  * setApprovalForAll
1081
1425
  * nonpayable
1082
1426
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1083
1427
  */
1084
- async setApprovalForAll(_operator, _approved, options) {
1428
+ async setApprovalForAll(operator, approved, options) {
1085
1429
  if (!this.contract.write) {
1086
1430
  throw new Error('Wallet client is required for write operations');
1087
1431
  }
1088
- return this.contract.write.setApprovalForAll([_operator, _approved], options);
1432
+ return this.contract.write.setApprovalForAll([operator, approved], options);
1089
1433
  }
1090
1434
  /**
1091
- * setContractURI
1435
+ * setBaseURI
1092
1436
  * nonpayable
1093
1437
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1094
1438
  */
1095
- async setContractURI(contractURI, options) {
1439
+ async setBaseURI(newBaseURI, options) {
1096
1440
  if (!this.contract.write) {
1097
1441
  throw new Error('Wallet client is required for write operations');
1098
1442
  }
1099
- return this.contract.write.setContractURI([contractURI], options);
1443
+ return this.contract.write.setBaseURI([newBaseURI], options);
1100
1444
  }
1101
1445
  /**
1102
- * setTokenURIPrefix
1446
+ * transferFromOrMint
1103
1447
  * nonpayable
1104
1448
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1105
1449
  */
1106
- async setTokenURIPrefix(tokenURIPrefix, options) {
1450
+ async transferFromOrMint(data, from, to, amount, options) {
1107
1451
  if (!this.contract.write) {
1108
1452
  throw new Error('Wallet client is required for write operations');
1109
1453
  }
1110
- return this.contract.write.setTokenURIPrefix([tokenURIPrefix], options);
1454
+ return this.contract.write.transferFromOrMint([data, from, to, amount], options);
1111
1455
  }
1112
1456
  /**
1113
1457
  * transferOwnership
@@ -1120,6 +1464,17 @@ class RaribleToken_json {
1120
1464
  }
1121
1465
  return this.contract.write.transferOwnership([newOwner], options);
1122
1466
  }
1467
+ /**
1468
+ * updateAccount
1469
+ * nonpayable
1470
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1471
+ */
1472
+ async updateAccount(_id, _from, _to, options) {
1473
+ if (!this.contract.write) {
1474
+ throw new Error('Wallet client is required for write operations');
1475
+ }
1476
+ return this.contract.write.updateAccount([_id, _from, _to], options);
1477
+ }
1123
1478
  /**
1124
1479
  * Simulate contract write operations (dry-run without sending transaction)
1125
1480
  *
@@ -1135,92 +1490,116 @@ class RaribleToken_json {
1135
1490
  }
1136
1491
  return {
1137
1492
  /**
1138
- * Simulate addSigner
1493
+ * Simulate __ERC1155RaribleUser_init
1494
+ * Returns gas estimate and result without sending transaction
1495
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1496
+ */
1497
+ async __ERC1155RaribleUser_init(_name, _symbol, baseURI, contractURI, operators, transferProxy, lazyTransferProxy, options) {
1498
+ return contract.simulate.__ERC1155RaribleUser_init([_name, _symbol, baseURI, contractURI, operators, transferProxy, lazyTransferProxy], options);
1499
+ },
1500
+ /**
1501
+ * Simulate __ERC1155Rarible_init
1502
+ * Returns gas estimate and result without sending transaction
1503
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1504
+ */
1505
+ async __ERC1155Rarible_init(_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy, options) {
1506
+ return contract.simulate.__ERC1155Rarible_init([_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy], options);
1507
+ },
1508
+ /**
1509
+ * Simulate addMinter
1510
+ * Returns gas estimate and result without sending transaction
1511
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1512
+ */
1513
+ async addMinter(minter, options) {
1514
+ return contract.simulate.addMinter([minter], options);
1515
+ },
1516
+ /**
1517
+ * Simulate addMinters
1139
1518
  * Returns gas estimate and result without sending transaction
1140
1519
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1141
1520
  */
1142
- async addSigner(account, options) {
1143
- return contract.simulate.addSigner([account], options);
1521
+ async addMinters(minters, options) {
1522
+ return contract.simulate.addMinters([minters], options);
1144
1523
  },
1145
1524
  /**
1146
1525
  * Simulate burn
1147
1526
  * Returns gas estimate and result without sending transaction
1148
1527
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1149
1528
  */
1150
- async burn(_owner, _id, _value, options) {
1151
- return contract.simulate.burn([_owner, _id, _value], options);
1529
+ async burn(account, id, amount, options) {
1530
+ return contract.simulate.burn([account, id, amount], options);
1152
1531
  },
1153
1532
  /**
1154
- * Simulate mint
1533
+ * Simulate burnBatch
1155
1534
  * Returns gas estimate and result without sending transaction
1156
1535
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1157
1536
  */
1158
- async mint(id, v, r, s, fees, supply, uri, options) {
1159
- return contract.simulate.mint([id, v, r, s, fees, supply, uri], options);
1537
+ async burnBatch(account, ids, amounts, options) {
1538
+ return contract.simulate.burnBatch([account, ids, amounts], options);
1160
1539
  },
1161
1540
  /**
1162
- * Simulate removeSigner
1541
+ * Simulate mintAndTransfer
1163
1542
  * Returns gas estimate and result without sending transaction
1164
1543
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1165
1544
  */
1166
- async removeSigner(account, options) {
1167
- return contract.simulate.removeSigner([account], options);
1545
+ async mintAndTransfer(data, to, _amount, options) {
1546
+ return contract.simulate.mintAndTransfer([data, to, _amount], options);
1168
1547
  },
1169
1548
  /**
1170
- * Simulate renounceOwnership
1549
+ * Simulate removeMinter
1171
1550
  * Returns gas estimate and result without sending transaction
1172
1551
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1173
1552
  */
1174
- async renounceOwnership(options) {
1175
- return contract.simulate.renounceOwnership(options);
1553
+ async removeMinter(_minter, options) {
1554
+ return contract.simulate.removeMinter([_minter], options);
1176
1555
  },
1177
1556
  /**
1178
- * Simulate renounceSigner
1557
+ * Simulate renounceOwnership
1179
1558
  * Returns gas estimate and result without sending transaction
1180
1559
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1181
1560
  */
1182
- async renounceSigner(options) {
1183
- return contract.simulate.renounceSigner(options);
1561
+ async renounceOwnership(options) {
1562
+ return contract.simulate.renounceOwnership(options);
1184
1563
  },
1185
1564
  /**
1186
1565
  * Simulate safeBatchTransferFrom
1187
1566
  * Returns gas estimate and result without sending transaction
1188
1567
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1189
1568
  */
1190
- async safeBatchTransferFrom(_from, _to, _ids, _values, _data, options) {
1191
- return contract.simulate.safeBatchTransferFrom([_from, _to, _ids, _values, _data], options);
1569
+ async safeBatchTransferFrom(from, to, ids, amounts, data, options) {
1570
+ return contract.simulate.safeBatchTransferFrom([from, to, ids, amounts, data], options);
1192
1571
  },
1193
1572
  /**
1194
1573
  * Simulate safeTransferFrom
1195
1574
  * Returns gas estimate and result without sending transaction
1196
1575
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1197
1576
  */
1198
- async safeTransferFrom(_from, _to, _id, _value, _data, options) {
1199
- return contract.simulate.safeTransferFrom([_from, _to, _id, _value, _data], options);
1577
+ async safeTransferFrom(from, to, id, amount, data, options) {
1578
+ return contract.simulate.safeTransferFrom([from, to, id, amount, data], options);
1200
1579
  },
1201
1580
  /**
1202
1581
  * Simulate setApprovalForAll
1203
1582
  * Returns gas estimate and result without sending transaction
1204
1583
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1205
1584
  */
1206
- async setApprovalForAll(_operator, _approved, options) {
1207
- return contract.simulate.setApprovalForAll([_operator, _approved], options);
1585
+ async setApprovalForAll(operator, approved, options) {
1586
+ return contract.simulate.setApprovalForAll([operator, approved], options);
1208
1587
  },
1209
1588
  /**
1210
- * Simulate setContractURI
1589
+ * Simulate setBaseURI
1211
1590
  * Returns gas estimate and result without sending transaction
1212
1591
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1213
1592
  */
1214
- async setContractURI(contractURI, options) {
1215
- return contract.simulate.setContractURI([contractURI], options);
1593
+ async setBaseURI(newBaseURI, options) {
1594
+ return contract.simulate.setBaseURI([newBaseURI], options);
1216
1595
  },
1217
1596
  /**
1218
- * Simulate setTokenURIPrefix
1597
+ * Simulate transferFromOrMint
1219
1598
  * Returns gas estimate and result without sending transaction
1220
1599
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1221
1600
  */
1222
- async setTokenURIPrefix(tokenURIPrefix, options) {
1223
- return contract.simulate.setTokenURIPrefix([tokenURIPrefix], options);
1601
+ async transferFromOrMint(data, from, to, amount, options) {
1602
+ return contract.simulate.transferFromOrMint([data, from, to, amount], options);
1224
1603
  },
1225
1604
  /**
1226
1605
  * Simulate transferOwnership
@@ -1229,6 +1608,14 @@ class RaribleToken_json {
1229
1608
  */
1230
1609
  async transferOwnership(newOwner, options) {
1231
1610
  return contract.simulate.transferOwnership([newOwner], options);
1611
+ },
1612
+ /**
1613
+ * Simulate updateAccount
1614
+ * Returns gas estimate and result without sending transaction
1615
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1616
+ */
1617
+ async updateAccount(_id, _from, _to, options) {
1618
+ return contract.simulate.updateAccount([_id, _from, _to], options);
1232
1619
  }
1233
1620
  };
1234
1621
  }
@@ -1255,7 +1642,7 @@ class RaribleToken_json {
1255
1642
  ApprovalForAll: (callback, filter) => {
1256
1643
  return this.publicClient.watchContractEvent({
1257
1644
  address: this.contractAddress,
1258
- abi: exports.RaribleToken_jsonAbi,
1645
+ abi: exports.ERC1155Rarible_jsonAbi,
1259
1646
  eventName: 'ApprovalForAll',
1260
1647
  args: filter,
1261
1648
  onLogs: (logs) => {
@@ -1266,16 +1653,53 @@ class RaribleToken_json {
1266
1653
  });
1267
1654
  },
1268
1655
  /**
1269
- * Watch OwnershipTransferred events
1656
+ * Watch BaseUriChanged events
1270
1657
  * @param callback Function to call when event is emitted
1271
1658
  * @param filter Optional filter for indexed parameters
1272
1659
  * @returns Unwatch function to stop listening
1273
1660
  */
1274
- OwnershipTransferred: (callback, filter) => {
1661
+ BaseUriChanged: (callback) => {
1275
1662
  return this.publicClient.watchContractEvent({
1276
1663
  address: this.contractAddress,
1277
- abi: exports.RaribleToken_jsonAbi,
1278
- eventName: 'OwnershipTransferred',
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
1675
+ * @param callback Function to call when event is emitted
1676
+ * @param filter Optional filter for indexed parameters
1677
+ * @returns Unwatch function to stop listening
1678
+ */
1679
+ BurnLazy: (callback, filter) => {
1680
+ return this.publicClient.watchContractEvent({
1681
+ address: this.contractAddress,
1682
+ abi: exports.ERC1155Rarible_jsonAbi,
1683
+ eventName: 'BurnLazy',
1684
+ args: filter,
1685
+ onLogs: (logs) => {
1686
+ logs.forEach((log) => {
1687
+ callback(log.args);
1688
+ });
1689
+ },
1690
+ });
1691
+ },
1692
+ /**
1693
+ * Watch BurnLazyBatch events
1694
+ * @param callback Function to call when event is emitted
1695
+ * @param filter Optional filter for indexed parameters
1696
+ * @returns Unwatch function to stop listening
1697
+ */
1698
+ BurnLazyBatch: (callback, filter) => {
1699
+ return this.publicClient.watchContractEvent({
1700
+ address: this.contractAddress,
1701
+ abi: exports.ERC1155Rarible_jsonAbi,
1702
+ eventName: 'BurnLazyBatch',
1279
1703
  args: filter,
1280
1704
  onLogs: (logs) => {
1281
1705
  logs.forEach((log) => {
@@ -1285,16 +1709,71 @@ class RaribleToken_json {
1285
1709
  });
1286
1710
  },
1287
1711
  /**
1288
- * Watch SecondarySaleFees events
1712
+ * Watch CreateERC1155Rarible events
1713
+ * @param callback Function to call when event is emitted
1714
+ * @param filter Optional filter for indexed parameters
1715
+ * @returns Unwatch function to stop listening
1716
+ */
1717
+ CreateERC1155Rarible: (callback) => {
1718
+ return this.publicClient.watchContractEvent({
1719
+ address: this.contractAddress,
1720
+ abi: exports.ERC1155Rarible_jsonAbi,
1721
+ eventName: 'CreateERC1155Rarible',
1722
+ onLogs: (logs) => {
1723
+ logs.forEach((log) => {
1724
+ callback(log.args);
1725
+ });
1726
+ },
1727
+ });
1728
+ },
1729
+ /**
1730
+ * Watch CreateERC1155RaribleUser events
1731
+ * @param callback Function to call when event is emitted
1732
+ * @param filter Optional filter for indexed parameters
1733
+ * @returns Unwatch function to stop listening
1734
+ */
1735
+ CreateERC1155RaribleUser: (callback) => {
1736
+ return this.publicClient.watchContractEvent({
1737
+ address: this.contractAddress,
1738
+ abi: exports.ERC1155Rarible_jsonAbi,
1739
+ eventName: 'CreateERC1155RaribleUser',
1740
+ onLogs: (logs) => {
1741
+ logs.forEach((log) => {
1742
+ callback(log.args);
1743
+ });
1744
+ },
1745
+ });
1746
+ },
1747
+ /**
1748
+ * Watch Creators events
1749
+ * @param callback Function to call when event is emitted
1750
+ * @param filter Optional filter for indexed parameters
1751
+ * @returns Unwatch function to stop listening
1752
+ */
1753
+ Creators: (callback) => {
1754
+ return this.publicClient.watchContractEvent({
1755
+ address: this.contractAddress,
1756
+ abi: exports.ERC1155Rarible_jsonAbi,
1757
+ eventName: 'Creators',
1758
+ onLogs: (logs) => {
1759
+ logs.forEach((log) => {
1760
+ callback(log.args);
1761
+ });
1762
+ },
1763
+ });
1764
+ },
1765
+ /**
1766
+ * Watch DefaultApproval events
1289
1767
  * @param callback Function to call when event is emitted
1290
1768
  * @param filter Optional filter for indexed parameters
1291
1769
  * @returns Unwatch function to stop listening
1292
1770
  */
1293
- SecondarySaleFees: (callback) => {
1771
+ DefaultApproval: (callback, filter) => {
1294
1772
  return this.publicClient.watchContractEvent({
1295
1773
  address: this.contractAddress,
1296
- abi: exports.RaribleToken_jsonAbi,
1297
- eventName: 'SecondarySaleFees',
1774
+ abi: exports.ERC1155Rarible_jsonAbi,
1775
+ eventName: 'DefaultApproval',
1776
+ args: filter,
1298
1777
  onLogs: (logs) => {
1299
1778
  logs.forEach((log) => {
1300
1779
  callback(log.args);
@@ -1303,16 +1782,16 @@ class RaribleToken_json {
1303
1782
  });
1304
1783
  },
1305
1784
  /**
1306
- * Watch SignerAdded events
1785
+ * Watch MinterStatusChanged events
1307
1786
  * @param callback Function to call when event is emitted
1308
1787
  * @param filter Optional filter for indexed parameters
1309
1788
  * @returns Unwatch function to stop listening
1310
1789
  */
1311
- SignerAdded: (callback, filter) => {
1790
+ MinterStatusChanged: (callback, filter) => {
1312
1791
  return this.publicClient.watchContractEvent({
1313
1792
  address: this.contractAddress,
1314
- abi: exports.RaribleToken_jsonAbi,
1315
- eventName: 'SignerAdded',
1793
+ abi: exports.ERC1155Rarible_jsonAbi,
1794
+ eventName: 'MinterStatusChanged',
1316
1795
  args: filter,
1317
1796
  onLogs: (logs) => {
1318
1797
  logs.forEach((log) => {
@@ -1322,16 +1801,16 @@ class RaribleToken_json {
1322
1801
  });
1323
1802
  },
1324
1803
  /**
1325
- * Watch SignerRemoved events
1804
+ * Watch OwnershipTransferred events
1326
1805
  * @param callback Function to call when event is emitted
1327
1806
  * @param filter Optional filter for indexed parameters
1328
1807
  * @returns Unwatch function to stop listening
1329
1808
  */
1330
- SignerRemoved: (callback, filter) => {
1809
+ OwnershipTransferred: (callback, filter) => {
1331
1810
  return this.publicClient.watchContractEvent({
1332
1811
  address: this.contractAddress,
1333
- abi: exports.RaribleToken_jsonAbi,
1334
- eventName: 'SignerRemoved',
1812
+ abi: exports.ERC1155Rarible_jsonAbi,
1813
+ eventName: 'OwnershipTransferred',
1335
1814
  args: filter,
1336
1815
  onLogs: (logs) => {
1337
1816
  logs.forEach((log) => {
@@ -1340,6 +1819,42 @@ class RaribleToken_json {
1340
1819
  },
1341
1820
  });
1342
1821
  },
1822
+ /**
1823
+ * Watch RoyaltiesSet events
1824
+ * @param callback Function to call when event is emitted
1825
+ * @param filter Optional filter for indexed parameters
1826
+ * @returns Unwatch function to stop listening
1827
+ */
1828
+ RoyaltiesSet: (callback) => {
1829
+ return this.publicClient.watchContractEvent({
1830
+ address: this.contractAddress,
1831
+ abi: exports.ERC1155Rarible_jsonAbi,
1832
+ eventName: 'RoyaltiesSet',
1833
+ onLogs: (logs) => {
1834
+ logs.forEach((log) => {
1835
+ callback(log.args);
1836
+ });
1837
+ },
1838
+ });
1839
+ },
1840
+ /**
1841
+ * Watch Supply events
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
+ },
1343
1858
  /**
1344
1859
  * Watch TransferBatch events
1345
1860
  * @param callback Function to call when event is emitted
@@ -1349,7 +1864,7 @@ class RaribleToken_json {
1349
1864
  TransferBatch: (callback, filter) => {
1350
1865
  return this.publicClient.watchContractEvent({
1351
1866
  address: this.contractAddress,
1352
- abi: exports.RaribleToken_jsonAbi,
1867
+ abi: exports.ERC1155Rarible_jsonAbi,
1353
1868
  eventName: 'TransferBatch',
1354
1869
  args: filter,
1355
1870
  onLogs: (logs) => {
@@ -1368,7 +1883,7 @@ class RaribleToken_json {
1368
1883
  TransferSingle: (callback, filter) => {
1369
1884
  return this.publicClient.watchContractEvent({
1370
1885
  address: this.contractAddress,
1371
- abi: exports.RaribleToken_jsonAbi,
1886
+ abi: exports.ERC1155Rarible_jsonAbi,
1372
1887
  eventName: 'TransferSingle',
1373
1888
  args: filter,
1374
1889
  onLogs: (logs) => {
@@ -1387,7 +1902,7 @@ class RaribleToken_json {
1387
1902
  URI: (callback, filter) => {
1388
1903
  return this.publicClient.watchContractEvent({
1389
1904
  address: this.contractAddress,
1390
- abi: exports.RaribleToken_jsonAbi,
1905
+ abi: exports.ERC1155Rarible_jsonAbi,
1391
1906
  eventName: 'URI',
1392
1907
  args: filter,
1393
1908
  onLogs: (logs) => {
@@ -1400,4 +1915,4 @@ class RaribleToken_json {
1400
1915
  };
1401
1916
  }
1402
1917
  }
1403
- exports.RaribleToken_json = RaribleToken_json;
1918
+ exports.ERC1155Rarible_json = ERC1155Rarible_json;