@gitmyabi/usdt 1.0.22 → 1.0.27

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