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