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