@gitmyabi/usdt 1.0.27 → 1.0.29
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 +6 -6
- package/contracts/{PermittableToken_json.d.ts → TetherToken_json.d.ts} +320 -641
- package/contracts/{PermittableToken_json.js → TetherToken_json.js} +410 -647
- package/contracts/{PermittableToken_json.ts → TetherToken_json.ts} +425 -792
- package/contracts/index.d.ts +2 -4
- package/contracts/index.js +4 -7
- package/contracts/index.ts +2 -4
- package/package.json +3 -3
- package/contracts/TokenProxy_json.d.ts +0 -145
- package/contracts/TokenProxy_json.js +0 -177
- package/contracts/TokenProxy_json.ts +0 -207
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TetherToken_json = exports.TetherToken_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* TetherToken_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.TetherToken_jsonAbi = [
|
|
11
11
|
{
|
|
12
12
|
"constant": true,
|
|
13
13
|
"inputs": [],
|
|
14
|
-
"name": "
|
|
14
|
+
"name": "name",
|
|
15
15
|
"outputs": [
|
|
16
16
|
{
|
|
17
17
|
"name": "",
|
|
18
|
-
"type": "
|
|
18
|
+
"type": "string"
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
21
|
"payable": false,
|
|
@@ -23,24 +23,24 @@ exports.PermittableToken_jsonAbi = [
|
|
|
23
23
|
"type": "function"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
"constant":
|
|
27
|
-
"inputs": [
|
|
28
|
-
"name": "name",
|
|
29
|
-
"outputs": [
|
|
26
|
+
"constant": false,
|
|
27
|
+
"inputs": [
|
|
30
28
|
{
|
|
31
|
-
"name": "",
|
|
32
|
-
"type": "
|
|
29
|
+
"name": "_upgradedAddress",
|
|
30
|
+
"type": "address"
|
|
33
31
|
}
|
|
34
32
|
],
|
|
33
|
+
"name": "deprecate",
|
|
34
|
+
"outputs": [],
|
|
35
35
|
"payable": false,
|
|
36
|
-
"stateMutability": "
|
|
36
|
+
"stateMutability": "nonpayable",
|
|
37
37
|
"type": "function"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"constant": false,
|
|
41
41
|
"inputs": [
|
|
42
42
|
{
|
|
43
|
-
"name": "
|
|
43
|
+
"name": "_spender",
|
|
44
44
|
"type": "address"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
@@ -49,25 +49,34 @@ exports.PermittableToken_jsonAbi = [
|
|
|
49
49
|
}
|
|
50
50
|
],
|
|
51
51
|
"name": "approve",
|
|
52
|
+
"outputs": [],
|
|
53
|
+
"payable": false,
|
|
54
|
+
"stateMutability": "nonpayable",
|
|
55
|
+
"type": "function"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"constant": true,
|
|
59
|
+
"inputs": [],
|
|
60
|
+
"name": "deprecated",
|
|
52
61
|
"outputs": [
|
|
53
62
|
{
|
|
54
|
-
"name": "
|
|
63
|
+
"name": "",
|
|
55
64
|
"type": "bool"
|
|
56
65
|
}
|
|
57
66
|
],
|
|
58
67
|
"payable": false,
|
|
59
|
-
"stateMutability": "
|
|
68
|
+
"stateMutability": "view",
|
|
60
69
|
"type": "function"
|
|
61
70
|
},
|
|
62
71
|
{
|
|
63
72
|
"constant": false,
|
|
64
73
|
"inputs": [
|
|
65
74
|
{
|
|
66
|
-
"name": "
|
|
75
|
+
"name": "_evilUser",
|
|
67
76
|
"type": "address"
|
|
68
77
|
}
|
|
69
78
|
],
|
|
70
|
-
"name": "
|
|
79
|
+
"name": "addBlackList",
|
|
71
80
|
"outputs": [],
|
|
72
81
|
"payable": false,
|
|
73
82
|
"stateMutability": "nonpayable",
|
|
@@ -91,25 +100,20 @@ exports.PermittableToken_jsonAbi = [
|
|
|
91
100
|
"constant": false,
|
|
92
101
|
"inputs": [
|
|
93
102
|
{
|
|
94
|
-
"name": "
|
|
103
|
+
"name": "_from",
|
|
95
104
|
"type": "address"
|
|
96
105
|
},
|
|
97
106
|
{
|
|
98
|
-
"name": "
|
|
107
|
+
"name": "_to",
|
|
99
108
|
"type": "address"
|
|
100
109
|
},
|
|
101
110
|
{
|
|
102
|
-
"name": "
|
|
111
|
+
"name": "_value",
|
|
103
112
|
"type": "uint256"
|
|
104
113
|
}
|
|
105
114
|
],
|
|
106
115
|
"name": "transferFrom",
|
|
107
|
-
"outputs": [
|
|
108
|
-
{
|
|
109
|
-
"name": "",
|
|
110
|
-
"type": "bool"
|
|
111
|
-
}
|
|
112
|
-
],
|
|
116
|
+
"outputs": [],
|
|
113
117
|
"payable": false,
|
|
114
118
|
"stateMutability": "nonpayable",
|
|
115
119
|
"type": "function"
|
|
@@ -117,25 +121,11 @@ exports.PermittableToken_jsonAbi = [
|
|
|
117
121
|
{
|
|
118
122
|
"constant": true,
|
|
119
123
|
"inputs": [],
|
|
120
|
-
"name": "
|
|
121
|
-
"outputs": [
|
|
122
|
-
{
|
|
123
|
-
"name": "",
|
|
124
|
-
"type": "bytes32"
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
"payable": false,
|
|
128
|
-
"stateMutability": "view",
|
|
129
|
-
"type": "function"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"constant": true,
|
|
133
|
-
"inputs": [],
|
|
134
|
-
"name": "decimals",
|
|
124
|
+
"name": "upgradedAddress",
|
|
135
125
|
"outputs": [
|
|
136
126
|
{
|
|
137
127
|
"name": "",
|
|
138
|
-
"type": "
|
|
128
|
+
"type": "address"
|
|
139
129
|
}
|
|
140
130
|
],
|
|
141
131
|
"payable": false,
|
|
@@ -144,113 +134,45 @@ exports.PermittableToken_jsonAbi = [
|
|
|
144
134
|
},
|
|
145
135
|
{
|
|
146
136
|
"constant": true,
|
|
147
|
-
"inputs": [],
|
|
148
|
-
"name": "DOMAIN_SEPARATOR",
|
|
149
|
-
"outputs": [
|
|
150
|
-
{
|
|
151
|
-
"name": "",
|
|
152
|
-
"type": "bytes32"
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
"payable": false,
|
|
156
|
-
"stateMutability": "view",
|
|
157
|
-
"type": "function"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"constant": false,
|
|
161
|
-
"inputs": [
|
|
162
|
-
{
|
|
163
|
-
"name": "_to",
|
|
164
|
-
"type": "address"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"name": "_addedValue",
|
|
168
|
-
"type": "uint256"
|
|
169
|
-
}
|
|
170
|
-
],
|
|
171
|
-
"name": "increaseAllowance",
|
|
172
|
-
"outputs": [
|
|
173
|
-
{
|
|
174
|
-
"name": "result",
|
|
175
|
-
"type": "bool"
|
|
176
|
-
}
|
|
177
|
-
],
|
|
178
|
-
"payable": false,
|
|
179
|
-
"stateMutability": "nonpayable",
|
|
180
|
-
"type": "function"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"constant": false,
|
|
184
137
|
"inputs": [
|
|
185
138
|
{
|
|
186
|
-
"name": "
|
|
139
|
+
"name": "",
|
|
187
140
|
"type": "address"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"name": "_value",
|
|
191
|
-
"type": "uint256"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"name": "_data",
|
|
195
|
-
"type": "bytes"
|
|
196
141
|
}
|
|
197
142
|
],
|
|
198
|
-
"name": "
|
|
143
|
+
"name": "balances",
|
|
199
144
|
"outputs": [
|
|
200
145
|
{
|
|
201
146
|
"name": "",
|
|
202
|
-
"type": "
|
|
147
|
+
"type": "uint256"
|
|
203
148
|
}
|
|
204
149
|
],
|
|
205
150
|
"payable": false,
|
|
206
|
-
"stateMutability": "
|
|
151
|
+
"stateMutability": "view",
|
|
207
152
|
"type": "function"
|
|
208
153
|
},
|
|
209
154
|
{
|
|
210
|
-
"constant":
|
|
211
|
-
"inputs": [
|
|
212
|
-
|
|
213
|
-
"name": "_to",
|
|
214
|
-
"type": "address"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"name": "_amount",
|
|
218
|
-
"type": "uint256"
|
|
219
|
-
}
|
|
220
|
-
],
|
|
221
|
-
"name": "mint",
|
|
155
|
+
"constant": true,
|
|
156
|
+
"inputs": [],
|
|
157
|
+
"name": "decimals",
|
|
222
158
|
"outputs": [
|
|
223
159
|
{
|
|
224
160
|
"name": "",
|
|
225
|
-
"type": "bool"
|
|
226
|
-
}
|
|
227
|
-
],
|
|
228
|
-
"payable": false,
|
|
229
|
-
"stateMutability": "nonpayable",
|
|
230
|
-
"type": "function"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"constant": false,
|
|
234
|
-
"inputs": [
|
|
235
|
-
{
|
|
236
|
-
"name": "_value",
|
|
237
161
|
"type": "uint256"
|
|
238
162
|
}
|
|
239
163
|
],
|
|
240
|
-
"name": "burn",
|
|
241
|
-
"outputs": [],
|
|
242
164
|
"payable": false,
|
|
243
|
-
"stateMutability": "
|
|
165
|
+
"stateMutability": "view",
|
|
244
166
|
"type": "function"
|
|
245
167
|
},
|
|
246
168
|
{
|
|
247
169
|
"constant": true,
|
|
248
170
|
"inputs": [],
|
|
249
|
-
"name": "
|
|
171
|
+
"name": "maximumFee",
|
|
250
172
|
"outputs": [
|
|
251
173
|
{
|
|
252
174
|
"name": "",
|
|
253
|
-
"type": "
|
|
175
|
+
"type": "uint256"
|
|
254
176
|
}
|
|
255
177
|
],
|
|
256
178
|
"payable": false,
|
|
@@ -258,41 +180,23 @@ exports.PermittableToken_jsonAbi = [
|
|
|
258
180
|
"type": "function"
|
|
259
181
|
},
|
|
260
182
|
{
|
|
261
|
-
"constant":
|
|
262
|
-
"inputs": [
|
|
263
|
-
|
|
264
|
-
"name": "_spender",
|
|
265
|
-
"type": "address"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"name": "_subtractedValue",
|
|
269
|
-
"type": "uint256"
|
|
270
|
-
}
|
|
271
|
-
],
|
|
272
|
-
"name": "decreaseApproval",
|
|
183
|
+
"constant": true,
|
|
184
|
+
"inputs": [],
|
|
185
|
+
"name": "_totalSupply",
|
|
273
186
|
"outputs": [
|
|
274
187
|
{
|
|
275
188
|
"name": "",
|
|
276
|
-
"type": "
|
|
189
|
+
"type": "uint256"
|
|
277
190
|
}
|
|
278
191
|
],
|
|
279
192
|
"payable": false,
|
|
280
|
-
"stateMutability": "
|
|
193
|
+
"stateMutability": "view",
|
|
281
194
|
"type": "function"
|
|
282
195
|
},
|
|
283
196
|
{
|
|
284
197
|
"constant": false,
|
|
285
|
-
"inputs": [
|
|
286
|
-
|
|
287
|
-
"name": "_token",
|
|
288
|
-
"type": "address"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"name": "_to",
|
|
292
|
-
"type": "address"
|
|
293
|
-
}
|
|
294
|
-
],
|
|
295
|
-
"name": "claimTokens",
|
|
198
|
+
"inputs": [],
|
|
199
|
+
"name": "unpause",
|
|
296
200
|
"outputs": [],
|
|
297
201
|
"payable": false,
|
|
298
202
|
"stateMutability": "nonpayable",
|
|
@@ -302,43 +206,38 @@ exports.PermittableToken_jsonAbi = [
|
|
|
302
206
|
"constant": true,
|
|
303
207
|
"inputs": [
|
|
304
208
|
{
|
|
305
|
-
"name": "
|
|
209
|
+
"name": "_maker",
|
|
306
210
|
"type": "address"
|
|
307
211
|
}
|
|
308
212
|
],
|
|
309
|
-
"name": "
|
|
213
|
+
"name": "getBlackListStatus",
|
|
310
214
|
"outputs": [
|
|
311
215
|
{
|
|
312
216
|
"name": "",
|
|
313
|
-
"type": "
|
|
217
|
+
"type": "bool"
|
|
314
218
|
}
|
|
315
219
|
],
|
|
316
220
|
"payable": false,
|
|
317
221
|
"stateMutability": "view",
|
|
318
222
|
"type": "function"
|
|
319
223
|
},
|
|
320
|
-
{
|
|
321
|
-
"constant": false,
|
|
322
|
-
"inputs": [],
|
|
323
|
-
"name": "renounceOwnership",
|
|
324
|
-
"outputs": [],
|
|
325
|
-
"payable": false,
|
|
326
|
-
"stateMutability": "nonpayable",
|
|
327
|
-
"type": "function"
|
|
328
|
-
},
|
|
329
224
|
{
|
|
330
225
|
"constant": true,
|
|
331
226
|
"inputs": [
|
|
332
227
|
{
|
|
333
|
-
"name": "
|
|
228
|
+
"name": "",
|
|
229
|
+
"type": "address"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "",
|
|
334
233
|
"type": "address"
|
|
335
234
|
}
|
|
336
235
|
],
|
|
337
|
-
"name": "
|
|
236
|
+
"name": "allowed",
|
|
338
237
|
"outputs": [
|
|
339
238
|
{
|
|
340
239
|
"name": "",
|
|
341
|
-
"type": "
|
|
240
|
+
"type": "uint256"
|
|
342
241
|
}
|
|
343
242
|
],
|
|
344
243
|
"payable": false,
|
|
@@ -346,9 +245,9 @@ exports.PermittableToken_jsonAbi = [
|
|
|
346
245
|
"type": "function"
|
|
347
246
|
},
|
|
348
247
|
{
|
|
349
|
-
"constant":
|
|
248
|
+
"constant": true,
|
|
350
249
|
"inputs": [],
|
|
351
|
-
"name": "
|
|
250
|
+
"name": "paused",
|
|
352
251
|
"outputs": [
|
|
353
252
|
{
|
|
354
253
|
"name": "",
|
|
@@ -356,18 +255,18 @@ exports.PermittableToken_jsonAbi = [
|
|
|
356
255
|
}
|
|
357
256
|
],
|
|
358
257
|
"payable": false,
|
|
359
|
-
"stateMutability": "
|
|
258
|
+
"stateMutability": "view",
|
|
360
259
|
"type": "function"
|
|
361
260
|
},
|
|
362
261
|
{
|
|
363
262
|
"constant": true,
|
|
364
263
|
"inputs": [
|
|
365
264
|
{
|
|
366
|
-
"name": "",
|
|
265
|
+
"name": "who",
|
|
367
266
|
"type": "address"
|
|
368
267
|
}
|
|
369
268
|
],
|
|
370
|
-
"name": "
|
|
269
|
+
"name": "balanceOf",
|
|
371
270
|
"outputs": [
|
|
372
271
|
{
|
|
373
272
|
"name": "",
|
|
@@ -379,31 +278,18 @@ exports.PermittableToken_jsonAbi = [
|
|
|
379
278
|
"type": "function"
|
|
380
279
|
},
|
|
381
280
|
{
|
|
382
|
-
"constant":
|
|
281
|
+
"constant": false,
|
|
383
282
|
"inputs": [],
|
|
384
|
-
"name": "
|
|
385
|
-
"outputs": [
|
|
386
|
-
{
|
|
387
|
-
"name": "major",
|
|
388
|
-
"type": "uint64"
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
"name": "minor",
|
|
392
|
-
"type": "uint64"
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
"name": "patch",
|
|
396
|
-
"type": "uint64"
|
|
397
|
-
}
|
|
398
|
-
],
|
|
283
|
+
"name": "pause",
|
|
284
|
+
"outputs": [],
|
|
399
285
|
"payable": false,
|
|
400
|
-
"stateMutability": "
|
|
286
|
+
"stateMutability": "nonpayable",
|
|
401
287
|
"type": "function"
|
|
402
288
|
},
|
|
403
289
|
{
|
|
404
290
|
"constant": true,
|
|
405
291
|
"inputs": [],
|
|
406
|
-
"name": "
|
|
292
|
+
"name": "getOwner",
|
|
407
293
|
"outputs": [
|
|
408
294
|
{
|
|
409
295
|
"name": "",
|
|
@@ -415,45 +301,17 @@ exports.PermittableToken_jsonAbi = [
|
|
|
415
301
|
"type": "function"
|
|
416
302
|
},
|
|
417
303
|
{
|
|
418
|
-
"constant":
|
|
419
|
-
"inputs": [
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
"type": "address"
|
|
423
|
-
},
|
|
304
|
+
"constant": true,
|
|
305
|
+
"inputs": [],
|
|
306
|
+
"name": "owner",
|
|
307
|
+
"outputs": [
|
|
424
308
|
{
|
|
425
|
-
"name": "
|
|
309
|
+
"name": "",
|
|
426
310
|
"type": "address"
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
"name": "_nonce",
|
|
430
|
-
"type": "uint256"
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
"name": "_expiry",
|
|
434
|
-
"type": "uint256"
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
"name": "_allowed",
|
|
438
|
-
"type": "bool"
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
"name": "_v",
|
|
442
|
-
"type": "uint8"
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
"name": "_r",
|
|
446
|
-
"type": "bytes32"
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
"name": "_s",
|
|
450
|
-
"type": "bytes32"
|
|
451
311
|
}
|
|
452
312
|
],
|
|
453
|
-
"name": "permit",
|
|
454
|
-
"outputs": [],
|
|
455
313
|
"payable": false,
|
|
456
|
-
"stateMutability": "
|
|
314
|
+
"stateMutability": "view",
|
|
457
315
|
"type": "function"
|
|
458
316
|
},
|
|
459
317
|
{
|
|
@@ -474,21 +332,16 @@ exports.PermittableToken_jsonAbi = [
|
|
|
474
332
|
"constant": false,
|
|
475
333
|
"inputs": [
|
|
476
334
|
{
|
|
477
|
-
"name": "
|
|
335
|
+
"name": "_to",
|
|
478
336
|
"type": "address"
|
|
479
337
|
},
|
|
480
338
|
{
|
|
481
|
-
"name": "
|
|
339
|
+
"name": "_value",
|
|
482
340
|
"type": "uint256"
|
|
483
341
|
}
|
|
484
342
|
],
|
|
485
|
-
"name": "
|
|
486
|
-
"outputs": [
|
|
487
|
-
{
|
|
488
|
-
"name": "",
|
|
489
|
-
"type": "bool"
|
|
490
|
-
}
|
|
491
|
-
],
|
|
343
|
+
"name": "transfer",
|
|
344
|
+
"outputs": [],
|
|
492
345
|
"payable": false,
|
|
493
346
|
"stateMutability": "nonpayable",
|
|
494
347
|
"type": "function"
|
|
@@ -497,21 +350,16 @@ exports.PermittableToken_jsonAbi = [
|
|
|
497
350
|
"constant": false,
|
|
498
351
|
"inputs": [
|
|
499
352
|
{
|
|
500
|
-
"name": "
|
|
501
|
-
"type": "
|
|
353
|
+
"name": "newBasisPoints",
|
|
354
|
+
"type": "uint256"
|
|
502
355
|
},
|
|
503
356
|
{
|
|
504
|
-
"name": "
|
|
357
|
+
"name": "newMaxFee",
|
|
505
358
|
"type": "uint256"
|
|
506
359
|
}
|
|
507
360
|
],
|
|
508
|
-
"name": "
|
|
509
|
-
"outputs": [
|
|
510
|
-
{
|
|
511
|
-
"name": "",
|
|
512
|
-
"type": "bool"
|
|
513
|
-
}
|
|
514
|
-
],
|
|
361
|
+
"name": "setParams",
|
|
362
|
+
"outputs": [],
|
|
515
363
|
"payable": false,
|
|
516
364
|
"stateMutability": "nonpayable",
|
|
517
365
|
"type": "function"
|
|
@@ -520,15 +368,11 @@ exports.PermittableToken_jsonAbi = [
|
|
|
520
368
|
"constant": false,
|
|
521
369
|
"inputs": [
|
|
522
370
|
{
|
|
523
|
-
"name": "
|
|
524
|
-
"type": "address"
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
"name": "_amount",
|
|
371
|
+
"name": "amount",
|
|
528
372
|
"type": "uint256"
|
|
529
373
|
}
|
|
530
374
|
],
|
|
531
|
-
"name": "
|
|
375
|
+
"name": "issue",
|
|
532
376
|
"outputs": [],
|
|
533
377
|
"payable": false,
|
|
534
378
|
"stateMutability": "nonpayable",
|
|
@@ -538,19 +382,11 @@ exports.PermittableToken_jsonAbi = [
|
|
|
538
382
|
"constant": false,
|
|
539
383
|
"inputs": [
|
|
540
384
|
{
|
|
541
|
-
"name": "
|
|
542
|
-
"type": "address"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"name": "_to",
|
|
546
|
-
"type": "address"
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
"name": "_amount",
|
|
385
|
+
"name": "amount",
|
|
550
386
|
"type": "uint256"
|
|
551
387
|
}
|
|
552
388
|
],
|
|
553
|
-
"name": "
|
|
389
|
+
"name": "redeem",
|
|
554
390
|
"outputs": [],
|
|
555
391
|
"payable": false,
|
|
556
392
|
"stateMutability": "nonpayable",
|
|
@@ -558,12 +394,21 @@ exports.PermittableToken_jsonAbi = [
|
|
|
558
394
|
},
|
|
559
395
|
{
|
|
560
396
|
"constant": true,
|
|
561
|
-
"inputs": [
|
|
562
|
-
|
|
397
|
+
"inputs": [
|
|
398
|
+
{
|
|
399
|
+
"name": "_owner",
|
|
400
|
+
"type": "address"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"name": "_spender",
|
|
404
|
+
"type": "address"
|
|
405
|
+
}
|
|
406
|
+
],
|
|
407
|
+
"name": "allowance",
|
|
563
408
|
"outputs": [
|
|
564
409
|
{
|
|
565
|
-
"name": "",
|
|
566
|
-
"type": "
|
|
410
|
+
"name": "remaining",
|
|
411
|
+
"type": "uint256"
|
|
567
412
|
}
|
|
568
413
|
],
|
|
569
414
|
"payable": false,
|
|
@@ -573,11 +418,11 @@ exports.PermittableToken_jsonAbi = [
|
|
|
573
418
|
{
|
|
574
419
|
"constant": true,
|
|
575
420
|
"inputs": [],
|
|
576
|
-
"name": "
|
|
421
|
+
"name": "basisPointsRate",
|
|
577
422
|
"outputs": [
|
|
578
423
|
{
|
|
579
424
|
"name": "",
|
|
580
|
-
"type": "
|
|
425
|
+
"type": "uint256"
|
|
581
426
|
}
|
|
582
427
|
],
|
|
583
428
|
"payable": false,
|
|
@@ -585,79 +430,42 @@ exports.PermittableToken_jsonAbi = [
|
|
|
585
430
|
"type": "function"
|
|
586
431
|
},
|
|
587
432
|
{
|
|
588
|
-
"constant":
|
|
433
|
+
"constant": true,
|
|
589
434
|
"inputs": [
|
|
590
435
|
{
|
|
591
|
-
"name": "
|
|
592
|
-
"type": "address"
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
"name": "_spender",
|
|
436
|
+
"name": "",
|
|
596
437
|
"type": "address"
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
"name": "_deadline",
|
|
604
|
-
"type": "uint256"
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
"name": "_v",
|
|
608
|
-
"type": "uint8"
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
"name": "_r",
|
|
612
|
-
"type": "bytes32"
|
|
613
|
-
},
|
|
438
|
+
}
|
|
439
|
+
],
|
|
440
|
+
"name": "isBlackListed",
|
|
441
|
+
"outputs": [
|
|
614
442
|
{
|
|
615
|
-
"name": "
|
|
616
|
-
"type": "
|
|
443
|
+
"name": "",
|
|
444
|
+
"type": "bool"
|
|
617
445
|
}
|
|
618
446
|
],
|
|
619
|
-
"name": "permit",
|
|
620
|
-
"outputs": [],
|
|
621
447
|
"payable": false,
|
|
622
|
-
"stateMutability": "
|
|
448
|
+
"stateMutability": "view",
|
|
623
449
|
"type": "function"
|
|
624
450
|
},
|
|
625
451
|
{
|
|
626
452
|
"constant": false,
|
|
627
453
|
"inputs": [
|
|
628
454
|
{
|
|
629
|
-
"name": "
|
|
455
|
+
"name": "_clearedUser",
|
|
630
456
|
"type": "address"
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
"name": "_addedValue",
|
|
634
|
-
"type": "uint256"
|
|
635
|
-
}
|
|
636
|
-
],
|
|
637
|
-
"name": "increaseApproval",
|
|
638
|
-
"outputs": [
|
|
639
|
-
{
|
|
640
|
-
"name": "",
|
|
641
|
-
"type": "bool"
|
|
642
457
|
}
|
|
643
458
|
],
|
|
459
|
+
"name": "removeBlackList",
|
|
460
|
+
"outputs": [],
|
|
644
461
|
"payable": false,
|
|
645
462
|
"stateMutability": "nonpayable",
|
|
646
463
|
"type": "function"
|
|
647
464
|
},
|
|
648
465
|
{
|
|
649
466
|
"constant": true,
|
|
650
|
-
"inputs": [
|
|
651
|
-
|
|
652
|
-
"name": "_owner",
|
|
653
|
-
"type": "address"
|
|
654
|
-
},
|
|
655
|
-
{
|
|
656
|
-
"name": "_spender",
|
|
657
|
-
"type": "address"
|
|
658
|
-
}
|
|
659
|
-
],
|
|
660
|
-
"name": "allowance",
|
|
467
|
+
"inputs": [],
|
|
468
|
+
"name": "MAX_UINT",
|
|
661
469
|
"outputs": [
|
|
662
470
|
{
|
|
663
471
|
"name": "",
|
|
@@ -672,25 +480,7 @@ exports.PermittableToken_jsonAbi = [
|
|
|
672
480
|
"constant": false,
|
|
673
481
|
"inputs": [
|
|
674
482
|
{
|
|
675
|
-
"name": "
|
|
676
|
-
"type": "address"
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
"name": "_amount",
|
|
680
|
-
"type": "uint256"
|
|
681
|
-
}
|
|
682
|
-
],
|
|
683
|
-
"name": "pull",
|
|
684
|
-
"outputs": [],
|
|
685
|
-
"payable": false,
|
|
686
|
-
"stateMutability": "nonpayable",
|
|
687
|
-
"type": "function"
|
|
688
|
-
},
|
|
689
|
-
{
|
|
690
|
-
"constant": false,
|
|
691
|
-
"inputs": [
|
|
692
|
-
{
|
|
693
|
-
"name": "_newOwner",
|
|
483
|
+
"name": "newOwner",
|
|
694
484
|
"type": "address"
|
|
695
485
|
}
|
|
696
486
|
],
|
|
@@ -701,30 +491,25 @@ exports.PermittableToken_jsonAbi = [
|
|
|
701
491
|
"type": "function"
|
|
702
492
|
},
|
|
703
493
|
{
|
|
704
|
-
"constant":
|
|
494
|
+
"constant": false,
|
|
705
495
|
"inputs": [
|
|
706
496
|
{
|
|
707
|
-
"name": "",
|
|
708
|
-
"type": "address"
|
|
709
|
-
},
|
|
710
|
-
{
|
|
711
|
-
"name": "",
|
|
712
|
-
"type": "address"
|
|
713
|
-
}
|
|
714
|
-
],
|
|
715
|
-
"name": "expirations",
|
|
716
|
-
"outputs": [
|
|
717
|
-
{
|
|
718
|
-
"name": "",
|
|
719
|
-
"type": "uint256"
|
|
497
|
+
"name": "_blackListedUser",
|
|
498
|
+
"type": "address"
|
|
720
499
|
}
|
|
721
500
|
],
|
|
501
|
+
"name": "destroyBlackFunds",
|
|
502
|
+
"outputs": [],
|
|
722
503
|
"payable": false,
|
|
723
|
-
"stateMutability": "
|
|
504
|
+
"stateMutability": "nonpayable",
|
|
724
505
|
"type": "function"
|
|
725
506
|
},
|
|
726
507
|
{
|
|
727
508
|
"inputs": [
|
|
509
|
+
{
|
|
510
|
+
"name": "_initialSupply",
|
|
511
|
+
"type": "uint256"
|
|
512
|
+
},
|
|
728
513
|
{
|
|
729
514
|
"name": "_name",
|
|
730
515
|
"type": "string"
|
|
@@ -735,10 +520,6 @@ exports.PermittableToken_jsonAbi = [
|
|
|
735
520
|
},
|
|
736
521
|
{
|
|
737
522
|
"name": "_decimals",
|
|
738
|
-
"type": "uint8"
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
"name": "_chainId",
|
|
742
523
|
"type": "uint256"
|
|
743
524
|
}
|
|
744
525
|
],
|
|
@@ -749,97 +530,95 @@ exports.PermittableToken_jsonAbi = [
|
|
|
749
530
|
{
|
|
750
531
|
"anonymous": false,
|
|
751
532
|
"inputs": [
|
|
752
|
-
{
|
|
753
|
-
"indexed": true,
|
|
754
|
-
"name": "to",
|
|
755
|
-
"type": "address"
|
|
756
|
-
},
|
|
757
533
|
{
|
|
758
534
|
"indexed": false,
|
|
759
535
|
"name": "amount",
|
|
760
536
|
"type": "uint256"
|
|
761
537
|
}
|
|
762
538
|
],
|
|
763
|
-
"name": "
|
|
539
|
+
"name": "Issue",
|
|
764
540
|
"type": "event"
|
|
765
541
|
},
|
|
766
542
|
{
|
|
767
543
|
"anonymous": false,
|
|
768
|
-
"inputs": [
|
|
769
|
-
|
|
544
|
+
"inputs": [
|
|
545
|
+
{
|
|
546
|
+
"indexed": false,
|
|
547
|
+
"name": "amount",
|
|
548
|
+
"type": "uint256"
|
|
549
|
+
}
|
|
550
|
+
],
|
|
551
|
+
"name": "Redeem",
|
|
770
552
|
"type": "event"
|
|
771
553
|
},
|
|
772
554
|
{
|
|
773
555
|
"anonymous": false,
|
|
774
556
|
"inputs": [
|
|
775
557
|
{
|
|
776
|
-
"indexed":
|
|
777
|
-
"name": "
|
|
558
|
+
"indexed": false,
|
|
559
|
+
"name": "newAddress",
|
|
778
560
|
"type": "address"
|
|
779
561
|
}
|
|
780
562
|
],
|
|
781
|
-
"name": "
|
|
563
|
+
"name": "Deprecate",
|
|
782
564
|
"type": "event"
|
|
783
565
|
},
|
|
784
566
|
{
|
|
785
567
|
"anonymous": false,
|
|
786
568
|
"inputs": [
|
|
787
569
|
{
|
|
788
|
-
"indexed":
|
|
789
|
-
"name": "
|
|
790
|
-
"type": "
|
|
570
|
+
"indexed": false,
|
|
571
|
+
"name": "feeBasisPoints",
|
|
572
|
+
"type": "uint256"
|
|
791
573
|
},
|
|
792
574
|
{
|
|
793
|
-
"indexed":
|
|
794
|
-
"name": "
|
|
795
|
-
"type": "
|
|
575
|
+
"indexed": false,
|
|
576
|
+
"name": "maxFee",
|
|
577
|
+
"type": "uint256"
|
|
796
578
|
}
|
|
797
579
|
],
|
|
798
|
-
"name": "
|
|
580
|
+
"name": "Params",
|
|
799
581
|
"type": "event"
|
|
800
582
|
},
|
|
801
583
|
{
|
|
802
584
|
"anonymous": false,
|
|
803
585
|
"inputs": [
|
|
804
586
|
{
|
|
805
|
-
"indexed":
|
|
806
|
-
"name": "
|
|
587
|
+
"indexed": false,
|
|
588
|
+
"name": "_blackListedUser",
|
|
807
589
|
"type": "address"
|
|
808
590
|
},
|
|
809
591
|
{
|
|
810
592
|
"indexed": false,
|
|
811
|
-
"name": "
|
|
593
|
+
"name": "_balance",
|
|
812
594
|
"type": "uint256"
|
|
813
595
|
}
|
|
814
596
|
],
|
|
815
|
-
"name": "
|
|
597
|
+
"name": "DestroyedBlackFunds",
|
|
816
598
|
"type": "event"
|
|
817
599
|
},
|
|
818
600
|
{
|
|
819
601
|
"anonymous": false,
|
|
820
602
|
"inputs": [
|
|
821
|
-
{
|
|
822
|
-
"indexed": true,
|
|
823
|
-
"name": "from",
|
|
824
|
-
"type": "address"
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
"indexed": true,
|
|
828
|
-
"name": "to",
|
|
829
|
-
"type": "address"
|
|
830
|
-
},
|
|
831
603
|
{
|
|
832
604
|
"indexed": false,
|
|
833
|
-
"name": "
|
|
834
|
-
"type": "
|
|
835
|
-
}
|
|
605
|
+
"name": "_user",
|
|
606
|
+
"type": "address"
|
|
607
|
+
}
|
|
608
|
+
],
|
|
609
|
+
"name": "AddedBlackList",
|
|
610
|
+
"type": "event"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"anonymous": false,
|
|
614
|
+
"inputs": [
|
|
836
615
|
{
|
|
837
616
|
"indexed": false,
|
|
838
|
-
"name": "
|
|
839
|
-
"type": "
|
|
617
|
+
"name": "_user",
|
|
618
|
+
"type": "address"
|
|
840
619
|
}
|
|
841
620
|
],
|
|
842
|
-
"name": "
|
|
621
|
+
"name": "RemovedBlackList",
|
|
843
622
|
"type": "event"
|
|
844
623
|
},
|
|
845
624
|
{
|
|
@@ -885,10 +664,22 @@ exports.PermittableToken_jsonAbi = [
|
|
|
885
664
|
],
|
|
886
665
|
"name": "Transfer",
|
|
887
666
|
"type": "event"
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"anonymous": false,
|
|
670
|
+
"inputs": [],
|
|
671
|
+
"name": "Pause",
|
|
672
|
+
"type": "event"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"anonymous": false,
|
|
676
|
+
"inputs": [],
|
|
677
|
+
"name": "Unpause",
|
|
678
|
+
"type": "event"
|
|
888
679
|
}
|
|
889
680
|
];
|
|
890
681
|
/**
|
|
891
|
-
*
|
|
682
|
+
* TetherToken_json Contract Class
|
|
892
683
|
*
|
|
893
684
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
894
685
|
*
|
|
@@ -896,12 +687,12 @@ exports.PermittableToken_jsonAbi = [
|
|
|
896
687
|
* ```typescript
|
|
897
688
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
898
689
|
* import { mainnet } from 'viem/chains';
|
|
899
|
-
* import {
|
|
690
|
+
* import { TetherToken_json } from 'TetherToken_json';
|
|
900
691
|
*
|
|
901
692
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
902
693
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
903
694
|
*
|
|
904
|
-
* const contract = new
|
|
695
|
+
* const contract = new TetherToken_json('0x...', { publicClient, walletClient });
|
|
905
696
|
*
|
|
906
697
|
* // Read functions
|
|
907
698
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -919,13 +710,13 @@ exports.PermittableToken_jsonAbi = [
|
|
|
919
710
|
* });
|
|
920
711
|
* ```
|
|
921
712
|
*/
|
|
922
|
-
class
|
|
713
|
+
class TetherToken_json {
|
|
923
714
|
constructor(address, clients) {
|
|
924
715
|
this.contractAddress = address;
|
|
925
716
|
this.publicClient = clients.publicClient;
|
|
926
717
|
this.contract = (0, viem_1.getContract)({
|
|
927
718
|
address,
|
|
928
|
-
abi: exports.
|
|
719
|
+
abi: exports.TetherToken_jsonAbi,
|
|
929
720
|
client: {
|
|
930
721
|
public: clients.publicClient,
|
|
931
722
|
wallet: clients.walletClient,
|
|
@@ -945,18 +736,18 @@ class PermittableToken_json {
|
|
|
945
736
|
return this.contract;
|
|
946
737
|
}
|
|
947
738
|
/**
|
|
948
|
-
*
|
|
739
|
+
* name
|
|
949
740
|
* view
|
|
950
741
|
*/
|
|
951
|
-
async
|
|
952
|
-
return this.contract.read.
|
|
742
|
+
async name() {
|
|
743
|
+
return this.contract.read.name();
|
|
953
744
|
}
|
|
954
745
|
/**
|
|
955
|
-
*
|
|
746
|
+
* deprecated
|
|
956
747
|
* view
|
|
957
748
|
*/
|
|
958
|
-
async
|
|
959
|
-
return this.contract.read.
|
|
749
|
+
async deprecated() {
|
|
750
|
+
return this.contract.read.deprecated();
|
|
960
751
|
}
|
|
961
752
|
/**
|
|
962
753
|
* totalSupply
|
|
@@ -966,11 +757,18 @@ class PermittableToken_json {
|
|
|
966
757
|
return this.contract.read.totalSupply();
|
|
967
758
|
}
|
|
968
759
|
/**
|
|
969
|
-
*
|
|
760
|
+
* upgradedAddress
|
|
761
|
+
* view
|
|
762
|
+
*/
|
|
763
|
+
async upgradedAddress() {
|
|
764
|
+
return this.contract.read.upgradedAddress();
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* balances
|
|
970
768
|
* view
|
|
971
769
|
*/
|
|
972
|
-
async
|
|
973
|
-
return this.contract.read.
|
|
770
|
+
async balances(arg0) {
|
|
771
|
+
return this.contract.read.balances([arg0]);
|
|
974
772
|
}
|
|
975
773
|
/**
|
|
976
774
|
* decimals
|
|
@@ -980,46 +778,53 @@ class PermittableToken_json {
|
|
|
980
778
|
return this.contract.read.decimals();
|
|
981
779
|
}
|
|
982
780
|
/**
|
|
983
|
-
*
|
|
781
|
+
* maximumFee
|
|
984
782
|
* view
|
|
985
783
|
*/
|
|
986
|
-
async
|
|
987
|
-
return this.contract.read.
|
|
784
|
+
async maximumFee() {
|
|
785
|
+
return this.contract.read.maximumFee();
|
|
988
786
|
}
|
|
989
787
|
/**
|
|
990
|
-
*
|
|
788
|
+
* _totalSupply
|
|
991
789
|
* view
|
|
992
790
|
*/
|
|
993
|
-
async
|
|
994
|
-
return this.contract.read.
|
|
791
|
+
async _totalSupply() {
|
|
792
|
+
return this.contract.read._totalSupply();
|
|
995
793
|
}
|
|
996
794
|
/**
|
|
997
|
-
*
|
|
795
|
+
* getBlackListStatus
|
|
796
|
+
* view
|
|
797
|
+
*/
|
|
798
|
+
async getBlackListStatus(_maker) {
|
|
799
|
+
return this.contract.read.getBlackListStatus([_maker]);
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* allowed
|
|
998
803
|
* view
|
|
999
804
|
*/
|
|
1000
|
-
async
|
|
1001
|
-
return this.contract.read.
|
|
805
|
+
async allowed(arg0, arg1) {
|
|
806
|
+
return this.contract.read.allowed([arg0, arg1]);
|
|
1002
807
|
}
|
|
1003
808
|
/**
|
|
1004
|
-
*
|
|
809
|
+
* paused
|
|
1005
810
|
* view
|
|
1006
811
|
*/
|
|
1007
|
-
async
|
|
1008
|
-
return this.contract.read.
|
|
812
|
+
async paused() {
|
|
813
|
+
return this.contract.read.paused();
|
|
1009
814
|
}
|
|
1010
815
|
/**
|
|
1011
|
-
*
|
|
816
|
+
* balanceOf
|
|
1012
817
|
* view
|
|
1013
818
|
*/
|
|
1014
|
-
async
|
|
1015
|
-
return this.contract.read.
|
|
819
|
+
async balanceOf(who) {
|
|
820
|
+
return this.contract.read.balanceOf([who]);
|
|
1016
821
|
}
|
|
1017
822
|
/**
|
|
1018
|
-
*
|
|
1019
|
-
*
|
|
823
|
+
* getOwner
|
|
824
|
+
* view
|
|
1020
825
|
*/
|
|
1021
|
-
async
|
|
1022
|
-
return this.contract.read.
|
|
826
|
+
async getOwner() {
|
|
827
|
+
return this.contract.read.getOwner();
|
|
1023
828
|
}
|
|
1024
829
|
/**
|
|
1025
830
|
* owner
|
|
@@ -1035,20 +840,6 @@ class PermittableToken_json {
|
|
|
1035
840
|
async symbol() {
|
|
1036
841
|
return this.contract.read.symbol();
|
|
1037
842
|
}
|
|
1038
|
-
/**
|
|
1039
|
-
* PERMIT_TYPEHASH_LEGACY
|
|
1040
|
-
* view
|
|
1041
|
-
*/
|
|
1042
|
-
async PERMIT_TYPEHASH_LEGACY() {
|
|
1043
|
-
return this.contract.read.PERMIT_TYPEHASH_LEGACY();
|
|
1044
|
-
}
|
|
1045
|
-
/**
|
|
1046
|
-
* bridgeContract
|
|
1047
|
-
* view
|
|
1048
|
-
*/
|
|
1049
|
-
async bridgeContract() {
|
|
1050
|
-
return this.contract.read.bridgeContract();
|
|
1051
|
-
}
|
|
1052
843
|
/**
|
|
1053
844
|
* allowance
|
|
1054
845
|
* view
|
|
@@ -1057,215 +848,168 @@ class PermittableToken_json {
|
|
|
1057
848
|
return this.contract.read.allowance([_owner, _spender]);
|
|
1058
849
|
}
|
|
1059
850
|
/**
|
|
1060
|
-
*
|
|
851
|
+
* basisPointsRate
|
|
1061
852
|
* view
|
|
1062
853
|
*/
|
|
1063
|
-
async
|
|
1064
|
-
return this.contract.read.
|
|
854
|
+
async basisPointsRate() {
|
|
855
|
+
return this.contract.read.basisPointsRate();
|
|
1065
856
|
}
|
|
1066
857
|
/**
|
|
1067
|
-
*
|
|
1068
|
-
*
|
|
1069
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1070
|
-
*/
|
|
1071
|
-
async approve(_to, _value, options) {
|
|
1072
|
-
if (!this.contract.write) {
|
|
1073
|
-
throw new Error('Wallet client is required for write operations');
|
|
1074
|
-
}
|
|
1075
|
-
return this.contract.write.approve([_to, _value], options);
|
|
1076
|
-
}
|
|
1077
|
-
/**
|
|
1078
|
-
* setBridgeContract
|
|
1079
|
-
* nonpayable
|
|
1080
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1081
|
-
*/
|
|
1082
|
-
async setBridgeContract(_bridgeContract, options) {
|
|
1083
|
-
if (!this.contract.write) {
|
|
1084
|
-
throw new Error('Wallet client is required for write operations');
|
|
1085
|
-
}
|
|
1086
|
-
return this.contract.write.setBridgeContract([_bridgeContract], options);
|
|
1087
|
-
}
|
|
1088
|
-
/**
|
|
1089
|
-
* transferFrom
|
|
1090
|
-
* nonpayable
|
|
1091
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1092
|
-
*/
|
|
1093
|
-
async transferFrom(_sender, _recipient, _amount, options) {
|
|
1094
|
-
if (!this.contract.write) {
|
|
1095
|
-
throw new Error('Wallet client is required for write operations');
|
|
1096
|
-
}
|
|
1097
|
-
return this.contract.write.transferFrom([_sender, _recipient, _amount], options);
|
|
1098
|
-
}
|
|
1099
|
-
/**
|
|
1100
|
-
* increaseAllowance
|
|
1101
|
-
* nonpayable
|
|
1102
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
858
|
+
* isBlackListed
|
|
859
|
+
* view
|
|
1103
860
|
*/
|
|
1104
|
-
async
|
|
1105
|
-
|
|
1106
|
-
throw new Error('Wallet client is required for write operations');
|
|
1107
|
-
}
|
|
1108
|
-
return this.contract.write.increaseAllowance([_to, _addedValue], options);
|
|
861
|
+
async isBlackListed(arg0) {
|
|
862
|
+
return this.contract.read.isBlackListed([arg0]);
|
|
1109
863
|
}
|
|
1110
864
|
/**
|
|
1111
|
-
*
|
|
1112
|
-
*
|
|
1113
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
865
|
+
* MAX_UINT
|
|
866
|
+
* view
|
|
1114
867
|
*/
|
|
1115
|
-
async
|
|
1116
|
-
|
|
1117
|
-
throw new Error('Wallet client is required for write operations');
|
|
1118
|
-
}
|
|
1119
|
-
return this.contract.write.transferAndCall([_to, _value, _data], options);
|
|
868
|
+
async MAX_UINT() {
|
|
869
|
+
return this.contract.read.MAX_UINT();
|
|
1120
870
|
}
|
|
1121
871
|
/**
|
|
1122
|
-
*
|
|
872
|
+
* deprecate
|
|
1123
873
|
* nonpayable
|
|
1124
874
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1125
875
|
*/
|
|
1126
|
-
async
|
|
876
|
+
async deprecate(_upgradedAddress, options) {
|
|
1127
877
|
if (!this.contract.write) {
|
|
1128
878
|
throw new Error('Wallet client is required for write operations');
|
|
1129
879
|
}
|
|
1130
|
-
return this.contract.write.
|
|
880
|
+
return this.contract.write.deprecate([_upgradedAddress], options);
|
|
1131
881
|
}
|
|
1132
882
|
/**
|
|
1133
|
-
*
|
|
883
|
+
* approve
|
|
1134
884
|
* nonpayable
|
|
1135
885
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1136
886
|
*/
|
|
1137
|
-
async
|
|
887
|
+
async approve(_spender, _value, options) {
|
|
1138
888
|
if (!this.contract.write) {
|
|
1139
889
|
throw new Error('Wallet client is required for write operations');
|
|
1140
890
|
}
|
|
1141
|
-
return this.contract.write.
|
|
891
|
+
return this.contract.write.approve([_spender, _value], options);
|
|
1142
892
|
}
|
|
1143
893
|
/**
|
|
1144
|
-
*
|
|
894
|
+
* addBlackList
|
|
1145
895
|
* nonpayable
|
|
1146
896
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1147
897
|
*/
|
|
1148
|
-
async
|
|
898
|
+
async addBlackList(_evilUser, options) {
|
|
1149
899
|
if (!this.contract.write) {
|
|
1150
900
|
throw new Error('Wallet client is required for write operations');
|
|
1151
901
|
}
|
|
1152
|
-
return this.contract.write.
|
|
902
|
+
return this.contract.write.addBlackList([_evilUser], options);
|
|
1153
903
|
}
|
|
1154
904
|
/**
|
|
1155
|
-
*
|
|
905
|
+
* transferFrom
|
|
1156
906
|
* nonpayable
|
|
1157
907
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1158
908
|
*/
|
|
1159
|
-
async
|
|
909
|
+
async transferFrom(_from, _to, _value, options) {
|
|
1160
910
|
if (!this.contract.write) {
|
|
1161
911
|
throw new Error('Wallet client is required for write operations');
|
|
1162
912
|
}
|
|
1163
|
-
return this.contract.write.
|
|
913
|
+
return this.contract.write.transferFrom([_from, _to, _value], options);
|
|
1164
914
|
}
|
|
1165
915
|
/**
|
|
1166
|
-
*
|
|
916
|
+
* unpause
|
|
1167
917
|
* nonpayable
|
|
1168
918
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1169
919
|
*/
|
|
1170
|
-
async
|
|
920
|
+
async unpause(options) {
|
|
1171
921
|
if (!this.contract.write) {
|
|
1172
922
|
throw new Error('Wallet client is required for write operations');
|
|
1173
923
|
}
|
|
1174
|
-
return this.contract.write.
|
|
924
|
+
return this.contract.write.unpause(options);
|
|
1175
925
|
}
|
|
1176
926
|
/**
|
|
1177
|
-
*
|
|
927
|
+
* pause
|
|
1178
928
|
* nonpayable
|
|
1179
929
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1180
930
|
*/
|
|
1181
|
-
async
|
|
931
|
+
async pause(options) {
|
|
1182
932
|
if (!this.contract.write) {
|
|
1183
933
|
throw new Error('Wallet client is required for write operations');
|
|
1184
934
|
}
|
|
1185
|
-
return this.contract.write.
|
|
1186
|
-
}
|
|
1187
|
-
async permit(...args) {
|
|
1188
|
-
if (!this.contract.write) {
|
|
1189
|
-
throw new Error('Wallet client is required for write operations');
|
|
1190
|
-
}
|
|
1191
|
-
return this.contract.write.permit(args);
|
|
935
|
+
return this.contract.write.pause(options);
|
|
1192
936
|
}
|
|
1193
937
|
/**
|
|
1194
|
-
*
|
|
938
|
+
* transfer
|
|
1195
939
|
* nonpayable
|
|
1196
940
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1197
941
|
*/
|
|
1198
|
-
async
|
|
942
|
+
async transfer(_to, _value, options) {
|
|
1199
943
|
if (!this.contract.write) {
|
|
1200
944
|
throw new Error('Wallet client is required for write operations');
|
|
1201
945
|
}
|
|
1202
|
-
return this.contract.write.
|
|
946
|
+
return this.contract.write.transfer([_to, _value], options);
|
|
1203
947
|
}
|
|
1204
948
|
/**
|
|
1205
|
-
*
|
|
949
|
+
* setParams
|
|
1206
950
|
* nonpayable
|
|
1207
951
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1208
952
|
*/
|
|
1209
|
-
async
|
|
953
|
+
async setParams(newBasisPoints, newMaxFee, options) {
|
|
1210
954
|
if (!this.contract.write) {
|
|
1211
955
|
throw new Error('Wallet client is required for write operations');
|
|
1212
956
|
}
|
|
1213
|
-
return this.contract.write.
|
|
957
|
+
return this.contract.write.setParams([newBasisPoints, newMaxFee], options);
|
|
1214
958
|
}
|
|
1215
959
|
/**
|
|
1216
|
-
*
|
|
960
|
+
* issue
|
|
1217
961
|
* nonpayable
|
|
1218
962
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1219
963
|
*/
|
|
1220
|
-
async
|
|
964
|
+
async issue(amount, options) {
|
|
1221
965
|
if (!this.contract.write) {
|
|
1222
966
|
throw new Error('Wallet client is required for write operations');
|
|
1223
967
|
}
|
|
1224
|
-
return this.contract.write.
|
|
968
|
+
return this.contract.write.issue([amount], options);
|
|
1225
969
|
}
|
|
1226
970
|
/**
|
|
1227
|
-
*
|
|
971
|
+
* redeem
|
|
1228
972
|
* nonpayable
|
|
1229
973
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1230
974
|
*/
|
|
1231
|
-
async
|
|
975
|
+
async redeem(amount, options) {
|
|
1232
976
|
if (!this.contract.write) {
|
|
1233
977
|
throw new Error('Wallet client is required for write operations');
|
|
1234
978
|
}
|
|
1235
|
-
return this.contract.write.
|
|
979
|
+
return this.contract.write.redeem([amount], options);
|
|
1236
980
|
}
|
|
1237
981
|
/**
|
|
1238
|
-
*
|
|
982
|
+
* removeBlackList
|
|
1239
983
|
* nonpayable
|
|
1240
984
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1241
985
|
*/
|
|
1242
|
-
async
|
|
986
|
+
async removeBlackList(_clearedUser, options) {
|
|
1243
987
|
if (!this.contract.write) {
|
|
1244
988
|
throw new Error('Wallet client is required for write operations');
|
|
1245
989
|
}
|
|
1246
|
-
return this.contract.write.
|
|
990
|
+
return this.contract.write.removeBlackList([_clearedUser], options);
|
|
1247
991
|
}
|
|
1248
992
|
/**
|
|
1249
|
-
*
|
|
993
|
+
* transferOwnership
|
|
1250
994
|
* nonpayable
|
|
1251
995
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1252
996
|
*/
|
|
1253
|
-
async
|
|
997
|
+
async transferOwnership(newOwner, options) {
|
|
1254
998
|
if (!this.contract.write) {
|
|
1255
999
|
throw new Error('Wallet client is required for write operations');
|
|
1256
1000
|
}
|
|
1257
|
-
return this.contract.write.
|
|
1001
|
+
return this.contract.write.transferOwnership([newOwner], options);
|
|
1258
1002
|
}
|
|
1259
1003
|
/**
|
|
1260
|
-
*
|
|
1004
|
+
* destroyBlackFunds
|
|
1261
1005
|
* nonpayable
|
|
1262
1006
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1263
1007
|
*/
|
|
1264
|
-
async
|
|
1008
|
+
async destroyBlackFunds(_blackListedUser, options) {
|
|
1265
1009
|
if (!this.contract.write) {
|
|
1266
1010
|
throw new Error('Wallet client is required for write operations');
|
|
1267
1011
|
}
|
|
1268
|
-
return this.contract.write.
|
|
1012
|
+
return this.contract.write.destroyBlackFunds([_blackListedUser], options);
|
|
1269
1013
|
}
|
|
1270
1014
|
/**
|
|
1271
1015
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -1282,157 +1026,108 @@ class PermittableToken_json {
|
|
|
1282
1026
|
}
|
|
1283
1027
|
return {
|
|
1284
1028
|
/**
|
|
1285
|
-
* Simulate
|
|
1286
|
-
* Returns gas estimate and result without sending transaction
|
|
1287
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1288
|
-
*/
|
|
1289
|
-
async approve(_to, _value, options) {
|
|
1290
|
-
return contract.simulate.approve([_to, _value], options);
|
|
1291
|
-
},
|
|
1292
|
-
/**
|
|
1293
|
-
* Simulate setBridgeContract
|
|
1294
|
-
* Returns gas estimate and result without sending transaction
|
|
1295
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1296
|
-
*/
|
|
1297
|
-
async setBridgeContract(_bridgeContract, options) {
|
|
1298
|
-
return contract.simulate.setBridgeContract([_bridgeContract], options);
|
|
1299
|
-
},
|
|
1300
|
-
/**
|
|
1301
|
-
* Simulate transferFrom
|
|
1302
|
-
* Returns gas estimate and result without sending transaction
|
|
1303
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1304
|
-
*/
|
|
1305
|
-
async transferFrom(_sender, _recipient, _amount, options) {
|
|
1306
|
-
return contract.simulate.transferFrom([_sender, _recipient, _amount], options);
|
|
1307
|
-
},
|
|
1308
|
-
/**
|
|
1309
|
-
* Simulate increaseAllowance
|
|
1310
|
-
* Returns gas estimate and result without sending transaction
|
|
1311
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1312
|
-
*/
|
|
1313
|
-
async increaseAllowance(_to, _addedValue, options) {
|
|
1314
|
-
return contract.simulate.increaseAllowance([_to, _addedValue], options);
|
|
1315
|
-
},
|
|
1316
|
-
/**
|
|
1317
|
-
* Simulate transferAndCall
|
|
1318
|
-
* Returns gas estimate and result without sending transaction
|
|
1319
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1320
|
-
*/
|
|
1321
|
-
async transferAndCall(_to, _value, _data, options) {
|
|
1322
|
-
return contract.simulate.transferAndCall([_to, _value, _data], options);
|
|
1323
|
-
},
|
|
1324
|
-
/**
|
|
1325
|
-
* Simulate mint
|
|
1326
|
-
* Returns gas estimate and result without sending transaction
|
|
1327
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1328
|
-
*/
|
|
1329
|
-
async mint(_to, _amount, options) {
|
|
1330
|
-
return contract.simulate.mint([_to, _amount], options);
|
|
1331
|
-
},
|
|
1332
|
-
/**
|
|
1333
|
-
* Simulate burn
|
|
1029
|
+
* Simulate deprecate
|
|
1334
1030
|
* Returns gas estimate and result without sending transaction
|
|
1335
1031
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1336
1032
|
*/
|
|
1337
|
-
async
|
|
1338
|
-
return contract.simulate.
|
|
1033
|
+
async deprecate(_upgradedAddress, options) {
|
|
1034
|
+
return contract.simulate.deprecate([_upgradedAddress], options);
|
|
1339
1035
|
},
|
|
1340
1036
|
/**
|
|
1341
|
-
* Simulate
|
|
1037
|
+
* Simulate approve
|
|
1342
1038
|
* Returns gas estimate and result without sending transaction
|
|
1343
1039
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1344
1040
|
*/
|
|
1345
|
-
async
|
|
1346
|
-
return contract.simulate.
|
|
1041
|
+
async approve(_spender, _value, options) {
|
|
1042
|
+
return contract.simulate.approve([_spender, _value], options);
|
|
1347
1043
|
},
|
|
1348
1044
|
/**
|
|
1349
|
-
* Simulate
|
|
1045
|
+
* Simulate addBlackList
|
|
1350
1046
|
* Returns gas estimate and result without sending transaction
|
|
1351
1047
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1352
1048
|
*/
|
|
1353
|
-
async
|
|
1354
|
-
return contract.simulate.
|
|
1049
|
+
async addBlackList(_evilUser, options) {
|
|
1050
|
+
return contract.simulate.addBlackList([_evilUser], options);
|
|
1355
1051
|
},
|
|
1356
1052
|
/**
|
|
1357
|
-
* Simulate
|
|
1053
|
+
* Simulate transferFrom
|
|
1358
1054
|
* Returns gas estimate and result without sending transaction
|
|
1359
1055
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1360
1056
|
*/
|
|
1361
|
-
async
|
|
1362
|
-
return contract.simulate.
|
|
1057
|
+
async transferFrom(_from, _to, _value, options) {
|
|
1058
|
+
return contract.simulate.transferFrom([_from, _to, _value], options);
|
|
1363
1059
|
},
|
|
1364
1060
|
/**
|
|
1365
|
-
* Simulate
|
|
1061
|
+
* Simulate unpause
|
|
1366
1062
|
* Returns gas estimate and result without sending transaction
|
|
1367
1063
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1368
1064
|
*/
|
|
1369
|
-
async
|
|
1370
|
-
return contract.simulate.
|
|
1065
|
+
async unpause(options) {
|
|
1066
|
+
return contract.simulate.unpause(options);
|
|
1371
1067
|
},
|
|
1372
1068
|
/**
|
|
1373
|
-
* Simulate
|
|
1069
|
+
* Simulate pause
|
|
1374
1070
|
* Returns gas estimate and result without sending transaction
|
|
1375
|
-
* Supports multiple overloads: (address, address, uint256, uint256, bool, uint8, bytes32, bytes32), (address, address, uint256, uint256, uint8, bytes32, bytes32)
|
|
1376
1071
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1377
1072
|
*/
|
|
1378
|
-
async
|
|
1379
|
-
return contract.simulate.
|
|
1073
|
+
async pause(options) {
|
|
1074
|
+
return contract.simulate.pause(options);
|
|
1380
1075
|
},
|
|
1381
1076
|
/**
|
|
1382
|
-
* Simulate
|
|
1077
|
+
* Simulate transfer
|
|
1383
1078
|
* Returns gas estimate and result without sending transaction
|
|
1384
1079
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1385
1080
|
*/
|
|
1386
|
-
async
|
|
1387
|
-
return contract.simulate.
|
|
1081
|
+
async transfer(_to, _value, options) {
|
|
1082
|
+
return contract.simulate.transfer([_to, _value], options);
|
|
1388
1083
|
},
|
|
1389
1084
|
/**
|
|
1390
|
-
* Simulate
|
|
1085
|
+
* Simulate setParams
|
|
1391
1086
|
* Returns gas estimate and result without sending transaction
|
|
1392
1087
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1393
1088
|
*/
|
|
1394
|
-
async
|
|
1395
|
-
return contract.simulate.
|
|
1089
|
+
async setParams(newBasisPoints, newMaxFee, options) {
|
|
1090
|
+
return contract.simulate.setParams([newBasisPoints, newMaxFee], options);
|
|
1396
1091
|
},
|
|
1397
1092
|
/**
|
|
1398
|
-
* Simulate
|
|
1093
|
+
* Simulate issue
|
|
1399
1094
|
* Returns gas estimate and result without sending transaction
|
|
1400
1095
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1401
1096
|
*/
|
|
1402
|
-
async
|
|
1403
|
-
return contract.simulate.
|
|
1097
|
+
async issue(amount, options) {
|
|
1098
|
+
return contract.simulate.issue([amount], options);
|
|
1404
1099
|
},
|
|
1405
1100
|
/**
|
|
1406
|
-
* Simulate
|
|
1101
|
+
* Simulate redeem
|
|
1407
1102
|
* Returns gas estimate and result without sending transaction
|
|
1408
1103
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1409
1104
|
*/
|
|
1410
|
-
async
|
|
1411
|
-
return contract.simulate.
|
|
1105
|
+
async redeem(amount, options) {
|
|
1106
|
+
return contract.simulate.redeem([amount], options);
|
|
1412
1107
|
},
|
|
1413
1108
|
/**
|
|
1414
|
-
* Simulate
|
|
1109
|
+
* Simulate removeBlackList
|
|
1415
1110
|
* Returns gas estimate and result without sending transaction
|
|
1416
1111
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1417
1112
|
*/
|
|
1418
|
-
async
|
|
1419
|
-
return contract.simulate.
|
|
1113
|
+
async removeBlackList(_clearedUser, options) {
|
|
1114
|
+
return contract.simulate.removeBlackList([_clearedUser], options);
|
|
1420
1115
|
},
|
|
1421
1116
|
/**
|
|
1422
|
-
* Simulate
|
|
1117
|
+
* Simulate transferOwnership
|
|
1423
1118
|
* Returns gas estimate and result without sending transaction
|
|
1424
1119
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1425
1120
|
*/
|
|
1426
|
-
async
|
|
1427
|
-
return contract.simulate.
|
|
1121
|
+
async transferOwnership(newOwner, options) {
|
|
1122
|
+
return contract.simulate.transferOwnership([newOwner], options);
|
|
1428
1123
|
},
|
|
1429
1124
|
/**
|
|
1430
|
-
* Simulate
|
|
1125
|
+
* Simulate destroyBlackFunds
|
|
1431
1126
|
* Returns gas estimate and result without sending transaction
|
|
1432
1127
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1433
1128
|
*/
|
|
1434
|
-
async
|
|
1435
|
-
return contract.simulate.
|
|
1129
|
+
async destroyBlackFunds(_blackListedUser, options) {
|
|
1130
|
+
return contract.simulate.destroyBlackFunds([_blackListedUser], options);
|
|
1436
1131
|
}
|
|
1437
1132
|
};
|
|
1438
1133
|
}
|
|
@@ -1451,17 +1146,16 @@ class PermittableToken_json {
|
|
|
1451
1146
|
get watch() {
|
|
1452
1147
|
return {
|
|
1453
1148
|
/**
|
|
1454
|
-
* Watch
|
|
1149
|
+
* Watch Issue events
|
|
1455
1150
|
* @param callback Function to call when event is emitted
|
|
1456
1151
|
* @param filter Optional filter for indexed parameters
|
|
1457
1152
|
* @returns Unwatch function to stop listening
|
|
1458
1153
|
*/
|
|
1459
|
-
|
|
1154
|
+
Issue: (callback) => {
|
|
1460
1155
|
return this.publicClient.watchContractEvent({
|
|
1461
1156
|
address: this.contractAddress,
|
|
1462
|
-
abi: exports.
|
|
1463
|
-
eventName: '
|
|
1464
|
-
args: filter,
|
|
1157
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1158
|
+
eventName: 'Issue',
|
|
1465
1159
|
onLogs: (logs) => {
|
|
1466
1160
|
logs.forEach((log) => {
|
|
1467
1161
|
callback(log.args);
|
|
@@ -1470,16 +1164,16 @@ class PermittableToken_json {
|
|
|
1470
1164
|
});
|
|
1471
1165
|
},
|
|
1472
1166
|
/**
|
|
1473
|
-
* Watch
|
|
1167
|
+
* Watch Redeem events
|
|
1474
1168
|
* @param callback Function to call when event is emitted
|
|
1475
1169
|
* @param filter Optional filter for indexed parameters
|
|
1476
1170
|
* @returns Unwatch function to stop listening
|
|
1477
1171
|
*/
|
|
1478
|
-
|
|
1172
|
+
Redeem: (callback) => {
|
|
1479
1173
|
return this.publicClient.watchContractEvent({
|
|
1480
1174
|
address: this.contractAddress,
|
|
1481
|
-
abi: exports.
|
|
1482
|
-
eventName: '
|
|
1175
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1176
|
+
eventName: 'Redeem',
|
|
1483
1177
|
onLogs: (logs) => {
|
|
1484
1178
|
logs.forEach((log) => {
|
|
1485
1179
|
callback(log.args);
|
|
@@ -1488,17 +1182,16 @@ class PermittableToken_json {
|
|
|
1488
1182
|
});
|
|
1489
1183
|
},
|
|
1490
1184
|
/**
|
|
1491
|
-
* Watch
|
|
1185
|
+
* Watch Deprecate events
|
|
1492
1186
|
* @param callback Function to call when event is emitted
|
|
1493
1187
|
* @param filter Optional filter for indexed parameters
|
|
1494
1188
|
* @returns Unwatch function to stop listening
|
|
1495
1189
|
*/
|
|
1496
|
-
|
|
1190
|
+
Deprecate: (callback) => {
|
|
1497
1191
|
return this.publicClient.watchContractEvent({
|
|
1498
1192
|
address: this.contractAddress,
|
|
1499
|
-
abi: exports.
|
|
1500
|
-
eventName: '
|
|
1501
|
-
args: filter,
|
|
1193
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1194
|
+
eventName: 'Deprecate',
|
|
1502
1195
|
onLogs: (logs) => {
|
|
1503
1196
|
logs.forEach((log) => {
|
|
1504
1197
|
callback(log.args);
|
|
@@ -1507,17 +1200,70 @@ class PermittableToken_json {
|
|
|
1507
1200
|
});
|
|
1508
1201
|
},
|
|
1509
1202
|
/**
|
|
1510
|
-
* Watch
|
|
1203
|
+
* Watch Params events
|
|
1511
1204
|
* @param callback Function to call when event is emitted
|
|
1512
1205
|
* @param filter Optional filter for indexed parameters
|
|
1513
1206
|
* @returns Unwatch function to stop listening
|
|
1514
1207
|
*/
|
|
1515
|
-
|
|
1208
|
+
Params: (callback) => {
|
|
1516
1209
|
return this.publicClient.watchContractEvent({
|
|
1517
1210
|
address: this.contractAddress,
|
|
1518
|
-
abi: exports.
|
|
1519
|
-
eventName: '
|
|
1520
|
-
|
|
1211
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1212
|
+
eventName: 'Params',
|
|
1213
|
+
onLogs: (logs) => {
|
|
1214
|
+
logs.forEach((log) => {
|
|
1215
|
+
callback(log.args);
|
|
1216
|
+
});
|
|
1217
|
+
},
|
|
1218
|
+
});
|
|
1219
|
+
},
|
|
1220
|
+
/**
|
|
1221
|
+
* Watch DestroyedBlackFunds events
|
|
1222
|
+
* @param callback Function to call when event is emitted
|
|
1223
|
+
* @param filter Optional filter for indexed parameters
|
|
1224
|
+
* @returns Unwatch function to stop listening
|
|
1225
|
+
*/
|
|
1226
|
+
DestroyedBlackFunds: (callback) => {
|
|
1227
|
+
return this.publicClient.watchContractEvent({
|
|
1228
|
+
address: this.contractAddress,
|
|
1229
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1230
|
+
eventName: 'DestroyedBlackFunds',
|
|
1231
|
+
onLogs: (logs) => {
|
|
1232
|
+
logs.forEach((log) => {
|
|
1233
|
+
callback(log.args);
|
|
1234
|
+
});
|
|
1235
|
+
},
|
|
1236
|
+
});
|
|
1237
|
+
},
|
|
1238
|
+
/**
|
|
1239
|
+
* Watch AddedBlackList events
|
|
1240
|
+
* @param callback Function to call when event is emitted
|
|
1241
|
+
* @param filter Optional filter for indexed parameters
|
|
1242
|
+
* @returns Unwatch function to stop listening
|
|
1243
|
+
*/
|
|
1244
|
+
AddedBlackList: (callback) => {
|
|
1245
|
+
return this.publicClient.watchContractEvent({
|
|
1246
|
+
address: this.contractAddress,
|
|
1247
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1248
|
+
eventName: 'AddedBlackList',
|
|
1249
|
+
onLogs: (logs) => {
|
|
1250
|
+
logs.forEach((log) => {
|
|
1251
|
+
callback(log.args);
|
|
1252
|
+
});
|
|
1253
|
+
},
|
|
1254
|
+
});
|
|
1255
|
+
},
|
|
1256
|
+
/**
|
|
1257
|
+
* Watch RemovedBlackList events
|
|
1258
|
+
* @param callback Function to call when event is emitted
|
|
1259
|
+
* @param filter Optional filter for indexed parameters
|
|
1260
|
+
* @returns Unwatch function to stop listening
|
|
1261
|
+
*/
|
|
1262
|
+
RemovedBlackList: (callback) => {
|
|
1263
|
+
return this.publicClient.watchContractEvent({
|
|
1264
|
+
address: this.contractAddress,
|
|
1265
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1266
|
+
eventName: 'RemovedBlackList',
|
|
1521
1267
|
onLogs: (logs) => {
|
|
1522
1268
|
logs.forEach((log) => {
|
|
1523
1269
|
callback(log.args);
|
|
@@ -1526,16 +1272,16 @@ class PermittableToken_json {
|
|
|
1526
1272
|
});
|
|
1527
1273
|
},
|
|
1528
1274
|
/**
|
|
1529
|
-
* Watch
|
|
1275
|
+
* Watch Approval events
|
|
1530
1276
|
* @param callback Function to call when event is emitted
|
|
1531
1277
|
* @param filter Optional filter for indexed parameters
|
|
1532
1278
|
* @returns Unwatch function to stop listening
|
|
1533
1279
|
*/
|
|
1534
|
-
|
|
1280
|
+
Approval: (callback, filter) => {
|
|
1535
1281
|
return this.publicClient.watchContractEvent({
|
|
1536
1282
|
address: this.contractAddress,
|
|
1537
|
-
abi: exports.
|
|
1538
|
-
eventName: '
|
|
1283
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1284
|
+
eventName: 'Approval',
|
|
1539
1285
|
args: filter,
|
|
1540
1286
|
onLogs: (logs) => {
|
|
1541
1287
|
logs.forEach((log) => {
|
|
@@ -1553,7 +1299,7 @@ class PermittableToken_json {
|
|
|
1553
1299
|
Transfer: (callback, filter) => {
|
|
1554
1300
|
return this.publicClient.watchContractEvent({
|
|
1555
1301
|
address: this.contractAddress,
|
|
1556
|
-
abi: exports.
|
|
1302
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1557
1303
|
eventName: 'Transfer',
|
|
1558
1304
|
args: filter,
|
|
1559
1305
|
onLogs: (logs) => {
|
|
@@ -1564,17 +1310,34 @@ class PermittableToken_json {
|
|
|
1564
1310
|
});
|
|
1565
1311
|
},
|
|
1566
1312
|
/**
|
|
1567
|
-
* Watch
|
|
1313
|
+
* Watch Pause events
|
|
1568
1314
|
* @param callback Function to call when event is emitted
|
|
1569
1315
|
* @param filter Optional filter for indexed parameters
|
|
1570
1316
|
* @returns Unwatch function to stop listening
|
|
1571
1317
|
*/
|
|
1572
|
-
|
|
1318
|
+
Pause: (callback) => {
|
|
1573
1319
|
return this.publicClient.watchContractEvent({
|
|
1574
1320
|
address: this.contractAddress,
|
|
1575
|
-
abi: exports.
|
|
1576
|
-
eventName: '
|
|
1577
|
-
|
|
1321
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1322
|
+
eventName: 'Pause',
|
|
1323
|
+
onLogs: (logs) => {
|
|
1324
|
+
logs.forEach((log) => {
|
|
1325
|
+
callback(log.args);
|
|
1326
|
+
});
|
|
1327
|
+
},
|
|
1328
|
+
});
|
|
1329
|
+
},
|
|
1330
|
+
/**
|
|
1331
|
+
* Watch Unpause events
|
|
1332
|
+
* @param callback Function to call when event is emitted
|
|
1333
|
+
* @param filter Optional filter for indexed parameters
|
|
1334
|
+
* @returns Unwatch function to stop listening
|
|
1335
|
+
*/
|
|
1336
|
+
Unpause: (callback) => {
|
|
1337
|
+
return this.publicClient.watchContractEvent({
|
|
1338
|
+
address: this.contractAddress,
|
|
1339
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1340
|
+
eventName: 'Unpause',
|
|
1578
1341
|
onLogs: (logs) => {
|
|
1579
1342
|
logs.forEach((log) => {
|
|
1580
1343
|
callback(log.args);
|
|
@@ -1585,4 +1348,4 @@ class PermittableToken_json {
|
|
|
1585
1348
|
};
|
|
1586
1349
|
}
|
|
1587
1350
|
}
|
|
1588
|
-
exports.
|
|
1351
|
+
exports.TetherToken_json = TetherToken_json;
|