@gitmyabi/usdt 1.0.28 → 1.0.29

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.
@@ -2,549 +2,696 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * ERC20Token_json ABI
5
+ * TetherToken_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const ERC20Token_jsonAbi = [
9
+ export const TetherToken_jsonAbi = [
10
10
  {
11
- "inputs": [
12
- {
13
- "internalType": "string",
14
- "name": "initialName",
15
- "type": "string"
16
- },
11
+ "constant": true,
12
+ "inputs": [],
13
+ "name": "name",
14
+ "outputs": [
17
15
  {
18
- "internalType": "string",
19
- "name": "initialSymbol",
16
+ "name": "",
20
17
  "type": "string"
21
- },
22
- {
23
- "internalType": "uint256",
24
- "name": "initSupply",
25
- "type": "uint256"
26
- },
18
+ }
19
+ ],
20
+ "payable": false,
21
+ "stateMutability": "view",
22
+ "type": "function"
23
+ },
24
+ {
25
+ "constant": false,
26
+ "inputs": [
27
27
  {
28
- "internalType": "uint8",
29
- "name": "initialDecimals",
30
- "type": "uint8"
28
+ "name": "_upgradedAddress",
29
+ "type": "address"
31
30
  }
32
31
  ],
32
+ "name": "deprecate",
33
+ "outputs": [],
34
+ "payable": false,
33
35
  "stateMutability": "nonpayable",
34
- "type": "constructor"
36
+ "type": "function"
35
37
  },
36
38
  {
39
+ "constant": false,
37
40
  "inputs": [
38
41
  {
39
- "internalType": "address",
40
- "name": "spender",
42
+ "name": "_spender",
41
43
  "type": "address"
42
44
  },
43
45
  {
44
- "internalType": "uint256",
45
- "name": "allowance",
46
+ "name": "_value",
46
47
  "type": "uint256"
47
- },
48
+ }
49
+ ],
50
+ "name": "approve",
51
+ "outputs": [],
52
+ "payable": false,
53
+ "stateMutability": "nonpayable",
54
+ "type": "function"
55
+ },
56
+ {
57
+ "constant": true,
58
+ "inputs": [],
59
+ "name": "deprecated",
60
+ "outputs": [
61
+ {
62
+ "name": "",
63
+ "type": "bool"
64
+ }
65
+ ],
66
+ "payable": false,
67
+ "stateMutability": "view",
68
+ "type": "function"
69
+ },
70
+ {
71
+ "constant": false,
72
+ "inputs": [
48
73
  {
49
- "internalType": "uint256",
50
- "name": "needed",
74
+ "name": "_evilUser",
75
+ "type": "address"
76
+ }
77
+ ],
78
+ "name": "addBlackList",
79
+ "outputs": [],
80
+ "payable": false,
81
+ "stateMutability": "nonpayable",
82
+ "type": "function"
83
+ },
84
+ {
85
+ "constant": true,
86
+ "inputs": [],
87
+ "name": "totalSupply",
88
+ "outputs": [
89
+ {
90
+ "name": "",
51
91
  "type": "uint256"
52
92
  }
53
93
  ],
54
- "name": "ERC20InsufficientAllowance",
55
- "type": "error"
94
+ "payable": false,
95
+ "stateMutability": "view",
96
+ "type": "function"
56
97
  },
57
98
  {
99
+ "constant": false,
58
100
  "inputs": [
59
101
  {
60
- "internalType": "address",
61
- "name": "sender",
102
+ "name": "_from",
62
103
  "type": "address"
63
104
  },
64
105
  {
65
- "internalType": "uint256",
66
- "name": "balance",
67
- "type": "uint256"
106
+ "name": "_to",
107
+ "type": "address"
68
108
  },
69
109
  {
70
- "internalType": "uint256",
71
- "name": "needed",
110
+ "name": "_value",
72
111
  "type": "uint256"
73
112
  }
74
113
  ],
75
- "name": "ERC20InsufficientBalance",
76
- "type": "error"
114
+ "name": "transferFrom",
115
+ "outputs": [],
116
+ "payable": false,
117
+ "stateMutability": "nonpayable",
118
+ "type": "function"
77
119
  },
78
120
  {
79
- "inputs": [
121
+ "constant": true,
122
+ "inputs": [],
123
+ "name": "upgradedAddress",
124
+ "outputs": [
80
125
  {
81
- "internalType": "address",
82
- "name": "approver",
126
+ "name": "",
83
127
  "type": "address"
84
128
  }
85
129
  ],
86
- "name": "ERC20InvalidApprover",
87
- "type": "error"
130
+ "payable": false,
131
+ "stateMutability": "view",
132
+ "type": "function"
88
133
  },
89
134
  {
135
+ "constant": true,
90
136
  "inputs": [
91
137
  {
92
- "internalType": "address",
93
- "name": "receiver",
138
+ "name": "",
94
139
  "type": "address"
95
140
  }
96
141
  ],
97
- "name": "ERC20InvalidReceiver",
98
- "type": "error"
142
+ "name": "balances",
143
+ "outputs": [
144
+ {
145
+ "name": "",
146
+ "type": "uint256"
147
+ }
148
+ ],
149
+ "payable": false,
150
+ "stateMutability": "view",
151
+ "type": "function"
99
152
  },
100
153
  {
101
- "inputs": [
154
+ "constant": true,
155
+ "inputs": [],
156
+ "name": "decimals",
157
+ "outputs": [
102
158
  {
103
- "internalType": "address",
104
- "name": "sender",
105
- "type": "address"
159
+ "name": "",
160
+ "type": "uint256"
106
161
  }
107
162
  ],
108
- "name": "ERC20InvalidSender",
109
- "type": "error"
163
+ "payable": false,
164
+ "stateMutability": "view",
165
+ "type": "function"
110
166
  },
111
167
  {
112
- "inputs": [
168
+ "constant": true,
169
+ "inputs": [],
170
+ "name": "maximumFee",
171
+ "outputs": [
113
172
  {
114
- "internalType": "address",
115
- "name": "spender",
116
- "type": "address"
173
+ "name": "",
174
+ "type": "uint256"
117
175
  }
118
176
  ],
119
- "name": "ERC20InvalidSpender",
120
- "type": "error"
177
+ "payable": false,
178
+ "stateMutability": "view",
179
+ "type": "function"
121
180
  },
122
181
  {
123
- "inputs": [
182
+ "constant": true,
183
+ "inputs": [],
184
+ "name": "_totalSupply",
185
+ "outputs": [
124
186
  {
125
- "internalType": "address",
126
- "name": "owner",
127
- "type": "address"
187
+ "name": "",
188
+ "type": "uint256"
128
189
  }
129
190
  ],
130
- "name": "OwnableInvalidOwner",
131
- "type": "error"
191
+ "payable": false,
192
+ "stateMutability": "view",
193
+ "type": "function"
194
+ },
195
+ {
196
+ "constant": false,
197
+ "inputs": [],
198
+ "name": "unpause",
199
+ "outputs": [],
200
+ "payable": false,
201
+ "stateMutability": "nonpayable",
202
+ "type": "function"
132
203
  },
133
204
  {
205
+ "constant": true,
134
206
  "inputs": [
135
207
  {
136
- "internalType": "address",
137
- "name": "account",
208
+ "name": "_maker",
138
209
  "type": "address"
139
210
  }
140
211
  ],
141
- "name": "OwnableUnauthorizedAccount",
142
- "type": "error"
212
+ "name": "getBlackListStatus",
213
+ "outputs": [
214
+ {
215
+ "name": "",
216
+ "type": "bool"
217
+ }
218
+ ],
219
+ "payable": false,
220
+ "stateMutability": "view",
221
+ "type": "function"
143
222
  },
144
223
  {
145
- "anonymous": false,
224
+ "constant": true,
146
225
  "inputs": [
147
226
  {
148
- "indexed": true,
149
- "internalType": "address",
150
- "name": "owner",
227
+ "name": "",
151
228
  "type": "address"
152
229
  },
153
230
  {
154
- "indexed": true,
155
- "internalType": "address",
156
- "name": "spender",
231
+ "name": "",
157
232
  "type": "address"
158
- },
233
+ }
234
+ ],
235
+ "name": "allowed",
236
+ "outputs": [
159
237
  {
160
- "indexed": false,
161
- "internalType": "uint256",
162
- "name": "value",
238
+ "name": "",
163
239
  "type": "uint256"
164
240
  }
165
241
  ],
166
- "name": "Approval",
167
- "type": "event"
242
+ "payable": false,
243
+ "stateMutability": "view",
244
+ "type": "function"
168
245
  },
169
246
  {
170
- "anonymous": false,
247
+ "constant": true,
248
+ "inputs": [],
249
+ "name": "paused",
250
+ "outputs": [
251
+ {
252
+ "name": "",
253
+ "type": "bool"
254
+ }
255
+ ],
256
+ "payable": false,
257
+ "stateMutability": "view",
258
+ "type": "function"
259
+ },
260
+ {
261
+ "constant": true,
171
262
  "inputs": [
172
263
  {
173
- "indexed": true,
174
- "internalType": "address",
175
- "name": "previousOwner",
264
+ "name": "who",
176
265
  "type": "address"
177
- },
266
+ }
267
+ ],
268
+ "name": "balanceOf",
269
+ "outputs": [
178
270
  {
179
- "indexed": true,
180
- "internalType": "address",
181
- "name": "newOwner",
182
- "type": "address"
271
+ "name": "",
272
+ "type": "uint256"
183
273
  }
184
274
  ],
185
- "name": "OwnershipTransferred",
186
- "type": "event"
275
+ "payable": false,
276
+ "stateMutability": "view",
277
+ "type": "function"
187
278
  },
188
279
  {
189
- "anonymous": false,
190
- "inputs": [
280
+ "constant": false,
281
+ "inputs": [],
282
+ "name": "pause",
283
+ "outputs": [],
284
+ "payable": false,
285
+ "stateMutability": "nonpayable",
286
+ "type": "function"
287
+ },
288
+ {
289
+ "constant": true,
290
+ "inputs": [],
291
+ "name": "getOwner",
292
+ "outputs": [
191
293
  {
192
- "indexed": false,
193
- "internalType": "uint8",
194
- "name": "precision",
195
- "type": "uint8"
294
+ "name": "",
295
+ "type": "address"
196
296
  }
197
297
  ],
198
- "name": "SetDecimals",
199
- "type": "event"
298
+ "payable": false,
299
+ "stateMutability": "view",
300
+ "type": "function"
200
301
  },
201
302
  {
202
- "anonymous": false,
203
- "inputs": [
303
+ "constant": true,
304
+ "inputs": [],
305
+ "name": "owner",
306
+ "outputs": [
204
307
  {
205
- "indexed": false,
206
- "internalType": "string",
207
- "name": "name",
208
- "type": "string"
308
+ "name": "",
309
+ "type": "address"
209
310
  }
210
311
  ],
211
- "name": "SetName",
212
- "type": "event"
312
+ "payable": false,
313
+ "stateMutability": "view",
314
+ "type": "function"
213
315
  },
214
316
  {
215
- "anonymous": false,
216
- "inputs": [
317
+ "constant": true,
318
+ "inputs": [],
319
+ "name": "symbol",
320
+ "outputs": [
217
321
  {
218
- "indexed": false,
219
- "internalType": "string",
220
- "name": "symbol",
322
+ "name": "",
221
323
  "type": "string"
222
324
  }
223
325
  ],
224
- "name": "SetSymbol",
225
- "type": "event"
326
+ "payable": false,
327
+ "stateMutability": "view",
328
+ "type": "function"
226
329
  },
227
330
  {
228
- "anonymous": false,
331
+ "constant": false,
229
332
  "inputs": [
230
333
  {
231
- "indexed": true,
232
- "internalType": "address",
233
- "name": "from",
334
+ "name": "_to",
234
335
  "type": "address"
235
336
  },
236
337
  {
237
- "indexed": true,
238
- "internalType": "address",
239
- "name": "to",
240
- "type": "address"
241
- },
242
- {
243
- "indexed": false,
244
- "internalType": "uint256",
245
- "name": "value",
338
+ "name": "_value",
246
339
  "type": "uint256"
247
340
  }
248
341
  ],
249
- "name": "Transfer",
250
- "type": "event"
342
+ "name": "transfer",
343
+ "outputs": [],
344
+ "payable": false,
345
+ "stateMutability": "nonpayable",
346
+ "type": "function"
251
347
  },
252
348
  {
349
+ "constant": false,
253
350
  "inputs": [
254
351
  {
255
- "internalType": "address",
256
- "name": "owner",
257
- "type": "address"
352
+ "name": "newBasisPoints",
353
+ "type": "uint256"
258
354
  },
259
355
  {
260
- "internalType": "address",
261
- "name": "spender",
262
- "type": "address"
263
- }
264
- ],
265
- "name": "allowance",
266
- "outputs": [
267
- {
268
- "internalType": "uint256",
269
- "name": "",
356
+ "name": "newMaxFee",
270
357
  "type": "uint256"
271
358
  }
272
359
  ],
273
- "stateMutability": "view",
360
+ "name": "setParams",
361
+ "outputs": [],
362
+ "payable": false,
363
+ "stateMutability": "nonpayable",
274
364
  "type": "function"
275
365
  },
276
366
  {
367
+ "constant": false,
277
368
  "inputs": [
278
369
  {
279
- "internalType": "address",
280
- "name": "spender",
281
- "type": "address"
282
- },
283
- {
284
- "internalType": "uint256",
285
- "name": "value",
370
+ "name": "amount",
286
371
  "type": "uint256"
287
372
  }
288
373
  ],
289
- "name": "approve",
290
- "outputs": [
374
+ "name": "issue",
375
+ "outputs": [],
376
+ "payable": false,
377
+ "stateMutability": "nonpayable",
378
+ "type": "function"
379
+ },
380
+ {
381
+ "constant": false,
382
+ "inputs": [
291
383
  {
292
- "internalType": "bool",
293
- "name": "",
294
- "type": "bool"
384
+ "name": "amount",
385
+ "type": "uint256"
295
386
  }
296
387
  ],
388
+ "name": "redeem",
389
+ "outputs": [],
390
+ "payable": false,
297
391
  "stateMutability": "nonpayable",
298
392
  "type": "function"
299
393
  },
300
394
  {
395
+ "constant": true,
301
396
  "inputs": [
302
397
  {
303
- "internalType": "address",
304
- "name": "account",
398
+ "name": "_owner",
399
+ "type": "address"
400
+ },
401
+ {
402
+ "name": "_spender",
305
403
  "type": "address"
306
404
  }
307
405
  ],
308
- "name": "balanceOf",
406
+ "name": "allowance",
309
407
  "outputs": [
310
408
  {
311
- "internalType": "uint256",
312
- "name": "",
409
+ "name": "remaining",
313
410
  "type": "uint256"
314
411
  }
315
412
  ],
413
+ "payable": false,
316
414
  "stateMutability": "view",
317
415
  "type": "function"
318
416
  },
319
417
  {
320
- "inputs": [
321
- {
322
- "internalType": "address",
323
- "name": "account",
324
- "type": "address"
325
- },
418
+ "constant": true,
419
+ "inputs": [],
420
+ "name": "basisPointsRate",
421
+ "outputs": [
326
422
  {
327
- "internalType": "uint256",
328
- "name": "amount",
423
+ "name": "",
329
424
  "type": "uint256"
330
425
  }
331
426
  ],
332
- "name": "burn",
333
- "outputs": [],
334
- "stateMutability": "nonpayable",
427
+ "payable": false,
428
+ "stateMutability": "view",
335
429
  "type": "function"
336
430
  },
337
431
  {
338
- "inputs": [],
339
- "name": "decimals",
432
+ "constant": true,
433
+ "inputs": [
434
+ {
435
+ "name": "",
436
+ "type": "address"
437
+ }
438
+ ],
439
+ "name": "isBlackListed",
340
440
  "outputs": [
341
441
  {
342
- "internalType": "uint8",
343
442
  "name": "",
344
- "type": "uint8"
443
+ "type": "bool"
345
444
  }
346
445
  ],
446
+ "payable": false,
347
447
  "stateMutability": "view",
348
448
  "type": "function"
349
449
  },
350
450
  {
451
+ "constant": false,
351
452
  "inputs": [
352
453
  {
353
- "internalType": "address",
354
- "name": "account",
454
+ "name": "_clearedUser",
355
455
  "type": "address"
356
- },
357
- {
358
- "internalType": "uint256",
359
- "name": "amount",
360
- "type": "uint256"
361
456
  }
362
457
  ],
363
- "name": "mint",
458
+ "name": "removeBlackList",
364
459
  "outputs": [],
460
+ "payable": false,
365
461
  "stateMutability": "nonpayable",
366
462
  "type": "function"
367
463
  },
368
464
  {
465
+ "constant": true,
369
466
  "inputs": [],
370
- "name": "name",
467
+ "name": "MAX_UINT",
371
468
  "outputs": [
372
469
  {
373
- "internalType": "string",
374
470
  "name": "",
375
- "type": "string"
471
+ "type": "uint256"
376
472
  }
377
473
  ],
474
+ "payable": false,
378
475
  "stateMutability": "view",
379
476
  "type": "function"
380
477
  },
381
478
  {
382
- "inputs": [],
383
- "name": "owner",
384
- "outputs": [
479
+ "constant": false,
480
+ "inputs": [
385
481
  {
386
- "internalType": "address",
387
- "name": "",
482
+ "name": "newOwner",
388
483
  "type": "address"
389
484
  }
390
485
  ],
391
- "stateMutability": "view",
392
- "type": "function"
393
- },
394
- {
395
- "inputs": [],
396
- "name": "renounceOwnership",
486
+ "name": "transferOwnership",
397
487
  "outputs": [],
488
+ "payable": false,
398
489
  "stateMutability": "nonpayable",
399
490
  "type": "function"
400
491
  },
401
492
  {
493
+ "constant": false,
402
494
  "inputs": [
403
495
  {
404
- "internalType": "uint8",
405
- "name": "newDecimals",
406
- "type": "uint8"
496
+ "name": "_blackListedUser",
497
+ "type": "address"
407
498
  }
408
499
  ],
409
- "name": "setDecimals",
500
+ "name": "destroyBlackFunds",
410
501
  "outputs": [],
502
+ "payable": false,
411
503
  "stateMutability": "nonpayable",
412
504
  "type": "function"
413
505
  },
414
506
  {
415
507
  "inputs": [
416
508
  {
417
- "internalType": "string",
418
- "name": "newName",
509
+ "name": "_initialSupply",
510
+ "type": "uint256"
511
+ },
512
+ {
513
+ "name": "_name",
419
514
  "type": "string"
515
+ },
516
+ {
517
+ "name": "_symbol",
518
+ "type": "string"
519
+ },
520
+ {
521
+ "name": "_decimals",
522
+ "type": "uint256"
420
523
  }
421
524
  ],
422
- "name": "setName",
423
- "outputs": [],
525
+ "payable": false,
424
526
  "stateMutability": "nonpayable",
425
- "type": "function"
527
+ "type": "constructor"
426
528
  },
427
529
  {
530
+ "anonymous": false,
428
531
  "inputs": [
429
532
  {
430
- "internalType": "string",
431
- "name": "newSymbol",
432
- "type": "string"
533
+ "indexed": false,
534
+ "name": "amount",
535
+ "type": "uint256"
433
536
  }
434
537
  ],
435
- "name": "setSymbol",
436
- "outputs": [],
437
- "stateMutability": "nonpayable",
438
- "type": "function"
538
+ "name": "Issue",
539
+ "type": "event"
439
540
  },
440
541
  {
441
- "inputs": [],
442
- "name": "symbol",
443
- "outputs": [
542
+ "anonymous": false,
543
+ "inputs": [
444
544
  {
445
- "internalType": "string",
446
- "name": "",
447
- "type": "string"
545
+ "indexed": false,
546
+ "name": "amount",
547
+ "type": "uint256"
448
548
  }
449
549
  ],
450
- "stateMutability": "view",
451
- "type": "function"
550
+ "name": "Redeem",
551
+ "type": "event"
452
552
  },
453
553
  {
454
- "inputs": [],
455
- "name": "totalSupply",
456
- "outputs": [
554
+ "anonymous": false,
555
+ "inputs": [
457
556
  {
458
- "internalType": "uint256",
459
- "name": "",
557
+ "indexed": false,
558
+ "name": "newAddress",
559
+ "type": "address"
560
+ }
561
+ ],
562
+ "name": "Deprecate",
563
+ "type": "event"
564
+ },
565
+ {
566
+ "anonymous": false,
567
+ "inputs": [
568
+ {
569
+ "indexed": false,
570
+ "name": "feeBasisPoints",
571
+ "type": "uint256"
572
+ },
573
+ {
574
+ "indexed": false,
575
+ "name": "maxFee",
460
576
  "type": "uint256"
461
577
  }
462
578
  ],
463
- "stateMutability": "view",
464
- "type": "function"
579
+ "name": "Params",
580
+ "type": "event"
465
581
  },
466
582
  {
583
+ "anonymous": false,
467
584
  "inputs": [
468
585
  {
469
- "internalType": "address",
470
- "name": "to",
586
+ "indexed": false,
587
+ "name": "_blackListedUser",
471
588
  "type": "address"
472
589
  },
473
590
  {
474
- "internalType": "uint256",
475
- "name": "value",
591
+ "indexed": false,
592
+ "name": "_balance",
476
593
  "type": "uint256"
477
594
  }
478
595
  ],
479
- "name": "transfer",
480
- "outputs": [
596
+ "name": "DestroyedBlackFunds",
597
+ "type": "event"
598
+ },
599
+ {
600
+ "anonymous": false,
601
+ "inputs": [
481
602
  {
482
- "internalType": "bool",
483
- "name": "",
484
- "type": "bool"
603
+ "indexed": false,
604
+ "name": "_user",
605
+ "type": "address"
485
606
  }
486
607
  ],
487
- "stateMutability": "nonpayable",
488
- "type": "function"
608
+ "name": "AddedBlackList",
609
+ "type": "event"
489
610
  },
490
611
  {
612
+ "anonymous": false,
491
613
  "inputs": [
492
614
  {
493
- "internalType": "address",
494
- "name": "from",
615
+ "indexed": false,
616
+ "name": "_user",
617
+ "type": "address"
618
+ }
619
+ ],
620
+ "name": "RemovedBlackList",
621
+ "type": "event"
622
+ },
623
+ {
624
+ "anonymous": false,
625
+ "inputs": [
626
+ {
627
+ "indexed": true,
628
+ "name": "owner",
495
629
  "type": "address"
496
630
  },
497
631
  {
498
- "internalType": "address",
499
- "name": "to",
632
+ "indexed": true,
633
+ "name": "spender",
500
634
  "type": "address"
501
635
  },
502
636
  {
503
- "internalType": "uint256",
637
+ "indexed": false,
504
638
  "name": "value",
505
639
  "type": "uint256"
506
640
  }
507
641
  ],
508
- "name": "transferFrom",
509
- "outputs": [
510
- {
511
- "internalType": "bool",
512
- "name": "",
513
- "type": "bool"
514
- }
515
- ],
516
- "stateMutability": "nonpayable",
517
- "type": "function"
642
+ "name": "Approval",
643
+ "type": "event"
518
644
  },
519
645
  {
646
+ "anonymous": false,
520
647
  "inputs": [
521
648
  {
522
- "internalType": "address",
523
- "name": "newOwner",
649
+ "indexed": true,
650
+ "name": "from",
524
651
  "type": "address"
652
+ },
653
+ {
654
+ "indexed": true,
655
+ "name": "to",
656
+ "type": "address"
657
+ },
658
+ {
659
+ "indexed": false,
660
+ "name": "value",
661
+ "type": "uint256"
525
662
  }
526
663
  ],
527
- "name": "transferOwnership",
528
- "outputs": [],
529
- "stateMutability": "nonpayable",
530
- "type": "function"
664
+ "name": "Transfer",
665
+ "type": "event"
666
+ },
667
+ {
668
+ "anonymous": false,
669
+ "inputs": [],
670
+ "name": "Pause",
671
+ "type": "event"
672
+ },
673
+ {
674
+ "anonymous": false,
675
+ "inputs": [],
676
+ "name": "Unpause",
677
+ "type": "event"
531
678
  }
532
679
  ] as const satisfies Abi;
533
680
 
534
681
  /**
535
- * Type-safe ABI for ERC20Token_json
682
+ * Type-safe ABI for TetherToken_json
536
683
  */
537
- export type ERC20Token_jsonAbi = typeof ERC20Token_jsonAbi;
684
+ export type TetherToken_jsonAbi = typeof TetherToken_jsonAbi;
538
685
 
539
686
  /**
540
- * Contract instance type for ERC20Token_json
687
+ * Contract instance type for TetherToken_json
541
688
  */
542
689
  // Use any for contract type to avoid complex viem type issues
543
690
  // The runtime behavior is type-safe through viem's ABI typing
544
- export type ERC20Token_jsonContract = any;
691
+ export type TetherToken_jsonContract = any;
545
692
 
546
693
  /**
547
- * ERC20Token_json Contract Class
694
+ * TetherToken_json Contract Class
548
695
  *
549
696
  * Provides a class-based API similar to TypeChain for interacting with the contract.
550
697
  *
@@ -552,12 +699,12 @@ export type ERC20Token_jsonContract = any;
552
699
  * ```typescript
553
700
  * import { createPublicClient, createWalletClient, http } from 'viem';
554
701
  * import { mainnet } from 'viem/chains';
555
- * import { ERC20Token_json } from 'ERC20Token_json';
702
+ * import { TetherToken_json } from 'TetherToken_json';
556
703
  *
557
704
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
558
705
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
559
706
  *
560
- * const contract = new ERC20Token_json('0x...', { publicClient, walletClient });
707
+ * const contract = new TetherToken_json('0x...', { publicClient, walletClient });
561
708
  *
562
709
  * // Read functions
563
710
  * const result = await contract.balanceOf('0x...');
@@ -575,8 +722,8 @@ export type ERC20Token_jsonContract = any;
575
722
  * });
576
723
  * ```
577
724
  */
578
- export class ERC20Token_json {
579
- private contract: ERC20Token_jsonContract;
725
+ export class TetherToken_json {
726
+ private contract: TetherToken_jsonContract;
580
727
  private contractAddress: Address;
581
728
  private publicClient: PublicClient;
582
729
 
@@ -591,7 +738,7 @@ export class ERC20Token_json {
591
738
  this.publicClient = clients.publicClient;
592
739
  this.contract = getContract({
593
740
  address,
594
- abi: ERC20Token_jsonAbi,
741
+ abi: TetherToken_jsonAbi,
595
742
  client: {
596
743
  public: clients.publicClient,
597
744
  wallet: clients.walletClient,
@@ -600,49 +747,121 @@ export class ERC20Token_json {
600
747
  }
601
748
 
602
749
  /**
603
- * Get the contract address
750
+ * Get the contract address
751
+ */
752
+ get address(): Address {
753
+ return this.contractAddress;
754
+ }
755
+
756
+ /**
757
+ * Get the underlying viem contract instance
758
+ */
759
+ getContract(): TetherToken_jsonContract {
760
+ return this.contract;
761
+ }
762
+
763
+ /**
764
+ * name
765
+ * view
766
+ */
767
+ async name(): Promise<string> {
768
+ return this.contract.read.name() as Promise<string>;
769
+ }
770
+
771
+ /**
772
+ * deprecated
773
+ * view
774
+ */
775
+ async deprecated(): Promise<boolean> {
776
+ return this.contract.read.deprecated() as Promise<boolean>;
777
+ }
778
+
779
+ /**
780
+ * totalSupply
781
+ * view
782
+ */
783
+ async totalSupply(): Promise<bigint> {
784
+ return this.contract.read.totalSupply() as Promise<bigint>;
785
+ }
786
+
787
+ /**
788
+ * upgradedAddress
789
+ * view
790
+ */
791
+ async upgradedAddress(): Promise<`0x${string}`> {
792
+ return this.contract.read.upgradedAddress() as Promise<`0x${string}`>;
793
+ }
794
+
795
+ /**
796
+ * balances
797
+ * view
798
+ */
799
+ async balances(arg0: `0x${string}`): Promise<bigint> {
800
+ return this.contract.read.balances([arg0] as const) as Promise<bigint>;
801
+ }
802
+
803
+ /**
804
+ * decimals
805
+ * view
604
806
  */
605
- get address(): Address {
606
- return this.contractAddress;
807
+ async decimals(): Promise<bigint> {
808
+ return this.contract.read.decimals() as Promise<bigint>;
607
809
  }
608
810
 
609
811
  /**
610
- * Get the underlying viem contract instance
812
+ * maximumFee
813
+ * view
611
814
  */
612
- getContract(): ERC20Token_jsonContract {
613
- return this.contract;
815
+ async maximumFee(): Promise<bigint> {
816
+ return this.contract.read.maximumFee() as Promise<bigint>;
614
817
  }
615
818
 
616
819
  /**
617
- * allowance
820
+ * _totalSupply
618
821
  * view
619
822
  */
620
- async allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
621
- return this.contract.read.allowance([owner, spender] as const) as Promise<bigint>;
823
+ async _totalSupply(): Promise<bigint> {
824
+ return this.contract.read._totalSupply() as Promise<bigint>;
622
825
  }
623
826
 
624
827
  /**
625
- * balanceOf
828
+ * getBlackListStatus
626
829
  * view
627
830
  */
628
- async balanceOf(account: `0x${string}`): Promise<bigint> {
629
- return this.contract.read.balanceOf([account] as const) as Promise<bigint>;
831
+ async getBlackListStatus(_maker: `0x${string}`): Promise<boolean> {
832
+ return this.contract.read.getBlackListStatus([_maker] as const) as Promise<boolean>;
630
833
  }
631
834
 
632
835
  /**
633
- * decimals
836
+ * allowed
634
837
  * view
635
838
  */
636
- async decimals(): Promise<bigint> {
637
- return this.contract.read.decimals() as Promise<bigint>;
839
+ async allowed(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint> {
840
+ return this.contract.read.allowed([arg0, arg1] as const) as Promise<bigint>;
638
841
  }
639
842
 
640
843
  /**
641
- * name
844
+ * paused
642
845
  * view
643
846
  */
644
- async name(): Promise<string> {
645
- return this.contract.read.name() as Promise<string>;
847
+ async paused(): Promise<boolean> {
848
+ return this.contract.read.paused() as Promise<boolean>;
849
+ }
850
+
851
+ /**
852
+ * balanceOf
853
+ * view
854
+ */
855
+ async balanceOf(who: `0x${string}`): Promise<bigint> {
856
+ return this.contract.read.balanceOf([who] as const) as Promise<bigint>;
857
+ }
858
+
859
+ /**
860
+ * getOwner
861
+ * view
862
+ */
863
+ async getOwner(): Promise<`0x${string}`> {
864
+ return this.contract.read.getOwner() as Promise<`0x${string}`>;
646
865
  }
647
866
 
648
867
  /**
@@ -662,11 +881,58 @@ export class ERC20Token_json {
662
881
  }
663
882
 
664
883
  /**
665
- * totalSupply
884
+ * allowance
666
885
  * view
667
886
  */
668
- async totalSupply(): Promise<bigint> {
669
- return this.contract.read.totalSupply() as Promise<bigint>;
887
+ async allowance(_owner: `0x${string}`, _spender: `0x${string}`): Promise<bigint> {
888
+ return this.contract.read.allowance([_owner, _spender] as const) as Promise<bigint>;
889
+ }
890
+
891
+ /**
892
+ * basisPointsRate
893
+ * view
894
+ */
895
+ async basisPointsRate(): Promise<bigint> {
896
+ return this.contract.read.basisPointsRate() as Promise<bigint>;
897
+ }
898
+
899
+ /**
900
+ * isBlackListed
901
+ * view
902
+ */
903
+ async isBlackListed(arg0: `0x${string}`): Promise<boolean> {
904
+ return this.contract.read.isBlackListed([arg0] as const) as Promise<boolean>;
905
+ }
906
+
907
+ /**
908
+ * MAX_UINT
909
+ * view
910
+ */
911
+ async MAX_UINT(): Promise<bigint> {
912
+ return this.contract.read.MAX_UINT() as Promise<bigint>;
913
+ }
914
+
915
+ /**
916
+ * deprecate
917
+ * nonpayable
918
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
919
+ */
920
+ async deprecate(_upgradedAddress: `0x${string}`, options?: {
921
+ accessList?: import('viem').AccessList;
922
+ authorizationList?: import('viem').AuthorizationList;
923
+ chain?: import('viem').Chain | null;
924
+ dataSuffix?: `0x${string}`;
925
+ gas?: bigint;
926
+ gasPrice?: bigint;
927
+ maxFeePerGas?: bigint;
928
+ maxPriorityFeePerGas?: bigint;
929
+ nonce?: number;
930
+ value?: bigint;
931
+ }): Promise<`0x${string}`> {
932
+ if (!this.contract.write) {
933
+ throw new Error('Wallet client is required for write operations');
934
+ }
935
+ return this.contract.write.deprecate([_upgradedAddress] as const, options) as Promise<`0x${string}`>;
670
936
  }
671
937
 
672
938
  /**
@@ -674,7 +940,7 @@ export class ERC20Token_json {
674
940
  * nonpayable
675
941
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
676
942
  */
677
- async approve(spender: `0x${string}`, value: bigint, options?: {
943
+ async approve(_spender: `0x${string}`, _value: bigint, options?: {
678
944
  accessList?: import('viem').AccessList;
679
945
  authorizationList?: import('viem').AuthorizationList;
680
946
  chain?: import('viem').Chain | null;
@@ -689,15 +955,15 @@ export class ERC20Token_json {
689
955
  if (!this.contract.write) {
690
956
  throw new Error('Wallet client is required for write operations');
691
957
  }
692
- return this.contract.write.approve([spender, value] as const, options) as Promise<`0x${string}`>;
958
+ return this.contract.write.approve([_spender, _value] as const, options) as Promise<`0x${string}`>;
693
959
  }
694
960
 
695
961
  /**
696
- * burn
962
+ * addBlackList
697
963
  * nonpayable
698
964
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
699
965
  */
700
- async burn(account: `0x${string}`, amount: bigint, options?: {
966
+ async addBlackList(_evilUser: `0x${string}`, options?: {
701
967
  accessList?: import('viem').AccessList;
702
968
  authorizationList?: import('viem').AuthorizationList;
703
969
  chain?: import('viem').Chain | null;
@@ -712,15 +978,15 @@ export class ERC20Token_json {
712
978
  if (!this.contract.write) {
713
979
  throw new Error('Wallet client is required for write operations');
714
980
  }
715
- return this.contract.write.burn([account, amount] as const, options) as Promise<`0x${string}`>;
981
+ return this.contract.write.addBlackList([_evilUser] as const, options) as Promise<`0x${string}`>;
716
982
  }
717
983
 
718
984
  /**
719
- * mint
985
+ * transferFrom
720
986
  * nonpayable
721
987
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
722
988
  */
723
- async mint(account: `0x${string}`, amount: bigint, options?: {
989
+ async transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
724
990
  accessList?: import('viem').AccessList;
725
991
  authorizationList?: import('viem').AuthorizationList;
726
992
  chain?: import('viem').Chain | null;
@@ -735,15 +1001,15 @@ export class ERC20Token_json {
735
1001
  if (!this.contract.write) {
736
1002
  throw new Error('Wallet client is required for write operations');
737
1003
  }
738
- return this.contract.write.mint([account, amount] as const, options) as Promise<`0x${string}`>;
1004
+ return this.contract.write.transferFrom([_from, _to, _value] as const, options) as Promise<`0x${string}`>;
739
1005
  }
740
1006
 
741
1007
  /**
742
- * renounceOwnership
1008
+ * unpause
743
1009
  * nonpayable
744
1010
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
745
1011
  */
746
- async renounceOwnership(options?: {
1012
+ async unpause(options?: {
747
1013
  accessList?: import('viem').AccessList;
748
1014
  authorizationList?: import('viem').AuthorizationList;
749
1015
  chain?: import('viem').Chain | null;
@@ -758,15 +1024,15 @@ export class ERC20Token_json {
758
1024
  if (!this.contract.write) {
759
1025
  throw new Error('Wallet client is required for write operations');
760
1026
  }
761
- return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
1027
+ return this.contract.write.unpause(options) as Promise<`0x${string}`>;
762
1028
  }
763
1029
 
764
1030
  /**
765
- * setDecimals
1031
+ * pause
766
1032
  * nonpayable
767
1033
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
768
1034
  */
769
- async setDecimals(newDecimals: bigint, options?: {
1035
+ async pause(options?: {
770
1036
  accessList?: import('viem').AccessList;
771
1037
  authorizationList?: import('viem').AuthorizationList;
772
1038
  chain?: import('viem').Chain | null;
@@ -781,15 +1047,15 @@ export class ERC20Token_json {
781
1047
  if (!this.contract.write) {
782
1048
  throw new Error('Wallet client is required for write operations');
783
1049
  }
784
- return this.contract.write.setDecimals([newDecimals] as const, options) as Promise<`0x${string}`>;
1050
+ return this.contract.write.pause(options) as Promise<`0x${string}`>;
785
1051
  }
786
1052
 
787
1053
  /**
788
- * setName
1054
+ * transfer
789
1055
  * nonpayable
790
1056
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
791
1057
  */
792
- async setName(newName: string, options?: {
1058
+ async transfer(_to: `0x${string}`, _value: bigint, options?: {
793
1059
  accessList?: import('viem').AccessList;
794
1060
  authorizationList?: import('viem').AuthorizationList;
795
1061
  chain?: import('viem').Chain | null;
@@ -804,15 +1070,15 @@ export class ERC20Token_json {
804
1070
  if (!this.contract.write) {
805
1071
  throw new Error('Wallet client is required for write operations');
806
1072
  }
807
- return this.contract.write.setName([newName] as const, options) as Promise<`0x${string}`>;
1073
+ return this.contract.write.transfer([_to, _value] as const, options) as Promise<`0x${string}`>;
808
1074
  }
809
1075
 
810
1076
  /**
811
- * setSymbol
1077
+ * setParams
812
1078
  * nonpayable
813
1079
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
814
1080
  */
815
- async setSymbol(newSymbol: string, options?: {
1081
+ async setParams(newBasisPoints: bigint, newMaxFee: bigint, options?: {
816
1082
  accessList?: import('viem').AccessList;
817
1083
  authorizationList?: import('viem').AuthorizationList;
818
1084
  chain?: import('viem').Chain | null;
@@ -827,15 +1093,15 @@ export class ERC20Token_json {
827
1093
  if (!this.contract.write) {
828
1094
  throw new Error('Wallet client is required for write operations');
829
1095
  }
830
- return this.contract.write.setSymbol([newSymbol] as const, options) as Promise<`0x${string}`>;
1096
+ return this.contract.write.setParams([newBasisPoints, newMaxFee] as const, options) as Promise<`0x${string}`>;
831
1097
  }
832
1098
 
833
1099
  /**
834
- * transfer
1100
+ * issue
835
1101
  * nonpayable
836
1102
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
837
1103
  */
838
- async transfer(to: `0x${string}`, value: bigint, options?: {
1104
+ async issue(amount: bigint, options?: {
839
1105
  accessList?: import('viem').AccessList;
840
1106
  authorizationList?: import('viem').AuthorizationList;
841
1107
  chain?: import('viem').Chain | null;
@@ -850,15 +1116,38 @@ export class ERC20Token_json {
850
1116
  if (!this.contract.write) {
851
1117
  throw new Error('Wallet client is required for write operations');
852
1118
  }
853
- return this.contract.write.transfer([to, value] as const, options) as Promise<`0x${string}`>;
1119
+ return this.contract.write.issue([amount] as const, options) as Promise<`0x${string}`>;
854
1120
  }
855
1121
 
856
1122
  /**
857
- * transferFrom
1123
+ * redeem
1124
+ * nonpayable
1125
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1126
+ */
1127
+ async redeem(amount: bigint, options?: {
1128
+ accessList?: import('viem').AccessList;
1129
+ authorizationList?: import('viem').AuthorizationList;
1130
+ chain?: import('viem').Chain | null;
1131
+ dataSuffix?: `0x${string}`;
1132
+ gas?: bigint;
1133
+ gasPrice?: bigint;
1134
+ maxFeePerGas?: bigint;
1135
+ maxPriorityFeePerGas?: bigint;
1136
+ nonce?: number;
1137
+ value?: bigint;
1138
+ }): Promise<`0x${string}`> {
1139
+ if (!this.contract.write) {
1140
+ throw new Error('Wallet client is required for write operations');
1141
+ }
1142
+ return this.contract.write.redeem([amount] as const, options) as Promise<`0x${string}`>;
1143
+ }
1144
+
1145
+ /**
1146
+ * removeBlackList
858
1147
  * nonpayable
859
1148
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
860
1149
  */
861
- async transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
1150
+ async removeBlackList(_clearedUser: `0x${string}`, options?: {
862
1151
  accessList?: import('viem').AccessList;
863
1152
  authorizationList?: import('viem').AuthorizationList;
864
1153
  chain?: import('viem').Chain | null;
@@ -873,7 +1162,7 @@ export class ERC20Token_json {
873
1162
  if (!this.contract.write) {
874
1163
  throw new Error('Wallet client is required for write operations');
875
1164
  }
876
- return this.contract.write.transferFrom([from, to, value] as const, options) as Promise<`0x${string}`>;
1165
+ return this.contract.write.removeBlackList([_clearedUser] as const, options) as Promise<`0x${string}`>;
877
1166
  }
878
1167
 
879
1168
  /**
@@ -899,6 +1188,29 @@ export class ERC20Token_json {
899
1188
  return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
900
1189
  }
901
1190
 
1191
+ /**
1192
+ * destroyBlackFunds
1193
+ * nonpayable
1194
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1195
+ */
1196
+ async destroyBlackFunds(_blackListedUser: `0x${string}`, options?: {
1197
+ accessList?: import('viem').AccessList;
1198
+ authorizationList?: import('viem').AuthorizationList;
1199
+ chain?: import('viem').Chain | null;
1200
+ dataSuffix?: `0x${string}`;
1201
+ gas?: bigint;
1202
+ gasPrice?: bigint;
1203
+ maxFeePerGas?: bigint;
1204
+ maxPriorityFeePerGas?: bigint;
1205
+ nonce?: number;
1206
+ value?: bigint;
1207
+ }): Promise<`0x${string}`> {
1208
+ if (!this.contract.write) {
1209
+ throw new Error('Wallet client is required for write operations');
1210
+ }
1211
+ return this.contract.write.destroyBlackFunds([_blackListedUser] as const, options) as Promise<`0x${string}`>;
1212
+ }
1213
+
902
1214
 
903
1215
 
904
1216
  /**
@@ -915,12 +1227,31 @@ export class ERC20Token_json {
915
1227
  throw new Error('Public client is required for simulation');
916
1228
  }
917
1229
  return {
1230
+ /**
1231
+ * Simulate deprecate
1232
+ * Returns gas estimate and result without sending transaction
1233
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1234
+ */
1235
+ async deprecate(_upgradedAddress: `0x${string}`, options?: {
1236
+ accessList?: import('viem').AccessList;
1237
+ authorizationList?: import('viem').AuthorizationList;
1238
+ chain?: import('viem').Chain | null;
1239
+ dataSuffix?: `0x${string}`;
1240
+ gas?: bigint;
1241
+ gasPrice?: bigint;
1242
+ maxFeePerGas?: bigint;
1243
+ maxPriorityFeePerGas?: bigint;
1244
+ nonce?: number;
1245
+ value?: bigint;
1246
+ }): Promise<void> {
1247
+ return contract.simulate.deprecate([_upgradedAddress] as const, options) as Promise<void>;
1248
+ },
918
1249
  /**
919
1250
  * Simulate approve
920
1251
  * Returns gas estimate and result without sending transaction
921
1252
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
922
1253
  */
923
- async approve(spender: `0x${string}`, value: bigint, options?: {
1254
+ async approve(_spender: `0x${string}`, _value: bigint, options?: {
924
1255
  accessList?: import('viem').AccessList;
925
1256
  authorizationList?: import('viem').AuthorizationList;
926
1257
  chain?: import('viem').Chain | null;
@@ -931,15 +1262,15 @@ export class ERC20Token_json {
931
1262
  maxPriorityFeePerGas?: bigint;
932
1263
  nonce?: number;
933
1264
  value?: bigint;
934
- }): Promise<boolean> {
935
- return contract.simulate.approve([spender, value] as const, options) as Promise<boolean>;
1265
+ }): Promise<void> {
1266
+ return contract.simulate.approve([_spender, _value] as const, options) as Promise<void>;
936
1267
  },
937
1268
  /**
938
- * Simulate burn
1269
+ * Simulate addBlackList
939
1270
  * Returns gas estimate and result without sending transaction
940
1271
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
941
1272
  */
942
- async burn(account: `0x${string}`, amount: bigint, options?: {
1273
+ async addBlackList(_evilUser: `0x${string}`, options?: {
943
1274
  accessList?: import('viem').AccessList;
944
1275
  authorizationList?: import('viem').AuthorizationList;
945
1276
  chain?: import('viem').Chain | null;
@@ -951,14 +1282,14 @@ export class ERC20Token_json {
951
1282
  nonce?: number;
952
1283
  value?: bigint;
953
1284
  }): Promise<void> {
954
- return contract.simulate.burn([account, amount] as const, options) as Promise<void>;
1285
+ return contract.simulate.addBlackList([_evilUser] as const, options) as Promise<void>;
955
1286
  },
956
1287
  /**
957
- * Simulate mint
1288
+ * Simulate transferFrom
958
1289
  * Returns gas estimate and result without sending transaction
959
1290
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
960
1291
  */
961
- async mint(account: `0x${string}`, amount: bigint, options?: {
1292
+ async transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
962
1293
  accessList?: import('viem').AccessList;
963
1294
  authorizationList?: import('viem').AuthorizationList;
964
1295
  chain?: import('viem').Chain | null;
@@ -970,14 +1301,14 @@ export class ERC20Token_json {
970
1301
  nonce?: number;
971
1302
  value?: bigint;
972
1303
  }): Promise<void> {
973
- return contract.simulate.mint([account, amount] as const, options) as Promise<void>;
1304
+ return contract.simulate.transferFrom([_from, _to, _value] as const, options) as Promise<void>;
974
1305
  },
975
1306
  /**
976
- * Simulate renounceOwnership
1307
+ * Simulate unpause
977
1308
  * Returns gas estimate and result without sending transaction
978
1309
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
979
1310
  */
980
- async renounceOwnership(options?: {
1311
+ async unpause(options?: {
981
1312
  accessList?: import('viem').AccessList;
982
1313
  authorizationList?: import('viem').AuthorizationList;
983
1314
  chain?: import('viem').Chain | null;
@@ -989,14 +1320,14 @@ export class ERC20Token_json {
989
1320
  nonce?: number;
990
1321
  value?: bigint;
991
1322
  }): Promise<void> {
992
- return contract.simulate.renounceOwnership(options) as Promise<void>;
1323
+ return contract.simulate.unpause(options) as Promise<void>;
993
1324
  },
994
1325
  /**
995
- * Simulate setDecimals
1326
+ * Simulate pause
996
1327
  * Returns gas estimate and result without sending transaction
997
1328
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
998
1329
  */
999
- async setDecimals(newDecimals: bigint, options?: {
1330
+ async pause(options?: {
1000
1331
  accessList?: import('viem').AccessList;
1001
1332
  authorizationList?: import('viem').AuthorizationList;
1002
1333
  chain?: import('viem').Chain | null;
@@ -1008,14 +1339,14 @@ export class ERC20Token_json {
1008
1339
  nonce?: number;
1009
1340
  value?: bigint;
1010
1341
  }): Promise<void> {
1011
- return contract.simulate.setDecimals([newDecimals] as const, options) as Promise<void>;
1342
+ return contract.simulate.pause(options) as Promise<void>;
1012
1343
  },
1013
1344
  /**
1014
- * Simulate setName
1345
+ * Simulate transfer
1015
1346
  * Returns gas estimate and result without sending transaction
1016
1347
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1017
1348
  */
1018
- async setName(newName: string, options?: {
1349
+ async transfer(_to: `0x${string}`, _value: bigint, options?: {
1019
1350
  accessList?: import('viem').AccessList;
1020
1351
  authorizationList?: import('viem').AuthorizationList;
1021
1352
  chain?: import('viem').Chain | null;
@@ -1027,14 +1358,14 @@ export class ERC20Token_json {
1027
1358
  nonce?: number;
1028
1359
  value?: bigint;
1029
1360
  }): Promise<void> {
1030
- return contract.simulate.setName([newName] as const, options) as Promise<void>;
1361
+ return contract.simulate.transfer([_to, _value] as const, options) as Promise<void>;
1031
1362
  },
1032
1363
  /**
1033
- * Simulate setSymbol
1364
+ * Simulate setParams
1034
1365
  * Returns gas estimate and result without sending transaction
1035
1366
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1036
1367
  */
1037
- async setSymbol(newSymbol: string, options?: {
1368
+ async setParams(newBasisPoints: bigint, newMaxFee: bigint, options?: {
1038
1369
  accessList?: import('viem').AccessList;
1039
1370
  authorizationList?: import('viem').AuthorizationList;
1040
1371
  chain?: import('viem').Chain | null;
@@ -1046,14 +1377,14 @@ export class ERC20Token_json {
1046
1377
  nonce?: number;
1047
1378
  value?: bigint;
1048
1379
  }): Promise<void> {
1049
- return contract.simulate.setSymbol([newSymbol] as const, options) as Promise<void>;
1380
+ return contract.simulate.setParams([newBasisPoints, newMaxFee] as const, options) as Promise<void>;
1050
1381
  },
1051
1382
  /**
1052
- * Simulate transfer
1383
+ * Simulate issue
1053
1384
  * Returns gas estimate and result without sending transaction
1054
1385
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1055
1386
  */
1056
- async transfer(to: `0x${string}`, value: bigint, options?: {
1387
+ async issue(amount: bigint, options?: {
1057
1388
  accessList?: import('viem').AccessList;
1058
1389
  authorizationList?: import('viem').AuthorizationList;
1059
1390
  chain?: import('viem').Chain | null;
@@ -1064,15 +1395,34 @@ export class ERC20Token_json {
1064
1395
  maxPriorityFeePerGas?: bigint;
1065
1396
  nonce?: number;
1066
1397
  value?: bigint;
1067
- }): Promise<boolean> {
1068
- return contract.simulate.transfer([to, value] as const, options) as Promise<boolean>;
1398
+ }): Promise<void> {
1399
+ return contract.simulate.issue([amount] as const, options) as Promise<void>;
1069
1400
  },
1070
1401
  /**
1071
- * Simulate transferFrom
1402
+ * Simulate redeem
1403
+ * Returns gas estimate and result without sending transaction
1404
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1405
+ */
1406
+ async redeem(amount: bigint, options?: {
1407
+ accessList?: import('viem').AccessList;
1408
+ authorizationList?: import('viem').AuthorizationList;
1409
+ chain?: import('viem').Chain | null;
1410
+ dataSuffix?: `0x${string}`;
1411
+ gas?: bigint;
1412
+ gasPrice?: bigint;
1413
+ maxFeePerGas?: bigint;
1414
+ maxPriorityFeePerGas?: bigint;
1415
+ nonce?: number;
1416
+ value?: bigint;
1417
+ }): Promise<void> {
1418
+ return contract.simulate.redeem([amount] as const, options) as Promise<void>;
1419
+ },
1420
+ /**
1421
+ * Simulate removeBlackList
1072
1422
  * Returns gas estimate and result without sending transaction
1073
1423
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1074
1424
  */
1075
- async transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
1425
+ async removeBlackList(_clearedUser: `0x${string}`, options?: {
1076
1426
  accessList?: import('viem').AccessList;
1077
1427
  authorizationList?: import('viem').AuthorizationList;
1078
1428
  chain?: import('viem').Chain | null;
@@ -1083,8 +1433,8 @@ export class ERC20Token_json {
1083
1433
  maxPriorityFeePerGas?: bigint;
1084
1434
  nonce?: number;
1085
1435
  value?: bigint;
1086
- }): Promise<boolean> {
1087
- return contract.simulate.transferFrom([from, to, value] as const, options) as Promise<boolean>;
1436
+ }): Promise<void> {
1437
+ return contract.simulate.removeBlackList([_clearedUser] as const, options) as Promise<void>;
1088
1438
  },
1089
1439
  /**
1090
1440
  * Simulate transferOwnership
@@ -1104,6 +1454,25 @@ export class ERC20Token_json {
1104
1454
  value?: bigint;
1105
1455
  }): Promise<void> {
1106
1456
  return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
1457
+ },
1458
+ /**
1459
+ * Simulate destroyBlackFunds
1460
+ * Returns gas estimate and result without sending transaction
1461
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1462
+ */
1463
+ async destroyBlackFunds(_blackListedUser: `0x${string}`, options?: {
1464
+ accessList?: import('viem').AccessList;
1465
+ authorizationList?: import('viem').AuthorizationList;
1466
+ chain?: import('viem').Chain | null;
1467
+ dataSuffix?: `0x${string}`;
1468
+ gas?: bigint;
1469
+ gasPrice?: bigint;
1470
+ maxFeePerGas?: bigint;
1471
+ maxPriorityFeePerGas?: bigint;
1472
+ nonce?: number;
1473
+ value?: bigint;
1474
+ }): Promise<void> {
1475
+ return contract.simulate.destroyBlackFunds([_blackListedUser] as const, options) as Promise<void>;
1107
1476
  }
1108
1477
  };
1109
1478
  }
@@ -1123,17 +1492,17 @@ export class ERC20Token_json {
1123
1492
  get watch() {
1124
1493
  return {
1125
1494
  /**
1126
- * Watch Approval events
1495
+ * Watch Issue events
1127
1496
  * @param callback Function to call when event is emitted
1128
1497
  * @param filter Optional filter for indexed parameters
1129
1498
  * @returns Unwatch function to stop listening
1130
1499
  */
1131
- Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
1500
+ Issue: (callback: (event: { amount: bigint }) => void) => {
1132
1501
  return this.publicClient.watchContractEvent({
1133
1502
  address: this.contractAddress,
1134
- abi: ERC20Token_jsonAbi,
1135
- eventName: 'Approval',
1136
- args: filter,
1503
+ abi: TetherToken_jsonAbi,
1504
+ eventName: 'Issue',
1505
+
1137
1506
  onLogs: (logs: any[]) => {
1138
1507
  logs.forEach((log: any) => {
1139
1508
  callback(log.args as any);
@@ -1142,17 +1511,55 @@ export class ERC20Token_json {
1142
1511
  }) as () => void;
1143
1512
  },
1144
1513
  /**
1145
- * Watch OwnershipTransferred events
1514
+ * Watch Redeem events
1146
1515
  * @param callback Function to call when event is emitted
1147
1516
  * @param filter Optional filter for indexed parameters
1148
1517
  * @returns Unwatch function to stop listening
1149
1518
  */
1150
- OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
1519
+ Redeem: (callback: (event: { amount: bigint }) => void) => {
1151
1520
  return this.publicClient.watchContractEvent({
1152
1521
  address: this.contractAddress,
1153
- abi: ERC20Token_jsonAbi,
1154
- eventName: 'OwnershipTransferred',
1155
- args: filter,
1522
+ abi: TetherToken_jsonAbi,
1523
+ eventName: 'Redeem',
1524
+
1525
+ onLogs: (logs: any[]) => {
1526
+ logs.forEach((log: any) => {
1527
+ callback(log.args as any);
1528
+ });
1529
+ },
1530
+ }) as () => void;
1531
+ },
1532
+ /**
1533
+ * Watch Deprecate events
1534
+ * @param callback Function to call when event is emitted
1535
+ * @param filter Optional filter for indexed parameters
1536
+ * @returns Unwatch function to stop listening
1537
+ */
1538
+ Deprecate: (callback: (event: { newAddress: `0x${string}` }) => void) => {
1539
+ return this.publicClient.watchContractEvent({
1540
+ address: this.contractAddress,
1541
+ abi: TetherToken_jsonAbi,
1542
+ eventName: 'Deprecate',
1543
+
1544
+ onLogs: (logs: any[]) => {
1545
+ logs.forEach((log: any) => {
1546
+ callback(log.args as any);
1547
+ });
1548
+ },
1549
+ }) as () => void;
1550
+ },
1551
+ /**
1552
+ * Watch Params events
1553
+ * @param callback Function to call when event is emitted
1554
+ * @param filter Optional filter for indexed parameters
1555
+ * @returns Unwatch function to stop listening
1556
+ */
1557
+ Params: (callback: (event: { feeBasisPoints: bigint; maxFee: bigint }) => void) => {
1558
+ return this.publicClient.watchContractEvent({
1559
+ address: this.contractAddress,
1560
+ abi: TetherToken_jsonAbi,
1561
+ eventName: 'Params',
1562
+
1156
1563
  onLogs: (logs: any[]) => {
1157
1564
  logs.forEach((log: any) => {
1158
1565
  callback(log.args as any);
@@ -1161,16 +1568,16 @@ export class ERC20Token_json {
1161
1568
  }) as () => void;
1162
1569
  },
1163
1570
  /**
1164
- * Watch SetDecimals events
1571
+ * Watch DestroyedBlackFunds events
1165
1572
  * @param callback Function to call when event is emitted
1166
1573
  * @param filter Optional filter for indexed parameters
1167
1574
  * @returns Unwatch function to stop listening
1168
1575
  */
1169
- SetDecimals: (callback: (event: { precision: bigint }) => void) => {
1576
+ DestroyedBlackFunds: (callback: (event: { _blackListedUser: `0x${string}`; _balance: bigint }) => void) => {
1170
1577
  return this.publicClient.watchContractEvent({
1171
1578
  address: this.contractAddress,
1172
- abi: ERC20Token_jsonAbi,
1173
- eventName: 'SetDecimals',
1579
+ abi: TetherToken_jsonAbi,
1580
+ eventName: 'DestroyedBlackFunds',
1174
1581
 
1175
1582
  onLogs: (logs: any[]) => {
1176
1583
  logs.forEach((log: any) => {
@@ -1180,16 +1587,16 @@ export class ERC20Token_json {
1180
1587
  }) as () => void;
1181
1588
  },
1182
1589
  /**
1183
- * Watch SetName events
1590
+ * Watch AddedBlackList events
1184
1591
  * @param callback Function to call when event is emitted
1185
1592
  * @param filter Optional filter for indexed parameters
1186
1593
  * @returns Unwatch function to stop listening
1187
1594
  */
1188
- SetName: (callback: (event: { name: string }) => void) => {
1595
+ AddedBlackList: (callback: (event: { _user: `0x${string}` }) => void) => {
1189
1596
  return this.publicClient.watchContractEvent({
1190
1597
  address: this.contractAddress,
1191
- abi: ERC20Token_jsonAbi,
1192
- eventName: 'SetName',
1598
+ abi: TetherToken_jsonAbi,
1599
+ eventName: 'AddedBlackList',
1193
1600
 
1194
1601
  onLogs: (logs: any[]) => {
1195
1602
  logs.forEach((log: any) => {
@@ -1199,16 +1606,16 @@ export class ERC20Token_json {
1199
1606
  }) as () => void;
1200
1607
  },
1201
1608
  /**
1202
- * Watch SetSymbol events
1609
+ * Watch RemovedBlackList events
1203
1610
  * @param callback Function to call when event is emitted
1204
1611
  * @param filter Optional filter for indexed parameters
1205
1612
  * @returns Unwatch function to stop listening
1206
1613
  */
1207
- SetSymbol: (callback: (event: { symbol: string }) => void) => {
1614
+ RemovedBlackList: (callback: (event: { _user: `0x${string}` }) => void) => {
1208
1615
  return this.publicClient.watchContractEvent({
1209
1616
  address: this.contractAddress,
1210
- abi: ERC20Token_jsonAbi,
1211
- eventName: 'SetSymbol',
1617
+ abi: TetherToken_jsonAbi,
1618
+ eventName: 'RemovedBlackList',
1212
1619
 
1213
1620
  onLogs: (logs: any[]) => {
1214
1621
  logs.forEach((log: any) => {
@@ -1217,6 +1624,25 @@ export class ERC20Token_json {
1217
1624
  },
1218
1625
  }) as () => void;
1219
1626
  },
1627
+ /**
1628
+ * Watch Approval events
1629
+ * @param callback Function to call when event is emitted
1630
+ * @param filter Optional filter for indexed parameters
1631
+ * @returns Unwatch function to stop listening
1632
+ */
1633
+ Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
1634
+ return this.publicClient.watchContractEvent({
1635
+ address: this.contractAddress,
1636
+ abi: TetherToken_jsonAbi,
1637
+ eventName: 'Approval',
1638
+ args: filter,
1639
+ onLogs: (logs: any[]) => {
1640
+ logs.forEach((log: any) => {
1641
+ callback(log.args as any);
1642
+ });
1643
+ },
1644
+ }) as () => void;
1645
+ },
1220
1646
  /**
1221
1647
  * Watch Transfer events
1222
1648
  * @param callback Function to call when event is emitted
@@ -1226,9 +1652,47 @@ export class ERC20Token_json {
1226
1652
  Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
1227
1653
  return this.publicClient.watchContractEvent({
1228
1654
  address: this.contractAddress,
1229
- abi: ERC20Token_jsonAbi,
1655
+ abi: TetherToken_jsonAbi,
1230
1656
  eventName: 'Transfer',
1231
1657
  args: filter,
1658
+ onLogs: (logs: any[]) => {
1659
+ logs.forEach((log: any) => {
1660
+ callback(log.args as any);
1661
+ });
1662
+ },
1663
+ }) as () => void;
1664
+ },
1665
+ /**
1666
+ * Watch Pause events
1667
+ * @param callback Function to call when event is emitted
1668
+ * @param filter Optional filter for indexed parameters
1669
+ * @returns Unwatch function to stop listening
1670
+ */
1671
+ Pause: (callback: (event: { }) => void) => {
1672
+ return this.publicClient.watchContractEvent({
1673
+ address: this.contractAddress,
1674
+ abi: TetherToken_jsonAbi,
1675
+ eventName: 'Pause',
1676
+
1677
+ onLogs: (logs: any[]) => {
1678
+ logs.forEach((log: any) => {
1679
+ callback(log.args as any);
1680
+ });
1681
+ },
1682
+ }) as () => void;
1683
+ },
1684
+ /**
1685
+ * Watch Unpause events
1686
+ * @param callback Function to call when event is emitted
1687
+ * @param filter Optional filter for indexed parameters
1688
+ * @returns Unwatch function to stop listening
1689
+ */
1690
+ Unpause: (callback: (event: { }) => void) => {
1691
+ return this.publicClient.watchContractEvent({
1692
+ address: this.contractAddress,
1693
+ abi: TetherToken_jsonAbi,
1694
+ eventName: 'Unpause',
1695
+
1232
1696
  onLogs: (logs: any[]) => {
1233
1697
  logs.forEach((log: any) => {
1234
1698
  callback(log.args as any);