@gitmyabi/usdt 1.0.16 → 1.0.17
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/{UERC20_json.d.ts → USDTToken_json.d.ts} +92 -181
- package/contracts/{UERC20_json.js → USDTToken_json.js} +84 -226
- package/contracts/{UERC20_json.ts → USDTToken_json.ts} +113 -236
- 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,58 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.USDTToken_json = exports.USDTToken_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* USDTToken_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.USDTToken_jsonAbi = [
|
|
11
11
|
{
|
|
12
12
|
"inputs": [],
|
|
13
13
|
"stateMutability": "nonpayable",
|
|
14
14
|
"type": "constructor"
|
|
15
15
|
},
|
|
16
|
-
{
|
|
17
|
-
"inputs": [],
|
|
18
|
-
"name": "AllowanceOverflow",
|
|
19
|
-
"type": "error"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"inputs": [],
|
|
23
|
-
"name": "AllowanceUnderflow",
|
|
24
|
-
"type": "error"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"inputs": [],
|
|
28
|
-
"name": "InsufficientAllowance",
|
|
29
|
-
"type": "error"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"inputs": [],
|
|
33
|
-
"name": "InsufficientBalance",
|
|
34
|
-
"type": "error"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"inputs": [],
|
|
38
|
-
"name": "InvalidPermit",
|
|
39
|
-
"type": "error"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"inputs": [],
|
|
43
|
-
"name": "Permit2AllowanceIsFixedAtInfinity",
|
|
44
|
-
"type": "error"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"inputs": [],
|
|
48
|
-
"name": "PermitExpired",
|
|
49
|
-
"type": "error"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"inputs": [],
|
|
53
|
-
"name": "TotalSupplyOverflow",
|
|
54
|
-
"type": "error"
|
|
55
|
-
},
|
|
56
16
|
{
|
|
57
17
|
"anonymous": false,
|
|
58
18
|
"inputs": [
|
|
@@ -71,7 +31,7 @@ exports.UERC20_jsonAbi = [
|
|
|
71
31
|
{
|
|
72
32
|
"indexed": false,
|
|
73
33
|
"internalType": "uint256",
|
|
74
|
-
"name": "
|
|
34
|
+
"name": "value",
|
|
75
35
|
"type": "uint256"
|
|
76
36
|
}
|
|
77
37
|
],
|
|
@@ -96,7 +56,7 @@ exports.UERC20_jsonAbi = [
|
|
|
96
56
|
{
|
|
97
57
|
"indexed": false,
|
|
98
58
|
"internalType": "uint256",
|
|
99
|
-
"name": "
|
|
59
|
+
"name": "value",
|
|
100
60
|
"type": "uint256"
|
|
101
61
|
}
|
|
102
62
|
],
|
|
@@ -105,12 +65,12 @@ exports.UERC20_jsonAbi = [
|
|
|
105
65
|
},
|
|
106
66
|
{
|
|
107
67
|
"inputs": [],
|
|
108
|
-
"name": "
|
|
68
|
+
"name": "WITHDRAW_ADDRESS",
|
|
109
69
|
"outputs": [
|
|
110
70
|
{
|
|
111
|
-
"internalType": "
|
|
112
|
-
"name": "
|
|
113
|
-
"type": "
|
|
71
|
+
"internalType": "address",
|
|
72
|
+
"name": "",
|
|
73
|
+
"type": "address"
|
|
114
74
|
}
|
|
115
75
|
],
|
|
116
76
|
"stateMutability": "view",
|
|
@@ -120,12 +80,12 @@ exports.UERC20_jsonAbi = [
|
|
|
120
80
|
"inputs": [
|
|
121
81
|
{
|
|
122
82
|
"internalType": "address",
|
|
123
|
-
"name": "
|
|
83
|
+
"name": "",
|
|
124
84
|
"type": "address"
|
|
125
85
|
},
|
|
126
86
|
{
|
|
127
87
|
"internalType": "address",
|
|
128
|
-
"name": "
|
|
88
|
+
"name": "",
|
|
129
89
|
"type": "address"
|
|
130
90
|
}
|
|
131
91
|
],
|
|
@@ -133,7 +93,7 @@ exports.UERC20_jsonAbi = [
|
|
|
133
93
|
"outputs": [
|
|
134
94
|
{
|
|
135
95
|
"internalType": "uint256",
|
|
136
|
-
"name": "
|
|
96
|
+
"name": "",
|
|
137
97
|
"type": "uint256"
|
|
138
98
|
}
|
|
139
99
|
],
|
|
@@ -168,7 +128,7 @@ exports.UERC20_jsonAbi = [
|
|
|
168
128
|
"inputs": [
|
|
169
129
|
{
|
|
170
130
|
"internalType": "address",
|
|
171
|
-
"name": "
|
|
131
|
+
"name": "",
|
|
172
132
|
"type": "address"
|
|
173
133
|
}
|
|
174
134
|
],
|
|
@@ -176,21 +136,8 @@ exports.UERC20_jsonAbi = [
|
|
|
176
136
|
"outputs": [
|
|
177
137
|
{
|
|
178
138
|
"internalType": "uint256",
|
|
179
|
-
"name": "result",
|
|
180
|
-
"type": "uint256"
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
"stateMutability": "view",
|
|
184
|
-
"type": "function"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"inputs": [],
|
|
188
|
-
"name": "creator",
|
|
189
|
-
"outputs": [
|
|
190
|
-
{
|
|
191
|
-
"internalType": "address",
|
|
192
139
|
"name": "",
|
|
193
|
-
"type": "
|
|
140
|
+
"type": "uint256"
|
|
194
141
|
}
|
|
195
142
|
],
|
|
196
143
|
"stateMutability": "view",
|
|
@@ -211,12 +158,12 @@ exports.UERC20_jsonAbi = [
|
|
|
211
158
|
},
|
|
212
159
|
{
|
|
213
160
|
"inputs": [],
|
|
214
|
-
"name": "
|
|
161
|
+
"name": "getETHBalance",
|
|
215
162
|
"outputs": [
|
|
216
163
|
{
|
|
217
|
-
"internalType": "
|
|
164
|
+
"internalType": "uint256",
|
|
218
165
|
"name": "",
|
|
219
|
-
"type": "
|
|
166
|
+
"type": "uint256"
|
|
220
167
|
}
|
|
221
168
|
],
|
|
222
169
|
"stateMutability": "view",
|
|
@@ -224,30 +171,15 @@ exports.UERC20_jsonAbi = [
|
|
|
224
171
|
},
|
|
225
172
|
{
|
|
226
173
|
"inputs": [],
|
|
227
|
-
"name": "
|
|
174
|
+
"name": "getWithdrawalAddress",
|
|
228
175
|
"outputs": [
|
|
229
176
|
{
|
|
230
|
-
"internalType": "
|
|
231
|
-
"name": "
|
|
232
|
-
"type": "
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"internalType": "string",
|
|
236
|
-
"name": "website",
|
|
237
|
-
"type": "string"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
"internalType": "string",
|
|
241
|
-
"name": "image",
|
|
242
|
-
"type": "string"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"internalType": "bytes",
|
|
246
|
-
"name": "extraData",
|
|
247
|
-
"type": "bytes"
|
|
177
|
+
"internalType": "address",
|
|
178
|
+
"name": "",
|
|
179
|
+
"type": "address"
|
|
248
180
|
}
|
|
249
181
|
],
|
|
250
|
-
"stateMutability": "
|
|
182
|
+
"stateMutability": "pure",
|
|
251
183
|
"type": "function"
|
|
252
184
|
},
|
|
253
185
|
{
|
|
@@ -267,83 +199,20 @@ exports.UERC20_jsonAbi = [
|
|
|
267
199
|
"inputs": [
|
|
268
200
|
{
|
|
269
201
|
"internalType": "address",
|
|
270
|
-
"name": "
|
|
271
|
-
"type": "address"
|
|
272
|
-
}
|
|
273
|
-
],
|
|
274
|
-
"name": "nonces",
|
|
275
|
-
"outputs": [
|
|
276
|
-
{
|
|
277
|
-
"internalType": "uint256",
|
|
278
|
-
"name": "result",
|
|
279
|
-
"type": "uint256"
|
|
280
|
-
}
|
|
281
|
-
],
|
|
282
|
-
"stateMutability": "view",
|
|
283
|
-
"type": "function"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"inputs": [
|
|
287
|
-
{
|
|
288
|
-
"internalType": "address",
|
|
289
|
-
"name": "owner",
|
|
290
|
-
"type": "address"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"internalType": "address",
|
|
294
|
-
"name": "spender",
|
|
202
|
+
"name": "token",
|
|
295
203
|
"type": "address"
|
|
296
204
|
},
|
|
297
205
|
{
|
|
298
206
|
"internalType": "uint256",
|
|
299
|
-
"name": "
|
|
300
|
-
"type": "uint256"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"internalType": "uint256",
|
|
304
|
-
"name": "deadline",
|
|
207
|
+
"name": "amount",
|
|
305
208
|
"type": "uint256"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"internalType": "uint8",
|
|
309
|
-
"name": "v",
|
|
310
|
-
"type": "uint8"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
"internalType": "bytes32",
|
|
314
|
-
"name": "r",
|
|
315
|
-
"type": "bytes32"
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
"internalType": "bytes32",
|
|
319
|
-
"name": "s",
|
|
320
|
-
"type": "bytes32"
|
|
321
209
|
}
|
|
322
210
|
],
|
|
323
|
-
"name": "
|
|
211
|
+
"name": "recoverToken",
|
|
324
212
|
"outputs": [],
|
|
325
213
|
"stateMutability": "nonpayable",
|
|
326
214
|
"type": "function"
|
|
327
215
|
},
|
|
328
|
-
{
|
|
329
|
-
"inputs": [
|
|
330
|
-
{
|
|
331
|
-
"internalType": "bytes4",
|
|
332
|
-
"name": "_interfaceId",
|
|
333
|
-
"type": "bytes4"
|
|
334
|
-
}
|
|
335
|
-
],
|
|
336
|
-
"name": "supportsInterface",
|
|
337
|
-
"outputs": [
|
|
338
|
-
{
|
|
339
|
-
"internalType": "bool",
|
|
340
|
-
"name": "",
|
|
341
|
-
"type": "bool"
|
|
342
|
-
}
|
|
343
|
-
],
|
|
344
|
-
"stateMutability": "view",
|
|
345
|
-
"type": "function"
|
|
346
|
-
},
|
|
347
216
|
{
|
|
348
217
|
"inputs": [],
|
|
349
218
|
"name": "symbol",
|
|
@@ -357,26 +226,13 @@ exports.UERC20_jsonAbi = [
|
|
|
357
226
|
"stateMutability": "view",
|
|
358
227
|
"type": "function"
|
|
359
228
|
},
|
|
360
|
-
{
|
|
361
|
-
"inputs": [],
|
|
362
|
-
"name": "tokenURI",
|
|
363
|
-
"outputs": [
|
|
364
|
-
{
|
|
365
|
-
"internalType": "string",
|
|
366
|
-
"name": "",
|
|
367
|
-
"type": "string"
|
|
368
|
-
}
|
|
369
|
-
],
|
|
370
|
-
"stateMutability": "view",
|
|
371
|
-
"type": "function"
|
|
372
|
-
},
|
|
373
229
|
{
|
|
374
230
|
"inputs": [],
|
|
375
231
|
"name": "totalSupply",
|
|
376
232
|
"outputs": [
|
|
377
233
|
{
|
|
378
234
|
"internalType": "uint256",
|
|
379
|
-
"name": "
|
|
235
|
+
"name": "",
|
|
380
236
|
"type": "uint256"
|
|
381
237
|
}
|
|
382
238
|
],
|
|
@@ -435,10 +291,21 @@ exports.UERC20_jsonAbi = [
|
|
|
435
291
|
],
|
|
436
292
|
"stateMutability": "nonpayable",
|
|
437
293
|
"type": "function"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"inputs": [],
|
|
297
|
+
"name": "withdrawETH",
|
|
298
|
+
"outputs": [],
|
|
299
|
+
"stateMutability": "nonpayable",
|
|
300
|
+
"type": "function"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"stateMutability": "payable",
|
|
304
|
+
"type": "receive"
|
|
438
305
|
}
|
|
439
306
|
];
|
|
440
307
|
/**
|
|
441
|
-
*
|
|
308
|
+
* USDTToken_json Contract Class
|
|
442
309
|
*
|
|
443
310
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
444
311
|
*
|
|
@@ -446,12 +313,12 @@ exports.UERC20_jsonAbi = [
|
|
|
446
313
|
* ```typescript
|
|
447
314
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
448
315
|
* import { mainnet } from 'viem/chains';
|
|
449
|
-
* import {
|
|
316
|
+
* import { USDTToken_json } from 'USDTToken_json';
|
|
450
317
|
*
|
|
451
318
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
452
319
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
453
320
|
*
|
|
454
|
-
* const contract = new
|
|
321
|
+
* const contract = new USDTToken_json('0x...', { publicClient, walletClient });
|
|
455
322
|
*
|
|
456
323
|
* // Read functions
|
|
457
324
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -469,13 +336,13 @@ exports.UERC20_jsonAbi = [
|
|
|
469
336
|
* });
|
|
470
337
|
* ```
|
|
471
338
|
*/
|
|
472
|
-
class
|
|
339
|
+
class USDTToken_json {
|
|
473
340
|
constructor(address, clients) {
|
|
474
341
|
this.contractAddress = address;
|
|
475
342
|
this.publicClient = clients.publicClient;
|
|
476
343
|
this.contract = (0, viem_1.getContract)({
|
|
477
344
|
address,
|
|
478
|
-
abi: exports.
|
|
345
|
+
abi: exports.USDTToken_jsonAbi,
|
|
479
346
|
client: {
|
|
480
347
|
public: clients.publicClient,
|
|
481
348
|
wallet: clients.walletClient,
|
|
@@ -495,32 +362,25 @@ class UERC20_json {
|
|
|
495
362
|
return this.contract;
|
|
496
363
|
}
|
|
497
364
|
/**
|
|
498
|
-
*
|
|
365
|
+
* WITHDRAW_ADDRESS
|
|
499
366
|
* view
|
|
500
367
|
*/
|
|
501
|
-
async
|
|
502
|
-
return this.contract.read.
|
|
368
|
+
async WITHDRAW_ADDRESS() {
|
|
369
|
+
return this.contract.read.WITHDRAW_ADDRESS();
|
|
503
370
|
}
|
|
504
371
|
/**
|
|
505
372
|
* allowance
|
|
506
373
|
* view
|
|
507
374
|
*/
|
|
508
|
-
async allowance(
|
|
509
|
-
return this.contract.read.allowance([
|
|
375
|
+
async allowance(arg0, arg1) {
|
|
376
|
+
return this.contract.read.allowance([arg0, arg1]);
|
|
510
377
|
}
|
|
511
378
|
/**
|
|
512
379
|
* balanceOf
|
|
513
380
|
* view
|
|
514
381
|
*/
|
|
515
|
-
async balanceOf(
|
|
516
|
-
return this.contract.read.balanceOf([
|
|
517
|
-
}
|
|
518
|
-
/**
|
|
519
|
-
* creator
|
|
520
|
-
* view
|
|
521
|
-
*/
|
|
522
|
-
async creator() {
|
|
523
|
-
return this.contract.read.creator();
|
|
382
|
+
async balanceOf(arg0) {
|
|
383
|
+
return this.contract.read.balanceOf([arg0]);
|
|
524
384
|
}
|
|
525
385
|
/**
|
|
526
386
|
* decimals
|
|
@@ -530,18 +390,18 @@ class UERC20_json {
|
|
|
530
390
|
return this.contract.read.decimals();
|
|
531
391
|
}
|
|
532
392
|
/**
|
|
533
|
-
*
|
|
393
|
+
* getETHBalance
|
|
534
394
|
* view
|
|
535
395
|
*/
|
|
536
|
-
async
|
|
537
|
-
return this.contract.read.
|
|
396
|
+
async getETHBalance() {
|
|
397
|
+
return this.contract.read.getETHBalance();
|
|
538
398
|
}
|
|
539
399
|
/**
|
|
540
|
-
*
|
|
541
|
-
*
|
|
400
|
+
* getWithdrawalAddress
|
|
401
|
+
* pure
|
|
542
402
|
*/
|
|
543
|
-
async
|
|
544
|
-
return this.contract.read.
|
|
403
|
+
async getWithdrawalAddress() {
|
|
404
|
+
return this.contract.read.getWithdrawalAddress();
|
|
545
405
|
}
|
|
546
406
|
/**
|
|
547
407
|
* name
|
|
@@ -550,20 +410,6 @@ class UERC20_json {
|
|
|
550
410
|
async name() {
|
|
551
411
|
return this.contract.read.name();
|
|
552
412
|
}
|
|
553
|
-
/**
|
|
554
|
-
* nonces
|
|
555
|
-
* view
|
|
556
|
-
*/
|
|
557
|
-
async nonces(owner) {
|
|
558
|
-
return this.contract.read.nonces([owner]);
|
|
559
|
-
}
|
|
560
|
-
/**
|
|
561
|
-
* supportsInterface
|
|
562
|
-
* view
|
|
563
|
-
*/
|
|
564
|
-
async supportsInterface(_interfaceId) {
|
|
565
|
-
return this.contract.read.supportsInterface([_interfaceId]);
|
|
566
|
-
}
|
|
567
413
|
/**
|
|
568
414
|
* symbol
|
|
569
415
|
* view
|
|
@@ -571,13 +417,6 @@ class UERC20_json {
|
|
|
571
417
|
async symbol() {
|
|
572
418
|
return this.contract.read.symbol();
|
|
573
419
|
}
|
|
574
|
-
/**
|
|
575
|
-
* tokenURI
|
|
576
|
-
* view
|
|
577
|
-
*/
|
|
578
|
-
async tokenURI() {
|
|
579
|
-
return this.contract.read.tokenURI();
|
|
580
|
-
}
|
|
581
420
|
/**
|
|
582
421
|
* totalSupply
|
|
583
422
|
* view
|
|
@@ -597,15 +436,15 @@ class UERC20_json {
|
|
|
597
436
|
return this.contract.write.approve([spender, amount], options);
|
|
598
437
|
}
|
|
599
438
|
/**
|
|
600
|
-
*
|
|
439
|
+
* recoverToken
|
|
601
440
|
* nonpayable
|
|
602
441
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
603
442
|
*/
|
|
604
|
-
async
|
|
443
|
+
async recoverToken(token, amount, options) {
|
|
605
444
|
if (!this.contract.write) {
|
|
606
445
|
throw new Error('Wallet client is required for write operations');
|
|
607
446
|
}
|
|
608
|
-
return this.contract.write.
|
|
447
|
+
return this.contract.write.recoverToken([token, amount], options);
|
|
609
448
|
}
|
|
610
449
|
/**
|
|
611
450
|
* transfer
|
|
@@ -629,6 +468,17 @@ class UERC20_json {
|
|
|
629
468
|
}
|
|
630
469
|
return this.contract.write.transferFrom([from, to, amount], options);
|
|
631
470
|
}
|
|
471
|
+
/**
|
|
472
|
+
* withdrawETH
|
|
473
|
+
* nonpayable
|
|
474
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
475
|
+
*/
|
|
476
|
+
async withdrawETH(options) {
|
|
477
|
+
if (!this.contract.write) {
|
|
478
|
+
throw new Error('Wallet client is required for write operations');
|
|
479
|
+
}
|
|
480
|
+
return this.contract.write.withdrawETH(options);
|
|
481
|
+
}
|
|
632
482
|
/**
|
|
633
483
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
634
484
|
*
|
|
@@ -652,12 +502,12 @@ class UERC20_json {
|
|
|
652
502
|
return contract.simulate.approve([spender, amount], options);
|
|
653
503
|
},
|
|
654
504
|
/**
|
|
655
|
-
* Simulate
|
|
505
|
+
* Simulate recoverToken
|
|
656
506
|
* Returns gas estimate and result without sending transaction
|
|
657
507
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
658
508
|
*/
|
|
659
|
-
async
|
|
660
|
-
return contract.simulate.
|
|
509
|
+
async recoverToken(token, amount, options) {
|
|
510
|
+
return contract.simulate.recoverToken([token, amount], options);
|
|
661
511
|
},
|
|
662
512
|
/**
|
|
663
513
|
* Simulate transfer
|
|
@@ -674,6 +524,14 @@ class UERC20_json {
|
|
|
674
524
|
*/
|
|
675
525
|
async transferFrom(from, to, amount, options) {
|
|
676
526
|
return contract.simulate.transferFrom([from, to, amount], options);
|
|
527
|
+
},
|
|
528
|
+
/**
|
|
529
|
+
* Simulate withdrawETH
|
|
530
|
+
* Returns gas estimate and result without sending transaction
|
|
531
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
532
|
+
*/
|
|
533
|
+
async withdrawETH(options) {
|
|
534
|
+
return contract.simulate.withdrawETH(options);
|
|
677
535
|
}
|
|
678
536
|
};
|
|
679
537
|
}
|
|
@@ -700,7 +558,7 @@ class UERC20_json {
|
|
|
700
558
|
Approval: (callback, filter) => {
|
|
701
559
|
return this.publicClient.watchContractEvent({
|
|
702
560
|
address: this.contractAddress,
|
|
703
|
-
abi: exports.
|
|
561
|
+
abi: exports.USDTToken_jsonAbi,
|
|
704
562
|
eventName: 'Approval',
|
|
705
563
|
args: filter,
|
|
706
564
|
onLogs: (logs) => {
|
|
@@ -719,7 +577,7 @@ class UERC20_json {
|
|
|
719
577
|
Transfer: (callback, filter) => {
|
|
720
578
|
return this.publicClient.watchContractEvent({
|
|
721
579
|
address: this.contractAddress,
|
|
722
|
-
abi: exports.
|
|
580
|
+
abi: exports.USDTToken_jsonAbi,
|
|
723
581
|
eventName: 'Transfer',
|
|
724
582
|
args: filter,
|
|
725
583
|
onLogs: (logs) => {
|
|
@@ -732,4 +590,4 @@ class UERC20_json {
|
|
|
732
590
|
};
|
|
733
591
|
}
|
|
734
592
|
}
|
|
735
|
-
exports.
|
|
593
|
+
exports.USDTToken_json = USDTToken_json;
|