@gitmyabi/pngvn 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,762 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * Pngvn1 ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const Pngvn1Abi: readonly [{
8
+ readonly inputs: readonly [{
9
+ readonly internalType: "address";
10
+ readonly name: "initialOwner";
11
+ readonly type: "address";
12
+ }];
13
+ readonly stateMutability: "nonpayable";
14
+ readonly type: "constructor";
15
+ }, {
16
+ readonly inputs: readonly [{
17
+ readonly internalType: "address";
18
+ readonly name: "spender";
19
+ readonly type: "address";
20
+ }, {
21
+ readonly internalType: "uint256";
22
+ readonly name: "allowance";
23
+ readonly type: "uint256";
24
+ }, {
25
+ readonly internalType: "uint256";
26
+ readonly name: "needed";
27
+ readonly type: "uint256";
28
+ }];
29
+ readonly name: "ERC20InsufficientAllowance";
30
+ readonly type: "error";
31
+ }, {
32
+ readonly inputs: readonly [{
33
+ readonly internalType: "address";
34
+ readonly name: "sender";
35
+ readonly type: "address";
36
+ }, {
37
+ readonly internalType: "uint256";
38
+ readonly name: "balance";
39
+ readonly type: "uint256";
40
+ }, {
41
+ readonly internalType: "uint256";
42
+ readonly name: "needed";
43
+ readonly type: "uint256";
44
+ }];
45
+ readonly name: "ERC20InsufficientBalance";
46
+ readonly type: "error";
47
+ }, {
48
+ readonly inputs: readonly [{
49
+ readonly internalType: "address";
50
+ readonly name: "approver";
51
+ readonly type: "address";
52
+ }];
53
+ readonly name: "ERC20InvalidApprover";
54
+ readonly type: "error";
55
+ }, {
56
+ readonly inputs: readonly [{
57
+ readonly internalType: "address";
58
+ readonly name: "receiver";
59
+ readonly type: "address";
60
+ }];
61
+ readonly name: "ERC20InvalidReceiver";
62
+ readonly type: "error";
63
+ }, {
64
+ readonly inputs: readonly [{
65
+ readonly internalType: "address";
66
+ readonly name: "sender";
67
+ readonly type: "address";
68
+ }];
69
+ readonly name: "ERC20InvalidSender";
70
+ readonly type: "error";
71
+ }, {
72
+ readonly inputs: readonly [{
73
+ readonly internalType: "address";
74
+ readonly name: "spender";
75
+ readonly type: "address";
76
+ }];
77
+ readonly name: "ERC20InvalidSpender";
78
+ readonly type: "error";
79
+ }, {
80
+ readonly inputs: readonly [{
81
+ readonly internalType: "address";
82
+ readonly name: "owner";
83
+ readonly type: "address";
84
+ }];
85
+ readonly name: "OwnableInvalidOwner";
86
+ readonly type: "error";
87
+ }, {
88
+ readonly inputs: readonly [{
89
+ readonly internalType: "address";
90
+ readonly name: "account";
91
+ readonly type: "address";
92
+ }];
93
+ readonly name: "OwnableUnauthorizedAccount";
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: "spender";
106
+ readonly type: "address";
107
+ }, {
108
+ readonly indexed: false;
109
+ readonly internalType: "uint256";
110
+ readonly name: "value";
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: "previousOwner";
121
+ readonly type: "address";
122
+ }, {
123
+ readonly indexed: true;
124
+ readonly internalType: "address";
125
+ readonly name: "newOwner";
126
+ readonly type: "address";
127
+ }];
128
+ readonly name: "OwnershipTransferred";
129
+ readonly type: "event";
130
+ }, {
131
+ readonly anonymous: false;
132
+ readonly inputs: readonly [{
133
+ readonly indexed: true;
134
+ readonly internalType: "address";
135
+ readonly name: "from";
136
+ readonly type: "address";
137
+ }, {
138
+ readonly indexed: true;
139
+ readonly internalType: "address";
140
+ readonly name: "to";
141
+ readonly type: "address";
142
+ }, {
143
+ readonly indexed: false;
144
+ readonly internalType: "uint256";
145
+ readonly name: "value";
146
+ readonly type: "uint256";
147
+ }];
148
+ readonly name: "Transfer";
149
+ readonly type: "event";
150
+ }, {
151
+ readonly inputs: readonly [];
152
+ readonly name: "UNISWAP_FACTORY";
153
+ readonly outputs: readonly [{
154
+ readonly internalType: "contract IUniswapV2Factory";
155
+ readonly name: "";
156
+ readonly type: "address";
157
+ }];
158
+ readonly stateMutability: "view";
159
+ readonly type: "function";
160
+ }, {
161
+ readonly inputs: readonly [];
162
+ readonly name: "UNISWAP_ROUTER";
163
+ readonly outputs: readonly [{
164
+ readonly internalType: "contract IUniswapV2Router02";
165
+ readonly name: "";
166
+ readonly type: "address";
167
+ }];
168
+ readonly stateMutability: "view";
169
+ readonly type: "function";
170
+ }, {
171
+ readonly inputs: readonly [];
172
+ readonly name: "UNISWAP_V2_PAIR";
173
+ readonly outputs: readonly [{
174
+ readonly internalType: "address";
175
+ readonly name: "";
176
+ readonly type: "address";
177
+ }];
178
+ readonly stateMutability: "view";
179
+ readonly type: "function";
180
+ }, {
181
+ readonly inputs: readonly [{
182
+ readonly internalType: "address";
183
+ readonly name: "owner";
184
+ readonly type: "address";
185
+ }, {
186
+ readonly internalType: "address";
187
+ readonly name: "spender";
188
+ readonly type: "address";
189
+ }];
190
+ readonly name: "allowance";
191
+ readonly outputs: readonly [{
192
+ readonly internalType: "uint256";
193
+ readonly name: "";
194
+ readonly type: "uint256";
195
+ }];
196
+ readonly stateMutability: "view";
197
+ readonly type: "function";
198
+ }, {
199
+ readonly inputs: readonly [{
200
+ readonly internalType: "address";
201
+ readonly name: "spender";
202
+ readonly type: "address";
203
+ }, {
204
+ readonly internalType: "uint256";
205
+ readonly name: "value";
206
+ readonly type: "uint256";
207
+ }];
208
+ readonly name: "approve";
209
+ readonly outputs: readonly [{
210
+ readonly internalType: "bool";
211
+ readonly name: "";
212
+ readonly type: "bool";
213
+ }];
214
+ readonly stateMutability: "nonpayable";
215
+ readonly type: "function";
216
+ }, {
217
+ readonly inputs: readonly [{
218
+ readonly internalType: "address";
219
+ readonly name: "account";
220
+ readonly type: "address";
221
+ }];
222
+ readonly name: "balanceOf";
223
+ readonly outputs: readonly [{
224
+ readonly internalType: "uint256";
225
+ readonly name: "";
226
+ readonly type: "uint256";
227
+ }];
228
+ readonly stateMutability: "view";
229
+ readonly type: "function";
230
+ }, {
231
+ readonly inputs: readonly [{
232
+ readonly internalType: "uint256";
233
+ readonly name: "value";
234
+ readonly type: "uint256";
235
+ }];
236
+ readonly name: "burn";
237
+ readonly outputs: readonly [];
238
+ readonly stateMutability: "nonpayable";
239
+ readonly type: "function";
240
+ }, {
241
+ readonly inputs: readonly [];
242
+ readonly name: "createDexPair";
243
+ readonly outputs: readonly [];
244
+ readonly stateMutability: "payable";
245
+ readonly type: "function";
246
+ }, {
247
+ readonly inputs: readonly [];
248
+ readonly name: "decimals";
249
+ readonly outputs: readonly [{
250
+ readonly internalType: "uint8";
251
+ readonly name: "";
252
+ readonly type: "uint8";
253
+ }];
254
+ readonly stateMutability: "view";
255
+ readonly type: "function";
256
+ }, {
257
+ readonly inputs: readonly [];
258
+ readonly name: "name";
259
+ readonly outputs: readonly [{
260
+ readonly internalType: "string";
261
+ readonly name: "";
262
+ readonly type: "string";
263
+ }];
264
+ readonly stateMutability: "view";
265
+ readonly type: "function";
266
+ }, {
267
+ readonly inputs: readonly [];
268
+ readonly name: "owner";
269
+ readonly outputs: readonly [{
270
+ readonly internalType: "address";
271
+ readonly name: "";
272
+ readonly type: "address";
273
+ }];
274
+ readonly stateMutability: "view";
275
+ readonly type: "function";
276
+ }, {
277
+ readonly inputs: readonly [];
278
+ readonly name: "renounceOwnership";
279
+ readonly outputs: readonly [];
280
+ readonly stateMutability: "nonpayable";
281
+ readonly type: "function";
282
+ }, {
283
+ readonly inputs: readonly [];
284
+ readonly name: "symbol";
285
+ readonly outputs: readonly [{
286
+ readonly internalType: "string";
287
+ readonly name: "";
288
+ readonly type: "string";
289
+ }];
290
+ readonly stateMutability: "view";
291
+ readonly type: "function";
292
+ }, {
293
+ readonly inputs: readonly [];
294
+ readonly name: "totalSupply";
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: "address";
305
+ readonly name: "to";
306
+ readonly type: "address";
307
+ }, {
308
+ readonly internalType: "uint256";
309
+ readonly name: "value";
310
+ readonly type: "uint256";
311
+ }];
312
+ readonly name: "transfer";
313
+ readonly outputs: readonly [{
314
+ readonly internalType: "bool";
315
+ readonly name: "";
316
+ readonly type: "bool";
317
+ }];
318
+ readonly stateMutability: "nonpayable";
319
+ readonly type: "function";
320
+ }, {
321
+ readonly inputs: readonly [{
322
+ readonly internalType: "address";
323
+ readonly name: "from";
324
+ readonly type: "address";
325
+ }, {
326
+ readonly internalType: "address";
327
+ readonly name: "to";
328
+ readonly type: "address";
329
+ }, {
330
+ readonly internalType: "uint256";
331
+ readonly name: "value";
332
+ readonly type: "uint256";
333
+ }];
334
+ readonly name: "transferFrom";
335
+ readonly outputs: readonly [{
336
+ readonly internalType: "bool";
337
+ readonly name: "";
338
+ readonly type: "bool";
339
+ }];
340
+ readonly stateMutability: "nonpayable";
341
+ readonly type: "function";
342
+ }, {
343
+ readonly inputs: readonly [{
344
+ readonly internalType: "address";
345
+ readonly name: "newOwner";
346
+ readonly type: "address";
347
+ }];
348
+ readonly name: "transferOwnership";
349
+ readonly outputs: readonly [];
350
+ readonly stateMutability: "nonpayable";
351
+ readonly type: "function";
352
+ }];
353
+ /**
354
+ * Type-safe ABI for Pngvn1
355
+ */
356
+ export type Pngvn1Abi = typeof Pngvn1Abi;
357
+ /**
358
+ * Contract instance type for Pngvn1
359
+ */
360
+ export type Pngvn1Contract = any;
361
+ /**
362
+ * Pngvn1 Contract Class
363
+ *
364
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
365
+ *
366
+ * @example
367
+ * ```typescript
368
+ * import { createPublicClient, createWalletClient, http } from 'viem';
369
+ * import { mainnet } from 'viem/chains';
370
+ * import { Pngvn1 } from 'Pngvn1';
371
+ *
372
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
373
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
374
+ *
375
+ * const contract = new Pngvn1('0x...', { publicClient, walletClient });
376
+ *
377
+ * // Read functions
378
+ * const result = await contract.balanceOf('0x...');
379
+ *
380
+ * // Write functions
381
+ * const hash = await contract.transfer('0x...', 1000n);
382
+ *
383
+ * // Simulate transactions (dry-run)
384
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
385
+ * console.log('Gas estimate:', simulation.request.gas);
386
+ *
387
+ * // Watch events
388
+ * const unwatch = contract.watch.Transfer((event) => {
389
+ * console.log('Transfer event:', event);
390
+ * });
391
+ * ```
392
+ */
393
+ export declare class Pngvn1 {
394
+ private contract;
395
+ private contractAddress;
396
+ private publicClient;
397
+ constructor(address: Address, clients: {
398
+ publicClient: PublicClient;
399
+ walletClient?: WalletClient;
400
+ });
401
+ /**
402
+ * Get the contract address
403
+ */
404
+ get address(): Address;
405
+ /**
406
+ * Get the underlying viem contract instance.
407
+ */
408
+ getContract(): Pngvn1Contract;
409
+ /**
410
+ * UNISWAP_FACTORY
411
+ * view
412
+ */
413
+ UNISWAP_FACTORY(): Promise<`0x${string}`>;
414
+ /**
415
+ * UNISWAP_ROUTER
416
+ * view
417
+ */
418
+ UNISWAP_ROUTER(): Promise<`0x${string}`>;
419
+ /**
420
+ * UNISWAP_V2_PAIR
421
+ * view
422
+ */
423
+ UNISWAP_V2_PAIR(): Promise<`0x${string}`>;
424
+ /**
425
+ * allowance
426
+ * view
427
+ */
428
+ allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
429
+ /**
430
+ * balanceOf
431
+ * view
432
+ */
433
+ balanceOf(account: `0x${string}`): Promise<bigint>;
434
+ /**
435
+ * decimals
436
+ * view
437
+ */
438
+ decimals(): Promise<bigint>;
439
+ /**
440
+ * name
441
+ * view
442
+ */
443
+ name(): Promise<string>;
444
+ /**
445
+ * owner
446
+ * view
447
+ */
448
+ owner(): Promise<`0x${string}`>;
449
+ /**
450
+ * symbol
451
+ * view
452
+ */
453
+ symbol(): Promise<string>;
454
+ /**
455
+ * totalSupply
456
+ * view
457
+ */
458
+ totalSupply(): Promise<bigint>;
459
+ /**
460
+ * approve
461
+ * nonpayable
462
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
463
+ */
464
+ approve(spender: `0x${string}`, value: bigint, options?: {
465
+ accessList?: import('viem').AccessList;
466
+ authorizationList?: import('viem').AuthorizationList;
467
+ chain?: import('viem').Chain | null;
468
+ dataSuffix?: `0x${string}`;
469
+ gas?: bigint;
470
+ gasPrice?: bigint;
471
+ maxFeePerGas?: bigint;
472
+ maxPriorityFeePerGas?: bigint;
473
+ nonce?: number;
474
+ value?: bigint;
475
+ }): Promise<`0x${string}`>;
476
+ /**
477
+ * burn
478
+ * nonpayable
479
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
480
+ */
481
+ burn(value: bigint, options?: {
482
+ accessList?: import('viem').AccessList;
483
+ authorizationList?: import('viem').AuthorizationList;
484
+ chain?: import('viem').Chain | null;
485
+ dataSuffix?: `0x${string}`;
486
+ gas?: bigint;
487
+ gasPrice?: bigint;
488
+ maxFeePerGas?: bigint;
489
+ maxPriorityFeePerGas?: bigint;
490
+ nonce?: number;
491
+ value?: bigint;
492
+ }): Promise<`0x${string}`>;
493
+ /**
494
+ * createDexPair
495
+ * payable
496
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
497
+ */
498
+ createDexPair(options?: {
499
+ accessList?: import('viem').AccessList;
500
+ authorizationList?: import('viem').AuthorizationList;
501
+ chain?: import('viem').Chain | null;
502
+ dataSuffix?: `0x${string}`;
503
+ gas?: bigint;
504
+ gasPrice?: bigint;
505
+ maxFeePerGas?: bigint;
506
+ maxPriorityFeePerGas?: bigint;
507
+ nonce?: number;
508
+ value?: bigint;
509
+ }): Promise<`0x${string}`>;
510
+ /**
511
+ * renounceOwnership
512
+ * nonpayable
513
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
514
+ */
515
+ renounceOwnership(options?: {
516
+ accessList?: import('viem').AccessList;
517
+ authorizationList?: import('viem').AuthorizationList;
518
+ chain?: import('viem').Chain | null;
519
+ dataSuffix?: `0x${string}`;
520
+ gas?: bigint;
521
+ gasPrice?: bigint;
522
+ maxFeePerGas?: bigint;
523
+ maxPriorityFeePerGas?: bigint;
524
+ nonce?: number;
525
+ value?: bigint;
526
+ }): Promise<`0x${string}`>;
527
+ /**
528
+ * transfer
529
+ * nonpayable
530
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
531
+ */
532
+ transfer(to: `0x${string}`, value: bigint, options?: {
533
+ accessList?: import('viem').AccessList;
534
+ authorizationList?: import('viem').AuthorizationList;
535
+ chain?: import('viem').Chain | null;
536
+ dataSuffix?: `0x${string}`;
537
+ gas?: bigint;
538
+ gasPrice?: bigint;
539
+ maxFeePerGas?: bigint;
540
+ maxPriorityFeePerGas?: bigint;
541
+ nonce?: number;
542
+ value?: bigint;
543
+ }): Promise<`0x${string}`>;
544
+ /**
545
+ * transferFrom
546
+ * nonpayable
547
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
548
+ */
549
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
550
+ accessList?: import('viem').AccessList;
551
+ authorizationList?: import('viem').AuthorizationList;
552
+ chain?: import('viem').Chain | null;
553
+ dataSuffix?: `0x${string}`;
554
+ gas?: bigint;
555
+ gasPrice?: bigint;
556
+ maxFeePerGas?: bigint;
557
+ maxPriorityFeePerGas?: bigint;
558
+ nonce?: number;
559
+ value?: bigint;
560
+ }): Promise<`0x${string}`>;
561
+ /**
562
+ * transferOwnership
563
+ * nonpayable
564
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
565
+ */
566
+ transferOwnership(newOwner: `0x${string}`, options?: {
567
+ accessList?: import('viem').AccessList;
568
+ authorizationList?: import('viem').AuthorizationList;
569
+ chain?: import('viem').Chain | null;
570
+ dataSuffix?: `0x${string}`;
571
+ gas?: bigint;
572
+ gasPrice?: bigint;
573
+ maxFeePerGas?: bigint;
574
+ maxPriorityFeePerGas?: bigint;
575
+ nonce?: number;
576
+ value?: bigint;
577
+ }): Promise<`0x${string}`>;
578
+ /**
579
+ * Simulate contract write operations (dry-run without sending transaction)
580
+ *
581
+ * @example
582
+ * const result = await contract.simulate.transfer('0x...', 1000n);
583
+ * console.log('Gas estimate:', result.request.gas);
584
+ * console.log('Would succeed:', result.result);
585
+ */
586
+ get simulate(): {
587
+ /**
588
+ * Simulate approve
589
+ * Returns gas estimate and result without sending transaction
590
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
591
+ */
592
+ approve(spender: `0x${string}`, value: bigint, options?: {
593
+ accessList?: import("viem").AccessList;
594
+ authorizationList?: import("viem").AuthorizationList;
595
+ chain?: import("viem").Chain | null;
596
+ dataSuffix?: `0x${string}`;
597
+ gas?: bigint;
598
+ gasPrice?: bigint;
599
+ maxFeePerGas?: bigint;
600
+ maxPriorityFeePerGas?: bigint;
601
+ nonce?: number;
602
+ value?: bigint;
603
+ }): Promise<boolean>;
604
+ /**
605
+ * Simulate burn
606
+ * Returns gas estimate and result without sending transaction
607
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
608
+ */
609
+ burn(value: bigint, options?: {
610
+ accessList?: import("viem").AccessList;
611
+ authorizationList?: import("viem").AuthorizationList;
612
+ chain?: import("viem").Chain | null;
613
+ dataSuffix?: `0x${string}`;
614
+ gas?: bigint;
615
+ gasPrice?: bigint;
616
+ maxFeePerGas?: bigint;
617
+ maxPriorityFeePerGas?: bigint;
618
+ nonce?: number;
619
+ value?: bigint;
620
+ }): Promise<void>;
621
+ /**
622
+ * Simulate createDexPair
623
+ * Returns gas estimate and result without sending transaction
624
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
625
+ */
626
+ createDexPair(options?: {
627
+ accessList?: import("viem").AccessList;
628
+ authorizationList?: import("viem").AuthorizationList;
629
+ chain?: import("viem").Chain | null;
630
+ dataSuffix?: `0x${string}`;
631
+ gas?: bigint;
632
+ gasPrice?: bigint;
633
+ maxFeePerGas?: bigint;
634
+ maxPriorityFeePerGas?: bigint;
635
+ nonce?: number;
636
+ value?: bigint;
637
+ }): Promise<void>;
638
+ /**
639
+ * Simulate renounceOwnership
640
+ * Returns gas estimate and result without sending transaction
641
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
642
+ */
643
+ renounceOwnership(options?: {
644
+ accessList?: import("viem").AccessList;
645
+ authorizationList?: import("viem").AuthorizationList;
646
+ chain?: import("viem").Chain | null;
647
+ dataSuffix?: `0x${string}`;
648
+ gas?: bigint;
649
+ gasPrice?: bigint;
650
+ maxFeePerGas?: bigint;
651
+ maxPriorityFeePerGas?: bigint;
652
+ nonce?: number;
653
+ value?: bigint;
654
+ }): Promise<void>;
655
+ /**
656
+ * Simulate transfer
657
+ * Returns gas estimate and result without sending transaction
658
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
659
+ */
660
+ transfer(to: `0x${string}`, value: bigint, options?: {
661
+ accessList?: import("viem").AccessList;
662
+ authorizationList?: import("viem").AuthorizationList;
663
+ chain?: import("viem").Chain | null;
664
+ dataSuffix?: `0x${string}`;
665
+ gas?: bigint;
666
+ gasPrice?: bigint;
667
+ maxFeePerGas?: bigint;
668
+ maxPriorityFeePerGas?: bigint;
669
+ nonce?: number;
670
+ value?: bigint;
671
+ }): Promise<boolean>;
672
+ /**
673
+ * Simulate transferFrom
674
+ * Returns gas estimate and result without sending transaction
675
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
676
+ */
677
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
678
+ accessList?: import("viem").AccessList;
679
+ authorizationList?: import("viem").AuthorizationList;
680
+ chain?: import("viem").Chain | null;
681
+ dataSuffix?: `0x${string}`;
682
+ gas?: bigint;
683
+ gasPrice?: bigint;
684
+ maxFeePerGas?: bigint;
685
+ maxPriorityFeePerGas?: bigint;
686
+ nonce?: number;
687
+ value?: bigint;
688
+ }): Promise<boolean>;
689
+ /**
690
+ * Simulate transferOwnership
691
+ * Returns gas estimate and result without sending transaction
692
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
693
+ */
694
+ transferOwnership(newOwner: `0x${string}`, options?: {
695
+ accessList?: import("viem").AccessList;
696
+ authorizationList?: import("viem").AuthorizationList;
697
+ chain?: import("viem").Chain | null;
698
+ dataSuffix?: `0x${string}`;
699
+ gas?: bigint;
700
+ gasPrice?: bigint;
701
+ maxFeePerGas?: bigint;
702
+ maxPriorityFeePerGas?: bigint;
703
+ nonce?: number;
704
+ value?: bigint;
705
+ }): Promise<void>;
706
+ };
707
+ /**
708
+ * Watch contract events
709
+ *
710
+ * @example
711
+ * // Watch all Transfer events
712
+ * const unwatch = contract.watch.Transfer((event) => {
713
+ * console.log('Transfer:', event);
714
+ * });
715
+ *
716
+ * // Stop watching
717
+ * unwatch();
718
+ */
719
+ get watch(): {
720
+ /**
721
+ * Watch Approval events
722
+ * @param callback Function to call when event is emitted
723
+ * @param filter Optional filter for indexed parameters
724
+ * @returns Unwatch function to stop listening
725
+ */
726
+ Approval: (callback: (event: {
727
+ owner: `0x${string}`;
728
+ spender: `0x${string}`;
729
+ value: bigint;
730
+ }) => void, filter?: {
731
+ owner?: `0x${string}` | `0x${string}`[] | null;
732
+ spender?: `0x${string}` | `0x${string}`[] | null;
733
+ }) => () => void;
734
+ /**
735
+ * Watch OwnershipTransferred events
736
+ * @param callback Function to call when event is emitted
737
+ * @param filter Optional filter for indexed parameters
738
+ * @returns Unwatch function to stop listening
739
+ */
740
+ OwnershipTransferred: (callback: (event: {
741
+ previousOwner: `0x${string}`;
742
+ newOwner: `0x${string}`;
743
+ }) => void, filter?: {
744
+ previousOwner?: `0x${string}` | `0x${string}`[] | null;
745
+ newOwner?: `0x${string}` | `0x${string}`[] | null;
746
+ }) => () => void;
747
+ /**
748
+ * Watch Transfer events
749
+ * @param callback Function to call when event is emitted
750
+ * @param filter Optional filter for indexed parameters
751
+ * @returns Unwatch function to stop listening
752
+ */
753
+ Transfer: (callback: (event: {
754
+ from: `0x${string}`;
755
+ to: `0x${string}`;
756
+ value: bigint;
757
+ }) => void, filter?: {
758
+ from?: `0x${string}` | `0x${string}`[] | null;
759
+ to?: `0x${string}` | `0x${string}`[] | null;
760
+ }) => () => void;
761
+ };
762
+ }