@gitmyabi/usdt 1.0.21 → 1.0.22
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.
- package/README.md +3 -3
- package/contracts/{TetherUSDEdu_json.d.ts → TetherUSD_json.d.ts} +678 -335
- package/contracts/{TetherUSDEdu_json.js → TetherUSD_json.js} +658 -408
- package/contracts/{TetherUSDEdu_json.ts → TetherUSD_json.ts} +844 -420
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
|
@@ -2,123 +2,78 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
|
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* TetherUSD_json ABI
|
|
6
6
|
*
|
|
7
7
|
* This ABI is typed using viem's type system for full type safety.
|
|
8
8
|
*/
|
|
9
|
-
export const
|
|
9
|
+
export const TetherUSD_jsonAbi = [
|
|
10
10
|
{
|
|
11
11
|
"inputs": [],
|
|
12
12
|
"stateMutability": "nonpayable",
|
|
13
13
|
"type": "constructor"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
+
"anonymous": false,
|
|
16
17
|
"inputs": [
|
|
17
18
|
{
|
|
19
|
+
"indexed": true,
|
|
18
20
|
"internalType": "address",
|
|
19
|
-
"name": "
|
|
21
|
+
"name": "owner",
|
|
20
22
|
"type": "address"
|
|
21
23
|
},
|
|
22
24
|
{
|
|
23
|
-
"
|
|
24
|
-
"name": "allowance",
|
|
25
|
-
"type": "uint256"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"internalType": "uint256",
|
|
29
|
-
"name": "needed",
|
|
30
|
-
"type": "uint256"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"name": "ERC20InsufficientAllowance",
|
|
34
|
-
"type": "error"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"inputs": [
|
|
38
|
-
{
|
|
25
|
+
"indexed": true,
|
|
39
26
|
"internalType": "address",
|
|
40
|
-
"name": "
|
|
27
|
+
"name": "spender",
|
|
41
28
|
"type": "address"
|
|
42
29
|
},
|
|
43
30
|
{
|
|
31
|
+
"indexed": false,
|
|
44
32
|
"internalType": "uint256",
|
|
45
|
-
"name": "
|
|
46
|
-
"type": "uint256"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"internalType": "uint256",
|
|
50
|
-
"name": "needed",
|
|
33
|
+
"name": "value",
|
|
51
34
|
"type": "uint256"
|
|
52
35
|
}
|
|
53
36
|
],
|
|
54
|
-
"name": "
|
|
55
|
-
"type": "
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"inputs": [
|
|
59
|
-
{
|
|
60
|
-
"internalType": "address",
|
|
61
|
-
"name": "approver",
|
|
62
|
-
"type": "address"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"name": "ERC20InvalidApprover",
|
|
66
|
-
"type": "error"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"inputs": [
|
|
70
|
-
{
|
|
71
|
-
"internalType": "address",
|
|
72
|
-
"name": "receiver",
|
|
73
|
-
"type": "address"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"name": "ERC20InvalidReceiver",
|
|
77
|
-
"type": "error"
|
|
37
|
+
"name": "Approval",
|
|
38
|
+
"type": "event"
|
|
78
39
|
},
|
|
79
40
|
{
|
|
41
|
+
"anonymous": false,
|
|
80
42
|
"inputs": [
|
|
81
43
|
{
|
|
44
|
+
"indexed": true,
|
|
82
45
|
"internalType": "address",
|
|
83
|
-
"name": "
|
|
46
|
+
"name": "account",
|
|
84
47
|
"type": "address"
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"name": "ERC20InvalidSender",
|
|
88
|
-
"type": "error"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"inputs": [
|
|
48
|
+
},
|
|
92
49
|
{
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
50
|
+
"indexed": false,
|
|
51
|
+
"internalType": "bool",
|
|
52
|
+
"name": "status",
|
|
53
|
+
"type": "bool"
|
|
96
54
|
}
|
|
97
55
|
],
|
|
98
|
-
"name": "
|
|
99
|
-
"type": "
|
|
56
|
+
"name": "Blacklisted",
|
|
57
|
+
"type": "event"
|
|
100
58
|
},
|
|
101
59
|
{
|
|
60
|
+
"anonymous": false,
|
|
102
61
|
"inputs": [
|
|
103
62
|
{
|
|
63
|
+
"indexed": true,
|
|
104
64
|
"internalType": "address",
|
|
105
|
-
"name": "
|
|
65
|
+
"name": "from",
|
|
106
66
|
"type": "address"
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"name": "OwnableInvalidOwner",
|
|
110
|
-
"type": "error"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"inputs": [
|
|
67
|
+
},
|
|
114
68
|
{
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
69
|
+
"indexed": false,
|
|
70
|
+
"internalType": "uint256",
|
|
71
|
+
"name": "amount",
|
|
72
|
+
"type": "uint256"
|
|
118
73
|
}
|
|
119
74
|
],
|
|
120
|
-
"name": "
|
|
121
|
-
"type": "
|
|
75
|
+
"name": "Burned",
|
|
76
|
+
"type": "event"
|
|
122
77
|
},
|
|
123
78
|
{
|
|
124
79
|
"anonymous": false,
|
|
@@ -126,23 +81,17 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
126
81
|
{
|
|
127
82
|
"indexed": true,
|
|
128
83
|
"internalType": "address",
|
|
129
|
-
"name": "
|
|
84
|
+
"name": "oldCollector",
|
|
130
85
|
"type": "address"
|
|
131
86
|
},
|
|
132
87
|
{
|
|
133
88
|
"indexed": true,
|
|
134
89
|
"internalType": "address",
|
|
135
|
-
"name": "
|
|
90
|
+
"name": "newCollector",
|
|
136
91
|
"type": "address"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"indexed": false,
|
|
140
|
-
"internalType": "uint256",
|
|
141
|
-
"name": "value",
|
|
142
|
-
"type": "uint256"
|
|
143
92
|
}
|
|
144
93
|
],
|
|
145
|
-
"name": "
|
|
94
|
+
"name": "FeeCollectorUpdated",
|
|
146
95
|
"type": "event"
|
|
147
96
|
},
|
|
148
97
|
{
|
|
@@ -151,17 +100,17 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
151
100
|
{
|
|
152
101
|
"indexed": false,
|
|
153
102
|
"internalType": "uint256",
|
|
154
|
-
"name": "
|
|
103
|
+
"name": "oldFee",
|
|
155
104
|
"type": "uint256"
|
|
156
105
|
},
|
|
157
106
|
{
|
|
158
107
|
"indexed": false,
|
|
159
|
-
"internalType": "
|
|
160
|
-
"name": "
|
|
161
|
-
"type": "
|
|
108
|
+
"internalType": "uint256",
|
|
109
|
+
"name": "newFee",
|
|
110
|
+
"type": "uint256"
|
|
162
111
|
}
|
|
163
112
|
],
|
|
164
|
-
"name": "
|
|
113
|
+
"name": "FeeUpdated",
|
|
165
114
|
"type": "event"
|
|
166
115
|
},
|
|
167
116
|
{
|
|
@@ -170,24 +119,36 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
170
119
|
{
|
|
171
120
|
"indexed": false,
|
|
172
121
|
"internalType": "uint256",
|
|
173
|
-
"name": "
|
|
122
|
+
"name": "oldMax",
|
|
123
|
+
"type": "uint256"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"indexed": false,
|
|
127
|
+
"internalType": "uint256",
|
|
128
|
+
"name": "newMax",
|
|
174
129
|
"type": "uint256"
|
|
175
130
|
}
|
|
176
131
|
],
|
|
177
|
-
"name": "
|
|
132
|
+
"name": "MaxTransferUpdated",
|
|
178
133
|
"type": "event"
|
|
179
134
|
},
|
|
180
135
|
{
|
|
181
136
|
"anonymous": false,
|
|
182
137
|
"inputs": [
|
|
138
|
+
{
|
|
139
|
+
"indexed": true,
|
|
140
|
+
"internalType": "address",
|
|
141
|
+
"name": "to",
|
|
142
|
+
"type": "address"
|
|
143
|
+
},
|
|
183
144
|
{
|
|
184
145
|
"indexed": false,
|
|
185
146
|
"internalType": "uint256",
|
|
186
|
-
"name": "
|
|
147
|
+
"name": "amount",
|
|
187
148
|
"type": "uint256"
|
|
188
149
|
}
|
|
189
150
|
],
|
|
190
|
-
"name": "
|
|
151
|
+
"name": "Minted",
|
|
191
152
|
"type": "event"
|
|
192
153
|
},
|
|
193
154
|
{
|
|
@@ -209,6 +170,19 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
209
170
|
"name": "OwnershipTransferred",
|
|
210
171
|
"type": "event"
|
|
211
172
|
},
|
|
173
|
+
{
|
|
174
|
+
"anonymous": false,
|
|
175
|
+
"inputs": [
|
|
176
|
+
{
|
|
177
|
+
"indexed": true,
|
|
178
|
+
"internalType": "address",
|
|
179
|
+
"name": "by",
|
|
180
|
+
"type": "address"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"name": "Paused",
|
|
184
|
+
"type": "event"
|
|
185
|
+
},
|
|
212
186
|
{
|
|
213
187
|
"anonymous": false,
|
|
214
188
|
"inputs": [
|
|
@@ -238,23 +212,23 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
238
212
|
"anonymous": false,
|
|
239
213
|
"inputs": [
|
|
240
214
|
{
|
|
241
|
-
"indexed":
|
|
242
|
-
"internalType": "
|
|
243
|
-
"name": "
|
|
244
|
-
"type": "
|
|
215
|
+
"indexed": true,
|
|
216
|
+
"internalType": "address",
|
|
217
|
+
"name": "by",
|
|
218
|
+
"type": "address"
|
|
245
219
|
}
|
|
246
220
|
],
|
|
247
|
-
"name": "
|
|
221
|
+
"name": "Unpaused",
|
|
248
222
|
"type": "event"
|
|
249
223
|
},
|
|
250
224
|
{
|
|
251
225
|
"inputs": [],
|
|
252
|
-
"name": "
|
|
226
|
+
"name": "VERSION",
|
|
253
227
|
"outputs": [
|
|
254
228
|
{
|
|
255
|
-
"internalType": "
|
|
229
|
+
"internalType": "bytes32",
|
|
256
230
|
"name": "",
|
|
257
|
-
"type": "
|
|
231
|
+
"type": "bytes32"
|
|
258
232
|
}
|
|
259
233
|
],
|
|
260
234
|
"stateMutability": "view",
|
|
@@ -262,48 +236,42 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
262
236
|
},
|
|
263
237
|
{
|
|
264
238
|
"inputs": [],
|
|
265
|
-
"name": "
|
|
266
|
-
"outputs": [
|
|
267
|
-
|
|
268
|
-
"internalType": "uint256",
|
|
269
|
-
"name": "",
|
|
270
|
-
"type": "uint256"
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
"stateMutability": "view",
|
|
239
|
+
"name": "acceptOwnership",
|
|
240
|
+
"outputs": [],
|
|
241
|
+
"stateMutability": "nonpayable",
|
|
274
242
|
"type": "function"
|
|
275
243
|
},
|
|
276
244
|
{
|
|
277
|
-
"inputs": [
|
|
278
|
-
"name": "MONTHLY_APPROVAL_LIMIT",
|
|
279
|
-
"outputs": [
|
|
245
|
+
"inputs": [
|
|
280
246
|
{
|
|
281
|
-
"internalType": "
|
|
282
|
-
"name": "",
|
|
283
|
-
"type": "
|
|
247
|
+
"internalType": "address",
|
|
248
|
+
"name": "account",
|
|
249
|
+
"type": "address"
|
|
284
250
|
}
|
|
285
251
|
],
|
|
286
|
-
"
|
|
252
|
+
"name": "addMinter",
|
|
253
|
+
"outputs": [],
|
|
254
|
+
"stateMutability": "nonpayable",
|
|
287
255
|
"type": "function"
|
|
288
256
|
},
|
|
289
257
|
{
|
|
290
|
-
"inputs": [
|
|
291
|
-
"name": "WEEKLY_APPROVAL_LIMIT",
|
|
292
|
-
"outputs": [
|
|
258
|
+
"inputs": [
|
|
293
259
|
{
|
|
294
|
-
"internalType": "
|
|
295
|
-
"name": "",
|
|
296
|
-
"type": "
|
|
260
|
+
"internalType": "address",
|
|
261
|
+
"name": "account",
|
|
262
|
+
"type": "address"
|
|
297
263
|
}
|
|
298
264
|
],
|
|
299
|
-
"
|
|
265
|
+
"name": "addPauser",
|
|
266
|
+
"outputs": [],
|
|
267
|
+
"stateMutability": "nonpayable",
|
|
300
268
|
"type": "function"
|
|
301
269
|
},
|
|
302
270
|
{
|
|
303
271
|
"inputs": [
|
|
304
272
|
{
|
|
305
273
|
"internalType": "address",
|
|
306
|
-
"name": "
|
|
274
|
+
"name": "_owner",
|
|
307
275
|
"type": "address"
|
|
308
276
|
},
|
|
309
277
|
{
|
|
@@ -367,59 +335,81 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
367
335
|
"type": "function"
|
|
368
336
|
},
|
|
369
337
|
{
|
|
370
|
-
"inputs": [
|
|
371
|
-
|
|
338
|
+
"inputs": [
|
|
339
|
+
{
|
|
340
|
+
"internalType": "address",
|
|
341
|
+
"name": "account",
|
|
342
|
+
"type": "address"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"internalType": "bool",
|
|
346
|
+
"name": "status",
|
|
347
|
+
"type": "bool"
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"name": "blacklist",
|
|
372
351
|
"outputs": [],
|
|
373
|
-
"stateMutability": "
|
|
352
|
+
"stateMutability": "nonpayable",
|
|
374
353
|
"type": "function"
|
|
375
354
|
},
|
|
376
355
|
{
|
|
377
|
-
"inputs": [
|
|
378
|
-
|
|
356
|
+
"inputs": [
|
|
357
|
+
{
|
|
358
|
+
"internalType": "address",
|
|
359
|
+
"name": "",
|
|
360
|
+
"type": "address"
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
"name": "blacklisted",
|
|
379
364
|
"outputs": [
|
|
380
365
|
{
|
|
381
|
-
"internalType": "
|
|
366
|
+
"internalType": "bool",
|
|
382
367
|
"name": "",
|
|
383
|
-
"type": "
|
|
368
|
+
"type": "bool"
|
|
384
369
|
}
|
|
385
370
|
],
|
|
386
371
|
"stateMutability": "view",
|
|
387
372
|
"type": "function"
|
|
388
373
|
},
|
|
389
374
|
{
|
|
390
|
-
"inputs": [
|
|
391
|
-
"name": "decimals",
|
|
392
|
-
"outputs": [
|
|
375
|
+
"inputs": [
|
|
393
376
|
{
|
|
394
|
-
"internalType": "
|
|
395
|
-
"name": "",
|
|
396
|
-
"type": "
|
|
377
|
+
"internalType": "uint256",
|
|
378
|
+
"name": "amount",
|
|
379
|
+
"type": "uint256"
|
|
397
380
|
}
|
|
398
381
|
],
|
|
399
|
-
"
|
|
382
|
+
"name": "burn",
|
|
383
|
+
"outputs": [],
|
|
384
|
+
"stateMutability": "nonpayable",
|
|
400
385
|
"type": "function"
|
|
401
386
|
},
|
|
402
387
|
{
|
|
403
|
-
"inputs": [
|
|
404
|
-
|
|
405
|
-
|
|
388
|
+
"inputs": [
|
|
389
|
+
{
|
|
390
|
+
"internalType": "address",
|
|
391
|
+
"name": "from",
|
|
392
|
+
"type": "address"
|
|
393
|
+
},
|
|
406
394
|
{
|
|
407
395
|
"internalType": "uint256",
|
|
408
|
-
"name": "",
|
|
396
|
+
"name": "amount",
|
|
409
397
|
"type": "uint256"
|
|
410
398
|
}
|
|
411
399
|
],
|
|
412
|
-
"
|
|
400
|
+
"name": "burnFrom",
|
|
401
|
+
"outputs": [],
|
|
402
|
+
"stateMutability": "nonpayable",
|
|
413
403
|
"type": "function"
|
|
414
404
|
},
|
|
415
405
|
{
|
|
416
406
|
"inputs": [],
|
|
417
|
-
"name": "
|
|
407
|
+
"name": "contractOwner",
|
|
418
408
|
"outputs": [
|
|
419
409
|
{
|
|
420
|
-
"internalType": "
|
|
410
|
+
"internalType": "address",
|
|
421
411
|
"name": "",
|
|
422
|
-
"type": "
|
|
412
|
+
"type": "address"
|
|
423
413
|
}
|
|
424
414
|
],
|
|
425
415
|
"stateMutability": "view",
|
|
@@ -427,33 +417,63 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
427
417
|
},
|
|
428
418
|
{
|
|
429
419
|
"inputs": [],
|
|
430
|
-
"name": "
|
|
420
|
+
"name": "decimals",
|
|
431
421
|
"outputs": [
|
|
432
422
|
{
|
|
433
|
-
"internalType": "
|
|
423
|
+
"internalType": "uint8",
|
|
434
424
|
"name": "",
|
|
435
|
-
"type": "
|
|
425
|
+
"type": "uint8"
|
|
436
426
|
}
|
|
437
427
|
],
|
|
438
428
|
"stateMutability": "view",
|
|
439
429
|
"type": "function"
|
|
440
430
|
},
|
|
431
|
+
{
|
|
432
|
+
"inputs": [
|
|
433
|
+
{
|
|
434
|
+
"internalType": "address[]",
|
|
435
|
+
"name": "recipients",
|
|
436
|
+
"type": "address[]"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"internalType": "uint256",
|
|
440
|
+
"name": "value",
|
|
441
|
+
"type": "uint256"
|
|
442
|
+
}
|
|
443
|
+
],
|
|
444
|
+
"name": "distributeTokens",
|
|
445
|
+
"outputs": [
|
|
446
|
+
{
|
|
447
|
+
"internalType": "bool",
|
|
448
|
+
"name": "",
|
|
449
|
+
"type": "bool"
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
"stateMutability": "nonpayable",
|
|
453
|
+
"type": "function"
|
|
454
|
+
},
|
|
441
455
|
{
|
|
442
456
|
"inputs": [],
|
|
443
|
-
"name": "
|
|
457
|
+
"name": "feeCollector",
|
|
444
458
|
"outputs": [
|
|
445
459
|
{
|
|
446
|
-
"internalType": "
|
|
460
|
+
"internalType": "address",
|
|
447
461
|
"name": "",
|
|
448
|
-
"type": "
|
|
462
|
+
"type": "address"
|
|
449
463
|
}
|
|
450
464
|
],
|
|
451
465
|
"stateMutability": "view",
|
|
452
466
|
"type": "function"
|
|
453
467
|
},
|
|
454
468
|
{
|
|
455
|
-
"inputs": [
|
|
456
|
-
|
|
469
|
+
"inputs": [
|
|
470
|
+
{
|
|
471
|
+
"internalType": "uint256",
|
|
472
|
+
"name": "amount",
|
|
473
|
+
"type": "uint256"
|
|
474
|
+
}
|
|
475
|
+
],
|
|
476
|
+
"name": "getFeeForAmount",
|
|
457
477
|
"outputs": [
|
|
458
478
|
{
|
|
459
479
|
"internalType": "uint256",
|
|
@@ -465,26 +485,38 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
465
485
|
"type": "function"
|
|
466
486
|
},
|
|
467
487
|
{
|
|
468
|
-
"inputs": [
|
|
469
|
-
|
|
488
|
+
"inputs": [
|
|
489
|
+
{
|
|
490
|
+
"internalType": "address",
|
|
491
|
+
"name": "account",
|
|
492
|
+
"type": "address"
|
|
493
|
+
}
|
|
494
|
+
],
|
|
495
|
+
"name": "isMinter",
|
|
470
496
|
"outputs": [
|
|
471
497
|
{
|
|
472
|
-
"internalType": "
|
|
498
|
+
"internalType": "bool",
|
|
473
499
|
"name": "",
|
|
474
|
-
"type": "
|
|
500
|
+
"type": "bool"
|
|
475
501
|
}
|
|
476
502
|
],
|
|
477
503
|
"stateMutability": "view",
|
|
478
504
|
"type": "function"
|
|
479
505
|
},
|
|
480
506
|
{
|
|
481
|
-
"inputs": [
|
|
482
|
-
|
|
507
|
+
"inputs": [
|
|
508
|
+
{
|
|
509
|
+
"internalType": "address",
|
|
510
|
+
"name": "account",
|
|
511
|
+
"type": "address"
|
|
512
|
+
}
|
|
513
|
+
],
|
|
514
|
+
"name": "isPauser",
|
|
483
515
|
"outputs": [
|
|
484
516
|
{
|
|
485
|
-
"internalType": "
|
|
517
|
+
"internalType": "bool",
|
|
486
518
|
"name": "",
|
|
487
|
-
"type": "
|
|
519
|
+
"type": "bool"
|
|
488
520
|
}
|
|
489
521
|
],
|
|
490
522
|
"stateMutability": "view",
|
|
@@ -492,7 +524,7 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
492
524
|
},
|
|
493
525
|
{
|
|
494
526
|
"inputs": [],
|
|
495
|
-
"name": "
|
|
527
|
+
"name": "maxTransferAmount",
|
|
496
528
|
"outputs": [
|
|
497
529
|
{
|
|
498
530
|
"internalType": "uint256",
|
|
@@ -504,21 +536,32 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
504
536
|
"type": "function"
|
|
505
537
|
},
|
|
506
538
|
{
|
|
507
|
-
"inputs": [
|
|
508
|
-
|
|
509
|
-
|
|
539
|
+
"inputs": [
|
|
540
|
+
{
|
|
541
|
+
"internalType": "address",
|
|
542
|
+
"name": "to",
|
|
543
|
+
"type": "address"
|
|
544
|
+
},
|
|
510
545
|
{
|
|
511
546
|
"internalType": "uint256",
|
|
512
|
-
"name": "",
|
|
547
|
+
"name": "amount",
|
|
513
548
|
"type": "uint256"
|
|
514
549
|
}
|
|
515
550
|
],
|
|
516
|
-
"
|
|
551
|
+
"name": "mint",
|
|
552
|
+
"outputs": [],
|
|
553
|
+
"stateMutability": "nonpayable",
|
|
517
554
|
"type": "function"
|
|
518
555
|
},
|
|
519
556
|
{
|
|
520
|
-
"inputs": [
|
|
521
|
-
|
|
557
|
+
"inputs": [
|
|
558
|
+
{
|
|
559
|
+
"internalType": "address",
|
|
560
|
+
"name": "",
|
|
561
|
+
"type": "address"
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"name": "minters",
|
|
522
565
|
"outputs": [
|
|
523
566
|
{
|
|
524
567
|
"internalType": "bool",
|
|
@@ -530,26 +573,37 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
530
573
|
"type": "function"
|
|
531
574
|
},
|
|
532
575
|
{
|
|
533
|
-
"inputs": [
|
|
534
|
-
|
|
576
|
+
"inputs": [
|
|
577
|
+
{
|
|
578
|
+
"internalType": "address[]",
|
|
579
|
+
"name": "recipients",
|
|
580
|
+
"type": "address[]"
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"internalType": "uint256[]",
|
|
584
|
+
"name": "values",
|
|
585
|
+
"type": "uint256[]"
|
|
586
|
+
}
|
|
587
|
+
],
|
|
588
|
+
"name": "multiTransfer",
|
|
535
589
|
"outputs": [
|
|
536
590
|
{
|
|
537
|
-
"internalType": "
|
|
591
|
+
"internalType": "bool",
|
|
538
592
|
"name": "",
|
|
539
|
-
"type": "
|
|
593
|
+
"type": "bool"
|
|
540
594
|
}
|
|
541
595
|
],
|
|
542
|
-
"stateMutability": "
|
|
596
|
+
"stateMutability": "nonpayable",
|
|
543
597
|
"type": "function"
|
|
544
598
|
},
|
|
545
599
|
{
|
|
546
600
|
"inputs": [],
|
|
547
|
-
"name": "
|
|
601
|
+
"name": "name",
|
|
548
602
|
"outputs": [
|
|
549
603
|
{
|
|
550
|
-
"internalType": "
|
|
604
|
+
"internalType": "string",
|
|
551
605
|
"name": "",
|
|
552
|
-
"type": "
|
|
606
|
+
"type": "string"
|
|
553
607
|
}
|
|
554
608
|
],
|
|
555
609
|
"stateMutability": "view",
|
|
@@ -557,12 +611,12 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
557
611
|
},
|
|
558
612
|
{
|
|
559
613
|
"inputs": [],
|
|
560
|
-
"name": "
|
|
614
|
+
"name": "owner",
|
|
561
615
|
"outputs": [
|
|
562
616
|
{
|
|
563
|
-
"internalType": "
|
|
617
|
+
"internalType": "address",
|
|
564
618
|
"name": "",
|
|
565
|
-
"type": "
|
|
619
|
+
"type": "address"
|
|
566
620
|
}
|
|
567
621
|
],
|
|
568
622
|
"stateMutability": "view",
|
|
@@ -570,25 +624,38 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
570
624
|
},
|
|
571
625
|
{
|
|
572
626
|
"inputs": [],
|
|
573
|
-
"name": "
|
|
627
|
+
"name": "pause",
|
|
628
|
+
"outputs": [],
|
|
629
|
+
"stateMutability": "nonpayable",
|
|
630
|
+
"type": "function"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"inputs": [],
|
|
634
|
+
"name": "paused",
|
|
574
635
|
"outputs": [
|
|
575
636
|
{
|
|
576
|
-
"internalType": "
|
|
637
|
+
"internalType": "bool",
|
|
577
638
|
"name": "",
|
|
578
|
-
"type": "
|
|
639
|
+
"type": "bool"
|
|
579
640
|
}
|
|
580
641
|
],
|
|
581
642
|
"stateMutability": "view",
|
|
582
643
|
"type": "function"
|
|
583
644
|
},
|
|
584
645
|
{
|
|
585
|
-
"inputs": [
|
|
586
|
-
|
|
646
|
+
"inputs": [
|
|
647
|
+
{
|
|
648
|
+
"internalType": "address",
|
|
649
|
+
"name": "",
|
|
650
|
+
"type": "address"
|
|
651
|
+
}
|
|
652
|
+
],
|
|
653
|
+
"name": "pausers",
|
|
587
654
|
"outputs": [
|
|
588
655
|
{
|
|
589
|
-
"internalType": "
|
|
656
|
+
"internalType": "bool",
|
|
590
657
|
"name": "",
|
|
591
|
-
"type": "
|
|
658
|
+
"type": "bool"
|
|
592
659
|
}
|
|
593
660
|
],
|
|
594
661
|
"stateMutability": "view",
|
|
@@ -596,7 +663,7 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
596
663
|
},
|
|
597
664
|
{
|
|
598
665
|
"inputs": [],
|
|
599
|
-
"name": "
|
|
666
|
+
"name": "pendingOwner",
|
|
600
667
|
"outputs": [
|
|
601
668
|
{
|
|
602
669
|
"internalType": "address",
|
|
@@ -608,36 +675,45 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
608
675
|
"type": "function"
|
|
609
676
|
},
|
|
610
677
|
{
|
|
611
|
-
"inputs": [
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
"
|
|
619
|
-
"name": "resetAllCounters",
|
|
620
|
-
"outputs": [],
|
|
621
|
-
"stateMutability": "nonpayable",
|
|
622
|
-
"type": "function"
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
"inputs": [],
|
|
626
|
-
"name": "resetDailyCounter",
|
|
678
|
+
"inputs": [
|
|
679
|
+
{
|
|
680
|
+
"internalType": "address",
|
|
681
|
+
"name": "account",
|
|
682
|
+
"type": "address"
|
|
683
|
+
}
|
|
684
|
+
],
|
|
685
|
+
"name": "removeMinter",
|
|
627
686
|
"outputs": [],
|
|
628
687
|
"stateMutability": "nonpayable",
|
|
629
688
|
"type": "function"
|
|
630
689
|
},
|
|
631
690
|
{
|
|
632
|
-
"inputs": [
|
|
633
|
-
|
|
691
|
+
"inputs": [
|
|
692
|
+
{
|
|
693
|
+
"internalType": "address",
|
|
694
|
+
"name": "account",
|
|
695
|
+
"type": "address"
|
|
696
|
+
}
|
|
697
|
+
],
|
|
698
|
+
"name": "removePauser",
|
|
634
699
|
"outputs": [],
|
|
635
700
|
"stateMutability": "nonpayable",
|
|
636
701
|
"type": "function"
|
|
637
702
|
},
|
|
638
703
|
{
|
|
639
|
-
"inputs": [
|
|
640
|
-
|
|
704
|
+
"inputs": [
|
|
705
|
+
{
|
|
706
|
+
"internalType": "address",
|
|
707
|
+
"name": "tokenAddress",
|
|
708
|
+
"type": "address"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"internalType": "uint256",
|
|
712
|
+
"name": "amount",
|
|
713
|
+
"type": "uint256"
|
|
714
|
+
}
|
|
715
|
+
],
|
|
716
|
+
"name": "rescueERC20",
|
|
641
717
|
"outputs": [],
|
|
642
718
|
"stateMutability": "nonpayable",
|
|
643
719
|
"type": "function"
|
|
@@ -645,12 +721,12 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
645
721
|
{
|
|
646
722
|
"inputs": [
|
|
647
723
|
{
|
|
648
|
-
"internalType": "
|
|
649
|
-
"name": "
|
|
650
|
-
"type": "
|
|
724
|
+
"internalType": "address",
|
|
725
|
+
"name": "newCollector",
|
|
726
|
+
"type": "address"
|
|
651
727
|
}
|
|
652
728
|
],
|
|
653
|
-
"name": "
|
|
729
|
+
"name": "setFeeCollector",
|
|
654
730
|
"outputs": [],
|
|
655
731
|
"stateMutability": "nonpayable",
|
|
656
732
|
"type": "function"
|
|
@@ -659,11 +735,11 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
659
735
|
"inputs": [
|
|
660
736
|
{
|
|
661
737
|
"internalType": "uint256",
|
|
662
|
-
"name": "
|
|
738
|
+
"name": "newMax",
|
|
663
739
|
"type": "uint256"
|
|
664
740
|
}
|
|
665
741
|
],
|
|
666
|
-
"name": "
|
|
742
|
+
"name": "setMaxTransferAmount",
|
|
667
743
|
"outputs": [],
|
|
668
744
|
"stateMutability": "nonpayable",
|
|
669
745
|
"type": "function"
|
|
@@ -672,11 +748,11 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
672
748
|
"inputs": [
|
|
673
749
|
{
|
|
674
750
|
"internalType": "uint256",
|
|
675
|
-
"name": "
|
|
751
|
+
"name": "newFee",
|
|
676
752
|
"type": "uint256"
|
|
677
753
|
}
|
|
678
754
|
],
|
|
679
|
-
"name": "
|
|
755
|
+
"name": "setTransferFee",
|
|
680
756
|
"outputs": [],
|
|
681
757
|
"stateMutability": "nonpayable",
|
|
682
758
|
"type": "function"
|
|
@@ -694,13 +770,6 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
694
770
|
"stateMutability": "view",
|
|
695
771
|
"type": "function"
|
|
696
772
|
},
|
|
697
|
-
{
|
|
698
|
-
"inputs": [],
|
|
699
|
-
"name": "toggleApprovalLimit",
|
|
700
|
-
"outputs": [],
|
|
701
|
-
"stateMutability": "nonpayable",
|
|
702
|
-
"type": "function"
|
|
703
|
-
},
|
|
704
773
|
{
|
|
705
774
|
"inputs": [],
|
|
706
775
|
"name": "totalSupply",
|
|
@@ -738,6 +807,19 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
738
807
|
"stateMutability": "nonpayable",
|
|
739
808
|
"type": "function"
|
|
740
809
|
},
|
|
810
|
+
{
|
|
811
|
+
"inputs": [],
|
|
812
|
+
"name": "transferFee",
|
|
813
|
+
"outputs": [
|
|
814
|
+
{
|
|
815
|
+
"internalType": "uint256",
|
|
816
|
+
"name": "",
|
|
817
|
+
"type": "uint256"
|
|
818
|
+
}
|
|
819
|
+
],
|
|
820
|
+
"stateMutability": "view",
|
|
821
|
+
"type": "function"
|
|
822
|
+
},
|
|
741
823
|
{
|
|
742
824
|
"inputs": [
|
|
743
825
|
{
|
|
@@ -782,33 +864,27 @@ export const TetherUSDEdu_jsonAbi = [
|
|
|
782
864
|
},
|
|
783
865
|
{
|
|
784
866
|
"inputs": [],
|
|
785
|
-
"name": "
|
|
786
|
-
"outputs": [
|
|
787
|
-
|
|
788
|
-
"internalType": "uint256",
|
|
789
|
-
"name": "",
|
|
790
|
-
"type": "uint256"
|
|
791
|
-
}
|
|
792
|
-
],
|
|
793
|
-
"stateMutability": "view",
|
|
867
|
+
"name": "unpause",
|
|
868
|
+
"outputs": [],
|
|
869
|
+
"stateMutability": "nonpayable",
|
|
794
870
|
"type": "function"
|
|
795
871
|
}
|
|
796
872
|
] as const satisfies Abi;
|
|
797
873
|
|
|
798
874
|
/**
|
|
799
|
-
* Type-safe ABI for
|
|
875
|
+
* Type-safe ABI for TetherUSD_json
|
|
800
876
|
*/
|
|
801
|
-
export type
|
|
877
|
+
export type TetherUSD_jsonAbi = typeof TetherUSD_jsonAbi;
|
|
802
878
|
|
|
803
879
|
/**
|
|
804
|
-
* Contract instance type for
|
|
880
|
+
* Contract instance type for TetherUSD_json
|
|
805
881
|
*/
|
|
806
882
|
// Use any for contract type to avoid complex viem type issues
|
|
807
883
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
808
|
-
export type
|
|
884
|
+
export type TetherUSD_jsonContract = any;
|
|
809
885
|
|
|
810
886
|
/**
|
|
811
|
-
*
|
|
887
|
+
* TetherUSD_json Contract Class
|
|
812
888
|
*
|
|
813
889
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
814
890
|
*
|
|
@@ -816,12 +892,12 @@ export type TetherUSDEdu_jsonContract = any;
|
|
|
816
892
|
* ```typescript
|
|
817
893
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
818
894
|
* import { mainnet } from 'viem/chains';
|
|
819
|
-
* import {
|
|
895
|
+
* import { TetherUSD_json } from 'TetherUSD_json';
|
|
820
896
|
*
|
|
821
897
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
822
898
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
823
899
|
*
|
|
824
|
-
* const contract = new
|
|
900
|
+
* const contract = new TetherUSD_json('0x...', { publicClient, walletClient });
|
|
825
901
|
*
|
|
826
902
|
* // Read functions
|
|
827
903
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -839,8 +915,8 @@ export type TetherUSDEdu_jsonContract = any;
|
|
|
839
915
|
* });
|
|
840
916
|
* ```
|
|
841
917
|
*/
|
|
842
|
-
export class
|
|
843
|
-
private contract:
|
|
918
|
+
export class TetherUSD_json {
|
|
919
|
+
private contract: TetherUSD_jsonContract;
|
|
844
920
|
private contractAddress: Address;
|
|
845
921
|
private publicClient: PublicClient;
|
|
846
922
|
|
|
@@ -855,7 +931,7 @@ export class TetherUSDEdu_json {
|
|
|
855
931
|
this.publicClient = clients.publicClient;
|
|
856
932
|
this.contract = getContract({
|
|
857
933
|
address,
|
|
858
|
-
abi:
|
|
934
|
+
abi: TetherUSD_jsonAbi,
|
|
859
935
|
client: {
|
|
860
936
|
public: clients.publicClient,
|
|
861
937
|
wallet: clients.walletClient,
|
|
@@ -873,240 +949,337 @@ export class TetherUSDEdu_json {
|
|
|
873
949
|
/**
|
|
874
950
|
* Get the underlying viem contract instance
|
|
875
951
|
*/
|
|
876
|
-
getContract():
|
|
952
|
+
getContract(): TetherUSD_jsonContract {
|
|
877
953
|
return this.contract;
|
|
878
954
|
}
|
|
879
955
|
|
|
880
956
|
/**
|
|
881
|
-
*
|
|
957
|
+
* VERSION
|
|
882
958
|
* view
|
|
883
959
|
*/
|
|
884
|
-
async
|
|
885
|
-
return this.contract.read.
|
|
960
|
+
async VERSION(): Promise<`0x${string}`> {
|
|
961
|
+
return this.contract.read.VERSION() as Promise<`0x${string}`>;
|
|
886
962
|
}
|
|
887
963
|
|
|
888
964
|
/**
|
|
889
|
-
*
|
|
965
|
+
* allowance
|
|
890
966
|
* view
|
|
891
967
|
*/
|
|
892
|
-
async
|
|
893
|
-
return this.contract.read.
|
|
968
|
+
async allowance(_owner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
|
|
969
|
+
return this.contract.read.allowance([_owner, spender] as const) as Promise<bigint>;
|
|
894
970
|
}
|
|
895
971
|
|
|
896
972
|
/**
|
|
897
|
-
*
|
|
973
|
+
* balanceOf
|
|
898
974
|
* view
|
|
899
975
|
*/
|
|
900
|
-
async
|
|
901
|
-
return this.contract.read.
|
|
976
|
+
async balanceOf(account: `0x${string}`): Promise<bigint> {
|
|
977
|
+
return this.contract.read.balanceOf([account] as const) as Promise<bigint>;
|
|
902
978
|
}
|
|
903
979
|
|
|
904
980
|
/**
|
|
905
|
-
*
|
|
981
|
+
* blacklisted
|
|
906
982
|
* view
|
|
907
983
|
*/
|
|
908
|
-
async
|
|
909
|
-
return this.contract.read.
|
|
984
|
+
async blacklisted(arg0: `0x${string}`): Promise<boolean> {
|
|
985
|
+
return this.contract.read.blacklisted([arg0] as const) as Promise<boolean>;
|
|
910
986
|
}
|
|
911
987
|
|
|
912
988
|
/**
|
|
913
|
-
*
|
|
989
|
+
* contractOwner
|
|
914
990
|
* view
|
|
915
991
|
*/
|
|
916
|
-
async
|
|
917
|
-
return this.contract.read.
|
|
992
|
+
async contractOwner(): Promise<`0x${string}`> {
|
|
993
|
+
return this.contract.read.contractOwner() as Promise<`0x${string}`>;
|
|
918
994
|
}
|
|
919
995
|
|
|
920
996
|
/**
|
|
921
|
-
*
|
|
997
|
+
* decimals
|
|
922
998
|
* view
|
|
923
999
|
*/
|
|
924
|
-
async
|
|
925
|
-
return this.contract.read.
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
/**
|
|
929
|
-
* burn
|
|
930
|
-
* pure
|
|
931
|
-
*/
|
|
932
|
-
async burn(): Promise<void> {
|
|
933
|
-
return this.contract.read.burn() as Promise<void>;
|
|
1000
|
+
async decimals(): Promise<bigint> {
|
|
1001
|
+
return this.contract.read.decimals() as Promise<bigint>;
|
|
934
1002
|
}
|
|
935
1003
|
|
|
936
1004
|
/**
|
|
937
|
-
*
|
|
1005
|
+
* feeCollector
|
|
938
1006
|
* view
|
|
939
1007
|
*/
|
|
940
|
-
async
|
|
941
|
-
return this.contract.read.
|
|
1008
|
+
async feeCollector(): Promise<`0x${string}`> {
|
|
1009
|
+
return this.contract.read.feeCollector() as Promise<`0x${string}`>;
|
|
942
1010
|
}
|
|
943
1011
|
|
|
944
1012
|
/**
|
|
945
|
-
*
|
|
1013
|
+
* getFeeForAmount
|
|
946
1014
|
* view
|
|
947
1015
|
*/
|
|
948
|
-
async
|
|
949
|
-
return this.contract.read.
|
|
1016
|
+
async getFeeForAmount(amount: bigint): Promise<bigint> {
|
|
1017
|
+
return this.contract.read.getFeeForAmount([amount] as const) as Promise<bigint>;
|
|
950
1018
|
}
|
|
951
1019
|
|
|
952
1020
|
/**
|
|
953
|
-
*
|
|
1021
|
+
* isMinter
|
|
954
1022
|
* view
|
|
955
1023
|
*/
|
|
956
|
-
async
|
|
957
|
-
return this.contract.read.
|
|
1024
|
+
async isMinter(account: `0x${string}`): Promise<boolean> {
|
|
1025
|
+
return this.contract.read.isMinter([account] as const) as Promise<boolean>;
|
|
958
1026
|
}
|
|
959
1027
|
|
|
960
1028
|
/**
|
|
961
|
-
*
|
|
1029
|
+
* isPauser
|
|
962
1030
|
* view
|
|
963
1031
|
*/
|
|
964
|
-
async
|
|
965
|
-
return this.contract.read.
|
|
1032
|
+
async isPauser(account: `0x${string}`): Promise<boolean> {
|
|
1033
|
+
return this.contract.read.isPauser([account] as const) as Promise<boolean>;
|
|
966
1034
|
}
|
|
967
1035
|
|
|
968
1036
|
/**
|
|
969
|
-
*
|
|
1037
|
+
* maxTransferAmount
|
|
970
1038
|
* view
|
|
971
1039
|
*/
|
|
972
|
-
async
|
|
973
|
-
return this.contract.read.
|
|
1040
|
+
async maxTransferAmount(): Promise<bigint> {
|
|
1041
|
+
return this.contract.read.maxTransferAmount() as Promise<bigint>;
|
|
974
1042
|
}
|
|
975
1043
|
|
|
976
1044
|
/**
|
|
977
|
-
*
|
|
1045
|
+
* minters
|
|
978
1046
|
* view
|
|
979
1047
|
*/
|
|
980
|
-
async
|
|
981
|
-
return this.contract.read.
|
|
1048
|
+
async minters(arg0: `0x${string}`): Promise<boolean> {
|
|
1049
|
+
return this.contract.read.minters([arg0] as const) as Promise<boolean>;
|
|
982
1050
|
}
|
|
983
1051
|
|
|
984
1052
|
/**
|
|
985
|
-
*
|
|
1053
|
+
* name
|
|
986
1054
|
* view
|
|
987
1055
|
*/
|
|
988
|
-
async
|
|
989
|
-
return this.contract.read.
|
|
1056
|
+
async name(): Promise<string> {
|
|
1057
|
+
return this.contract.read.name() as Promise<string>;
|
|
990
1058
|
}
|
|
991
1059
|
|
|
992
1060
|
/**
|
|
993
|
-
*
|
|
1061
|
+
* owner
|
|
994
1062
|
* view
|
|
995
1063
|
*/
|
|
996
|
-
async
|
|
997
|
-
return this.contract.read.
|
|
1064
|
+
async owner(): Promise<`0x${string}`> {
|
|
1065
|
+
return this.contract.read.owner() as Promise<`0x${string}`>;
|
|
998
1066
|
}
|
|
999
1067
|
|
|
1000
1068
|
/**
|
|
1001
|
-
*
|
|
1069
|
+
* paused
|
|
1002
1070
|
* view
|
|
1003
1071
|
*/
|
|
1004
|
-
async
|
|
1005
|
-
return this.contract.read.
|
|
1072
|
+
async paused(): Promise<boolean> {
|
|
1073
|
+
return this.contract.read.paused() as Promise<boolean>;
|
|
1006
1074
|
}
|
|
1007
1075
|
|
|
1008
1076
|
/**
|
|
1009
|
-
*
|
|
1077
|
+
* pausers
|
|
1010
1078
|
* view
|
|
1011
1079
|
*/
|
|
1012
|
-
async
|
|
1013
|
-
return this.contract.read.
|
|
1080
|
+
async pausers(arg0: `0x${string}`): Promise<boolean> {
|
|
1081
|
+
return this.contract.read.pausers([arg0] as const) as Promise<boolean>;
|
|
1014
1082
|
}
|
|
1015
1083
|
|
|
1016
1084
|
/**
|
|
1017
|
-
*
|
|
1085
|
+
* pendingOwner
|
|
1018
1086
|
* view
|
|
1019
1087
|
*/
|
|
1020
|
-
async
|
|
1021
|
-
return this.contract.read.
|
|
1088
|
+
async pendingOwner(): Promise<`0x${string}`> {
|
|
1089
|
+
return this.contract.read.pendingOwner() as Promise<`0x${string}`>;
|
|
1022
1090
|
}
|
|
1023
1091
|
|
|
1024
1092
|
/**
|
|
1025
|
-
*
|
|
1093
|
+
* symbol
|
|
1026
1094
|
* view
|
|
1027
1095
|
*/
|
|
1028
|
-
async
|
|
1029
|
-
return this.contract.read.
|
|
1096
|
+
async symbol(): Promise<string> {
|
|
1097
|
+
return this.contract.read.symbol() as Promise<string>;
|
|
1030
1098
|
}
|
|
1031
1099
|
|
|
1032
1100
|
/**
|
|
1033
|
-
*
|
|
1101
|
+
* totalSupply
|
|
1034
1102
|
* view
|
|
1035
1103
|
*/
|
|
1036
|
-
async
|
|
1037
|
-
return this.contract.read.
|
|
1104
|
+
async totalSupply(): Promise<bigint> {
|
|
1105
|
+
return this.contract.read.totalSupply() as Promise<bigint>;
|
|
1038
1106
|
}
|
|
1039
1107
|
|
|
1040
1108
|
/**
|
|
1041
|
-
*
|
|
1109
|
+
* transferFee
|
|
1042
1110
|
* view
|
|
1043
1111
|
*/
|
|
1044
|
-
async
|
|
1045
|
-
return this.contract.read.
|
|
1112
|
+
async transferFee(): Promise<bigint> {
|
|
1113
|
+
return this.contract.read.transferFee() as Promise<bigint>;
|
|
1046
1114
|
}
|
|
1047
1115
|
|
|
1048
1116
|
/**
|
|
1049
|
-
*
|
|
1050
|
-
*
|
|
1117
|
+
* acceptOwnership
|
|
1118
|
+
* nonpayable
|
|
1119
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1051
1120
|
*/
|
|
1052
|
-
async
|
|
1053
|
-
|
|
1121
|
+
async acceptOwnership(options?: {
|
|
1122
|
+
accessList?: import('viem').AccessList;
|
|
1123
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1124
|
+
chain?: import('viem').Chain | null;
|
|
1125
|
+
dataSuffix?: `0x${string}`;
|
|
1126
|
+
gas?: bigint;
|
|
1127
|
+
gasPrice?: bigint;
|
|
1128
|
+
maxFeePerGas?: bigint;
|
|
1129
|
+
maxPriorityFeePerGas?: bigint;
|
|
1130
|
+
nonce?: number;
|
|
1131
|
+
value?: bigint;
|
|
1132
|
+
}): Promise<`0x${string}`> {
|
|
1133
|
+
if (!this.contract.write) {
|
|
1134
|
+
throw new Error('Wallet client is required for write operations');
|
|
1135
|
+
}
|
|
1136
|
+
return this.contract.write.acceptOwnership(options) as Promise<`0x${string}`>;
|
|
1054
1137
|
}
|
|
1055
1138
|
|
|
1056
1139
|
/**
|
|
1057
|
-
*
|
|
1058
|
-
*
|
|
1140
|
+
* addMinter
|
|
1141
|
+
* nonpayable
|
|
1142
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1059
1143
|
*/
|
|
1060
|
-
async
|
|
1061
|
-
|
|
1144
|
+
async addMinter(account: `0x${string}`, options?: {
|
|
1145
|
+
accessList?: import('viem').AccessList;
|
|
1146
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1147
|
+
chain?: import('viem').Chain | null;
|
|
1148
|
+
dataSuffix?: `0x${string}`;
|
|
1149
|
+
gas?: bigint;
|
|
1150
|
+
gasPrice?: bigint;
|
|
1151
|
+
maxFeePerGas?: bigint;
|
|
1152
|
+
maxPriorityFeePerGas?: bigint;
|
|
1153
|
+
nonce?: number;
|
|
1154
|
+
value?: bigint;
|
|
1155
|
+
}): Promise<`0x${string}`> {
|
|
1156
|
+
if (!this.contract.write) {
|
|
1157
|
+
throw new Error('Wallet client is required for write operations');
|
|
1158
|
+
}
|
|
1159
|
+
return this.contract.write.addMinter([account] as const, options) as Promise<`0x${string}`>;
|
|
1062
1160
|
}
|
|
1063
1161
|
|
|
1064
1162
|
/**
|
|
1065
|
-
*
|
|
1066
|
-
*
|
|
1163
|
+
* addPauser
|
|
1164
|
+
* nonpayable
|
|
1165
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1067
1166
|
*/
|
|
1068
|
-
async
|
|
1069
|
-
|
|
1167
|
+
async addPauser(account: `0x${string}`, options?: {
|
|
1168
|
+
accessList?: import('viem').AccessList;
|
|
1169
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1170
|
+
chain?: import('viem').Chain | null;
|
|
1171
|
+
dataSuffix?: `0x${string}`;
|
|
1172
|
+
gas?: bigint;
|
|
1173
|
+
gasPrice?: bigint;
|
|
1174
|
+
maxFeePerGas?: bigint;
|
|
1175
|
+
maxPriorityFeePerGas?: bigint;
|
|
1176
|
+
nonce?: number;
|
|
1177
|
+
value?: bigint;
|
|
1178
|
+
}): Promise<`0x${string}`> {
|
|
1179
|
+
if (!this.contract.write) {
|
|
1180
|
+
throw new Error('Wallet client is required for write operations');
|
|
1181
|
+
}
|
|
1182
|
+
return this.contract.write.addPauser([account] as const, options) as Promise<`0x${string}`>;
|
|
1070
1183
|
}
|
|
1071
1184
|
|
|
1072
1185
|
/**
|
|
1073
|
-
*
|
|
1074
|
-
*
|
|
1186
|
+
* approve
|
|
1187
|
+
* nonpayable
|
|
1188
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1075
1189
|
*/
|
|
1076
|
-
async
|
|
1077
|
-
|
|
1190
|
+
async approve(spender: `0x${string}`, value: bigint, options?: {
|
|
1191
|
+
accessList?: import('viem').AccessList;
|
|
1192
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1193
|
+
chain?: import('viem').Chain | null;
|
|
1194
|
+
dataSuffix?: `0x${string}`;
|
|
1195
|
+
gas?: bigint;
|
|
1196
|
+
gasPrice?: bigint;
|
|
1197
|
+
maxFeePerGas?: bigint;
|
|
1198
|
+
maxPriorityFeePerGas?: bigint;
|
|
1199
|
+
nonce?: number;
|
|
1200
|
+
value?: bigint;
|
|
1201
|
+
}): Promise<`0x${string}`> {
|
|
1202
|
+
if (!this.contract.write) {
|
|
1203
|
+
throw new Error('Wallet client is required for write operations');
|
|
1204
|
+
}
|
|
1205
|
+
return this.contract.write.approve([spender, value] as const, options) as Promise<`0x${string}`>;
|
|
1078
1206
|
}
|
|
1079
1207
|
|
|
1080
1208
|
/**
|
|
1081
|
-
*
|
|
1082
|
-
*
|
|
1209
|
+
* blacklist
|
|
1210
|
+
* nonpayable
|
|
1211
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1083
1212
|
*/
|
|
1084
|
-
async
|
|
1085
|
-
|
|
1213
|
+
async blacklist(account: `0x${string}`, status: boolean, options?: {
|
|
1214
|
+
accessList?: import('viem').AccessList;
|
|
1215
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1216
|
+
chain?: import('viem').Chain | null;
|
|
1217
|
+
dataSuffix?: `0x${string}`;
|
|
1218
|
+
gas?: bigint;
|
|
1219
|
+
gasPrice?: bigint;
|
|
1220
|
+
maxFeePerGas?: bigint;
|
|
1221
|
+
maxPriorityFeePerGas?: bigint;
|
|
1222
|
+
nonce?: number;
|
|
1223
|
+
value?: bigint;
|
|
1224
|
+
}): Promise<`0x${string}`> {
|
|
1225
|
+
if (!this.contract.write) {
|
|
1226
|
+
throw new Error('Wallet client is required for write operations');
|
|
1227
|
+
}
|
|
1228
|
+
return this.contract.write.blacklist([account, status] as const, options) as Promise<`0x${string}`>;
|
|
1086
1229
|
}
|
|
1087
1230
|
|
|
1088
1231
|
/**
|
|
1089
|
-
*
|
|
1090
|
-
*
|
|
1232
|
+
* burn
|
|
1233
|
+
* nonpayable
|
|
1234
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1091
1235
|
*/
|
|
1092
|
-
async
|
|
1093
|
-
|
|
1236
|
+
async burn(amount: bigint, options?: {
|
|
1237
|
+
accessList?: import('viem').AccessList;
|
|
1238
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1239
|
+
chain?: import('viem').Chain | null;
|
|
1240
|
+
dataSuffix?: `0x${string}`;
|
|
1241
|
+
gas?: bigint;
|
|
1242
|
+
gasPrice?: bigint;
|
|
1243
|
+
maxFeePerGas?: bigint;
|
|
1244
|
+
maxPriorityFeePerGas?: bigint;
|
|
1245
|
+
nonce?: number;
|
|
1246
|
+
value?: bigint;
|
|
1247
|
+
}): Promise<`0x${string}`> {
|
|
1248
|
+
if (!this.contract.write) {
|
|
1249
|
+
throw new Error('Wallet client is required for write operations');
|
|
1250
|
+
}
|
|
1251
|
+
return this.contract.write.burn([amount] as const, options) as Promise<`0x${string}`>;
|
|
1094
1252
|
}
|
|
1095
1253
|
|
|
1096
1254
|
/**
|
|
1097
|
-
*
|
|
1098
|
-
*
|
|
1255
|
+
* burnFrom
|
|
1256
|
+
* nonpayable
|
|
1257
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1099
1258
|
*/
|
|
1100
|
-
async
|
|
1101
|
-
|
|
1259
|
+
async burnFrom(from: `0x${string}`, amount: bigint, options?: {
|
|
1260
|
+
accessList?: import('viem').AccessList;
|
|
1261
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1262
|
+
chain?: import('viem').Chain | null;
|
|
1263
|
+
dataSuffix?: `0x${string}`;
|
|
1264
|
+
gas?: bigint;
|
|
1265
|
+
gasPrice?: bigint;
|
|
1266
|
+
maxFeePerGas?: bigint;
|
|
1267
|
+
maxPriorityFeePerGas?: bigint;
|
|
1268
|
+
nonce?: number;
|
|
1269
|
+
value?: bigint;
|
|
1270
|
+
}): Promise<`0x${string}`> {
|
|
1271
|
+
if (!this.contract.write) {
|
|
1272
|
+
throw new Error('Wallet client is required for write operations');
|
|
1273
|
+
}
|
|
1274
|
+
return this.contract.write.burnFrom([from, amount] as const, options) as Promise<`0x${string}`>;
|
|
1102
1275
|
}
|
|
1103
1276
|
|
|
1104
1277
|
/**
|
|
1105
|
-
*
|
|
1278
|
+
* distributeTokens
|
|
1106
1279
|
* nonpayable
|
|
1107
1280
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1108
1281
|
*/
|
|
1109
|
-
async
|
|
1282
|
+
async distributeTokens(recipients: `0x${string}`[], value: bigint, options?: {
|
|
1110
1283
|
accessList?: import('viem').AccessList;
|
|
1111
1284
|
authorizationList?: import('viem').AuthorizationList;
|
|
1112
1285
|
chain?: import('viem').Chain | null;
|
|
@@ -1121,15 +1294,15 @@ export class TetherUSDEdu_json {
|
|
|
1121
1294
|
if (!this.contract.write) {
|
|
1122
1295
|
throw new Error('Wallet client is required for write operations');
|
|
1123
1296
|
}
|
|
1124
|
-
return this.contract.write.
|
|
1297
|
+
return this.contract.write.distributeTokens([recipients, value] as const, options) as Promise<`0x${string}`>;
|
|
1125
1298
|
}
|
|
1126
1299
|
|
|
1127
1300
|
/**
|
|
1128
|
-
*
|
|
1301
|
+
* mint
|
|
1129
1302
|
* nonpayable
|
|
1130
1303
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1131
1304
|
*/
|
|
1132
|
-
async
|
|
1305
|
+
async mint(to: `0x${string}`, amount: bigint, options?: {
|
|
1133
1306
|
accessList?: import('viem').AccessList;
|
|
1134
1307
|
authorizationList?: import('viem').AuthorizationList;
|
|
1135
1308
|
chain?: import('viem').Chain | null;
|
|
@@ -1144,15 +1317,15 @@ export class TetherUSDEdu_json {
|
|
|
1144
1317
|
if (!this.contract.write) {
|
|
1145
1318
|
throw new Error('Wallet client is required for write operations');
|
|
1146
1319
|
}
|
|
1147
|
-
return this.contract.write.
|
|
1320
|
+
return this.contract.write.mint([to, amount] as const, options) as Promise<`0x${string}`>;
|
|
1148
1321
|
}
|
|
1149
1322
|
|
|
1150
1323
|
/**
|
|
1151
|
-
*
|
|
1324
|
+
* multiTransfer
|
|
1152
1325
|
* nonpayable
|
|
1153
1326
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1154
1327
|
*/
|
|
1155
|
-
async
|
|
1328
|
+
async multiTransfer(recipients: `0x${string}`[], values: bigint[], options?: {
|
|
1156
1329
|
accessList?: import('viem').AccessList;
|
|
1157
1330
|
authorizationList?: import('viem').AuthorizationList;
|
|
1158
1331
|
chain?: import('viem').Chain | null;
|
|
@@ -1167,15 +1340,15 @@ export class TetherUSDEdu_json {
|
|
|
1167
1340
|
if (!this.contract.write) {
|
|
1168
1341
|
throw new Error('Wallet client is required for write operations');
|
|
1169
1342
|
}
|
|
1170
|
-
return this.contract.write.
|
|
1343
|
+
return this.contract.write.multiTransfer([recipients, values] as const, options) as Promise<`0x${string}`>;
|
|
1171
1344
|
}
|
|
1172
1345
|
|
|
1173
1346
|
/**
|
|
1174
|
-
*
|
|
1347
|
+
* pause
|
|
1175
1348
|
* nonpayable
|
|
1176
1349
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1177
1350
|
*/
|
|
1178
|
-
async
|
|
1351
|
+
async pause(options?: {
|
|
1179
1352
|
accessList?: import('viem').AccessList;
|
|
1180
1353
|
authorizationList?: import('viem').AuthorizationList;
|
|
1181
1354
|
chain?: import('viem').Chain | null;
|
|
@@ -1190,15 +1363,15 @@ export class TetherUSDEdu_json {
|
|
|
1190
1363
|
if (!this.contract.write) {
|
|
1191
1364
|
throw new Error('Wallet client is required for write operations');
|
|
1192
1365
|
}
|
|
1193
|
-
return this.contract.write.
|
|
1366
|
+
return this.contract.write.pause(options) as Promise<`0x${string}`>;
|
|
1194
1367
|
}
|
|
1195
1368
|
|
|
1196
1369
|
/**
|
|
1197
|
-
*
|
|
1370
|
+
* removeMinter
|
|
1198
1371
|
* nonpayable
|
|
1199
1372
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1200
1373
|
*/
|
|
1201
|
-
async
|
|
1374
|
+
async removeMinter(account: `0x${string}`, options?: {
|
|
1202
1375
|
accessList?: import('viem').AccessList;
|
|
1203
1376
|
authorizationList?: import('viem').AuthorizationList;
|
|
1204
1377
|
chain?: import('viem').Chain | null;
|
|
@@ -1213,15 +1386,15 @@ export class TetherUSDEdu_json {
|
|
|
1213
1386
|
if (!this.contract.write) {
|
|
1214
1387
|
throw new Error('Wallet client is required for write operations');
|
|
1215
1388
|
}
|
|
1216
|
-
return this.contract.write.
|
|
1389
|
+
return this.contract.write.removeMinter([account] as const, options) as Promise<`0x${string}`>;
|
|
1217
1390
|
}
|
|
1218
1391
|
|
|
1219
1392
|
/**
|
|
1220
|
-
*
|
|
1393
|
+
* removePauser
|
|
1221
1394
|
* nonpayable
|
|
1222
1395
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1223
1396
|
*/
|
|
1224
|
-
async
|
|
1397
|
+
async removePauser(account: `0x${string}`, options?: {
|
|
1225
1398
|
accessList?: import('viem').AccessList;
|
|
1226
1399
|
authorizationList?: import('viem').AuthorizationList;
|
|
1227
1400
|
chain?: import('viem').Chain | null;
|
|
@@ -1236,15 +1409,15 @@ export class TetherUSDEdu_json {
|
|
|
1236
1409
|
if (!this.contract.write) {
|
|
1237
1410
|
throw new Error('Wallet client is required for write operations');
|
|
1238
1411
|
}
|
|
1239
|
-
return this.contract.write.
|
|
1412
|
+
return this.contract.write.removePauser([account] as const, options) as Promise<`0x${string}`>;
|
|
1240
1413
|
}
|
|
1241
1414
|
|
|
1242
1415
|
/**
|
|
1243
|
-
*
|
|
1416
|
+
* rescueERC20
|
|
1244
1417
|
* nonpayable
|
|
1245
1418
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1246
1419
|
*/
|
|
1247
|
-
async
|
|
1420
|
+
async rescueERC20(tokenAddress: `0x${string}`, amount: bigint, options?: {
|
|
1248
1421
|
accessList?: import('viem').AccessList;
|
|
1249
1422
|
authorizationList?: import('viem').AuthorizationList;
|
|
1250
1423
|
chain?: import('viem').Chain | null;
|
|
@@ -1259,15 +1432,15 @@ export class TetherUSDEdu_json {
|
|
|
1259
1432
|
if (!this.contract.write) {
|
|
1260
1433
|
throw new Error('Wallet client is required for write operations');
|
|
1261
1434
|
}
|
|
1262
|
-
return this.contract.write.
|
|
1435
|
+
return this.contract.write.rescueERC20([tokenAddress, amount] as const, options) as Promise<`0x${string}`>;
|
|
1263
1436
|
}
|
|
1264
1437
|
|
|
1265
1438
|
/**
|
|
1266
|
-
*
|
|
1439
|
+
* setFeeCollector
|
|
1267
1440
|
* nonpayable
|
|
1268
1441
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1269
1442
|
*/
|
|
1270
|
-
async
|
|
1443
|
+
async setFeeCollector(newCollector: `0x${string}`, options?: {
|
|
1271
1444
|
accessList?: import('viem').AccessList;
|
|
1272
1445
|
authorizationList?: import('viem').AuthorizationList;
|
|
1273
1446
|
chain?: import('viem').Chain | null;
|
|
@@ -1282,15 +1455,15 @@ export class TetherUSDEdu_json {
|
|
|
1282
1455
|
if (!this.contract.write) {
|
|
1283
1456
|
throw new Error('Wallet client is required for write operations');
|
|
1284
1457
|
}
|
|
1285
|
-
return this.contract.write.
|
|
1458
|
+
return this.contract.write.setFeeCollector([newCollector] as const, options) as Promise<`0x${string}`>;
|
|
1286
1459
|
}
|
|
1287
1460
|
|
|
1288
1461
|
/**
|
|
1289
|
-
*
|
|
1462
|
+
* setMaxTransferAmount
|
|
1290
1463
|
* nonpayable
|
|
1291
1464
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1292
1465
|
*/
|
|
1293
|
-
async
|
|
1466
|
+
async setMaxTransferAmount(newMax: bigint, options?: {
|
|
1294
1467
|
accessList?: import('viem').AccessList;
|
|
1295
1468
|
authorizationList?: import('viem').AuthorizationList;
|
|
1296
1469
|
chain?: import('viem').Chain | null;
|
|
@@ -1305,15 +1478,15 @@ export class TetherUSDEdu_json {
|
|
|
1305
1478
|
if (!this.contract.write) {
|
|
1306
1479
|
throw new Error('Wallet client is required for write operations');
|
|
1307
1480
|
}
|
|
1308
|
-
return this.contract.write.
|
|
1481
|
+
return this.contract.write.setMaxTransferAmount([newMax] as const, options) as Promise<`0x${string}`>;
|
|
1309
1482
|
}
|
|
1310
1483
|
|
|
1311
1484
|
/**
|
|
1312
|
-
*
|
|
1485
|
+
* setTransferFee
|
|
1313
1486
|
* nonpayable
|
|
1314
1487
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1315
1488
|
*/
|
|
1316
|
-
async
|
|
1489
|
+
async setTransferFee(newFee: bigint, options?: {
|
|
1317
1490
|
accessList?: import('viem').AccessList;
|
|
1318
1491
|
authorizationList?: import('viem').AuthorizationList;
|
|
1319
1492
|
chain?: import('viem').Chain | null;
|
|
@@ -1328,7 +1501,7 @@ export class TetherUSDEdu_json {
|
|
|
1328
1501
|
if (!this.contract.write) {
|
|
1329
1502
|
throw new Error('Wallet client is required for write operations');
|
|
1330
1503
|
}
|
|
1331
|
-
return this.contract.write.
|
|
1504
|
+
return this.contract.write.setTransferFee([newFee] as const, options) as Promise<`0x${string}`>;
|
|
1332
1505
|
}
|
|
1333
1506
|
|
|
1334
1507
|
/**
|
|
@@ -1400,6 +1573,29 @@ export class TetherUSDEdu_json {
|
|
|
1400
1573
|
return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
|
|
1401
1574
|
}
|
|
1402
1575
|
|
|
1576
|
+
/**
|
|
1577
|
+
* unpause
|
|
1578
|
+
* nonpayable
|
|
1579
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1580
|
+
*/
|
|
1581
|
+
async unpause(options?: {
|
|
1582
|
+
accessList?: import('viem').AccessList;
|
|
1583
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1584
|
+
chain?: import('viem').Chain | null;
|
|
1585
|
+
dataSuffix?: `0x${string}`;
|
|
1586
|
+
gas?: bigint;
|
|
1587
|
+
gasPrice?: bigint;
|
|
1588
|
+
maxFeePerGas?: bigint;
|
|
1589
|
+
maxPriorityFeePerGas?: bigint;
|
|
1590
|
+
nonce?: number;
|
|
1591
|
+
value?: bigint;
|
|
1592
|
+
}): Promise<`0x${string}`> {
|
|
1593
|
+
if (!this.contract.write) {
|
|
1594
|
+
throw new Error('Wallet client is required for write operations');
|
|
1595
|
+
}
|
|
1596
|
+
return this.contract.write.unpause(options) as Promise<`0x${string}`>;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1403
1599
|
|
|
1404
1600
|
|
|
1405
1601
|
/**
|
|
@@ -1416,6 +1612,63 @@ export class TetherUSDEdu_json {
|
|
|
1416
1612
|
throw new Error('Public client is required for simulation');
|
|
1417
1613
|
}
|
|
1418
1614
|
return {
|
|
1615
|
+
/**
|
|
1616
|
+
* Simulate acceptOwnership
|
|
1617
|
+
* Returns gas estimate and result without sending transaction
|
|
1618
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1619
|
+
*/
|
|
1620
|
+
async acceptOwnership(options?: {
|
|
1621
|
+
accessList?: import('viem').AccessList;
|
|
1622
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1623
|
+
chain?: import('viem').Chain | null;
|
|
1624
|
+
dataSuffix?: `0x${string}`;
|
|
1625
|
+
gas?: bigint;
|
|
1626
|
+
gasPrice?: bigint;
|
|
1627
|
+
maxFeePerGas?: bigint;
|
|
1628
|
+
maxPriorityFeePerGas?: bigint;
|
|
1629
|
+
nonce?: number;
|
|
1630
|
+
value?: bigint;
|
|
1631
|
+
}): Promise<void> {
|
|
1632
|
+
return contract.simulate.acceptOwnership(options) as Promise<void>;
|
|
1633
|
+
},
|
|
1634
|
+
/**
|
|
1635
|
+
* Simulate addMinter
|
|
1636
|
+
* Returns gas estimate and result without sending transaction
|
|
1637
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1638
|
+
*/
|
|
1639
|
+
async addMinter(account: `0x${string}`, options?: {
|
|
1640
|
+
accessList?: import('viem').AccessList;
|
|
1641
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1642
|
+
chain?: import('viem').Chain | null;
|
|
1643
|
+
dataSuffix?: `0x${string}`;
|
|
1644
|
+
gas?: bigint;
|
|
1645
|
+
gasPrice?: bigint;
|
|
1646
|
+
maxFeePerGas?: bigint;
|
|
1647
|
+
maxPriorityFeePerGas?: bigint;
|
|
1648
|
+
nonce?: number;
|
|
1649
|
+
value?: bigint;
|
|
1650
|
+
}): Promise<void> {
|
|
1651
|
+
return contract.simulate.addMinter([account] as const, options) as Promise<void>;
|
|
1652
|
+
},
|
|
1653
|
+
/**
|
|
1654
|
+
* Simulate addPauser
|
|
1655
|
+
* Returns gas estimate and result without sending transaction
|
|
1656
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1657
|
+
*/
|
|
1658
|
+
async addPauser(account: `0x${string}`, options?: {
|
|
1659
|
+
accessList?: import('viem').AccessList;
|
|
1660
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1661
|
+
chain?: import('viem').Chain | null;
|
|
1662
|
+
dataSuffix?: `0x${string}`;
|
|
1663
|
+
gas?: bigint;
|
|
1664
|
+
gasPrice?: bigint;
|
|
1665
|
+
maxFeePerGas?: bigint;
|
|
1666
|
+
maxPriorityFeePerGas?: bigint;
|
|
1667
|
+
nonce?: number;
|
|
1668
|
+
value?: bigint;
|
|
1669
|
+
}): Promise<void> {
|
|
1670
|
+
return contract.simulate.addPauser([account] as const, options) as Promise<void>;
|
|
1671
|
+
},
|
|
1419
1672
|
/**
|
|
1420
1673
|
* Simulate approve
|
|
1421
1674
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1436,11 +1689,30 @@ export class TetherUSDEdu_json {
|
|
|
1436
1689
|
return contract.simulate.approve([spender, value] as const, options) as Promise<boolean>;
|
|
1437
1690
|
},
|
|
1438
1691
|
/**
|
|
1439
|
-
* Simulate
|
|
1692
|
+
* Simulate blacklist
|
|
1693
|
+
* Returns gas estimate and result without sending transaction
|
|
1694
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1695
|
+
*/
|
|
1696
|
+
async blacklist(account: `0x${string}`, status: boolean, options?: {
|
|
1697
|
+
accessList?: import('viem').AccessList;
|
|
1698
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1699
|
+
chain?: import('viem').Chain | null;
|
|
1700
|
+
dataSuffix?: `0x${string}`;
|
|
1701
|
+
gas?: bigint;
|
|
1702
|
+
gasPrice?: bigint;
|
|
1703
|
+
maxFeePerGas?: bigint;
|
|
1704
|
+
maxPriorityFeePerGas?: bigint;
|
|
1705
|
+
nonce?: number;
|
|
1706
|
+
value?: bigint;
|
|
1707
|
+
}): Promise<void> {
|
|
1708
|
+
return contract.simulate.blacklist([account, status] as const, options) as Promise<void>;
|
|
1709
|
+
},
|
|
1710
|
+
/**
|
|
1711
|
+
* Simulate burn
|
|
1440
1712
|
* Returns gas estimate and result without sending transaction
|
|
1441
1713
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1442
1714
|
*/
|
|
1443
|
-
async
|
|
1715
|
+
async burn(amount: bigint, options?: {
|
|
1444
1716
|
accessList?: import('viem').AccessList;
|
|
1445
1717
|
authorizationList?: import('viem').AuthorizationList;
|
|
1446
1718
|
chain?: import('viem').Chain | null;
|
|
@@ -1452,14 +1724,14 @@ export class TetherUSDEdu_json {
|
|
|
1452
1724
|
nonce?: number;
|
|
1453
1725
|
value?: bigint;
|
|
1454
1726
|
}): Promise<void> {
|
|
1455
|
-
return contract.simulate.
|
|
1727
|
+
return contract.simulate.burn([amount] as const, options) as Promise<void>;
|
|
1456
1728
|
},
|
|
1457
1729
|
/**
|
|
1458
|
-
* Simulate
|
|
1730
|
+
* Simulate burnFrom
|
|
1459
1731
|
* Returns gas estimate and result without sending transaction
|
|
1460
1732
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1461
1733
|
*/
|
|
1462
|
-
async
|
|
1734
|
+
async burnFrom(from: `0x${string}`, amount: bigint, options?: {
|
|
1463
1735
|
accessList?: import('viem').AccessList;
|
|
1464
1736
|
authorizationList?: import('viem').AuthorizationList;
|
|
1465
1737
|
chain?: import('viem').Chain | null;
|
|
@@ -1471,14 +1743,71 @@ export class TetherUSDEdu_json {
|
|
|
1471
1743
|
nonce?: number;
|
|
1472
1744
|
value?: bigint;
|
|
1473
1745
|
}): Promise<void> {
|
|
1474
|
-
return contract.simulate.
|
|
1746
|
+
return contract.simulate.burnFrom([from, amount] as const, options) as Promise<void>;
|
|
1475
1747
|
},
|
|
1476
1748
|
/**
|
|
1477
|
-
* Simulate
|
|
1749
|
+
* Simulate distributeTokens
|
|
1478
1750
|
* Returns gas estimate and result without sending transaction
|
|
1479
1751
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1480
1752
|
*/
|
|
1481
|
-
async
|
|
1753
|
+
async distributeTokens(recipients: `0x${string}`[], value: bigint, options?: {
|
|
1754
|
+
accessList?: import('viem').AccessList;
|
|
1755
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1756
|
+
chain?: import('viem').Chain | null;
|
|
1757
|
+
dataSuffix?: `0x${string}`;
|
|
1758
|
+
gas?: bigint;
|
|
1759
|
+
gasPrice?: bigint;
|
|
1760
|
+
maxFeePerGas?: bigint;
|
|
1761
|
+
maxPriorityFeePerGas?: bigint;
|
|
1762
|
+
nonce?: number;
|
|
1763
|
+
value?: bigint;
|
|
1764
|
+
}): Promise<boolean> {
|
|
1765
|
+
return contract.simulate.distributeTokens([recipients, value] as const, options) as Promise<boolean>;
|
|
1766
|
+
},
|
|
1767
|
+
/**
|
|
1768
|
+
* Simulate mint
|
|
1769
|
+
* Returns gas estimate and result without sending transaction
|
|
1770
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1771
|
+
*/
|
|
1772
|
+
async mint(to: `0x${string}`, amount: bigint, options?: {
|
|
1773
|
+
accessList?: import('viem').AccessList;
|
|
1774
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1775
|
+
chain?: import('viem').Chain | null;
|
|
1776
|
+
dataSuffix?: `0x${string}`;
|
|
1777
|
+
gas?: bigint;
|
|
1778
|
+
gasPrice?: bigint;
|
|
1779
|
+
maxFeePerGas?: bigint;
|
|
1780
|
+
maxPriorityFeePerGas?: bigint;
|
|
1781
|
+
nonce?: number;
|
|
1782
|
+
value?: bigint;
|
|
1783
|
+
}): Promise<void> {
|
|
1784
|
+
return contract.simulate.mint([to, amount] as const, options) as Promise<void>;
|
|
1785
|
+
},
|
|
1786
|
+
/**
|
|
1787
|
+
* Simulate multiTransfer
|
|
1788
|
+
* Returns gas estimate and result without sending transaction
|
|
1789
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1790
|
+
*/
|
|
1791
|
+
async multiTransfer(recipients: `0x${string}`[], values: bigint[], options?: {
|
|
1792
|
+
accessList?: import('viem').AccessList;
|
|
1793
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1794
|
+
chain?: import('viem').Chain | null;
|
|
1795
|
+
dataSuffix?: `0x${string}`;
|
|
1796
|
+
gas?: bigint;
|
|
1797
|
+
gasPrice?: bigint;
|
|
1798
|
+
maxFeePerGas?: bigint;
|
|
1799
|
+
maxPriorityFeePerGas?: bigint;
|
|
1800
|
+
nonce?: number;
|
|
1801
|
+
value?: bigint;
|
|
1802
|
+
}): Promise<boolean> {
|
|
1803
|
+
return contract.simulate.multiTransfer([recipients, values] as const, options) as Promise<boolean>;
|
|
1804
|
+
},
|
|
1805
|
+
/**
|
|
1806
|
+
* Simulate pause
|
|
1807
|
+
* Returns gas estimate and result without sending transaction
|
|
1808
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1809
|
+
*/
|
|
1810
|
+
async pause(options?: {
|
|
1482
1811
|
accessList?: import('viem').AccessList;
|
|
1483
1812
|
authorizationList?: import('viem').AuthorizationList;
|
|
1484
1813
|
chain?: import('viem').Chain | null;
|
|
@@ -1490,14 +1819,14 @@ export class TetherUSDEdu_json {
|
|
|
1490
1819
|
nonce?: number;
|
|
1491
1820
|
value?: bigint;
|
|
1492
1821
|
}): Promise<void> {
|
|
1493
|
-
return contract.simulate.
|
|
1822
|
+
return contract.simulate.pause(options) as Promise<void>;
|
|
1494
1823
|
},
|
|
1495
1824
|
/**
|
|
1496
|
-
* Simulate
|
|
1825
|
+
* Simulate removeMinter
|
|
1497
1826
|
* Returns gas estimate and result without sending transaction
|
|
1498
1827
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1499
1828
|
*/
|
|
1500
|
-
async
|
|
1829
|
+
async removeMinter(account: `0x${string}`, options?: {
|
|
1501
1830
|
accessList?: import('viem').AccessList;
|
|
1502
1831
|
authorizationList?: import('viem').AuthorizationList;
|
|
1503
1832
|
chain?: import('viem').Chain | null;
|
|
@@ -1509,14 +1838,14 @@ export class TetherUSDEdu_json {
|
|
|
1509
1838
|
nonce?: number;
|
|
1510
1839
|
value?: bigint;
|
|
1511
1840
|
}): Promise<void> {
|
|
1512
|
-
return contract.simulate.
|
|
1841
|
+
return contract.simulate.removeMinter([account] as const, options) as Promise<void>;
|
|
1513
1842
|
},
|
|
1514
1843
|
/**
|
|
1515
|
-
* Simulate
|
|
1844
|
+
* Simulate removePauser
|
|
1516
1845
|
* Returns gas estimate and result without sending transaction
|
|
1517
1846
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1518
1847
|
*/
|
|
1519
|
-
async
|
|
1848
|
+
async removePauser(account: `0x${string}`, options?: {
|
|
1520
1849
|
accessList?: import('viem').AccessList;
|
|
1521
1850
|
authorizationList?: import('viem').AuthorizationList;
|
|
1522
1851
|
chain?: import('viem').Chain | null;
|
|
@@ -1528,14 +1857,14 @@ export class TetherUSDEdu_json {
|
|
|
1528
1857
|
nonce?: number;
|
|
1529
1858
|
value?: bigint;
|
|
1530
1859
|
}): Promise<void> {
|
|
1531
|
-
return contract.simulate.
|
|
1860
|
+
return contract.simulate.removePauser([account] as const, options) as Promise<void>;
|
|
1532
1861
|
},
|
|
1533
1862
|
/**
|
|
1534
|
-
* Simulate
|
|
1863
|
+
* Simulate rescueERC20
|
|
1535
1864
|
* Returns gas estimate and result without sending transaction
|
|
1536
1865
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1537
1866
|
*/
|
|
1538
|
-
async
|
|
1867
|
+
async rescueERC20(tokenAddress: `0x${string}`, amount: bigint, options?: {
|
|
1539
1868
|
accessList?: import('viem').AccessList;
|
|
1540
1869
|
authorizationList?: import('viem').AuthorizationList;
|
|
1541
1870
|
chain?: import('viem').Chain | null;
|
|
@@ -1547,14 +1876,14 @@ export class TetherUSDEdu_json {
|
|
|
1547
1876
|
nonce?: number;
|
|
1548
1877
|
value?: bigint;
|
|
1549
1878
|
}): Promise<void> {
|
|
1550
|
-
return contract.simulate.
|
|
1879
|
+
return contract.simulate.rescueERC20([tokenAddress, amount] as const, options) as Promise<void>;
|
|
1551
1880
|
},
|
|
1552
1881
|
/**
|
|
1553
|
-
* Simulate
|
|
1882
|
+
* Simulate setFeeCollector
|
|
1554
1883
|
* Returns gas estimate and result without sending transaction
|
|
1555
1884
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1556
1885
|
*/
|
|
1557
|
-
async
|
|
1886
|
+
async setFeeCollector(newCollector: `0x${string}`, options?: {
|
|
1558
1887
|
accessList?: import('viem').AccessList;
|
|
1559
1888
|
authorizationList?: import('viem').AuthorizationList;
|
|
1560
1889
|
chain?: import('viem').Chain | null;
|
|
@@ -1566,14 +1895,14 @@ export class TetherUSDEdu_json {
|
|
|
1566
1895
|
nonce?: number;
|
|
1567
1896
|
value?: bigint;
|
|
1568
1897
|
}): Promise<void> {
|
|
1569
|
-
return contract.simulate.
|
|
1898
|
+
return contract.simulate.setFeeCollector([newCollector] as const, options) as Promise<void>;
|
|
1570
1899
|
},
|
|
1571
1900
|
/**
|
|
1572
|
-
* Simulate
|
|
1901
|
+
* Simulate setMaxTransferAmount
|
|
1573
1902
|
* Returns gas estimate and result without sending transaction
|
|
1574
1903
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1575
1904
|
*/
|
|
1576
|
-
async
|
|
1905
|
+
async setMaxTransferAmount(newMax: bigint, options?: {
|
|
1577
1906
|
accessList?: import('viem').AccessList;
|
|
1578
1907
|
authorizationList?: import('viem').AuthorizationList;
|
|
1579
1908
|
chain?: import('viem').Chain | null;
|
|
@@ -1585,14 +1914,14 @@ export class TetherUSDEdu_json {
|
|
|
1585
1914
|
nonce?: number;
|
|
1586
1915
|
value?: bigint;
|
|
1587
1916
|
}): Promise<void> {
|
|
1588
|
-
return contract.simulate.
|
|
1917
|
+
return contract.simulate.setMaxTransferAmount([newMax] as const, options) as Promise<void>;
|
|
1589
1918
|
},
|
|
1590
1919
|
/**
|
|
1591
|
-
* Simulate
|
|
1920
|
+
* Simulate setTransferFee
|
|
1592
1921
|
* Returns gas estimate and result without sending transaction
|
|
1593
1922
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1594
1923
|
*/
|
|
1595
|
-
async
|
|
1924
|
+
async setTransferFee(newFee: bigint, options?: {
|
|
1596
1925
|
accessList?: import('viem').AccessList;
|
|
1597
1926
|
authorizationList?: import('viem').AuthorizationList;
|
|
1598
1927
|
chain?: import('viem').Chain | null;
|
|
@@ -1604,7 +1933,7 @@ export class TetherUSDEdu_json {
|
|
|
1604
1933
|
nonce?: number;
|
|
1605
1934
|
value?: bigint;
|
|
1606
1935
|
}): Promise<void> {
|
|
1607
|
-
return contract.simulate.
|
|
1936
|
+
return contract.simulate.setTransferFee([newFee] as const, options) as Promise<void>;
|
|
1608
1937
|
},
|
|
1609
1938
|
/**
|
|
1610
1939
|
* Simulate transfer
|
|
@@ -1662,6 +1991,25 @@ export class TetherUSDEdu_json {
|
|
|
1662
1991
|
value?: bigint;
|
|
1663
1992
|
}): Promise<void> {
|
|
1664
1993
|
return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
|
|
1994
|
+
},
|
|
1995
|
+
/**
|
|
1996
|
+
* Simulate unpause
|
|
1997
|
+
* Returns gas estimate and result without sending transaction
|
|
1998
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1999
|
+
*/
|
|
2000
|
+
async unpause(options?: {
|
|
2001
|
+
accessList?: import('viem').AccessList;
|
|
2002
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2003
|
+
chain?: import('viem').Chain | null;
|
|
2004
|
+
dataSuffix?: `0x${string}`;
|
|
2005
|
+
gas?: bigint;
|
|
2006
|
+
gasPrice?: bigint;
|
|
2007
|
+
maxFeePerGas?: bigint;
|
|
2008
|
+
maxPriorityFeePerGas?: bigint;
|
|
2009
|
+
nonce?: number;
|
|
2010
|
+
value?: bigint;
|
|
2011
|
+
}): Promise<void> {
|
|
2012
|
+
return contract.simulate.unpause(options) as Promise<void>;
|
|
1665
2013
|
}
|
|
1666
2014
|
};
|
|
1667
2015
|
}
|
|
@@ -1689,7 +2037,7 @@ export class TetherUSDEdu_json {
|
|
|
1689
2037
|
Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
|
|
1690
2038
|
return this.publicClient.watchContractEvent({
|
|
1691
2039
|
address: this.contractAddress,
|
|
1692
|
-
abi:
|
|
2040
|
+
abi: TetherUSD_jsonAbi,
|
|
1693
2041
|
eventName: 'Approval',
|
|
1694
2042
|
args: filter,
|
|
1695
2043
|
onLogs: (logs: any[]) => {
|
|
@@ -1700,17 +2048,55 @@ export class TetherUSDEdu_json {
|
|
|
1700
2048
|
}) as () => void;
|
|
1701
2049
|
},
|
|
1702
2050
|
/**
|
|
1703
|
-
* Watch
|
|
2051
|
+
* Watch Blacklisted events
|
|
1704
2052
|
* @param callback Function to call when event is emitted
|
|
1705
2053
|
* @param filter Optional filter for indexed parameters
|
|
1706
2054
|
* @returns Unwatch function to stop listening
|
|
1707
2055
|
*/
|
|
1708
|
-
|
|
2056
|
+
Blacklisted: (callback: (event: { account: `0x${string}`; status: boolean }) => void, filter?: { account: `0x${string}` }) => {
|
|
1709
2057
|
return this.publicClient.watchContractEvent({
|
|
1710
2058
|
address: this.contractAddress,
|
|
1711
|
-
abi:
|
|
1712
|
-
eventName: '
|
|
1713
|
-
|
|
2059
|
+
abi: TetherUSD_jsonAbi,
|
|
2060
|
+
eventName: 'Blacklisted',
|
|
2061
|
+
args: filter,
|
|
2062
|
+
onLogs: (logs: any[]) => {
|
|
2063
|
+
logs.forEach((log: any) => {
|
|
2064
|
+
callback(log.args as any);
|
|
2065
|
+
});
|
|
2066
|
+
},
|
|
2067
|
+
}) as () => void;
|
|
2068
|
+
},
|
|
2069
|
+
/**
|
|
2070
|
+
* Watch Burned events
|
|
2071
|
+
* @param callback Function to call when event is emitted
|
|
2072
|
+
* @param filter Optional filter for indexed parameters
|
|
2073
|
+
* @returns Unwatch function to stop listening
|
|
2074
|
+
*/
|
|
2075
|
+
Burned: (callback: (event: { from: `0x${string}`; amount: bigint }) => void, filter?: { from: `0x${string}` }) => {
|
|
2076
|
+
return this.publicClient.watchContractEvent({
|
|
2077
|
+
address: this.contractAddress,
|
|
2078
|
+
abi: TetherUSD_jsonAbi,
|
|
2079
|
+
eventName: 'Burned',
|
|
2080
|
+
args: filter,
|
|
2081
|
+
onLogs: (logs: any[]) => {
|
|
2082
|
+
logs.forEach((log: any) => {
|
|
2083
|
+
callback(log.args as any);
|
|
2084
|
+
});
|
|
2085
|
+
},
|
|
2086
|
+
}) as () => void;
|
|
2087
|
+
},
|
|
2088
|
+
/**
|
|
2089
|
+
* Watch FeeCollectorUpdated events
|
|
2090
|
+
* @param callback Function to call when event is emitted
|
|
2091
|
+
* @param filter Optional filter for indexed parameters
|
|
2092
|
+
* @returns Unwatch function to stop listening
|
|
2093
|
+
*/
|
|
2094
|
+
FeeCollectorUpdated: (callback: (event: { oldCollector: `0x${string}`; newCollector: `0x${string}` }) => void, filter?: { oldCollector: `0x${string}`; newCollector: `0x${string}` }) => {
|
|
2095
|
+
return this.publicClient.watchContractEvent({
|
|
2096
|
+
address: this.contractAddress,
|
|
2097
|
+
abi: TetherUSD_jsonAbi,
|
|
2098
|
+
eventName: 'FeeCollectorUpdated',
|
|
2099
|
+
args: filter,
|
|
1714
2100
|
onLogs: (logs: any[]) => {
|
|
1715
2101
|
logs.forEach((log: any) => {
|
|
1716
2102
|
callback(log.args as any);
|
|
@@ -1719,16 +2105,16 @@ export class TetherUSDEdu_json {
|
|
|
1719
2105
|
}) as () => void;
|
|
1720
2106
|
},
|
|
1721
2107
|
/**
|
|
1722
|
-
* Watch
|
|
2108
|
+
* Watch FeeUpdated events
|
|
1723
2109
|
* @param callback Function to call when event is emitted
|
|
1724
2110
|
* @param filter Optional filter for indexed parameters
|
|
1725
2111
|
* @returns Unwatch function to stop listening
|
|
1726
2112
|
*/
|
|
1727
|
-
|
|
2113
|
+
FeeUpdated: (callback: (event: { oldFee: bigint; newFee: bigint }) => void) => {
|
|
1728
2114
|
return this.publicClient.watchContractEvent({
|
|
1729
2115
|
address: this.contractAddress,
|
|
1730
|
-
abi:
|
|
1731
|
-
eventName: '
|
|
2116
|
+
abi: TetherUSD_jsonAbi,
|
|
2117
|
+
eventName: 'FeeUpdated',
|
|
1732
2118
|
|
|
1733
2119
|
onLogs: (logs: any[]) => {
|
|
1734
2120
|
logs.forEach((log: any) => {
|
|
@@ -1738,16 +2124,16 @@ export class TetherUSDEdu_json {
|
|
|
1738
2124
|
}) as () => void;
|
|
1739
2125
|
},
|
|
1740
2126
|
/**
|
|
1741
|
-
* Watch
|
|
2127
|
+
* Watch MaxTransferUpdated events
|
|
1742
2128
|
* @param callback Function to call when event is emitted
|
|
1743
2129
|
* @param filter Optional filter for indexed parameters
|
|
1744
2130
|
* @returns Unwatch function to stop listening
|
|
1745
2131
|
*/
|
|
1746
|
-
|
|
2132
|
+
MaxTransferUpdated: (callback: (event: { oldMax: bigint; newMax: bigint }) => void) => {
|
|
1747
2133
|
return this.publicClient.watchContractEvent({
|
|
1748
2134
|
address: this.contractAddress,
|
|
1749
|
-
abi:
|
|
1750
|
-
eventName: '
|
|
2135
|
+
abi: TetherUSD_jsonAbi,
|
|
2136
|
+
eventName: 'MaxTransferUpdated',
|
|
1751
2137
|
|
|
1752
2138
|
onLogs: (logs: any[]) => {
|
|
1753
2139
|
logs.forEach((log: any) => {
|
|
@@ -1756,6 +2142,25 @@ export class TetherUSDEdu_json {
|
|
|
1756
2142
|
},
|
|
1757
2143
|
}) as () => void;
|
|
1758
2144
|
},
|
|
2145
|
+
/**
|
|
2146
|
+
* Watch Minted events
|
|
2147
|
+
* @param callback Function to call when event is emitted
|
|
2148
|
+
* @param filter Optional filter for indexed parameters
|
|
2149
|
+
* @returns Unwatch function to stop listening
|
|
2150
|
+
*/
|
|
2151
|
+
Minted: (callback: (event: { to: `0x${string}`; amount: bigint }) => void, filter?: { to: `0x${string}` }) => {
|
|
2152
|
+
return this.publicClient.watchContractEvent({
|
|
2153
|
+
address: this.contractAddress,
|
|
2154
|
+
abi: TetherUSD_jsonAbi,
|
|
2155
|
+
eventName: 'Minted',
|
|
2156
|
+
args: filter,
|
|
2157
|
+
onLogs: (logs: any[]) => {
|
|
2158
|
+
logs.forEach((log: any) => {
|
|
2159
|
+
callback(log.args as any);
|
|
2160
|
+
});
|
|
2161
|
+
},
|
|
2162
|
+
}) as () => void;
|
|
2163
|
+
},
|
|
1759
2164
|
/**
|
|
1760
2165
|
* Watch OwnershipTransferred events
|
|
1761
2166
|
* @param callback Function to call when event is emitted
|
|
@@ -1765,7 +2170,7 @@ export class TetherUSDEdu_json {
|
|
|
1765
2170
|
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
|
|
1766
2171
|
return this.publicClient.watchContractEvent({
|
|
1767
2172
|
address: this.contractAddress,
|
|
1768
|
-
abi:
|
|
2173
|
+
abi: TetherUSD_jsonAbi,
|
|
1769
2174
|
eventName: 'OwnershipTransferred',
|
|
1770
2175
|
args: filter,
|
|
1771
2176
|
onLogs: (logs: any[]) => {
|
|
@@ -1775,6 +2180,25 @@ export class TetherUSDEdu_json {
|
|
|
1775
2180
|
},
|
|
1776
2181
|
}) as () => void;
|
|
1777
2182
|
},
|
|
2183
|
+
/**
|
|
2184
|
+
* Watch Paused events
|
|
2185
|
+
* @param callback Function to call when event is emitted
|
|
2186
|
+
* @param filter Optional filter for indexed parameters
|
|
2187
|
+
* @returns Unwatch function to stop listening
|
|
2188
|
+
*/
|
|
2189
|
+
Paused: (callback: (event: { by: `0x${string}` }) => void, filter?: { by: `0x${string}` }) => {
|
|
2190
|
+
return this.publicClient.watchContractEvent({
|
|
2191
|
+
address: this.contractAddress,
|
|
2192
|
+
abi: TetherUSD_jsonAbi,
|
|
2193
|
+
eventName: 'Paused',
|
|
2194
|
+
args: filter,
|
|
2195
|
+
onLogs: (logs: any[]) => {
|
|
2196
|
+
logs.forEach((log: any) => {
|
|
2197
|
+
callback(log.args as any);
|
|
2198
|
+
});
|
|
2199
|
+
},
|
|
2200
|
+
}) as () => void;
|
|
2201
|
+
},
|
|
1778
2202
|
/**
|
|
1779
2203
|
* Watch Transfer events
|
|
1780
2204
|
* @param callback Function to call when event is emitted
|
|
@@ -1784,7 +2208,7 @@ export class TetherUSDEdu_json {
|
|
|
1784
2208
|
Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
|
|
1785
2209
|
return this.publicClient.watchContractEvent({
|
|
1786
2210
|
address: this.contractAddress,
|
|
1787
|
-
abi:
|
|
2211
|
+
abi: TetherUSD_jsonAbi,
|
|
1788
2212
|
eventName: 'Transfer',
|
|
1789
2213
|
args: filter,
|
|
1790
2214
|
onLogs: (logs: any[]) => {
|
|
@@ -1795,17 +2219,17 @@ export class TetherUSDEdu_json {
|
|
|
1795
2219
|
}) as () => void;
|
|
1796
2220
|
},
|
|
1797
2221
|
/**
|
|
1798
|
-
* Watch
|
|
2222
|
+
* Watch Unpaused events
|
|
1799
2223
|
* @param callback Function to call when event is emitted
|
|
1800
2224
|
* @param filter Optional filter for indexed parameters
|
|
1801
2225
|
* @returns Unwatch function to stop listening
|
|
1802
2226
|
*/
|
|
1803
|
-
|
|
2227
|
+
Unpaused: (callback: (event: { by: `0x${string}` }) => void, filter?: { by: `0x${string}` }) => {
|
|
1804
2228
|
return this.publicClient.watchContractEvent({
|
|
1805
2229
|
address: this.contractAddress,
|
|
1806
|
-
abi:
|
|
1807
|
-
eventName: '
|
|
1808
|
-
|
|
2230
|
+
abi: TetherUSD_jsonAbi,
|
|
2231
|
+
eventName: 'Unpaused',
|
|
2232
|
+
args: filter,
|
|
1809
2233
|
onLogs: (logs: any[]) => {
|
|
1810
2234
|
logs.forEach((log: any) => {
|
|
1811
2235
|
callback(log.args as any);
|