@gitmyabi/usdt 1.0.17 → 1.0.19
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/{USDTToken_json.d.ts → USDToken_json.d.ts} +290 -75
- package/contracts/{USDTToken_json.js → USDToken_json.js} +313 -90
- package/contracts/{USDTToken_json.ts → USDToken_json.ts} +393 -98
- 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,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.USDToken_json = exports.USDToken_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* USDToken_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.USDToken_jsonAbi = [
|
|
11
11
|
{
|
|
12
12
|
"inputs": [],
|
|
13
13
|
"stateMutability": "nonpayable",
|
|
@@ -38,6 +38,45 @@ exports.USDTToken_jsonAbi = [
|
|
|
38
38
|
"name": "Approval",
|
|
39
39
|
"type": "event"
|
|
40
40
|
},
|
|
41
|
+
{
|
|
42
|
+
"anonymous": false,
|
|
43
|
+
"inputs": [
|
|
44
|
+
{
|
|
45
|
+
"indexed": false,
|
|
46
|
+
"internalType": "string",
|
|
47
|
+
"name": "newName",
|
|
48
|
+
"type": "string"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"name": "NameChanged",
|
|
52
|
+
"type": "event"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"anonymous": false,
|
|
56
|
+
"inputs": [
|
|
57
|
+
{
|
|
58
|
+
"indexed": true,
|
|
59
|
+
"internalType": "address",
|
|
60
|
+
"name": "previousOwner",
|
|
61
|
+
"type": "address"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"name": "OwnershipRenounced",
|
|
65
|
+
"type": "event"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"anonymous": false,
|
|
69
|
+
"inputs": [
|
|
70
|
+
{
|
|
71
|
+
"indexed": false,
|
|
72
|
+
"internalType": "string",
|
|
73
|
+
"name": "newSymbol",
|
|
74
|
+
"type": "string"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"name": "SymbolChanged",
|
|
78
|
+
"type": "event"
|
|
79
|
+
},
|
|
41
80
|
{
|
|
42
81
|
"anonymous": false,
|
|
43
82
|
"inputs": [
|
|
@@ -63,19 +102,6 @@ exports.USDTToken_jsonAbi = [
|
|
|
63
102
|
"name": "Transfer",
|
|
64
103
|
"type": "event"
|
|
65
104
|
},
|
|
66
|
-
{
|
|
67
|
-
"inputs": [],
|
|
68
|
-
"name": "WITHDRAW_ADDRESS",
|
|
69
|
-
"outputs": [
|
|
70
|
-
{
|
|
71
|
-
"internalType": "address",
|
|
72
|
-
"name": "",
|
|
73
|
-
"type": "address"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"stateMutability": "view",
|
|
77
|
-
"type": "function"
|
|
78
|
-
},
|
|
79
105
|
{
|
|
80
106
|
"inputs": [
|
|
81
107
|
{
|
|
@@ -157,29 +183,64 @@ exports.USDTToken_jsonAbi = [
|
|
|
157
183
|
"type": "function"
|
|
158
184
|
},
|
|
159
185
|
{
|
|
160
|
-
"inputs": [
|
|
161
|
-
|
|
162
|
-
|
|
186
|
+
"inputs": [
|
|
187
|
+
{
|
|
188
|
+
"internalType": "address",
|
|
189
|
+
"name": "spender",
|
|
190
|
+
"type": "address"
|
|
191
|
+
},
|
|
163
192
|
{
|
|
164
193
|
"internalType": "uint256",
|
|
194
|
+
"name": "subtractedValue",
|
|
195
|
+
"type": "uint256"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"name": "decreaseAllowance",
|
|
199
|
+
"outputs": [
|
|
200
|
+
{
|
|
201
|
+
"internalType": "bool",
|
|
165
202
|
"name": "",
|
|
203
|
+
"type": "bool"
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
"stateMutability": "nonpayable",
|
|
207
|
+
"type": "function"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"inputs": [
|
|
211
|
+
{
|
|
212
|
+
"internalType": "address",
|
|
213
|
+
"name": "spender",
|
|
214
|
+
"type": "address"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"internalType": "uint256",
|
|
218
|
+
"name": "addedValue",
|
|
166
219
|
"type": "uint256"
|
|
167
220
|
}
|
|
168
221
|
],
|
|
169
|
-
"
|
|
222
|
+
"name": "increaseAllowance",
|
|
223
|
+
"outputs": [
|
|
224
|
+
{
|
|
225
|
+
"internalType": "bool",
|
|
226
|
+
"name": "",
|
|
227
|
+
"type": "bool"
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"stateMutability": "nonpayable",
|
|
170
231
|
"type": "function"
|
|
171
232
|
},
|
|
172
233
|
{
|
|
173
234
|
"inputs": [],
|
|
174
|
-
"name": "
|
|
235
|
+
"name": "isRenounced",
|
|
175
236
|
"outputs": [
|
|
176
237
|
{
|
|
177
|
-
"internalType": "
|
|
238
|
+
"internalType": "bool",
|
|
178
239
|
"name": "",
|
|
179
|
-
"type": "
|
|
240
|
+
"type": "bool"
|
|
180
241
|
}
|
|
181
242
|
],
|
|
182
|
-
"stateMutability": "
|
|
243
|
+
"stateMutability": "view",
|
|
183
244
|
"type": "function"
|
|
184
245
|
},
|
|
185
246
|
{
|
|
@@ -196,19 +257,60 @@ exports.USDTToken_jsonAbi = [
|
|
|
196
257
|
"type": "function"
|
|
197
258
|
},
|
|
198
259
|
{
|
|
199
|
-
"inputs": [
|
|
260
|
+
"inputs": [],
|
|
261
|
+
"name": "owner",
|
|
262
|
+
"outputs": [
|
|
200
263
|
{
|
|
201
264
|
"internalType": "address",
|
|
202
|
-
"name": "
|
|
265
|
+
"name": "",
|
|
203
266
|
"type": "address"
|
|
204
|
-
}
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"stateMutability": "view",
|
|
270
|
+
"type": "function"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"inputs": [],
|
|
274
|
+
"name": "renounceOwnership",
|
|
275
|
+
"outputs": [],
|
|
276
|
+
"stateMutability": "nonpayable",
|
|
277
|
+
"type": "function"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"inputs": [],
|
|
281
|
+
"name": "renounced",
|
|
282
|
+
"outputs": [
|
|
205
283
|
{
|
|
206
|
-
"internalType": "
|
|
207
|
-
"name": "
|
|
208
|
-
"type": "
|
|
284
|
+
"internalType": "bool",
|
|
285
|
+
"name": "",
|
|
286
|
+
"type": "bool"
|
|
209
287
|
}
|
|
210
288
|
],
|
|
211
|
-
"
|
|
289
|
+
"stateMutability": "view",
|
|
290
|
+
"type": "function"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"inputs": [
|
|
294
|
+
{
|
|
295
|
+
"internalType": "string",
|
|
296
|
+
"name": "newName",
|
|
297
|
+
"type": "string"
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"name": "setName",
|
|
301
|
+
"outputs": [],
|
|
302
|
+
"stateMutability": "nonpayable",
|
|
303
|
+
"type": "function"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"inputs": [
|
|
307
|
+
{
|
|
308
|
+
"internalType": "string",
|
|
309
|
+
"name": "newSymbol",
|
|
310
|
+
"type": "string"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
"name": "setSymbol",
|
|
212
314
|
"outputs": [],
|
|
213
315
|
"stateMutability": "nonpayable",
|
|
214
316
|
"type": "function"
|
|
@@ -226,6 +328,19 @@ exports.USDTToken_jsonAbi = [
|
|
|
226
328
|
"stateMutability": "view",
|
|
227
329
|
"type": "function"
|
|
228
330
|
},
|
|
331
|
+
{
|
|
332
|
+
"inputs": [],
|
|
333
|
+
"name": "tokenImage",
|
|
334
|
+
"outputs": [
|
|
335
|
+
{
|
|
336
|
+
"internalType": "string",
|
|
337
|
+
"name": "",
|
|
338
|
+
"type": "string"
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
"stateMutability": "pure",
|
|
342
|
+
"type": "function"
|
|
343
|
+
},
|
|
229
344
|
{
|
|
230
345
|
"inputs": [],
|
|
231
346
|
"name": "totalSupply",
|
|
@@ -291,21 +406,10 @@ exports.USDTToken_jsonAbi = [
|
|
|
291
406
|
],
|
|
292
407
|
"stateMutability": "nonpayable",
|
|
293
408
|
"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"
|
|
305
409
|
}
|
|
306
410
|
];
|
|
307
411
|
/**
|
|
308
|
-
*
|
|
412
|
+
* USDToken_json Contract Class
|
|
309
413
|
*
|
|
310
414
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
311
415
|
*
|
|
@@ -313,12 +417,12 @@ exports.USDTToken_jsonAbi = [
|
|
|
313
417
|
* ```typescript
|
|
314
418
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
315
419
|
* import { mainnet } from 'viem/chains';
|
|
316
|
-
* import {
|
|
420
|
+
* import { USDToken_json } from 'USDToken_json';
|
|
317
421
|
*
|
|
318
422
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
319
423
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
320
424
|
*
|
|
321
|
-
* const contract = new
|
|
425
|
+
* const contract = new USDToken_json('0x...', { publicClient, walletClient });
|
|
322
426
|
*
|
|
323
427
|
* // Read functions
|
|
324
428
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -336,13 +440,13 @@ exports.USDTToken_jsonAbi = [
|
|
|
336
440
|
* });
|
|
337
441
|
* ```
|
|
338
442
|
*/
|
|
339
|
-
class
|
|
443
|
+
class USDToken_json {
|
|
340
444
|
constructor(address, clients) {
|
|
341
445
|
this.contractAddress = address;
|
|
342
446
|
this.publicClient = clients.publicClient;
|
|
343
447
|
this.contract = (0, viem_1.getContract)({
|
|
344
448
|
address,
|
|
345
|
-
abi: exports.
|
|
449
|
+
abi: exports.USDToken_jsonAbi,
|
|
346
450
|
client: {
|
|
347
451
|
public: clients.publicClient,
|
|
348
452
|
wallet: clients.walletClient,
|
|
@@ -361,13 +465,6 @@ class USDTToken_json {
|
|
|
361
465
|
getContract() {
|
|
362
466
|
return this.contract;
|
|
363
467
|
}
|
|
364
|
-
/**
|
|
365
|
-
* WITHDRAW_ADDRESS
|
|
366
|
-
* view
|
|
367
|
-
*/
|
|
368
|
-
async WITHDRAW_ADDRESS() {
|
|
369
|
-
return this.contract.read.WITHDRAW_ADDRESS();
|
|
370
|
-
}
|
|
371
468
|
/**
|
|
372
469
|
* allowance
|
|
373
470
|
* view
|
|
@@ -390,18 +487,11 @@ class USDTToken_json {
|
|
|
390
487
|
return this.contract.read.decimals();
|
|
391
488
|
}
|
|
392
489
|
/**
|
|
393
|
-
*
|
|
490
|
+
* isRenounced
|
|
394
491
|
* view
|
|
395
492
|
*/
|
|
396
|
-
async
|
|
397
|
-
return this.contract.read.
|
|
398
|
-
}
|
|
399
|
-
/**
|
|
400
|
-
* getWithdrawalAddress
|
|
401
|
-
* pure
|
|
402
|
-
*/
|
|
403
|
-
async getWithdrawalAddress() {
|
|
404
|
-
return this.contract.read.getWithdrawalAddress();
|
|
493
|
+
async isRenounced() {
|
|
494
|
+
return this.contract.read.isRenounced();
|
|
405
495
|
}
|
|
406
496
|
/**
|
|
407
497
|
* name
|
|
@@ -410,6 +500,20 @@ class USDTToken_json {
|
|
|
410
500
|
async name() {
|
|
411
501
|
return this.contract.read.name();
|
|
412
502
|
}
|
|
503
|
+
/**
|
|
504
|
+
* owner
|
|
505
|
+
* view
|
|
506
|
+
*/
|
|
507
|
+
async owner() {
|
|
508
|
+
return this.contract.read.owner();
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* renounced
|
|
512
|
+
* view
|
|
513
|
+
*/
|
|
514
|
+
async renounced() {
|
|
515
|
+
return this.contract.read.renounced();
|
|
516
|
+
}
|
|
413
517
|
/**
|
|
414
518
|
* symbol
|
|
415
519
|
* view
|
|
@@ -417,6 +521,13 @@ class USDTToken_json {
|
|
|
417
521
|
async symbol() {
|
|
418
522
|
return this.contract.read.symbol();
|
|
419
523
|
}
|
|
524
|
+
/**
|
|
525
|
+
* tokenImage
|
|
526
|
+
* pure
|
|
527
|
+
*/
|
|
528
|
+
async tokenImage() {
|
|
529
|
+
return this.contract.read.tokenImage();
|
|
530
|
+
}
|
|
420
531
|
/**
|
|
421
532
|
* totalSupply
|
|
422
533
|
* view
|
|
@@ -436,48 +547,81 @@ class USDTToken_json {
|
|
|
436
547
|
return this.contract.write.approve([spender, amount], options);
|
|
437
548
|
}
|
|
438
549
|
/**
|
|
439
|
-
*
|
|
550
|
+
* decreaseAllowance
|
|
440
551
|
* nonpayable
|
|
441
552
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
442
553
|
*/
|
|
443
|
-
async
|
|
554
|
+
async decreaseAllowance(spender, subtractedValue, options) {
|
|
444
555
|
if (!this.contract.write) {
|
|
445
556
|
throw new Error('Wallet client is required for write operations');
|
|
446
557
|
}
|
|
447
|
-
return this.contract.write.
|
|
558
|
+
return this.contract.write.decreaseAllowance([spender, subtractedValue], options);
|
|
448
559
|
}
|
|
449
560
|
/**
|
|
450
|
-
*
|
|
561
|
+
* increaseAllowance
|
|
451
562
|
* nonpayable
|
|
452
563
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
453
564
|
*/
|
|
454
|
-
async
|
|
565
|
+
async increaseAllowance(spender, addedValue, options) {
|
|
455
566
|
if (!this.contract.write) {
|
|
456
567
|
throw new Error('Wallet client is required for write operations');
|
|
457
568
|
}
|
|
458
|
-
return this.contract.write.
|
|
569
|
+
return this.contract.write.increaseAllowance([spender, addedValue], options);
|
|
459
570
|
}
|
|
460
571
|
/**
|
|
461
|
-
*
|
|
572
|
+
* renounceOwnership
|
|
462
573
|
* nonpayable
|
|
463
574
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
464
575
|
*/
|
|
465
|
-
async
|
|
576
|
+
async renounceOwnership(options) {
|
|
466
577
|
if (!this.contract.write) {
|
|
467
578
|
throw new Error('Wallet client is required for write operations');
|
|
468
579
|
}
|
|
469
|
-
return this.contract.write.
|
|
580
|
+
return this.contract.write.renounceOwnership(options);
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* setName
|
|
584
|
+
* nonpayable
|
|
585
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
586
|
+
*/
|
|
587
|
+
async setName(newName, options) {
|
|
588
|
+
if (!this.contract.write) {
|
|
589
|
+
throw new Error('Wallet client is required for write operations');
|
|
590
|
+
}
|
|
591
|
+
return this.contract.write.setName([newName], options);
|
|
470
592
|
}
|
|
471
593
|
/**
|
|
472
|
-
*
|
|
594
|
+
* setSymbol
|
|
473
595
|
* nonpayable
|
|
474
596
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
475
597
|
*/
|
|
476
|
-
async
|
|
598
|
+
async setSymbol(newSymbol, options) {
|
|
477
599
|
if (!this.contract.write) {
|
|
478
600
|
throw new Error('Wallet client is required for write operations');
|
|
479
601
|
}
|
|
480
|
-
return this.contract.write.
|
|
602
|
+
return this.contract.write.setSymbol([newSymbol], options);
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* transfer
|
|
606
|
+
* nonpayable
|
|
607
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
608
|
+
*/
|
|
609
|
+
async transfer(to, amount, options) {
|
|
610
|
+
if (!this.contract.write) {
|
|
611
|
+
throw new Error('Wallet client is required for write operations');
|
|
612
|
+
}
|
|
613
|
+
return this.contract.write.transfer([to, amount], options);
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* transferFrom
|
|
617
|
+
* nonpayable
|
|
618
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
619
|
+
*/
|
|
620
|
+
async transferFrom(from, to, amount, options) {
|
|
621
|
+
if (!this.contract.write) {
|
|
622
|
+
throw new Error('Wallet client is required for write operations');
|
|
623
|
+
}
|
|
624
|
+
return this.contract.write.transferFrom([from, to, amount], options);
|
|
481
625
|
}
|
|
482
626
|
/**
|
|
483
627
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -502,12 +646,44 @@ class USDTToken_json {
|
|
|
502
646
|
return contract.simulate.approve([spender, amount], options);
|
|
503
647
|
},
|
|
504
648
|
/**
|
|
505
|
-
* Simulate
|
|
649
|
+
* Simulate decreaseAllowance
|
|
650
|
+
* Returns gas estimate and result without sending transaction
|
|
651
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
652
|
+
*/
|
|
653
|
+
async decreaseAllowance(spender, subtractedValue, options) {
|
|
654
|
+
return contract.simulate.decreaseAllowance([spender, subtractedValue], options);
|
|
655
|
+
},
|
|
656
|
+
/**
|
|
657
|
+
* Simulate increaseAllowance
|
|
658
|
+
* Returns gas estimate and result without sending transaction
|
|
659
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
660
|
+
*/
|
|
661
|
+
async increaseAllowance(spender, addedValue, options) {
|
|
662
|
+
return contract.simulate.increaseAllowance([spender, addedValue], options);
|
|
663
|
+
},
|
|
664
|
+
/**
|
|
665
|
+
* Simulate renounceOwnership
|
|
506
666
|
* Returns gas estimate and result without sending transaction
|
|
507
667
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
508
668
|
*/
|
|
509
|
-
async
|
|
510
|
-
return contract.simulate.
|
|
669
|
+
async renounceOwnership(options) {
|
|
670
|
+
return contract.simulate.renounceOwnership(options);
|
|
671
|
+
},
|
|
672
|
+
/**
|
|
673
|
+
* Simulate setName
|
|
674
|
+
* Returns gas estimate and result without sending transaction
|
|
675
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
676
|
+
*/
|
|
677
|
+
async setName(newName, options) {
|
|
678
|
+
return contract.simulate.setName([newName], options);
|
|
679
|
+
},
|
|
680
|
+
/**
|
|
681
|
+
* Simulate setSymbol
|
|
682
|
+
* Returns gas estimate and result without sending transaction
|
|
683
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
684
|
+
*/
|
|
685
|
+
async setSymbol(newSymbol, options) {
|
|
686
|
+
return contract.simulate.setSymbol([newSymbol], options);
|
|
511
687
|
},
|
|
512
688
|
/**
|
|
513
689
|
* Simulate transfer
|
|
@@ -524,14 +700,6 @@ class USDTToken_json {
|
|
|
524
700
|
*/
|
|
525
701
|
async transferFrom(from, to, amount, options) {
|
|
526
702
|
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);
|
|
535
703
|
}
|
|
536
704
|
};
|
|
537
705
|
}
|
|
@@ -558,7 +726,7 @@ class USDTToken_json {
|
|
|
558
726
|
Approval: (callback, filter) => {
|
|
559
727
|
return this.publicClient.watchContractEvent({
|
|
560
728
|
address: this.contractAddress,
|
|
561
|
-
abi: exports.
|
|
729
|
+
abi: exports.USDToken_jsonAbi,
|
|
562
730
|
eventName: 'Approval',
|
|
563
731
|
args: filter,
|
|
564
732
|
onLogs: (logs) => {
|
|
@@ -568,6 +736,61 @@ class USDTToken_json {
|
|
|
568
736
|
},
|
|
569
737
|
});
|
|
570
738
|
},
|
|
739
|
+
/**
|
|
740
|
+
* Watch NameChanged events
|
|
741
|
+
* @param callback Function to call when event is emitted
|
|
742
|
+
* @param filter Optional filter for indexed parameters
|
|
743
|
+
* @returns Unwatch function to stop listening
|
|
744
|
+
*/
|
|
745
|
+
NameChanged: (callback) => {
|
|
746
|
+
return this.publicClient.watchContractEvent({
|
|
747
|
+
address: this.contractAddress,
|
|
748
|
+
abi: exports.USDToken_jsonAbi,
|
|
749
|
+
eventName: 'NameChanged',
|
|
750
|
+
onLogs: (logs) => {
|
|
751
|
+
logs.forEach((log) => {
|
|
752
|
+
callback(log.args);
|
|
753
|
+
});
|
|
754
|
+
},
|
|
755
|
+
});
|
|
756
|
+
},
|
|
757
|
+
/**
|
|
758
|
+
* Watch OwnershipRenounced events
|
|
759
|
+
* @param callback Function to call when event is emitted
|
|
760
|
+
* @param filter Optional filter for indexed parameters
|
|
761
|
+
* @returns Unwatch function to stop listening
|
|
762
|
+
*/
|
|
763
|
+
OwnershipRenounced: (callback, filter) => {
|
|
764
|
+
return this.publicClient.watchContractEvent({
|
|
765
|
+
address: this.contractAddress,
|
|
766
|
+
abi: exports.USDToken_jsonAbi,
|
|
767
|
+
eventName: 'OwnershipRenounced',
|
|
768
|
+
args: filter,
|
|
769
|
+
onLogs: (logs) => {
|
|
770
|
+
logs.forEach((log) => {
|
|
771
|
+
callback(log.args);
|
|
772
|
+
});
|
|
773
|
+
},
|
|
774
|
+
});
|
|
775
|
+
},
|
|
776
|
+
/**
|
|
777
|
+
* Watch SymbolChanged events
|
|
778
|
+
* @param callback Function to call when event is emitted
|
|
779
|
+
* @param filter Optional filter for indexed parameters
|
|
780
|
+
* @returns Unwatch function to stop listening
|
|
781
|
+
*/
|
|
782
|
+
SymbolChanged: (callback) => {
|
|
783
|
+
return this.publicClient.watchContractEvent({
|
|
784
|
+
address: this.contractAddress,
|
|
785
|
+
abi: exports.USDToken_jsonAbi,
|
|
786
|
+
eventName: 'SymbolChanged',
|
|
787
|
+
onLogs: (logs) => {
|
|
788
|
+
logs.forEach((log) => {
|
|
789
|
+
callback(log.args);
|
|
790
|
+
});
|
|
791
|
+
},
|
|
792
|
+
});
|
|
793
|
+
},
|
|
571
794
|
/**
|
|
572
795
|
* Watch Transfer events
|
|
573
796
|
* @param callback Function to call when event is emitted
|
|
@@ -577,7 +800,7 @@ class USDTToken_json {
|
|
|
577
800
|
Transfer: (callback, filter) => {
|
|
578
801
|
return this.publicClient.watchContractEvent({
|
|
579
802
|
address: this.contractAddress,
|
|
580
|
-
abi: exports.
|
|
803
|
+
abi: exports.USDToken_jsonAbi,
|
|
581
804
|
eventName: 'Transfer',
|
|
582
805
|
args: filter,
|
|
583
806
|
onLogs: (logs) => {
|
|
@@ -590,4 +813,4 @@ class USDTToken_json {
|
|
|
590
813
|
};
|
|
591
814
|
}
|
|
592
815
|
}
|
|
593
|
-
exports.
|
|
816
|
+
exports.USDToken_json = USDToken_json;
|