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