@gitmyabi/usdt 1.0.27 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/contracts/{PermittableToken_json.d.ts → TetherToken_json.d.ts} +320 -641
- package/contracts/{PermittableToken_json.js → TetherToken_json.js} +410 -647
- package/contracts/{PermittableToken_json.ts → TetherToken_json.ts} +425 -792
- package/contracts/index.d.ts +2 -4
- package/contracts/index.js +4 -7
- package/contracts/index.ts +2 -4
- package/package.json +3 -3
- package/contracts/TokenProxy_json.d.ts +0 -145
- package/contracts/TokenProxy_json.js +0 -177
- package/contracts/TokenProxy_json.ts +0 -207
|
@@ -2,19 +2,19 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
|
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* TetherToken_json ABI
|
|
6
6
|
*
|
|
7
7
|
* This ABI is typed using viem's type system for full type safety.
|
|
8
8
|
*/
|
|
9
|
-
export const
|
|
9
|
+
export const TetherToken_jsonAbi = [
|
|
10
10
|
{
|
|
11
11
|
"constant": true,
|
|
12
12
|
"inputs": [],
|
|
13
|
-
"name": "
|
|
13
|
+
"name": "name",
|
|
14
14
|
"outputs": [
|
|
15
15
|
{
|
|
16
16
|
"name": "",
|
|
17
|
-
"type": "
|
|
17
|
+
"type": "string"
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
"payable": false,
|
|
@@ -22,24 +22,24 @@ export const PermittableToken_jsonAbi = [
|
|
|
22
22
|
"type": "function"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
"constant":
|
|
26
|
-
"inputs": [
|
|
27
|
-
"name": "name",
|
|
28
|
-
"outputs": [
|
|
25
|
+
"constant": false,
|
|
26
|
+
"inputs": [
|
|
29
27
|
{
|
|
30
|
-
"name": "",
|
|
31
|
-
"type": "
|
|
28
|
+
"name": "_upgradedAddress",
|
|
29
|
+
"type": "address"
|
|
32
30
|
}
|
|
33
31
|
],
|
|
32
|
+
"name": "deprecate",
|
|
33
|
+
"outputs": [],
|
|
34
34
|
"payable": false,
|
|
35
|
-
"stateMutability": "
|
|
35
|
+
"stateMutability": "nonpayable",
|
|
36
36
|
"type": "function"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"constant": false,
|
|
40
40
|
"inputs": [
|
|
41
41
|
{
|
|
42
|
-
"name": "
|
|
42
|
+
"name": "_spender",
|
|
43
43
|
"type": "address"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
@@ -48,25 +48,34 @@ export const PermittableToken_jsonAbi = [
|
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
50
|
"name": "approve",
|
|
51
|
+
"outputs": [],
|
|
52
|
+
"payable": false,
|
|
53
|
+
"stateMutability": "nonpayable",
|
|
54
|
+
"type": "function"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"constant": true,
|
|
58
|
+
"inputs": [],
|
|
59
|
+
"name": "deprecated",
|
|
51
60
|
"outputs": [
|
|
52
61
|
{
|
|
53
|
-
"name": "
|
|
62
|
+
"name": "",
|
|
54
63
|
"type": "bool"
|
|
55
64
|
}
|
|
56
65
|
],
|
|
57
66
|
"payable": false,
|
|
58
|
-
"stateMutability": "
|
|
67
|
+
"stateMutability": "view",
|
|
59
68
|
"type": "function"
|
|
60
69
|
},
|
|
61
70
|
{
|
|
62
71
|
"constant": false,
|
|
63
72
|
"inputs": [
|
|
64
73
|
{
|
|
65
|
-
"name": "
|
|
74
|
+
"name": "_evilUser",
|
|
66
75
|
"type": "address"
|
|
67
76
|
}
|
|
68
77
|
],
|
|
69
|
-
"name": "
|
|
78
|
+
"name": "addBlackList",
|
|
70
79
|
"outputs": [],
|
|
71
80
|
"payable": false,
|
|
72
81
|
"stateMutability": "nonpayable",
|
|
@@ -90,25 +99,20 @@ export const PermittableToken_jsonAbi = [
|
|
|
90
99
|
"constant": false,
|
|
91
100
|
"inputs": [
|
|
92
101
|
{
|
|
93
|
-
"name": "
|
|
102
|
+
"name": "_from",
|
|
94
103
|
"type": "address"
|
|
95
104
|
},
|
|
96
105
|
{
|
|
97
|
-
"name": "
|
|
106
|
+
"name": "_to",
|
|
98
107
|
"type": "address"
|
|
99
108
|
},
|
|
100
109
|
{
|
|
101
|
-
"name": "
|
|
110
|
+
"name": "_value",
|
|
102
111
|
"type": "uint256"
|
|
103
112
|
}
|
|
104
113
|
],
|
|
105
114
|
"name": "transferFrom",
|
|
106
|
-
"outputs": [
|
|
107
|
-
{
|
|
108
|
-
"name": "",
|
|
109
|
-
"type": "bool"
|
|
110
|
-
}
|
|
111
|
-
],
|
|
115
|
+
"outputs": [],
|
|
112
116
|
"payable": false,
|
|
113
117
|
"stateMutability": "nonpayable",
|
|
114
118
|
"type": "function"
|
|
@@ -116,25 +120,11 @@ export const PermittableToken_jsonAbi = [
|
|
|
116
120
|
{
|
|
117
121
|
"constant": true,
|
|
118
122
|
"inputs": [],
|
|
119
|
-
"name": "
|
|
120
|
-
"outputs": [
|
|
121
|
-
{
|
|
122
|
-
"name": "",
|
|
123
|
-
"type": "bytes32"
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
"payable": false,
|
|
127
|
-
"stateMutability": "view",
|
|
128
|
-
"type": "function"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"constant": true,
|
|
132
|
-
"inputs": [],
|
|
133
|
-
"name": "decimals",
|
|
123
|
+
"name": "upgradedAddress",
|
|
134
124
|
"outputs": [
|
|
135
125
|
{
|
|
136
126
|
"name": "",
|
|
137
|
-
"type": "
|
|
127
|
+
"type": "address"
|
|
138
128
|
}
|
|
139
129
|
],
|
|
140
130
|
"payable": false,
|
|
@@ -143,113 +133,45 @@ export const PermittableToken_jsonAbi = [
|
|
|
143
133
|
},
|
|
144
134
|
{
|
|
145
135
|
"constant": true,
|
|
146
|
-
"inputs": [],
|
|
147
|
-
"name": "DOMAIN_SEPARATOR",
|
|
148
|
-
"outputs": [
|
|
149
|
-
{
|
|
150
|
-
"name": "",
|
|
151
|
-
"type": "bytes32"
|
|
152
|
-
}
|
|
153
|
-
],
|
|
154
|
-
"payable": false,
|
|
155
|
-
"stateMutability": "view",
|
|
156
|
-
"type": "function"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"constant": false,
|
|
160
136
|
"inputs": [
|
|
161
137
|
{
|
|
162
|
-
"name": "
|
|
163
|
-
"type": "address"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"name": "_addedValue",
|
|
167
|
-
"type": "uint256"
|
|
168
|
-
}
|
|
169
|
-
],
|
|
170
|
-
"name": "increaseAllowance",
|
|
171
|
-
"outputs": [
|
|
172
|
-
{
|
|
173
|
-
"name": "result",
|
|
174
|
-
"type": "bool"
|
|
175
|
-
}
|
|
176
|
-
],
|
|
177
|
-
"payable": false,
|
|
178
|
-
"stateMutability": "nonpayable",
|
|
179
|
-
"type": "function"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"constant": false,
|
|
183
|
-
"inputs": [
|
|
184
|
-
{
|
|
185
|
-
"name": "_to",
|
|
138
|
+
"name": "",
|
|
186
139
|
"type": "address"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"name": "_value",
|
|
190
|
-
"type": "uint256"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"name": "_data",
|
|
194
|
-
"type": "bytes"
|
|
195
140
|
}
|
|
196
141
|
],
|
|
197
|
-
"name": "
|
|
142
|
+
"name": "balances",
|
|
198
143
|
"outputs": [
|
|
199
144
|
{
|
|
200
145
|
"name": "",
|
|
201
|
-
"type": "
|
|
146
|
+
"type": "uint256"
|
|
202
147
|
}
|
|
203
148
|
],
|
|
204
149
|
"payable": false,
|
|
205
|
-
"stateMutability": "
|
|
150
|
+
"stateMutability": "view",
|
|
206
151
|
"type": "function"
|
|
207
152
|
},
|
|
208
153
|
{
|
|
209
|
-
"constant":
|
|
210
|
-
"inputs": [
|
|
211
|
-
|
|
212
|
-
"name": "_to",
|
|
213
|
-
"type": "address"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"name": "_amount",
|
|
217
|
-
"type": "uint256"
|
|
218
|
-
}
|
|
219
|
-
],
|
|
220
|
-
"name": "mint",
|
|
154
|
+
"constant": true,
|
|
155
|
+
"inputs": [],
|
|
156
|
+
"name": "decimals",
|
|
221
157
|
"outputs": [
|
|
222
158
|
{
|
|
223
159
|
"name": "",
|
|
224
|
-
"type": "bool"
|
|
225
|
-
}
|
|
226
|
-
],
|
|
227
|
-
"payable": false,
|
|
228
|
-
"stateMutability": "nonpayable",
|
|
229
|
-
"type": "function"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"constant": false,
|
|
233
|
-
"inputs": [
|
|
234
|
-
{
|
|
235
|
-
"name": "_value",
|
|
236
160
|
"type": "uint256"
|
|
237
161
|
}
|
|
238
162
|
],
|
|
239
|
-
"name": "burn",
|
|
240
|
-
"outputs": [],
|
|
241
163
|
"payable": false,
|
|
242
|
-
"stateMutability": "
|
|
164
|
+
"stateMutability": "view",
|
|
243
165
|
"type": "function"
|
|
244
166
|
},
|
|
245
167
|
{
|
|
246
168
|
"constant": true,
|
|
247
169
|
"inputs": [],
|
|
248
|
-
"name": "
|
|
170
|
+
"name": "maximumFee",
|
|
249
171
|
"outputs": [
|
|
250
172
|
{
|
|
251
173
|
"name": "",
|
|
252
|
-
"type": "
|
|
174
|
+
"type": "uint256"
|
|
253
175
|
}
|
|
254
176
|
],
|
|
255
177
|
"payable": false,
|
|
@@ -257,41 +179,23 @@ export const PermittableToken_jsonAbi = [
|
|
|
257
179
|
"type": "function"
|
|
258
180
|
},
|
|
259
181
|
{
|
|
260
|
-
"constant":
|
|
261
|
-
"inputs": [
|
|
262
|
-
|
|
263
|
-
"name": "_spender",
|
|
264
|
-
"type": "address"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"name": "_subtractedValue",
|
|
268
|
-
"type": "uint256"
|
|
269
|
-
}
|
|
270
|
-
],
|
|
271
|
-
"name": "decreaseApproval",
|
|
182
|
+
"constant": true,
|
|
183
|
+
"inputs": [],
|
|
184
|
+
"name": "_totalSupply",
|
|
272
185
|
"outputs": [
|
|
273
186
|
{
|
|
274
187
|
"name": "",
|
|
275
|
-
"type": "
|
|
188
|
+
"type": "uint256"
|
|
276
189
|
}
|
|
277
190
|
],
|
|
278
191
|
"payable": false,
|
|
279
|
-
"stateMutability": "
|
|
192
|
+
"stateMutability": "view",
|
|
280
193
|
"type": "function"
|
|
281
194
|
},
|
|
282
195
|
{
|
|
283
196
|
"constant": false,
|
|
284
|
-
"inputs": [
|
|
285
|
-
|
|
286
|
-
"name": "_token",
|
|
287
|
-
"type": "address"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"name": "_to",
|
|
291
|
-
"type": "address"
|
|
292
|
-
}
|
|
293
|
-
],
|
|
294
|
-
"name": "claimTokens",
|
|
197
|
+
"inputs": [],
|
|
198
|
+
"name": "unpause",
|
|
295
199
|
"outputs": [],
|
|
296
200
|
"payable": false,
|
|
297
201
|
"stateMutability": "nonpayable",
|
|
@@ -301,43 +205,38 @@ export const PermittableToken_jsonAbi = [
|
|
|
301
205
|
"constant": true,
|
|
302
206
|
"inputs": [
|
|
303
207
|
{
|
|
304
|
-
"name": "
|
|
208
|
+
"name": "_maker",
|
|
305
209
|
"type": "address"
|
|
306
210
|
}
|
|
307
211
|
],
|
|
308
|
-
"name": "
|
|
212
|
+
"name": "getBlackListStatus",
|
|
309
213
|
"outputs": [
|
|
310
214
|
{
|
|
311
215
|
"name": "",
|
|
312
|
-
"type": "
|
|
216
|
+
"type": "bool"
|
|
313
217
|
}
|
|
314
218
|
],
|
|
315
219
|
"payable": false,
|
|
316
220
|
"stateMutability": "view",
|
|
317
221
|
"type": "function"
|
|
318
222
|
},
|
|
319
|
-
{
|
|
320
|
-
"constant": false,
|
|
321
|
-
"inputs": [],
|
|
322
|
-
"name": "renounceOwnership",
|
|
323
|
-
"outputs": [],
|
|
324
|
-
"payable": false,
|
|
325
|
-
"stateMutability": "nonpayable",
|
|
326
|
-
"type": "function"
|
|
327
|
-
},
|
|
328
223
|
{
|
|
329
224
|
"constant": true,
|
|
330
225
|
"inputs": [
|
|
331
226
|
{
|
|
332
|
-
"name": "
|
|
227
|
+
"name": "",
|
|
228
|
+
"type": "address"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "",
|
|
333
232
|
"type": "address"
|
|
334
233
|
}
|
|
335
234
|
],
|
|
336
|
-
"name": "
|
|
235
|
+
"name": "allowed",
|
|
337
236
|
"outputs": [
|
|
338
237
|
{
|
|
339
238
|
"name": "",
|
|
340
|
-
"type": "
|
|
239
|
+
"type": "uint256"
|
|
341
240
|
}
|
|
342
241
|
],
|
|
343
242
|
"payable": false,
|
|
@@ -345,9 +244,9 @@ export const PermittableToken_jsonAbi = [
|
|
|
345
244
|
"type": "function"
|
|
346
245
|
},
|
|
347
246
|
{
|
|
348
|
-
"constant":
|
|
247
|
+
"constant": true,
|
|
349
248
|
"inputs": [],
|
|
350
|
-
"name": "
|
|
249
|
+
"name": "paused",
|
|
351
250
|
"outputs": [
|
|
352
251
|
{
|
|
353
252
|
"name": "",
|
|
@@ -355,18 +254,18 @@ export const PermittableToken_jsonAbi = [
|
|
|
355
254
|
}
|
|
356
255
|
],
|
|
357
256
|
"payable": false,
|
|
358
|
-
"stateMutability": "
|
|
257
|
+
"stateMutability": "view",
|
|
359
258
|
"type": "function"
|
|
360
259
|
},
|
|
361
260
|
{
|
|
362
261
|
"constant": true,
|
|
363
262
|
"inputs": [
|
|
364
263
|
{
|
|
365
|
-
"name": "",
|
|
264
|
+
"name": "who",
|
|
366
265
|
"type": "address"
|
|
367
266
|
}
|
|
368
267
|
],
|
|
369
|
-
"name": "
|
|
268
|
+
"name": "balanceOf",
|
|
370
269
|
"outputs": [
|
|
371
270
|
{
|
|
372
271
|
"name": "",
|
|
@@ -378,31 +277,18 @@ export const PermittableToken_jsonAbi = [
|
|
|
378
277
|
"type": "function"
|
|
379
278
|
},
|
|
380
279
|
{
|
|
381
|
-
"constant":
|
|
280
|
+
"constant": false,
|
|
382
281
|
"inputs": [],
|
|
383
|
-
"name": "
|
|
384
|
-
"outputs": [
|
|
385
|
-
{
|
|
386
|
-
"name": "major",
|
|
387
|
-
"type": "uint64"
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
"name": "minor",
|
|
391
|
-
"type": "uint64"
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
"name": "patch",
|
|
395
|
-
"type": "uint64"
|
|
396
|
-
}
|
|
397
|
-
],
|
|
282
|
+
"name": "pause",
|
|
283
|
+
"outputs": [],
|
|
398
284
|
"payable": false,
|
|
399
|
-
"stateMutability": "
|
|
285
|
+
"stateMutability": "nonpayable",
|
|
400
286
|
"type": "function"
|
|
401
287
|
},
|
|
402
288
|
{
|
|
403
289
|
"constant": true,
|
|
404
290
|
"inputs": [],
|
|
405
|
-
"name": "
|
|
291
|
+
"name": "getOwner",
|
|
406
292
|
"outputs": [
|
|
407
293
|
{
|
|
408
294
|
"name": "",
|
|
@@ -414,45 +300,17 @@ export const PermittableToken_jsonAbi = [
|
|
|
414
300
|
"type": "function"
|
|
415
301
|
},
|
|
416
302
|
{
|
|
417
|
-
"constant":
|
|
418
|
-
"inputs": [
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
"type": "address"
|
|
422
|
-
},
|
|
303
|
+
"constant": true,
|
|
304
|
+
"inputs": [],
|
|
305
|
+
"name": "owner",
|
|
306
|
+
"outputs": [
|
|
423
307
|
{
|
|
424
|
-
"name": "
|
|
308
|
+
"name": "",
|
|
425
309
|
"type": "address"
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
"name": "_nonce",
|
|
429
|
-
"type": "uint256"
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
"name": "_expiry",
|
|
433
|
-
"type": "uint256"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
"name": "_allowed",
|
|
437
|
-
"type": "bool"
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"name": "_v",
|
|
441
|
-
"type": "uint8"
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
"name": "_r",
|
|
445
|
-
"type": "bytes32"
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
"name": "_s",
|
|
449
|
-
"type": "bytes32"
|
|
450
310
|
}
|
|
451
311
|
],
|
|
452
|
-
"name": "permit",
|
|
453
|
-
"outputs": [],
|
|
454
312
|
"payable": false,
|
|
455
|
-
"stateMutability": "
|
|
313
|
+
"stateMutability": "view",
|
|
456
314
|
"type": "function"
|
|
457
315
|
},
|
|
458
316
|
{
|
|
@@ -473,21 +331,16 @@ export const PermittableToken_jsonAbi = [
|
|
|
473
331
|
"constant": false,
|
|
474
332
|
"inputs": [
|
|
475
333
|
{
|
|
476
|
-
"name": "
|
|
334
|
+
"name": "_to",
|
|
477
335
|
"type": "address"
|
|
478
336
|
},
|
|
479
337
|
{
|
|
480
|
-
"name": "
|
|
338
|
+
"name": "_value",
|
|
481
339
|
"type": "uint256"
|
|
482
340
|
}
|
|
483
341
|
],
|
|
484
|
-
"name": "
|
|
485
|
-
"outputs": [
|
|
486
|
-
{
|
|
487
|
-
"name": "",
|
|
488
|
-
"type": "bool"
|
|
489
|
-
}
|
|
490
|
-
],
|
|
342
|
+
"name": "transfer",
|
|
343
|
+
"outputs": [],
|
|
491
344
|
"payable": false,
|
|
492
345
|
"stateMutability": "nonpayable",
|
|
493
346
|
"type": "function"
|
|
@@ -496,21 +349,16 @@ export const PermittableToken_jsonAbi = [
|
|
|
496
349
|
"constant": false,
|
|
497
350
|
"inputs": [
|
|
498
351
|
{
|
|
499
|
-
"name": "
|
|
500
|
-
"type": "
|
|
352
|
+
"name": "newBasisPoints",
|
|
353
|
+
"type": "uint256"
|
|
501
354
|
},
|
|
502
355
|
{
|
|
503
|
-
"name": "
|
|
356
|
+
"name": "newMaxFee",
|
|
504
357
|
"type": "uint256"
|
|
505
358
|
}
|
|
506
359
|
],
|
|
507
|
-
"name": "
|
|
508
|
-
"outputs": [
|
|
509
|
-
{
|
|
510
|
-
"name": "",
|
|
511
|
-
"type": "bool"
|
|
512
|
-
}
|
|
513
|
-
],
|
|
360
|
+
"name": "setParams",
|
|
361
|
+
"outputs": [],
|
|
514
362
|
"payable": false,
|
|
515
363
|
"stateMutability": "nonpayable",
|
|
516
364
|
"type": "function"
|
|
@@ -519,15 +367,11 @@ export const PermittableToken_jsonAbi = [
|
|
|
519
367
|
"constant": false,
|
|
520
368
|
"inputs": [
|
|
521
369
|
{
|
|
522
|
-
"name": "
|
|
523
|
-
"type": "address"
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
"name": "_amount",
|
|
370
|
+
"name": "amount",
|
|
527
371
|
"type": "uint256"
|
|
528
372
|
}
|
|
529
373
|
],
|
|
530
|
-
"name": "
|
|
374
|
+
"name": "issue",
|
|
531
375
|
"outputs": [],
|
|
532
376
|
"payable": false,
|
|
533
377
|
"stateMutability": "nonpayable",
|
|
@@ -537,19 +381,11 @@ export const PermittableToken_jsonAbi = [
|
|
|
537
381
|
"constant": false,
|
|
538
382
|
"inputs": [
|
|
539
383
|
{
|
|
540
|
-
"name": "
|
|
541
|
-
"type": "address"
|
|
542
|
-
},
|
|
543
|
-
{
|
|
544
|
-
"name": "_to",
|
|
545
|
-
"type": "address"
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
"name": "_amount",
|
|
384
|
+
"name": "amount",
|
|
549
385
|
"type": "uint256"
|
|
550
386
|
}
|
|
551
387
|
],
|
|
552
|
-
"name": "
|
|
388
|
+
"name": "redeem",
|
|
553
389
|
"outputs": [],
|
|
554
390
|
"payable": false,
|
|
555
391
|
"stateMutability": "nonpayable",
|
|
@@ -557,12 +393,21 @@ export const PermittableToken_jsonAbi = [
|
|
|
557
393
|
},
|
|
558
394
|
{
|
|
559
395
|
"constant": true,
|
|
560
|
-
"inputs": [
|
|
561
|
-
|
|
396
|
+
"inputs": [
|
|
397
|
+
{
|
|
398
|
+
"name": "_owner",
|
|
399
|
+
"type": "address"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "_spender",
|
|
403
|
+
"type": "address"
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"name": "allowance",
|
|
562
407
|
"outputs": [
|
|
563
408
|
{
|
|
564
|
-
"name": "",
|
|
565
|
-
"type": "
|
|
409
|
+
"name": "remaining",
|
|
410
|
+
"type": "uint256"
|
|
566
411
|
}
|
|
567
412
|
],
|
|
568
413
|
"payable": false,
|
|
@@ -572,11 +417,11 @@ export const PermittableToken_jsonAbi = [
|
|
|
572
417
|
{
|
|
573
418
|
"constant": true,
|
|
574
419
|
"inputs": [],
|
|
575
|
-
"name": "
|
|
420
|
+
"name": "basisPointsRate",
|
|
576
421
|
"outputs": [
|
|
577
422
|
{
|
|
578
423
|
"name": "",
|
|
579
|
-
"type": "
|
|
424
|
+
"type": "uint256"
|
|
580
425
|
}
|
|
581
426
|
],
|
|
582
427
|
"payable": false,
|
|
@@ -584,79 +429,42 @@ export const PermittableToken_jsonAbi = [
|
|
|
584
429
|
"type": "function"
|
|
585
430
|
},
|
|
586
431
|
{
|
|
587
|
-
"constant":
|
|
432
|
+
"constant": true,
|
|
588
433
|
"inputs": [
|
|
589
434
|
{
|
|
590
|
-
"name": "
|
|
591
|
-
"type": "address"
|
|
592
|
-
},
|
|
593
|
-
{
|
|
594
|
-
"name": "_spender",
|
|
435
|
+
"name": "",
|
|
595
436
|
"type": "address"
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
"name": "_deadline",
|
|
603
|
-
"type": "uint256"
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
"name": "_v",
|
|
607
|
-
"type": "uint8"
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
"name": "_r",
|
|
611
|
-
"type": "bytes32"
|
|
612
|
-
},
|
|
437
|
+
}
|
|
438
|
+
],
|
|
439
|
+
"name": "isBlackListed",
|
|
440
|
+
"outputs": [
|
|
613
441
|
{
|
|
614
|
-
"name": "
|
|
615
|
-
"type": "
|
|
442
|
+
"name": "",
|
|
443
|
+
"type": "bool"
|
|
616
444
|
}
|
|
617
445
|
],
|
|
618
|
-
"name": "permit",
|
|
619
|
-
"outputs": [],
|
|
620
446
|
"payable": false,
|
|
621
|
-
"stateMutability": "
|
|
447
|
+
"stateMutability": "view",
|
|
622
448
|
"type": "function"
|
|
623
449
|
},
|
|
624
450
|
{
|
|
625
451
|
"constant": false,
|
|
626
452
|
"inputs": [
|
|
627
453
|
{
|
|
628
|
-
"name": "
|
|
454
|
+
"name": "_clearedUser",
|
|
629
455
|
"type": "address"
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
"name": "_addedValue",
|
|
633
|
-
"type": "uint256"
|
|
634
|
-
}
|
|
635
|
-
],
|
|
636
|
-
"name": "increaseApproval",
|
|
637
|
-
"outputs": [
|
|
638
|
-
{
|
|
639
|
-
"name": "",
|
|
640
|
-
"type": "bool"
|
|
641
456
|
}
|
|
642
457
|
],
|
|
458
|
+
"name": "removeBlackList",
|
|
459
|
+
"outputs": [],
|
|
643
460
|
"payable": false,
|
|
644
461
|
"stateMutability": "nonpayable",
|
|
645
462
|
"type": "function"
|
|
646
463
|
},
|
|
647
464
|
{
|
|
648
465
|
"constant": true,
|
|
649
|
-
"inputs": [
|
|
650
|
-
|
|
651
|
-
"name": "_owner",
|
|
652
|
-
"type": "address"
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
"name": "_spender",
|
|
656
|
-
"type": "address"
|
|
657
|
-
}
|
|
658
|
-
],
|
|
659
|
-
"name": "allowance",
|
|
466
|
+
"inputs": [],
|
|
467
|
+
"name": "MAX_UINT",
|
|
660
468
|
"outputs": [
|
|
661
469
|
{
|
|
662
470
|
"name": "",
|
|
@@ -671,15 +479,11 @@ export const PermittableToken_jsonAbi = [
|
|
|
671
479
|
"constant": false,
|
|
672
480
|
"inputs": [
|
|
673
481
|
{
|
|
674
|
-
"name": "
|
|
482
|
+
"name": "newOwner",
|
|
675
483
|
"type": "address"
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
"name": "_amount",
|
|
679
|
-
"type": "uint256"
|
|
680
484
|
}
|
|
681
485
|
],
|
|
682
|
-
"name": "
|
|
486
|
+
"name": "transferOwnership",
|
|
683
487
|
"outputs": [],
|
|
684
488
|
"payable": false,
|
|
685
489
|
"stateMutability": "nonpayable",
|
|
@@ -689,41 +493,22 @@ export const PermittableToken_jsonAbi = [
|
|
|
689
493
|
"constant": false,
|
|
690
494
|
"inputs": [
|
|
691
495
|
{
|
|
692
|
-
"name": "
|
|
496
|
+
"name": "_blackListedUser",
|
|
693
497
|
"type": "address"
|
|
694
498
|
}
|
|
695
499
|
],
|
|
696
|
-
"name": "
|
|
500
|
+
"name": "destroyBlackFunds",
|
|
697
501
|
"outputs": [],
|
|
698
502
|
"payable": false,
|
|
699
503
|
"stateMutability": "nonpayable",
|
|
700
504
|
"type": "function"
|
|
701
505
|
},
|
|
702
506
|
{
|
|
703
|
-
"constant": true,
|
|
704
507
|
"inputs": [
|
|
705
508
|
{
|
|
706
|
-
"name": "",
|
|
707
|
-
"type": "address"
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
"name": "",
|
|
711
|
-
"type": "address"
|
|
712
|
-
}
|
|
713
|
-
],
|
|
714
|
-
"name": "expirations",
|
|
715
|
-
"outputs": [
|
|
716
|
-
{
|
|
717
|
-
"name": "",
|
|
509
|
+
"name": "_initialSupply",
|
|
718
510
|
"type": "uint256"
|
|
719
|
-
}
|
|
720
|
-
],
|
|
721
|
-
"payable": false,
|
|
722
|
-
"stateMutability": "view",
|
|
723
|
-
"type": "function"
|
|
724
|
-
},
|
|
725
|
-
{
|
|
726
|
-
"inputs": [
|
|
511
|
+
},
|
|
727
512
|
{
|
|
728
513
|
"name": "_name",
|
|
729
514
|
"type": "string"
|
|
@@ -734,10 +519,6 @@ export const PermittableToken_jsonAbi = [
|
|
|
734
519
|
},
|
|
735
520
|
{
|
|
736
521
|
"name": "_decimals",
|
|
737
|
-
"type": "uint8"
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
"name": "_chainId",
|
|
741
522
|
"type": "uint256"
|
|
742
523
|
}
|
|
743
524
|
],
|
|
@@ -748,97 +529,95 @@ export const PermittableToken_jsonAbi = [
|
|
|
748
529
|
{
|
|
749
530
|
"anonymous": false,
|
|
750
531
|
"inputs": [
|
|
751
|
-
{
|
|
752
|
-
"indexed": true,
|
|
753
|
-
"name": "to",
|
|
754
|
-
"type": "address"
|
|
755
|
-
},
|
|
756
532
|
{
|
|
757
533
|
"indexed": false,
|
|
758
534
|
"name": "amount",
|
|
759
535
|
"type": "uint256"
|
|
760
536
|
}
|
|
761
537
|
],
|
|
762
|
-
"name": "
|
|
538
|
+
"name": "Issue",
|
|
763
539
|
"type": "event"
|
|
764
540
|
},
|
|
765
541
|
{
|
|
766
542
|
"anonymous": false,
|
|
767
|
-
"inputs": [
|
|
768
|
-
|
|
543
|
+
"inputs": [
|
|
544
|
+
{
|
|
545
|
+
"indexed": false,
|
|
546
|
+
"name": "amount",
|
|
547
|
+
"type": "uint256"
|
|
548
|
+
}
|
|
549
|
+
],
|
|
550
|
+
"name": "Redeem",
|
|
769
551
|
"type": "event"
|
|
770
552
|
},
|
|
771
553
|
{
|
|
772
554
|
"anonymous": false,
|
|
773
555
|
"inputs": [
|
|
774
556
|
{
|
|
775
|
-
"indexed":
|
|
776
|
-
"name": "
|
|
557
|
+
"indexed": false,
|
|
558
|
+
"name": "newAddress",
|
|
777
559
|
"type": "address"
|
|
778
560
|
}
|
|
779
561
|
],
|
|
780
|
-
"name": "
|
|
562
|
+
"name": "Deprecate",
|
|
781
563
|
"type": "event"
|
|
782
564
|
},
|
|
783
565
|
{
|
|
784
566
|
"anonymous": false,
|
|
785
567
|
"inputs": [
|
|
786
568
|
{
|
|
787
|
-
"indexed":
|
|
788
|
-
"name": "
|
|
789
|
-
"type": "
|
|
569
|
+
"indexed": false,
|
|
570
|
+
"name": "feeBasisPoints",
|
|
571
|
+
"type": "uint256"
|
|
790
572
|
},
|
|
791
573
|
{
|
|
792
|
-
"indexed":
|
|
793
|
-
"name": "
|
|
794
|
-
"type": "
|
|
574
|
+
"indexed": false,
|
|
575
|
+
"name": "maxFee",
|
|
576
|
+
"type": "uint256"
|
|
795
577
|
}
|
|
796
578
|
],
|
|
797
|
-
"name": "
|
|
579
|
+
"name": "Params",
|
|
798
580
|
"type": "event"
|
|
799
581
|
},
|
|
800
582
|
{
|
|
801
583
|
"anonymous": false,
|
|
802
584
|
"inputs": [
|
|
803
585
|
{
|
|
804
|
-
"indexed":
|
|
805
|
-
"name": "
|
|
586
|
+
"indexed": false,
|
|
587
|
+
"name": "_blackListedUser",
|
|
806
588
|
"type": "address"
|
|
807
589
|
},
|
|
808
590
|
{
|
|
809
591
|
"indexed": false,
|
|
810
|
-
"name": "
|
|
592
|
+
"name": "_balance",
|
|
811
593
|
"type": "uint256"
|
|
812
594
|
}
|
|
813
595
|
],
|
|
814
|
-
"name": "
|
|
596
|
+
"name": "DestroyedBlackFunds",
|
|
815
597
|
"type": "event"
|
|
816
598
|
},
|
|
817
599
|
{
|
|
818
600
|
"anonymous": false,
|
|
819
601
|
"inputs": [
|
|
820
|
-
{
|
|
821
|
-
"indexed": true,
|
|
822
|
-
"name": "from",
|
|
823
|
-
"type": "address"
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
"indexed": true,
|
|
827
|
-
"name": "to",
|
|
828
|
-
"type": "address"
|
|
829
|
-
},
|
|
830
602
|
{
|
|
831
603
|
"indexed": false,
|
|
832
|
-
"name": "
|
|
833
|
-
"type": "
|
|
834
|
-
}
|
|
604
|
+
"name": "_user",
|
|
605
|
+
"type": "address"
|
|
606
|
+
}
|
|
607
|
+
],
|
|
608
|
+
"name": "AddedBlackList",
|
|
609
|
+
"type": "event"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"anonymous": false,
|
|
613
|
+
"inputs": [
|
|
835
614
|
{
|
|
836
615
|
"indexed": false,
|
|
837
|
-
"name": "
|
|
838
|
-
"type": "
|
|
616
|
+
"name": "_user",
|
|
617
|
+
"type": "address"
|
|
839
618
|
}
|
|
840
619
|
],
|
|
841
|
-
"name": "
|
|
620
|
+
"name": "RemovedBlackList",
|
|
842
621
|
"type": "event"
|
|
843
622
|
},
|
|
844
623
|
{
|
|
@@ -884,23 +663,35 @@ export const PermittableToken_jsonAbi = [
|
|
|
884
663
|
],
|
|
885
664
|
"name": "Transfer",
|
|
886
665
|
"type": "event"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"anonymous": false,
|
|
669
|
+
"inputs": [],
|
|
670
|
+
"name": "Pause",
|
|
671
|
+
"type": "event"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"anonymous": false,
|
|
675
|
+
"inputs": [],
|
|
676
|
+
"name": "Unpause",
|
|
677
|
+
"type": "event"
|
|
887
678
|
}
|
|
888
679
|
] as const satisfies Abi;
|
|
889
680
|
|
|
890
681
|
/**
|
|
891
|
-
* Type-safe ABI for
|
|
682
|
+
* Type-safe ABI for TetherToken_json
|
|
892
683
|
*/
|
|
893
|
-
export type
|
|
684
|
+
export type TetherToken_jsonAbi = typeof TetherToken_jsonAbi;
|
|
894
685
|
|
|
895
686
|
/**
|
|
896
|
-
* Contract instance type for
|
|
687
|
+
* Contract instance type for TetherToken_json
|
|
897
688
|
*/
|
|
898
689
|
// Use any for contract type to avoid complex viem type issues
|
|
899
690
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
900
|
-
export type
|
|
691
|
+
export type TetherToken_jsonContract = any;
|
|
901
692
|
|
|
902
693
|
/**
|
|
903
|
-
*
|
|
694
|
+
* TetherToken_json Contract Class
|
|
904
695
|
*
|
|
905
696
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
906
697
|
*
|
|
@@ -908,12 +699,12 @@ export type PermittableToken_jsonContract = any;
|
|
|
908
699
|
* ```typescript
|
|
909
700
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
910
701
|
* import { mainnet } from 'viem/chains';
|
|
911
|
-
* import {
|
|
702
|
+
* import { TetherToken_json } from 'TetherToken_json';
|
|
912
703
|
*
|
|
913
704
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
914
705
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
915
706
|
*
|
|
916
|
-
* const contract = new
|
|
707
|
+
* const contract = new TetherToken_json('0x...', { publicClient, walletClient });
|
|
917
708
|
*
|
|
918
709
|
* // Read functions
|
|
919
710
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -931,8 +722,8 @@ export type PermittableToken_jsonContract = any;
|
|
|
931
722
|
* });
|
|
932
723
|
* ```
|
|
933
724
|
*/
|
|
934
|
-
export class
|
|
935
|
-
private contract:
|
|
725
|
+
export class TetherToken_json {
|
|
726
|
+
private contract: TetherToken_jsonContract;
|
|
936
727
|
private contractAddress: Address;
|
|
937
728
|
private publicClient: PublicClient;
|
|
938
729
|
|
|
@@ -947,7 +738,7 @@ export class PermittableToken_json {
|
|
|
947
738
|
this.publicClient = clients.publicClient;
|
|
948
739
|
this.contract = getContract({
|
|
949
740
|
address,
|
|
950
|
-
abi:
|
|
741
|
+
abi: TetherToken_jsonAbi,
|
|
951
742
|
client: {
|
|
952
743
|
public: clients.publicClient,
|
|
953
744
|
wallet: clients.walletClient,
|
|
@@ -965,24 +756,24 @@ export class PermittableToken_json {
|
|
|
965
756
|
/**
|
|
966
757
|
* Get the underlying viem contract instance
|
|
967
758
|
*/
|
|
968
|
-
getContract():
|
|
759
|
+
getContract(): TetherToken_jsonContract {
|
|
969
760
|
return this.contract;
|
|
970
761
|
}
|
|
971
762
|
|
|
972
763
|
/**
|
|
973
|
-
*
|
|
764
|
+
* name
|
|
974
765
|
* view
|
|
975
766
|
*/
|
|
976
|
-
async
|
|
977
|
-
return this.contract.read.
|
|
767
|
+
async name(): Promise<string> {
|
|
768
|
+
return this.contract.read.name() as Promise<string>;
|
|
978
769
|
}
|
|
979
770
|
|
|
980
771
|
/**
|
|
981
|
-
*
|
|
772
|
+
* deprecated
|
|
982
773
|
* view
|
|
983
774
|
*/
|
|
984
|
-
async
|
|
985
|
-
return this.contract.read.
|
|
775
|
+
async deprecated(): Promise<boolean> {
|
|
776
|
+
return this.contract.read.deprecated() as Promise<boolean>;
|
|
986
777
|
}
|
|
987
778
|
|
|
988
779
|
/**
|
|
@@ -994,99 +785,99 @@ export class PermittableToken_json {
|
|
|
994
785
|
}
|
|
995
786
|
|
|
996
787
|
/**
|
|
997
|
-
*
|
|
788
|
+
* upgradedAddress
|
|
998
789
|
* view
|
|
999
790
|
*/
|
|
1000
|
-
async
|
|
1001
|
-
return this.contract.read.
|
|
791
|
+
async upgradedAddress(): Promise<`0x${string}`> {
|
|
792
|
+
return this.contract.read.upgradedAddress() as Promise<`0x${string}`>;
|
|
1002
793
|
}
|
|
1003
794
|
|
|
1004
795
|
/**
|
|
1005
|
-
*
|
|
796
|
+
* balances
|
|
1006
797
|
* view
|
|
1007
798
|
*/
|
|
1008
|
-
async
|
|
1009
|
-
return this.contract.read.
|
|
799
|
+
async balances(arg0: `0x${string}`): Promise<bigint> {
|
|
800
|
+
return this.contract.read.balances([arg0] as const) as Promise<bigint>;
|
|
1010
801
|
}
|
|
1011
802
|
|
|
1012
803
|
/**
|
|
1013
|
-
*
|
|
804
|
+
* decimals
|
|
1014
805
|
* view
|
|
1015
806
|
*/
|
|
1016
|
-
async
|
|
1017
|
-
return this.contract.read.
|
|
807
|
+
async decimals(): Promise<bigint> {
|
|
808
|
+
return this.contract.read.decimals() as Promise<bigint>;
|
|
1018
809
|
}
|
|
1019
810
|
|
|
1020
811
|
/**
|
|
1021
|
-
*
|
|
812
|
+
* maximumFee
|
|
1022
813
|
* view
|
|
1023
814
|
*/
|
|
1024
|
-
async
|
|
1025
|
-
return this.contract.read.
|
|
815
|
+
async maximumFee(): Promise<bigint> {
|
|
816
|
+
return this.contract.read.maximumFee() as Promise<bigint>;
|
|
1026
817
|
}
|
|
1027
818
|
|
|
1028
819
|
/**
|
|
1029
|
-
*
|
|
820
|
+
* _totalSupply
|
|
1030
821
|
* view
|
|
1031
822
|
*/
|
|
1032
|
-
async
|
|
1033
|
-
return this.contract.read.
|
|
823
|
+
async _totalSupply(): Promise<bigint> {
|
|
824
|
+
return this.contract.read._totalSupply() as Promise<bigint>;
|
|
1034
825
|
}
|
|
1035
826
|
|
|
1036
827
|
/**
|
|
1037
|
-
*
|
|
828
|
+
* getBlackListStatus
|
|
1038
829
|
* view
|
|
1039
830
|
*/
|
|
1040
|
-
async
|
|
1041
|
-
return this.contract.read.
|
|
831
|
+
async getBlackListStatus(_maker: `0x${string}`): Promise<boolean> {
|
|
832
|
+
return this.contract.read.getBlackListStatus([_maker] as const) as Promise<boolean>;
|
|
1042
833
|
}
|
|
1043
834
|
|
|
1044
835
|
/**
|
|
1045
|
-
*
|
|
836
|
+
* allowed
|
|
1046
837
|
* view
|
|
1047
838
|
*/
|
|
1048
|
-
async
|
|
1049
|
-
return this.contract.read.
|
|
839
|
+
async allowed(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint> {
|
|
840
|
+
return this.contract.read.allowed([arg0, arg1] as const) as Promise<bigint>;
|
|
1050
841
|
}
|
|
1051
842
|
|
|
1052
843
|
/**
|
|
1053
|
-
*
|
|
1054
|
-
*
|
|
844
|
+
* paused
|
|
845
|
+
* view
|
|
1055
846
|
*/
|
|
1056
|
-
async
|
|
1057
|
-
return this.contract.read.
|
|
847
|
+
async paused(): Promise<boolean> {
|
|
848
|
+
return this.contract.read.paused() as Promise<boolean>;
|
|
1058
849
|
}
|
|
1059
850
|
|
|
1060
851
|
/**
|
|
1061
|
-
*
|
|
852
|
+
* balanceOf
|
|
1062
853
|
* view
|
|
1063
854
|
*/
|
|
1064
|
-
async
|
|
1065
|
-
return this.contract.read.
|
|
855
|
+
async balanceOf(who: `0x${string}`): Promise<bigint> {
|
|
856
|
+
return this.contract.read.balanceOf([who] as const) as Promise<bigint>;
|
|
1066
857
|
}
|
|
1067
858
|
|
|
1068
859
|
/**
|
|
1069
|
-
*
|
|
860
|
+
* getOwner
|
|
1070
861
|
* view
|
|
1071
862
|
*/
|
|
1072
|
-
async
|
|
1073
|
-
return this.contract.read.
|
|
863
|
+
async getOwner(): Promise<`0x${string}`> {
|
|
864
|
+
return this.contract.read.getOwner() as Promise<`0x${string}`>;
|
|
1074
865
|
}
|
|
1075
866
|
|
|
1076
867
|
/**
|
|
1077
|
-
*
|
|
868
|
+
* owner
|
|
1078
869
|
* view
|
|
1079
870
|
*/
|
|
1080
|
-
async
|
|
1081
|
-
return this.contract.read.
|
|
871
|
+
async owner(): Promise<`0x${string}`> {
|
|
872
|
+
return this.contract.read.owner() as Promise<`0x${string}`>;
|
|
1082
873
|
}
|
|
1083
874
|
|
|
1084
875
|
/**
|
|
1085
|
-
*
|
|
876
|
+
* symbol
|
|
1086
877
|
* view
|
|
1087
878
|
*/
|
|
1088
|
-
async
|
|
1089
|
-
return this.contract.read.
|
|
879
|
+
async symbol(): Promise<string> {
|
|
880
|
+
return this.contract.read.symbol() as Promise<string>;
|
|
1090
881
|
}
|
|
1091
882
|
|
|
1092
883
|
/**
|
|
@@ -1098,134 +889,35 @@ export class PermittableToken_json {
|
|
|
1098
889
|
}
|
|
1099
890
|
|
|
1100
891
|
/**
|
|
1101
|
-
*
|
|
1102
|
-
* view
|
|
1103
|
-
*/
|
|
1104
|
-
async expirations(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint> {
|
|
1105
|
-
return this.contract.read.expirations([arg0, arg1] as const) as Promise<bigint>;
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
/**
|
|
1109
|
-
* approve
|
|
1110
|
-
* nonpayable
|
|
1111
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1112
|
-
*/
|
|
1113
|
-
async approve(_to: `0x${string}`, _value: bigint, options?: {
|
|
1114
|
-
accessList?: import('viem').AccessList;
|
|
1115
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1116
|
-
chain?: import('viem').Chain | null;
|
|
1117
|
-
dataSuffix?: `0x${string}`;
|
|
1118
|
-
gas?: bigint;
|
|
1119
|
-
gasPrice?: bigint;
|
|
1120
|
-
maxFeePerGas?: bigint;
|
|
1121
|
-
maxPriorityFeePerGas?: bigint;
|
|
1122
|
-
nonce?: number;
|
|
1123
|
-
value?: bigint;
|
|
1124
|
-
}): Promise<`0x${string}`> {
|
|
1125
|
-
if (!this.contract.write) {
|
|
1126
|
-
throw new Error('Wallet client is required for write operations');
|
|
1127
|
-
}
|
|
1128
|
-
return this.contract.write.approve([_to, _value] as const, options) as Promise<`0x${string}`>;
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
/**
|
|
1132
|
-
* setBridgeContract
|
|
1133
|
-
* nonpayable
|
|
1134
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1135
|
-
*/
|
|
1136
|
-
async setBridgeContract(_bridgeContract: `0x${string}`, options?: {
|
|
1137
|
-
accessList?: import('viem').AccessList;
|
|
1138
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1139
|
-
chain?: import('viem').Chain | null;
|
|
1140
|
-
dataSuffix?: `0x${string}`;
|
|
1141
|
-
gas?: bigint;
|
|
1142
|
-
gasPrice?: bigint;
|
|
1143
|
-
maxFeePerGas?: bigint;
|
|
1144
|
-
maxPriorityFeePerGas?: bigint;
|
|
1145
|
-
nonce?: number;
|
|
1146
|
-
value?: bigint;
|
|
1147
|
-
}): Promise<`0x${string}`> {
|
|
1148
|
-
if (!this.contract.write) {
|
|
1149
|
-
throw new Error('Wallet client is required for write operations');
|
|
1150
|
-
}
|
|
1151
|
-
return this.contract.write.setBridgeContract([_bridgeContract] as const, options) as Promise<`0x${string}`>;
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
/**
|
|
1155
|
-
* transferFrom
|
|
1156
|
-
* nonpayable
|
|
1157
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
892
|
+
* basisPointsRate
|
|
893
|
+
* view
|
|
1158
894
|
*/
|
|
1159
|
-
async
|
|
1160
|
-
|
|
1161
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1162
|
-
chain?: import('viem').Chain | null;
|
|
1163
|
-
dataSuffix?: `0x${string}`;
|
|
1164
|
-
gas?: bigint;
|
|
1165
|
-
gasPrice?: bigint;
|
|
1166
|
-
maxFeePerGas?: bigint;
|
|
1167
|
-
maxPriorityFeePerGas?: bigint;
|
|
1168
|
-
nonce?: number;
|
|
1169
|
-
value?: bigint;
|
|
1170
|
-
}): Promise<`0x${string}`> {
|
|
1171
|
-
if (!this.contract.write) {
|
|
1172
|
-
throw new Error('Wallet client is required for write operations');
|
|
1173
|
-
}
|
|
1174
|
-
return this.contract.write.transferFrom([_sender, _recipient, _amount] as const, options) as Promise<`0x${string}`>;
|
|
895
|
+
async basisPointsRate(): Promise<bigint> {
|
|
896
|
+
return this.contract.read.basisPointsRate() as Promise<bigint>;
|
|
1175
897
|
}
|
|
1176
898
|
|
|
1177
899
|
/**
|
|
1178
|
-
*
|
|
1179
|
-
*
|
|
1180
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
900
|
+
* isBlackListed
|
|
901
|
+
* view
|
|
1181
902
|
*/
|
|
1182
|
-
async
|
|
1183
|
-
|
|
1184
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1185
|
-
chain?: import('viem').Chain | null;
|
|
1186
|
-
dataSuffix?: `0x${string}`;
|
|
1187
|
-
gas?: bigint;
|
|
1188
|
-
gasPrice?: bigint;
|
|
1189
|
-
maxFeePerGas?: bigint;
|
|
1190
|
-
maxPriorityFeePerGas?: bigint;
|
|
1191
|
-
nonce?: number;
|
|
1192
|
-
value?: bigint;
|
|
1193
|
-
}): Promise<`0x${string}`> {
|
|
1194
|
-
if (!this.contract.write) {
|
|
1195
|
-
throw new Error('Wallet client is required for write operations');
|
|
1196
|
-
}
|
|
1197
|
-
return this.contract.write.increaseAllowance([_to, _addedValue] as const, options) as Promise<`0x${string}`>;
|
|
903
|
+
async isBlackListed(arg0: `0x${string}`): Promise<boolean> {
|
|
904
|
+
return this.contract.read.isBlackListed([arg0] as const) as Promise<boolean>;
|
|
1198
905
|
}
|
|
1199
906
|
|
|
1200
907
|
/**
|
|
1201
|
-
*
|
|
1202
|
-
*
|
|
1203
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
908
|
+
* MAX_UINT
|
|
909
|
+
* view
|
|
1204
910
|
*/
|
|
1205
|
-
async
|
|
1206
|
-
|
|
1207
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1208
|
-
chain?: import('viem').Chain | null;
|
|
1209
|
-
dataSuffix?: `0x${string}`;
|
|
1210
|
-
gas?: bigint;
|
|
1211
|
-
gasPrice?: bigint;
|
|
1212
|
-
maxFeePerGas?: bigint;
|
|
1213
|
-
maxPriorityFeePerGas?: bigint;
|
|
1214
|
-
nonce?: number;
|
|
1215
|
-
value?: bigint;
|
|
1216
|
-
}): Promise<`0x${string}`> {
|
|
1217
|
-
if (!this.contract.write) {
|
|
1218
|
-
throw new Error('Wallet client is required for write operations');
|
|
1219
|
-
}
|
|
1220
|
-
return this.contract.write.transferAndCall([_to, _value, _data] as const, options) as Promise<`0x${string}`>;
|
|
911
|
+
async MAX_UINT(): Promise<bigint> {
|
|
912
|
+
return this.contract.read.MAX_UINT() as Promise<bigint>;
|
|
1221
913
|
}
|
|
1222
914
|
|
|
1223
915
|
/**
|
|
1224
|
-
*
|
|
916
|
+
* deprecate
|
|
1225
917
|
* nonpayable
|
|
1226
918
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1227
919
|
*/
|
|
1228
|
-
async
|
|
920
|
+
async deprecate(_upgradedAddress: `0x${string}`, options?: {
|
|
1229
921
|
accessList?: import('viem').AccessList;
|
|
1230
922
|
authorizationList?: import('viem').AuthorizationList;
|
|
1231
923
|
chain?: import('viem').Chain | null;
|
|
@@ -1240,15 +932,15 @@ export class PermittableToken_json {
|
|
|
1240
932
|
if (!this.contract.write) {
|
|
1241
933
|
throw new Error('Wallet client is required for write operations');
|
|
1242
934
|
}
|
|
1243
|
-
return this.contract.write.
|
|
935
|
+
return this.contract.write.deprecate([_upgradedAddress] as const, options) as Promise<`0x${string}`>;
|
|
1244
936
|
}
|
|
1245
937
|
|
|
1246
938
|
/**
|
|
1247
|
-
*
|
|
939
|
+
* approve
|
|
1248
940
|
* nonpayable
|
|
1249
941
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1250
942
|
*/
|
|
1251
|
-
async
|
|
943
|
+
async approve(_spender: `0x${string}`, _value: bigint, options?: {
|
|
1252
944
|
accessList?: import('viem').AccessList;
|
|
1253
945
|
authorizationList?: import('viem').AuthorizationList;
|
|
1254
946
|
chain?: import('viem').Chain | null;
|
|
@@ -1263,15 +955,15 @@ export class PermittableToken_json {
|
|
|
1263
955
|
if (!this.contract.write) {
|
|
1264
956
|
throw new Error('Wallet client is required for write operations');
|
|
1265
957
|
}
|
|
1266
|
-
return this.contract.write.
|
|
958
|
+
return this.contract.write.approve([_spender, _value] as const, options) as Promise<`0x${string}`>;
|
|
1267
959
|
}
|
|
1268
960
|
|
|
1269
961
|
/**
|
|
1270
|
-
*
|
|
962
|
+
* addBlackList
|
|
1271
963
|
* nonpayable
|
|
1272
964
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1273
965
|
*/
|
|
1274
|
-
async
|
|
966
|
+
async addBlackList(_evilUser: `0x${string}`, options?: {
|
|
1275
967
|
accessList?: import('viem').AccessList;
|
|
1276
968
|
authorizationList?: import('viem').AuthorizationList;
|
|
1277
969
|
chain?: import('viem').Chain | null;
|
|
@@ -1286,15 +978,15 @@ export class PermittableToken_json {
|
|
|
1286
978
|
if (!this.contract.write) {
|
|
1287
979
|
throw new Error('Wallet client is required for write operations');
|
|
1288
980
|
}
|
|
1289
|
-
return this.contract.write.
|
|
981
|
+
return this.contract.write.addBlackList([_evilUser] as const, options) as Promise<`0x${string}`>;
|
|
1290
982
|
}
|
|
1291
983
|
|
|
1292
984
|
/**
|
|
1293
|
-
*
|
|
985
|
+
* transferFrom
|
|
1294
986
|
* nonpayable
|
|
1295
987
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1296
988
|
*/
|
|
1297
|
-
async
|
|
989
|
+
async transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
|
|
1298
990
|
accessList?: import('viem').AccessList;
|
|
1299
991
|
authorizationList?: import('viem').AuthorizationList;
|
|
1300
992
|
chain?: import('viem').Chain | null;
|
|
@@ -1309,15 +1001,15 @@ export class PermittableToken_json {
|
|
|
1309
1001
|
if (!this.contract.write) {
|
|
1310
1002
|
throw new Error('Wallet client is required for write operations');
|
|
1311
1003
|
}
|
|
1312
|
-
return this.contract.write.
|
|
1004
|
+
return this.contract.write.transferFrom([_from, _to, _value] as const, options) as Promise<`0x${string}`>;
|
|
1313
1005
|
}
|
|
1314
1006
|
|
|
1315
1007
|
/**
|
|
1316
|
-
*
|
|
1008
|
+
* unpause
|
|
1317
1009
|
* nonpayable
|
|
1318
1010
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1319
1011
|
*/
|
|
1320
|
-
async
|
|
1012
|
+
async unpause(options?: {
|
|
1321
1013
|
accessList?: import('viem').AccessList;
|
|
1322
1014
|
authorizationList?: import('viem').AuthorizationList;
|
|
1323
1015
|
chain?: import('viem').Chain | null;
|
|
@@ -1332,15 +1024,15 @@ export class PermittableToken_json {
|
|
|
1332
1024
|
if (!this.contract.write) {
|
|
1333
1025
|
throw new Error('Wallet client is required for write operations');
|
|
1334
1026
|
}
|
|
1335
|
-
return this.contract.write.
|
|
1027
|
+
return this.contract.write.unpause(options) as Promise<`0x${string}`>;
|
|
1336
1028
|
}
|
|
1337
1029
|
|
|
1338
1030
|
/**
|
|
1339
|
-
*
|
|
1031
|
+
* pause
|
|
1340
1032
|
* nonpayable
|
|
1341
1033
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1342
1034
|
*/
|
|
1343
|
-
async
|
|
1035
|
+
async pause(options?: {
|
|
1344
1036
|
accessList?: import('viem').AccessList;
|
|
1345
1037
|
authorizationList?: import('viem').AuthorizationList;
|
|
1346
1038
|
chain?: import('viem').Chain | null;
|
|
@@ -1355,46 +1047,15 @@ export class PermittableToken_json {
|
|
|
1355
1047
|
if (!this.contract.write) {
|
|
1356
1048
|
throw new Error('Wallet client is required for write operations');
|
|
1357
1049
|
}
|
|
1358
|
-
return this.contract.write.
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
async permit(_holder: `0x${string}`, _spender: `0x${string}`, _nonce: bigint, _expiry: bigint, _allowed: boolean, _v: bigint, _r: `0x${string}`, _s: `0x${string}`, options?: {
|
|
1362
|
-
accessList?: import('viem').AccessList;
|
|
1363
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1364
|
-
chain?: import('viem').Chain | null;
|
|
1365
|
-
dataSuffix?: `0x${string}`;
|
|
1366
|
-
gas?: bigint;
|
|
1367
|
-
gasPrice?: bigint;
|
|
1368
|
-
maxFeePerGas?: bigint;
|
|
1369
|
-
maxPriorityFeePerGas?: bigint;
|
|
1370
|
-
nonce?: number;
|
|
1371
|
-
value?: bigint;
|
|
1372
|
-
}): Promise<`0x${string}`>;
|
|
1373
|
-
async permit(_holder: `0x${string}`, _spender: `0x${string}`, _value: bigint, _deadline: bigint, _v: bigint, _r: `0x${string}`, _s: `0x${string}`, options?: {
|
|
1374
|
-
accessList?: import('viem').AccessList;
|
|
1375
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1376
|
-
chain?: import('viem').Chain | null;
|
|
1377
|
-
dataSuffix?: `0x${string}`;
|
|
1378
|
-
gas?: bigint;
|
|
1379
|
-
gasPrice?: bigint;
|
|
1380
|
-
maxFeePerGas?: bigint;
|
|
1381
|
-
maxPriorityFeePerGas?: bigint;
|
|
1382
|
-
nonce?: number;
|
|
1383
|
-
value?: bigint;
|
|
1384
|
-
}): Promise<`0x${string}`>;
|
|
1385
|
-
async permit(...args: any[]): Promise<`0x${string}`> {
|
|
1386
|
-
if (!this.contract.write) {
|
|
1387
|
-
throw new Error('Wallet client is required for write operations');
|
|
1388
|
-
}
|
|
1389
|
-
return this.contract.write.permit(args as any) as Promise<`0x${string}`>;
|
|
1050
|
+
return this.contract.write.pause(options) as Promise<`0x${string}`>;
|
|
1390
1051
|
}
|
|
1391
1052
|
|
|
1392
1053
|
/**
|
|
1393
|
-
*
|
|
1054
|
+
* transfer
|
|
1394
1055
|
* nonpayable
|
|
1395
1056
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1396
1057
|
*/
|
|
1397
|
-
async
|
|
1058
|
+
async transfer(_to: `0x${string}`, _value: bigint, options?: {
|
|
1398
1059
|
accessList?: import('viem').AccessList;
|
|
1399
1060
|
authorizationList?: import('viem').AuthorizationList;
|
|
1400
1061
|
chain?: import('viem').Chain | null;
|
|
@@ -1409,15 +1070,15 @@ export class PermittableToken_json {
|
|
|
1409
1070
|
if (!this.contract.write) {
|
|
1410
1071
|
throw new Error('Wallet client is required for write operations');
|
|
1411
1072
|
}
|
|
1412
|
-
return this.contract.write.
|
|
1073
|
+
return this.contract.write.transfer([_to, _value] as const, options) as Promise<`0x${string}`>;
|
|
1413
1074
|
}
|
|
1414
1075
|
|
|
1415
1076
|
/**
|
|
1416
|
-
*
|
|
1077
|
+
* setParams
|
|
1417
1078
|
* nonpayable
|
|
1418
1079
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1419
1080
|
*/
|
|
1420
|
-
async
|
|
1081
|
+
async setParams(newBasisPoints: bigint, newMaxFee: bigint, options?: {
|
|
1421
1082
|
accessList?: import('viem').AccessList;
|
|
1422
1083
|
authorizationList?: import('viem').AuthorizationList;
|
|
1423
1084
|
chain?: import('viem').Chain | null;
|
|
@@ -1432,15 +1093,15 @@ export class PermittableToken_json {
|
|
|
1432
1093
|
if (!this.contract.write) {
|
|
1433
1094
|
throw new Error('Wallet client is required for write operations');
|
|
1434
1095
|
}
|
|
1435
|
-
return this.contract.write.
|
|
1096
|
+
return this.contract.write.setParams([newBasisPoints, newMaxFee] as const, options) as Promise<`0x${string}`>;
|
|
1436
1097
|
}
|
|
1437
1098
|
|
|
1438
1099
|
/**
|
|
1439
|
-
*
|
|
1100
|
+
* issue
|
|
1440
1101
|
* nonpayable
|
|
1441
1102
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1442
1103
|
*/
|
|
1443
|
-
async
|
|
1104
|
+
async issue(amount: bigint, options?: {
|
|
1444
1105
|
accessList?: import('viem').AccessList;
|
|
1445
1106
|
authorizationList?: import('viem').AuthorizationList;
|
|
1446
1107
|
chain?: import('viem').Chain | null;
|
|
@@ -1455,15 +1116,15 @@ export class PermittableToken_json {
|
|
|
1455
1116
|
if (!this.contract.write) {
|
|
1456
1117
|
throw new Error('Wallet client is required for write operations');
|
|
1457
1118
|
}
|
|
1458
|
-
return this.contract.write.
|
|
1119
|
+
return this.contract.write.issue([amount] as const, options) as Promise<`0x${string}`>;
|
|
1459
1120
|
}
|
|
1460
1121
|
|
|
1461
1122
|
/**
|
|
1462
|
-
*
|
|
1123
|
+
* redeem
|
|
1463
1124
|
* nonpayable
|
|
1464
1125
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1465
1126
|
*/
|
|
1466
|
-
async
|
|
1127
|
+
async redeem(amount: bigint, options?: {
|
|
1467
1128
|
accessList?: import('viem').AccessList;
|
|
1468
1129
|
authorizationList?: import('viem').AuthorizationList;
|
|
1469
1130
|
chain?: import('viem').Chain | null;
|
|
@@ -1478,15 +1139,15 @@ export class PermittableToken_json {
|
|
|
1478
1139
|
if (!this.contract.write) {
|
|
1479
1140
|
throw new Error('Wallet client is required for write operations');
|
|
1480
1141
|
}
|
|
1481
|
-
return this.contract.write.
|
|
1142
|
+
return this.contract.write.redeem([amount] as const, options) as Promise<`0x${string}`>;
|
|
1482
1143
|
}
|
|
1483
1144
|
|
|
1484
1145
|
/**
|
|
1485
|
-
*
|
|
1146
|
+
* removeBlackList
|
|
1486
1147
|
* nonpayable
|
|
1487
1148
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1488
1149
|
*/
|
|
1489
|
-
async
|
|
1150
|
+
async removeBlackList(_clearedUser: `0x${string}`, options?: {
|
|
1490
1151
|
accessList?: import('viem').AccessList;
|
|
1491
1152
|
authorizationList?: import('viem').AuthorizationList;
|
|
1492
1153
|
chain?: import('viem').Chain | null;
|
|
@@ -1501,15 +1162,15 @@ export class PermittableToken_json {
|
|
|
1501
1162
|
if (!this.contract.write) {
|
|
1502
1163
|
throw new Error('Wallet client is required for write operations');
|
|
1503
1164
|
}
|
|
1504
|
-
return this.contract.write.
|
|
1165
|
+
return this.contract.write.removeBlackList([_clearedUser] as const, options) as Promise<`0x${string}`>;
|
|
1505
1166
|
}
|
|
1506
1167
|
|
|
1507
1168
|
/**
|
|
1508
|
-
*
|
|
1169
|
+
* transferOwnership
|
|
1509
1170
|
* nonpayable
|
|
1510
1171
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1511
1172
|
*/
|
|
1512
|
-
async
|
|
1173
|
+
async transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1513
1174
|
accessList?: import('viem').AccessList;
|
|
1514
1175
|
authorizationList?: import('viem').AuthorizationList;
|
|
1515
1176
|
chain?: import('viem').Chain | null;
|
|
@@ -1524,15 +1185,15 @@ export class PermittableToken_json {
|
|
|
1524
1185
|
if (!this.contract.write) {
|
|
1525
1186
|
throw new Error('Wallet client is required for write operations');
|
|
1526
1187
|
}
|
|
1527
|
-
return this.contract.write.
|
|
1188
|
+
return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
|
|
1528
1189
|
}
|
|
1529
1190
|
|
|
1530
1191
|
/**
|
|
1531
|
-
*
|
|
1192
|
+
* destroyBlackFunds
|
|
1532
1193
|
* nonpayable
|
|
1533
1194
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1534
1195
|
*/
|
|
1535
|
-
async
|
|
1196
|
+
async destroyBlackFunds(_blackListedUser: `0x${string}`, options?: {
|
|
1536
1197
|
accessList?: import('viem').AccessList;
|
|
1537
1198
|
authorizationList?: import('viem').AuthorizationList;
|
|
1538
1199
|
chain?: import('viem').Chain | null;
|
|
@@ -1547,7 +1208,7 @@ export class PermittableToken_json {
|
|
|
1547
1208
|
if (!this.contract.write) {
|
|
1548
1209
|
throw new Error('Wallet client is required for write operations');
|
|
1549
1210
|
}
|
|
1550
|
-
return this.contract.write.
|
|
1211
|
+
return this.contract.write.destroyBlackFunds([_blackListedUser] as const, options) as Promise<`0x${string}`>;
|
|
1551
1212
|
}
|
|
1552
1213
|
|
|
1553
1214
|
|
|
@@ -1567,30 +1228,11 @@ export class PermittableToken_json {
|
|
|
1567
1228
|
}
|
|
1568
1229
|
return {
|
|
1569
1230
|
/**
|
|
1570
|
-
* Simulate
|
|
1571
|
-
* Returns gas estimate and result without sending transaction
|
|
1572
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1573
|
-
*/
|
|
1574
|
-
async approve(_to: `0x${string}`, _value: bigint, options?: {
|
|
1575
|
-
accessList?: import('viem').AccessList;
|
|
1576
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1577
|
-
chain?: import('viem').Chain | null;
|
|
1578
|
-
dataSuffix?: `0x${string}`;
|
|
1579
|
-
gas?: bigint;
|
|
1580
|
-
gasPrice?: bigint;
|
|
1581
|
-
maxFeePerGas?: bigint;
|
|
1582
|
-
maxPriorityFeePerGas?: bigint;
|
|
1583
|
-
nonce?: number;
|
|
1584
|
-
value?: bigint;
|
|
1585
|
-
}): Promise<boolean> {
|
|
1586
|
-
return contract.simulate.approve([_to, _value] as const, options) as Promise<boolean>;
|
|
1587
|
-
},
|
|
1588
|
-
/**
|
|
1589
|
-
* Simulate setBridgeContract
|
|
1231
|
+
* Simulate deprecate
|
|
1590
1232
|
* Returns gas estimate and result without sending transaction
|
|
1591
1233
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1592
1234
|
*/
|
|
1593
|
-
async
|
|
1235
|
+
async deprecate(_upgradedAddress: `0x${string}`, options?: {
|
|
1594
1236
|
accessList?: import('viem').AccessList;
|
|
1595
1237
|
authorizationList?: import('viem').AuthorizationList;
|
|
1596
1238
|
chain?: import('viem').Chain | null;
|
|
@@ -1602,90 +1244,14 @@ export class PermittableToken_json {
|
|
|
1602
1244
|
nonce?: number;
|
|
1603
1245
|
value?: bigint;
|
|
1604
1246
|
}): Promise<void> {
|
|
1605
|
-
return contract.simulate.
|
|
1606
|
-
},
|
|
1607
|
-
/**
|
|
1608
|
-
* Simulate transferFrom
|
|
1609
|
-
* Returns gas estimate and result without sending transaction
|
|
1610
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1611
|
-
*/
|
|
1612
|
-
async transferFrom(_sender: `0x${string}`, _recipient: `0x${string}`, _amount: bigint, options?: {
|
|
1613
|
-
accessList?: import('viem').AccessList;
|
|
1614
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1615
|
-
chain?: import('viem').Chain | null;
|
|
1616
|
-
dataSuffix?: `0x${string}`;
|
|
1617
|
-
gas?: bigint;
|
|
1618
|
-
gasPrice?: bigint;
|
|
1619
|
-
maxFeePerGas?: bigint;
|
|
1620
|
-
maxPriorityFeePerGas?: bigint;
|
|
1621
|
-
nonce?: number;
|
|
1622
|
-
value?: bigint;
|
|
1623
|
-
}): Promise<boolean> {
|
|
1624
|
-
return contract.simulate.transferFrom([_sender, _recipient, _amount] as const, options) as Promise<boolean>;
|
|
1625
|
-
},
|
|
1626
|
-
/**
|
|
1627
|
-
* Simulate increaseAllowance
|
|
1628
|
-
* Returns gas estimate and result without sending transaction
|
|
1629
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1630
|
-
*/
|
|
1631
|
-
async increaseAllowance(_to: `0x${string}`, _addedValue: bigint, options?: {
|
|
1632
|
-
accessList?: import('viem').AccessList;
|
|
1633
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1634
|
-
chain?: import('viem').Chain | null;
|
|
1635
|
-
dataSuffix?: `0x${string}`;
|
|
1636
|
-
gas?: bigint;
|
|
1637
|
-
gasPrice?: bigint;
|
|
1638
|
-
maxFeePerGas?: bigint;
|
|
1639
|
-
maxPriorityFeePerGas?: bigint;
|
|
1640
|
-
nonce?: number;
|
|
1641
|
-
value?: bigint;
|
|
1642
|
-
}): Promise<boolean> {
|
|
1643
|
-
return contract.simulate.increaseAllowance([_to, _addedValue] as const, options) as Promise<boolean>;
|
|
1644
|
-
},
|
|
1645
|
-
/**
|
|
1646
|
-
* Simulate transferAndCall
|
|
1647
|
-
* Returns gas estimate and result without sending transaction
|
|
1648
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1649
|
-
*/
|
|
1650
|
-
async transferAndCall(_to: `0x${string}`, _value: bigint, _data: `0x${string}`, options?: {
|
|
1651
|
-
accessList?: import('viem').AccessList;
|
|
1652
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1653
|
-
chain?: import('viem').Chain | null;
|
|
1654
|
-
dataSuffix?: `0x${string}`;
|
|
1655
|
-
gas?: bigint;
|
|
1656
|
-
gasPrice?: bigint;
|
|
1657
|
-
maxFeePerGas?: bigint;
|
|
1658
|
-
maxPriorityFeePerGas?: bigint;
|
|
1659
|
-
nonce?: number;
|
|
1660
|
-
value?: bigint;
|
|
1661
|
-
}): Promise<boolean> {
|
|
1662
|
-
return contract.simulate.transferAndCall([_to, _value, _data] as const, options) as Promise<boolean>;
|
|
1663
|
-
},
|
|
1664
|
-
/**
|
|
1665
|
-
* Simulate mint
|
|
1666
|
-
* Returns gas estimate and result without sending transaction
|
|
1667
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1668
|
-
*/
|
|
1669
|
-
async mint(_to: `0x${string}`, _amount: bigint, options?: {
|
|
1670
|
-
accessList?: import('viem').AccessList;
|
|
1671
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1672
|
-
chain?: import('viem').Chain | null;
|
|
1673
|
-
dataSuffix?: `0x${string}`;
|
|
1674
|
-
gas?: bigint;
|
|
1675
|
-
gasPrice?: bigint;
|
|
1676
|
-
maxFeePerGas?: bigint;
|
|
1677
|
-
maxPriorityFeePerGas?: bigint;
|
|
1678
|
-
nonce?: number;
|
|
1679
|
-
value?: bigint;
|
|
1680
|
-
}): Promise<boolean> {
|
|
1681
|
-
return contract.simulate.mint([_to, _amount] as const, options) as Promise<boolean>;
|
|
1247
|
+
return contract.simulate.deprecate([_upgradedAddress] as const, options) as Promise<void>;
|
|
1682
1248
|
},
|
|
1683
1249
|
/**
|
|
1684
|
-
* Simulate
|
|
1250
|
+
* Simulate approve
|
|
1685
1251
|
* Returns gas estimate and result without sending transaction
|
|
1686
1252
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1687
1253
|
*/
|
|
1688
|
-
async
|
|
1254
|
+
async approve(_spender: `0x${string}`, _value: bigint, options?: {
|
|
1689
1255
|
accessList?: import('viem').AccessList;
|
|
1690
1256
|
authorizationList?: import('viem').AuthorizationList;
|
|
1691
1257
|
chain?: import('viem').Chain | null;
|
|
@@ -1697,14 +1263,14 @@ export class PermittableToken_json {
|
|
|
1697
1263
|
nonce?: number;
|
|
1698
1264
|
value?: bigint;
|
|
1699
1265
|
}): Promise<void> {
|
|
1700
|
-
return contract.simulate.
|
|
1266
|
+
return contract.simulate.approve([_spender, _value] as const, options) as Promise<void>;
|
|
1701
1267
|
},
|
|
1702
1268
|
/**
|
|
1703
|
-
* Simulate
|
|
1269
|
+
* Simulate addBlackList
|
|
1704
1270
|
* Returns gas estimate and result without sending transaction
|
|
1705
1271
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1706
1272
|
*/
|
|
1707
|
-
async
|
|
1273
|
+
async addBlackList(_evilUser: `0x${string}`, options?: {
|
|
1708
1274
|
accessList?: import('viem').AccessList;
|
|
1709
1275
|
authorizationList?: import('viem').AuthorizationList;
|
|
1710
1276
|
chain?: import('viem').Chain | null;
|
|
@@ -1715,15 +1281,15 @@ export class PermittableToken_json {
|
|
|
1715
1281
|
maxPriorityFeePerGas?: bigint;
|
|
1716
1282
|
nonce?: number;
|
|
1717
1283
|
value?: bigint;
|
|
1718
|
-
}): Promise<
|
|
1719
|
-
return contract.simulate.
|
|
1284
|
+
}): Promise<void> {
|
|
1285
|
+
return contract.simulate.addBlackList([_evilUser] as const, options) as Promise<void>;
|
|
1720
1286
|
},
|
|
1721
1287
|
/**
|
|
1722
|
-
* Simulate
|
|
1288
|
+
* Simulate transferFrom
|
|
1723
1289
|
* Returns gas estimate and result without sending transaction
|
|
1724
1290
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1725
1291
|
*/
|
|
1726
|
-
async
|
|
1292
|
+
async transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
|
|
1727
1293
|
accessList?: import('viem').AccessList;
|
|
1728
1294
|
authorizationList?: import('viem').AuthorizationList;
|
|
1729
1295
|
chain?: import('viem').Chain | null;
|
|
@@ -1735,14 +1301,14 @@ export class PermittableToken_json {
|
|
|
1735
1301
|
nonce?: number;
|
|
1736
1302
|
value?: bigint;
|
|
1737
1303
|
}): Promise<void> {
|
|
1738
|
-
return contract.simulate.
|
|
1304
|
+
return contract.simulate.transferFrom([_from, _to, _value] as const, options) as Promise<void>;
|
|
1739
1305
|
},
|
|
1740
1306
|
/**
|
|
1741
|
-
* Simulate
|
|
1307
|
+
* Simulate unpause
|
|
1742
1308
|
* Returns gas estimate and result without sending transaction
|
|
1743
1309
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1744
1310
|
*/
|
|
1745
|
-
async
|
|
1311
|
+
async unpause(options?: {
|
|
1746
1312
|
accessList?: import('viem').AccessList;
|
|
1747
1313
|
authorizationList?: import('viem').AuthorizationList;
|
|
1748
1314
|
chain?: import('viem').Chain | null;
|
|
@@ -1754,14 +1320,14 @@ export class PermittableToken_json {
|
|
|
1754
1320
|
nonce?: number;
|
|
1755
1321
|
value?: bigint;
|
|
1756
1322
|
}): Promise<void> {
|
|
1757
|
-
return contract.simulate.
|
|
1323
|
+
return contract.simulate.unpause(options) as Promise<void>;
|
|
1758
1324
|
},
|
|
1759
1325
|
/**
|
|
1760
|
-
* Simulate
|
|
1326
|
+
* Simulate pause
|
|
1761
1327
|
* Returns gas estimate and result without sending transaction
|
|
1762
1328
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1763
1329
|
*/
|
|
1764
|
-
async
|
|
1330
|
+
async pause(options?: {
|
|
1765
1331
|
accessList?: import('viem').AccessList;
|
|
1766
1332
|
authorizationList?: import('viem').AuthorizationList;
|
|
1767
1333
|
chain?: import('viem').Chain | null;
|
|
@@ -1772,24 +1338,15 @@ export class PermittableToken_json {
|
|
|
1772
1338
|
maxPriorityFeePerGas?: bigint;
|
|
1773
1339
|
nonce?: number;
|
|
1774
1340
|
value?: bigint;
|
|
1775
|
-
}): Promise<
|
|
1776
|
-
return contract.simulate.
|
|
1777
|
-
},
|
|
1778
|
-
/**
|
|
1779
|
-
* Simulate permit
|
|
1780
|
-
* Returns gas estimate and result without sending transaction
|
|
1781
|
-
* Supports multiple overloads: (address, address, uint256, uint256, bool, uint8, bytes32, bytes32), (address, address, uint256, uint256, uint8, bytes32, bytes32)
|
|
1782
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1783
|
-
*/
|
|
1784
|
-
async permit(...args: any[]): Promise<any> {
|
|
1785
|
-
return contract.simulate.permit(args as any) as Promise<any>;
|
|
1341
|
+
}): Promise<void> {
|
|
1342
|
+
return contract.simulate.pause(options) as Promise<void>;
|
|
1786
1343
|
},
|
|
1787
1344
|
/**
|
|
1788
|
-
* Simulate
|
|
1345
|
+
* Simulate transfer
|
|
1789
1346
|
* Returns gas estimate and result without sending transaction
|
|
1790
1347
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1791
1348
|
*/
|
|
1792
|
-
async
|
|
1349
|
+
async transfer(_to: `0x${string}`, _value: bigint, options?: {
|
|
1793
1350
|
accessList?: import('viem').AccessList;
|
|
1794
1351
|
authorizationList?: import('viem').AuthorizationList;
|
|
1795
1352
|
chain?: import('viem').Chain | null;
|
|
@@ -1800,15 +1357,15 @@ export class PermittableToken_json {
|
|
|
1800
1357
|
maxPriorityFeePerGas?: bigint;
|
|
1801
1358
|
nonce?: number;
|
|
1802
1359
|
value?: bigint;
|
|
1803
|
-
}): Promise<
|
|
1804
|
-
return contract.simulate.
|
|
1360
|
+
}): Promise<void> {
|
|
1361
|
+
return contract.simulate.transfer([_to, _value] as const, options) as Promise<void>;
|
|
1805
1362
|
},
|
|
1806
1363
|
/**
|
|
1807
|
-
* Simulate
|
|
1364
|
+
* Simulate setParams
|
|
1808
1365
|
* Returns gas estimate and result without sending transaction
|
|
1809
1366
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1810
1367
|
*/
|
|
1811
|
-
async
|
|
1368
|
+
async setParams(newBasisPoints: bigint, newMaxFee: bigint, options?: {
|
|
1812
1369
|
accessList?: import('viem').AccessList;
|
|
1813
1370
|
authorizationList?: import('viem').AuthorizationList;
|
|
1814
1371
|
chain?: import('viem').Chain | null;
|
|
@@ -1819,15 +1376,15 @@ export class PermittableToken_json {
|
|
|
1819
1376
|
maxPriorityFeePerGas?: bigint;
|
|
1820
1377
|
nonce?: number;
|
|
1821
1378
|
value?: bigint;
|
|
1822
|
-
}): Promise<
|
|
1823
|
-
return contract.simulate.
|
|
1379
|
+
}): Promise<void> {
|
|
1380
|
+
return contract.simulate.setParams([newBasisPoints, newMaxFee] as const, options) as Promise<void>;
|
|
1824
1381
|
},
|
|
1825
1382
|
/**
|
|
1826
|
-
* Simulate
|
|
1383
|
+
* Simulate issue
|
|
1827
1384
|
* Returns gas estimate and result without sending transaction
|
|
1828
1385
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1829
1386
|
*/
|
|
1830
|
-
async
|
|
1387
|
+
async issue(amount: bigint, options?: {
|
|
1831
1388
|
accessList?: import('viem').AccessList;
|
|
1832
1389
|
authorizationList?: import('viem').AuthorizationList;
|
|
1833
1390
|
chain?: import('viem').Chain | null;
|
|
@@ -1839,14 +1396,14 @@ export class PermittableToken_json {
|
|
|
1839
1396
|
nonce?: number;
|
|
1840
1397
|
value?: bigint;
|
|
1841
1398
|
}): Promise<void> {
|
|
1842
|
-
return contract.simulate.
|
|
1399
|
+
return contract.simulate.issue([amount] as const, options) as Promise<void>;
|
|
1843
1400
|
},
|
|
1844
1401
|
/**
|
|
1845
|
-
* Simulate
|
|
1402
|
+
* Simulate redeem
|
|
1846
1403
|
* Returns gas estimate and result without sending transaction
|
|
1847
1404
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1848
1405
|
*/
|
|
1849
|
-
async
|
|
1406
|
+
async redeem(amount: bigint, options?: {
|
|
1850
1407
|
accessList?: import('viem').AccessList;
|
|
1851
1408
|
authorizationList?: import('viem').AuthorizationList;
|
|
1852
1409
|
chain?: import('viem').Chain | null;
|
|
@@ -1858,14 +1415,14 @@ export class PermittableToken_json {
|
|
|
1858
1415
|
nonce?: number;
|
|
1859
1416
|
value?: bigint;
|
|
1860
1417
|
}): Promise<void> {
|
|
1861
|
-
return contract.simulate.
|
|
1418
|
+
return contract.simulate.redeem([amount] as const, options) as Promise<void>;
|
|
1862
1419
|
},
|
|
1863
1420
|
/**
|
|
1864
|
-
* Simulate
|
|
1421
|
+
* Simulate removeBlackList
|
|
1865
1422
|
* Returns gas estimate and result without sending transaction
|
|
1866
1423
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1867
1424
|
*/
|
|
1868
|
-
async
|
|
1425
|
+
async removeBlackList(_clearedUser: `0x${string}`, options?: {
|
|
1869
1426
|
accessList?: import('viem').AccessList;
|
|
1870
1427
|
authorizationList?: import('viem').AuthorizationList;
|
|
1871
1428
|
chain?: import('viem').Chain | null;
|
|
@@ -1876,15 +1433,15 @@ export class PermittableToken_json {
|
|
|
1876
1433
|
maxPriorityFeePerGas?: bigint;
|
|
1877
1434
|
nonce?: number;
|
|
1878
1435
|
value?: bigint;
|
|
1879
|
-
}): Promise<
|
|
1880
|
-
return contract.simulate.
|
|
1436
|
+
}): Promise<void> {
|
|
1437
|
+
return contract.simulate.removeBlackList([_clearedUser] as const, options) as Promise<void>;
|
|
1881
1438
|
},
|
|
1882
1439
|
/**
|
|
1883
|
-
* Simulate
|
|
1440
|
+
* Simulate transferOwnership
|
|
1884
1441
|
* Returns gas estimate and result without sending transaction
|
|
1885
1442
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1886
1443
|
*/
|
|
1887
|
-
async
|
|
1444
|
+
async transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1888
1445
|
accessList?: import('viem').AccessList;
|
|
1889
1446
|
authorizationList?: import('viem').AuthorizationList;
|
|
1890
1447
|
chain?: import('viem').Chain | null;
|
|
@@ -1896,14 +1453,14 @@ export class PermittableToken_json {
|
|
|
1896
1453
|
nonce?: number;
|
|
1897
1454
|
value?: bigint;
|
|
1898
1455
|
}): Promise<void> {
|
|
1899
|
-
return contract.simulate.
|
|
1456
|
+
return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
|
|
1900
1457
|
},
|
|
1901
1458
|
/**
|
|
1902
|
-
* Simulate
|
|
1459
|
+
* Simulate destroyBlackFunds
|
|
1903
1460
|
* Returns gas estimate and result without sending transaction
|
|
1904
1461
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1905
1462
|
*/
|
|
1906
|
-
async
|
|
1463
|
+
async destroyBlackFunds(_blackListedUser: `0x${string}`, options?: {
|
|
1907
1464
|
accessList?: import('viem').AccessList;
|
|
1908
1465
|
authorizationList?: import('viem').AuthorizationList;
|
|
1909
1466
|
chain?: import('viem').Chain | null;
|
|
@@ -1915,7 +1472,7 @@ export class PermittableToken_json {
|
|
|
1915
1472
|
nonce?: number;
|
|
1916
1473
|
value?: bigint;
|
|
1917
1474
|
}): Promise<void> {
|
|
1918
|
-
return contract.simulate.
|
|
1475
|
+
return contract.simulate.destroyBlackFunds([_blackListedUser] as const, options) as Promise<void>;
|
|
1919
1476
|
}
|
|
1920
1477
|
};
|
|
1921
1478
|
}
|
|
@@ -1935,17 +1492,17 @@ export class PermittableToken_json {
|
|
|
1935
1492
|
get watch() {
|
|
1936
1493
|
return {
|
|
1937
1494
|
/**
|
|
1938
|
-
* Watch
|
|
1495
|
+
* Watch Issue events
|
|
1939
1496
|
* @param callback Function to call when event is emitted
|
|
1940
1497
|
* @param filter Optional filter for indexed parameters
|
|
1941
1498
|
* @returns Unwatch function to stop listening
|
|
1942
1499
|
*/
|
|
1943
|
-
|
|
1500
|
+
Issue: (callback: (event: { amount: bigint }) => void) => {
|
|
1944
1501
|
return this.publicClient.watchContractEvent({
|
|
1945
1502
|
address: this.contractAddress,
|
|
1946
|
-
abi:
|
|
1947
|
-
eventName: '
|
|
1948
|
-
|
|
1503
|
+
abi: TetherToken_jsonAbi,
|
|
1504
|
+
eventName: 'Issue',
|
|
1505
|
+
|
|
1949
1506
|
onLogs: (logs: any[]) => {
|
|
1950
1507
|
logs.forEach((log: any) => {
|
|
1951
1508
|
callback(log.args as any);
|
|
@@ -1954,16 +1511,16 @@ export class PermittableToken_json {
|
|
|
1954
1511
|
}) as () => void;
|
|
1955
1512
|
},
|
|
1956
1513
|
/**
|
|
1957
|
-
* Watch
|
|
1514
|
+
* Watch Redeem events
|
|
1958
1515
|
* @param callback Function to call when event is emitted
|
|
1959
1516
|
* @param filter Optional filter for indexed parameters
|
|
1960
1517
|
* @returns Unwatch function to stop listening
|
|
1961
1518
|
*/
|
|
1962
|
-
|
|
1519
|
+
Redeem: (callback: (event: { amount: bigint }) => void) => {
|
|
1963
1520
|
return this.publicClient.watchContractEvent({
|
|
1964
1521
|
address: this.contractAddress,
|
|
1965
|
-
abi:
|
|
1966
|
-
eventName: '
|
|
1522
|
+
abi: TetherToken_jsonAbi,
|
|
1523
|
+
eventName: 'Redeem',
|
|
1967
1524
|
|
|
1968
1525
|
onLogs: (logs: any[]) => {
|
|
1969
1526
|
logs.forEach((log: any) => {
|
|
@@ -1973,17 +1530,17 @@ export class PermittableToken_json {
|
|
|
1973
1530
|
}) as () => void;
|
|
1974
1531
|
},
|
|
1975
1532
|
/**
|
|
1976
|
-
* Watch
|
|
1533
|
+
* Watch Deprecate events
|
|
1977
1534
|
* @param callback Function to call when event is emitted
|
|
1978
1535
|
* @param filter Optional filter for indexed parameters
|
|
1979
1536
|
* @returns Unwatch function to stop listening
|
|
1980
1537
|
*/
|
|
1981
|
-
|
|
1538
|
+
Deprecate: (callback: (event: { newAddress: `0x${string}` }) => void) => {
|
|
1982
1539
|
return this.publicClient.watchContractEvent({
|
|
1983
1540
|
address: this.contractAddress,
|
|
1984
|
-
abi:
|
|
1985
|
-
eventName: '
|
|
1986
|
-
|
|
1541
|
+
abi: TetherToken_jsonAbi,
|
|
1542
|
+
eventName: 'Deprecate',
|
|
1543
|
+
|
|
1987
1544
|
onLogs: (logs: any[]) => {
|
|
1988
1545
|
logs.forEach((log: any) => {
|
|
1989
1546
|
callback(log.args as any);
|
|
@@ -1992,17 +1549,17 @@ export class PermittableToken_json {
|
|
|
1992
1549
|
}) as () => void;
|
|
1993
1550
|
},
|
|
1994
1551
|
/**
|
|
1995
|
-
* Watch
|
|
1552
|
+
* Watch Params events
|
|
1996
1553
|
* @param callback Function to call when event is emitted
|
|
1997
1554
|
* @param filter Optional filter for indexed parameters
|
|
1998
1555
|
* @returns Unwatch function to stop listening
|
|
1999
1556
|
*/
|
|
2000
|
-
|
|
1557
|
+
Params: (callback: (event: { feeBasisPoints: bigint; maxFee: bigint }) => void) => {
|
|
2001
1558
|
return this.publicClient.watchContractEvent({
|
|
2002
1559
|
address: this.contractAddress,
|
|
2003
|
-
abi:
|
|
2004
|
-
eventName: '
|
|
2005
|
-
|
|
1560
|
+
abi: TetherToken_jsonAbi,
|
|
1561
|
+
eventName: 'Params',
|
|
1562
|
+
|
|
2006
1563
|
onLogs: (logs: any[]) => {
|
|
2007
1564
|
logs.forEach((log: any) => {
|
|
2008
1565
|
callback(log.args as any);
|
|
@@ -2011,17 +1568,17 @@ export class PermittableToken_json {
|
|
|
2011
1568
|
}) as () => void;
|
|
2012
1569
|
},
|
|
2013
1570
|
/**
|
|
2014
|
-
* Watch
|
|
1571
|
+
* Watch DestroyedBlackFunds events
|
|
2015
1572
|
* @param callback Function to call when event is emitted
|
|
2016
1573
|
* @param filter Optional filter for indexed parameters
|
|
2017
1574
|
* @returns Unwatch function to stop listening
|
|
2018
1575
|
*/
|
|
2019
|
-
|
|
1576
|
+
DestroyedBlackFunds: (callback: (event: { _blackListedUser: `0x${string}`; _balance: bigint }) => void) => {
|
|
2020
1577
|
return this.publicClient.watchContractEvent({
|
|
2021
1578
|
address: this.contractAddress,
|
|
2022
|
-
abi:
|
|
2023
|
-
eventName: '
|
|
2024
|
-
|
|
1579
|
+
abi: TetherToken_jsonAbi,
|
|
1580
|
+
eventName: 'DestroyedBlackFunds',
|
|
1581
|
+
|
|
2025
1582
|
onLogs: (logs: any[]) => {
|
|
2026
1583
|
logs.forEach((log: any) => {
|
|
2027
1584
|
callback(log.args as any);
|
|
@@ -2030,17 +1587,36 @@ export class PermittableToken_json {
|
|
|
2030
1587
|
}) as () => void;
|
|
2031
1588
|
},
|
|
2032
1589
|
/**
|
|
2033
|
-
* Watch
|
|
1590
|
+
* Watch AddedBlackList events
|
|
2034
1591
|
* @param callback Function to call when event is emitted
|
|
2035
1592
|
* @param filter Optional filter for indexed parameters
|
|
2036
1593
|
* @returns Unwatch function to stop listening
|
|
2037
1594
|
*/
|
|
2038
|
-
|
|
1595
|
+
AddedBlackList: (callback: (event: { _user: `0x${string}` }) => void) => {
|
|
2039
1596
|
return this.publicClient.watchContractEvent({
|
|
2040
1597
|
address: this.contractAddress,
|
|
2041
|
-
abi:
|
|
2042
|
-
eventName: '
|
|
2043
|
-
|
|
1598
|
+
abi: TetherToken_jsonAbi,
|
|
1599
|
+
eventName: 'AddedBlackList',
|
|
1600
|
+
|
|
1601
|
+
onLogs: (logs: any[]) => {
|
|
1602
|
+
logs.forEach((log: any) => {
|
|
1603
|
+
callback(log.args as any);
|
|
1604
|
+
});
|
|
1605
|
+
},
|
|
1606
|
+
}) as () => void;
|
|
1607
|
+
},
|
|
1608
|
+
/**
|
|
1609
|
+
* Watch RemovedBlackList events
|
|
1610
|
+
* @param callback Function to call when event is emitted
|
|
1611
|
+
* @param filter Optional filter for indexed parameters
|
|
1612
|
+
* @returns Unwatch function to stop listening
|
|
1613
|
+
*/
|
|
1614
|
+
RemovedBlackList: (callback: (event: { _user: `0x${string}` }) => void) => {
|
|
1615
|
+
return this.publicClient.watchContractEvent({
|
|
1616
|
+
address: this.contractAddress,
|
|
1617
|
+
abi: TetherToken_jsonAbi,
|
|
1618
|
+
eventName: 'RemovedBlackList',
|
|
1619
|
+
|
|
2044
1620
|
onLogs: (logs: any[]) => {
|
|
2045
1621
|
logs.forEach((log: any) => {
|
|
2046
1622
|
callback(log.args as any);
|
|
@@ -2057,9 +1633,66 @@ export class PermittableToken_json {
|
|
|
2057
1633
|
Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
|
|
2058
1634
|
return this.publicClient.watchContractEvent({
|
|
2059
1635
|
address: this.contractAddress,
|
|
2060
|
-
abi:
|
|
1636
|
+
abi: TetherToken_jsonAbi,
|
|
2061
1637
|
eventName: 'Approval',
|
|
2062
1638
|
args: filter,
|
|
1639
|
+
onLogs: (logs: any[]) => {
|
|
1640
|
+
logs.forEach((log: any) => {
|
|
1641
|
+
callback(log.args as any);
|
|
1642
|
+
});
|
|
1643
|
+
},
|
|
1644
|
+
}) as () => void;
|
|
1645
|
+
},
|
|
1646
|
+
/**
|
|
1647
|
+
* Watch Transfer events
|
|
1648
|
+
* @param callback Function to call when event is emitted
|
|
1649
|
+
* @param filter Optional filter for indexed parameters
|
|
1650
|
+
* @returns Unwatch function to stop listening
|
|
1651
|
+
*/
|
|
1652
|
+
Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
|
|
1653
|
+
return this.publicClient.watchContractEvent({
|
|
1654
|
+
address: this.contractAddress,
|
|
1655
|
+
abi: TetherToken_jsonAbi,
|
|
1656
|
+
eventName: 'Transfer',
|
|
1657
|
+
args: filter,
|
|
1658
|
+
onLogs: (logs: any[]) => {
|
|
1659
|
+
logs.forEach((log: any) => {
|
|
1660
|
+
callback(log.args as any);
|
|
1661
|
+
});
|
|
1662
|
+
},
|
|
1663
|
+
}) as () => void;
|
|
1664
|
+
},
|
|
1665
|
+
/**
|
|
1666
|
+
* Watch Pause events
|
|
1667
|
+
* @param callback Function to call when event is emitted
|
|
1668
|
+
* @param filter Optional filter for indexed parameters
|
|
1669
|
+
* @returns Unwatch function to stop listening
|
|
1670
|
+
*/
|
|
1671
|
+
Pause: (callback: (event: { }) => void) => {
|
|
1672
|
+
return this.publicClient.watchContractEvent({
|
|
1673
|
+
address: this.contractAddress,
|
|
1674
|
+
abi: TetherToken_jsonAbi,
|
|
1675
|
+
eventName: 'Pause',
|
|
1676
|
+
|
|
1677
|
+
onLogs: (logs: any[]) => {
|
|
1678
|
+
logs.forEach((log: any) => {
|
|
1679
|
+
callback(log.args as any);
|
|
1680
|
+
});
|
|
1681
|
+
},
|
|
1682
|
+
}) as () => void;
|
|
1683
|
+
},
|
|
1684
|
+
/**
|
|
1685
|
+
* Watch Unpause events
|
|
1686
|
+
* @param callback Function to call when event is emitted
|
|
1687
|
+
* @param filter Optional filter for indexed parameters
|
|
1688
|
+
* @returns Unwatch function to stop listening
|
|
1689
|
+
*/
|
|
1690
|
+
Unpause: (callback: (event: { }) => void) => {
|
|
1691
|
+
return this.publicClient.watchContractEvent({
|
|
1692
|
+
address: this.contractAddress,
|
|
1693
|
+
abi: TetherToken_jsonAbi,
|
|
1694
|
+
eventName: 'Unpause',
|
|
1695
|
+
|
|
2063
1696
|
onLogs: (logs: any[]) => {
|
|
2064
1697
|
logs.forEach((log: any) => {
|
|
2065
1698
|
callback(log.args as any);
|