@gitmyabi/usdt 1.0.19 → 1.0.20
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/{USDToken_json.d.ts → SimpleUSDTToken_json.d.ts} +36 -320
- package/contracts/{USDToken_json.js → SimpleUSDTToken_json.js} +46 -333
- package/contracts/{USDToken_json.ts → SimpleUSDTToken_json.ts} +50 -434
- 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,15 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SimpleUSDTToken_json = exports.SimpleUSDTToken_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* SimpleUSDTToken_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.SimpleUSDTToken_jsonAbi = [
|
|
11
11
|
{
|
|
12
|
-
"inputs": [
|
|
12
|
+
"inputs": [
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint256",
|
|
15
|
+
"name": "initialSupply",
|
|
16
|
+
"type": "uint256"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
13
19
|
"stateMutability": "nonpayable",
|
|
14
20
|
"type": "constructor"
|
|
15
21
|
},
|
|
@@ -38,45 +44,6 @@ exports.USDToken_jsonAbi = [
|
|
|
38
44
|
"name": "Approval",
|
|
39
45
|
"type": "event"
|
|
40
46
|
},
|
|
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
|
-
},
|
|
80
47
|
{
|
|
81
48
|
"anonymous": false,
|
|
82
49
|
"inputs": [
|
|
@@ -135,7 +102,7 @@ exports.USDToken_jsonAbi = [
|
|
|
135
102
|
},
|
|
136
103
|
{
|
|
137
104
|
"internalType": "uint256",
|
|
138
|
-
"name": "
|
|
105
|
+
"name": "value",
|
|
139
106
|
"type": "uint256"
|
|
140
107
|
}
|
|
141
108
|
],
|
|
@@ -143,7 +110,7 @@ exports.USDToken_jsonAbi = [
|
|
|
143
110
|
"outputs": [
|
|
144
111
|
{
|
|
145
112
|
"internalType": "bool",
|
|
146
|
-
"name": "",
|
|
113
|
+
"name": "success",
|
|
147
114
|
"type": "bool"
|
|
148
115
|
}
|
|
149
116
|
],
|
|
@@ -186,63 +153,20 @@ exports.USDToken_jsonAbi = [
|
|
|
186
153
|
"inputs": [
|
|
187
154
|
{
|
|
188
155
|
"internalType": "address",
|
|
189
|
-
"name": "
|
|
190
|
-
"type": "address"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"internalType": "uint256",
|
|
194
|
-
"name": "subtractedValue",
|
|
195
|
-
"type": "uint256"
|
|
196
|
-
}
|
|
197
|
-
],
|
|
198
|
-
"name": "decreaseAllowance",
|
|
199
|
-
"outputs": [
|
|
200
|
-
{
|
|
201
|
-
"internalType": "bool",
|
|
202
|
-
"name": "",
|
|
203
|
-
"type": "bool"
|
|
204
|
-
}
|
|
205
|
-
],
|
|
206
|
-
"stateMutability": "nonpayable",
|
|
207
|
-
"type": "function"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"inputs": [
|
|
211
|
-
{
|
|
212
|
-
"internalType": "address",
|
|
213
|
-
"name": "spender",
|
|
156
|
+
"name": "to",
|
|
214
157
|
"type": "address"
|
|
215
158
|
},
|
|
216
159
|
{
|
|
217
160
|
"internalType": "uint256",
|
|
218
|
-
"name": "
|
|
161
|
+
"name": "amount",
|
|
219
162
|
"type": "uint256"
|
|
220
163
|
}
|
|
221
164
|
],
|
|
222
|
-
"name": "
|
|
223
|
-
"outputs": [
|
|
224
|
-
{
|
|
225
|
-
"internalType": "bool",
|
|
226
|
-
"name": "",
|
|
227
|
-
"type": "bool"
|
|
228
|
-
}
|
|
229
|
-
],
|
|
165
|
+
"name": "mint",
|
|
166
|
+
"outputs": [],
|
|
230
167
|
"stateMutability": "nonpayable",
|
|
231
168
|
"type": "function"
|
|
232
169
|
},
|
|
233
|
-
{
|
|
234
|
-
"inputs": [],
|
|
235
|
-
"name": "isRenounced",
|
|
236
|
-
"outputs": [
|
|
237
|
-
{
|
|
238
|
-
"internalType": "bool",
|
|
239
|
-
"name": "",
|
|
240
|
-
"type": "bool"
|
|
241
|
-
}
|
|
242
|
-
],
|
|
243
|
-
"stateMutability": "view",
|
|
244
|
-
"type": "function"
|
|
245
|
-
},
|
|
246
170
|
{
|
|
247
171
|
"inputs": [],
|
|
248
172
|
"name": "name",
|
|
@@ -269,52 +193,6 @@ exports.USDToken_jsonAbi = [
|
|
|
269
193
|
"stateMutability": "view",
|
|
270
194
|
"type": "function"
|
|
271
195
|
},
|
|
272
|
-
{
|
|
273
|
-
"inputs": [],
|
|
274
|
-
"name": "renounceOwnership",
|
|
275
|
-
"outputs": [],
|
|
276
|
-
"stateMutability": "nonpayable",
|
|
277
|
-
"type": "function"
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
"inputs": [],
|
|
281
|
-
"name": "renounced",
|
|
282
|
-
"outputs": [
|
|
283
|
-
{
|
|
284
|
-
"internalType": "bool",
|
|
285
|
-
"name": "",
|
|
286
|
-
"type": "bool"
|
|
287
|
-
}
|
|
288
|
-
],
|
|
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",
|
|
314
|
-
"outputs": [],
|
|
315
|
-
"stateMutability": "nonpayable",
|
|
316
|
-
"type": "function"
|
|
317
|
-
},
|
|
318
196
|
{
|
|
319
197
|
"inputs": [],
|
|
320
198
|
"name": "symbol",
|
|
@@ -328,19 +206,6 @@ exports.USDToken_jsonAbi = [
|
|
|
328
206
|
"stateMutability": "view",
|
|
329
207
|
"type": "function"
|
|
330
208
|
},
|
|
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
|
-
},
|
|
344
209
|
{
|
|
345
210
|
"inputs": [],
|
|
346
211
|
"name": "totalSupply",
|
|
@@ -363,7 +228,7 @@ exports.USDToken_jsonAbi = [
|
|
|
363
228
|
},
|
|
364
229
|
{
|
|
365
230
|
"internalType": "uint256",
|
|
366
|
-
"name": "
|
|
231
|
+
"name": "value",
|
|
367
232
|
"type": "uint256"
|
|
368
233
|
}
|
|
369
234
|
],
|
|
@@ -371,7 +236,7 @@ exports.USDToken_jsonAbi = [
|
|
|
371
236
|
"outputs": [
|
|
372
237
|
{
|
|
373
238
|
"internalType": "bool",
|
|
374
|
-
"name": "",
|
|
239
|
+
"name": "success",
|
|
375
240
|
"type": "bool"
|
|
376
241
|
}
|
|
377
242
|
],
|
|
@@ -392,7 +257,7 @@ exports.USDToken_jsonAbi = [
|
|
|
392
257
|
},
|
|
393
258
|
{
|
|
394
259
|
"internalType": "uint256",
|
|
395
|
-
"name": "
|
|
260
|
+
"name": "value",
|
|
396
261
|
"type": "uint256"
|
|
397
262
|
}
|
|
398
263
|
],
|
|
@@ -400,7 +265,7 @@ exports.USDToken_jsonAbi = [
|
|
|
400
265
|
"outputs": [
|
|
401
266
|
{
|
|
402
267
|
"internalType": "bool",
|
|
403
|
-
"name": "",
|
|
268
|
+
"name": "success",
|
|
404
269
|
"type": "bool"
|
|
405
270
|
}
|
|
406
271
|
],
|
|
@@ -409,7 +274,7 @@ exports.USDToken_jsonAbi = [
|
|
|
409
274
|
}
|
|
410
275
|
];
|
|
411
276
|
/**
|
|
412
|
-
*
|
|
277
|
+
* SimpleUSDTToken_json Contract Class
|
|
413
278
|
*
|
|
414
279
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
415
280
|
*
|
|
@@ -417,12 +282,12 @@ exports.USDToken_jsonAbi = [
|
|
|
417
282
|
* ```typescript
|
|
418
283
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
419
284
|
* import { mainnet } from 'viem/chains';
|
|
420
|
-
* import {
|
|
285
|
+
* import { SimpleUSDTToken_json } from 'SimpleUSDTToken_json';
|
|
421
286
|
*
|
|
422
287
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
423
288
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
424
289
|
*
|
|
425
|
-
* const contract = new
|
|
290
|
+
* const contract = new SimpleUSDTToken_json('0x...', { publicClient, walletClient });
|
|
426
291
|
*
|
|
427
292
|
* // Read functions
|
|
428
293
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -440,13 +305,13 @@ exports.USDToken_jsonAbi = [
|
|
|
440
305
|
* });
|
|
441
306
|
* ```
|
|
442
307
|
*/
|
|
443
|
-
class
|
|
308
|
+
class SimpleUSDTToken_json {
|
|
444
309
|
constructor(address, clients) {
|
|
445
310
|
this.contractAddress = address;
|
|
446
311
|
this.publicClient = clients.publicClient;
|
|
447
312
|
this.contract = (0, viem_1.getContract)({
|
|
448
313
|
address,
|
|
449
|
-
abi: exports.
|
|
314
|
+
abi: exports.SimpleUSDTToken_jsonAbi,
|
|
450
315
|
client: {
|
|
451
316
|
public: clients.publicClient,
|
|
452
317
|
wallet: clients.walletClient,
|
|
@@ -486,13 +351,6 @@ class USDToken_json {
|
|
|
486
351
|
async decimals() {
|
|
487
352
|
return this.contract.read.decimals();
|
|
488
353
|
}
|
|
489
|
-
/**
|
|
490
|
-
* isRenounced
|
|
491
|
-
* view
|
|
492
|
-
*/
|
|
493
|
-
async isRenounced() {
|
|
494
|
-
return this.contract.read.isRenounced();
|
|
495
|
-
}
|
|
496
354
|
/**
|
|
497
355
|
* name
|
|
498
356
|
* view
|
|
@@ -507,13 +365,6 @@ class USDToken_json {
|
|
|
507
365
|
async owner() {
|
|
508
366
|
return this.contract.read.owner();
|
|
509
367
|
}
|
|
510
|
-
/**
|
|
511
|
-
* renounced
|
|
512
|
-
* view
|
|
513
|
-
*/
|
|
514
|
-
async renounced() {
|
|
515
|
-
return this.contract.read.renounced();
|
|
516
|
-
}
|
|
517
368
|
/**
|
|
518
369
|
* symbol
|
|
519
370
|
* view
|
|
@@ -521,13 +372,6 @@ class USDToken_json {
|
|
|
521
372
|
async symbol() {
|
|
522
373
|
return this.contract.read.symbol();
|
|
523
374
|
}
|
|
524
|
-
/**
|
|
525
|
-
* tokenImage
|
|
526
|
-
* pure
|
|
527
|
-
*/
|
|
528
|
-
async tokenImage() {
|
|
529
|
-
return this.contract.read.tokenImage();
|
|
530
|
-
}
|
|
531
375
|
/**
|
|
532
376
|
* totalSupply
|
|
533
377
|
* view
|
|
@@ -540,88 +384,44 @@ class USDToken_json {
|
|
|
540
384
|
* nonpayable
|
|
541
385
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
542
386
|
*/
|
|
543
|
-
async approve(spender,
|
|
387
|
+
async approve(spender, value, options) {
|
|
544
388
|
if (!this.contract.write) {
|
|
545
389
|
throw new Error('Wallet client is required for write operations');
|
|
546
390
|
}
|
|
547
|
-
return this.contract.write.approve([spender,
|
|
391
|
+
return this.contract.write.approve([spender, value], options);
|
|
548
392
|
}
|
|
549
393
|
/**
|
|
550
|
-
*
|
|
394
|
+
* mint
|
|
551
395
|
* nonpayable
|
|
552
396
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
553
397
|
*/
|
|
554
|
-
async
|
|
398
|
+
async mint(to, amount, options) {
|
|
555
399
|
if (!this.contract.write) {
|
|
556
400
|
throw new Error('Wallet client is required for write operations');
|
|
557
401
|
}
|
|
558
|
-
return this.contract.write.
|
|
559
|
-
}
|
|
560
|
-
/**
|
|
561
|
-
* increaseAllowance
|
|
562
|
-
* nonpayable
|
|
563
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
564
|
-
*/
|
|
565
|
-
async increaseAllowance(spender, addedValue, options) {
|
|
566
|
-
if (!this.contract.write) {
|
|
567
|
-
throw new Error('Wallet client is required for write operations');
|
|
568
|
-
}
|
|
569
|
-
return this.contract.write.increaseAllowance([spender, addedValue], options);
|
|
570
|
-
}
|
|
571
|
-
/**
|
|
572
|
-
* renounceOwnership
|
|
573
|
-
* nonpayable
|
|
574
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
575
|
-
*/
|
|
576
|
-
async renounceOwnership(options) {
|
|
577
|
-
if (!this.contract.write) {
|
|
578
|
-
throw new Error('Wallet client is required for write operations');
|
|
579
|
-
}
|
|
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);
|
|
592
|
-
}
|
|
593
|
-
/**
|
|
594
|
-
* setSymbol
|
|
595
|
-
* nonpayable
|
|
596
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
597
|
-
*/
|
|
598
|
-
async setSymbol(newSymbol, options) {
|
|
599
|
-
if (!this.contract.write) {
|
|
600
|
-
throw new Error('Wallet client is required for write operations');
|
|
601
|
-
}
|
|
602
|
-
return this.contract.write.setSymbol([newSymbol], options);
|
|
402
|
+
return this.contract.write.mint([to, amount], options);
|
|
603
403
|
}
|
|
604
404
|
/**
|
|
605
405
|
* transfer
|
|
606
406
|
* nonpayable
|
|
607
407
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
608
408
|
*/
|
|
609
|
-
async transfer(to,
|
|
409
|
+
async transfer(to, value, options) {
|
|
610
410
|
if (!this.contract.write) {
|
|
611
411
|
throw new Error('Wallet client is required for write operations');
|
|
612
412
|
}
|
|
613
|
-
return this.contract.write.transfer([to,
|
|
413
|
+
return this.contract.write.transfer([to, value], options);
|
|
614
414
|
}
|
|
615
415
|
/**
|
|
616
416
|
* transferFrom
|
|
617
417
|
* nonpayable
|
|
618
418
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
619
419
|
*/
|
|
620
|
-
async transferFrom(from, to,
|
|
420
|
+
async transferFrom(from, to, value, options) {
|
|
621
421
|
if (!this.contract.write) {
|
|
622
422
|
throw new Error('Wallet client is required for write operations');
|
|
623
423
|
}
|
|
624
|
-
return this.contract.write.transferFrom([from, to,
|
|
424
|
+
return this.contract.write.transferFrom([from, to, value], options);
|
|
625
425
|
}
|
|
626
426
|
/**
|
|
627
427
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -642,64 +442,32 @@ class USDToken_json {
|
|
|
642
442
|
* Returns gas estimate and result without sending transaction
|
|
643
443
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
644
444
|
*/
|
|
645
|
-
async approve(spender,
|
|
646
|
-
return contract.simulate.approve([spender,
|
|
445
|
+
async approve(spender, value, options) {
|
|
446
|
+
return contract.simulate.approve([spender, value], options);
|
|
647
447
|
},
|
|
648
448
|
/**
|
|
649
|
-
* Simulate
|
|
449
|
+
* Simulate mint
|
|
650
450
|
* Returns gas estimate and result without sending transaction
|
|
651
451
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
652
452
|
*/
|
|
653
|
-
async
|
|
654
|
-
return contract.simulate.
|
|
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
|
|
666
|
-
* Returns gas estimate and result without sending transaction
|
|
667
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
668
|
-
*/
|
|
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);
|
|
453
|
+
async mint(to, amount, options) {
|
|
454
|
+
return contract.simulate.mint([to, amount], options);
|
|
687
455
|
},
|
|
688
456
|
/**
|
|
689
457
|
* Simulate transfer
|
|
690
458
|
* Returns gas estimate and result without sending transaction
|
|
691
459
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
692
460
|
*/
|
|
693
|
-
async transfer(to,
|
|
694
|
-
return contract.simulate.transfer([to,
|
|
461
|
+
async transfer(to, value, options) {
|
|
462
|
+
return contract.simulate.transfer([to, value], options);
|
|
695
463
|
},
|
|
696
464
|
/**
|
|
697
465
|
* Simulate transferFrom
|
|
698
466
|
* Returns gas estimate and result without sending transaction
|
|
699
467
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
700
468
|
*/
|
|
701
|
-
async transferFrom(from, to,
|
|
702
|
-
return contract.simulate.transferFrom([from, to,
|
|
469
|
+
async transferFrom(from, to, value, options) {
|
|
470
|
+
return contract.simulate.transferFrom([from, to, value], options);
|
|
703
471
|
}
|
|
704
472
|
};
|
|
705
473
|
}
|
|
@@ -726,7 +494,7 @@ class USDToken_json {
|
|
|
726
494
|
Approval: (callback, filter) => {
|
|
727
495
|
return this.publicClient.watchContractEvent({
|
|
728
496
|
address: this.contractAddress,
|
|
729
|
-
abi: exports.
|
|
497
|
+
abi: exports.SimpleUSDTToken_jsonAbi,
|
|
730
498
|
eventName: 'Approval',
|
|
731
499
|
args: filter,
|
|
732
500
|
onLogs: (logs) => {
|
|
@@ -736,61 +504,6 @@ class USDToken_json {
|
|
|
736
504
|
},
|
|
737
505
|
});
|
|
738
506
|
},
|
|
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
|
-
},
|
|
794
507
|
/**
|
|
795
508
|
* Watch Transfer events
|
|
796
509
|
* @param callback Function to call when event is emitted
|
|
@@ -800,7 +513,7 @@ class USDToken_json {
|
|
|
800
513
|
Transfer: (callback, filter) => {
|
|
801
514
|
return this.publicClient.watchContractEvent({
|
|
802
515
|
address: this.contractAddress,
|
|
803
|
-
abi: exports.
|
|
516
|
+
abi: exports.SimpleUSDTToken_jsonAbi,
|
|
804
517
|
eventName: 'Transfer',
|
|
805
518
|
args: filter,
|
|
806
519
|
onLogs: (logs) => {
|
|
@@ -813,4 +526,4 @@ class USDToken_json {
|
|
|
813
526
|
};
|
|
814
527
|
}
|
|
815
528
|
}
|
|
816
|
-
exports.
|
|
529
|
+
exports.SimpleUSDTToken_json = SimpleUSDTToken_json;
|