@gitmyabi/usdt 1.0.28 → 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 +3 -3
- package/contracts/{ERC20Token_json.d.ts → TetherToken_json.d.ts} +648 -329
- package/contracts/{ERC20Token_json.js → TetherToken_json.js} +738 -361
- package/contracts/{ERC20Token_json.ts → TetherToken_json.ts} +835 -371
- 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,538 +1,685 @@
|
|
|
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
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
12
|
+
"constant": true,
|
|
13
|
+
"inputs": [],
|
|
14
|
+
"name": "name",
|
|
15
|
+
"outputs": [
|
|
18
16
|
{
|
|
19
|
-
"
|
|
20
|
-
"name": "initialSymbol",
|
|
17
|
+
"name": "",
|
|
21
18
|
"type": "string"
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"payable": false,
|
|
22
|
+
"stateMutability": "view",
|
|
23
|
+
"type": "function"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"constant": false,
|
|
27
|
+
"inputs": [
|
|
28
28
|
{
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"type": "uint8"
|
|
29
|
+
"name": "_upgradedAddress",
|
|
30
|
+
"type": "address"
|
|
32
31
|
}
|
|
33
32
|
],
|
|
33
|
+
"name": "deprecate",
|
|
34
|
+
"outputs": [],
|
|
35
|
+
"payable": false,
|
|
34
36
|
"stateMutability": "nonpayable",
|
|
35
|
-
"type": "
|
|
37
|
+
"type": "function"
|
|
36
38
|
},
|
|
37
39
|
{
|
|
40
|
+
"constant": false,
|
|
38
41
|
"inputs": [
|
|
39
42
|
{
|
|
40
|
-
"
|
|
41
|
-
"name": "spender",
|
|
43
|
+
"name": "_spender",
|
|
42
44
|
"type": "address"
|
|
43
45
|
},
|
|
44
46
|
{
|
|
45
|
-
"
|
|
46
|
-
"name": "allowance",
|
|
47
|
+
"name": "_value",
|
|
47
48
|
"type": "uint256"
|
|
48
|
-
}
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"name": "approve",
|
|
52
|
+
"outputs": [],
|
|
53
|
+
"payable": false,
|
|
54
|
+
"stateMutability": "nonpayable",
|
|
55
|
+
"type": "function"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"constant": true,
|
|
59
|
+
"inputs": [],
|
|
60
|
+
"name": "deprecated",
|
|
61
|
+
"outputs": [
|
|
62
|
+
{
|
|
63
|
+
"name": "",
|
|
64
|
+
"type": "bool"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"payable": false,
|
|
68
|
+
"stateMutability": "view",
|
|
69
|
+
"type": "function"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"constant": false,
|
|
73
|
+
"inputs": [
|
|
49
74
|
{
|
|
50
|
-
"
|
|
51
|
-
"
|
|
75
|
+
"name": "_evilUser",
|
|
76
|
+
"type": "address"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"name": "addBlackList",
|
|
80
|
+
"outputs": [],
|
|
81
|
+
"payable": false,
|
|
82
|
+
"stateMutability": "nonpayable",
|
|
83
|
+
"type": "function"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"constant": true,
|
|
87
|
+
"inputs": [],
|
|
88
|
+
"name": "totalSupply",
|
|
89
|
+
"outputs": [
|
|
90
|
+
{
|
|
91
|
+
"name": "",
|
|
52
92
|
"type": "uint256"
|
|
53
93
|
}
|
|
54
94
|
],
|
|
55
|
-
"
|
|
56
|
-
"
|
|
95
|
+
"payable": false,
|
|
96
|
+
"stateMutability": "view",
|
|
97
|
+
"type": "function"
|
|
57
98
|
},
|
|
58
99
|
{
|
|
100
|
+
"constant": false,
|
|
59
101
|
"inputs": [
|
|
60
102
|
{
|
|
61
|
-
"
|
|
62
|
-
"name": "sender",
|
|
103
|
+
"name": "_from",
|
|
63
104
|
"type": "address"
|
|
64
105
|
},
|
|
65
106
|
{
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"type": "uint256"
|
|
107
|
+
"name": "_to",
|
|
108
|
+
"type": "address"
|
|
69
109
|
},
|
|
70
110
|
{
|
|
71
|
-
"
|
|
72
|
-
"name": "needed",
|
|
111
|
+
"name": "_value",
|
|
73
112
|
"type": "uint256"
|
|
74
113
|
}
|
|
75
114
|
],
|
|
76
|
-
"name": "
|
|
77
|
-
"
|
|
115
|
+
"name": "transferFrom",
|
|
116
|
+
"outputs": [],
|
|
117
|
+
"payable": false,
|
|
118
|
+
"stateMutability": "nonpayable",
|
|
119
|
+
"type": "function"
|
|
78
120
|
},
|
|
79
121
|
{
|
|
80
|
-
"
|
|
122
|
+
"constant": true,
|
|
123
|
+
"inputs": [],
|
|
124
|
+
"name": "upgradedAddress",
|
|
125
|
+
"outputs": [
|
|
81
126
|
{
|
|
82
|
-
"
|
|
83
|
-
"name": "approver",
|
|
127
|
+
"name": "",
|
|
84
128
|
"type": "address"
|
|
85
129
|
}
|
|
86
130
|
],
|
|
87
|
-
"
|
|
88
|
-
"
|
|
131
|
+
"payable": false,
|
|
132
|
+
"stateMutability": "view",
|
|
133
|
+
"type": "function"
|
|
89
134
|
},
|
|
90
135
|
{
|
|
136
|
+
"constant": true,
|
|
91
137
|
"inputs": [
|
|
92
138
|
{
|
|
93
|
-
"
|
|
94
|
-
"name": "receiver",
|
|
139
|
+
"name": "",
|
|
95
140
|
"type": "address"
|
|
96
141
|
}
|
|
97
142
|
],
|
|
98
|
-
"name": "
|
|
99
|
-
"
|
|
143
|
+
"name": "balances",
|
|
144
|
+
"outputs": [
|
|
145
|
+
{
|
|
146
|
+
"name": "",
|
|
147
|
+
"type": "uint256"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"payable": false,
|
|
151
|
+
"stateMutability": "view",
|
|
152
|
+
"type": "function"
|
|
100
153
|
},
|
|
101
154
|
{
|
|
102
|
-
"
|
|
155
|
+
"constant": true,
|
|
156
|
+
"inputs": [],
|
|
157
|
+
"name": "decimals",
|
|
158
|
+
"outputs": [
|
|
103
159
|
{
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"type": "address"
|
|
160
|
+
"name": "",
|
|
161
|
+
"type": "uint256"
|
|
107
162
|
}
|
|
108
163
|
],
|
|
109
|
-
"
|
|
110
|
-
"
|
|
164
|
+
"payable": false,
|
|
165
|
+
"stateMutability": "view",
|
|
166
|
+
"type": "function"
|
|
111
167
|
},
|
|
112
168
|
{
|
|
113
|
-
"
|
|
169
|
+
"constant": true,
|
|
170
|
+
"inputs": [],
|
|
171
|
+
"name": "maximumFee",
|
|
172
|
+
"outputs": [
|
|
114
173
|
{
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"type": "address"
|
|
174
|
+
"name": "",
|
|
175
|
+
"type": "uint256"
|
|
118
176
|
}
|
|
119
177
|
],
|
|
120
|
-
"
|
|
121
|
-
"
|
|
178
|
+
"payable": false,
|
|
179
|
+
"stateMutability": "view",
|
|
180
|
+
"type": "function"
|
|
122
181
|
},
|
|
123
182
|
{
|
|
124
|
-
"
|
|
183
|
+
"constant": true,
|
|
184
|
+
"inputs": [],
|
|
185
|
+
"name": "_totalSupply",
|
|
186
|
+
"outputs": [
|
|
125
187
|
{
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"type": "address"
|
|
188
|
+
"name": "",
|
|
189
|
+
"type": "uint256"
|
|
129
190
|
}
|
|
130
191
|
],
|
|
131
|
-
"
|
|
132
|
-
"
|
|
192
|
+
"payable": false,
|
|
193
|
+
"stateMutability": "view",
|
|
194
|
+
"type": "function"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"constant": false,
|
|
198
|
+
"inputs": [],
|
|
199
|
+
"name": "unpause",
|
|
200
|
+
"outputs": [],
|
|
201
|
+
"payable": false,
|
|
202
|
+
"stateMutability": "nonpayable",
|
|
203
|
+
"type": "function"
|
|
133
204
|
},
|
|
134
205
|
{
|
|
206
|
+
"constant": true,
|
|
135
207
|
"inputs": [
|
|
136
208
|
{
|
|
137
|
-
"
|
|
138
|
-
"name": "account",
|
|
209
|
+
"name": "_maker",
|
|
139
210
|
"type": "address"
|
|
140
211
|
}
|
|
141
212
|
],
|
|
142
|
-
"name": "
|
|
143
|
-
"
|
|
213
|
+
"name": "getBlackListStatus",
|
|
214
|
+
"outputs": [
|
|
215
|
+
{
|
|
216
|
+
"name": "",
|
|
217
|
+
"type": "bool"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"payable": false,
|
|
221
|
+
"stateMutability": "view",
|
|
222
|
+
"type": "function"
|
|
144
223
|
},
|
|
145
224
|
{
|
|
146
|
-
"
|
|
225
|
+
"constant": true,
|
|
147
226
|
"inputs": [
|
|
148
227
|
{
|
|
149
|
-
"
|
|
150
|
-
"internalType": "address",
|
|
151
|
-
"name": "owner",
|
|
228
|
+
"name": "",
|
|
152
229
|
"type": "address"
|
|
153
230
|
},
|
|
154
231
|
{
|
|
155
|
-
"
|
|
156
|
-
"internalType": "address",
|
|
157
|
-
"name": "spender",
|
|
232
|
+
"name": "",
|
|
158
233
|
"type": "address"
|
|
159
|
-
}
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"name": "allowed",
|
|
237
|
+
"outputs": [
|
|
160
238
|
{
|
|
161
|
-
"
|
|
162
|
-
"internalType": "uint256",
|
|
163
|
-
"name": "value",
|
|
239
|
+
"name": "",
|
|
164
240
|
"type": "uint256"
|
|
165
241
|
}
|
|
166
242
|
],
|
|
167
|
-
"
|
|
168
|
-
"
|
|
243
|
+
"payable": false,
|
|
244
|
+
"stateMutability": "view",
|
|
245
|
+
"type": "function"
|
|
169
246
|
},
|
|
170
247
|
{
|
|
171
|
-
"
|
|
248
|
+
"constant": true,
|
|
249
|
+
"inputs": [],
|
|
250
|
+
"name": "paused",
|
|
251
|
+
"outputs": [
|
|
252
|
+
{
|
|
253
|
+
"name": "",
|
|
254
|
+
"type": "bool"
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
"payable": false,
|
|
258
|
+
"stateMutability": "view",
|
|
259
|
+
"type": "function"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"constant": true,
|
|
172
263
|
"inputs": [
|
|
173
264
|
{
|
|
174
|
-
"
|
|
175
|
-
"internalType": "address",
|
|
176
|
-
"name": "previousOwner",
|
|
265
|
+
"name": "who",
|
|
177
266
|
"type": "address"
|
|
178
|
-
}
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"name": "balanceOf",
|
|
270
|
+
"outputs": [
|
|
179
271
|
{
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"name": "newOwner",
|
|
183
|
-
"type": "address"
|
|
272
|
+
"name": "",
|
|
273
|
+
"type": "uint256"
|
|
184
274
|
}
|
|
185
275
|
],
|
|
186
|
-
"
|
|
187
|
-
"
|
|
276
|
+
"payable": false,
|
|
277
|
+
"stateMutability": "view",
|
|
278
|
+
"type": "function"
|
|
188
279
|
},
|
|
189
280
|
{
|
|
190
|
-
"
|
|
191
|
-
"inputs": [
|
|
281
|
+
"constant": false,
|
|
282
|
+
"inputs": [],
|
|
283
|
+
"name": "pause",
|
|
284
|
+
"outputs": [],
|
|
285
|
+
"payable": false,
|
|
286
|
+
"stateMutability": "nonpayable",
|
|
287
|
+
"type": "function"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"constant": true,
|
|
291
|
+
"inputs": [],
|
|
292
|
+
"name": "getOwner",
|
|
293
|
+
"outputs": [
|
|
192
294
|
{
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"name": "precision",
|
|
196
|
-
"type": "uint8"
|
|
295
|
+
"name": "",
|
|
296
|
+
"type": "address"
|
|
197
297
|
}
|
|
198
298
|
],
|
|
199
|
-
"
|
|
200
|
-
"
|
|
299
|
+
"payable": false,
|
|
300
|
+
"stateMutability": "view",
|
|
301
|
+
"type": "function"
|
|
201
302
|
},
|
|
202
303
|
{
|
|
203
|
-
"
|
|
204
|
-
"inputs": [
|
|
304
|
+
"constant": true,
|
|
305
|
+
"inputs": [],
|
|
306
|
+
"name": "owner",
|
|
307
|
+
"outputs": [
|
|
205
308
|
{
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"name": "name",
|
|
209
|
-
"type": "string"
|
|
309
|
+
"name": "",
|
|
310
|
+
"type": "address"
|
|
210
311
|
}
|
|
211
312
|
],
|
|
212
|
-
"
|
|
213
|
-
"
|
|
313
|
+
"payable": false,
|
|
314
|
+
"stateMutability": "view",
|
|
315
|
+
"type": "function"
|
|
214
316
|
},
|
|
215
317
|
{
|
|
216
|
-
"
|
|
217
|
-
"inputs": [
|
|
318
|
+
"constant": true,
|
|
319
|
+
"inputs": [],
|
|
320
|
+
"name": "symbol",
|
|
321
|
+
"outputs": [
|
|
218
322
|
{
|
|
219
|
-
"
|
|
220
|
-
"internalType": "string",
|
|
221
|
-
"name": "symbol",
|
|
323
|
+
"name": "",
|
|
222
324
|
"type": "string"
|
|
223
325
|
}
|
|
224
326
|
],
|
|
225
|
-
"
|
|
226
|
-
"
|
|
327
|
+
"payable": false,
|
|
328
|
+
"stateMutability": "view",
|
|
329
|
+
"type": "function"
|
|
227
330
|
},
|
|
228
331
|
{
|
|
229
|
-
"
|
|
332
|
+
"constant": false,
|
|
230
333
|
"inputs": [
|
|
231
334
|
{
|
|
232
|
-
"
|
|
233
|
-
"internalType": "address",
|
|
234
|
-
"name": "from",
|
|
235
|
-
"type": "address"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"indexed": true,
|
|
239
|
-
"internalType": "address",
|
|
240
|
-
"name": "to",
|
|
335
|
+
"name": "_to",
|
|
241
336
|
"type": "address"
|
|
242
337
|
},
|
|
243
338
|
{
|
|
244
|
-
"
|
|
245
|
-
"internalType": "uint256",
|
|
246
|
-
"name": "value",
|
|
339
|
+
"name": "_value",
|
|
247
340
|
"type": "uint256"
|
|
248
341
|
}
|
|
249
342
|
],
|
|
250
|
-
"name": "
|
|
251
|
-
"
|
|
343
|
+
"name": "transfer",
|
|
344
|
+
"outputs": [],
|
|
345
|
+
"payable": false,
|
|
346
|
+
"stateMutability": "nonpayable",
|
|
347
|
+
"type": "function"
|
|
252
348
|
},
|
|
253
349
|
{
|
|
350
|
+
"constant": false,
|
|
254
351
|
"inputs": [
|
|
255
352
|
{
|
|
256
|
-
"
|
|
257
|
-
"
|
|
258
|
-
"type": "address"
|
|
353
|
+
"name": "newBasisPoints",
|
|
354
|
+
"type": "uint256"
|
|
259
355
|
},
|
|
260
356
|
{
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
"type": "address"
|
|
357
|
+
"name": "newMaxFee",
|
|
358
|
+
"type": "uint256"
|
|
264
359
|
}
|
|
265
360
|
],
|
|
266
|
-
"name": "
|
|
267
|
-
"outputs": [
|
|
361
|
+
"name": "setParams",
|
|
362
|
+
"outputs": [],
|
|
363
|
+
"payable": false,
|
|
364
|
+
"stateMutability": "nonpayable",
|
|
365
|
+
"type": "function"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"constant": false,
|
|
369
|
+
"inputs": [
|
|
268
370
|
{
|
|
269
|
-
"
|
|
270
|
-
"name": "",
|
|
371
|
+
"name": "amount",
|
|
271
372
|
"type": "uint256"
|
|
272
373
|
}
|
|
273
374
|
],
|
|
274
|
-
"
|
|
375
|
+
"name": "issue",
|
|
376
|
+
"outputs": [],
|
|
377
|
+
"payable": false,
|
|
378
|
+
"stateMutability": "nonpayable",
|
|
275
379
|
"type": "function"
|
|
276
380
|
},
|
|
277
381
|
{
|
|
382
|
+
"constant": false,
|
|
278
383
|
"inputs": [
|
|
279
384
|
{
|
|
280
|
-
"
|
|
281
|
-
"
|
|
385
|
+
"name": "amount",
|
|
386
|
+
"type": "uint256"
|
|
387
|
+
}
|
|
388
|
+
],
|
|
389
|
+
"name": "redeem",
|
|
390
|
+
"outputs": [],
|
|
391
|
+
"payable": false,
|
|
392
|
+
"stateMutability": "nonpayable",
|
|
393
|
+
"type": "function"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"constant": true,
|
|
397
|
+
"inputs": [
|
|
398
|
+
{
|
|
399
|
+
"name": "_owner",
|
|
282
400
|
"type": "address"
|
|
283
401
|
},
|
|
284
402
|
{
|
|
285
|
-
"
|
|
286
|
-
"
|
|
403
|
+
"name": "_spender",
|
|
404
|
+
"type": "address"
|
|
405
|
+
}
|
|
406
|
+
],
|
|
407
|
+
"name": "allowance",
|
|
408
|
+
"outputs": [
|
|
409
|
+
{
|
|
410
|
+
"name": "remaining",
|
|
287
411
|
"type": "uint256"
|
|
288
412
|
}
|
|
289
413
|
],
|
|
290
|
-
"
|
|
414
|
+
"payable": false,
|
|
415
|
+
"stateMutability": "view",
|
|
416
|
+
"type": "function"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"constant": true,
|
|
420
|
+
"inputs": [],
|
|
421
|
+
"name": "basisPointsRate",
|
|
291
422
|
"outputs": [
|
|
292
423
|
{
|
|
293
|
-
"internalType": "bool",
|
|
294
424
|
"name": "",
|
|
295
|
-
"type": "
|
|
425
|
+
"type": "uint256"
|
|
296
426
|
}
|
|
297
427
|
],
|
|
298
|
-
"
|
|
428
|
+
"payable": false,
|
|
429
|
+
"stateMutability": "view",
|
|
299
430
|
"type": "function"
|
|
300
431
|
},
|
|
301
432
|
{
|
|
433
|
+
"constant": true,
|
|
302
434
|
"inputs": [
|
|
303
435
|
{
|
|
304
|
-
"
|
|
305
|
-
"name": "account",
|
|
436
|
+
"name": "",
|
|
306
437
|
"type": "address"
|
|
307
438
|
}
|
|
308
439
|
],
|
|
309
|
-
"name": "
|
|
440
|
+
"name": "isBlackListed",
|
|
310
441
|
"outputs": [
|
|
311
442
|
{
|
|
312
|
-
"internalType": "uint256",
|
|
313
443
|
"name": "",
|
|
314
|
-
"type": "
|
|
444
|
+
"type": "bool"
|
|
315
445
|
}
|
|
316
446
|
],
|
|
447
|
+
"payable": false,
|
|
317
448
|
"stateMutability": "view",
|
|
318
449
|
"type": "function"
|
|
319
450
|
},
|
|
320
451
|
{
|
|
452
|
+
"constant": false,
|
|
321
453
|
"inputs": [
|
|
322
454
|
{
|
|
323
|
-
"
|
|
324
|
-
"name": "account",
|
|
455
|
+
"name": "_clearedUser",
|
|
325
456
|
"type": "address"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"internalType": "uint256",
|
|
329
|
-
"name": "amount",
|
|
330
|
-
"type": "uint256"
|
|
331
457
|
}
|
|
332
458
|
],
|
|
333
|
-
"name": "
|
|
459
|
+
"name": "removeBlackList",
|
|
334
460
|
"outputs": [],
|
|
461
|
+
"payable": false,
|
|
335
462
|
"stateMutability": "nonpayable",
|
|
336
463
|
"type": "function"
|
|
337
464
|
},
|
|
338
465
|
{
|
|
466
|
+
"constant": true,
|
|
339
467
|
"inputs": [],
|
|
340
|
-
"name": "
|
|
468
|
+
"name": "MAX_UINT",
|
|
341
469
|
"outputs": [
|
|
342
470
|
{
|
|
343
|
-
"internalType": "uint8",
|
|
344
471
|
"name": "",
|
|
345
|
-
"type": "
|
|
472
|
+
"type": "uint256"
|
|
346
473
|
}
|
|
347
474
|
],
|
|
475
|
+
"payable": false,
|
|
348
476
|
"stateMutability": "view",
|
|
349
477
|
"type": "function"
|
|
350
478
|
},
|
|
351
479
|
{
|
|
480
|
+
"constant": false,
|
|
352
481
|
"inputs": [
|
|
353
482
|
{
|
|
354
|
-
"
|
|
355
|
-
"name": "account",
|
|
483
|
+
"name": "newOwner",
|
|
356
484
|
"type": "address"
|
|
357
|
-
}
|
|
485
|
+
}
|
|
486
|
+
],
|
|
487
|
+
"name": "transferOwnership",
|
|
488
|
+
"outputs": [],
|
|
489
|
+
"payable": false,
|
|
490
|
+
"stateMutability": "nonpayable",
|
|
491
|
+
"type": "function"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"constant": false,
|
|
495
|
+
"inputs": [
|
|
358
496
|
{
|
|
359
|
-
"
|
|
360
|
-
"
|
|
361
|
-
"type": "uint256"
|
|
497
|
+
"name": "_blackListedUser",
|
|
498
|
+
"type": "address"
|
|
362
499
|
}
|
|
363
500
|
],
|
|
364
|
-
"name": "
|
|
501
|
+
"name": "destroyBlackFunds",
|
|
365
502
|
"outputs": [],
|
|
503
|
+
"payable": false,
|
|
366
504
|
"stateMutability": "nonpayable",
|
|
367
505
|
"type": "function"
|
|
368
506
|
},
|
|
369
507
|
{
|
|
370
|
-
"inputs": [
|
|
371
|
-
"name": "name",
|
|
372
|
-
"outputs": [
|
|
508
|
+
"inputs": [
|
|
373
509
|
{
|
|
374
|
-
"
|
|
375
|
-
"
|
|
510
|
+
"name": "_initialSupply",
|
|
511
|
+
"type": "uint256"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "_name",
|
|
515
|
+
"type": "string"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"name": "_symbol",
|
|
376
519
|
"type": "string"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"name": "_decimals",
|
|
523
|
+
"type": "uint256"
|
|
377
524
|
}
|
|
378
525
|
],
|
|
379
|
-
"
|
|
380
|
-
"
|
|
526
|
+
"payable": false,
|
|
527
|
+
"stateMutability": "nonpayable",
|
|
528
|
+
"type": "constructor"
|
|
381
529
|
},
|
|
382
530
|
{
|
|
383
|
-
"
|
|
384
|
-
"
|
|
385
|
-
"outputs": [
|
|
531
|
+
"anonymous": false,
|
|
532
|
+
"inputs": [
|
|
386
533
|
{
|
|
387
|
-
"
|
|
388
|
-
"name": "",
|
|
389
|
-
"type": "
|
|
534
|
+
"indexed": false,
|
|
535
|
+
"name": "amount",
|
|
536
|
+
"type": "uint256"
|
|
390
537
|
}
|
|
391
538
|
],
|
|
392
|
-
"
|
|
393
|
-
"type": "
|
|
539
|
+
"name": "Issue",
|
|
540
|
+
"type": "event"
|
|
394
541
|
},
|
|
395
542
|
{
|
|
396
|
-
"
|
|
397
|
-
"
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
543
|
+
"anonymous": false,
|
|
544
|
+
"inputs": [
|
|
545
|
+
{
|
|
546
|
+
"indexed": false,
|
|
547
|
+
"name": "amount",
|
|
548
|
+
"type": "uint256"
|
|
549
|
+
}
|
|
550
|
+
],
|
|
551
|
+
"name": "Redeem",
|
|
552
|
+
"type": "event"
|
|
401
553
|
},
|
|
402
554
|
{
|
|
555
|
+
"anonymous": false,
|
|
403
556
|
"inputs": [
|
|
404
557
|
{
|
|
405
|
-
"
|
|
406
|
-
"name": "
|
|
407
|
-
"type": "
|
|
558
|
+
"indexed": false,
|
|
559
|
+
"name": "newAddress",
|
|
560
|
+
"type": "address"
|
|
408
561
|
}
|
|
409
562
|
],
|
|
410
|
-
"name": "
|
|
411
|
-
"
|
|
412
|
-
"stateMutability": "nonpayable",
|
|
413
|
-
"type": "function"
|
|
563
|
+
"name": "Deprecate",
|
|
564
|
+
"type": "event"
|
|
414
565
|
},
|
|
415
566
|
{
|
|
567
|
+
"anonymous": false,
|
|
416
568
|
"inputs": [
|
|
417
569
|
{
|
|
418
|
-
"
|
|
419
|
-
"name": "
|
|
420
|
-
"type": "
|
|
570
|
+
"indexed": false,
|
|
571
|
+
"name": "feeBasisPoints",
|
|
572
|
+
"type": "uint256"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"indexed": false,
|
|
576
|
+
"name": "maxFee",
|
|
577
|
+
"type": "uint256"
|
|
421
578
|
}
|
|
422
579
|
],
|
|
423
|
-
"name": "
|
|
424
|
-
"
|
|
425
|
-
"stateMutability": "nonpayable",
|
|
426
|
-
"type": "function"
|
|
580
|
+
"name": "Params",
|
|
581
|
+
"type": "event"
|
|
427
582
|
},
|
|
428
583
|
{
|
|
584
|
+
"anonymous": false,
|
|
429
585
|
"inputs": [
|
|
430
586
|
{
|
|
431
|
-
"
|
|
432
|
-
"name": "
|
|
433
|
-
"type": "
|
|
587
|
+
"indexed": false,
|
|
588
|
+
"name": "_blackListedUser",
|
|
589
|
+
"type": "address"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"indexed": false,
|
|
593
|
+
"name": "_balance",
|
|
594
|
+
"type": "uint256"
|
|
434
595
|
}
|
|
435
596
|
],
|
|
436
|
-
"name": "
|
|
437
|
-
"
|
|
438
|
-
"stateMutability": "nonpayable",
|
|
439
|
-
"type": "function"
|
|
597
|
+
"name": "DestroyedBlackFunds",
|
|
598
|
+
"type": "event"
|
|
440
599
|
},
|
|
441
600
|
{
|
|
442
|
-
"
|
|
443
|
-
"
|
|
444
|
-
"outputs": [
|
|
601
|
+
"anonymous": false,
|
|
602
|
+
"inputs": [
|
|
445
603
|
{
|
|
446
|
-
"
|
|
447
|
-
"name": "",
|
|
448
|
-
"type": "
|
|
604
|
+
"indexed": false,
|
|
605
|
+
"name": "_user",
|
|
606
|
+
"type": "address"
|
|
449
607
|
}
|
|
450
608
|
],
|
|
451
|
-
"
|
|
452
|
-
"type": "
|
|
609
|
+
"name": "AddedBlackList",
|
|
610
|
+
"type": "event"
|
|
453
611
|
},
|
|
454
612
|
{
|
|
455
|
-
"
|
|
456
|
-
"
|
|
457
|
-
"outputs": [
|
|
613
|
+
"anonymous": false,
|
|
614
|
+
"inputs": [
|
|
458
615
|
{
|
|
459
|
-
"
|
|
460
|
-
"name": "",
|
|
461
|
-
"type": "
|
|
616
|
+
"indexed": false,
|
|
617
|
+
"name": "_user",
|
|
618
|
+
"type": "address"
|
|
462
619
|
}
|
|
463
620
|
],
|
|
464
|
-
"
|
|
465
|
-
"type": "
|
|
621
|
+
"name": "RemovedBlackList",
|
|
622
|
+
"type": "event"
|
|
466
623
|
},
|
|
467
624
|
{
|
|
625
|
+
"anonymous": false,
|
|
468
626
|
"inputs": [
|
|
469
627
|
{
|
|
470
|
-
"
|
|
471
|
-
"name": "
|
|
628
|
+
"indexed": true,
|
|
629
|
+
"name": "owner",
|
|
472
630
|
"type": "address"
|
|
473
631
|
},
|
|
474
632
|
{
|
|
475
|
-
"
|
|
633
|
+
"indexed": true,
|
|
634
|
+
"name": "spender",
|
|
635
|
+
"type": "address"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"indexed": false,
|
|
476
639
|
"name": "value",
|
|
477
640
|
"type": "uint256"
|
|
478
641
|
}
|
|
479
642
|
],
|
|
480
|
-
"name": "
|
|
481
|
-
"
|
|
482
|
-
{
|
|
483
|
-
"internalType": "bool",
|
|
484
|
-
"name": "",
|
|
485
|
-
"type": "bool"
|
|
486
|
-
}
|
|
487
|
-
],
|
|
488
|
-
"stateMutability": "nonpayable",
|
|
489
|
-
"type": "function"
|
|
643
|
+
"name": "Approval",
|
|
644
|
+
"type": "event"
|
|
490
645
|
},
|
|
491
646
|
{
|
|
647
|
+
"anonymous": false,
|
|
492
648
|
"inputs": [
|
|
493
649
|
{
|
|
494
|
-
"
|
|
650
|
+
"indexed": true,
|
|
495
651
|
"name": "from",
|
|
496
652
|
"type": "address"
|
|
497
653
|
},
|
|
498
654
|
{
|
|
499
|
-
"
|
|
655
|
+
"indexed": true,
|
|
500
656
|
"name": "to",
|
|
501
657
|
"type": "address"
|
|
502
658
|
},
|
|
503
659
|
{
|
|
504
|
-
"
|
|
660
|
+
"indexed": false,
|
|
505
661
|
"name": "value",
|
|
506
662
|
"type": "uint256"
|
|
507
663
|
}
|
|
508
664
|
],
|
|
509
|
-
"name": "
|
|
510
|
-
"
|
|
511
|
-
{
|
|
512
|
-
"internalType": "bool",
|
|
513
|
-
"name": "",
|
|
514
|
-
"type": "bool"
|
|
515
|
-
}
|
|
516
|
-
],
|
|
517
|
-
"stateMutability": "nonpayable",
|
|
518
|
-
"type": "function"
|
|
665
|
+
"name": "Transfer",
|
|
666
|
+
"type": "event"
|
|
519
667
|
},
|
|
520
668
|
{
|
|
521
|
-
"
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
"
|
|
529
|
-
"
|
|
530
|
-
"
|
|
531
|
-
"type": "function"
|
|
669
|
+
"anonymous": false,
|
|
670
|
+
"inputs": [],
|
|
671
|
+
"name": "Pause",
|
|
672
|
+
"type": "event"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"anonymous": false,
|
|
676
|
+
"inputs": [],
|
|
677
|
+
"name": "Unpause",
|
|
678
|
+
"type": "event"
|
|
532
679
|
}
|
|
533
680
|
];
|
|
534
681
|
/**
|
|
535
|
-
*
|
|
682
|
+
* TetherToken_json Contract Class
|
|
536
683
|
*
|
|
537
684
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
538
685
|
*
|
|
@@ -540,12 +687,12 @@ exports.ERC20Token_jsonAbi = [
|
|
|
540
687
|
* ```typescript
|
|
541
688
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
542
689
|
* import { mainnet } from 'viem/chains';
|
|
543
|
-
* import {
|
|
690
|
+
* import { TetherToken_json } from 'TetherToken_json';
|
|
544
691
|
*
|
|
545
692
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
546
693
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
547
694
|
*
|
|
548
|
-
* const contract = new
|
|
695
|
+
* const contract = new TetherToken_json('0x...', { publicClient, walletClient });
|
|
549
696
|
*
|
|
550
697
|
* // Read functions
|
|
551
698
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -563,13 +710,13 @@ exports.ERC20Token_jsonAbi = [
|
|
|
563
710
|
* });
|
|
564
711
|
* ```
|
|
565
712
|
*/
|
|
566
|
-
class
|
|
713
|
+
class TetherToken_json {
|
|
567
714
|
constructor(address, clients) {
|
|
568
715
|
this.contractAddress = address;
|
|
569
716
|
this.publicClient = clients.publicClient;
|
|
570
717
|
this.contract = (0, viem_1.getContract)({
|
|
571
718
|
address,
|
|
572
|
-
abi: exports.
|
|
719
|
+
abi: exports.TetherToken_jsonAbi,
|
|
573
720
|
client: {
|
|
574
721
|
public: clients.publicClient,
|
|
575
722
|
wallet: clients.walletClient,
|
|
@@ -589,18 +736,39 @@ class ERC20Token_json {
|
|
|
589
736
|
return this.contract;
|
|
590
737
|
}
|
|
591
738
|
/**
|
|
592
|
-
*
|
|
739
|
+
* name
|
|
593
740
|
* view
|
|
594
741
|
*/
|
|
595
|
-
async
|
|
596
|
-
return this.contract.read.
|
|
742
|
+
async name() {
|
|
743
|
+
return this.contract.read.name();
|
|
597
744
|
}
|
|
598
745
|
/**
|
|
599
|
-
*
|
|
746
|
+
* deprecated
|
|
747
|
+
* view
|
|
748
|
+
*/
|
|
749
|
+
async deprecated() {
|
|
750
|
+
return this.contract.read.deprecated();
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* totalSupply
|
|
754
|
+
* view
|
|
755
|
+
*/
|
|
756
|
+
async totalSupply() {
|
|
757
|
+
return this.contract.read.totalSupply();
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* upgradedAddress
|
|
761
|
+
* view
|
|
762
|
+
*/
|
|
763
|
+
async upgradedAddress() {
|
|
764
|
+
return this.contract.read.upgradedAddress();
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* balances
|
|
600
768
|
* view
|
|
601
769
|
*/
|
|
602
|
-
async
|
|
603
|
-
return this.contract.read.
|
|
770
|
+
async balances(arg0) {
|
|
771
|
+
return this.contract.read.balances([arg0]);
|
|
604
772
|
}
|
|
605
773
|
/**
|
|
606
774
|
* decimals
|
|
@@ -610,11 +778,53 @@ class ERC20Token_json {
|
|
|
610
778
|
return this.contract.read.decimals();
|
|
611
779
|
}
|
|
612
780
|
/**
|
|
613
|
-
*
|
|
781
|
+
* maximumFee
|
|
614
782
|
* view
|
|
615
783
|
*/
|
|
616
|
-
async
|
|
617
|
-
return this.contract.read.
|
|
784
|
+
async maximumFee() {
|
|
785
|
+
return this.contract.read.maximumFee();
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* _totalSupply
|
|
789
|
+
* view
|
|
790
|
+
*/
|
|
791
|
+
async _totalSupply() {
|
|
792
|
+
return this.contract.read._totalSupply();
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* getBlackListStatus
|
|
796
|
+
* view
|
|
797
|
+
*/
|
|
798
|
+
async getBlackListStatus(_maker) {
|
|
799
|
+
return this.contract.read.getBlackListStatus([_maker]);
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* allowed
|
|
803
|
+
* view
|
|
804
|
+
*/
|
|
805
|
+
async allowed(arg0, arg1) {
|
|
806
|
+
return this.contract.read.allowed([arg0, arg1]);
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* paused
|
|
810
|
+
* view
|
|
811
|
+
*/
|
|
812
|
+
async paused() {
|
|
813
|
+
return this.contract.read.paused();
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* balanceOf
|
|
817
|
+
* view
|
|
818
|
+
*/
|
|
819
|
+
async balanceOf(who) {
|
|
820
|
+
return this.contract.read.balanceOf([who]);
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* getOwner
|
|
824
|
+
* view
|
|
825
|
+
*/
|
|
826
|
+
async getOwner() {
|
|
827
|
+
return this.contract.read.getOwner();
|
|
618
828
|
}
|
|
619
829
|
/**
|
|
620
830
|
* owner
|
|
@@ -631,110 +841,153 @@ class ERC20Token_json {
|
|
|
631
841
|
return this.contract.read.symbol();
|
|
632
842
|
}
|
|
633
843
|
/**
|
|
634
|
-
*
|
|
844
|
+
* allowance
|
|
635
845
|
* view
|
|
636
846
|
*/
|
|
637
|
-
async
|
|
638
|
-
return this.contract.read.
|
|
847
|
+
async allowance(_owner, _spender) {
|
|
848
|
+
return this.contract.read.allowance([_owner, _spender]);
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* basisPointsRate
|
|
852
|
+
* view
|
|
853
|
+
*/
|
|
854
|
+
async basisPointsRate() {
|
|
855
|
+
return this.contract.read.basisPointsRate();
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* isBlackListed
|
|
859
|
+
* view
|
|
860
|
+
*/
|
|
861
|
+
async isBlackListed(arg0) {
|
|
862
|
+
return this.contract.read.isBlackListed([arg0]);
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
* MAX_UINT
|
|
866
|
+
* view
|
|
867
|
+
*/
|
|
868
|
+
async MAX_UINT() {
|
|
869
|
+
return this.contract.read.MAX_UINT();
|
|
870
|
+
}
|
|
871
|
+
/**
|
|
872
|
+
* deprecate
|
|
873
|
+
* nonpayable
|
|
874
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
875
|
+
*/
|
|
876
|
+
async deprecate(_upgradedAddress, options) {
|
|
877
|
+
if (!this.contract.write) {
|
|
878
|
+
throw new Error('Wallet client is required for write operations');
|
|
879
|
+
}
|
|
880
|
+
return this.contract.write.deprecate([_upgradedAddress], options);
|
|
639
881
|
}
|
|
640
882
|
/**
|
|
641
883
|
* approve
|
|
642
884
|
* nonpayable
|
|
643
885
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
644
886
|
*/
|
|
645
|
-
async approve(
|
|
887
|
+
async approve(_spender, _value, options) {
|
|
646
888
|
if (!this.contract.write) {
|
|
647
889
|
throw new Error('Wallet client is required for write operations');
|
|
648
890
|
}
|
|
649
|
-
return this.contract.write.approve([
|
|
891
|
+
return this.contract.write.approve([_spender, _value], options);
|
|
650
892
|
}
|
|
651
893
|
/**
|
|
652
|
-
*
|
|
894
|
+
* addBlackList
|
|
653
895
|
* nonpayable
|
|
654
896
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
655
897
|
*/
|
|
656
|
-
async
|
|
898
|
+
async addBlackList(_evilUser, options) {
|
|
657
899
|
if (!this.contract.write) {
|
|
658
900
|
throw new Error('Wallet client is required for write operations');
|
|
659
901
|
}
|
|
660
|
-
return this.contract.write.
|
|
902
|
+
return this.contract.write.addBlackList([_evilUser], options);
|
|
661
903
|
}
|
|
662
904
|
/**
|
|
663
|
-
*
|
|
905
|
+
* transferFrom
|
|
664
906
|
* nonpayable
|
|
665
907
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
666
908
|
*/
|
|
667
|
-
async
|
|
909
|
+
async transferFrom(_from, _to, _value, options) {
|
|
668
910
|
if (!this.contract.write) {
|
|
669
911
|
throw new Error('Wallet client is required for write operations');
|
|
670
912
|
}
|
|
671
|
-
return this.contract.write.
|
|
913
|
+
return this.contract.write.transferFrom([_from, _to, _value], options);
|
|
672
914
|
}
|
|
673
915
|
/**
|
|
674
|
-
*
|
|
916
|
+
* unpause
|
|
675
917
|
* nonpayable
|
|
676
918
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
677
919
|
*/
|
|
678
|
-
async
|
|
920
|
+
async unpause(options) {
|
|
679
921
|
if (!this.contract.write) {
|
|
680
922
|
throw new Error('Wallet client is required for write operations');
|
|
681
923
|
}
|
|
682
|
-
return this.contract.write.
|
|
924
|
+
return this.contract.write.unpause(options);
|
|
683
925
|
}
|
|
684
926
|
/**
|
|
685
|
-
*
|
|
927
|
+
* pause
|
|
686
928
|
* nonpayable
|
|
687
929
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
688
930
|
*/
|
|
689
|
-
async
|
|
931
|
+
async pause(options) {
|
|
690
932
|
if (!this.contract.write) {
|
|
691
933
|
throw new Error('Wallet client is required for write operations');
|
|
692
934
|
}
|
|
693
|
-
return this.contract.write.
|
|
935
|
+
return this.contract.write.pause(options);
|
|
694
936
|
}
|
|
695
937
|
/**
|
|
696
|
-
*
|
|
938
|
+
* transfer
|
|
697
939
|
* nonpayable
|
|
698
940
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
699
941
|
*/
|
|
700
|
-
async
|
|
942
|
+
async transfer(_to, _value, options) {
|
|
701
943
|
if (!this.contract.write) {
|
|
702
944
|
throw new Error('Wallet client is required for write operations');
|
|
703
945
|
}
|
|
704
|
-
return this.contract.write.
|
|
946
|
+
return this.contract.write.transfer([_to, _value], options);
|
|
705
947
|
}
|
|
706
948
|
/**
|
|
707
|
-
*
|
|
949
|
+
* setParams
|
|
708
950
|
* nonpayable
|
|
709
951
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
710
952
|
*/
|
|
711
|
-
async
|
|
953
|
+
async setParams(newBasisPoints, newMaxFee, options) {
|
|
712
954
|
if (!this.contract.write) {
|
|
713
955
|
throw new Error('Wallet client is required for write operations');
|
|
714
956
|
}
|
|
715
|
-
return this.contract.write.
|
|
957
|
+
return this.contract.write.setParams([newBasisPoints, newMaxFee], options);
|
|
716
958
|
}
|
|
717
959
|
/**
|
|
718
|
-
*
|
|
960
|
+
* issue
|
|
719
961
|
* nonpayable
|
|
720
962
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
721
963
|
*/
|
|
722
|
-
async
|
|
964
|
+
async issue(amount, options) {
|
|
723
965
|
if (!this.contract.write) {
|
|
724
966
|
throw new Error('Wallet client is required for write operations');
|
|
725
967
|
}
|
|
726
|
-
return this.contract.write.
|
|
968
|
+
return this.contract.write.issue([amount], options);
|
|
727
969
|
}
|
|
728
970
|
/**
|
|
729
|
-
*
|
|
971
|
+
* redeem
|
|
972
|
+
* nonpayable
|
|
973
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
974
|
+
*/
|
|
975
|
+
async redeem(amount, options) {
|
|
976
|
+
if (!this.contract.write) {
|
|
977
|
+
throw new Error('Wallet client is required for write operations');
|
|
978
|
+
}
|
|
979
|
+
return this.contract.write.redeem([amount], options);
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* removeBlackList
|
|
730
983
|
* nonpayable
|
|
731
984
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
732
985
|
*/
|
|
733
|
-
async
|
|
986
|
+
async removeBlackList(_clearedUser, options) {
|
|
734
987
|
if (!this.contract.write) {
|
|
735
988
|
throw new Error('Wallet client is required for write operations');
|
|
736
989
|
}
|
|
737
|
-
return this.contract.write.
|
|
990
|
+
return this.contract.write.removeBlackList([_clearedUser], options);
|
|
738
991
|
}
|
|
739
992
|
/**
|
|
740
993
|
* transferOwnership
|
|
@@ -747,6 +1000,17 @@ class ERC20Token_json {
|
|
|
747
1000
|
}
|
|
748
1001
|
return this.contract.write.transferOwnership([newOwner], options);
|
|
749
1002
|
}
|
|
1003
|
+
/**
|
|
1004
|
+
* destroyBlackFunds
|
|
1005
|
+
* nonpayable
|
|
1006
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1007
|
+
*/
|
|
1008
|
+
async destroyBlackFunds(_blackListedUser, options) {
|
|
1009
|
+
if (!this.contract.write) {
|
|
1010
|
+
throw new Error('Wallet client is required for write operations');
|
|
1011
|
+
}
|
|
1012
|
+
return this.contract.write.destroyBlackFunds([_blackListedUser], options);
|
|
1013
|
+
}
|
|
750
1014
|
/**
|
|
751
1015
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
752
1016
|
*
|
|
@@ -761,77 +1025,93 @@ class ERC20Token_json {
|
|
|
761
1025
|
throw new Error('Public client is required for simulation');
|
|
762
1026
|
}
|
|
763
1027
|
return {
|
|
1028
|
+
/**
|
|
1029
|
+
* Simulate deprecate
|
|
1030
|
+
* Returns gas estimate and result without sending transaction
|
|
1031
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1032
|
+
*/
|
|
1033
|
+
async deprecate(_upgradedAddress, options) {
|
|
1034
|
+
return contract.simulate.deprecate([_upgradedAddress], options);
|
|
1035
|
+
},
|
|
764
1036
|
/**
|
|
765
1037
|
* Simulate approve
|
|
766
1038
|
* Returns gas estimate and result without sending transaction
|
|
767
1039
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
768
1040
|
*/
|
|
769
|
-
async approve(
|
|
770
|
-
return contract.simulate.approve([
|
|
1041
|
+
async approve(_spender, _value, options) {
|
|
1042
|
+
return contract.simulate.approve([_spender, _value], options);
|
|
771
1043
|
},
|
|
772
1044
|
/**
|
|
773
|
-
* Simulate
|
|
1045
|
+
* Simulate addBlackList
|
|
774
1046
|
* Returns gas estimate and result without sending transaction
|
|
775
1047
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
776
1048
|
*/
|
|
777
|
-
async
|
|
778
|
-
return contract.simulate.
|
|
1049
|
+
async addBlackList(_evilUser, options) {
|
|
1050
|
+
return contract.simulate.addBlackList([_evilUser], options);
|
|
779
1051
|
},
|
|
780
1052
|
/**
|
|
781
|
-
* Simulate
|
|
1053
|
+
* Simulate transferFrom
|
|
782
1054
|
* Returns gas estimate and result without sending transaction
|
|
783
1055
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
784
1056
|
*/
|
|
785
|
-
async
|
|
786
|
-
return contract.simulate.
|
|
1057
|
+
async transferFrom(_from, _to, _value, options) {
|
|
1058
|
+
return contract.simulate.transferFrom([_from, _to, _value], options);
|
|
787
1059
|
},
|
|
788
1060
|
/**
|
|
789
|
-
* Simulate
|
|
1061
|
+
* Simulate unpause
|
|
790
1062
|
* Returns gas estimate and result without sending transaction
|
|
791
1063
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
792
1064
|
*/
|
|
793
|
-
async
|
|
794
|
-
return contract.simulate.
|
|
1065
|
+
async unpause(options) {
|
|
1066
|
+
return contract.simulate.unpause(options);
|
|
795
1067
|
},
|
|
796
1068
|
/**
|
|
797
|
-
* Simulate
|
|
1069
|
+
* Simulate pause
|
|
798
1070
|
* Returns gas estimate and result without sending transaction
|
|
799
1071
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
800
1072
|
*/
|
|
801
|
-
async
|
|
802
|
-
return contract.simulate.
|
|
1073
|
+
async pause(options) {
|
|
1074
|
+
return contract.simulate.pause(options);
|
|
803
1075
|
},
|
|
804
1076
|
/**
|
|
805
|
-
* Simulate
|
|
1077
|
+
* Simulate transfer
|
|
806
1078
|
* Returns gas estimate and result without sending transaction
|
|
807
1079
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
808
1080
|
*/
|
|
809
|
-
async
|
|
810
|
-
return contract.simulate.
|
|
1081
|
+
async transfer(_to, _value, options) {
|
|
1082
|
+
return contract.simulate.transfer([_to, _value], options);
|
|
811
1083
|
},
|
|
812
1084
|
/**
|
|
813
|
-
* Simulate
|
|
1085
|
+
* Simulate setParams
|
|
814
1086
|
* Returns gas estimate and result without sending transaction
|
|
815
1087
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
816
1088
|
*/
|
|
817
|
-
async
|
|
818
|
-
return contract.simulate.
|
|
1089
|
+
async setParams(newBasisPoints, newMaxFee, options) {
|
|
1090
|
+
return contract.simulate.setParams([newBasisPoints, newMaxFee], options);
|
|
819
1091
|
},
|
|
820
1092
|
/**
|
|
821
|
-
* Simulate
|
|
1093
|
+
* Simulate issue
|
|
822
1094
|
* Returns gas estimate and result without sending transaction
|
|
823
1095
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
824
1096
|
*/
|
|
825
|
-
async
|
|
826
|
-
return contract.simulate.
|
|
1097
|
+
async issue(amount, options) {
|
|
1098
|
+
return contract.simulate.issue([amount], options);
|
|
827
1099
|
},
|
|
828
1100
|
/**
|
|
829
|
-
* Simulate
|
|
1101
|
+
* Simulate redeem
|
|
1102
|
+
* Returns gas estimate and result without sending transaction
|
|
1103
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1104
|
+
*/
|
|
1105
|
+
async redeem(amount, options) {
|
|
1106
|
+
return contract.simulate.redeem([amount], options);
|
|
1107
|
+
},
|
|
1108
|
+
/**
|
|
1109
|
+
* Simulate removeBlackList
|
|
830
1110
|
* Returns gas estimate and result without sending transaction
|
|
831
1111
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
832
1112
|
*/
|
|
833
|
-
async
|
|
834
|
-
return contract.simulate.
|
|
1113
|
+
async removeBlackList(_clearedUser, options) {
|
|
1114
|
+
return contract.simulate.removeBlackList([_clearedUser], options);
|
|
835
1115
|
},
|
|
836
1116
|
/**
|
|
837
1117
|
* Simulate transferOwnership
|
|
@@ -840,6 +1120,14 @@ class ERC20Token_json {
|
|
|
840
1120
|
*/
|
|
841
1121
|
async transferOwnership(newOwner, options) {
|
|
842
1122
|
return contract.simulate.transferOwnership([newOwner], options);
|
|
1123
|
+
},
|
|
1124
|
+
/**
|
|
1125
|
+
* Simulate destroyBlackFunds
|
|
1126
|
+
* Returns gas estimate and result without sending transaction
|
|
1127
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1128
|
+
*/
|
|
1129
|
+
async destroyBlackFunds(_blackListedUser, options) {
|
|
1130
|
+
return contract.simulate.destroyBlackFunds([_blackListedUser], options);
|
|
843
1131
|
}
|
|
844
1132
|
};
|
|
845
1133
|
}
|
|
@@ -858,17 +1146,16 @@ class ERC20Token_json {
|
|
|
858
1146
|
get watch() {
|
|
859
1147
|
return {
|
|
860
1148
|
/**
|
|
861
|
-
* Watch
|
|
1149
|
+
* Watch Issue events
|
|
862
1150
|
* @param callback Function to call when event is emitted
|
|
863
1151
|
* @param filter Optional filter for indexed parameters
|
|
864
1152
|
* @returns Unwatch function to stop listening
|
|
865
1153
|
*/
|
|
866
|
-
|
|
1154
|
+
Issue: (callback) => {
|
|
867
1155
|
return this.publicClient.watchContractEvent({
|
|
868
1156
|
address: this.contractAddress,
|
|
869
|
-
abi: exports.
|
|
870
|
-
eventName: '
|
|
871
|
-
args: filter,
|
|
1157
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1158
|
+
eventName: 'Issue',
|
|
872
1159
|
onLogs: (logs) => {
|
|
873
1160
|
logs.forEach((log) => {
|
|
874
1161
|
callback(log.args);
|
|
@@ -877,17 +1164,70 @@ class ERC20Token_json {
|
|
|
877
1164
|
});
|
|
878
1165
|
},
|
|
879
1166
|
/**
|
|
880
|
-
* Watch
|
|
1167
|
+
* Watch Redeem events
|
|
881
1168
|
* @param callback Function to call when event is emitted
|
|
882
1169
|
* @param filter Optional filter for indexed parameters
|
|
883
1170
|
* @returns Unwatch function to stop listening
|
|
884
1171
|
*/
|
|
885
|
-
|
|
1172
|
+
Redeem: (callback) => {
|
|
886
1173
|
return this.publicClient.watchContractEvent({
|
|
887
1174
|
address: this.contractAddress,
|
|
888
|
-
abi: exports.
|
|
889
|
-
eventName: '
|
|
890
|
-
|
|
1175
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1176
|
+
eventName: 'Redeem',
|
|
1177
|
+
onLogs: (logs) => {
|
|
1178
|
+
logs.forEach((log) => {
|
|
1179
|
+
callback(log.args);
|
|
1180
|
+
});
|
|
1181
|
+
},
|
|
1182
|
+
});
|
|
1183
|
+
},
|
|
1184
|
+
/**
|
|
1185
|
+
* Watch Deprecate events
|
|
1186
|
+
* @param callback Function to call when event is emitted
|
|
1187
|
+
* @param filter Optional filter for indexed parameters
|
|
1188
|
+
* @returns Unwatch function to stop listening
|
|
1189
|
+
*/
|
|
1190
|
+
Deprecate: (callback) => {
|
|
1191
|
+
return this.publicClient.watchContractEvent({
|
|
1192
|
+
address: this.contractAddress,
|
|
1193
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1194
|
+
eventName: 'Deprecate',
|
|
1195
|
+
onLogs: (logs) => {
|
|
1196
|
+
logs.forEach((log) => {
|
|
1197
|
+
callback(log.args);
|
|
1198
|
+
});
|
|
1199
|
+
},
|
|
1200
|
+
});
|
|
1201
|
+
},
|
|
1202
|
+
/**
|
|
1203
|
+
* Watch Params events
|
|
1204
|
+
* @param callback Function to call when event is emitted
|
|
1205
|
+
* @param filter Optional filter for indexed parameters
|
|
1206
|
+
* @returns Unwatch function to stop listening
|
|
1207
|
+
*/
|
|
1208
|
+
Params: (callback) => {
|
|
1209
|
+
return this.publicClient.watchContractEvent({
|
|
1210
|
+
address: this.contractAddress,
|
|
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',
|
|
891
1231
|
onLogs: (logs) => {
|
|
892
1232
|
logs.forEach((log) => {
|
|
893
1233
|
callback(log.args);
|
|
@@ -896,16 +1236,16 @@ class ERC20Token_json {
|
|
|
896
1236
|
});
|
|
897
1237
|
},
|
|
898
1238
|
/**
|
|
899
|
-
* Watch
|
|
1239
|
+
* Watch AddedBlackList events
|
|
900
1240
|
* @param callback Function to call when event is emitted
|
|
901
1241
|
* @param filter Optional filter for indexed parameters
|
|
902
1242
|
* @returns Unwatch function to stop listening
|
|
903
1243
|
*/
|
|
904
|
-
|
|
1244
|
+
AddedBlackList: (callback) => {
|
|
905
1245
|
return this.publicClient.watchContractEvent({
|
|
906
1246
|
address: this.contractAddress,
|
|
907
|
-
abi: exports.
|
|
908
|
-
eventName: '
|
|
1247
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1248
|
+
eventName: 'AddedBlackList',
|
|
909
1249
|
onLogs: (logs) => {
|
|
910
1250
|
logs.forEach((log) => {
|
|
911
1251
|
callback(log.args);
|
|
@@ -914,16 +1254,16 @@ class ERC20Token_json {
|
|
|
914
1254
|
});
|
|
915
1255
|
},
|
|
916
1256
|
/**
|
|
917
|
-
* Watch
|
|
1257
|
+
* Watch RemovedBlackList events
|
|
918
1258
|
* @param callback Function to call when event is emitted
|
|
919
1259
|
* @param filter Optional filter for indexed parameters
|
|
920
1260
|
* @returns Unwatch function to stop listening
|
|
921
1261
|
*/
|
|
922
|
-
|
|
1262
|
+
RemovedBlackList: (callback) => {
|
|
923
1263
|
return this.publicClient.watchContractEvent({
|
|
924
1264
|
address: this.contractAddress,
|
|
925
|
-
abi: exports.
|
|
926
|
-
eventName: '
|
|
1265
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1266
|
+
eventName: 'RemovedBlackList',
|
|
927
1267
|
onLogs: (logs) => {
|
|
928
1268
|
logs.forEach((log) => {
|
|
929
1269
|
callback(log.args);
|
|
@@ -932,16 +1272,17 @@ class ERC20Token_json {
|
|
|
932
1272
|
});
|
|
933
1273
|
},
|
|
934
1274
|
/**
|
|
935
|
-
* Watch
|
|
1275
|
+
* Watch Approval events
|
|
936
1276
|
* @param callback Function to call when event is emitted
|
|
937
1277
|
* @param filter Optional filter for indexed parameters
|
|
938
1278
|
* @returns Unwatch function to stop listening
|
|
939
1279
|
*/
|
|
940
|
-
|
|
1280
|
+
Approval: (callback, filter) => {
|
|
941
1281
|
return this.publicClient.watchContractEvent({
|
|
942
1282
|
address: this.contractAddress,
|
|
943
|
-
abi: exports.
|
|
944
|
-
eventName: '
|
|
1283
|
+
abi: exports.TetherToken_jsonAbi,
|
|
1284
|
+
eventName: 'Approval',
|
|
1285
|
+
args: filter,
|
|
945
1286
|
onLogs: (logs) => {
|
|
946
1287
|
logs.forEach((log) => {
|
|
947
1288
|
callback(log.args);
|
|
@@ -958,7 +1299,7 @@ class ERC20Token_json {
|
|
|
958
1299
|
Transfer: (callback, filter) => {
|
|
959
1300
|
return this.publicClient.watchContractEvent({
|
|
960
1301
|
address: this.contractAddress,
|
|
961
|
-
abi: exports.
|
|
1302
|
+
abi: exports.TetherToken_jsonAbi,
|
|
962
1303
|
eventName: 'Transfer',
|
|
963
1304
|
args: filter,
|
|
964
1305
|
onLogs: (logs) => {
|
|
@@ -967,8 +1308,44 @@ class ERC20Token_json {
|
|
|
967
1308
|
});
|
|
968
1309
|
},
|
|
969
1310
|
});
|
|
1311
|
+
},
|
|
1312
|
+
/**
|
|
1313
|
+
* Watch Pause events
|
|
1314
|
+
* @param callback Function to call when event is emitted
|
|
1315
|
+
* @param filter Optional filter for indexed parameters
|
|
1316
|
+
* @returns Unwatch function to stop listening
|
|
1317
|
+
*/
|
|
1318
|
+
Pause: (callback) => {
|
|
1319
|
+
return this.publicClient.watchContractEvent({
|
|
1320
|
+
address: this.contractAddress,
|
|
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',
|
|
1341
|
+
onLogs: (logs) => {
|
|
1342
|
+
logs.forEach((log) => {
|
|
1343
|
+
callback(log.args);
|
|
1344
|
+
});
|
|
1345
|
+
},
|
|
1346
|
+
});
|
|
970
1347
|
}
|
|
971
1348
|
};
|
|
972
1349
|
}
|
|
973
1350
|
}
|
|
974
|
-
exports.
|
|
1351
|
+
exports.TetherToken_json = TetherToken_json;
|