@gitmyabi-stg/xusd 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -0
- package/contracts/FiatTokenProxy.d.ts +311 -0
- package/contracts/FiatTokenProxy.js +328 -0
- package/contracts/FiatTokenProxy.ts +428 -0
- package/contracts/FiatTokenV1.d.ts +1622 -0
- package/contracts/FiatTokenV1.js +1659 -0
- package/contracts/FiatTokenV1.ts +2163 -0
- package/contracts/index.d.ts +4 -0
- package/contracts/index.js +10 -0
- package/contracts/index.ts +5 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +43 -0
|
@@ -0,0 +1,1622 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* FiatTokenV1 ABI
|
|
4
|
+
*
|
|
5
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FiatTokenV1Abi: readonly [{
|
|
8
|
+
readonly constant: true;
|
|
9
|
+
readonly inputs: readonly [];
|
|
10
|
+
readonly name: "name";
|
|
11
|
+
readonly outputs: readonly [{
|
|
12
|
+
readonly name: "";
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
}];
|
|
15
|
+
readonly payable: false;
|
|
16
|
+
readonly stateMutability: "view";
|
|
17
|
+
readonly type: "function";
|
|
18
|
+
}, {
|
|
19
|
+
readonly constant: false;
|
|
20
|
+
readonly inputs: readonly [{
|
|
21
|
+
readonly name: "_spender";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "_amount";
|
|
25
|
+
readonly type: "uint256";
|
|
26
|
+
}];
|
|
27
|
+
readonly name: "approve";
|
|
28
|
+
readonly outputs: readonly [{
|
|
29
|
+
readonly name: "";
|
|
30
|
+
readonly type: "bool";
|
|
31
|
+
}];
|
|
32
|
+
readonly payable: false;
|
|
33
|
+
readonly stateMutability: "nonpayable";
|
|
34
|
+
readonly type: "function";
|
|
35
|
+
}, {
|
|
36
|
+
readonly constant: false;
|
|
37
|
+
readonly inputs: readonly [{
|
|
38
|
+
readonly name: "_name";
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "_symbol";
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "_decimals";
|
|
45
|
+
readonly type: "uint8";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "_masterMinter";
|
|
48
|
+
readonly type: "address";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "_pauser";
|
|
51
|
+
readonly type: "address";
|
|
52
|
+
}, {
|
|
53
|
+
readonly name: "_blacklister";
|
|
54
|
+
readonly type: "address";
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "_owner";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
}];
|
|
59
|
+
readonly name: "initialize";
|
|
60
|
+
readonly outputs: readonly [];
|
|
61
|
+
readonly payable: false;
|
|
62
|
+
readonly stateMutability: "nonpayable";
|
|
63
|
+
readonly type: "function";
|
|
64
|
+
}, {
|
|
65
|
+
readonly constant: false;
|
|
66
|
+
readonly inputs: readonly [{
|
|
67
|
+
readonly name: "_tokenAddress";
|
|
68
|
+
readonly type: "address";
|
|
69
|
+
}];
|
|
70
|
+
readonly name: "reclaimToken";
|
|
71
|
+
readonly outputs: readonly [];
|
|
72
|
+
readonly payable: false;
|
|
73
|
+
readonly stateMutability: "nonpayable";
|
|
74
|
+
readonly type: "function";
|
|
75
|
+
}, {
|
|
76
|
+
readonly constant: true;
|
|
77
|
+
readonly inputs: readonly [];
|
|
78
|
+
readonly name: "totalSupply";
|
|
79
|
+
readonly outputs: readonly [{
|
|
80
|
+
readonly name: "";
|
|
81
|
+
readonly type: "uint256";
|
|
82
|
+
}];
|
|
83
|
+
readonly payable: false;
|
|
84
|
+
readonly stateMutability: "view";
|
|
85
|
+
readonly type: "function";
|
|
86
|
+
}, {
|
|
87
|
+
readonly constant: false;
|
|
88
|
+
readonly inputs: readonly [{
|
|
89
|
+
readonly name: "_account";
|
|
90
|
+
readonly type: "address";
|
|
91
|
+
}];
|
|
92
|
+
readonly name: "unBlacklist";
|
|
93
|
+
readonly outputs: readonly [];
|
|
94
|
+
readonly payable: false;
|
|
95
|
+
readonly stateMutability: "nonpayable";
|
|
96
|
+
readonly type: "function";
|
|
97
|
+
}, {
|
|
98
|
+
readonly constant: false;
|
|
99
|
+
readonly inputs: readonly [{
|
|
100
|
+
readonly name: "_from";
|
|
101
|
+
readonly type: "address";
|
|
102
|
+
}, {
|
|
103
|
+
readonly name: "_to";
|
|
104
|
+
readonly type: "address";
|
|
105
|
+
}, {
|
|
106
|
+
readonly name: "_amount";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
}];
|
|
109
|
+
readonly name: "transferFrom";
|
|
110
|
+
readonly outputs: readonly [{
|
|
111
|
+
readonly name: "";
|
|
112
|
+
readonly type: "bool";
|
|
113
|
+
}];
|
|
114
|
+
readonly payable: false;
|
|
115
|
+
readonly stateMutability: "nonpayable";
|
|
116
|
+
readonly type: "function";
|
|
117
|
+
}, {
|
|
118
|
+
readonly constant: true;
|
|
119
|
+
readonly inputs: readonly [];
|
|
120
|
+
readonly name: "decimals";
|
|
121
|
+
readonly outputs: readonly [{
|
|
122
|
+
readonly name: "";
|
|
123
|
+
readonly type: "uint8";
|
|
124
|
+
}];
|
|
125
|
+
readonly payable: false;
|
|
126
|
+
readonly stateMutability: "view";
|
|
127
|
+
readonly type: "function";
|
|
128
|
+
}, {
|
|
129
|
+
readonly constant: true;
|
|
130
|
+
readonly inputs: readonly [];
|
|
131
|
+
readonly name: "masterMinter";
|
|
132
|
+
readonly outputs: readonly [{
|
|
133
|
+
readonly name: "";
|
|
134
|
+
readonly type: "address";
|
|
135
|
+
}];
|
|
136
|
+
readonly payable: false;
|
|
137
|
+
readonly stateMutability: "view";
|
|
138
|
+
readonly type: "function";
|
|
139
|
+
}, {
|
|
140
|
+
readonly constant: false;
|
|
141
|
+
readonly inputs: readonly [{
|
|
142
|
+
readonly name: "_spender";
|
|
143
|
+
readonly type: "address";
|
|
144
|
+
}, {
|
|
145
|
+
readonly name: "_addedValue";
|
|
146
|
+
readonly type: "uint256";
|
|
147
|
+
}];
|
|
148
|
+
readonly name: "increaseAllowance";
|
|
149
|
+
readonly outputs: readonly [{
|
|
150
|
+
readonly name: "";
|
|
151
|
+
readonly type: "bool";
|
|
152
|
+
}];
|
|
153
|
+
readonly payable: false;
|
|
154
|
+
readonly stateMutability: "nonpayable";
|
|
155
|
+
readonly type: "function";
|
|
156
|
+
}, {
|
|
157
|
+
readonly constant: false;
|
|
158
|
+
readonly inputs: readonly [];
|
|
159
|
+
readonly name: "unpause";
|
|
160
|
+
readonly outputs: readonly [];
|
|
161
|
+
readonly payable: false;
|
|
162
|
+
readonly stateMutability: "nonpayable";
|
|
163
|
+
readonly type: "function";
|
|
164
|
+
}, {
|
|
165
|
+
readonly constant: false;
|
|
166
|
+
readonly inputs: readonly [{
|
|
167
|
+
readonly name: "_to";
|
|
168
|
+
readonly type: "address";
|
|
169
|
+
}, {
|
|
170
|
+
readonly name: "_amount";
|
|
171
|
+
readonly type: "uint256";
|
|
172
|
+
}];
|
|
173
|
+
readonly name: "mint";
|
|
174
|
+
readonly outputs: readonly [{
|
|
175
|
+
readonly name: "";
|
|
176
|
+
readonly type: "bool";
|
|
177
|
+
}];
|
|
178
|
+
readonly payable: false;
|
|
179
|
+
readonly stateMutability: "nonpayable";
|
|
180
|
+
readonly type: "function";
|
|
181
|
+
}, {
|
|
182
|
+
readonly constant: false;
|
|
183
|
+
readonly inputs: readonly [{
|
|
184
|
+
readonly name: "_amount";
|
|
185
|
+
readonly type: "uint256";
|
|
186
|
+
}];
|
|
187
|
+
readonly name: "burn";
|
|
188
|
+
readonly outputs: readonly [];
|
|
189
|
+
readonly payable: false;
|
|
190
|
+
readonly stateMutability: "nonpayable";
|
|
191
|
+
readonly type: "function";
|
|
192
|
+
}, {
|
|
193
|
+
readonly constant: false;
|
|
194
|
+
readonly inputs: readonly [{
|
|
195
|
+
readonly name: "_newPauser";
|
|
196
|
+
readonly type: "address";
|
|
197
|
+
}];
|
|
198
|
+
readonly name: "updatePauser";
|
|
199
|
+
readonly outputs: readonly [];
|
|
200
|
+
readonly payable: false;
|
|
201
|
+
readonly stateMutability: "nonpayable";
|
|
202
|
+
readonly type: "function";
|
|
203
|
+
}, {
|
|
204
|
+
readonly constant: true;
|
|
205
|
+
readonly inputs: readonly [];
|
|
206
|
+
readonly name: "paused";
|
|
207
|
+
readonly outputs: readonly [{
|
|
208
|
+
readonly name: "";
|
|
209
|
+
readonly type: "bool";
|
|
210
|
+
}];
|
|
211
|
+
readonly payable: false;
|
|
212
|
+
readonly stateMutability: "view";
|
|
213
|
+
readonly type: "function";
|
|
214
|
+
}, {
|
|
215
|
+
readonly constant: true;
|
|
216
|
+
readonly inputs: readonly [{
|
|
217
|
+
readonly name: "_address";
|
|
218
|
+
readonly type: "address";
|
|
219
|
+
}];
|
|
220
|
+
readonly name: "balanceOf";
|
|
221
|
+
readonly outputs: readonly [{
|
|
222
|
+
readonly name: "";
|
|
223
|
+
readonly type: "uint256";
|
|
224
|
+
}];
|
|
225
|
+
readonly payable: false;
|
|
226
|
+
readonly stateMutability: "view";
|
|
227
|
+
readonly type: "function";
|
|
228
|
+
}, {
|
|
229
|
+
readonly constant: false;
|
|
230
|
+
readonly inputs: readonly [{
|
|
231
|
+
readonly name: "_from";
|
|
232
|
+
readonly type: "address";
|
|
233
|
+
}];
|
|
234
|
+
readonly name: "lawEnforcementWipingBurn";
|
|
235
|
+
readonly outputs: readonly [];
|
|
236
|
+
readonly payable: false;
|
|
237
|
+
readonly stateMutability: "nonpayable";
|
|
238
|
+
readonly type: "function";
|
|
239
|
+
}, {
|
|
240
|
+
readonly constant: false;
|
|
241
|
+
readonly inputs: readonly [];
|
|
242
|
+
readonly name: "pause";
|
|
243
|
+
readonly outputs: readonly [];
|
|
244
|
+
readonly payable: false;
|
|
245
|
+
readonly stateMutability: "nonpayable";
|
|
246
|
+
readonly type: "function";
|
|
247
|
+
}, {
|
|
248
|
+
readonly constant: true;
|
|
249
|
+
readonly inputs: readonly [{
|
|
250
|
+
readonly name: "_minter";
|
|
251
|
+
readonly type: "address";
|
|
252
|
+
}];
|
|
253
|
+
readonly name: "minterAllowance";
|
|
254
|
+
readonly outputs: readonly [{
|
|
255
|
+
readonly name: "";
|
|
256
|
+
readonly type: "uint256";
|
|
257
|
+
}];
|
|
258
|
+
readonly payable: false;
|
|
259
|
+
readonly stateMutability: "view";
|
|
260
|
+
readonly type: "function";
|
|
261
|
+
}, {
|
|
262
|
+
readonly constant: true;
|
|
263
|
+
readonly inputs: readonly [];
|
|
264
|
+
readonly name: "owner";
|
|
265
|
+
readonly outputs: readonly [{
|
|
266
|
+
readonly name: "";
|
|
267
|
+
readonly type: "address";
|
|
268
|
+
}];
|
|
269
|
+
readonly payable: false;
|
|
270
|
+
readonly stateMutability: "view";
|
|
271
|
+
readonly type: "function";
|
|
272
|
+
}, {
|
|
273
|
+
readonly constant: true;
|
|
274
|
+
readonly inputs: readonly [];
|
|
275
|
+
readonly name: "symbol";
|
|
276
|
+
readonly outputs: readonly [{
|
|
277
|
+
readonly name: "";
|
|
278
|
+
readonly type: "string";
|
|
279
|
+
}];
|
|
280
|
+
readonly payable: false;
|
|
281
|
+
readonly stateMutability: "view";
|
|
282
|
+
readonly type: "function";
|
|
283
|
+
}, {
|
|
284
|
+
readonly constant: true;
|
|
285
|
+
readonly inputs: readonly [];
|
|
286
|
+
readonly name: "pauser";
|
|
287
|
+
readonly outputs: readonly [{
|
|
288
|
+
readonly name: "";
|
|
289
|
+
readonly type: "address";
|
|
290
|
+
}];
|
|
291
|
+
readonly payable: false;
|
|
292
|
+
readonly stateMutability: "view";
|
|
293
|
+
readonly type: "function";
|
|
294
|
+
}, {
|
|
295
|
+
readonly constant: false;
|
|
296
|
+
readonly inputs: readonly [{
|
|
297
|
+
readonly name: "_minter";
|
|
298
|
+
readonly type: "address";
|
|
299
|
+
}, {
|
|
300
|
+
readonly name: "_decreasedAmount";
|
|
301
|
+
readonly type: "uint256";
|
|
302
|
+
}];
|
|
303
|
+
readonly name: "decreaseMinterAllowance";
|
|
304
|
+
readonly outputs: readonly [];
|
|
305
|
+
readonly payable: false;
|
|
306
|
+
readonly stateMutability: "nonpayable";
|
|
307
|
+
readonly type: "function";
|
|
308
|
+
}, {
|
|
309
|
+
readonly constant: false;
|
|
310
|
+
readonly inputs: readonly [{
|
|
311
|
+
readonly name: "_spender";
|
|
312
|
+
readonly type: "address";
|
|
313
|
+
}, {
|
|
314
|
+
readonly name: "_subtractedValue";
|
|
315
|
+
readonly type: "uint256";
|
|
316
|
+
}];
|
|
317
|
+
readonly name: "decreaseAllowance";
|
|
318
|
+
readonly outputs: readonly [{
|
|
319
|
+
readonly name: "";
|
|
320
|
+
readonly type: "bool";
|
|
321
|
+
}];
|
|
322
|
+
readonly payable: false;
|
|
323
|
+
readonly stateMutability: "nonpayable";
|
|
324
|
+
readonly type: "function";
|
|
325
|
+
}, {
|
|
326
|
+
readonly constant: false;
|
|
327
|
+
readonly inputs: readonly [{
|
|
328
|
+
readonly name: "_to";
|
|
329
|
+
readonly type: "address";
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "_amount";
|
|
332
|
+
readonly type: "uint256";
|
|
333
|
+
}];
|
|
334
|
+
readonly name: "transfer";
|
|
335
|
+
readonly outputs: readonly [{
|
|
336
|
+
readonly name: "";
|
|
337
|
+
readonly type: "bool";
|
|
338
|
+
}];
|
|
339
|
+
readonly payable: false;
|
|
340
|
+
readonly stateMutability: "nonpayable";
|
|
341
|
+
readonly type: "function";
|
|
342
|
+
}, {
|
|
343
|
+
readonly constant: false;
|
|
344
|
+
readonly inputs: readonly [{
|
|
345
|
+
readonly name: "_newMasterMinter";
|
|
346
|
+
readonly type: "address";
|
|
347
|
+
}];
|
|
348
|
+
readonly name: "updateMasterMinter";
|
|
349
|
+
readonly outputs: readonly [];
|
|
350
|
+
readonly payable: false;
|
|
351
|
+
readonly stateMutability: "nonpayable";
|
|
352
|
+
readonly type: "function";
|
|
353
|
+
}, {
|
|
354
|
+
readonly constant: true;
|
|
355
|
+
readonly inputs: readonly [{
|
|
356
|
+
readonly name: "_address";
|
|
357
|
+
readonly type: "address";
|
|
358
|
+
}];
|
|
359
|
+
readonly name: "isMinter";
|
|
360
|
+
readonly outputs: readonly [{
|
|
361
|
+
readonly name: "";
|
|
362
|
+
readonly type: "bool";
|
|
363
|
+
}];
|
|
364
|
+
readonly payable: false;
|
|
365
|
+
readonly stateMutability: "view";
|
|
366
|
+
readonly type: "function";
|
|
367
|
+
}, {
|
|
368
|
+
readonly constant: false;
|
|
369
|
+
readonly inputs: readonly [{
|
|
370
|
+
readonly name: "_newBlacklister";
|
|
371
|
+
readonly type: "address";
|
|
372
|
+
}];
|
|
373
|
+
readonly name: "updateBlacklister";
|
|
374
|
+
readonly outputs: readonly [];
|
|
375
|
+
readonly payable: false;
|
|
376
|
+
readonly stateMutability: "nonpayable";
|
|
377
|
+
readonly type: "function";
|
|
378
|
+
}, {
|
|
379
|
+
readonly constant: true;
|
|
380
|
+
readonly inputs: readonly [];
|
|
381
|
+
readonly name: "blacklister";
|
|
382
|
+
readonly outputs: readonly [{
|
|
383
|
+
readonly name: "";
|
|
384
|
+
readonly type: "address";
|
|
385
|
+
}];
|
|
386
|
+
readonly payable: false;
|
|
387
|
+
readonly stateMutability: "view";
|
|
388
|
+
readonly type: "function";
|
|
389
|
+
}, {
|
|
390
|
+
readonly constant: false;
|
|
391
|
+
readonly inputs: readonly [{
|
|
392
|
+
readonly name: "_minter";
|
|
393
|
+
readonly type: "address";
|
|
394
|
+
}, {
|
|
395
|
+
readonly name: "_increasedAmount";
|
|
396
|
+
readonly type: "uint256";
|
|
397
|
+
}];
|
|
398
|
+
readonly name: "increaseMinterAllowance";
|
|
399
|
+
readonly outputs: readonly [];
|
|
400
|
+
readonly payable: false;
|
|
401
|
+
readonly stateMutability: "nonpayable";
|
|
402
|
+
readonly type: "function";
|
|
403
|
+
}, {
|
|
404
|
+
readonly constant: true;
|
|
405
|
+
readonly inputs: readonly [{
|
|
406
|
+
readonly name: "_from";
|
|
407
|
+
readonly type: "address";
|
|
408
|
+
}, {
|
|
409
|
+
readonly name: "_value";
|
|
410
|
+
readonly type: "uint256";
|
|
411
|
+
}, {
|
|
412
|
+
readonly name: "_data";
|
|
413
|
+
readonly type: "bytes";
|
|
414
|
+
}];
|
|
415
|
+
readonly name: "tokenFallback";
|
|
416
|
+
readonly outputs: readonly [];
|
|
417
|
+
readonly payable: false;
|
|
418
|
+
readonly stateMutability: "pure";
|
|
419
|
+
readonly type: "function";
|
|
420
|
+
}, {
|
|
421
|
+
readonly constant: true;
|
|
422
|
+
readonly inputs: readonly [{
|
|
423
|
+
readonly name: "_owner";
|
|
424
|
+
readonly type: "address";
|
|
425
|
+
}, {
|
|
426
|
+
readonly name: "_spender";
|
|
427
|
+
readonly type: "address";
|
|
428
|
+
}];
|
|
429
|
+
readonly name: "allowance";
|
|
430
|
+
readonly outputs: readonly [{
|
|
431
|
+
readonly name: "";
|
|
432
|
+
readonly type: "uint256";
|
|
433
|
+
}];
|
|
434
|
+
readonly payable: false;
|
|
435
|
+
readonly stateMutability: "view";
|
|
436
|
+
readonly type: "function";
|
|
437
|
+
}, {
|
|
438
|
+
readonly constant: false;
|
|
439
|
+
readonly inputs: readonly [{
|
|
440
|
+
readonly name: "newOwner";
|
|
441
|
+
readonly type: "address";
|
|
442
|
+
}];
|
|
443
|
+
readonly name: "transferOwnership";
|
|
444
|
+
readonly outputs: readonly [];
|
|
445
|
+
readonly payable: false;
|
|
446
|
+
readonly stateMutability: "nonpayable";
|
|
447
|
+
readonly type: "function";
|
|
448
|
+
}, {
|
|
449
|
+
readonly constant: false;
|
|
450
|
+
readonly inputs: readonly [{
|
|
451
|
+
readonly name: "_account";
|
|
452
|
+
readonly type: "address";
|
|
453
|
+
}];
|
|
454
|
+
readonly name: "blacklist";
|
|
455
|
+
readonly outputs: readonly [];
|
|
456
|
+
readonly payable: false;
|
|
457
|
+
readonly stateMutability: "nonpayable";
|
|
458
|
+
readonly type: "function";
|
|
459
|
+
}, {
|
|
460
|
+
readonly constant: true;
|
|
461
|
+
readonly inputs: readonly [{
|
|
462
|
+
readonly name: "_account";
|
|
463
|
+
readonly type: "address";
|
|
464
|
+
}];
|
|
465
|
+
readonly name: "isBlacklisted";
|
|
466
|
+
readonly outputs: readonly [{
|
|
467
|
+
readonly name: "";
|
|
468
|
+
readonly type: "bool";
|
|
469
|
+
}];
|
|
470
|
+
readonly payable: false;
|
|
471
|
+
readonly stateMutability: "view";
|
|
472
|
+
readonly type: "function";
|
|
473
|
+
}, {
|
|
474
|
+
readonly anonymous: false;
|
|
475
|
+
readonly inputs: readonly [{
|
|
476
|
+
readonly indexed: true;
|
|
477
|
+
readonly name: "minter";
|
|
478
|
+
readonly type: "address";
|
|
479
|
+
}, {
|
|
480
|
+
readonly indexed: true;
|
|
481
|
+
readonly name: "to";
|
|
482
|
+
readonly type: "address";
|
|
483
|
+
}, {
|
|
484
|
+
readonly indexed: false;
|
|
485
|
+
readonly name: "amount";
|
|
486
|
+
readonly type: "uint256";
|
|
487
|
+
}];
|
|
488
|
+
readonly name: "Mint";
|
|
489
|
+
readonly type: "event";
|
|
490
|
+
}, {
|
|
491
|
+
readonly anonymous: false;
|
|
492
|
+
readonly inputs: readonly [{
|
|
493
|
+
readonly indexed: true;
|
|
494
|
+
readonly name: "from";
|
|
495
|
+
readonly type: "address";
|
|
496
|
+
}, {
|
|
497
|
+
readonly indexed: true;
|
|
498
|
+
readonly name: "to";
|
|
499
|
+
readonly type: "address";
|
|
500
|
+
}, {
|
|
501
|
+
readonly indexed: false;
|
|
502
|
+
readonly name: "amount";
|
|
503
|
+
readonly type: "uint256";
|
|
504
|
+
}];
|
|
505
|
+
readonly name: "Transfer";
|
|
506
|
+
readonly type: "event";
|
|
507
|
+
}, {
|
|
508
|
+
readonly anonymous: false;
|
|
509
|
+
readonly inputs: readonly [{
|
|
510
|
+
readonly indexed: true;
|
|
511
|
+
readonly name: "burner";
|
|
512
|
+
readonly type: "address";
|
|
513
|
+
}, {
|
|
514
|
+
readonly indexed: false;
|
|
515
|
+
readonly name: "amount";
|
|
516
|
+
readonly type: "uint256";
|
|
517
|
+
}];
|
|
518
|
+
readonly name: "Burn";
|
|
519
|
+
readonly type: "event";
|
|
520
|
+
}, {
|
|
521
|
+
readonly anonymous: false;
|
|
522
|
+
readonly inputs: readonly [{
|
|
523
|
+
readonly indexed: true;
|
|
524
|
+
readonly name: "owner";
|
|
525
|
+
readonly type: "address";
|
|
526
|
+
}, {
|
|
527
|
+
readonly indexed: true;
|
|
528
|
+
readonly name: "spender";
|
|
529
|
+
readonly type: "address";
|
|
530
|
+
}, {
|
|
531
|
+
readonly indexed: false;
|
|
532
|
+
readonly name: "amount";
|
|
533
|
+
readonly type: "uint256";
|
|
534
|
+
}];
|
|
535
|
+
readonly name: "Approval";
|
|
536
|
+
readonly type: "event";
|
|
537
|
+
}, {
|
|
538
|
+
readonly anonymous: false;
|
|
539
|
+
readonly inputs: readonly [{
|
|
540
|
+
readonly indexed: true;
|
|
541
|
+
readonly name: "minter";
|
|
542
|
+
readonly type: "address";
|
|
543
|
+
}, {
|
|
544
|
+
readonly indexed: false;
|
|
545
|
+
readonly name: "minterAllowedAmount";
|
|
546
|
+
readonly type: "uint256";
|
|
547
|
+
}];
|
|
548
|
+
readonly name: "MinterConfigured";
|
|
549
|
+
readonly type: "event";
|
|
550
|
+
}, {
|
|
551
|
+
readonly anonymous: false;
|
|
552
|
+
readonly inputs: readonly [{
|
|
553
|
+
readonly indexed: true;
|
|
554
|
+
readonly name: "oldMinter";
|
|
555
|
+
readonly type: "address";
|
|
556
|
+
}];
|
|
557
|
+
readonly name: "MinterRemoved";
|
|
558
|
+
readonly type: "event";
|
|
559
|
+
}, {
|
|
560
|
+
readonly anonymous: false;
|
|
561
|
+
readonly inputs: readonly [{
|
|
562
|
+
readonly indexed: true;
|
|
563
|
+
readonly name: "newMasterMinter";
|
|
564
|
+
readonly type: "address";
|
|
565
|
+
}];
|
|
566
|
+
readonly name: "MasterMinterChanged";
|
|
567
|
+
readonly type: "event";
|
|
568
|
+
}, {
|
|
569
|
+
readonly anonymous: false;
|
|
570
|
+
readonly inputs: readonly [{
|
|
571
|
+
readonly indexed: true;
|
|
572
|
+
readonly name: "_account";
|
|
573
|
+
readonly type: "address";
|
|
574
|
+
}];
|
|
575
|
+
readonly name: "Blacklisted";
|
|
576
|
+
readonly type: "event";
|
|
577
|
+
}, {
|
|
578
|
+
readonly anonymous: false;
|
|
579
|
+
readonly inputs: readonly [{
|
|
580
|
+
readonly indexed: true;
|
|
581
|
+
readonly name: "_account";
|
|
582
|
+
readonly type: "address";
|
|
583
|
+
}];
|
|
584
|
+
readonly name: "UnBlacklisted";
|
|
585
|
+
readonly type: "event";
|
|
586
|
+
}, {
|
|
587
|
+
readonly anonymous: false;
|
|
588
|
+
readonly inputs: readonly [{
|
|
589
|
+
readonly indexed: true;
|
|
590
|
+
readonly name: "newBlacklister";
|
|
591
|
+
readonly type: "address";
|
|
592
|
+
}];
|
|
593
|
+
readonly name: "BlacklisterChanged";
|
|
594
|
+
readonly type: "event";
|
|
595
|
+
}, {
|
|
596
|
+
readonly anonymous: false;
|
|
597
|
+
readonly inputs: readonly [];
|
|
598
|
+
readonly name: "Pause";
|
|
599
|
+
readonly type: "event";
|
|
600
|
+
}, {
|
|
601
|
+
readonly anonymous: false;
|
|
602
|
+
readonly inputs: readonly [];
|
|
603
|
+
readonly name: "Unpause";
|
|
604
|
+
readonly type: "event";
|
|
605
|
+
}, {
|
|
606
|
+
readonly anonymous: false;
|
|
607
|
+
readonly inputs: readonly [{
|
|
608
|
+
readonly indexed: true;
|
|
609
|
+
readonly name: "newAddress";
|
|
610
|
+
readonly type: "address";
|
|
611
|
+
}];
|
|
612
|
+
readonly name: "PauserChanged";
|
|
613
|
+
readonly type: "event";
|
|
614
|
+
}, {
|
|
615
|
+
readonly anonymous: false;
|
|
616
|
+
readonly inputs: readonly [{
|
|
617
|
+
readonly indexed: true;
|
|
618
|
+
readonly name: "previousOwner";
|
|
619
|
+
readonly type: "address";
|
|
620
|
+
}, {
|
|
621
|
+
readonly indexed: true;
|
|
622
|
+
readonly name: "newOwner";
|
|
623
|
+
readonly type: "address";
|
|
624
|
+
}];
|
|
625
|
+
readonly name: "OwnershipTransferred";
|
|
626
|
+
readonly type: "event";
|
|
627
|
+
}];
|
|
628
|
+
/**
|
|
629
|
+
* Type-safe ABI for FiatTokenV1
|
|
630
|
+
*/
|
|
631
|
+
export type FiatTokenV1Abi = typeof FiatTokenV1Abi;
|
|
632
|
+
/**
|
|
633
|
+
* Contract instance type for FiatTokenV1
|
|
634
|
+
*/
|
|
635
|
+
export type FiatTokenV1Contract = any;
|
|
636
|
+
/**
|
|
637
|
+
* FiatTokenV1 Contract Class
|
|
638
|
+
*
|
|
639
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
640
|
+
*
|
|
641
|
+
* @example
|
|
642
|
+
* ```typescript
|
|
643
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
644
|
+
* import { mainnet } from 'viem/chains';
|
|
645
|
+
* import { FiatTokenV1 } from 'FiatTokenV1';
|
|
646
|
+
*
|
|
647
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
648
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
649
|
+
*
|
|
650
|
+
* const contract = new FiatTokenV1('0x...', { publicClient, walletClient });
|
|
651
|
+
*
|
|
652
|
+
* // Read functions
|
|
653
|
+
* const result = await contract.balanceOf('0x...');
|
|
654
|
+
*
|
|
655
|
+
* // Write functions
|
|
656
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
657
|
+
*
|
|
658
|
+
* // Simulate transactions (dry-run)
|
|
659
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
660
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
661
|
+
*
|
|
662
|
+
* // Watch events
|
|
663
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
664
|
+
* console.log('Transfer event:', event);
|
|
665
|
+
* });
|
|
666
|
+
* ```
|
|
667
|
+
*/
|
|
668
|
+
export declare class FiatTokenV1 {
|
|
669
|
+
private contract;
|
|
670
|
+
private contractAddress;
|
|
671
|
+
private publicClient;
|
|
672
|
+
constructor(address: Address, clients: {
|
|
673
|
+
publicClient: PublicClient;
|
|
674
|
+
walletClient?: WalletClient;
|
|
675
|
+
});
|
|
676
|
+
/**
|
|
677
|
+
* Get the contract address
|
|
678
|
+
*/
|
|
679
|
+
get address(): Address;
|
|
680
|
+
/**
|
|
681
|
+
* Get the underlying viem contract instance.
|
|
682
|
+
*/
|
|
683
|
+
getContract(): FiatTokenV1Contract;
|
|
684
|
+
/**
|
|
685
|
+
* name
|
|
686
|
+
* view
|
|
687
|
+
*/
|
|
688
|
+
name(): Promise<string>;
|
|
689
|
+
/**
|
|
690
|
+
* totalSupply
|
|
691
|
+
* view
|
|
692
|
+
*/
|
|
693
|
+
totalSupply(): Promise<bigint>;
|
|
694
|
+
/**
|
|
695
|
+
* decimals
|
|
696
|
+
* view
|
|
697
|
+
*/
|
|
698
|
+
decimals(): Promise<bigint>;
|
|
699
|
+
/**
|
|
700
|
+
* masterMinter
|
|
701
|
+
* view
|
|
702
|
+
*/
|
|
703
|
+
masterMinter(): Promise<`0x${string}`>;
|
|
704
|
+
/**
|
|
705
|
+
* paused
|
|
706
|
+
* view
|
|
707
|
+
*/
|
|
708
|
+
paused(): Promise<boolean>;
|
|
709
|
+
/**
|
|
710
|
+
* balanceOf
|
|
711
|
+
* view
|
|
712
|
+
*/
|
|
713
|
+
balanceOf(_address: `0x${string}`): Promise<bigint>;
|
|
714
|
+
/**
|
|
715
|
+
* minterAllowance
|
|
716
|
+
* view
|
|
717
|
+
*/
|
|
718
|
+
minterAllowance(_minter: `0x${string}`): Promise<bigint>;
|
|
719
|
+
/**
|
|
720
|
+
* owner
|
|
721
|
+
* view
|
|
722
|
+
*/
|
|
723
|
+
owner(): Promise<`0x${string}`>;
|
|
724
|
+
/**
|
|
725
|
+
* symbol
|
|
726
|
+
* view
|
|
727
|
+
*/
|
|
728
|
+
symbol(): Promise<string>;
|
|
729
|
+
/**
|
|
730
|
+
* pauser
|
|
731
|
+
* view
|
|
732
|
+
*/
|
|
733
|
+
pauser(): Promise<`0x${string}`>;
|
|
734
|
+
/**
|
|
735
|
+
* isMinter
|
|
736
|
+
* view
|
|
737
|
+
*/
|
|
738
|
+
isMinter(_address: `0x${string}`): Promise<boolean>;
|
|
739
|
+
/**
|
|
740
|
+
* blacklister
|
|
741
|
+
* view
|
|
742
|
+
*/
|
|
743
|
+
blacklister(): Promise<`0x${string}`>;
|
|
744
|
+
/**
|
|
745
|
+
* tokenFallback
|
|
746
|
+
* pure
|
|
747
|
+
*/
|
|
748
|
+
tokenFallback(_from: `0x${string}`, _value: bigint, _data: `0x${string}`): Promise<void>;
|
|
749
|
+
/**
|
|
750
|
+
* allowance
|
|
751
|
+
* view
|
|
752
|
+
*/
|
|
753
|
+
allowance(_owner: `0x${string}`, _spender: `0x${string}`): Promise<bigint>;
|
|
754
|
+
/**
|
|
755
|
+
* isBlacklisted
|
|
756
|
+
* view
|
|
757
|
+
*/
|
|
758
|
+
isBlacklisted(_account: `0x${string}`): Promise<boolean>;
|
|
759
|
+
/**
|
|
760
|
+
* approve
|
|
761
|
+
* nonpayable
|
|
762
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
763
|
+
*/
|
|
764
|
+
approve(_spender: `0x${string}`, _amount: bigint, options?: {
|
|
765
|
+
accessList?: import('viem').AccessList;
|
|
766
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
767
|
+
chain?: import('viem').Chain | null;
|
|
768
|
+
dataSuffix?: `0x${string}`;
|
|
769
|
+
gas?: bigint;
|
|
770
|
+
gasPrice?: bigint;
|
|
771
|
+
maxFeePerGas?: bigint;
|
|
772
|
+
maxPriorityFeePerGas?: bigint;
|
|
773
|
+
nonce?: number;
|
|
774
|
+
value?: bigint;
|
|
775
|
+
}): Promise<`0x${string}`>;
|
|
776
|
+
/**
|
|
777
|
+
* initialize
|
|
778
|
+
* nonpayable
|
|
779
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
780
|
+
*/
|
|
781
|
+
initialize(_name: string, _symbol: string, _decimals: bigint, _masterMinter: `0x${string}`, _pauser: `0x${string}`, _blacklister: `0x${string}`, _owner: `0x${string}`, options?: {
|
|
782
|
+
accessList?: import('viem').AccessList;
|
|
783
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
784
|
+
chain?: import('viem').Chain | null;
|
|
785
|
+
dataSuffix?: `0x${string}`;
|
|
786
|
+
gas?: bigint;
|
|
787
|
+
gasPrice?: bigint;
|
|
788
|
+
maxFeePerGas?: bigint;
|
|
789
|
+
maxPriorityFeePerGas?: bigint;
|
|
790
|
+
nonce?: number;
|
|
791
|
+
value?: bigint;
|
|
792
|
+
}): Promise<`0x${string}`>;
|
|
793
|
+
/**
|
|
794
|
+
* reclaimToken
|
|
795
|
+
* nonpayable
|
|
796
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
797
|
+
*/
|
|
798
|
+
reclaimToken(_tokenAddress: `0x${string}`, options?: {
|
|
799
|
+
accessList?: import('viem').AccessList;
|
|
800
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
801
|
+
chain?: import('viem').Chain | null;
|
|
802
|
+
dataSuffix?: `0x${string}`;
|
|
803
|
+
gas?: bigint;
|
|
804
|
+
gasPrice?: bigint;
|
|
805
|
+
maxFeePerGas?: bigint;
|
|
806
|
+
maxPriorityFeePerGas?: bigint;
|
|
807
|
+
nonce?: number;
|
|
808
|
+
value?: bigint;
|
|
809
|
+
}): Promise<`0x${string}`>;
|
|
810
|
+
/**
|
|
811
|
+
* unBlacklist
|
|
812
|
+
* nonpayable
|
|
813
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
814
|
+
*/
|
|
815
|
+
unBlacklist(_account: `0x${string}`, options?: {
|
|
816
|
+
accessList?: import('viem').AccessList;
|
|
817
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
818
|
+
chain?: import('viem').Chain | null;
|
|
819
|
+
dataSuffix?: `0x${string}`;
|
|
820
|
+
gas?: bigint;
|
|
821
|
+
gasPrice?: bigint;
|
|
822
|
+
maxFeePerGas?: bigint;
|
|
823
|
+
maxPriorityFeePerGas?: bigint;
|
|
824
|
+
nonce?: number;
|
|
825
|
+
value?: bigint;
|
|
826
|
+
}): Promise<`0x${string}`>;
|
|
827
|
+
/**
|
|
828
|
+
* transferFrom
|
|
829
|
+
* nonpayable
|
|
830
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
831
|
+
*/
|
|
832
|
+
transferFrom(_from: `0x${string}`, _to: `0x${string}`, _amount: bigint, 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
|
+
* increaseAllowance
|
|
846
|
+
* nonpayable
|
|
847
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
848
|
+
*/
|
|
849
|
+
increaseAllowance(_spender: `0x${string}`, _addedValue: bigint, 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
|
+
* unpause
|
|
863
|
+
* nonpayable
|
|
864
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
865
|
+
*/
|
|
866
|
+
unpause(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
|
+
* mint
|
|
880
|
+
* nonpayable
|
|
881
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
882
|
+
*/
|
|
883
|
+
mint(_to: `0x${string}`, _amount: 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
|
+
* burn
|
|
897
|
+
* nonpayable
|
|
898
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
899
|
+
*/
|
|
900
|
+
burn(_amount: bigint, 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
|
+
* updatePauser
|
|
914
|
+
* nonpayable
|
|
915
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
916
|
+
*/
|
|
917
|
+
updatePauser(_newPauser: `0x${string}`, 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
|
+
* lawEnforcementWipingBurn
|
|
931
|
+
* nonpayable
|
|
932
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
933
|
+
*/
|
|
934
|
+
lawEnforcementWipingBurn(_from: `0x${string}`, 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
|
+
* pause
|
|
948
|
+
* nonpayable
|
|
949
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
950
|
+
*/
|
|
951
|
+
pause(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
|
+
* decreaseMinterAllowance
|
|
965
|
+
* nonpayable
|
|
966
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
967
|
+
*/
|
|
968
|
+
decreaseMinterAllowance(_minter: `0x${string}`, _decreasedAmount: 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
|
+
* decreaseAllowance
|
|
982
|
+
* nonpayable
|
|
983
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
984
|
+
*/
|
|
985
|
+
decreaseAllowance(_spender: `0x${string}`, _subtractedValue: 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
|
+
* transfer
|
|
999
|
+
* nonpayable
|
|
1000
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1001
|
+
*/
|
|
1002
|
+
transfer(_to: `0x${string}`, _amount: bigint, 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
|
+
* updateMasterMinter
|
|
1016
|
+
* nonpayable
|
|
1017
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1018
|
+
*/
|
|
1019
|
+
updateMasterMinter(_newMasterMinter: `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
|
+
* updateBlacklister
|
|
1033
|
+
* nonpayable
|
|
1034
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1035
|
+
*/
|
|
1036
|
+
updateBlacklister(_newBlacklister: `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
|
+
* increaseMinterAllowance
|
|
1050
|
+
* nonpayable
|
|
1051
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1052
|
+
*/
|
|
1053
|
+
increaseMinterAllowance(_minter: `0x${string}`, _increasedAmount: 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
|
+
* transferOwnership
|
|
1067
|
+
* nonpayable
|
|
1068
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1069
|
+
*/
|
|
1070
|
+
transferOwnership(newOwner: `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
|
+
* blacklist
|
|
1084
|
+
* nonpayable
|
|
1085
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1086
|
+
*/
|
|
1087
|
+
blacklist(_account: `0x${string}`, 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
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
1101
|
+
*
|
|
1102
|
+
* @example
|
|
1103
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
1104
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
1105
|
+
* console.log('Would succeed:', result.result);
|
|
1106
|
+
*/
|
|
1107
|
+
get simulate(): {
|
|
1108
|
+
/**
|
|
1109
|
+
* Simulate approve
|
|
1110
|
+
* Returns gas estimate and result without sending transaction
|
|
1111
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1112
|
+
*/
|
|
1113
|
+
approve(_spender: `0x${string}`, _amount: 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<boolean>;
|
|
1125
|
+
/**
|
|
1126
|
+
* Simulate initialize
|
|
1127
|
+
* Returns gas estimate and result without sending transaction
|
|
1128
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1129
|
+
*/
|
|
1130
|
+
initialize(_name: string, _symbol: string, _decimals: bigint, _masterMinter: `0x${string}`, _pauser: `0x${string}`, _blacklister: `0x${string}`, _owner: `0x${string}`, options?: {
|
|
1131
|
+
accessList?: import("viem").AccessList;
|
|
1132
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1133
|
+
chain?: import("viem").Chain | null;
|
|
1134
|
+
dataSuffix?: `0x${string}`;
|
|
1135
|
+
gas?: bigint;
|
|
1136
|
+
gasPrice?: bigint;
|
|
1137
|
+
maxFeePerGas?: bigint;
|
|
1138
|
+
maxPriorityFeePerGas?: bigint;
|
|
1139
|
+
nonce?: number;
|
|
1140
|
+
value?: bigint;
|
|
1141
|
+
}): Promise<void>;
|
|
1142
|
+
/**
|
|
1143
|
+
* Simulate reclaimToken
|
|
1144
|
+
* Returns gas estimate and result without sending transaction
|
|
1145
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1146
|
+
*/
|
|
1147
|
+
reclaimToken(_tokenAddress: `0x${string}`, options?: {
|
|
1148
|
+
accessList?: import("viem").AccessList;
|
|
1149
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1150
|
+
chain?: import("viem").Chain | null;
|
|
1151
|
+
dataSuffix?: `0x${string}`;
|
|
1152
|
+
gas?: bigint;
|
|
1153
|
+
gasPrice?: bigint;
|
|
1154
|
+
maxFeePerGas?: bigint;
|
|
1155
|
+
maxPriorityFeePerGas?: bigint;
|
|
1156
|
+
nonce?: number;
|
|
1157
|
+
value?: bigint;
|
|
1158
|
+
}): Promise<void>;
|
|
1159
|
+
/**
|
|
1160
|
+
* Simulate unBlacklist
|
|
1161
|
+
* Returns gas estimate and result without sending transaction
|
|
1162
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1163
|
+
*/
|
|
1164
|
+
unBlacklist(_account: `0x${string}`, options?: {
|
|
1165
|
+
accessList?: import("viem").AccessList;
|
|
1166
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1167
|
+
chain?: import("viem").Chain | null;
|
|
1168
|
+
dataSuffix?: `0x${string}`;
|
|
1169
|
+
gas?: bigint;
|
|
1170
|
+
gasPrice?: bigint;
|
|
1171
|
+
maxFeePerGas?: bigint;
|
|
1172
|
+
maxPriorityFeePerGas?: bigint;
|
|
1173
|
+
nonce?: number;
|
|
1174
|
+
value?: bigint;
|
|
1175
|
+
}): Promise<void>;
|
|
1176
|
+
/**
|
|
1177
|
+
* Simulate transferFrom
|
|
1178
|
+
* Returns gas estimate and result without sending transaction
|
|
1179
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1180
|
+
*/
|
|
1181
|
+
transferFrom(_from: `0x${string}`, _to: `0x${string}`, _amount: bigint, options?: {
|
|
1182
|
+
accessList?: import("viem").AccessList;
|
|
1183
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1184
|
+
chain?: import("viem").Chain | null;
|
|
1185
|
+
dataSuffix?: `0x${string}`;
|
|
1186
|
+
gas?: bigint;
|
|
1187
|
+
gasPrice?: bigint;
|
|
1188
|
+
maxFeePerGas?: bigint;
|
|
1189
|
+
maxPriorityFeePerGas?: bigint;
|
|
1190
|
+
nonce?: number;
|
|
1191
|
+
value?: bigint;
|
|
1192
|
+
}): Promise<boolean>;
|
|
1193
|
+
/**
|
|
1194
|
+
* Simulate increaseAllowance
|
|
1195
|
+
* Returns gas estimate and result without sending transaction
|
|
1196
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1197
|
+
*/
|
|
1198
|
+
increaseAllowance(_spender: `0x${string}`, _addedValue: bigint, 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<boolean>;
|
|
1210
|
+
/**
|
|
1211
|
+
* Simulate unpause
|
|
1212
|
+
* Returns gas estimate and result without sending transaction
|
|
1213
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1214
|
+
*/
|
|
1215
|
+
unpause(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 mint
|
|
1229
|
+
* Returns gas estimate and result without sending transaction
|
|
1230
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1231
|
+
*/
|
|
1232
|
+
mint(_to: `0x${string}`, _amount: bigint, 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<boolean>;
|
|
1244
|
+
/**
|
|
1245
|
+
* Simulate burn
|
|
1246
|
+
* Returns gas estimate and result without sending transaction
|
|
1247
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1248
|
+
*/
|
|
1249
|
+
burn(_amount: 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<void>;
|
|
1261
|
+
/**
|
|
1262
|
+
* Simulate updatePauser
|
|
1263
|
+
* Returns gas estimate and result without sending transaction
|
|
1264
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1265
|
+
*/
|
|
1266
|
+
updatePauser(_newPauser: `0x${string}`, 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 lawEnforcementWipingBurn
|
|
1280
|
+
* Returns gas estimate and result without sending transaction
|
|
1281
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1282
|
+
*/
|
|
1283
|
+
lawEnforcementWipingBurn(_from: `0x${string}`, 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 pause
|
|
1297
|
+
* Returns gas estimate and result without sending transaction
|
|
1298
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1299
|
+
*/
|
|
1300
|
+
pause(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 decreaseMinterAllowance
|
|
1314
|
+
* Returns gas estimate and result without sending transaction
|
|
1315
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1316
|
+
*/
|
|
1317
|
+
decreaseMinterAllowance(_minter: `0x${string}`, _decreasedAmount: 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<void>;
|
|
1329
|
+
/**
|
|
1330
|
+
* Simulate decreaseAllowance
|
|
1331
|
+
* Returns gas estimate and result without sending transaction
|
|
1332
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1333
|
+
*/
|
|
1334
|
+
decreaseAllowance(_spender: `0x${string}`, _subtractedValue: 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<boolean>;
|
|
1346
|
+
/**
|
|
1347
|
+
* Simulate transfer
|
|
1348
|
+
* Returns gas estimate and result without sending transaction
|
|
1349
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1350
|
+
*/
|
|
1351
|
+
transfer(_to: `0x${string}`, _amount: 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 updateMasterMinter
|
|
1365
|
+
* Returns gas estimate and result without sending transaction
|
|
1366
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1367
|
+
*/
|
|
1368
|
+
updateMasterMinter(_newMasterMinter: `0x${string}`, 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 updateBlacklister
|
|
1382
|
+
* Returns gas estimate and result without sending transaction
|
|
1383
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1384
|
+
*/
|
|
1385
|
+
updateBlacklister(_newBlacklister: `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 increaseMinterAllowance
|
|
1399
|
+
* Returns gas estimate and result without sending transaction
|
|
1400
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1401
|
+
*/
|
|
1402
|
+
increaseMinterAllowance(_minter: `0x${string}`, _increasedAmount: bigint, 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 transferOwnership
|
|
1416
|
+
* Returns gas estimate and result without sending transaction
|
|
1417
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1418
|
+
*/
|
|
1419
|
+
transferOwnership(newOwner: `0x${string}`, 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 blacklist
|
|
1433
|
+
* Returns gas estimate and result without sending transaction
|
|
1434
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1435
|
+
*/
|
|
1436
|
+
blacklist(_account: `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
|
+
/**
|
|
1450
|
+
* Watch contract events
|
|
1451
|
+
*
|
|
1452
|
+
* @example
|
|
1453
|
+
* // Watch all Transfer events
|
|
1454
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1455
|
+
* console.log('Transfer:', event);
|
|
1456
|
+
* });
|
|
1457
|
+
*
|
|
1458
|
+
* // Stop watching
|
|
1459
|
+
* unwatch();
|
|
1460
|
+
*/
|
|
1461
|
+
get watch(): {
|
|
1462
|
+
/**
|
|
1463
|
+
* Watch Mint events
|
|
1464
|
+
* @param callback Function to call when event is emitted
|
|
1465
|
+
* @param filter Optional filter for indexed parameters
|
|
1466
|
+
* @returns Unwatch function to stop listening
|
|
1467
|
+
*/
|
|
1468
|
+
Mint: (callback: (event: {
|
|
1469
|
+
minter: `0x${string}`;
|
|
1470
|
+
to: `0x${string}`;
|
|
1471
|
+
amount: bigint;
|
|
1472
|
+
}) => void, filter?: {
|
|
1473
|
+
minter?: `0x${string}` | `0x${string}`[] | null;
|
|
1474
|
+
to?: `0x${string}` | `0x${string}`[] | null;
|
|
1475
|
+
}) => () => void;
|
|
1476
|
+
/**
|
|
1477
|
+
* Watch Transfer events
|
|
1478
|
+
* @param callback Function to call when event is emitted
|
|
1479
|
+
* @param filter Optional filter for indexed parameters
|
|
1480
|
+
* @returns Unwatch function to stop listening
|
|
1481
|
+
*/
|
|
1482
|
+
Transfer: (callback: (event: {
|
|
1483
|
+
from: `0x${string}`;
|
|
1484
|
+
to: `0x${string}`;
|
|
1485
|
+
amount: bigint;
|
|
1486
|
+
}) => void, filter?: {
|
|
1487
|
+
from?: `0x${string}` | `0x${string}`[] | null;
|
|
1488
|
+
to?: `0x${string}` | `0x${string}`[] | null;
|
|
1489
|
+
}) => () => void;
|
|
1490
|
+
/**
|
|
1491
|
+
* Watch Burn events
|
|
1492
|
+
* @param callback Function to call when event is emitted
|
|
1493
|
+
* @param filter Optional filter for indexed parameters
|
|
1494
|
+
* @returns Unwatch function to stop listening
|
|
1495
|
+
*/
|
|
1496
|
+
Burn: (callback: (event: {
|
|
1497
|
+
burner: `0x${string}`;
|
|
1498
|
+
amount: bigint;
|
|
1499
|
+
}) => void, filter?: {
|
|
1500
|
+
burner?: `0x${string}` | `0x${string}`[] | null;
|
|
1501
|
+
}) => () => void;
|
|
1502
|
+
/**
|
|
1503
|
+
* Watch Approval events
|
|
1504
|
+
* @param callback Function to call when event is emitted
|
|
1505
|
+
* @param filter Optional filter for indexed parameters
|
|
1506
|
+
* @returns Unwatch function to stop listening
|
|
1507
|
+
*/
|
|
1508
|
+
Approval: (callback: (event: {
|
|
1509
|
+
owner: `0x${string}`;
|
|
1510
|
+
spender: `0x${string}`;
|
|
1511
|
+
amount: bigint;
|
|
1512
|
+
}) => void, filter?: {
|
|
1513
|
+
owner?: `0x${string}` | `0x${string}`[] | null;
|
|
1514
|
+
spender?: `0x${string}` | `0x${string}`[] | null;
|
|
1515
|
+
}) => () => void;
|
|
1516
|
+
/**
|
|
1517
|
+
* Watch MinterConfigured events
|
|
1518
|
+
* @param callback Function to call when event is emitted
|
|
1519
|
+
* @param filter Optional filter for indexed parameters
|
|
1520
|
+
* @returns Unwatch function to stop listening
|
|
1521
|
+
*/
|
|
1522
|
+
MinterConfigured: (callback: (event: {
|
|
1523
|
+
minter: `0x${string}`;
|
|
1524
|
+
minterAllowedAmount: bigint;
|
|
1525
|
+
}) => void, filter?: {
|
|
1526
|
+
minter?: `0x${string}` | `0x${string}`[] | null;
|
|
1527
|
+
}) => () => void;
|
|
1528
|
+
/**
|
|
1529
|
+
* Watch MinterRemoved events
|
|
1530
|
+
* @param callback Function to call when event is emitted
|
|
1531
|
+
* @param filter Optional filter for indexed parameters
|
|
1532
|
+
* @returns Unwatch function to stop listening
|
|
1533
|
+
*/
|
|
1534
|
+
MinterRemoved: (callback: (event: {
|
|
1535
|
+
oldMinter: `0x${string}`;
|
|
1536
|
+
}) => void, filter?: {
|
|
1537
|
+
oldMinter?: `0x${string}` | `0x${string}`[] | null;
|
|
1538
|
+
}) => () => void;
|
|
1539
|
+
/**
|
|
1540
|
+
* Watch MasterMinterChanged events
|
|
1541
|
+
* @param callback Function to call when event is emitted
|
|
1542
|
+
* @param filter Optional filter for indexed parameters
|
|
1543
|
+
* @returns Unwatch function to stop listening
|
|
1544
|
+
*/
|
|
1545
|
+
MasterMinterChanged: (callback: (event: {
|
|
1546
|
+
newMasterMinter: `0x${string}`;
|
|
1547
|
+
}) => void, filter?: {
|
|
1548
|
+
newMasterMinter?: `0x${string}` | `0x${string}`[] | null;
|
|
1549
|
+
}) => () => void;
|
|
1550
|
+
/**
|
|
1551
|
+
* Watch Blacklisted events
|
|
1552
|
+
* @param callback Function to call when event is emitted
|
|
1553
|
+
* @param filter Optional filter for indexed parameters
|
|
1554
|
+
* @returns Unwatch function to stop listening
|
|
1555
|
+
*/
|
|
1556
|
+
Blacklisted: (callback: (event: {
|
|
1557
|
+
_account: `0x${string}`;
|
|
1558
|
+
}) => void, filter?: {
|
|
1559
|
+
_account?: `0x${string}` | `0x${string}`[] | null;
|
|
1560
|
+
}) => () => void;
|
|
1561
|
+
/**
|
|
1562
|
+
* Watch UnBlacklisted events
|
|
1563
|
+
* @param callback Function to call when event is emitted
|
|
1564
|
+
* @param filter Optional filter for indexed parameters
|
|
1565
|
+
* @returns Unwatch function to stop listening
|
|
1566
|
+
*/
|
|
1567
|
+
UnBlacklisted: (callback: (event: {
|
|
1568
|
+
_account: `0x${string}`;
|
|
1569
|
+
}) => void, filter?: {
|
|
1570
|
+
_account?: `0x${string}` | `0x${string}`[] | null;
|
|
1571
|
+
}) => () => void;
|
|
1572
|
+
/**
|
|
1573
|
+
* Watch BlacklisterChanged events
|
|
1574
|
+
* @param callback Function to call when event is emitted
|
|
1575
|
+
* @param filter Optional filter for indexed parameters
|
|
1576
|
+
* @returns Unwatch function to stop listening
|
|
1577
|
+
*/
|
|
1578
|
+
BlacklisterChanged: (callback: (event: {
|
|
1579
|
+
newBlacklister: `0x${string}`;
|
|
1580
|
+
}) => void, filter?: {
|
|
1581
|
+
newBlacklister?: `0x${string}` | `0x${string}`[] | null;
|
|
1582
|
+
}) => () => void;
|
|
1583
|
+
/**
|
|
1584
|
+
* Watch Pause events
|
|
1585
|
+
* @param callback Function to call when event is emitted
|
|
1586
|
+
* @param filter Optional filter for indexed parameters
|
|
1587
|
+
* @returns Unwatch function to stop listening
|
|
1588
|
+
*/
|
|
1589
|
+
Pause: (callback: (event: {}) => void) => () => void;
|
|
1590
|
+
/**
|
|
1591
|
+
* Watch Unpause 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
|
+
Unpause: (callback: (event: {}) => void) => () => void;
|
|
1597
|
+
/**
|
|
1598
|
+
* Watch PauserChanged events
|
|
1599
|
+
* @param callback Function to call when event is emitted
|
|
1600
|
+
* @param filter Optional filter for indexed parameters
|
|
1601
|
+
* @returns Unwatch function to stop listening
|
|
1602
|
+
*/
|
|
1603
|
+
PauserChanged: (callback: (event: {
|
|
1604
|
+
newAddress: `0x${string}`;
|
|
1605
|
+
}) => void, filter?: {
|
|
1606
|
+
newAddress?: `0x${string}` | `0x${string}`[] | null;
|
|
1607
|
+
}) => () => void;
|
|
1608
|
+
/**
|
|
1609
|
+
* Watch OwnershipTransferred 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
|
+
OwnershipTransferred: (callback: (event: {
|
|
1615
|
+
previousOwner: `0x${string}`;
|
|
1616
|
+
newOwner: `0x${string}`;
|
|
1617
|
+
}) => void, filter?: {
|
|
1618
|
+
previousOwner?: `0x${string}` | `0x${string}`[] | null;
|
|
1619
|
+
newOwner?: `0x${string}` | `0x${string}`[] | null;
|
|
1620
|
+
}) => () => void;
|
|
1621
|
+
};
|
|
1622
|
+
}
|