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