@gitmyabi/number 0.0.0-stage → 1.0.0

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