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