@gitmyabi/xai 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,913 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * SDSHD_json ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const SDSHD_jsonAbi: readonly [{
8
+ readonly inputs: readonly [{
9
+ readonly internalType: "address";
10
+ readonly name: "swapRouter_";
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 internalType: "address[]";
153
+ readonly name: "to";
154
+ readonly type: "address[]";
155
+ }];
156
+ readonly name: "airdrop";
157
+ readonly outputs: readonly [];
158
+ readonly stateMutability: "nonpayable";
159
+ readonly type: "function";
160
+ }, {
161
+ readonly inputs: readonly [{
162
+ readonly internalType: "address";
163
+ readonly name: "owner_";
164
+ readonly type: "address";
165
+ }, {
166
+ readonly internalType: "address";
167
+ readonly name: "spender_";
168
+ readonly type: "address";
169
+ }];
170
+ readonly name: "allowance";
171
+ readonly outputs: readonly [{
172
+ readonly internalType: "uint256";
173
+ readonly name: "";
174
+ readonly type: "uint256";
175
+ }];
176
+ readonly stateMutability: "view";
177
+ readonly type: "function";
178
+ }, {
179
+ readonly inputs: readonly [{
180
+ readonly internalType: "address";
181
+ readonly name: "spender";
182
+ readonly type: "address";
183
+ }, {
184
+ readonly internalType: "uint256";
185
+ readonly name: "value";
186
+ readonly type: "uint256";
187
+ }];
188
+ readonly name: "approve";
189
+ readonly outputs: readonly [{
190
+ readonly internalType: "bool";
191
+ readonly name: "";
192
+ readonly type: "bool";
193
+ }];
194
+ readonly stateMutability: "nonpayable";
195
+ readonly type: "function";
196
+ }, {
197
+ readonly inputs: readonly [{
198
+ readonly internalType: "address";
199
+ readonly name: "account";
200
+ readonly type: "address";
201
+ }];
202
+ readonly name: "balanceOf";
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 internalType: "address";
213
+ readonly name: "addr";
214
+ readonly type: "address";
215
+ }, {
216
+ readonly internalType: "uint256";
217
+ readonly name: "amount";
218
+ readonly type: "uint256";
219
+ }];
220
+ readonly name: "burn";
221
+ readonly outputs: readonly [];
222
+ readonly stateMutability: "nonpayable";
223
+ readonly type: "function";
224
+ }, {
225
+ readonly inputs: readonly [];
226
+ readonly name: "decimals";
227
+ readonly outputs: readonly [{
228
+ readonly internalType: "uint8";
229
+ readonly name: "";
230
+ readonly type: "uint8";
231
+ }];
232
+ readonly stateMutability: "view";
233
+ readonly type: "function";
234
+ }, {
235
+ readonly inputs: readonly [{
236
+ readonly internalType: "address";
237
+ readonly name: "addr";
238
+ readonly type: "address";
239
+ }];
240
+ readonly name: "isInBlackList";
241
+ readonly outputs: readonly [{
242
+ readonly internalType: "bool";
243
+ readonly name: "";
244
+ readonly type: "bool";
245
+ }];
246
+ readonly stateMutability: "view";
247
+ readonly type: "function";
248
+ }, {
249
+ readonly inputs: readonly [];
250
+ readonly name: "name";
251
+ readonly outputs: readonly [{
252
+ readonly internalType: "string";
253
+ readonly name: "";
254
+ readonly type: "string";
255
+ }];
256
+ readonly stateMutability: "view";
257
+ readonly type: "function";
258
+ }, {
259
+ readonly inputs: readonly [];
260
+ readonly name: "owner";
261
+ readonly outputs: readonly [{
262
+ readonly internalType: "address";
263
+ readonly name: "";
264
+ readonly type: "address";
265
+ }];
266
+ readonly stateMutability: "view";
267
+ readonly type: "function";
268
+ }, {
269
+ readonly inputs: readonly [];
270
+ readonly name: "pairAddress";
271
+ readonly outputs: readonly [{
272
+ readonly internalType: "address";
273
+ readonly name: "";
274
+ readonly type: "address";
275
+ }];
276
+ readonly stateMutability: "view";
277
+ readonly type: "function";
278
+ }, {
279
+ readonly inputs: readonly [{
280
+ readonly internalType: "address[]";
281
+ readonly name: "addrs";
282
+ readonly type: "address[]";
283
+ }];
284
+ readonly name: "removeBlackList";
285
+ readonly outputs: readonly [];
286
+ readonly stateMutability: "nonpayable";
287
+ readonly type: "function";
288
+ }, {
289
+ readonly inputs: readonly [];
290
+ readonly name: "renounceOwnership";
291
+ readonly outputs: readonly [];
292
+ readonly stateMutability: "nonpayable";
293
+ readonly type: "function";
294
+ }, {
295
+ readonly inputs: readonly [];
296
+ readonly name: "symbol";
297
+ readonly outputs: readonly [{
298
+ readonly internalType: "string";
299
+ readonly name: "";
300
+ readonly type: "string";
301
+ }];
302
+ readonly stateMutability: "view";
303
+ readonly type: "function";
304
+ }, {
305
+ readonly inputs: readonly [];
306
+ readonly name: "taxReceiver";
307
+ readonly outputs: readonly [{
308
+ readonly internalType: "address";
309
+ readonly name: "";
310
+ readonly type: "address";
311
+ }];
312
+ readonly stateMutability: "view";
313
+ readonly type: "function";
314
+ }, {
315
+ readonly inputs: readonly [];
316
+ readonly name: "totalSupply";
317
+ readonly outputs: readonly [{
318
+ readonly internalType: "uint256";
319
+ readonly name: "";
320
+ readonly type: "uint256";
321
+ }];
322
+ readonly stateMutability: "view";
323
+ readonly type: "function";
324
+ }, {
325
+ readonly inputs: readonly [{
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: "transfer";
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: "from";
346
+ readonly type: "address";
347
+ }, {
348
+ readonly internalType: "address";
349
+ readonly name: "to";
350
+ readonly type: "address";
351
+ }, {
352
+ readonly internalType: "uint256";
353
+ readonly name: "value";
354
+ readonly type: "uint256";
355
+ }];
356
+ readonly name: "transferFrom";
357
+ readonly outputs: readonly [{
358
+ readonly internalType: "bool";
359
+ readonly name: "";
360
+ readonly type: "bool";
361
+ }];
362
+ readonly stateMutability: "nonpayable";
363
+ readonly type: "function";
364
+ }, {
365
+ readonly inputs: readonly [{
366
+ readonly internalType: "address";
367
+ readonly name: "newOwner";
368
+ readonly type: "address";
369
+ }];
370
+ readonly name: "transferOwnership";
371
+ readonly outputs: readonly [];
372
+ readonly stateMutability: "nonpayable";
373
+ readonly type: "function";
374
+ }, {
375
+ readonly inputs: readonly [{
376
+ readonly internalType: "address[]";
377
+ readonly name: "addrs";
378
+ readonly type: "address[]";
379
+ }, {
380
+ readonly internalType: "bool[]";
381
+ readonly name: "values";
382
+ readonly type: "bool[]";
383
+ }];
384
+ readonly name: "updateBlackList";
385
+ readonly outputs: readonly [];
386
+ readonly stateMutability: "nonpayable";
387
+ readonly type: "function";
388
+ }, {
389
+ readonly inputs: readonly [{
390
+ readonly internalType: "address";
391
+ readonly name: "_token";
392
+ readonly type: "address";
393
+ }];
394
+ readonly name: "withdraw";
395
+ readonly outputs: readonly [];
396
+ readonly stateMutability: "nonpayable";
397
+ readonly type: "function";
398
+ }, {
399
+ readonly stateMutability: "payable";
400
+ readonly type: "receive";
401
+ }];
402
+ /**
403
+ * Type-safe ABI for SDSHD_json
404
+ */
405
+ export type SDSHD_jsonAbi = typeof SDSHD_jsonAbi;
406
+ /**
407
+ * Contract instance type for SDSHD_json
408
+ */
409
+ export type SDSHD_jsonContract = any;
410
+ /**
411
+ * SDSHD_json Contract Class
412
+ *
413
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
414
+ *
415
+ * @example
416
+ * ```typescript
417
+ * import { createPublicClient, createWalletClient, http } from 'viem';
418
+ * import { mainnet } from 'viem/chains';
419
+ * import { SDSHD_json } from 'SDSHD_json';
420
+ *
421
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
422
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
423
+ *
424
+ * const contract = new SDSHD_json('0x...', { publicClient, walletClient });
425
+ *
426
+ * // Read functions
427
+ * const result = await contract.balanceOf('0x...');
428
+ *
429
+ * // Write functions
430
+ * const hash = await contract.transfer('0x...', 1000n);
431
+ *
432
+ * // Simulate transactions (dry-run)
433
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
434
+ * console.log('Gas estimate:', simulation.request.gas);
435
+ *
436
+ * // Watch events
437
+ * const unwatch = contract.watch.Transfer((event) => {
438
+ * console.log('Transfer event:', event);
439
+ * });
440
+ * ```
441
+ */
442
+ export declare class SDSHD_json {
443
+ private contract;
444
+ private contractAddress;
445
+ private publicClient;
446
+ constructor(address: Address, clients: {
447
+ publicClient: PublicClient;
448
+ walletClient?: WalletClient;
449
+ });
450
+ /**
451
+ * Get the contract address
452
+ */
453
+ get address(): Address;
454
+ /**
455
+ * Get the underlying viem contract instance
456
+ */
457
+ getContract(): SDSHD_jsonContract;
458
+ /**
459
+ * allowance
460
+ * view
461
+ */
462
+ allowance(owner_: `0x${string}`, spender_: `0x${string}`): Promise<bigint>;
463
+ /**
464
+ * balanceOf
465
+ * view
466
+ */
467
+ balanceOf(account: `0x${string}`): Promise<bigint>;
468
+ /**
469
+ * decimals
470
+ * view
471
+ */
472
+ decimals(): Promise<bigint>;
473
+ /**
474
+ * isInBlackList
475
+ * view
476
+ */
477
+ isInBlackList(addr: `0x${string}`): Promise<boolean>;
478
+ /**
479
+ * name
480
+ * view
481
+ */
482
+ name(): Promise<string>;
483
+ /**
484
+ * owner
485
+ * view
486
+ */
487
+ owner(): Promise<`0x${string}`>;
488
+ /**
489
+ * pairAddress
490
+ * view
491
+ */
492
+ pairAddress(): Promise<`0x${string}`>;
493
+ /**
494
+ * symbol
495
+ * view
496
+ */
497
+ symbol(): Promise<string>;
498
+ /**
499
+ * taxReceiver
500
+ * view
501
+ */
502
+ taxReceiver(): Promise<`0x${string}`>;
503
+ /**
504
+ * totalSupply
505
+ * view
506
+ */
507
+ totalSupply(): Promise<bigint>;
508
+ /**
509
+ * airdrop
510
+ * nonpayable
511
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
512
+ */
513
+ airdrop(to: `0x${string}`[], 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
+ * approve
527
+ * nonpayable
528
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
529
+ */
530
+ approve(spender: `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
+ * burn
544
+ * nonpayable
545
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
546
+ */
547
+ burn(addr: `0x${string}`, amount: 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
+ * removeBlackList
561
+ * nonpayable
562
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
563
+ */
564
+ removeBlackList(addrs: `0x${string}`[], 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
+ * renounceOwnership
578
+ * nonpayable
579
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
580
+ */
581
+ renounceOwnership(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
+ * transfer
595
+ * nonpayable
596
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
597
+ */
598
+ transfer(to: `0x${string}`, value: bigint, options?: {
599
+ accessList?: import('viem').AccessList;
600
+ authorizationList?: import('viem').AuthorizationList;
601
+ chain?: import('viem').Chain | null;
602
+ dataSuffix?: `0x${string}`;
603
+ gas?: bigint;
604
+ gasPrice?: bigint;
605
+ maxFeePerGas?: bigint;
606
+ maxPriorityFeePerGas?: bigint;
607
+ nonce?: number;
608
+ value?: bigint;
609
+ }): Promise<`0x${string}`>;
610
+ /**
611
+ * transferFrom
612
+ * nonpayable
613
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
614
+ */
615
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
616
+ accessList?: import('viem').AccessList;
617
+ authorizationList?: import('viem').AuthorizationList;
618
+ chain?: import('viem').Chain | null;
619
+ dataSuffix?: `0x${string}`;
620
+ gas?: bigint;
621
+ gasPrice?: bigint;
622
+ maxFeePerGas?: bigint;
623
+ maxPriorityFeePerGas?: bigint;
624
+ nonce?: number;
625
+ value?: bigint;
626
+ }): Promise<`0x${string}`>;
627
+ /**
628
+ * transferOwnership
629
+ * nonpayable
630
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
631
+ */
632
+ transferOwnership(newOwner: `0x${string}`, options?: {
633
+ accessList?: import('viem').AccessList;
634
+ authorizationList?: import('viem').AuthorizationList;
635
+ chain?: import('viem').Chain | null;
636
+ dataSuffix?: `0x${string}`;
637
+ gas?: bigint;
638
+ gasPrice?: bigint;
639
+ maxFeePerGas?: bigint;
640
+ maxPriorityFeePerGas?: bigint;
641
+ nonce?: number;
642
+ value?: bigint;
643
+ }): Promise<`0x${string}`>;
644
+ /**
645
+ * updateBlackList
646
+ * nonpayable
647
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
648
+ */
649
+ updateBlackList(addrs: `0x${string}`[], values: boolean[], options?: {
650
+ accessList?: import('viem').AccessList;
651
+ authorizationList?: import('viem').AuthorizationList;
652
+ chain?: import('viem').Chain | null;
653
+ dataSuffix?: `0x${string}`;
654
+ gas?: bigint;
655
+ gasPrice?: bigint;
656
+ maxFeePerGas?: bigint;
657
+ maxPriorityFeePerGas?: bigint;
658
+ nonce?: number;
659
+ value?: bigint;
660
+ }): Promise<`0x${string}`>;
661
+ /**
662
+ * withdraw
663
+ * nonpayable
664
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
665
+ */
666
+ withdraw(_token: `0x${string}`, options?: {
667
+ accessList?: import('viem').AccessList;
668
+ authorizationList?: import('viem').AuthorizationList;
669
+ chain?: import('viem').Chain | null;
670
+ dataSuffix?: `0x${string}`;
671
+ gas?: bigint;
672
+ gasPrice?: bigint;
673
+ maxFeePerGas?: bigint;
674
+ maxPriorityFeePerGas?: bigint;
675
+ nonce?: number;
676
+ value?: bigint;
677
+ }): Promise<`0x${string}`>;
678
+ /**
679
+ * Simulate contract write operations (dry-run without sending transaction)
680
+ *
681
+ * @example
682
+ * const result = await contract.simulate.transfer('0x...', 1000n);
683
+ * console.log('Gas estimate:', result.request.gas);
684
+ * console.log('Would succeed:', result.result);
685
+ */
686
+ get simulate(): {
687
+ /**
688
+ * Simulate airdrop
689
+ * Returns gas estimate and result without sending transaction
690
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
691
+ */
692
+ airdrop(to: `0x${string}`[], 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<void>;
704
+ /**
705
+ * Simulate approve
706
+ * Returns gas estimate and result without sending transaction
707
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
708
+ */
709
+ approve(spender: `0x${string}`, value: bigint, 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<boolean>;
721
+ /**
722
+ * Simulate burn
723
+ * Returns gas estimate and result without sending transaction
724
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
725
+ */
726
+ burn(addr: `0x${string}`, amount: bigint, 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
+ * Simulate removeBlackList
740
+ * Returns gas estimate and result without sending transaction
741
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
742
+ */
743
+ removeBlackList(addrs: `0x${string}`[], options?: {
744
+ accessList?: import("viem").AccessList;
745
+ authorizationList?: import("viem").AuthorizationList;
746
+ chain?: import("viem").Chain | null;
747
+ dataSuffix?: `0x${string}`;
748
+ gas?: bigint;
749
+ gasPrice?: bigint;
750
+ maxFeePerGas?: bigint;
751
+ maxPriorityFeePerGas?: bigint;
752
+ nonce?: number;
753
+ value?: bigint;
754
+ }): Promise<void>;
755
+ /**
756
+ * Simulate renounceOwnership
757
+ * Returns gas estimate and result without sending transaction
758
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
759
+ */
760
+ renounceOwnership(options?: {
761
+ accessList?: import("viem").AccessList;
762
+ authorizationList?: import("viem").AuthorizationList;
763
+ chain?: import("viem").Chain | null;
764
+ dataSuffix?: `0x${string}`;
765
+ gas?: bigint;
766
+ gasPrice?: bigint;
767
+ maxFeePerGas?: bigint;
768
+ maxPriorityFeePerGas?: bigint;
769
+ nonce?: number;
770
+ value?: bigint;
771
+ }): Promise<void>;
772
+ /**
773
+ * Simulate transfer
774
+ * Returns gas estimate and result without sending transaction
775
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
776
+ */
777
+ transfer(to: `0x${string}`, value: bigint, options?: {
778
+ accessList?: import("viem").AccessList;
779
+ authorizationList?: import("viem").AuthorizationList;
780
+ chain?: import("viem").Chain | null;
781
+ dataSuffix?: `0x${string}`;
782
+ gas?: bigint;
783
+ gasPrice?: bigint;
784
+ maxFeePerGas?: bigint;
785
+ maxPriorityFeePerGas?: bigint;
786
+ nonce?: number;
787
+ value?: bigint;
788
+ }): Promise<boolean>;
789
+ /**
790
+ * Simulate transferFrom
791
+ * Returns gas estimate and result without sending transaction
792
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
793
+ */
794
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
795
+ accessList?: import("viem").AccessList;
796
+ authorizationList?: import("viem").AuthorizationList;
797
+ chain?: import("viem").Chain | null;
798
+ dataSuffix?: `0x${string}`;
799
+ gas?: bigint;
800
+ gasPrice?: bigint;
801
+ maxFeePerGas?: bigint;
802
+ maxPriorityFeePerGas?: bigint;
803
+ nonce?: number;
804
+ value?: bigint;
805
+ }): Promise<boolean>;
806
+ /**
807
+ * Simulate transferOwnership
808
+ * Returns gas estimate and result without sending transaction
809
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
810
+ */
811
+ transferOwnership(newOwner: `0x${string}`, options?: {
812
+ accessList?: import("viem").AccessList;
813
+ authorizationList?: import("viem").AuthorizationList;
814
+ chain?: import("viem").Chain | null;
815
+ dataSuffix?: `0x${string}`;
816
+ gas?: bigint;
817
+ gasPrice?: bigint;
818
+ maxFeePerGas?: bigint;
819
+ maxPriorityFeePerGas?: bigint;
820
+ nonce?: number;
821
+ value?: bigint;
822
+ }): Promise<void>;
823
+ /**
824
+ * Simulate updateBlackList
825
+ * Returns gas estimate and result without sending transaction
826
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
827
+ */
828
+ updateBlackList(addrs: `0x${string}`[], values: boolean[], options?: {
829
+ accessList?: import("viem").AccessList;
830
+ authorizationList?: import("viem").AuthorizationList;
831
+ chain?: import("viem").Chain | null;
832
+ dataSuffix?: `0x${string}`;
833
+ gas?: bigint;
834
+ gasPrice?: bigint;
835
+ maxFeePerGas?: bigint;
836
+ maxPriorityFeePerGas?: bigint;
837
+ nonce?: number;
838
+ value?: bigint;
839
+ }): Promise<void>;
840
+ /**
841
+ * Simulate withdraw
842
+ * Returns gas estimate and result without sending transaction
843
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
844
+ */
845
+ withdraw(_token: `0x${string}`, options?: {
846
+ accessList?: import("viem").AccessList;
847
+ authorizationList?: import("viem").AuthorizationList;
848
+ chain?: import("viem").Chain | null;
849
+ dataSuffix?: `0x${string}`;
850
+ gas?: bigint;
851
+ gasPrice?: bigint;
852
+ maxFeePerGas?: bigint;
853
+ maxPriorityFeePerGas?: bigint;
854
+ nonce?: number;
855
+ value?: bigint;
856
+ }): Promise<void>;
857
+ };
858
+ /**
859
+ * Watch contract events
860
+ *
861
+ * @example
862
+ * // Watch all Transfer events
863
+ * const unwatch = contract.watch.Transfer((event) => {
864
+ * console.log('Transfer:', event);
865
+ * });
866
+ *
867
+ * // Stop watching
868
+ * unwatch();
869
+ */
870
+ get watch(): {
871
+ /**
872
+ * Watch Approval events
873
+ * @param callback Function to call when event is emitted
874
+ * @param filter Optional filter for indexed parameters
875
+ * @returns Unwatch function to stop listening
876
+ */
877
+ Approval: (callback: (event: {
878
+ owner: `0x${string}`;
879
+ spender: `0x${string}`;
880
+ value: bigint;
881
+ }) => void, filter?: {
882
+ owner: `0x${string}`;
883
+ spender: `0x${string}`;
884
+ }) => () => void;
885
+ /**
886
+ * Watch OwnershipTransferred events
887
+ * @param callback Function to call when event is emitted
888
+ * @param filter Optional filter for indexed parameters
889
+ * @returns Unwatch function to stop listening
890
+ */
891
+ OwnershipTransferred: (callback: (event: {
892
+ previousOwner: `0x${string}`;
893
+ newOwner: `0x${string}`;
894
+ }) => void, filter?: {
895
+ previousOwner: `0x${string}`;
896
+ newOwner: `0x${string}`;
897
+ }) => () => void;
898
+ /**
899
+ * Watch Transfer events
900
+ * @param callback Function to call when event is emitted
901
+ * @param filter Optional filter for indexed parameters
902
+ * @returns Unwatch function to stop listening
903
+ */
904
+ Transfer: (callback: (event: {
905
+ from: `0x${string}`;
906
+ to: `0x${string}`;
907
+ value: bigint;
908
+ }) => void, filter?: {
909
+ from: `0x${string}`;
910
+ to: `0x${string}`;
911
+ }) => () => void;
912
+ };
913
+ }