@gitmyabi/usd 1.0.0 → 1.0.1

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,152 +1,13 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * USD_Tehter_json ABI
3
+ * StandardToken_json ABI
4
4
  *
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
- export declare const USD_Tehter_jsonAbi: readonly [{
7
+ export declare const StandardToken_jsonAbi: readonly [{
8
8
  readonly inputs: readonly [];
9
9
  readonly stateMutability: "nonpayable";
10
10
  readonly type: "constructor";
11
- }, {
12
- readonly inputs: readonly [{
13
- readonly internalType: "address";
14
- readonly name: "target";
15
- readonly type: "address";
16
- }];
17
- readonly name: "AddressEmptyCode";
18
- readonly type: "error";
19
- }, {
20
- readonly inputs: readonly [{
21
- readonly internalType: "address";
22
- readonly name: "account";
23
- readonly type: "address";
24
- }];
25
- readonly name: "AddressInsufficientBalance";
26
- readonly type: "error";
27
- }, {
28
- readonly inputs: readonly [{
29
- readonly internalType: "address";
30
- readonly name: "spender";
31
- readonly type: "address";
32
- }, {
33
- readonly internalType: "uint256";
34
- readonly name: "allowance";
35
- readonly type: "uint256";
36
- }, {
37
- readonly internalType: "uint256";
38
- readonly name: "needed";
39
- readonly type: "uint256";
40
- }];
41
- readonly name: "ERC20InsufficientAllowance";
42
- readonly type: "error";
43
- }, {
44
- readonly inputs: readonly [{
45
- readonly internalType: "address";
46
- readonly name: "sender";
47
- readonly type: "address";
48
- }, {
49
- readonly internalType: "uint256";
50
- readonly name: "balance";
51
- readonly type: "uint256";
52
- }, {
53
- readonly internalType: "uint256";
54
- readonly name: "needed";
55
- readonly type: "uint256";
56
- }];
57
- readonly name: "ERC20InsufficientBalance";
58
- readonly type: "error";
59
- }, {
60
- readonly inputs: readonly [{
61
- readonly internalType: "address";
62
- readonly name: "approver";
63
- readonly type: "address";
64
- }];
65
- readonly name: "ERC20InvalidApprover";
66
- readonly type: "error";
67
- }, {
68
- readonly inputs: readonly [{
69
- readonly internalType: "address";
70
- readonly name: "receiver";
71
- readonly type: "address";
72
- }];
73
- readonly name: "ERC20InvalidReceiver";
74
- readonly type: "error";
75
- }, {
76
- readonly inputs: readonly [{
77
- readonly internalType: "address";
78
- readonly name: "sender";
79
- readonly type: "address";
80
- }];
81
- readonly name: "ERC20InvalidSender";
82
- readonly type: "error";
83
- }, {
84
- readonly inputs: readonly [{
85
- readonly internalType: "address";
86
- readonly name: "spender";
87
- readonly type: "address";
88
- }];
89
- readonly name: "ERC20InvalidSpender";
90
- readonly type: "error";
91
- }, {
92
- readonly inputs: readonly [];
93
- readonly name: "FailedInnerCall";
94
- readonly type: "error";
95
- }, {
96
- readonly inputs: readonly [{
97
- readonly internalType: "address";
98
- readonly name: "AMM";
99
- readonly type: "address";
100
- }];
101
- readonly name: "InvalidAMM";
102
- readonly type: "error";
103
- }, {
104
- readonly inputs: readonly [{
105
- readonly internalType: "address";
106
- readonly name: "tokenAddress";
107
- readonly type: "address";
108
- }];
109
- readonly name: "InvalidToken";
110
- readonly type: "error";
111
- }, {
112
- readonly inputs: readonly [{
113
- readonly internalType: "address";
114
- readonly name: "owner";
115
- readonly type: "address";
116
- }];
117
- readonly name: "OwnableInvalidOwner";
118
- readonly type: "error";
119
- }, {
120
- readonly inputs: readonly [{
121
- readonly internalType: "address";
122
- readonly name: "account";
123
- readonly type: "address";
124
- }];
125
- readonly name: "OwnableUnauthorizedAccount";
126
- readonly type: "error";
127
- }, {
128
- readonly inputs: readonly [{
129
- readonly internalType: "address";
130
- readonly name: "token";
131
- readonly type: "address";
132
- }];
133
- readonly name: "SafeERC20FailedOperation";
134
- readonly type: "error";
135
- }, {
136
- readonly anonymous: false;
137
- readonly inputs: readonly [{
138
- readonly indexed: true;
139
- readonly internalType: "address";
140
- readonly name: "AMM";
141
- readonly type: "address";
142
- }, {
143
- readonly indexed: false;
144
- readonly internalType: "bool";
145
- readonly name: "isAMM";
146
- readonly type: "bool";
147
- }];
148
- readonly name: "AMMUpdated";
149
- readonly type: "event";
150
11
  }, {
151
12
  readonly anonymous: false;
152
13
  readonly inputs: readonly [{
@@ -170,42 +31,12 @@ export declare const USD_Tehter_jsonAbi: readonly [{
170
31
  }, {
171
32
  readonly anonymous: false;
172
33
  readonly inputs: readonly [{
173
- readonly indexed: true;
174
- readonly internalType: "address";
175
- readonly name: "previousOwner";
176
- readonly type: "address";
177
- }, {
178
- readonly indexed: true;
179
- readonly internalType: "address";
180
- readonly name: "newOwner";
181
- readonly type: "address";
182
- }];
183
- readonly name: "OwnershipTransferStarted";
184
- readonly type: "event";
185
- }, {
186
- readonly anonymous: false;
187
- readonly inputs: readonly [{
188
- readonly indexed: true;
189
- readonly internalType: "address";
190
- readonly name: "previousOwner";
191
- readonly type: "address";
192
- }, {
193
- readonly indexed: true;
194
- readonly internalType: "address";
195
- readonly name: "newOwner";
196
- readonly type: "address";
197
- }];
198
- readonly name: "OwnershipTransferred";
199
- readonly type: "event";
200
- }, {
201
- readonly anonymous: false;
202
- readonly inputs: readonly [{
203
- readonly indexed: true;
204
- readonly internalType: "address";
205
- readonly name: "routerV2";
206
- readonly type: "address";
34
+ readonly indexed: false;
35
+ readonly internalType: "uint8";
36
+ readonly name: "version";
37
+ readonly type: "uint8";
207
38
  }];
208
- readonly name: "RouterV2Updated";
39
+ readonly name: "Initialized";
209
40
  readonly type: "event";
210
41
  }, {
211
42
  readonly anonymous: false;
@@ -227,36 +58,6 @@ export declare const USD_Tehter_jsonAbi: readonly [{
227
58
  }];
228
59
  readonly name: "Transfer";
229
60
  readonly type: "event";
230
- }, {
231
- readonly inputs: readonly [{
232
- readonly internalType: "address";
233
- readonly name: "";
234
- readonly type: "address";
235
- }];
236
- readonly name: "AMMs";
237
- readonly outputs: readonly [{
238
- readonly internalType: "bool";
239
- readonly name: "";
240
- readonly type: "bool";
241
- }];
242
- readonly stateMutability: "view";
243
- readonly type: "function";
244
- }, {
245
- readonly inputs: readonly [];
246
- readonly name: "acceptOwnership";
247
- readonly outputs: readonly [];
248
- readonly stateMutability: "nonpayable";
249
- readonly type: "function";
250
- }, {
251
- readonly inputs: readonly [{
252
- readonly internalType: "address";
253
- readonly name: "_router";
254
- readonly type: "address";
255
- }];
256
- readonly name: "afterConstructor";
257
- readonly outputs: readonly [];
258
- readonly stateMutability: "nonpayable";
259
- readonly type: "function";
260
61
  }, {
261
62
  readonly inputs: readonly [{
262
63
  readonly internalType: "address";
@@ -282,7 +83,7 @@ export declare const USD_Tehter_jsonAbi: readonly [{
282
83
  readonly type: "address";
283
84
  }, {
284
85
  readonly internalType: "uint256";
285
- readonly name: "value";
86
+ readonly name: "amount";
286
87
  readonly type: "uint256";
287
88
  }];
288
89
  readonly name: "approve";
@@ -310,7 +111,7 @@ export declare const USD_Tehter_jsonAbi: readonly [{
310
111
  }, {
311
112
  readonly inputs: readonly [{
312
113
  readonly internalType: "uint256";
313
- readonly name: "value";
114
+ readonly name: "amount";
314
115
  readonly type: "uint256";
315
116
  }];
316
117
  readonly name: "burn";
@@ -324,7 +125,7 @@ export declare const USD_Tehter_jsonAbi: readonly [{
324
125
  readonly type: "address";
325
126
  }, {
326
127
  readonly internalType: "uint256";
327
- readonly name: "value";
128
+ readonly name: "amount";
328
129
  readonly type: "uint256";
329
130
  }];
330
131
  readonly name: "burnFrom";
@@ -339,111 +140,89 @@ export declare const USD_Tehter_jsonAbi: readonly [{
339
140
  readonly name: "";
340
141
  readonly type: "uint8";
341
142
  }];
342
- readonly stateMutability: "pure";
343
- readonly type: "function";
344
- }, {
345
- readonly inputs: readonly [];
346
- readonly name: "deploymentKey";
347
- readonly outputs: readonly [{
348
- readonly internalType: "bytes32";
349
- readonly name: "";
350
- readonly type: "bytes32";
351
- }];
352
- readonly stateMutability: "pure";
353
- readonly type: "function";
354
- }, {
355
- readonly inputs: readonly [];
356
- readonly name: "name";
357
- readonly outputs: readonly [{
358
- readonly internalType: "string";
359
- readonly name: "";
360
- readonly type: "string";
361
- }];
362
143
  readonly stateMutability: "view";
363
144
  readonly type: "function";
364
145
  }, {
365
- readonly inputs: readonly [];
366
- readonly name: "owner";
367
- readonly outputs: readonly [{
368
- readonly internalType: "address";
369
- readonly name: "";
370
- readonly type: "address";
371
- }];
372
- readonly stateMutability: "view";
373
- readonly type: "function";
374
- }, {
375
- readonly inputs: readonly [];
376
- readonly name: "pairV2";
377
- readonly outputs: readonly [{
146
+ readonly inputs: readonly [{
378
147
  readonly internalType: "address";
379
- readonly name: "";
148
+ readonly name: "spender";
380
149
  readonly type: "address";
150
+ }, {
151
+ readonly internalType: "uint256";
152
+ readonly name: "subtractedValue";
153
+ readonly type: "uint256";
381
154
  }];
382
- readonly stateMutability: "view";
383
- readonly type: "function";
384
- }, {
385
- readonly inputs: readonly [];
386
- readonly name: "pendingOwner";
155
+ readonly name: "decreaseAllowance";
387
156
  readonly outputs: readonly [{
388
- readonly internalType: "address";
157
+ readonly internalType: "bool";
389
158
  readonly name: "";
390
- readonly type: "address";
159
+ readonly type: "bool";
391
160
  }];
392
- readonly stateMutability: "view";
161
+ readonly stateMutability: "nonpayable";
393
162
  readonly type: "function";
394
163
  }, {
395
164
  readonly inputs: readonly [{
396
165
  readonly internalType: "address";
397
- readonly name: "tokenAddress";
166
+ readonly name: "spender";
398
167
  readonly type: "address";
399
168
  }, {
400
169
  readonly internalType: "uint256";
401
- readonly name: "amount";
170
+ readonly name: "addedValue";
402
171
  readonly type: "uint256";
403
172
  }];
404
- readonly name: "recoverForeignERC20";
405
- readonly outputs: readonly [];
173
+ readonly name: "increaseAllowance";
174
+ readonly outputs: readonly [{
175
+ readonly internalType: "bool";
176
+ readonly name: "";
177
+ readonly type: "bool";
178
+ }];
406
179
  readonly stateMutability: "nonpayable";
407
180
  readonly type: "function";
408
181
  }, {
409
182
  readonly inputs: readonly [{
183
+ readonly internalType: "address";
184
+ readonly name: "_owner";
185
+ readonly type: "address";
186
+ }, {
187
+ readonly internalType: "string";
188
+ readonly name: "_name";
189
+ readonly type: "string";
190
+ }, {
191
+ readonly internalType: "string";
192
+ readonly name: "_symbol";
193
+ readonly type: "string";
194
+ }, {
195
+ readonly internalType: "uint8";
196
+ readonly name: "_decimals";
197
+ readonly type: "uint8";
198
+ }, {
410
199
  readonly internalType: "uint256";
411
- readonly name: "amount";
200
+ readonly name: "_initialSupply";
412
201
  readonly type: "uint256";
413
202
  }];
414
- readonly name: "recoverToken";
203
+ readonly name: "initialize";
415
204
  readonly outputs: readonly [];
416
205
  readonly stateMutability: "nonpayable";
417
206
  readonly type: "function";
418
207
  }, {
419
208
  readonly inputs: readonly [];
420
- readonly name: "renounceOwnership";
421
- readonly outputs: readonly [];
422
- readonly stateMutability: "nonpayable";
423
- readonly type: "function";
424
- }, {
425
- readonly inputs: readonly [];
426
- readonly name: "routerV2";
209
+ readonly name: "maxSupply";
427
210
  readonly outputs: readonly [{
428
- readonly internalType: "contract IUniswapV2Router02";
211
+ readonly internalType: "uint256";
429
212
  readonly name: "";
430
- readonly type: "address";
213
+ readonly type: "uint256";
431
214
  }];
432
215
  readonly stateMutability: "view";
433
216
  readonly type: "function";
434
217
  }, {
435
- readonly inputs: readonly [{
436
- readonly internalType: "address";
437
- readonly name: "AMM";
438
- readonly type: "address";
439
- }, {
440
- readonly internalType: "bool";
441
- readonly name: "isAMM";
442
- readonly type: "bool";
218
+ readonly inputs: readonly [];
219
+ readonly name: "name";
220
+ readonly outputs: readonly [{
221
+ readonly internalType: "string";
222
+ readonly name: "";
223
+ readonly type: "string";
443
224
  }];
444
- readonly name: "setAMM";
445
- readonly outputs: readonly [];
446
- readonly stateMutability: "nonpayable";
225
+ readonly stateMutability: "view";
447
226
  readonly type: "function";
448
227
  }, {
449
228
  readonly inputs: readonly [];
@@ -472,7 +251,7 @@ export declare const USD_Tehter_jsonAbi: readonly [{
472
251
  readonly type: "address";
473
252
  }, {
474
253
  readonly internalType: "uint256";
475
- readonly name: "value";
254
+ readonly name: "amount";
476
255
  readonly type: "uint256";
477
256
  }];
478
257
  readonly name: "transfer";
@@ -494,7 +273,7 @@ export declare const USD_Tehter_jsonAbi: readonly [{
494
273
  readonly type: "address";
495
274
  }, {
496
275
  readonly internalType: "uint256";
497
- readonly name: "value";
276
+ readonly name: "amount";
498
277
  readonly type: "uint256";
499
278
  }];
500
279
  readonly name: "transferFrom";
@@ -505,27 +284,17 @@ export declare const USD_Tehter_jsonAbi: readonly [{
505
284
  }];
506
285
  readonly stateMutability: "nonpayable";
507
286
  readonly type: "function";
508
- }, {
509
- readonly inputs: readonly [{
510
- readonly internalType: "address";
511
- readonly name: "newOwner";
512
- readonly type: "address";
513
- }];
514
- readonly name: "transferOwnership";
515
- readonly outputs: readonly [];
516
- readonly stateMutability: "nonpayable";
517
- readonly type: "function";
518
287
  }];
519
288
  /**
520
- * Type-safe ABI for USD_Tehter_json
289
+ * Type-safe ABI for StandardToken_json
521
290
  */
522
- export type USD_Tehter_jsonAbi = typeof USD_Tehter_jsonAbi;
291
+ export type StandardToken_jsonAbi = typeof StandardToken_jsonAbi;
523
292
  /**
524
- * Contract instance type for USD_Tehter_json
293
+ * Contract instance type for StandardToken_json
525
294
  */
526
- export type USD_Tehter_jsonContract = any;
295
+ export type StandardToken_jsonContract = any;
527
296
  /**
528
- * USD_Tehter_json Contract Class
297
+ * StandardToken_json Contract Class
529
298
  *
530
299
  * Provides a class-based API similar to TypeChain for interacting with the contract.
531
300
  *
@@ -533,12 +302,12 @@ export type USD_Tehter_jsonContract = any;
533
302
  * ```typescript
534
303
  * import { createPublicClient, createWalletClient, http } from 'viem';
535
304
  * import { mainnet } from 'viem/chains';
536
- * import { USD_Tehter_json } from 'USD_Tehter_json';
305
+ * import { StandardToken_json } from 'StandardToken_json';
537
306
  *
538
307
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
539
308
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
540
309
  *
541
- * const contract = new USD_Tehter_json('0x...', { publicClient, walletClient });
310
+ * const contract = new StandardToken_json('0x...', { publicClient, walletClient });
542
311
  *
543
312
  * // Read functions
544
313
  * const result = await contract.balanceOf('0x...');
@@ -556,7 +325,7 @@ export type USD_Tehter_jsonContract = any;
556
325
  * });
557
326
  * ```
558
327
  */
559
- export declare class USD_Tehter_json {
328
+ export declare class StandardToken_json {
560
329
  private contract;
561
330
  private contractAddress;
562
331
  private publicClient;
@@ -571,12 +340,7 @@ export declare class USD_Tehter_json {
571
340
  /**
572
341
  * Get the underlying viem contract instance
573
342
  */
574
- getContract(): USD_Tehter_jsonContract;
575
- /**
576
- * AMMs
577
- * view
578
- */
579
- AMMs(arg0: `0x${string}`): Promise<boolean>;
343
+ getContract(): StandardToken_jsonContract;
580
344
  /**
581
345
  * allowance
582
346
  * view
@@ -589,39 +353,19 @@ export declare class USD_Tehter_json {
589
353
  balanceOf(account: `0x${string}`): Promise<bigint>;
590
354
  /**
591
355
  * decimals
592
- * pure
356
+ * view
593
357
  */
594
358
  decimals(): Promise<bigint>;
595
359
  /**
596
- * deploymentKey
597
- * pure
360
+ * maxSupply
361
+ * view
598
362
  */
599
- deploymentKey(): Promise<`0x${string}`>;
363
+ maxSupply(): Promise<bigint>;
600
364
  /**
601
365
  * name
602
366
  * view
603
367
  */
604
368
  name(): Promise<string>;
605
- /**
606
- * owner
607
- * view
608
- */
609
- owner(): Promise<`0x${string}`>;
610
- /**
611
- * pairV2
612
- * view
613
- */
614
- pairV2(): Promise<`0x${string}`>;
615
- /**
616
- * pendingOwner
617
- * view
618
- */
619
- pendingOwner(): Promise<`0x${string}`>;
620
- /**
621
- * routerV2
622
- * view
623
- */
624
- routerV2(): Promise<`0x${string}`>;
625
369
  /**
626
370
  * symbol
627
371
  * view
@@ -632,46 +376,12 @@ export declare class USD_Tehter_json {
632
376
  * view
633
377
  */
634
378
  totalSupply(): Promise<bigint>;
635
- /**
636
- * acceptOwnership
637
- * nonpayable
638
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
639
- */
640
- acceptOwnership(options?: {
641
- accessList?: import('viem').AccessList;
642
- authorizationList?: import('viem').AuthorizationList;
643
- chain?: import('viem').Chain | null;
644
- dataSuffix?: `0x${string}`;
645
- gas?: bigint;
646
- gasPrice?: bigint;
647
- maxFeePerGas?: bigint;
648
- maxPriorityFeePerGas?: bigint;
649
- nonce?: number;
650
- value?: bigint;
651
- }): Promise<`0x${string}`>;
652
- /**
653
- * afterConstructor
654
- * nonpayable
655
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
656
- */
657
- afterConstructor(_router: `0x${string}`, options?: {
658
- accessList?: import('viem').AccessList;
659
- authorizationList?: import('viem').AuthorizationList;
660
- chain?: import('viem').Chain | null;
661
- dataSuffix?: `0x${string}`;
662
- gas?: bigint;
663
- gasPrice?: bigint;
664
- maxFeePerGas?: bigint;
665
- maxPriorityFeePerGas?: bigint;
666
- nonce?: number;
667
- value?: bigint;
668
- }): Promise<`0x${string}`>;
669
379
  /**
670
380
  * approve
671
381
  * nonpayable
672
382
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
673
383
  */
674
- approve(spender: `0x${string}`, value: bigint, options?: {
384
+ approve(spender: `0x${string}`, amount: bigint, options?: {
675
385
  accessList?: import('viem').AccessList;
676
386
  authorizationList?: import('viem').AuthorizationList;
677
387
  chain?: import('viem').Chain | null;
@@ -688,7 +398,7 @@ export declare class USD_Tehter_json {
688
398
  * nonpayable
689
399
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
690
400
  */
691
- burn(value: bigint, options?: {
401
+ burn(amount: bigint, options?: {
692
402
  accessList?: import('viem').AccessList;
693
403
  authorizationList?: import('viem').AuthorizationList;
694
404
  chain?: import('viem').Chain | null;
@@ -705,24 +415,7 @@ export declare class USD_Tehter_json {
705
415
  * nonpayable
706
416
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
707
417
  */
708
- burnFrom(account: `0x${string}`, value: bigint, options?: {
709
- accessList?: import('viem').AccessList;
710
- authorizationList?: import('viem').AuthorizationList;
711
- chain?: import('viem').Chain | null;
712
- dataSuffix?: `0x${string}`;
713
- gas?: bigint;
714
- gasPrice?: bigint;
715
- maxFeePerGas?: bigint;
716
- maxPriorityFeePerGas?: bigint;
717
- nonce?: number;
718
- value?: bigint;
719
- }): Promise<`0x${string}`>;
720
- /**
721
- * recoverForeignERC20
722
- * nonpayable
723
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
724
- */
725
- recoverForeignERC20(tokenAddress: `0x${string}`, amount: bigint, options?: {
418
+ burnFrom(account: `0x${string}`, amount: bigint, options?: {
726
419
  accessList?: import('viem').AccessList;
727
420
  authorizationList?: import('viem').AuthorizationList;
728
421
  chain?: import('viem').Chain | null;
@@ -735,11 +428,11 @@ export declare class USD_Tehter_json {
735
428
  value?: bigint;
736
429
  }): Promise<`0x${string}`>;
737
430
  /**
738
- * recoverToken
431
+ * decreaseAllowance
739
432
  * nonpayable
740
433
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
741
434
  */
742
- recoverToken(amount: bigint, options?: {
435
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
743
436
  accessList?: import('viem').AccessList;
744
437
  authorizationList?: import('viem').AuthorizationList;
745
438
  chain?: import('viem').Chain | null;
@@ -752,11 +445,11 @@ export declare class USD_Tehter_json {
752
445
  value?: bigint;
753
446
  }): Promise<`0x${string}`>;
754
447
  /**
755
- * renounceOwnership
448
+ * increaseAllowance
756
449
  * nonpayable
757
450
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
758
451
  */
759
- renounceOwnership(options?: {
452
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
760
453
  accessList?: import('viem').AccessList;
761
454
  authorizationList?: import('viem').AuthorizationList;
762
455
  chain?: import('viem').Chain | null;
@@ -769,11 +462,11 @@ export declare class USD_Tehter_json {
769
462
  value?: bigint;
770
463
  }): Promise<`0x${string}`>;
771
464
  /**
772
- * setAMM
465
+ * initialize
773
466
  * nonpayable
774
467
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
775
468
  */
776
- setAMM(AMM: `0x${string}`, isAMM: boolean, options?: {
469
+ initialize(_owner: `0x${string}`, _name: string, _symbol: string, _decimals: bigint, _initialSupply: bigint, options?: {
777
470
  accessList?: import('viem').AccessList;
778
471
  authorizationList?: import('viem').AuthorizationList;
779
472
  chain?: import('viem').Chain | null;
@@ -790,7 +483,7 @@ export declare class USD_Tehter_json {
790
483
  * nonpayable
791
484
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
792
485
  */
793
- transfer(to: `0x${string}`, value: bigint, options?: {
486
+ transfer(to: `0x${string}`, amount: bigint, options?: {
794
487
  accessList?: import('viem').AccessList;
795
488
  authorizationList?: import('viem').AuthorizationList;
796
489
  chain?: import('viem').Chain | null;
@@ -807,24 +500,7 @@ export declare class USD_Tehter_json {
807
500
  * nonpayable
808
501
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
809
502
  */
810
- transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
811
- accessList?: import('viem').AccessList;
812
- authorizationList?: import('viem').AuthorizationList;
813
- chain?: import('viem').Chain | null;
814
- dataSuffix?: `0x${string}`;
815
- gas?: bigint;
816
- gasPrice?: bigint;
817
- maxFeePerGas?: bigint;
818
- maxPriorityFeePerGas?: bigint;
819
- nonce?: number;
820
- value?: bigint;
821
- }): Promise<`0x${string}`>;
822
- /**
823
- * transferOwnership
824
- * nonpayable
825
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
826
- */
827
- transferOwnership(newOwner: `0x${string}`, options?: {
503
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
828
504
  accessList?: import('viem').AccessList;
829
505
  authorizationList?: import('viem').AuthorizationList;
830
506
  chain?: import('viem').Chain | null;
@@ -845,46 +521,12 @@ export declare class USD_Tehter_json {
845
521
  * console.log('Would succeed:', result.result);
846
522
  */
847
523
  get simulate(): {
848
- /**
849
- * Simulate acceptOwnership
850
- * Returns gas estimate and result without sending transaction
851
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
852
- */
853
- acceptOwnership(options?: {
854
- accessList?: import("viem").AccessList;
855
- authorizationList?: import("viem").AuthorizationList;
856
- chain?: import("viem").Chain | null;
857
- dataSuffix?: `0x${string}`;
858
- gas?: bigint;
859
- gasPrice?: bigint;
860
- maxFeePerGas?: bigint;
861
- maxPriorityFeePerGas?: bigint;
862
- nonce?: number;
863
- value?: bigint;
864
- }): Promise<void>;
865
- /**
866
- * Simulate afterConstructor
867
- * Returns gas estimate and result without sending transaction
868
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
869
- */
870
- afterConstructor(_router: `0x${string}`, options?: {
871
- accessList?: import("viem").AccessList;
872
- authorizationList?: import("viem").AuthorizationList;
873
- chain?: import("viem").Chain | null;
874
- dataSuffix?: `0x${string}`;
875
- gas?: bigint;
876
- gasPrice?: bigint;
877
- maxFeePerGas?: bigint;
878
- maxPriorityFeePerGas?: bigint;
879
- nonce?: number;
880
- value?: bigint;
881
- }): Promise<void>;
882
524
  /**
883
525
  * Simulate approve
884
526
  * Returns gas estimate and result without sending transaction
885
527
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
886
528
  */
887
- approve(spender: `0x${string}`, value: bigint, options?: {
529
+ approve(spender: `0x${string}`, amount: bigint, options?: {
888
530
  accessList?: import("viem").AccessList;
889
531
  authorizationList?: import("viem").AuthorizationList;
890
532
  chain?: import("viem").Chain | null;
@@ -901,7 +543,7 @@ export declare class USD_Tehter_json {
901
543
  * Returns gas estimate and result without sending transaction
902
544
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
903
545
  */
904
- burn(value: bigint, options?: {
546
+ burn(amount: bigint, options?: {
905
547
  accessList?: import("viem").AccessList;
906
548
  authorizationList?: import("viem").AuthorizationList;
907
549
  chain?: import("viem").Chain | null;
@@ -918,7 +560,7 @@ export declare class USD_Tehter_json {
918
560
  * Returns gas estimate and result without sending transaction
919
561
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
920
562
  */
921
- burnFrom(account: `0x${string}`, value: bigint, options?: {
563
+ burnFrom(account: `0x${string}`, amount: bigint, options?: {
922
564
  accessList?: import("viem").AccessList;
923
565
  authorizationList?: import("viem").AuthorizationList;
924
566
  chain?: import("viem").Chain | null;
@@ -931,11 +573,11 @@ export declare class USD_Tehter_json {
931
573
  value?: bigint;
932
574
  }): Promise<void>;
933
575
  /**
934
- * Simulate recoverForeignERC20
576
+ * Simulate decreaseAllowance
935
577
  * Returns gas estimate and result without sending transaction
936
578
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
937
579
  */
938
- recoverForeignERC20(tokenAddress: `0x${string}`, amount: bigint, options?: {
580
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
939
581
  accessList?: import("viem").AccessList;
940
582
  authorizationList?: import("viem").AuthorizationList;
941
583
  chain?: import("viem").Chain | null;
@@ -946,30 +588,13 @@ export declare class USD_Tehter_json {
946
588
  maxPriorityFeePerGas?: bigint;
947
589
  nonce?: number;
948
590
  value?: bigint;
949
- }): Promise<void>;
950
- /**
951
- * Simulate recoverToken
952
- * Returns gas estimate and result without sending transaction
953
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
954
- */
955
- recoverToken(amount: bigint, options?: {
956
- accessList?: import("viem").AccessList;
957
- authorizationList?: import("viem").AuthorizationList;
958
- chain?: import("viem").Chain | null;
959
- dataSuffix?: `0x${string}`;
960
- gas?: bigint;
961
- gasPrice?: bigint;
962
- maxFeePerGas?: bigint;
963
- maxPriorityFeePerGas?: bigint;
964
- nonce?: number;
965
- value?: bigint;
966
- }): Promise<void>;
591
+ }): Promise<boolean>;
967
592
  /**
968
- * Simulate renounceOwnership
593
+ * Simulate increaseAllowance
969
594
  * Returns gas estimate and result without sending transaction
970
595
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
971
596
  */
972
- renounceOwnership(options?: {
597
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
973
598
  accessList?: import("viem").AccessList;
974
599
  authorizationList?: import("viem").AuthorizationList;
975
600
  chain?: import("viem").Chain | null;
@@ -980,13 +605,13 @@ export declare class USD_Tehter_json {
980
605
  maxPriorityFeePerGas?: bigint;
981
606
  nonce?: number;
982
607
  value?: bigint;
983
- }): Promise<void>;
608
+ }): Promise<boolean>;
984
609
  /**
985
- * Simulate setAMM
610
+ * Simulate initialize
986
611
  * Returns gas estimate and result without sending transaction
987
612
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
988
613
  */
989
- setAMM(AMM: `0x${string}`, isAMM: boolean, options?: {
614
+ initialize(_owner: `0x${string}`, _name: string, _symbol: string, _decimals: bigint, _initialSupply: bigint, options?: {
990
615
  accessList?: import("viem").AccessList;
991
616
  authorizationList?: import("viem").AuthorizationList;
992
617
  chain?: import("viem").Chain | null;
@@ -1003,7 +628,7 @@ export declare class USD_Tehter_json {
1003
628
  * Returns gas estimate and result without sending transaction
1004
629
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1005
630
  */
1006
- transfer(to: `0x${string}`, value: bigint, options?: {
631
+ transfer(to: `0x${string}`, amount: bigint, options?: {
1007
632
  accessList?: import("viem").AccessList;
1008
633
  authorizationList?: import("viem").AuthorizationList;
1009
634
  chain?: import("viem").Chain | null;
@@ -1020,7 +645,7 @@ export declare class USD_Tehter_json {
1020
645
  * Returns gas estimate and result without sending transaction
1021
646
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1022
647
  */
1023
- transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
648
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
1024
649
  accessList?: import("viem").AccessList;
1025
650
  authorizationList?: import("viem").AuthorizationList;
1026
651
  chain?: import("viem").Chain | null;
@@ -1032,23 +657,6 @@ export declare class USD_Tehter_json {
1032
657
  nonce?: number;
1033
658
  value?: bigint;
1034
659
  }): Promise<boolean>;
1035
- /**
1036
- * Simulate transferOwnership
1037
- * Returns gas estimate and result without sending transaction
1038
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1039
- */
1040
- transferOwnership(newOwner: `0x${string}`, options?: {
1041
- accessList?: import("viem").AccessList;
1042
- authorizationList?: import("viem").AuthorizationList;
1043
- chain?: import("viem").Chain | null;
1044
- dataSuffix?: `0x${string}`;
1045
- gas?: bigint;
1046
- gasPrice?: bigint;
1047
- maxFeePerGas?: bigint;
1048
- maxPriorityFeePerGas?: bigint;
1049
- nonce?: number;
1050
- value?: bigint;
1051
- }): Promise<void>;
1052
660
  };
1053
661
  /**
1054
662
  * Watch contract events
@@ -1063,18 +671,6 @@ export declare class USD_Tehter_json {
1063
671
  * unwatch();
1064
672
  */
1065
673
  get watch(): {
1066
- /**
1067
- * Watch AMMUpdated events
1068
- * @param callback Function to call when event is emitted
1069
- * @param filter Optional filter for indexed parameters
1070
- * @returns Unwatch function to stop listening
1071
- */
1072
- AMMUpdated: (callback: (event: {
1073
- AMM: `0x${string}`;
1074
- isAMM: boolean;
1075
- }) => void, filter?: {
1076
- AMM: `0x${string}`;
1077
- }) => () => void;
1078
674
  /**
1079
675
  * Watch Approval events
1080
676
  * @param callback Function to call when event is emitted
@@ -1090,42 +686,14 @@ export declare class USD_Tehter_json {
1090
686
  spender: `0x${string}`;
1091
687
  }) => () => void;
1092
688
  /**
1093
- * Watch OwnershipTransferStarted events
1094
- * @param callback Function to call when event is emitted
1095
- * @param filter Optional filter for indexed parameters
1096
- * @returns Unwatch function to stop listening
1097
- */
1098
- OwnershipTransferStarted: (callback: (event: {
1099
- previousOwner: `0x${string}`;
1100
- newOwner: `0x${string}`;
1101
- }) => void, filter?: {
1102
- previousOwner: `0x${string}`;
1103
- newOwner: `0x${string}`;
1104
- }) => () => void;
1105
- /**
1106
- * Watch OwnershipTransferred events
689
+ * Watch Initialized events
1107
690
  * @param callback Function to call when event is emitted
1108
691
  * @param filter Optional filter for indexed parameters
1109
692
  * @returns Unwatch function to stop listening
1110
693
  */
1111
- OwnershipTransferred: (callback: (event: {
1112
- previousOwner: `0x${string}`;
1113
- newOwner: `0x${string}`;
1114
- }) => void, filter?: {
1115
- previousOwner: `0x${string}`;
1116
- newOwner: `0x${string}`;
1117
- }) => () => void;
1118
- /**
1119
- * Watch RouterV2Updated events
1120
- * @param callback Function to call when event is emitted
1121
- * @param filter Optional filter for indexed parameters
1122
- * @returns Unwatch function to stop listening
1123
- */
1124
- RouterV2Updated: (callback: (event: {
1125
- routerV2: `0x${string}`;
1126
- }) => void, filter?: {
1127
- routerV2: `0x${string}`;
1128
- }) => () => void;
694
+ Initialized: (callback: (event: {
695
+ version: bigint;
696
+ }) => void) => () => void;
1129
697
  /**
1130
698
  * Watch Transfer events
1131
699
  * @param callback Function to call when event is emitted