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