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