@gitmyabi/wnft 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,1131 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * ETypes.WNFT struct type
4
+ */
5
+ export type ETypes_WNFT = {
6
+ inAsset: ETypes_AssetItem;
7
+ collateral: ETypes_AssetItem[];
8
+ unWrapDestination: `0x${string}`;
9
+ fees: ETypes_Fee[];
10
+ locks: ETypes_Lock[];
11
+ royalties: ETypes_Royalty[];
12
+ rules: `0x${string}`;
13
+ };
14
+ /**
15
+ * ETypes.AssetItem struct type
16
+ */
17
+ export type ETypes_AssetItem = {
18
+ asset: ETypes_Asset;
19
+ tokenId: bigint;
20
+ amount: bigint;
21
+ };
22
+ /**
23
+ * ETypes.Asset struct type
24
+ */
25
+ export type ETypes_Asset = {
26
+ assetType: bigint;
27
+ contractAddress: `0x${string}`;
28
+ };
29
+ /**
30
+ * ETypes.Fee struct type
31
+ */
32
+ export type ETypes_Fee = {
33
+ feeType: `0x${string}`;
34
+ param: bigint;
35
+ token: `0x${string}`;
36
+ };
37
+ /**
38
+ * ETypes.Lock struct type
39
+ */
40
+ export type ETypes_Lock = {
41
+ lockType: `0x${string}`;
42
+ param: bigint;
43
+ };
44
+ /**
45
+ * ETypes.Royalty struct type
46
+ */
47
+ export type ETypes_Royalty = {
48
+ beneficiary: `0x${string}`;
49
+ percent: bigint;
50
+ };
51
+ /**
52
+ * EnvelopwNFT721_json ABI
53
+ *
54
+ * This ABI is typed using viem's type system for full type safety.
55
+ */
56
+ export declare const EnvelopwNFT721_jsonAbi: readonly [{
57
+ readonly inputs: readonly [{
58
+ readonly internalType: "string";
59
+ readonly name: "name_";
60
+ readonly type: "string";
61
+ }, {
62
+ readonly internalType: "string";
63
+ readonly name: "symbol_";
64
+ readonly type: "string";
65
+ }, {
66
+ readonly internalType: "string";
67
+ readonly name: "_baseurl";
68
+ readonly type: "string";
69
+ }];
70
+ readonly stateMutability: "nonpayable";
71
+ readonly type: "constructor";
72
+ }, {
73
+ readonly anonymous: false;
74
+ readonly inputs: readonly [{
75
+ readonly indexed: true;
76
+ readonly internalType: "address";
77
+ readonly name: "owner";
78
+ readonly type: "address";
79
+ }, {
80
+ readonly indexed: true;
81
+ readonly internalType: "address";
82
+ readonly name: "approved";
83
+ readonly type: "address";
84
+ }, {
85
+ readonly indexed: true;
86
+ readonly internalType: "uint256";
87
+ readonly name: "tokenId";
88
+ readonly type: "uint256";
89
+ }];
90
+ readonly name: "Approval";
91
+ readonly type: "event";
92
+ }, {
93
+ readonly anonymous: false;
94
+ readonly inputs: readonly [{
95
+ readonly indexed: true;
96
+ readonly internalType: "address";
97
+ readonly name: "owner";
98
+ readonly type: "address";
99
+ }, {
100
+ readonly indexed: true;
101
+ readonly internalType: "address";
102
+ readonly name: "operator";
103
+ readonly type: "address";
104
+ }, {
105
+ readonly indexed: false;
106
+ readonly internalType: "bool";
107
+ readonly name: "approved";
108
+ readonly type: "bool";
109
+ }];
110
+ readonly name: "ApprovalForAll";
111
+ readonly type: "event";
112
+ }, {
113
+ readonly anonymous: false;
114
+ readonly inputs: readonly [{
115
+ readonly indexed: true;
116
+ readonly internalType: "address";
117
+ readonly name: "previousOwner";
118
+ readonly type: "address";
119
+ }, {
120
+ readonly indexed: true;
121
+ readonly internalType: "address";
122
+ readonly name: "newOwner";
123
+ readonly type: "address";
124
+ }];
125
+ readonly name: "OwnershipTransferred";
126
+ readonly type: "event";
127
+ }, {
128
+ readonly anonymous: false;
129
+ readonly inputs: readonly [{
130
+ readonly indexed: true;
131
+ readonly internalType: "address";
132
+ readonly name: "from";
133
+ readonly type: "address";
134
+ }, {
135
+ readonly indexed: true;
136
+ readonly internalType: "address";
137
+ readonly name: "to";
138
+ readonly type: "address";
139
+ }, {
140
+ readonly indexed: true;
141
+ readonly internalType: "uint256";
142
+ readonly name: "tokenId";
143
+ readonly type: "uint256";
144
+ }];
145
+ readonly name: "Transfer";
146
+ readonly type: "event";
147
+ }, {
148
+ readonly inputs: readonly [{
149
+ readonly internalType: "address";
150
+ readonly name: "to";
151
+ readonly type: "address";
152
+ }, {
153
+ readonly internalType: "uint256";
154
+ readonly name: "tokenId";
155
+ readonly type: "uint256";
156
+ }];
157
+ readonly name: "approve";
158
+ readonly outputs: readonly [];
159
+ readonly stateMutability: "nonpayable";
160
+ readonly type: "function";
161
+ }, {
162
+ readonly inputs: readonly [{
163
+ readonly internalType: "address";
164
+ readonly name: "owner";
165
+ readonly type: "address";
166
+ }];
167
+ readonly name: "balanceOf";
168
+ readonly outputs: readonly [{
169
+ readonly internalType: "uint256";
170
+ readonly name: "";
171
+ readonly type: "uint256";
172
+ }];
173
+ readonly stateMutability: "view";
174
+ readonly type: "function";
175
+ }, {
176
+ readonly inputs: readonly [];
177
+ readonly name: "baseURI";
178
+ readonly outputs: readonly [{
179
+ readonly internalType: "string";
180
+ readonly name: "";
181
+ readonly type: "string";
182
+ }];
183
+ readonly stateMutability: "view";
184
+ readonly type: "function";
185
+ }, {
186
+ readonly inputs: readonly [];
187
+ readonly name: "baseurl";
188
+ readonly outputs: readonly [{
189
+ readonly internalType: "string";
190
+ readonly name: "";
191
+ readonly type: "string";
192
+ }];
193
+ readonly stateMutability: "view";
194
+ readonly type: "function";
195
+ }, {
196
+ readonly inputs: readonly [{
197
+ readonly internalType: "uint256";
198
+ readonly name: "tokenId";
199
+ readonly type: "uint256";
200
+ }];
201
+ readonly name: "burn";
202
+ readonly outputs: readonly [];
203
+ readonly stateMutability: "nonpayable";
204
+ readonly type: "function";
205
+ }, {
206
+ readonly inputs: readonly [{
207
+ readonly internalType: "uint256";
208
+ readonly name: "_tokenId";
209
+ readonly type: "uint256";
210
+ }];
211
+ readonly name: "exists";
212
+ readonly outputs: readonly [{
213
+ readonly internalType: "bool";
214
+ readonly name: "";
215
+ readonly type: "bool";
216
+ }];
217
+ readonly stateMutability: "view";
218
+ readonly type: "function";
219
+ }, {
220
+ readonly inputs: readonly [{
221
+ readonly internalType: "uint256";
222
+ readonly name: "tokenId";
223
+ readonly type: "uint256";
224
+ }];
225
+ readonly name: "getApproved";
226
+ readonly outputs: readonly [{
227
+ readonly internalType: "address";
228
+ readonly name: "";
229
+ readonly type: "address";
230
+ }];
231
+ readonly stateMutability: "view";
232
+ readonly type: "function";
233
+ }, {
234
+ readonly inputs: readonly [{
235
+ readonly internalType: "address";
236
+ readonly name: "owner";
237
+ readonly type: "address";
238
+ }, {
239
+ readonly internalType: "address";
240
+ readonly name: "operator";
241
+ readonly type: "address";
242
+ }];
243
+ readonly name: "isApprovedForAll";
244
+ readonly outputs: readonly [{
245
+ readonly internalType: "bool";
246
+ readonly name: "";
247
+ readonly type: "bool";
248
+ }];
249
+ readonly stateMutability: "view";
250
+ readonly type: "function";
251
+ }, {
252
+ readonly inputs: readonly [{
253
+ readonly internalType: "address";
254
+ readonly name: "_to";
255
+ readonly type: "address";
256
+ }, {
257
+ readonly internalType: "uint256";
258
+ readonly name: "_tokenId";
259
+ readonly type: "uint256";
260
+ }];
261
+ readonly name: "mint";
262
+ readonly outputs: readonly [];
263
+ readonly stateMutability: "nonpayable";
264
+ readonly type: "function";
265
+ }, {
266
+ readonly inputs: readonly [];
267
+ readonly name: "name";
268
+ readonly outputs: readonly [{
269
+ readonly internalType: "string";
270
+ readonly name: "";
271
+ readonly type: "string";
272
+ }];
273
+ readonly stateMutability: "view";
274
+ readonly type: "function";
275
+ }, {
276
+ readonly inputs: readonly [];
277
+ readonly name: "owner";
278
+ readonly outputs: readonly [{
279
+ readonly internalType: "address";
280
+ readonly name: "";
281
+ readonly type: "address";
282
+ }];
283
+ readonly stateMutability: "view";
284
+ readonly type: "function";
285
+ }, {
286
+ readonly inputs: readonly [{
287
+ readonly internalType: "uint256";
288
+ readonly name: "tokenId";
289
+ readonly type: "uint256";
290
+ }];
291
+ readonly name: "ownerOf";
292
+ readonly outputs: readonly [{
293
+ readonly internalType: "address";
294
+ readonly name: "";
295
+ readonly type: "address";
296
+ }];
297
+ readonly stateMutability: "view";
298
+ readonly type: "function";
299
+ }, {
300
+ readonly inputs: readonly [];
301
+ readonly name: "renounceOwnership";
302
+ readonly outputs: readonly [];
303
+ readonly stateMutability: "nonpayable";
304
+ readonly type: "function";
305
+ }, {
306
+ readonly inputs: readonly [{
307
+ readonly internalType: "address";
308
+ readonly name: "from";
309
+ readonly type: "address";
310
+ }, {
311
+ readonly internalType: "address";
312
+ readonly name: "to";
313
+ readonly type: "address";
314
+ }, {
315
+ readonly internalType: "uint256";
316
+ readonly name: "tokenId";
317
+ readonly type: "uint256";
318
+ }];
319
+ readonly name: "safeTransferFrom";
320
+ readonly outputs: readonly [];
321
+ readonly stateMutability: "nonpayable";
322
+ readonly type: "function";
323
+ }, {
324
+ readonly inputs: readonly [{
325
+ readonly internalType: "address";
326
+ readonly name: "from";
327
+ readonly type: "address";
328
+ }, {
329
+ readonly internalType: "address";
330
+ readonly name: "to";
331
+ readonly type: "address";
332
+ }, {
333
+ readonly internalType: "uint256";
334
+ readonly name: "tokenId";
335
+ readonly type: "uint256";
336
+ }, {
337
+ readonly internalType: "bytes";
338
+ readonly name: "_data";
339
+ readonly type: "bytes";
340
+ }];
341
+ readonly name: "safeTransferFrom";
342
+ readonly outputs: readonly [];
343
+ readonly stateMutability: "nonpayable";
344
+ readonly type: "function";
345
+ }, {
346
+ readonly inputs: readonly [{
347
+ readonly internalType: "address";
348
+ readonly name: "operator";
349
+ readonly type: "address";
350
+ }, {
351
+ readonly internalType: "bool";
352
+ readonly name: "approved";
353
+ readonly type: "bool";
354
+ }];
355
+ readonly name: "setApprovalForAll";
356
+ readonly outputs: readonly [];
357
+ readonly stateMutability: "nonpayable";
358
+ readonly type: "function";
359
+ }, {
360
+ readonly inputs: readonly [{
361
+ readonly internalType: "address";
362
+ readonly name: "_minter";
363
+ readonly type: "address";
364
+ }];
365
+ readonly name: "setMinter";
366
+ readonly outputs: readonly [];
367
+ readonly stateMutability: "nonpayable";
368
+ readonly type: "function";
369
+ }, {
370
+ readonly inputs: readonly [{
371
+ readonly internalType: "bytes4";
372
+ readonly name: "interfaceId";
373
+ readonly type: "bytes4";
374
+ }];
375
+ readonly name: "supportsInterface";
376
+ readonly outputs: readonly [{
377
+ readonly internalType: "bool";
378
+ readonly name: "";
379
+ readonly type: "bool";
380
+ }];
381
+ readonly stateMutability: "view";
382
+ readonly type: "function";
383
+ }, {
384
+ readonly inputs: readonly [];
385
+ readonly name: "symbol";
386
+ readonly outputs: readonly [{
387
+ readonly internalType: "string";
388
+ readonly name: "";
389
+ readonly type: "string";
390
+ }];
391
+ readonly stateMutability: "view";
392
+ readonly type: "function";
393
+ }, {
394
+ readonly inputs: readonly [{
395
+ readonly internalType: "uint256";
396
+ readonly name: "index";
397
+ readonly type: "uint256";
398
+ }];
399
+ readonly name: "tokenByIndex";
400
+ readonly outputs: readonly [{
401
+ readonly internalType: "uint256";
402
+ readonly name: "";
403
+ readonly type: "uint256";
404
+ }];
405
+ readonly stateMutability: "view";
406
+ readonly type: "function";
407
+ }, {
408
+ readonly inputs: readonly [{
409
+ readonly internalType: "address";
410
+ readonly name: "owner";
411
+ readonly type: "address";
412
+ }, {
413
+ readonly internalType: "uint256";
414
+ readonly name: "index";
415
+ readonly type: "uint256";
416
+ }];
417
+ readonly name: "tokenOfOwnerByIndex";
418
+ readonly outputs: readonly [{
419
+ readonly internalType: "uint256";
420
+ readonly name: "";
421
+ readonly type: "uint256";
422
+ }];
423
+ readonly stateMutability: "view";
424
+ readonly type: "function";
425
+ }, {
426
+ readonly inputs: readonly [{
427
+ readonly internalType: "uint256";
428
+ readonly name: "_tokenId";
429
+ readonly type: "uint256";
430
+ }];
431
+ readonly name: "tokenURI";
432
+ readonly outputs: readonly [{
433
+ readonly internalType: "string";
434
+ readonly name: "_uri";
435
+ readonly type: "string";
436
+ }];
437
+ readonly stateMutability: "view";
438
+ readonly type: "function";
439
+ }, {
440
+ readonly inputs: readonly [];
441
+ readonly name: "totalSupply";
442
+ readonly outputs: readonly [{
443
+ readonly internalType: "uint256";
444
+ readonly name: "";
445
+ readonly type: "uint256";
446
+ }];
447
+ readonly stateMutability: "view";
448
+ readonly type: "function";
449
+ }, {
450
+ readonly inputs: readonly [{
451
+ readonly internalType: "address";
452
+ readonly name: "from";
453
+ readonly type: "address";
454
+ }, {
455
+ readonly internalType: "address";
456
+ readonly name: "to";
457
+ readonly type: "address";
458
+ }, {
459
+ readonly internalType: "uint256";
460
+ readonly name: "tokenId";
461
+ readonly type: "uint256";
462
+ }];
463
+ readonly name: "transferFrom";
464
+ readonly outputs: readonly [];
465
+ readonly stateMutability: "nonpayable";
466
+ readonly type: "function";
467
+ }, {
468
+ readonly inputs: readonly [{
469
+ readonly internalType: "address";
470
+ readonly name: "newOwner";
471
+ readonly type: "address";
472
+ }];
473
+ readonly name: "transferOwnership";
474
+ readonly outputs: readonly [];
475
+ readonly stateMutability: "nonpayable";
476
+ readonly type: "function";
477
+ }, {
478
+ readonly inputs: readonly [{
479
+ readonly internalType: "uint256";
480
+ readonly name: "tokenId";
481
+ readonly type: "uint256";
482
+ }];
483
+ readonly name: "wnftInfo";
484
+ readonly outputs: readonly [{
485
+ readonly components: readonly [{
486
+ readonly components: readonly [{
487
+ readonly components: readonly [{
488
+ readonly internalType: "enum ETypes.AssetType";
489
+ readonly name: "assetType";
490
+ readonly type: "uint8";
491
+ }, {
492
+ readonly internalType: "address";
493
+ readonly name: "contractAddress";
494
+ readonly type: "address";
495
+ }];
496
+ readonly internalType: "struct ETypes.Asset";
497
+ readonly name: "asset";
498
+ readonly type: "tuple";
499
+ }, {
500
+ readonly internalType: "uint256";
501
+ readonly name: "tokenId";
502
+ readonly type: "uint256";
503
+ }, {
504
+ readonly internalType: "uint256";
505
+ readonly name: "amount";
506
+ readonly type: "uint256";
507
+ }];
508
+ readonly internalType: "struct ETypes.AssetItem";
509
+ readonly name: "inAsset";
510
+ readonly type: "tuple";
511
+ }, {
512
+ readonly components: readonly [{
513
+ readonly components: readonly [{
514
+ readonly internalType: "enum ETypes.AssetType";
515
+ readonly name: "assetType";
516
+ readonly type: "uint8";
517
+ }, {
518
+ readonly internalType: "address";
519
+ readonly name: "contractAddress";
520
+ readonly type: "address";
521
+ }];
522
+ readonly internalType: "struct ETypes.Asset";
523
+ readonly name: "asset";
524
+ readonly type: "tuple";
525
+ }, {
526
+ readonly internalType: "uint256";
527
+ readonly name: "tokenId";
528
+ readonly type: "uint256";
529
+ }, {
530
+ readonly internalType: "uint256";
531
+ readonly name: "amount";
532
+ readonly type: "uint256";
533
+ }];
534
+ readonly internalType: "struct ETypes.AssetItem[]";
535
+ readonly name: "collateral";
536
+ readonly type: "tuple[]";
537
+ }, {
538
+ readonly internalType: "address";
539
+ readonly name: "unWrapDestination";
540
+ readonly type: "address";
541
+ }, {
542
+ readonly components: readonly [{
543
+ readonly internalType: "bytes1";
544
+ readonly name: "feeType";
545
+ readonly type: "bytes1";
546
+ }, {
547
+ readonly internalType: "uint256";
548
+ readonly name: "param";
549
+ readonly type: "uint256";
550
+ }, {
551
+ readonly internalType: "address";
552
+ readonly name: "token";
553
+ readonly type: "address";
554
+ }];
555
+ readonly internalType: "struct ETypes.Fee[]";
556
+ readonly name: "fees";
557
+ readonly type: "tuple[]";
558
+ }, {
559
+ readonly components: readonly [{
560
+ readonly internalType: "bytes1";
561
+ readonly name: "lockType";
562
+ readonly type: "bytes1";
563
+ }, {
564
+ readonly internalType: "uint256";
565
+ readonly name: "param";
566
+ readonly type: "uint256";
567
+ }];
568
+ readonly internalType: "struct ETypes.Lock[]";
569
+ readonly name: "locks";
570
+ readonly type: "tuple[]";
571
+ }, {
572
+ readonly components: readonly [{
573
+ readonly internalType: "address";
574
+ readonly name: "beneficiary";
575
+ readonly type: "address";
576
+ }, {
577
+ readonly internalType: "uint16";
578
+ readonly name: "percent";
579
+ readonly type: "uint16";
580
+ }];
581
+ readonly internalType: "struct ETypes.Royalty[]";
582
+ readonly name: "royalties";
583
+ readonly type: "tuple[]";
584
+ }, {
585
+ readonly internalType: "bytes2";
586
+ readonly name: "rules";
587
+ readonly type: "bytes2";
588
+ }];
589
+ readonly internalType: "struct ETypes.WNFT";
590
+ readonly name: "";
591
+ readonly type: "tuple";
592
+ }];
593
+ readonly stateMutability: "view";
594
+ readonly type: "function";
595
+ }, {
596
+ readonly inputs: readonly [];
597
+ readonly name: "wrapperMinter";
598
+ readonly outputs: readonly [{
599
+ readonly internalType: "address";
600
+ readonly name: "";
601
+ readonly type: "address";
602
+ }];
603
+ readonly stateMutability: "view";
604
+ readonly type: "function";
605
+ }];
606
+ /**
607
+ * Type-safe ABI for EnvelopwNFT721_json
608
+ */
609
+ export type EnvelopwNFT721_jsonAbi = typeof EnvelopwNFT721_jsonAbi;
610
+ /**
611
+ * Contract instance type for EnvelopwNFT721_json
612
+ */
613
+ export type EnvelopwNFT721_jsonContract = any;
614
+ /**
615
+ * EnvelopwNFT721_json Contract Class
616
+ *
617
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
618
+ *
619
+ * @example
620
+ * ```typescript
621
+ * import { createPublicClient, createWalletClient, http } from 'viem';
622
+ * import { mainnet } from 'viem/chains';
623
+ * import { EnvelopwNFT721_json } from 'EnvelopwNFT721_json';
624
+ *
625
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
626
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
627
+ *
628
+ * const contract = new EnvelopwNFT721_json('0x...', { publicClient, walletClient });
629
+ *
630
+ * // Read functions
631
+ * const result = await contract.balanceOf('0x...');
632
+ *
633
+ * // Write functions
634
+ * const hash = await contract.transfer('0x...', 1000n);
635
+ *
636
+ * // Simulate transactions (dry-run)
637
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
638
+ * console.log('Gas estimate:', simulation.request.gas);
639
+ *
640
+ * // Watch events
641
+ * const unwatch = contract.watch.Transfer((event) => {
642
+ * console.log('Transfer event:', event);
643
+ * });
644
+ * ```
645
+ */
646
+ export declare class EnvelopwNFT721_json {
647
+ private contract;
648
+ private contractAddress;
649
+ private publicClient;
650
+ constructor(address: Address, clients: {
651
+ publicClient: PublicClient;
652
+ walletClient?: WalletClient;
653
+ });
654
+ /**
655
+ * Get the contract address
656
+ */
657
+ get address(): Address;
658
+ /**
659
+ * Get the underlying viem contract instance
660
+ */
661
+ getContract(): EnvelopwNFT721_jsonContract;
662
+ /**
663
+ * balanceOf
664
+ * view
665
+ */
666
+ balanceOf(owner: `0x${string}`): Promise<bigint>;
667
+ /**
668
+ * baseURI
669
+ * view
670
+ */
671
+ baseURI(): Promise<string>;
672
+ /**
673
+ * baseurl
674
+ * view
675
+ */
676
+ baseurl(): Promise<string>;
677
+ /**
678
+ * exists
679
+ * view
680
+ */
681
+ exists(_tokenId: bigint): Promise<boolean>;
682
+ /**
683
+ * getApproved
684
+ * view
685
+ */
686
+ getApproved(tokenId: bigint): Promise<`0x${string}`>;
687
+ /**
688
+ * isApprovedForAll
689
+ * view
690
+ */
691
+ isApprovedForAll(owner: `0x${string}`, operator: `0x${string}`): Promise<boolean>;
692
+ /**
693
+ * name
694
+ * view
695
+ */
696
+ name(): Promise<string>;
697
+ /**
698
+ * owner
699
+ * view
700
+ */
701
+ owner(): Promise<`0x${string}`>;
702
+ /**
703
+ * ownerOf
704
+ * view
705
+ */
706
+ ownerOf(tokenId: bigint): Promise<`0x${string}`>;
707
+ /**
708
+ * supportsInterface
709
+ * view
710
+ */
711
+ supportsInterface(interfaceId: `0x${string}`): Promise<boolean>;
712
+ /**
713
+ * symbol
714
+ * view
715
+ */
716
+ symbol(): Promise<string>;
717
+ /**
718
+ * tokenByIndex
719
+ * view
720
+ */
721
+ tokenByIndex(index: bigint): Promise<bigint>;
722
+ /**
723
+ * tokenOfOwnerByIndex
724
+ * view
725
+ */
726
+ tokenOfOwnerByIndex(owner: `0x${string}`, index: bigint): Promise<bigint>;
727
+ /**
728
+ * tokenURI
729
+ * view
730
+ */
731
+ tokenURI(_tokenId: bigint): Promise<string>;
732
+ /**
733
+ * totalSupply
734
+ * view
735
+ */
736
+ totalSupply(): Promise<bigint>;
737
+ /**
738
+ * wnftInfo
739
+ * view
740
+ */
741
+ wnftInfo(tokenId: bigint): Promise<ETypes_WNFT>;
742
+ /**
743
+ * wrapperMinter
744
+ * view
745
+ */
746
+ wrapperMinter(): Promise<`0x${string}`>;
747
+ /**
748
+ * approve
749
+ * nonpayable
750
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
751
+ */
752
+ approve(to: `0x${string}`, tokenId: bigint, options?: {
753
+ accessList?: import('viem').AccessList;
754
+ authorizationList?: import('viem').AuthorizationList;
755
+ chain?: import('viem').Chain | null;
756
+ dataSuffix?: `0x${string}`;
757
+ gas?: bigint;
758
+ gasPrice?: bigint;
759
+ maxFeePerGas?: bigint;
760
+ maxPriorityFeePerGas?: bigint;
761
+ nonce?: number;
762
+ value?: bigint;
763
+ }): Promise<`0x${string}`>;
764
+ /**
765
+ * burn
766
+ * nonpayable
767
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
768
+ */
769
+ burn(tokenId: bigint, options?: {
770
+ accessList?: import('viem').AccessList;
771
+ authorizationList?: import('viem').AuthorizationList;
772
+ chain?: import('viem').Chain | null;
773
+ dataSuffix?: `0x${string}`;
774
+ gas?: bigint;
775
+ gasPrice?: bigint;
776
+ maxFeePerGas?: bigint;
777
+ maxPriorityFeePerGas?: bigint;
778
+ nonce?: number;
779
+ value?: bigint;
780
+ }): Promise<`0x${string}`>;
781
+ /**
782
+ * mint
783
+ * nonpayable
784
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
785
+ */
786
+ mint(_to: `0x${string}`, _tokenId: bigint, options?: {
787
+ accessList?: import('viem').AccessList;
788
+ authorizationList?: import('viem').AuthorizationList;
789
+ chain?: import('viem').Chain | null;
790
+ dataSuffix?: `0x${string}`;
791
+ gas?: bigint;
792
+ gasPrice?: bigint;
793
+ maxFeePerGas?: bigint;
794
+ maxPriorityFeePerGas?: bigint;
795
+ nonce?: number;
796
+ value?: bigint;
797
+ }): Promise<`0x${string}`>;
798
+ /**
799
+ * renounceOwnership
800
+ * nonpayable
801
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
802
+ */
803
+ renounceOwnership(options?: {
804
+ accessList?: import('viem').AccessList;
805
+ authorizationList?: import('viem').AuthorizationList;
806
+ chain?: import('viem').Chain | null;
807
+ dataSuffix?: `0x${string}`;
808
+ gas?: bigint;
809
+ gasPrice?: bigint;
810
+ maxFeePerGas?: bigint;
811
+ maxPriorityFeePerGas?: bigint;
812
+ nonce?: number;
813
+ value?: bigint;
814
+ }): Promise<`0x${string}`>;
815
+ safeTransferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
816
+ accessList?: import('viem').AccessList;
817
+ authorizationList?: import('viem').AuthorizationList;
818
+ chain?: import('viem').Chain | null;
819
+ dataSuffix?: `0x${string}`;
820
+ gas?: bigint;
821
+ gasPrice?: bigint;
822
+ maxFeePerGas?: bigint;
823
+ maxPriorityFeePerGas?: bigint;
824
+ nonce?: number;
825
+ value?: bigint;
826
+ }): Promise<`0x${string}`>;
827
+ safeTransferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, _data: `0x${string}`, options?: {
828
+ accessList?: import('viem').AccessList;
829
+ authorizationList?: import('viem').AuthorizationList;
830
+ chain?: import('viem').Chain | null;
831
+ dataSuffix?: `0x${string}`;
832
+ gas?: bigint;
833
+ gasPrice?: bigint;
834
+ maxFeePerGas?: bigint;
835
+ maxPriorityFeePerGas?: bigint;
836
+ nonce?: number;
837
+ value?: bigint;
838
+ }): Promise<`0x${string}`>;
839
+ /**
840
+ * setApprovalForAll
841
+ * nonpayable
842
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
843
+ */
844
+ setApprovalForAll(operator: `0x${string}`, approved: boolean, options?: {
845
+ accessList?: import('viem').AccessList;
846
+ authorizationList?: import('viem').AuthorizationList;
847
+ chain?: import('viem').Chain | null;
848
+ dataSuffix?: `0x${string}`;
849
+ gas?: bigint;
850
+ gasPrice?: bigint;
851
+ maxFeePerGas?: bigint;
852
+ maxPriorityFeePerGas?: bigint;
853
+ nonce?: number;
854
+ value?: bigint;
855
+ }): Promise<`0x${string}`>;
856
+ /**
857
+ * setMinter
858
+ * nonpayable
859
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
860
+ */
861
+ setMinter(_minter: `0x${string}`, options?: {
862
+ accessList?: import('viem').AccessList;
863
+ authorizationList?: import('viem').AuthorizationList;
864
+ chain?: import('viem').Chain | null;
865
+ dataSuffix?: `0x${string}`;
866
+ gas?: bigint;
867
+ gasPrice?: bigint;
868
+ maxFeePerGas?: bigint;
869
+ maxPriorityFeePerGas?: bigint;
870
+ nonce?: number;
871
+ value?: bigint;
872
+ }): Promise<`0x${string}`>;
873
+ /**
874
+ * transferFrom
875
+ * nonpayable
876
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
877
+ */
878
+ transferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
879
+ accessList?: import('viem').AccessList;
880
+ authorizationList?: import('viem').AuthorizationList;
881
+ chain?: import('viem').Chain | null;
882
+ dataSuffix?: `0x${string}`;
883
+ gas?: bigint;
884
+ gasPrice?: bigint;
885
+ maxFeePerGas?: bigint;
886
+ maxPriorityFeePerGas?: bigint;
887
+ nonce?: number;
888
+ value?: bigint;
889
+ }): Promise<`0x${string}`>;
890
+ /**
891
+ * transferOwnership
892
+ * nonpayable
893
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
894
+ */
895
+ transferOwnership(newOwner: `0x${string}`, options?: {
896
+ accessList?: import('viem').AccessList;
897
+ authorizationList?: import('viem').AuthorizationList;
898
+ chain?: import('viem').Chain | null;
899
+ dataSuffix?: `0x${string}`;
900
+ gas?: bigint;
901
+ gasPrice?: bigint;
902
+ maxFeePerGas?: bigint;
903
+ maxPriorityFeePerGas?: bigint;
904
+ nonce?: number;
905
+ value?: bigint;
906
+ }): Promise<`0x${string}`>;
907
+ /**
908
+ * Simulate contract write operations (dry-run without sending transaction)
909
+ *
910
+ * @example
911
+ * const result = await contract.simulate.transfer('0x...', 1000n);
912
+ * console.log('Gas estimate:', result.request.gas);
913
+ * console.log('Would succeed:', result.result);
914
+ */
915
+ get simulate(): {
916
+ /**
917
+ * Simulate approve
918
+ * Returns gas estimate and result without sending transaction
919
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
920
+ */
921
+ approve(to: `0x${string}`, tokenId: bigint, options?: {
922
+ accessList?: import("viem").AccessList;
923
+ authorizationList?: import("viem").AuthorizationList;
924
+ chain?: import("viem").Chain | null;
925
+ dataSuffix?: `0x${string}`;
926
+ gas?: bigint;
927
+ gasPrice?: bigint;
928
+ maxFeePerGas?: bigint;
929
+ maxPriorityFeePerGas?: bigint;
930
+ nonce?: number;
931
+ value?: bigint;
932
+ }): Promise<void>;
933
+ /**
934
+ * Simulate burn
935
+ * Returns gas estimate and result without sending transaction
936
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
937
+ */
938
+ burn(tokenId: bigint, options?: {
939
+ accessList?: import("viem").AccessList;
940
+ authorizationList?: import("viem").AuthorizationList;
941
+ chain?: import("viem").Chain | null;
942
+ dataSuffix?: `0x${string}`;
943
+ gas?: bigint;
944
+ gasPrice?: bigint;
945
+ maxFeePerGas?: bigint;
946
+ maxPriorityFeePerGas?: bigint;
947
+ nonce?: number;
948
+ value?: bigint;
949
+ }): Promise<void>;
950
+ /**
951
+ * Simulate mint
952
+ * Returns gas estimate and result without sending transaction
953
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
954
+ */
955
+ mint(_to: `0x${string}`, _tokenId: bigint, options?: {
956
+ accessList?: import("viem").AccessList;
957
+ authorizationList?: import("viem").AuthorizationList;
958
+ chain?: import("viem").Chain | null;
959
+ dataSuffix?: `0x${string}`;
960
+ gas?: bigint;
961
+ gasPrice?: bigint;
962
+ maxFeePerGas?: bigint;
963
+ maxPriorityFeePerGas?: bigint;
964
+ nonce?: number;
965
+ value?: bigint;
966
+ }): Promise<void>;
967
+ /**
968
+ * Simulate renounceOwnership
969
+ * Returns gas estimate and result without sending transaction
970
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
971
+ */
972
+ renounceOwnership(options?: {
973
+ accessList?: import("viem").AccessList;
974
+ authorizationList?: import("viem").AuthorizationList;
975
+ chain?: import("viem").Chain | null;
976
+ dataSuffix?: `0x${string}`;
977
+ gas?: bigint;
978
+ gasPrice?: bigint;
979
+ maxFeePerGas?: bigint;
980
+ maxPriorityFeePerGas?: bigint;
981
+ nonce?: number;
982
+ value?: bigint;
983
+ }): Promise<void>;
984
+ /**
985
+ * Simulate safeTransferFrom
986
+ * Returns gas estimate and result without sending transaction
987
+ * Supports multiple overloads: (address, address, uint256), (address, address, uint256, bytes)
988
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
989
+ */
990
+ safeTransferFrom(...args: any[]): Promise<any>;
991
+ /**
992
+ * Simulate setApprovalForAll
993
+ * Returns gas estimate and result without sending transaction
994
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
995
+ */
996
+ setApprovalForAll(operator: `0x${string}`, approved: boolean, options?: {
997
+ accessList?: import("viem").AccessList;
998
+ authorizationList?: import("viem").AuthorizationList;
999
+ chain?: import("viem").Chain | null;
1000
+ dataSuffix?: `0x${string}`;
1001
+ gas?: bigint;
1002
+ gasPrice?: bigint;
1003
+ maxFeePerGas?: bigint;
1004
+ maxPriorityFeePerGas?: bigint;
1005
+ nonce?: number;
1006
+ value?: bigint;
1007
+ }): Promise<void>;
1008
+ /**
1009
+ * Simulate setMinter
1010
+ * Returns gas estimate and result without sending transaction
1011
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1012
+ */
1013
+ setMinter(_minter: `0x${string}`, options?: {
1014
+ accessList?: import("viem").AccessList;
1015
+ authorizationList?: import("viem").AuthorizationList;
1016
+ chain?: import("viem").Chain | null;
1017
+ dataSuffix?: `0x${string}`;
1018
+ gas?: bigint;
1019
+ gasPrice?: bigint;
1020
+ maxFeePerGas?: bigint;
1021
+ maxPriorityFeePerGas?: bigint;
1022
+ nonce?: number;
1023
+ value?: bigint;
1024
+ }): Promise<void>;
1025
+ /**
1026
+ * Simulate transferFrom
1027
+ * Returns gas estimate and result without sending transaction
1028
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1029
+ */
1030
+ transferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
1031
+ accessList?: import("viem").AccessList;
1032
+ authorizationList?: import("viem").AuthorizationList;
1033
+ chain?: import("viem").Chain | null;
1034
+ dataSuffix?: `0x${string}`;
1035
+ gas?: bigint;
1036
+ gasPrice?: bigint;
1037
+ maxFeePerGas?: bigint;
1038
+ maxPriorityFeePerGas?: bigint;
1039
+ nonce?: number;
1040
+ value?: bigint;
1041
+ }): Promise<void>;
1042
+ /**
1043
+ * Simulate transferOwnership
1044
+ * Returns gas estimate and result without sending transaction
1045
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1046
+ */
1047
+ transferOwnership(newOwner: `0x${string}`, options?: {
1048
+ accessList?: import("viem").AccessList;
1049
+ authorizationList?: import("viem").AuthorizationList;
1050
+ chain?: import("viem").Chain | null;
1051
+ dataSuffix?: `0x${string}`;
1052
+ gas?: bigint;
1053
+ gasPrice?: bigint;
1054
+ maxFeePerGas?: bigint;
1055
+ maxPriorityFeePerGas?: bigint;
1056
+ nonce?: number;
1057
+ value?: bigint;
1058
+ }): Promise<void>;
1059
+ };
1060
+ /**
1061
+ * Watch contract events
1062
+ *
1063
+ * @example
1064
+ * // Watch all Transfer events
1065
+ * const unwatch = contract.watch.Transfer((event) => {
1066
+ * console.log('Transfer:', event);
1067
+ * });
1068
+ *
1069
+ * // Stop watching
1070
+ * unwatch();
1071
+ */
1072
+ get watch(): {
1073
+ /**
1074
+ * Watch Approval events
1075
+ * @param callback Function to call when event is emitted
1076
+ * @param filter Optional filter for indexed parameters
1077
+ * @returns Unwatch function to stop listening
1078
+ */
1079
+ Approval: (callback: (event: {
1080
+ owner: `0x${string}`;
1081
+ approved: `0x${string}`;
1082
+ tokenId: bigint;
1083
+ }) => void, filter?: {
1084
+ owner: `0x${string}`;
1085
+ approved: `0x${string}`;
1086
+ tokenId: bigint;
1087
+ }) => () => void;
1088
+ /**
1089
+ * Watch ApprovalForAll events
1090
+ * @param callback Function to call when event is emitted
1091
+ * @param filter Optional filter for indexed parameters
1092
+ * @returns Unwatch function to stop listening
1093
+ */
1094
+ ApprovalForAll: (callback: (event: {
1095
+ owner: `0x${string}`;
1096
+ operator: `0x${string}`;
1097
+ approved: boolean;
1098
+ }) => void, filter?: {
1099
+ owner: `0x${string}`;
1100
+ operator: `0x${string}`;
1101
+ }) => () => void;
1102
+ /**
1103
+ * Watch OwnershipTransferred events
1104
+ * @param callback Function to call when event is emitted
1105
+ * @param filter Optional filter for indexed parameters
1106
+ * @returns Unwatch function to stop listening
1107
+ */
1108
+ OwnershipTransferred: (callback: (event: {
1109
+ previousOwner: `0x${string}`;
1110
+ newOwner: `0x${string}`;
1111
+ }) => void, filter?: {
1112
+ previousOwner: `0x${string}`;
1113
+ newOwner: `0x${string}`;
1114
+ }) => () => void;
1115
+ /**
1116
+ * Watch Transfer events
1117
+ * @param callback Function to call when event is emitted
1118
+ * @param filter Optional filter for indexed parameters
1119
+ * @returns Unwatch function to stop listening
1120
+ */
1121
+ Transfer: (callback: (event: {
1122
+ from: `0x${string}`;
1123
+ to: `0x${string}`;
1124
+ tokenId: bigint;
1125
+ }) => void, filter?: {
1126
+ from: `0x${string}`;
1127
+ to: `0x${string}`;
1128
+ tokenId: bigint;
1129
+ }) => () => void;
1130
+ };
1131
+ }