@gitmyabi/yee 1.0.0 → 1.0.2

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