@gitmyabi/unit 1.0.0
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/TransparentUpgradeableProxy_json.d.ts +185 -0
- package/contracts/TransparentUpgradeableProxy_json.js +238 -0
- package/contracts/TransparentUpgradeableProxy_json.ts +268 -0
- package/contracts/UNIT_json.d.ts +2597 -0
- package/contracts/UNIT_json.js +2799 -0
- package/contracts/UNIT_json.ts +3463 -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,2597 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* UNIT_json ABI
|
|
4
|
+
*
|
|
5
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
6
|
+
*/
|
|
7
|
+
export declare const UNIT_jsonAbi: readonly [{
|
|
8
|
+
readonly inputs: readonly [];
|
|
9
|
+
readonly stateMutability: "nonpayable";
|
|
10
|
+
readonly type: "constructor";
|
|
11
|
+
}, {
|
|
12
|
+
readonly inputs: readonly [];
|
|
13
|
+
readonly name: "AccessControlBadConfirmation";
|
|
14
|
+
readonly type: "error";
|
|
15
|
+
}, {
|
|
16
|
+
readonly inputs: readonly [{
|
|
17
|
+
readonly internalType: "address";
|
|
18
|
+
readonly name: "account";
|
|
19
|
+
readonly type: "address";
|
|
20
|
+
}, {
|
|
21
|
+
readonly internalType: "bytes32";
|
|
22
|
+
readonly name: "neededRole";
|
|
23
|
+
readonly type: "bytes32";
|
|
24
|
+
}];
|
|
25
|
+
readonly name: "AccessControlUnauthorizedAccount";
|
|
26
|
+
readonly type: "error";
|
|
27
|
+
}, {
|
|
28
|
+
readonly inputs: readonly [];
|
|
29
|
+
readonly name: "ECDSAInvalidSignature";
|
|
30
|
+
readonly type: "error";
|
|
31
|
+
}, {
|
|
32
|
+
readonly inputs: readonly [{
|
|
33
|
+
readonly internalType: "uint256";
|
|
34
|
+
readonly name: "length";
|
|
35
|
+
readonly type: "uint256";
|
|
36
|
+
}];
|
|
37
|
+
readonly name: "ECDSAInvalidSignatureLength";
|
|
38
|
+
readonly type: "error";
|
|
39
|
+
}, {
|
|
40
|
+
readonly inputs: readonly [{
|
|
41
|
+
readonly internalType: "bytes32";
|
|
42
|
+
readonly name: "s";
|
|
43
|
+
readonly type: "bytes32";
|
|
44
|
+
}];
|
|
45
|
+
readonly name: "ECDSAInvalidSignatureS";
|
|
46
|
+
readonly type: "error";
|
|
47
|
+
}, {
|
|
48
|
+
readonly inputs: readonly [{
|
|
49
|
+
readonly internalType: "address";
|
|
50
|
+
readonly name: "spender";
|
|
51
|
+
readonly type: "address";
|
|
52
|
+
}, {
|
|
53
|
+
readonly internalType: "uint256";
|
|
54
|
+
readonly name: "allowance";
|
|
55
|
+
readonly type: "uint256";
|
|
56
|
+
}, {
|
|
57
|
+
readonly internalType: "uint256";
|
|
58
|
+
readonly name: "needed";
|
|
59
|
+
readonly type: "uint256";
|
|
60
|
+
}];
|
|
61
|
+
readonly name: "ERC20InsufficientAllowance";
|
|
62
|
+
readonly type: "error";
|
|
63
|
+
}, {
|
|
64
|
+
readonly inputs: readonly [{
|
|
65
|
+
readonly internalType: "address";
|
|
66
|
+
readonly name: "sender";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
}, {
|
|
69
|
+
readonly internalType: "uint256";
|
|
70
|
+
readonly name: "balance";
|
|
71
|
+
readonly type: "uint256";
|
|
72
|
+
}, {
|
|
73
|
+
readonly internalType: "uint256";
|
|
74
|
+
readonly name: "needed";
|
|
75
|
+
readonly type: "uint256";
|
|
76
|
+
}];
|
|
77
|
+
readonly name: "ERC20InsufficientBalance";
|
|
78
|
+
readonly type: "error";
|
|
79
|
+
}, {
|
|
80
|
+
readonly inputs: readonly [{
|
|
81
|
+
readonly internalType: "address";
|
|
82
|
+
readonly name: "approver";
|
|
83
|
+
readonly type: "address";
|
|
84
|
+
}];
|
|
85
|
+
readonly name: "ERC20InvalidApprover";
|
|
86
|
+
readonly type: "error";
|
|
87
|
+
}, {
|
|
88
|
+
readonly inputs: readonly [{
|
|
89
|
+
readonly internalType: "address";
|
|
90
|
+
readonly name: "receiver";
|
|
91
|
+
readonly type: "address";
|
|
92
|
+
}];
|
|
93
|
+
readonly name: "ERC20InvalidReceiver";
|
|
94
|
+
readonly type: "error";
|
|
95
|
+
}, {
|
|
96
|
+
readonly inputs: readonly [{
|
|
97
|
+
readonly internalType: "address";
|
|
98
|
+
readonly name: "sender";
|
|
99
|
+
readonly type: "address";
|
|
100
|
+
}];
|
|
101
|
+
readonly name: "ERC20InvalidSender";
|
|
102
|
+
readonly type: "error";
|
|
103
|
+
}, {
|
|
104
|
+
readonly inputs: readonly [{
|
|
105
|
+
readonly internalType: "address";
|
|
106
|
+
readonly name: "spender";
|
|
107
|
+
readonly type: "address";
|
|
108
|
+
}];
|
|
109
|
+
readonly name: "ERC20InvalidSpender";
|
|
110
|
+
readonly type: "error";
|
|
111
|
+
}, {
|
|
112
|
+
readonly inputs: readonly [{
|
|
113
|
+
readonly internalType: "uint256";
|
|
114
|
+
readonly name: "deadline";
|
|
115
|
+
readonly type: "uint256";
|
|
116
|
+
}];
|
|
117
|
+
readonly name: "ERC2612ExpiredSignature";
|
|
118
|
+
readonly type: "error";
|
|
119
|
+
}, {
|
|
120
|
+
readonly inputs: readonly [{
|
|
121
|
+
readonly internalType: "address";
|
|
122
|
+
readonly name: "signer";
|
|
123
|
+
readonly type: "address";
|
|
124
|
+
}, {
|
|
125
|
+
readonly internalType: "address";
|
|
126
|
+
readonly name: "owner";
|
|
127
|
+
readonly type: "address";
|
|
128
|
+
}];
|
|
129
|
+
readonly name: "ERC2612InvalidSigner";
|
|
130
|
+
readonly type: "error";
|
|
131
|
+
}, {
|
|
132
|
+
readonly inputs: readonly [];
|
|
133
|
+
readonly name: "EnforcedPause";
|
|
134
|
+
readonly type: "error";
|
|
135
|
+
}, {
|
|
136
|
+
readonly inputs: readonly [];
|
|
137
|
+
readonly name: "ErrorAddressZero";
|
|
138
|
+
readonly type: "error";
|
|
139
|
+
}, {
|
|
140
|
+
readonly inputs: readonly [{
|
|
141
|
+
readonly internalType: "address";
|
|
142
|
+
readonly name: "_sender";
|
|
143
|
+
readonly type: "address";
|
|
144
|
+
}, {
|
|
145
|
+
readonly internalType: "address";
|
|
146
|
+
readonly name: "_recipient";
|
|
147
|
+
readonly type: "address";
|
|
148
|
+
}];
|
|
149
|
+
readonly name: "ErrorBlacklisted";
|
|
150
|
+
readonly type: "error";
|
|
151
|
+
}, {
|
|
152
|
+
readonly inputs: readonly [];
|
|
153
|
+
readonly name: "ErrorInvalidAmount";
|
|
154
|
+
readonly type: "error";
|
|
155
|
+
}, {
|
|
156
|
+
readonly inputs: readonly [{
|
|
157
|
+
readonly internalType: "uint256";
|
|
158
|
+
readonly name: "_requestedAmount";
|
|
159
|
+
readonly type: "uint256";
|
|
160
|
+
}, {
|
|
161
|
+
readonly internalType: "uint256";
|
|
162
|
+
readonly name: "_maxTotalSupply";
|
|
163
|
+
readonly type: "uint256";
|
|
164
|
+
}];
|
|
165
|
+
readonly name: "ErrorMaxTotalSupplyExceeded";
|
|
166
|
+
readonly type: "error";
|
|
167
|
+
}, {
|
|
168
|
+
readonly inputs: readonly [{
|
|
169
|
+
readonly internalType: "uint256";
|
|
170
|
+
readonly name: "_requestedAmount";
|
|
171
|
+
readonly type: "uint256";
|
|
172
|
+
}, {
|
|
173
|
+
readonly internalType: "uint256";
|
|
174
|
+
readonly name: "_availableAmount";
|
|
175
|
+
readonly type: "uint256";
|
|
176
|
+
}];
|
|
177
|
+
readonly name: "ErrorNotEnoughBalance";
|
|
178
|
+
readonly type: "error";
|
|
179
|
+
}, {
|
|
180
|
+
readonly inputs: readonly [{
|
|
181
|
+
readonly internalType: "address";
|
|
182
|
+
readonly name: "_token";
|
|
183
|
+
readonly type: "address";
|
|
184
|
+
}, {
|
|
185
|
+
readonly internalType: "uint256";
|
|
186
|
+
readonly name: "_requestedAmount";
|
|
187
|
+
readonly type: "uint256";
|
|
188
|
+
}, {
|
|
189
|
+
readonly internalType: "uint256";
|
|
190
|
+
readonly name: "_availableAmount";
|
|
191
|
+
readonly type: "uint256";
|
|
192
|
+
}];
|
|
193
|
+
readonly name: "ErrorNotEnoughToken";
|
|
194
|
+
readonly type: "error";
|
|
195
|
+
}, {
|
|
196
|
+
readonly inputs: readonly [];
|
|
197
|
+
readonly name: "ErrorSameValue";
|
|
198
|
+
readonly type: "error";
|
|
199
|
+
}, {
|
|
200
|
+
readonly inputs: readonly [];
|
|
201
|
+
readonly name: "ErrorTransferFailed";
|
|
202
|
+
readonly type: "error";
|
|
203
|
+
}, {
|
|
204
|
+
readonly inputs: readonly [{
|
|
205
|
+
readonly internalType: "uint256";
|
|
206
|
+
readonly name: "_array1Length";
|
|
207
|
+
readonly type: "uint256";
|
|
208
|
+
}, {
|
|
209
|
+
readonly internalType: "uint256";
|
|
210
|
+
readonly name: "_array2Length";
|
|
211
|
+
readonly type: "uint256";
|
|
212
|
+
}];
|
|
213
|
+
readonly name: "ErrorUnequalArrayLengths";
|
|
214
|
+
readonly type: "error";
|
|
215
|
+
}, {
|
|
216
|
+
readonly inputs: readonly [];
|
|
217
|
+
readonly name: "ExpectedPause";
|
|
218
|
+
readonly type: "error";
|
|
219
|
+
}, {
|
|
220
|
+
readonly inputs: readonly [{
|
|
221
|
+
readonly internalType: "address";
|
|
222
|
+
readonly name: "account";
|
|
223
|
+
readonly type: "address";
|
|
224
|
+
}, {
|
|
225
|
+
readonly internalType: "uint256";
|
|
226
|
+
readonly name: "currentNonce";
|
|
227
|
+
readonly type: "uint256";
|
|
228
|
+
}];
|
|
229
|
+
readonly name: "InvalidAccountNonce";
|
|
230
|
+
readonly type: "error";
|
|
231
|
+
}, {
|
|
232
|
+
readonly inputs: readonly [];
|
|
233
|
+
readonly name: "InvalidInitialization";
|
|
234
|
+
readonly type: "error";
|
|
235
|
+
}, {
|
|
236
|
+
readonly inputs: readonly [];
|
|
237
|
+
readonly name: "NotInitializing";
|
|
238
|
+
readonly type: "error";
|
|
239
|
+
}, {
|
|
240
|
+
readonly inputs: readonly [];
|
|
241
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
242
|
+
readonly type: "error";
|
|
243
|
+
}, {
|
|
244
|
+
readonly anonymous: false;
|
|
245
|
+
readonly inputs: readonly [{
|
|
246
|
+
readonly indexed: true;
|
|
247
|
+
readonly internalType: "address";
|
|
248
|
+
readonly name: "owner";
|
|
249
|
+
readonly type: "address";
|
|
250
|
+
}, {
|
|
251
|
+
readonly indexed: true;
|
|
252
|
+
readonly internalType: "address";
|
|
253
|
+
readonly name: "spender";
|
|
254
|
+
readonly type: "address";
|
|
255
|
+
}, {
|
|
256
|
+
readonly indexed: false;
|
|
257
|
+
readonly internalType: "uint256";
|
|
258
|
+
readonly name: "value";
|
|
259
|
+
readonly type: "uint256";
|
|
260
|
+
}];
|
|
261
|
+
readonly name: "Approval";
|
|
262
|
+
readonly type: "event";
|
|
263
|
+
}, {
|
|
264
|
+
readonly anonymous: false;
|
|
265
|
+
readonly inputs: readonly [{
|
|
266
|
+
readonly indexed: false;
|
|
267
|
+
readonly internalType: "address[]";
|
|
268
|
+
readonly name: "_accounts";
|
|
269
|
+
readonly type: "address[]";
|
|
270
|
+
}, {
|
|
271
|
+
readonly indexed: false;
|
|
272
|
+
readonly internalType: "bool[]";
|
|
273
|
+
readonly name: "_isBlocklisted";
|
|
274
|
+
readonly type: "bool[]";
|
|
275
|
+
}];
|
|
276
|
+
readonly name: "BatchBlocklistUpdated";
|
|
277
|
+
readonly type: "event";
|
|
278
|
+
}, {
|
|
279
|
+
readonly anonymous: false;
|
|
280
|
+
readonly inputs: readonly [{
|
|
281
|
+
readonly indexed: true;
|
|
282
|
+
readonly internalType: "address";
|
|
283
|
+
readonly name: "_account";
|
|
284
|
+
readonly type: "address";
|
|
285
|
+
}, {
|
|
286
|
+
readonly indexed: false;
|
|
287
|
+
readonly internalType: "bool";
|
|
288
|
+
readonly name: "_isBlocklisted";
|
|
289
|
+
readonly type: "bool";
|
|
290
|
+
}];
|
|
291
|
+
readonly name: "BlocklistUpdated";
|
|
292
|
+
readonly type: "event";
|
|
293
|
+
}, {
|
|
294
|
+
readonly anonymous: false;
|
|
295
|
+
readonly inputs: readonly [{
|
|
296
|
+
readonly indexed: false;
|
|
297
|
+
readonly internalType: "uint16";
|
|
298
|
+
readonly name: "_value";
|
|
299
|
+
readonly type: "uint16";
|
|
300
|
+
}];
|
|
301
|
+
readonly name: "BuyTaxUpdated";
|
|
302
|
+
readonly type: "event";
|
|
303
|
+
}, {
|
|
304
|
+
readonly anonymous: false;
|
|
305
|
+
readonly inputs: readonly [];
|
|
306
|
+
readonly name: "EIP712DomainChanged";
|
|
307
|
+
readonly type: "event";
|
|
308
|
+
}, {
|
|
309
|
+
readonly anonymous: false;
|
|
310
|
+
readonly inputs: readonly [{
|
|
311
|
+
readonly indexed: false;
|
|
312
|
+
readonly internalType: "uint64";
|
|
313
|
+
readonly name: "version";
|
|
314
|
+
readonly type: "uint64";
|
|
315
|
+
}];
|
|
316
|
+
readonly name: "Initialized";
|
|
317
|
+
readonly type: "event";
|
|
318
|
+
}, {
|
|
319
|
+
readonly anonymous: false;
|
|
320
|
+
readonly inputs: readonly [{
|
|
321
|
+
readonly indexed: true;
|
|
322
|
+
readonly internalType: "address";
|
|
323
|
+
readonly name: "_receiver";
|
|
324
|
+
readonly type: "address";
|
|
325
|
+
}, {
|
|
326
|
+
readonly indexed: false;
|
|
327
|
+
readonly internalType: "uint256";
|
|
328
|
+
readonly name: "_amount";
|
|
329
|
+
readonly type: "uint256";
|
|
330
|
+
}];
|
|
331
|
+
readonly name: "Minted";
|
|
332
|
+
readonly type: "event";
|
|
333
|
+
}, {
|
|
334
|
+
readonly anonymous: false;
|
|
335
|
+
readonly inputs: readonly [{
|
|
336
|
+
readonly indexed: false;
|
|
337
|
+
readonly internalType: "address";
|
|
338
|
+
readonly name: "account";
|
|
339
|
+
readonly type: "address";
|
|
340
|
+
}];
|
|
341
|
+
readonly name: "Paused";
|
|
342
|
+
readonly type: "event";
|
|
343
|
+
}, {
|
|
344
|
+
readonly anonymous: false;
|
|
345
|
+
readonly inputs: readonly [{
|
|
346
|
+
readonly indexed: true;
|
|
347
|
+
readonly internalType: "address";
|
|
348
|
+
readonly name: "_account";
|
|
349
|
+
readonly type: "address";
|
|
350
|
+
}, {
|
|
351
|
+
readonly indexed: false;
|
|
352
|
+
readonly internalType: "uint256";
|
|
353
|
+
readonly name: "_amount";
|
|
354
|
+
readonly type: "uint256";
|
|
355
|
+
}];
|
|
356
|
+
readonly name: "RescuedAllTokens";
|
|
357
|
+
readonly type: "event";
|
|
358
|
+
}, {
|
|
359
|
+
readonly anonymous: false;
|
|
360
|
+
readonly inputs: readonly [{
|
|
361
|
+
readonly indexed: true;
|
|
362
|
+
readonly internalType: "bytes32";
|
|
363
|
+
readonly name: "role";
|
|
364
|
+
readonly type: "bytes32";
|
|
365
|
+
}, {
|
|
366
|
+
readonly indexed: true;
|
|
367
|
+
readonly internalType: "bytes32";
|
|
368
|
+
readonly name: "previousAdminRole";
|
|
369
|
+
readonly type: "bytes32";
|
|
370
|
+
}, {
|
|
371
|
+
readonly indexed: true;
|
|
372
|
+
readonly internalType: "bytes32";
|
|
373
|
+
readonly name: "newAdminRole";
|
|
374
|
+
readonly type: "bytes32";
|
|
375
|
+
}];
|
|
376
|
+
readonly name: "RoleAdminChanged";
|
|
377
|
+
readonly type: "event";
|
|
378
|
+
}, {
|
|
379
|
+
readonly anonymous: false;
|
|
380
|
+
readonly inputs: readonly [{
|
|
381
|
+
readonly indexed: true;
|
|
382
|
+
readonly internalType: "bytes32";
|
|
383
|
+
readonly name: "role";
|
|
384
|
+
readonly type: "bytes32";
|
|
385
|
+
}, {
|
|
386
|
+
readonly indexed: true;
|
|
387
|
+
readonly internalType: "address";
|
|
388
|
+
readonly name: "account";
|
|
389
|
+
readonly type: "address";
|
|
390
|
+
}, {
|
|
391
|
+
readonly indexed: true;
|
|
392
|
+
readonly internalType: "address";
|
|
393
|
+
readonly name: "sender";
|
|
394
|
+
readonly type: "address";
|
|
395
|
+
}];
|
|
396
|
+
readonly name: "RoleGranted";
|
|
397
|
+
readonly type: "event";
|
|
398
|
+
}, {
|
|
399
|
+
readonly anonymous: false;
|
|
400
|
+
readonly inputs: readonly [{
|
|
401
|
+
readonly indexed: true;
|
|
402
|
+
readonly internalType: "bytes32";
|
|
403
|
+
readonly name: "role";
|
|
404
|
+
readonly type: "bytes32";
|
|
405
|
+
}, {
|
|
406
|
+
readonly indexed: true;
|
|
407
|
+
readonly internalType: "address";
|
|
408
|
+
readonly name: "account";
|
|
409
|
+
readonly type: "address";
|
|
410
|
+
}, {
|
|
411
|
+
readonly indexed: true;
|
|
412
|
+
readonly internalType: "address";
|
|
413
|
+
readonly name: "sender";
|
|
414
|
+
readonly type: "address";
|
|
415
|
+
}];
|
|
416
|
+
readonly name: "RoleRevoked";
|
|
417
|
+
readonly type: "event";
|
|
418
|
+
}, {
|
|
419
|
+
readonly anonymous: false;
|
|
420
|
+
readonly inputs: readonly [{
|
|
421
|
+
readonly indexed: false;
|
|
422
|
+
readonly internalType: "uint16";
|
|
423
|
+
readonly name: "_value";
|
|
424
|
+
readonly type: "uint16";
|
|
425
|
+
}];
|
|
426
|
+
readonly name: "SellTaxUpdated";
|
|
427
|
+
readonly type: "event";
|
|
428
|
+
}, {
|
|
429
|
+
readonly anonymous: false;
|
|
430
|
+
readonly inputs: readonly [{
|
|
431
|
+
readonly indexed: false;
|
|
432
|
+
readonly internalType: "uint256";
|
|
433
|
+
readonly name: "_threshold";
|
|
434
|
+
readonly type: "uint256";
|
|
435
|
+
}];
|
|
436
|
+
readonly name: "SwapThresholdUpdated";
|
|
437
|
+
readonly type: "event";
|
|
438
|
+
}, {
|
|
439
|
+
readonly anonymous: false;
|
|
440
|
+
readonly inputs: readonly [{
|
|
441
|
+
readonly indexed: true;
|
|
442
|
+
readonly internalType: "address";
|
|
443
|
+
readonly name: "_from";
|
|
444
|
+
readonly type: "address";
|
|
445
|
+
}, {
|
|
446
|
+
readonly indexed: false;
|
|
447
|
+
readonly internalType: "address";
|
|
448
|
+
readonly name: "_to";
|
|
449
|
+
readonly type: "address";
|
|
450
|
+
}, {
|
|
451
|
+
readonly indexed: false;
|
|
452
|
+
readonly internalType: "uint256";
|
|
453
|
+
readonly name: "_amount";
|
|
454
|
+
readonly type: "uint256";
|
|
455
|
+
}];
|
|
456
|
+
readonly name: "TokensConfiscated";
|
|
457
|
+
readonly type: "event";
|
|
458
|
+
}, {
|
|
459
|
+
readonly anonymous: false;
|
|
460
|
+
readonly inputs: readonly [{
|
|
461
|
+
readonly indexed: true;
|
|
462
|
+
readonly internalType: "address";
|
|
463
|
+
readonly name: "from";
|
|
464
|
+
readonly type: "address";
|
|
465
|
+
}, {
|
|
466
|
+
readonly indexed: true;
|
|
467
|
+
readonly internalType: "address";
|
|
468
|
+
readonly name: "to";
|
|
469
|
+
readonly type: "address";
|
|
470
|
+
}, {
|
|
471
|
+
readonly indexed: false;
|
|
472
|
+
readonly internalType: "uint256";
|
|
473
|
+
readonly name: "value";
|
|
474
|
+
readonly type: "uint256";
|
|
475
|
+
}];
|
|
476
|
+
readonly name: "Transfer";
|
|
477
|
+
readonly type: "event";
|
|
478
|
+
}, {
|
|
479
|
+
readonly anonymous: false;
|
|
480
|
+
readonly inputs: readonly [{
|
|
481
|
+
readonly indexed: false;
|
|
482
|
+
readonly internalType: "address";
|
|
483
|
+
readonly name: "_treasury";
|
|
484
|
+
readonly type: "address";
|
|
485
|
+
}];
|
|
486
|
+
readonly name: "TreasuryManagerUpdated";
|
|
487
|
+
readonly type: "event";
|
|
488
|
+
}, {
|
|
489
|
+
readonly anonymous: false;
|
|
490
|
+
readonly inputs: readonly [{
|
|
491
|
+
readonly indexed: false;
|
|
492
|
+
readonly internalType: "address";
|
|
493
|
+
readonly name: "_router";
|
|
494
|
+
readonly type: "address";
|
|
495
|
+
}];
|
|
496
|
+
readonly name: "UniSwapRouterUpdated";
|
|
497
|
+
readonly type: "event";
|
|
498
|
+
}, {
|
|
499
|
+
readonly anonymous: false;
|
|
500
|
+
readonly inputs: readonly [{
|
|
501
|
+
readonly indexed: false;
|
|
502
|
+
readonly internalType: "address";
|
|
503
|
+
readonly name: "account";
|
|
504
|
+
readonly type: "address";
|
|
505
|
+
}];
|
|
506
|
+
readonly name: "Unpaused";
|
|
507
|
+
readonly type: "event";
|
|
508
|
+
}, {
|
|
509
|
+
readonly anonymous: false;
|
|
510
|
+
readonly inputs: readonly [{
|
|
511
|
+
readonly indexed: true;
|
|
512
|
+
readonly internalType: "address";
|
|
513
|
+
readonly name: "_account";
|
|
514
|
+
readonly type: "address";
|
|
515
|
+
}, {
|
|
516
|
+
readonly indexed: false;
|
|
517
|
+
readonly internalType: "bool";
|
|
518
|
+
readonly name: "_status";
|
|
519
|
+
readonly type: "bool";
|
|
520
|
+
}];
|
|
521
|
+
readonly name: "WhitelistUpdated";
|
|
522
|
+
readonly type: "event";
|
|
523
|
+
}, {
|
|
524
|
+
readonly inputs: readonly [];
|
|
525
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
526
|
+
readonly outputs: readonly [{
|
|
527
|
+
readonly internalType: "bytes32";
|
|
528
|
+
readonly name: "";
|
|
529
|
+
readonly type: "bytes32";
|
|
530
|
+
}];
|
|
531
|
+
readonly stateMutability: "view";
|
|
532
|
+
readonly type: "function";
|
|
533
|
+
}, {
|
|
534
|
+
readonly inputs: readonly [];
|
|
535
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
536
|
+
readonly outputs: readonly [{
|
|
537
|
+
readonly internalType: "bytes32";
|
|
538
|
+
readonly name: "";
|
|
539
|
+
readonly type: "bytes32";
|
|
540
|
+
}];
|
|
541
|
+
readonly stateMutability: "view";
|
|
542
|
+
readonly type: "function";
|
|
543
|
+
}, {
|
|
544
|
+
readonly inputs: readonly [];
|
|
545
|
+
readonly name: "MANAGER_ROLE";
|
|
546
|
+
readonly outputs: readonly [{
|
|
547
|
+
readonly internalType: "bytes32";
|
|
548
|
+
readonly name: "";
|
|
549
|
+
readonly type: "bytes32";
|
|
550
|
+
}];
|
|
551
|
+
readonly stateMutability: "view";
|
|
552
|
+
readonly type: "function";
|
|
553
|
+
}, {
|
|
554
|
+
readonly inputs: readonly [];
|
|
555
|
+
readonly name: "PAUSER_ROLE";
|
|
556
|
+
readonly outputs: readonly [{
|
|
557
|
+
readonly internalType: "bytes32";
|
|
558
|
+
readonly name: "";
|
|
559
|
+
readonly type: "bytes32";
|
|
560
|
+
}];
|
|
561
|
+
readonly stateMutability: "view";
|
|
562
|
+
readonly type: "function";
|
|
563
|
+
}, {
|
|
564
|
+
readonly inputs: readonly [];
|
|
565
|
+
readonly name: "UPGRADER_ROLE";
|
|
566
|
+
readonly outputs: readonly [{
|
|
567
|
+
readonly internalType: "bytes32";
|
|
568
|
+
readonly name: "";
|
|
569
|
+
readonly type: "bytes32";
|
|
570
|
+
}];
|
|
571
|
+
readonly stateMutability: "view";
|
|
572
|
+
readonly type: "function";
|
|
573
|
+
}, {
|
|
574
|
+
readonly inputs: readonly [{
|
|
575
|
+
readonly internalType: "address";
|
|
576
|
+
readonly name: "owner";
|
|
577
|
+
readonly type: "address";
|
|
578
|
+
}, {
|
|
579
|
+
readonly internalType: "address";
|
|
580
|
+
readonly name: "spender";
|
|
581
|
+
readonly type: "address";
|
|
582
|
+
}];
|
|
583
|
+
readonly name: "allowance";
|
|
584
|
+
readonly outputs: readonly [{
|
|
585
|
+
readonly internalType: "uint256";
|
|
586
|
+
readonly name: "";
|
|
587
|
+
readonly type: "uint256";
|
|
588
|
+
}];
|
|
589
|
+
readonly stateMutability: "view";
|
|
590
|
+
readonly type: "function";
|
|
591
|
+
}, {
|
|
592
|
+
readonly inputs: readonly [{
|
|
593
|
+
readonly internalType: "address";
|
|
594
|
+
readonly name: "spender";
|
|
595
|
+
readonly type: "address";
|
|
596
|
+
}, {
|
|
597
|
+
readonly internalType: "uint256";
|
|
598
|
+
readonly name: "value";
|
|
599
|
+
readonly type: "uint256";
|
|
600
|
+
}];
|
|
601
|
+
readonly name: "approve";
|
|
602
|
+
readonly outputs: readonly [{
|
|
603
|
+
readonly internalType: "bool";
|
|
604
|
+
readonly name: "";
|
|
605
|
+
readonly type: "bool";
|
|
606
|
+
}];
|
|
607
|
+
readonly stateMutability: "nonpayable";
|
|
608
|
+
readonly type: "function";
|
|
609
|
+
}, {
|
|
610
|
+
readonly inputs: readonly [];
|
|
611
|
+
readonly name: "autoSwapEnabled";
|
|
612
|
+
readonly outputs: readonly [{
|
|
613
|
+
readonly internalType: "bool";
|
|
614
|
+
readonly name: "";
|
|
615
|
+
readonly type: "bool";
|
|
616
|
+
}];
|
|
617
|
+
readonly stateMutability: "view";
|
|
618
|
+
readonly type: "function";
|
|
619
|
+
}, {
|
|
620
|
+
readonly inputs: readonly [{
|
|
621
|
+
readonly internalType: "address";
|
|
622
|
+
readonly name: "account";
|
|
623
|
+
readonly type: "address";
|
|
624
|
+
}];
|
|
625
|
+
readonly name: "balanceOf";
|
|
626
|
+
readonly outputs: readonly [{
|
|
627
|
+
readonly internalType: "uint256";
|
|
628
|
+
readonly name: "";
|
|
629
|
+
readonly type: "uint256";
|
|
630
|
+
}];
|
|
631
|
+
readonly stateMutability: "view";
|
|
632
|
+
readonly type: "function";
|
|
633
|
+
}, {
|
|
634
|
+
readonly inputs: readonly [{
|
|
635
|
+
readonly internalType: "address[]";
|
|
636
|
+
readonly name: "_receivers";
|
|
637
|
+
readonly type: "address[]";
|
|
638
|
+
}, {
|
|
639
|
+
readonly internalType: "uint256[]";
|
|
640
|
+
readonly name: "_amounts";
|
|
641
|
+
readonly type: "uint256[]";
|
|
642
|
+
}];
|
|
643
|
+
readonly name: "batchMint";
|
|
644
|
+
readonly outputs: readonly [];
|
|
645
|
+
readonly stateMutability: "nonpayable";
|
|
646
|
+
readonly type: "function";
|
|
647
|
+
}, {
|
|
648
|
+
readonly inputs: readonly [{
|
|
649
|
+
readonly internalType: "address[]";
|
|
650
|
+
readonly name: "_receivers";
|
|
651
|
+
readonly type: "address[]";
|
|
652
|
+
}, {
|
|
653
|
+
readonly internalType: "uint256[]";
|
|
654
|
+
readonly name: "_amounts";
|
|
655
|
+
readonly type: "uint256[]";
|
|
656
|
+
}];
|
|
657
|
+
readonly name: "batchTransfer";
|
|
658
|
+
readonly outputs: readonly [];
|
|
659
|
+
readonly stateMutability: "nonpayable";
|
|
660
|
+
readonly type: "function";
|
|
661
|
+
}, {
|
|
662
|
+
readonly inputs: readonly [{
|
|
663
|
+
readonly internalType: "address[]";
|
|
664
|
+
readonly name: "_accounts";
|
|
665
|
+
readonly type: "address[]";
|
|
666
|
+
}, {
|
|
667
|
+
readonly internalType: "bool[]";
|
|
668
|
+
readonly name: "_isBlocklisted";
|
|
669
|
+
readonly type: "bool[]";
|
|
670
|
+
}];
|
|
671
|
+
readonly name: "batchUpdateBlocklist";
|
|
672
|
+
readonly outputs: readonly [];
|
|
673
|
+
readonly stateMutability: "nonpayable";
|
|
674
|
+
readonly type: "function";
|
|
675
|
+
}, {
|
|
676
|
+
readonly inputs: readonly [{
|
|
677
|
+
readonly internalType: "address";
|
|
678
|
+
readonly name: "";
|
|
679
|
+
readonly type: "address";
|
|
680
|
+
}];
|
|
681
|
+
readonly name: "blocklist";
|
|
682
|
+
readonly outputs: readonly [{
|
|
683
|
+
readonly internalType: "bool";
|
|
684
|
+
readonly name: "";
|
|
685
|
+
readonly type: "bool";
|
|
686
|
+
}];
|
|
687
|
+
readonly stateMutability: "view";
|
|
688
|
+
readonly type: "function";
|
|
689
|
+
}, {
|
|
690
|
+
readonly inputs: readonly [];
|
|
691
|
+
readonly name: "buyTax";
|
|
692
|
+
readonly outputs: readonly [{
|
|
693
|
+
readonly internalType: "uint16";
|
|
694
|
+
readonly name: "";
|
|
695
|
+
readonly type: "uint16";
|
|
696
|
+
}];
|
|
697
|
+
readonly stateMutability: "view";
|
|
698
|
+
readonly type: "function";
|
|
699
|
+
}, {
|
|
700
|
+
readonly inputs: readonly [{
|
|
701
|
+
readonly internalType: "address";
|
|
702
|
+
readonly name: "_user";
|
|
703
|
+
readonly type: "address";
|
|
704
|
+
}];
|
|
705
|
+
readonly name: "confiscateTokens";
|
|
706
|
+
readonly outputs: readonly [];
|
|
707
|
+
readonly stateMutability: "nonpayable";
|
|
708
|
+
readonly type: "function";
|
|
709
|
+
}, {
|
|
710
|
+
readonly inputs: readonly [];
|
|
711
|
+
readonly name: "decimals";
|
|
712
|
+
readonly outputs: readonly [{
|
|
713
|
+
readonly internalType: "uint8";
|
|
714
|
+
readonly name: "";
|
|
715
|
+
readonly type: "uint8";
|
|
716
|
+
}];
|
|
717
|
+
readonly stateMutability: "view";
|
|
718
|
+
readonly type: "function";
|
|
719
|
+
}, {
|
|
720
|
+
readonly inputs: readonly [];
|
|
721
|
+
readonly name: "eip712Domain";
|
|
722
|
+
readonly outputs: readonly [{
|
|
723
|
+
readonly internalType: "bytes1";
|
|
724
|
+
readonly name: "fields";
|
|
725
|
+
readonly type: "bytes1";
|
|
726
|
+
}, {
|
|
727
|
+
readonly internalType: "string";
|
|
728
|
+
readonly name: "name";
|
|
729
|
+
readonly type: "string";
|
|
730
|
+
}, {
|
|
731
|
+
readonly internalType: "string";
|
|
732
|
+
readonly name: "version";
|
|
733
|
+
readonly type: "string";
|
|
734
|
+
}, {
|
|
735
|
+
readonly internalType: "uint256";
|
|
736
|
+
readonly name: "chainId";
|
|
737
|
+
readonly type: "uint256";
|
|
738
|
+
}, {
|
|
739
|
+
readonly internalType: "address";
|
|
740
|
+
readonly name: "verifyingContract";
|
|
741
|
+
readonly type: "address";
|
|
742
|
+
}, {
|
|
743
|
+
readonly internalType: "bytes32";
|
|
744
|
+
readonly name: "salt";
|
|
745
|
+
readonly type: "bytes32";
|
|
746
|
+
}, {
|
|
747
|
+
readonly internalType: "uint256[]";
|
|
748
|
+
readonly name: "extensions";
|
|
749
|
+
readonly type: "uint256[]";
|
|
750
|
+
}];
|
|
751
|
+
readonly stateMutability: "view";
|
|
752
|
+
readonly type: "function";
|
|
753
|
+
}, {
|
|
754
|
+
readonly inputs: readonly [{
|
|
755
|
+
readonly internalType: "bytes32";
|
|
756
|
+
readonly name: "role";
|
|
757
|
+
readonly type: "bytes32";
|
|
758
|
+
}];
|
|
759
|
+
readonly name: "getRoleAdmin";
|
|
760
|
+
readonly outputs: readonly [{
|
|
761
|
+
readonly internalType: "bytes32";
|
|
762
|
+
readonly name: "";
|
|
763
|
+
readonly type: "bytes32";
|
|
764
|
+
}];
|
|
765
|
+
readonly stateMutability: "view";
|
|
766
|
+
readonly type: "function";
|
|
767
|
+
}, {
|
|
768
|
+
readonly inputs: readonly [{
|
|
769
|
+
readonly internalType: "bytes32";
|
|
770
|
+
readonly name: "role";
|
|
771
|
+
readonly type: "bytes32";
|
|
772
|
+
}, {
|
|
773
|
+
readonly internalType: "address";
|
|
774
|
+
readonly name: "account";
|
|
775
|
+
readonly type: "address";
|
|
776
|
+
}];
|
|
777
|
+
readonly name: "grantRole";
|
|
778
|
+
readonly outputs: readonly [];
|
|
779
|
+
readonly stateMutability: "nonpayable";
|
|
780
|
+
readonly type: "function";
|
|
781
|
+
}, {
|
|
782
|
+
readonly inputs: readonly [{
|
|
783
|
+
readonly internalType: "bytes32";
|
|
784
|
+
readonly name: "role";
|
|
785
|
+
readonly type: "bytes32";
|
|
786
|
+
}, {
|
|
787
|
+
readonly internalType: "address";
|
|
788
|
+
readonly name: "account";
|
|
789
|
+
readonly type: "address";
|
|
790
|
+
}];
|
|
791
|
+
readonly name: "hasRole";
|
|
792
|
+
readonly outputs: readonly [{
|
|
793
|
+
readonly internalType: "bool";
|
|
794
|
+
readonly name: "";
|
|
795
|
+
readonly type: "bool";
|
|
796
|
+
}];
|
|
797
|
+
readonly stateMutability: "view";
|
|
798
|
+
readonly type: "function";
|
|
799
|
+
}, {
|
|
800
|
+
readonly inputs: readonly [{
|
|
801
|
+
readonly internalType: "string";
|
|
802
|
+
readonly name: "_name";
|
|
803
|
+
readonly type: "string";
|
|
804
|
+
}, {
|
|
805
|
+
readonly internalType: "string";
|
|
806
|
+
readonly name: "_symbol";
|
|
807
|
+
readonly type: "string";
|
|
808
|
+
}, {
|
|
809
|
+
readonly internalType: "address";
|
|
810
|
+
readonly name: "_manager";
|
|
811
|
+
readonly type: "address";
|
|
812
|
+
}, {
|
|
813
|
+
readonly internalType: "address";
|
|
814
|
+
readonly name: "_pauser";
|
|
815
|
+
readonly type: "address";
|
|
816
|
+
}, {
|
|
817
|
+
readonly internalType: "address";
|
|
818
|
+
readonly name: "_upgrader";
|
|
819
|
+
readonly type: "address";
|
|
820
|
+
}, {
|
|
821
|
+
readonly internalType: "address";
|
|
822
|
+
readonly name: "_taxLedger";
|
|
823
|
+
readonly type: "address";
|
|
824
|
+
}, {
|
|
825
|
+
readonly internalType: "uint16";
|
|
826
|
+
readonly name: "_buyTax";
|
|
827
|
+
readonly type: "uint16";
|
|
828
|
+
}, {
|
|
829
|
+
readonly internalType: "uint16";
|
|
830
|
+
readonly name: "_sellTax";
|
|
831
|
+
readonly type: "uint16";
|
|
832
|
+
}, {
|
|
833
|
+
readonly internalType: "bool";
|
|
834
|
+
readonly name: "_autoSwapEnabled";
|
|
835
|
+
readonly type: "bool";
|
|
836
|
+
}];
|
|
837
|
+
readonly name: "initialize";
|
|
838
|
+
readonly outputs: readonly [];
|
|
839
|
+
readonly stateMutability: "nonpayable";
|
|
840
|
+
readonly type: "function";
|
|
841
|
+
}, {
|
|
842
|
+
readonly inputs: readonly [{
|
|
843
|
+
readonly internalType: "address";
|
|
844
|
+
readonly name: "_user";
|
|
845
|
+
readonly type: "address";
|
|
846
|
+
}];
|
|
847
|
+
readonly name: "isWhitelisted";
|
|
848
|
+
readonly outputs: readonly [{
|
|
849
|
+
readonly internalType: "bool";
|
|
850
|
+
readonly name: "";
|
|
851
|
+
readonly type: "bool";
|
|
852
|
+
}];
|
|
853
|
+
readonly stateMutability: "view";
|
|
854
|
+
readonly type: "function";
|
|
855
|
+
}, {
|
|
856
|
+
readonly inputs: readonly [];
|
|
857
|
+
readonly name: "lpPair";
|
|
858
|
+
readonly outputs: readonly [{
|
|
859
|
+
readonly internalType: "address";
|
|
860
|
+
readonly name: "";
|
|
861
|
+
readonly type: "address";
|
|
862
|
+
}];
|
|
863
|
+
readonly stateMutability: "view";
|
|
864
|
+
readonly type: "function";
|
|
865
|
+
}, {
|
|
866
|
+
readonly inputs: readonly [];
|
|
867
|
+
readonly name: "lpRouter";
|
|
868
|
+
readonly outputs: readonly [{
|
|
869
|
+
readonly internalType: "contract IUniswapV2Router02";
|
|
870
|
+
readonly name: "";
|
|
871
|
+
readonly type: "address";
|
|
872
|
+
}];
|
|
873
|
+
readonly stateMutability: "view";
|
|
874
|
+
readonly type: "function";
|
|
875
|
+
}, {
|
|
876
|
+
readonly inputs: readonly [];
|
|
877
|
+
readonly name: "maxTotalSupply";
|
|
878
|
+
readonly outputs: readonly [{
|
|
879
|
+
readonly internalType: "uint256";
|
|
880
|
+
readonly name: "";
|
|
881
|
+
readonly type: "uint256";
|
|
882
|
+
}];
|
|
883
|
+
readonly stateMutability: "view";
|
|
884
|
+
readonly type: "function";
|
|
885
|
+
}, {
|
|
886
|
+
readonly inputs: readonly [{
|
|
887
|
+
readonly internalType: "address";
|
|
888
|
+
readonly name: "_receiver";
|
|
889
|
+
readonly type: "address";
|
|
890
|
+
}, {
|
|
891
|
+
readonly internalType: "uint256";
|
|
892
|
+
readonly name: "_amount";
|
|
893
|
+
readonly type: "uint256";
|
|
894
|
+
}];
|
|
895
|
+
readonly name: "mint";
|
|
896
|
+
readonly outputs: readonly [];
|
|
897
|
+
readonly stateMutability: "nonpayable";
|
|
898
|
+
readonly type: "function";
|
|
899
|
+
}, {
|
|
900
|
+
readonly inputs: readonly [];
|
|
901
|
+
readonly name: "name";
|
|
902
|
+
readonly outputs: readonly [{
|
|
903
|
+
readonly internalType: "string";
|
|
904
|
+
readonly name: "";
|
|
905
|
+
readonly type: "string";
|
|
906
|
+
}];
|
|
907
|
+
readonly stateMutability: "view";
|
|
908
|
+
readonly type: "function";
|
|
909
|
+
}, {
|
|
910
|
+
readonly inputs: readonly [{
|
|
911
|
+
readonly internalType: "address";
|
|
912
|
+
readonly name: "owner";
|
|
913
|
+
readonly type: "address";
|
|
914
|
+
}];
|
|
915
|
+
readonly name: "nonces";
|
|
916
|
+
readonly outputs: readonly [{
|
|
917
|
+
readonly internalType: "uint256";
|
|
918
|
+
readonly name: "";
|
|
919
|
+
readonly type: "uint256";
|
|
920
|
+
}];
|
|
921
|
+
readonly stateMutability: "view";
|
|
922
|
+
readonly type: "function";
|
|
923
|
+
}, {
|
|
924
|
+
readonly inputs: readonly [];
|
|
925
|
+
readonly name: "pause";
|
|
926
|
+
readonly outputs: readonly [];
|
|
927
|
+
readonly stateMutability: "nonpayable";
|
|
928
|
+
readonly type: "function";
|
|
929
|
+
}, {
|
|
930
|
+
readonly inputs: readonly [];
|
|
931
|
+
readonly name: "paused";
|
|
932
|
+
readonly outputs: readonly [{
|
|
933
|
+
readonly internalType: "bool";
|
|
934
|
+
readonly name: "";
|
|
935
|
+
readonly type: "bool";
|
|
936
|
+
}];
|
|
937
|
+
readonly stateMutability: "view";
|
|
938
|
+
readonly type: "function";
|
|
939
|
+
}, {
|
|
940
|
+
readonly inputs: readonly [{
|
|
941
|
+
readonly internalType: "address";
|
|
942
|
+
readonly name: "owner";
|
|
943
|
+
readonly type: "address";
|
|
944
|
+
}, {
|
|
945
|
+
readonly internalType: "address";
|
|
946
|
+
readonly name: "spender";
|
|
947
|
+
readonly type: "address";
|
|
948
|
+
}, {
|
|
949
|
+
readonly internalType: "uint256";
|
|
950
|
+
readonly name: "value";
|
|
951
|
+
readonly type: "uint256";
|
|
952
|
+
}, {
|
|
953
|
+
readonly internalType: "uint256";
|
|
954
|
+
readonly name: "deadline";
|
|
955
|
+
readonly type: "uint256";
|
|
956
|
+
}, {
|
|
957
|
+
readonly internalType: "uint8";
|
|
958
|
+
readonly name: "v";
|
|
959
|
+
readonly type: "uint8";
|
|
960
|
+
}, {
|
|
961
|
+
readonly internalType: "bytes32";
|
|
962
|
+
readonly name: "r";
|
|
963
|
+
readonly type: "bytes32";
|
|
964
|
+
}, {
|
|
965
|
+
readonly internalType: "bytes32";
|
|
966
|
+
readonly name: "s";
|
|
967
|
+
readonly type: "bytes32";
|
|
968
|
+
}];
|
|
969
|
+
readonly name: "permit";
|
|
970
|
+
readonly outputs: readonly [];
|
|
971
|
+
readonly stateMutability: "nonpayable";
|
|
972
|
+
readonly type: "function";
|
|
973
|
+
}, {
|
|
974
|
+
readonly inputs: readonly [{
|
|
975
|
+
readonly internalType: "bytes32";
|
|
976
|
+
readonly name: "role";
|
|
977
|
+
readonly type: "bytes32";
|
|
978
|
+
}, {
|
|
979
|
+
readonly internalType: "address";
|
|
980
|
+
readonly name: "callerConfirmation";
|
|
981
|
+
readonly type: "address";
|
|
982
|
+
}];
|
|
983
|
+
readonly name: "renounceRole";
|
|
984
|
+
readonly outputs: readonly [];
|
|
985
|
+
readonly stateMutability: "nonpayable";
|
|
986
|
+
readonly type: "function";
|
|
987
|
+
}, {
|
|
988
|
+
readonly inputs: readonly [{
|
|
989
|
+
readonly internalType: "address";
|
|
990
|
+
readonly name: "_receiver";
|
|
991
|
+
readonly type: "address";
|
|
992
|
+
}, {
|
|
993
|
+
readonly internalType: "address";
|
|
994
|
+
readonly name: "_token";
|
|
995
|
+
readonly type: "address";
|
|
996
|
+
}, {
|
|
997
|
+
readonly internalType: "uint256";
|
|
998
|
+
readonly name: "_amount";
|
|
999
|
+
readonly type: "uint256";
|
|
1000
|
+
}];
|
|
1001
|
+
readonly name: "rescueErc20TokenFromContract";
|
|
1002
|
+
readonly outputs: readonly [];
|
|
1003
|
+
readonly stateMutability: "nonpayable";
|
|
1004
|
+
readonly type: "function";
|
|
1005
|
+
}, {
|
|
1006
|
+
readonly inputs: readonly [{
|
|
1007
|
+
readonly internalType: "address";
|
|
1008
|
+
readonly name: "_receiver";
|
|
1009
|
+
readonly type: "address";
|
|
1010
|
+
}, {
|
|
1011
|
+
readonly internalType: "uint256";
|
|
1012
|
+
readonly name: "_amount";
|
|
1013
|
+
readonly type: "uint256";
|
|
1014
|
+
}];
|
|
1015
|
+
readonly name: "rescueNativeTokenFromContract";
|
|
1016
|
+
readonly outputs: readonly [];
|
|
1017
|
+
readonly stateMutability: "nonpayable";
|
|
1018
|
+
readonly type: "function";
|
|
1019
|
+
}, {
|
|
1020
|
+
readonly inputs: readonly [{
|
|
1021
|
+
readonly internalType: "bytes32";
|
|
1022
|
+
readonly name: "role";
|
|
1023
|
+
readonly type: "bytes32";
|
|
1024
|
+
}, {
|
|
1025
|
+
readonly internalType: "address";
|
|
1026
|
+
readonly name: "account";
|
|
1027
|
+
readonly type: "address";
|
|
1028
|
+
}];
|
|
1029
|
+
readonly name: "revokeRole";
|
|
1030
|
+
readonly outputs: readonly [];
|
|
1031
|
+
readonly stateMutability: "nonpayable";
|
|
1032
|
+
readonly type: "function";
|
|
1033
|
+
}, {
|
|
1034
|
+
readonly inputs: readonly [];
|
|
1035
|
+
readonly name: "sellTax";
|
|
1036
|
+
readonly outputs: readonly [{
|
|
1037
|
+
readonly internalType: "uint16";
|
|
1038
|
+
readonly name: "";
|
|
1039
|
+
readonly type: "uint16";
|
|
1040
|
+
}];
|
|
1041
|
+
readonly stateMutability: "view";
|
|
1042
|
+
readonly type: "function";
|
|
1043
|
+
}, {
|
|
1044
|
+
readonly inputs: readonly [{
|
|
1045
|
+
readonly internalType: "address";
|
|
1046
|
+
readonly name: "_treasuryManager";
|
|
1047
|
+
readonly type: "address";
|
|
1048
|
+
}];
|
|
1049
|
+
readonly name: "setTreasuryManager";
|
|
1050
|
+
readonly outputs: readonly [];
|
|
1051
|
+
readonly stateMutability: "nonpayable";
|
|
1052
|
+
readonly type: "function";
|
|
1053
|
+
}, {
|
|
1054
|
+
readonly inputs: readonly [{
|
|
1055
|
+
readonly internalType: "address";
|
|
1056
|
+
readonly name: "_router";
|
|
1057
|
+
readonly type: "address";
|
|
1058
|
+
}];
|
|
1059
|
+
readonly name: "setUniswapRouter";
|
|
1060
|
+
readonly outputs: readonly [];
|
|
1061
|
+
readonly stateMutability: "nonpayable";
|
|
1062
|
+
readonly type: "function";
|
|
1063
|
+
}, {
|
|
1064
|
+
readonly inputs: readonly [{
|
|
1065
|
+
readonly internalType: "bytes4";
|
|
1066
|
+
readonly name: "interfaceId";
|
|
1067
|
+
readonly type: "bytes4";
|
|
1068
|
+
}];
|
|
1069
|
+
readonly name: "supportsInterface";
|
|
1070
|
+
readonly outputs: readonly [{
|
|
1071
|
+
readonly internalType: "bool";
|
|
1072
|
+
readonly name: "";
|
|
1073
|
+
readonly type: "bool";
|
|
1074
|
+
}];
|
|
1075
|
+
readonly stateMutability: "view";
|
|
1076
|
+
readonly type: "function";
|
|
1077
|
+
}, {
|
|
1078
|
+
readonly inputs: readonly [];
|
|
1079
|
+
readonly name: "swapThreshold";
|
|
1080
|
+
readonly outputs: readonly [{
|
|
1081
|
+
readonly internalType: "uint256";
|
|
1082
|
+
readonly name: "";
|
|
1083
|
+
readonly type: "uint256";
|
|
1084
|
+
}];
|
|
1085
|
+
readonly stateMutability: "view";
|
|
1086
|
+
readonly type: "function";
|
|
1087
|
+
}, {
|
|
1088
|
+
readonly inputs: readonly [];
|
|
1089
|
+
readonly name: "symbol";
|
|
1090
|
+
readonly outputs: readonly [{
|
|
1091
|
+
readonly internalType: "string";
|
|
1092
|
+
readonly name: "";
|
|
1093
|
+
readonly type: "string";
|
|
1094
|
+
}];
|
|
1095
|
+
readonly stateMutability: "view";
|
|
1096
|
+
readonly type: "function";
|
|
1097
|
+
}, {
|
|
1098
|
+
readonly inputs: readonly [];
|
|
1099
|
+
readonly name: "taxDivisor";
|
|
1100
|
+
readonly outputs: readonly [{
|
|
1101
|
+
readonly internalType: "uint16";
|
|
1102
|
+
readonly name: "";
|
|
1103
|
+
readonly type: "uint16";
|
|
1104
|
+
}];
|
|
1105
|
+
readonly stateMutability: "view";
|
|
1106
|
+
readonly type: "function";
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly inputs: readonly [];
|
|
1109
|
+
readonly name: "taxLedger";
|
|
1110
|
+
readonly outputs: readonly [{
|
|
1111
|
+
readonly internalType: "address";
|
|
1112
|
+
readonly name: "";
|
|
1113
|
+
readonly type: "address";
|
|
1114
|
+
}];
|
|
1115
|
+
readonly stateMutability: "view";
|
|
1116
|
+
readonly type: "function";
|
|
1117
|
+
}, {
|
|
1118
|
+
readonly inputs: readonly [];
|
|
1119
|
+
readonly name: "totalSupply";
|
|
1120
|
+
readonly outputs: readonly [{
|
|
1121
|
+
readonly internalType: "uint256";
|
|
1122
|
+
readonly name: "";
|
|
1123
|
+
readonly type: "uint256";
|
|
1124
|
+
}];
|
|
1125
|
+
readonly stateMutability: "view";
|
|
1126
|
+
readonly type: "function";
|
|
1127
|
+
}, {
|
|
1128
|
+
readonly inputs: readonly [{
|
|
1129
|
+
readonly internalType: "address";
|
|
1130
|
+
readonly name: "to";
|
|
1131
|
+
readonly type: "address";
|
|
1132
|
+
}, {
|
|
1133
|
+
readonly internalType: "uint256";
|
|
1134
|
+
readonly name: "value";
|
|
1135
|
+
readonly type: "uint256";
|
|
1136
|
+
}];
|
|
1137
|
+
readonly name: "transfer";
|
|
1138
|
+
readonly outputs: readonly [{
|
|
1139
|
+
readonly internalType: "bool";
|
|
1140
|
+
readonly name: "";
|
|
1141
|
+
readonly type: "bool";
|
|
1142
|
+
}];
|
|
1143
|
+
readonly stateMutability: "nonpayable";
|
|
1144
|
+
readonly type: "function";
|
|
1145
|
+
}, {
|
|
1146
|
+
readonly inputs: readonly [{
|
|
1147
|
+
readonly internalType: "address";
|
|
1148
|
+
readonly name: "from";
|
|
1149
|
+
readonly type: "address";
|
|
1150
|
+
}, {
|
|
1151
|
+
readonly internalType: "address";
|
|
1152
|
+
readonly name: "to";
|
|
1153
|
+
readonly type: "address";
|
|
1154
|
+
}, {
|
|
1155
|
+
readonly internalType: "uint256";
|
|
1156
|
+
readonly name: "value";
|
|
1157
|
+
readonly type: "uint256";
|
|
1158
|
+
}];
|
|
1159
|
+
readonly name: "transferFrom";
|
|
1160
|
+
readonly outputs: readonly [{
|
|
1161
|
+
readonly internalType: "bool";
|
|
1162
|
+
readonly name: "";
|
|
1163
|
+
readonly type: "bool";
|
|
1164
|
+
}];
|
|
1165
|
+
readonly stateMutability: "nonpayable";
|
|
1166
|
+
readonly type: "function";
|
|
1167
|
+
}, {
|
|
1168
|
+
readonly inputs: readonly [];
|
|
1169
|
+
readonly name: "treasuryManager";
|
|
1170
|
+
readonly outputs: readonly [{
|
|
1171
|
+
readonly internalType: "contract TreasuryManager";
|
|
1172
|
+
readonly name: "";
|
|
1173
|
+
readonly type: "address";
|
|
1174
|
+
}];
|
|
1175
|
+
readonly stateMutability: "view";
|
|
1176
|
+
readonly type: "function";
|
|
1177
|
+
}, {
|
|
1178
|
+
readonly inputs: readonly [];
|
|
1179
|
+
readonly name: "unpause";
|
|
1180
|
+
readonly outputs: readonly [];
|
|
1181
|
+
readonly stateMutability: "nonpayable";
|
|
1182
|
+
readonly type: "function";
|
|
1183
|
+
}, {
|
|
1184
|
+
readonly inputs: readonly [{
|
|
1185
|
+
readonly internalType: "bool";
|
|
1186
|
+
readonly name: "_status";
|
|
1187
|
+
readonly type: "bool";
|
|
1188
|
+
}];
|
|
1189
|
+
readonly name: "updateAutoSwapStatus";
|
|
1190
|
+
readonly outputs: readonly [];
|
|
1191
|
+
readonly stateMutability: "nonpayable";
|
|
1192
|
+
readonly type: "function";
|
|
1193
|
+
}, {
|
|
1194
|
+
readonly inputs: readonly [{
|
|
1195
|
+
readonly internalType: "address";
|
|
1196
|
+
readonly name: "_account";
|
|
1197
|
+
readonly type: "address";
|
|
1198
|
+
}, {
|
|
1199
|
+
readonly internalType: "bool";
|
|
1200
|
+
readonly name: "_isBlocklisted";
|
|
1201
|
+
readonly type: "bool";
|
|
1202
|
+
}];
|
|
1203
|
+
readonly name: "updateBlocklist";
|
|
1204
|
+
readonly outputs: readonly [];
|
|
1205
|
+
readonly stateMutability: "nonpayable";
|
|
1206
|
+
readonly type: "function";
|
|
1207
|
+
}, {
|
|
1208
|
+
readonly inputs: readonly [{
|
|
1209
|
+
readonly internalType: "uint16";
|
|
1210
|
+
readonly name: "_value";
|
|
1211
|
+
readonly type: "uint16";
|
|
1212
|
+
}];
|
|
1213
|
+
readonly name: "updateBuyTax";
|
|
1214
|
+
readonly outputs: readonly [];
|
|
1215
|
+
readonly stateMutability: "nonpayable";
|
|
1216
|
+
readonly type: "function";
|
|
1217
|
+
}, {
|
|
1218
|
+
readonly inputs: readonly [{
|
|
1219
|
+
readonly internalType: "uint16";
|
|
1220
|
+
readonly name: "_value";
|
|
1221
|
+
readonly type: "uint16";
|
|
1222
|
+
}];
|
|
1223
|
+
readonly name: "updateSellTax";
|
|
1224
|
+
readonly outputs: readonly [];
|
|
1225
|
+
readonly stateMutability: "nonpayable";
|
|
1226
|
+
readonly type: "function";
|
|
1227
|
+
}, {
|
|
1228
|
+
readonly inputs: readonly [{
|
|
1229
|
+
readonly internalType: "uint256";
|
|
1230
|
+
readonly name: "_threshold";
|
|
1231
|
+
readonly type: "uint256";
|
|
1232
|
+
}];
|
|
1233
|
+
readonly name: "updateSwapThreshold";
|
|
1234
|
+
readonly outputs: readonly [];
|
|
1235
|
+
readonly stateMutability: "nonpayable";
|
|
1236
|
+
readonly type: "function";
|
|
1237
|
+
}, {
|
|
1238
|
+
readonly inputs: readonly [{
|
|
1239
|
+
readonly internalType: "address";
|
|
1240
|
+
readonly name: "_ledger";
|
|
1241
|
+
readonly type: "address";
|
|
1242
|
+
}];
|
|
1243
|
+
readonly name: "updateTaxLedger";
|
|
1244
|
+
readonly outputs: readonly [];
|
|
1245
|
+
readonly stateMutability: "nonpayable";
|
|
1246
|
+
readonly type: "function";
|
|
1247
|
+
}, {
|
|
1248
|
+
readonly inputs: readonly [{
|
|
1249
|
+
readonly internalType: "address";
|
|
1250
|
+
readonly name: "_account";
|
|
1251
|
+
readonly type: "address";
|
|
1252
|
+
}, {
|
|
1253
|
+
readonly internalType: "bool";
|
|
1254
|
+
readonly name: "_status";
|
|
1255
|
+
readonly type: "bool";
|
|
1256
|
+
}];
|
|
1257
|
+
readonly name: "updateWhitelist";
|
|
1258
|
+
readonly outputs: readonly [];
|
|
1259
|
+
readonly stateMutability: "nonpayable";
|
|
1260
|
+
readonly type: "function";
|
|
1261
|
+
}, {
|
|
1262
|
+
readonly stateMutability: "payable";
|
|
1263
|
+
readonly type: "receive";
|
|
1264
|
+
}];
|
|
1265
|
+
/**
|
|
1266
|
+
* Type-safe ABI for UNIT_json
|
|
1267
|
+
*/
|
|
1268
|
+
export type UNIT_jsonAbi = typeof UNIT_jsonAbi;
|
|
1269
|
+
/**
|
|
1270
|
+
* Contract instance type for UNIT_json
|
|
1271
|
+
*/
|
|
1272
|
+
export type UNIT_jsonContract = any;
|
|
1273
|
+
/**
|
|
1274
|
+
* UNIT_json Contract Class
|
|
1275
|
+
*
|
|
1276
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1277
|
+
*
|
|
1278
|
+
* @example
|
|
1279
|
+
* ```typescript
|
|
1280
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1281
|
+
* import { mainnet } from 'viem/chains';
|
|
1282
|
+
* import { UNIT_json } from 'UNIT_json';
|
|
1283
|
+
*
|
|
1284
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1285
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1286
|
+
*
|
|
1287
|
+
* const contract = new UNIT_json('0x...', { publicClient, walletClient });
|
|
1288
|
+
*
|
|
1289
|
+
* // Read functions
|
|
1290
|
+
* const result = await contract.balanceOf('0x...');
|
|
1291
|
+
*
|
|
1292
|
+
* // Write functions
|
|
1293
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
1294
|
+
*
|
|
1295
|
+
* // Simulate transactions (dry-run)
|
|
1296
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
1297
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
1298
|
+
*
|
|
1299
|
+
* // Watch events
|
|
1300
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1301
|
+
* console.log('Transfer event:', event);
|
|
1302
|
+
* });
|
|
1303
|
+
* ```
|
|
1304
|
+
*/
|
|
1305
|
+
export declare class UNIT_json {
|
|
1306
|
+
private contract;
|
|
1307
|
+
private contractAddress;
|
|
1308
|
+
private publicClient;
|
|
1309
|
+
constructor(address: Address, clients: {
|
|
1310
|
+
publicClient: PublicClient;
|
|
1311
|
+
walletClient?: WalletClient;
|
|
1312
|
+
});
|
|
1313
|
+
/**
|
|
1314
|
+
* Get the contract address
|
|
1315
|
+
*/
|
|
1316
|
+
get address(): Address;
|
|
1317
|
+
/**
|
|
1318
|
+
* Get the underlying viem contract instance
|
|
1319
|
+
*/
|
|
1320
|
+
getContract(): UNIT_jsonContract;
|
|
1321
|
+
/**
|
|
1322
|
+
* DEFAULT_ADMIN_ROLE
|
|
1323
|
+
* view
|
|
1324
|
+
*/
|
|
1325
|
+
DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`>;
|
|
1326
|
+
/**
|
|
1327
|
+
* DOMAIN_SEPARATOR
|
|
1328
|
+
* view
|
|
1329
|
+
*/
|
|
1330
|
+
DOMAIN_SEPARATOR(): Promise<`0x${string}`>;
|
|
1331
|
+
/**
|
|
1332
|
+
* MANAGER_ROLE
|
|
1333
|
+
* view
|
|
1334
|
+
*/
|
|
1335
|
+
MANAGER_ROLE(): Promise<`0x${string}`>;
|
|
1336
|
+
/**
|
|
1337
|
+
* PAUSER_ROLE
|
|
1338
|
+
* view
|
|
1339
|
+
*/
|
|
1340
|
+
PAUSER_ROLE(): Promise<`0x${string}`>;
|
|
1341
|
+
/**
|
|
1342
|
+
* UPGRADER_ROLE
|
|
1343
|
+
* view
|
|
1344
|
+
*/
|
|
1345
|
+
UPGRADER_ROLE(): Promise<`0x${string}`>;
|
|
1346
|
+
/**
|
|
1347
|
+
* allowance
|
|
1348
|
+
* view
|
|
1349
|
+
*/
|
|
1350
|
+
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
1351
|
+
/**
|
|
1352
|
+
* autoSwapEnabled
|
|
1353
|
+
* view
|
|
1354
|
+
*/
|
|
1355
|
+
autoSwapEnabled(): Promise<boolean>;
|
|
1356
|
+
/**
|
|
1357
|
+
* balanceOf
|
|
1358
|
+
* view
|
|
1359
|
+
*/
|
|
1360
|
+
balanceOf(account: `0x${string}`): Promise<bigint>;
|
|
1361
|
+
/**
|
|
1362
|
+
* blocklist
|
|
1363
|
+
* view
|
|
1364
|
+
*/
|
|
1365
|
+
blocklist(arg0: `0x${string}`): Promise<boolean>;
|
|
1366
|
+
/**
|
|
1367
|
+
* buyTax
|
|
1368
|
+
* view
|
|
1369
|
+
*/
|
|
1370
|
+
buyTax(): Promise<bigint>;
|
|
1371
|
+
/**
|
|
1372
|
+
* decimals
|
|
1373
|
+
* view
|
|
1374
|
+
*/
|
|
1375
|
+
decimals(): Promise<bigint>;
|
|
1376
|
+
/**
|
|
1377
|
+
* eip712Domain
|
|
1378
|
+
* view
|
|
1379
|
+
*/
|
|
1380
|
+
eip712Domain(): Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]>;
|
|
1381
|
+
/**
|
|
1382
|
+
* getRoleAdmin
|
|
1383
|
+
* view
|
|
1384
|
+
*/
|
|
1385
|
+
getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`>;
|
|
1386
|
+
/**
|
|
1387
|
+
* hasRole
|
|
1388
|
+
* view
|
|
1389
|
+
*/
|
|
1390
|
+
hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean>;
|
|
1391
|
+
/**
|
|
1392
|
+
* isWhitelisted
|
|
1393
|
+
* view
|
|
1394
|
+
*/
|
|
1395
|
+
isWhitelisted(_user: `0x${string}`): Promise<boolean>;
|
|
1396
|
+
/**
|
|
1397
|
+
* lpPair
|
|
1398
|
+
* view
|
|
1399
|
+
*/
|
|
1400
|
+
lpPair(): Promise<`0x${string}`>;
|
|
1401
|
+
/**
|
|
1402
|
+
* lpRouter
|
|
1403
|
+
* view
|
|
1404
|
+
*/
|
|
1405
|
+
lpRouter(): Promise<`0x${string}`>;
|
|
1406
|
+
/**
|
|
1407
|
+
* maxTotalSupply
|
|
1408
|
+
* view
|
|
1409
|
+
*/
|
|
1410
|
+
maxTotalSupply(): Promise<bigint>;
|
|
1411
|
+
/**
|
|
1412
|
+
* name
|
|
1413
|
+
* view
|
|
1414
|
+
*/
|
|
1415
|
+
name(): Promise<string>;
|
|
1416
|
+
/**
|
|
1417
|
+
* nonces
|
|
1418
|
+
* view
|
|
1419
|
+
*/
|
|
1420
|
+
nonces(owner: `0x${string}`): Promise<bigint>;
|
|
1421
|
+
/**
|
|
1422
|
+
* paused
|
|
1423
|
+
* view
|
|
1424
|
+
*/
|
|
1425
|
+
paused(): Promise<boolean>;
|
|
1426
|
+
/**
|
|
1427
|
+
* sellTax
|
|
1428
|
+
* view
|
|
1429
|
+
*/
|
|
1430
|
+
sellTax(): Promise<bigint>;
|
|
1431
|
+
/**
|
|
1432
|
+
* supportsInterface
|
|
1433
|
+
* view
|
|
1434
|
+
*/
|
|
1435
|
+
supportsInterface(interfaceId: `0x${string}`): Promise<boolean>;
|
|
1436
|
+
/**
|
|
1437
|
+
* swapThreshold
|
|
1438
|
+
* view
|
|
1439
|
+
*/
|
|
1440
|
+
swapThreshold(): Promise<bigint>;
|
|
1441
|
+
/**
|
|
1442
|
+
* symbol
|
|
1443
|
+
* view
|
|
1444
|
+
*/
|
|
1445
|
+
symbol(): Promise<string>;
|
|
1446
|
+
/**
|
|
1447
|
+
* taxDivisor
|
|
1448
|
+
* view
|
|
1449
|
+
*/
|
|
1450
|
+
taxDivisor(): Promise<bigint>;
|
|
1451
|
+
/**
|
|
1452
|
+
* taxLedger
|
|
1453
|
+
* view
|
|
1454
|
+
*/
|
|
1455
|
+
taxLedger(): Promise<`0x${string}`>;
|
|
1456
|
+
/**
|
|
1457
|
+
* totalSupply
|
|
1458
|
+
* view
|
|
1459
|
+
*/
|
|
1460
|
+
totalSupply(): Promise<bigint>;
|
|
1461
|
+
/**
|
|
1462
|
+
* treasuryManager
|
|
1463
|
+
* view
|
|
1464
|
+
*/
|
|
1465
|
+
treasuryManager(): Promise<`0x${string}`>;
|
|
1466
|
+
/**
|
|
1467
|
+
* approve
|
|
1468
|
+
* nonpayable
|
|
1469
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1470
|
+
*/
|
|
1471
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
1472
|
+
accessList?: import('viem').AccessList;
|
|
1473
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1474
|
+
chain?: import('viem').Chain | null;
|
|
1475
|
+
dataSuffix?: `0x${string}`;
|
|
1476
|
+
gas?: bigint;
|
|
1477
|
+
gasPrice?: bigint;
|
|
1478
|
+
maxFeePerGas?: bigint;
|
|
1479
|
+
maxPriorityFeePerGas?: bigint;
|
|
1480
|
+
nonce?: number;
|
|
1481
|
+
value?: bigint;
|
|
1482
|
+
}): Promise<`0x${string}`>;
|
|
1483
|
+
/**
|
|
1484
|
+
* batchMint
|
|
1485
|
+
* nonpayable
|
|
1486
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1487
|
+
*/
|
|
1488
|
+
batchMint(_receivers: `0x${string}`[], _amounts: bigint[], options?: {
|
|
1489
|
+
accessList?: import('viem').AccessList;
|
|
1490
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1491
|
+
chain?: import('viem').Chain | null;
|
|
1492
|
+
dataSuffix?: `0x${string}`;
|
|
1493
|
+
gas?: bigint;
|
|
1494
|
+
gasPrice?: bigint;
|
|
1495
|
+
maxFeePerGas?: bigint;
|
|
1496
|
+
maxPriorityFeePerGas?: bigint;
|
|
1497
|
+
nonce?: number;
|
|
1498
|
+
value?: bigint;
|
|
1499
|
+
}): Promise<`0x${string}`>;
|
|
1500
|
+
/**
|
|
1501
|
+
* batchTransfer
|
|
1502
|
+
* nonpayable
|
|
1503
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1504
|
+
*/
|
|
1505
|
+
batchTransfer(_receivers: `0x${string}`[], _amounts: bigint[], options?: {
|
|
1506
|
+
accessList?: import('viem').AccessList;
|
|
1507
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1508
|
+
chain?: import('viem').Chain | null;
|
|
1509
|
+
dataSuffix?: `0x${string}`;
|
|
1510
|
+
gas?: bigint;
|
|
1511
|
+
gasPrice?: bigint;
|
|
1512
|
+
maxFeePerGas?: bigint;
|
|
1513
|
+
maxPriorityFeePerGas?: bigint;
|
|
1514
|
+
nonce?: number;
|
|
1515
|
+
value?: bigint;
|
|
1516
|
+
}): Promise<`0x${string}`>;
|
|
1517
|
+
/**
|
|
1518
|
+
* batchUpdateBlocklist
|
|
1519
|
+
* nonpayable
|
|
1520
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1521
|
+
*/
|
|
1522
|
+
batchUpdateBlocklist(_accounts: `0x${string}`[], _isBlocklisted: boolean[], options?: {
|
|
1523
|
+
accessList?: import('viem').AccessList;
|
|
1524
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1525
|
+
chain?: import('viem').Chain | null;
|
|
1526
|
+
dataSuffix?: `0x${string}`;
|
|
1527
|
+
gas?: bigint;
|
|
1528
|
+
gasPrice?: bigint;
|
|
1529
|
+
maxFeePerGas?: bigint;
|
|
1530
|
+
maxPriorityFeePerGas?: bigint;
|
|
1531
|
+
nonce?: number;
|
|
1532
|
+
value?: bigint;
|
|
1533
|
+
}): Promise<`0x${string}`>;
|
|
1534
|
+
/**
|
|
1535
|
+
* confiscateTokens
|
|
1536
|
+
* nonpayable
|
|
1537
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1538
|
+
*/
|
|
1539
|
+
confiscateTokens(_user: `0x${string}`, options?: {
|
|
1540
|
+
accessList?: import('viem').AccessList;
|
|
1541
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1542
|
+
chain?: import('viem').Chain | null;
|
|
1543
|
+
dataSuffix?: `0x${string}`;
|
|
1544
|
+
gas?: bigint;
|
|
1545
|
+
gasPrice?: bigint;
|
|
1546
|
+
maxFeePerGas?: bigint;
|
|
1547
|
+
maxPriorityFeePerGas?: bigint;
|
|
1548
|
+
nonce?: number;
|
|
1549
|
+
value?: bigint;
|
|
1550
|
+
}): Promise<`0x${string}`>;
|
|
1551
|
+
/**
|
|
1552
|
+
* grantRole
|
|
1553
|
+
* nonpayable
|
|
1554
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1555
|
+
*/
|
|
1556
|
+
grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1557
|
+
accessList?: import('viem').AccessList;
|
|
1558
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1559
|
+
chain?: import('viem').Chain | null;
|
|
1560
|
+
dataSuffix?: `0x${string}`;
|
|
1561
|
+
gas?: bigint;
|
|
1562
|
+
gasPrice?: bigint;
|
|
1563
|
+
maxFeePerGas?: bigint;
|
|
1564
|
+
maxPriorityFeePerGas?: bigint;
|
|
1565
|
+
nonce?: number;
|
|
1566
|
+
value?: bigint;
|
|
1567
|
+
}): Promise<`0x${string}`>;
|
|
1568
|
+
/**
|
|
1569
|
+
* initialize
|
|
1570
|
+
* nonpayable
|
|
1571
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1572
|
+
*/
|
|
1573
|
+
initialize(_name: string, _symbol: string, _manager: `0x${string}`, _pauser: `0x${string}`, _upgrader: `0x${string}`, _taxLedger: `0x${string}`, _buyTax: bigint, _sellTax: bigint, _autoSwapEnabled: boolean, options?: {
|
|
1574
|
+
accessList?: import('viem').AccessList;
|
|
1575
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1576
|
+
chain?: import('viem').Chain | null;
|
|
1577
|
+
dataSuffix?: `0x${string}`;
|
|
1578
|
+
gas?: bigint;
|
|
1579
|
+
gasPrice?: bigint;
|
|
1580
|
+
maxFeePerGas?: bigint;
|
|
1581
|
+
maxPriorityFeePerGas?: bigint;
|
|
1582
|
+
nonce?: number;
|
|
1583
|
+
value?: bigint;
|
|
1584
|
+
}): Promise<`0x${string}`>;
|
|
1585
|
+
/**
|
|
1586
|
+
* mint
|
|
1587
|
+
* nonpayable
|
|
1588
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1589
|
+
*/
|
|
1590
|
+
mint(_receiver: `0x${string}`, _amount: bigint, options?: {
|
|
1591
|
+
accessList?: import('viem').AccessList;
|
|
1592
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1593
|
+
chain?: import('viem').Chain | null;
|
|
1594
|
+
dataSuffix?: `0x${string}`;
|
|
1595
|
+
gas?: bigint;
|
|
1596
|
+
gasPrice?: bigint;
|
|
1597
|
+
maxFeePerGas?: bigint;
|
|
1598
|
+
maxPriorityFeePerGas?: bigint;
|
|
1599
|
+
nonce?: number;
|
|
1600
|
+
value?: bigint;
|
|
1601
|
+
}): Promise<`0x${string}`>;
|
|
1602
|
+
/**
|
|
1603
|
+
* pause
|
|
1604
|
+
* nonpayable
|
|
1605
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1606
|
+
*/
|
|
1607
|
+
pause(options?: {
|
|
1608
|
+
accessList?: import('viem').AccessList;
|
|
1609
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1610
|
+
chain?: import('viem').Chain | null;
|
|
1611
|
+
dataSuffix?: `0x${string}`;
|
|
1612
|
+
gas?: bigint;
|
|
1613
|
+
gasPrice?: bigint;
|
|
1614
|
+
maxFeePerGas?: bigint;
|
|
1615
|
+
maxPriorityFeePerGas?: bigint;
|
|
1616
|
+
nonce?: number;
|
|
1617
|
+
value?: bigint;
|
|
1618
|
+
}): Promise<`0x${string}`>;
|
|
1619
|
+
/**
|
|
1620
|
+
* permit
|
|
1621
|
+
* nonpayable
|
|
1622
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1623
|
+
*/
|
|
1624
|
+
permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
1625
|
+
accessList?: import('viem').AccessList;
|
|
1626
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1627
|
+
chain?: import('viem').Chain | null;
|
|
1628
|
+
dataSuffix?: `0x${string}`;
|
|
1629
|
+
gas?: bigint;
|
|
1630
|
+
gasPrice?: bigint;
|
|
1631
|
+
maxFeePerGas?: bigint;
|
|
1632
|
+
maxPriorityFeePerGas?: bigint;
|
|
1633
|
+
nonce?: number;
|
|
1634
|
+
value?: bigint;
|
|
1635
|
+
}): Promise<`0x${string}`>;
|
|
1636
|
+
/**
|
|
1637
|
+
* renounceRole
|
|
1638
|
+
* nonpayable
|
|
1639
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1640
|
+
*/
|
|
1641
|
+
renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
|
|
1642
|
+
accessList?: import('viem').AccessList;
|
|
1643
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1644
|
+
chain?: import('viem').Chain | null;
|
|
1645
|
+
dataSuffix?: `0x${string}`;
|
|
1646
|
+
gas?: bigint;
|
|
1647
|
+
gasPrice?: bigint;
|
|
1648
|
+
maxFeePerGas?: bigint;
|
|
1649
|
+
maxPriorityFeePerGas?: bigint;
|
|
1650
|
+
nonce?: number;
|
|
1651
|
+
value?: bigint;
|
|
1652
|
+
}): Promise<`0x${string}`>;
|
|
1653
|
+
/**
|
|
1654
|
+
* rescueErc20TokenFromContract
|
|
1655
|
+
* nonpayable
|
|
1656
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1657
|
+
*/
|
|
1658
|
+
rescueErc20TokenFromContract(_receiver: `0x${string}`, _token: `0x${string}`, _amount: bigint, options?: {
|
|
1659
|
+
accessList?: import('viem').AccessList;
|
|
1660
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1661
|
+
chain?: import('viem').Chain | null;
|
|
1662
|
+
dataSuffix?: `0x${string}`;
|
|
1663
|
+
gas?: bigint;
|
|
1664
|
+
gasPrice?: bigint;
|
|
1665
|
+
maxFeePerGas?: bigint;
|
|
1666
|
+
maxPriorityFeePerGas?: bigint;
|
|
1667
|
+
nonce?: number;
|
|
1668
|
+
value?: bigint;
|
|
1669
|
+
}): Promise<`0x${string}`>;
|
|
1670
|
+
/**
|
|
1671
|
+
* rescueNativeTokenFromContract
|
|
1672
|
+
* nonpayable
|
|
1673
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1674
|
+
*/
|
|
1675
|
+
rescueNativeTokenFromContract(_receiver: `0x${string}`, _amount: bigint, options?: {
|
|
1676
|
+
accessList?: import('viem').AccessList;
|
|
1677
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1678
|
+
chain?: import('viem').Chain | null;
|
|
1679
|
+
dataSuffix?: `0x${string}`;
|
|
1680
|
+
gas?: bigint;
|
|
1681
|
+
gasPrice?: bigint;
|
|
1682
|
+
maxFeePerGas?: bigint;
|
|
1683
|
+
maxPriorityFeePerGas?: bigint;
|
|
1684
|
+
nonce?: number;
|
|
1685
|
+
value?: bigint;
|
|
1686
|
+
}): Promise<`0x${string}`>;
|
|
1687
|
+
/**
|
|
1688
|
+
* revokeRole
|
|
1689
|
+
* nonpayable
|
|
1690
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1691
|
+
*/
|
|
1692
|
+
revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1693
|
+
accessList?: import('viem').AccessList;
|
|
1694
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1695
|
+
chain?: import('viem').Chain | null;
|
|
1696
|
+
dataSuffix?: `0x${string}`;
|
|
1697
|
+
gas?: bigint;
|
|
1698
|
+
gasPrice?: bigint;
|
|
1699
|
+
maxFeePerGas?: bigint;
|
|
1700
|
+
maxPriorityFeePerGas?: bigint;
|
|
1701
|
+
nonce?: number;
|
|
1702
|
+
value?: bigint;
|
|
1703
|
+
}): Promise<`0x${string}`>;
|
|
1704
|
+
/**
|
|
1705
|
+
* setTreasuryManager
|
|
1706
|
+
* nonpayable
|
|
1707
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1708
|
+
*/
|
|
1709
|
+
setTreasuryManager(_treasuryManager: `0x${string}`, options?: {
|
|
1710
|
+
accessList?: import('viem').AccessList;
|
|
1711
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1712
|
+
chain?: import('viem').Chain | null;
|
|
1713
|
+
dataSuffix?: `0x${string}`;
|
|
1714
|
+
gas?: bigint;
|
|
1715
|
+
gasPrice?: bigint;
|
|
1716
|
+
maxFeePerGas?: bigint;
|
|
1717
|
+
maxPriorityFeePerGas?: bigint;
|
|
1718
|
+
nonce?: number;
|
|
1719
|
+
value?: bigint;
|
|
1720
|
+
}): Promise<`0x${string}`>;
|
|
1721
|
+
/**
|
|
1722
|
+
* setUniswapRouter
|
|
1723
|
+
* nonpayable
|
|
1724
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1725
|
+
*/
|
|
1726
|
+
setUniswapRouter(_router: `0x${string}`, options?: {
|
|
1727
|
+
accessList?: import('viem').AccessList;
|
|
1728
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1729
|
+
chain?: import('viem').Chain | null;
|
|
1730
|
+
dataSuffix?: `0x${string}`;
|
|
1731
|
+
gas?: bigint;
|
|
1732
|
+
gasPrice?: bigint;
|
|
1733
|
+
maxFeePerGas?: bigint;
|
|
1734
|
+
maxPriorityFeePerGas?: bigint;
|
|
1735
|
+
nonce?: number;
|
|
1736
|
+
value?: bigint;
|
|
1737
|
+
}): Promise<`0x${string}`>;
|
|
1738
|
+
/**
|
|
1739
|
+
* transfer
|
|
1740
|
+
* nonpayable
|
|
1741
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1742
|
+
*/
|
|
1743
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
1744
|
+
accessList?: import('viem').AccessList;
|
|
1745
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1746
|
+
chain?: import('viem').Chain | null;
|
|
1747
|
+
dataSuffix?: `0x${string}`;
|
|
1748
|
+
gas?: bigint;
|
|
1749
|
+
gasPrice?: bigint;
|
|
1750
|
+
maxFeePerGas?: bigint;
|
|
1751
|
+
maxPriorityFeePerGas?: bigint;
|
|
1752
|
+
nonce?: number;
|
|
1753
|
+
value?: bigint;
|
|
1754
|
+
}): Promise<`0x${string}`>;
|
|
1755
|
+
/**
|
|
1756
|
+
* transferFrom
|
|
1757
|
+
* nonpayable
|
|
1758
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1759
|
+
*/
|
|
1760
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
1761
|
+
accessList?: import('viem').AccessList;
|
|
1762
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1763
|
+
chain?: import('viem').Chain | null;
|
|
1764
|
+
dataSuffix?: `0x${string}`;
|
|
1765
|
+
gas?: bigint;
|
|
1766
|
+
gasPrice?: bigint;
|
|
1767
|
+
maxFeePerGas?: bigint;
|
|
1768
|
+
maxPriorityFeePerGas?: bigint;
|
|
1769
|
+
nonce?: number;
|
|
1770
|
+
value?: bigint;
|
|
1771
|
+
}): Promise<`0x${string}`>;
|
|
1772
|
+
/**
|
|
1773
|
+
* unpause
|
|
1774
|
+
* nonpayable
|
|
1775
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1776
|
+
*/
|
|
1777
|
+
unpause(options?: {
|
|
1778
|
+
accessList?: import('viem').AccessList;
|
|
1779
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1780
|
+
chain?: import('viem').Chain | null;
|
|
1781
|
+
dataSuffix?: `0x${string}`;
|
|
1782
|
+
gas?: bigint;
|
|
1783
|
+
gasPrice?: bigint;
|
|
1784
|
+
maxFeePerGas?: bigint;
|
|
1785
|
+
maxPriorityFeePerGas?: bigint;
|
|
1786
|
+
nonce?: number;
|
|
1787
|
+
value?: bigint;
|
|
1788
|
+
}): Promise<`0x${string}`>;
|
|
1789
|
+
/**
|
|
1790
|
+
* updateAutoSwapStatus
|
|
1791
|
+
* nonpayable
|
|
1792
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1793
|
+
*/
|
|
1794
|
+
updateAutoSwapStatus(_status: boolean, options?: {
|
|
1795
|
+
accessList?: import('viem').AccessList;
|
|
1796
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1797
|
+
chain?: import('viem').Chain | null;
|
|
1798
|
+
dataSuffix?: `0x${string}`;
|
|
1799
|
+
gas?: bigint;
|
|
1800
|
+
gasPrice?: bigint;
|
|
1801
|
+
maxFeePerGas?: bigint;
|
|
1802
|
+
maxPriorityFeePerGas?: bigint;
|
|
1803
|
+
nonce?: number;
|
|
1804
|
+
value?: bigint;
|
|
1805
|
+
}): Promise<`0x${string}`>;
|
|
1806
|
+
/**
|
|
1807
|
+
* updateBlocklist
|
|
1808
|
+
* nonpayable
|
|
1809
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1810
|
+
*/
|
|
1811
|
+
updateBlocklist(_account: `0x${string}`, _isBlocklisted: boolean, options?: {
|
|
1812
|
+
accessList?: import('viem').AccessList;
|
|
1813
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1814
|
+
chain?: import('viem').Chain | null;
|
|
1815
|
+
dataSuffix?: `0x${string}`;
|
|
1816
|
+
gas?: bigint;
|
|
1817
|
+
gasPrice?: bigint;
|
|
1818
|
+
maxFeePerGas?: bigint;
|
|
1819
|
+
maxPriorityFeePerGas?: bigint;
|
|
1820
|
+
nonce?: number;
|
|
1821
|
+
value?: bigint;
|
|
1822
|
+
}): Promise<`0x${string}`>;
|
|
1823
|
+
/**
|
|
1824
|
+
* updateBuyTax
|
|
1825
|
+
* nonpayable
|
|
1826
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1827
|
+
*/
|
|
1828
|
+
updateBuyTax(_value: bigint, options?: {
|
|
1829
|
+
accessList?: import('viem').AccessList;
|
|
1830
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1831
|
+
chain?: import('viem').Chain | null;
|
|
1832
|
+
dataSuffix?: `0x${string}`;
|
|
1833
|
+
gas?: bigint;
|
|
1834
|
+
gasPrice?: bigint;
|
|
1835
|
+
maxFeePerGas?: bigint;
|
|
1836
|
+
maxPriorityFeePerGas?: bigint;
|
|
1837
|
+
nonce?: number;
|
|
1838
|
+
value?: bigint;
|
|
1839
|
+
}): Promise<`0x${string}`>;
|
|
1840
|
+
/**
|
|
1841
|
+
* updateSellTax
|
|
1842
|
+
* nonpayable
|
|
1843
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1844
|
+
*/
|
|
1845
|
+
updateSellTax(_value: bigint, options?: {
|
|
1846
|
+
accessList?: import('viem').AccessList;
|
|
1847
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1848
|
+
chain?: import('viem').Chain | null;
|
|
1849
|
+
dataSuffix?: `0x${string}`;
|
|
1850
|
+
gas?: bigint;
|
|
1851
|
+
gasPrice?: bigint;
|
|
1852
|
+
maxFeePerGas?: bigint;
|
|
1853
|
+
maxPriorityFeePerGas?: bigint;
|
|
1854
|
+
nonce?: number;
|
|
1855
|
+
value?: bigint;
|
|
1856
|
+
}): Promise<`0x${string}`>;
|
|
1857
|
+
/**
|
|
1858
|
+
* updateSwapThreshold
|
|
1859
|
+
* nonpayable
|
|
1860
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1861
|
+
*/
|
|
1862
|
+
updateSwapThreshold(_threshold: bigint, options?: {
|
|
1863
|
+
accessList?: import('viem').AccessList;
|
|
1864
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1865
|
+
chain?: import('viem').Chain | null;
|
|
1866
|
+
dataSuffix?: `0x${string}`;
|
|
1867
|
+
gas?: bigint;
|
|
1868
|
+
gasPrice?: bigint;
|
|
1869
|
+
maxFeePerGas?: bigint;
|
|
1870
|
+
maxPriorityFeePerGas?: bigint;
|
|
1871
|
+
nonce?: number;
|
|
1872
|
+
value?: bigint;
|
|
1873
|
+
}): Promise<`0x${string}`>;
|
|
1874
|
+
/**
|
|
1875
|
+
* updateTaxLedger
|
|
1876
|
+
* nonpayable
|
|
1877
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1878
|
+
*/
|
|
1879
|
+
updateTaxLedger(_ledger: `0x${string}`, options?: {
|
|
1880
|
+
accessList?: import('viem').AccessList;
|
|
1881
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1882
|
+
chain?: import('viem').Chain | null;
|
|
1883
|
+
dataSuffix?: `0x${string}`;
|
|
1884
|
+
gas?: bigint;
|
|
1885
|
+
gasPrice?: bigint;
|
|
1886
|
+
maxFeePerGas?: bigint;
|
|
1887
|
+
maxPriorityFeePerGas?: bigint;
|
|
1888
|
+
nonce?: number;
|
|
1889
|
+
value?: bigint;
|
|
1890
|
+
}): Promise<`0x${string}`>;
|
|
1891
|
+
/**
|
|
1892
|
+
* updateWhitelist
|
|
1893
|
+
* nonpayable
|
|
1894
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1895
|
+
*/
|
|
1896
|
+
updateWhitelist(_account: `0x${string}`, _status: boolean, options?: {
|
|
1897
|
+
accessList?: import('viem').AccessList;
|
|
1898
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1899
|
+
chain?: import('viem').Chain | null;
|
|
1900
|
+
dataSuffix?: `0x${string}`;
|
|
1901
|
+
gas?: bigint;
|
|
1902
|
+
gasPrice?: bigint;
|
|
1903
|
+
maxFeePerGas?: bigint;
|
|
1904
|
+
maxPriorityFeePerGas?: bigint;
|
|
1905
|
+
nonce?: number;
|
|
1906
|
+
value?: bigint;
|
|
1907
|
+
}): Promise<`0x${string}`>;
|
|
1908
|
+
/**
|
|
1909
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
1910
|
+
*
|
|
1911
|
+
* @example
|
|
1912
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
1913
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
1914
|
+
* console.log('Would succeed:', result.result);
|
|
1915
|
+
*/
|
|
1916
|
+
get simulate(): {
|
|
1917
|
+
/**
|
|
1918
|
+
* Simulate approve
|
|
1919
|
+
* Returns gas estimate and result without sending transaction
|
|
1920
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1921
|
+
*/
|
|
1922
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
1923
|
+
accessList?: import("viem").AccessList;
|
|
1924
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1925
|
+
chain?: import("viem").Chain | null;
|
|
1926
|
+
dataSuffix?: `0x${string}`;
|
|
1927
|
+
gas?: bigint;
|
|
1928
|
+
gasPrice?: bigint;
|
|
1929
|
+
maxFeePerGas?: bigint;
|
|
1930
|
+
maxPriorityFeePerGas?: bigint;
|
|
1931
|
+
nonce?: number;
|
|
1932
|
+
value?: bigint;
|
|
1933
|
+
}): Promise<boolean>;
|
|
1934
|
+
/**
|
|
1935
|
+
* Simulate batchMint
|
|
1936
|
+
* Returns gas estimate and result without sending transaction
|
|
1937
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1938
|
+
*/
|
|
1939
|
+
batchMint(_receivers: `0x${string}`[], _amounts: bigint[], options?: {
|
|
1940
|
+
accessList?: import("viem").AccessList;
|
|
1941
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1942
|
+
chain?: import("viem").Chain | null;
|
|
1943
|
+
dataSuffix?: `0x${string}`;
|
|
1944
|
+
gas?: bigint;
|
|
1945
|
+
gasPrice?: bigint;
|
|
1946
|
+
maxFeePerGas?: bigint;
|
|
1947
|
+
maxPriorityFeePerGas?: bigint;
|
|
1948
|
+
nonce?: number;
|
|
1949
|
+
value?: bigint;
|
|
1950
|
+
}): Promise<void>;
|
|
1951
|
+
/**
|
|
1952
|
+
* Simulate batchTransfer
|
|
1953
|
+
* Returns gas estimate and result without sending transaction
|
|
1954
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1955
|
+
*/
|
|
1956
|
+
batchTransfer(_receivers: `0x${string}`[], _amounts: bigint[], options?: {
|
|
1957
|
+
accessList?: import("viem").AccessList;
|
|
1958
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1959
|
+
chain?: import("viem").Chain | null;
|
|
1960
|
+
dataSuffix?: `0x${string}`;
|
|
1961
|
+
gas?: bigint;
|
|
1962
|
+
gasPrice?: bigint;
|
|
1963
|
+
maxFeePerGas?: bigint;
|
|
1964
|
+
maxPriorityFeePerGas?: bigint;
|
|
1965
|
+
nonce?: number;
|
|
1966
|
+
value?: bigint;
|
|
1967
|
+
}): Promise<void>;
|
|
1968
|
+
/**
|
|
1969
|
+
* Simulate batchUpdateBlocklist
|
|
1970
|
+
* Returns gas estimate and result without sending transaction
|
|
1971
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1972
|
+
*/
|
|
1973
|
+
batchUpdateBlocklist(_accounts: `0x${string}`[], _isBlocklisted: boolean[], options?: {
|
|
1974
|
+
accessList?: import("viem").AccessList;
|
|
1975
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1976
|
+
chain?: import("viem").Chain | null;
|
|
1977
|
+
dataSuffix?: `0x${string}`;
|
|
1978
|
+
gas?: bigint;
|
|
1979
|
+
gasPrice?: bigint;
|
|
1980
|
+
maxFeePerGas?: bigint;
|
|
1981
|
+
maxPriorityFeePerGas?: bigint;
|
|
1982
|
+
nonce?: number;
|
|
1983
|
+
value?: bigint;
|
|
1984
|
+
}): Promise<void>;
|
|
1985
|
+
/**
|
|
1986
|
+
* Simulate confiscateTokens
|
|
1987
|
+
* Returns gas estimate and result without sending transaction
|
|
1988
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1989
|
+
*/
|
|
1990
|
+
confiscateTokens(_user: `0x${string}`, options?: {
|
|
1991
|
+
accessList?: import("viem").AccessList;
|
|
1992
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1993
|
+
chain?: import("viem").Chain | null;
|
|
1994
|
+
dataSuffix?: `0x${string}`;
|
|
1995
|
+
gas?: bigint;
|
|
1996
|
+
gasPrice?: bigint;
|
|
1997
|
+
maxFeePerGas?: bigint;
|
|
1998
|
+
maxPriorityFeePerGas?: bigint;
|
|
1999
|
+
nonce?: number;
|
|
2000
|
+
value?: bigint;
|
|
2001
|
+
}): Promise<void>;
|
|
2002
|
+
/**
|
|
2003
|
+
* Simulate grantRole
|
|
2004
|
+
* Returns gas estimate and result without sending transaction
|
|
2005
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2006
|
+
*/
|
|
2007
|
+
grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
2008
|
+
accessList?: import("viem").AccessList;
|
|
2009
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2010
|
+
chain?: import("viem").Chain | null;
|
|
2011
|
+
dataSuffix?: `0x${string}`;
|
|
2012
|
+
gas?: bigint;
|
|
2013
|
+
gasPrice?: bigint;
|
|
2014
|
+
maxFeePerGas?: bigint;
|
|
2015
|
+
maxPriorityFeePerGas?: bigint;
|
|
2016
|
+
nonce?: number;
|
|
2017
|
+
value?: bigint;
|
|
2018
|
+
}): Promise<void>;
|
|
2019
|
+
/**
|
|
2020
|
+
* Simulate initialize
|
|
2021
|
+
* Returns gas estimate and result without sending transaction
|
|
2022
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2023
|
+
*/
|
|
2024
|
+
initialize(_name: string, _symbol: string, _manager: `0x${string}`, _pauser: `0x${string}`, _upgrader: `0x${string}`, _taxLedger: `0x${string}`, _buyTax: bigint, _sellTax: bigint, _autoSwapEnabled: boolean, options?: {
|
|
2025
|
+
accessList?: import("viem").AccessList;
|
|
2026
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2027
|
+
chain?: import("viem").Chain | null;
|
|
2028
|
+
dataSuffix?: `0x${string}`;
|
|
2029
|
+
gas?: bigint;
|
|
2030
|
+
gasPrice?: bigint;
|
|
2031
|
+
maxFeePerGas?: bigint;
|
|
2032
|
+
maxPriorityFeePerGas?: bigint;
|
|
2033
|
+
nonce?: number;
|
|
2034
|
+
value?: bigint;
|
|
2035
|
+
}): Promise<void>;
|
|
2036
|
+
/**
|
|
2037
|
+
* Simulate mint
|
|
2038
|
+
* Returns gas estimate and result without sending transaction
|
|
2039
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2040
|
+
*/
|
|
2041
|
+
mint(_receiver: `0x${string}`, _amount: bigint, options?: {
|
|
2042
|
+
accessList?: import("viem").AccessList;
|
|
2043
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2044
|
+
chain?: import("viem").Chain | null;
|
|
2045
|
+
dataSuffix?: `0x${string}`;
|
|
2046
|
+
gas?: bigint;
|
|
2047
|
+
gasPrice?: bigint;
|
|
2048
|
+
maxFeePerGas?: bigint;
|
|
2049
|
+
maxPriorityFeePerGas?: bigint;
|
|
2050
|
+
nonce?: number;
|
|
2051
|
+
value?: bigint;
|
|
2052
|
+
}): Promise<void>;
|
|
2053
|
+
/**
|
|
2054
|
+
* Simulate pause
|
|
2055
|
+
* Returns gas estimate and result without sending transaction
|
|
2056
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2057
|
+
*/
|
|
2058
|
+
pause(options?: {
|
|
2059
|
+
accessList?: import("viem").AccessList;
|
|
2060
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2061
|
+
chain?: import("viem").Chain | null;
|
|
2062
|
+
dataSuffix?: `0x${string}`;
|
|
2063
|
+
gas?: bigint;
|
|
2064
|
+
gasPrice?: bigint;
|
|
2065
|
+
maxFeePerGas?: bigint;
|
|
2066
|
+
maxPriorityFeePerGas?: bigint;
|
|
2067
|
+
nonce?: number;
|
|
2068
|
+
value?: bigint;
|
|
2069
|
+
}): Promise<void>;
|
|
2070
|
+
/**
|
|
2071
|
+
* Simulate permit
|
|
2072
|
+
* Returns gas estimate and result without sending transaction
|
|
2073
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2074
|
+
*/
|
|
2075
|
+
permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
2076
|
+
accessList?: import("viem").AccessList;
|
|
2077
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2078
|
+
chain?: import("viem").Chain | null;
|
|
2079
|
+
dataSuffix?: `0x${string}`;
|
|
2080
|
+
gas?: bigint;
|
|
2081
|
+
gasPrice?: bigint;
|
|
2082
|
+
maxFeePerGas?: bigint;
|
|
2083
|
+
maxPriorityFeePerGas?: bigint;
|
|
2084
|
+
nonce?: number;
|
|
2085
|
+
value?: bigint;
|
|
2086
|
+
}): Promise<void>;
|
|
2087
|
+
/**
|
|
2088
|
+
* Simulate renounceRole
|
|
2089
|
+
* Returns gas estimate and result without sending transaction
|
|
2090
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2091
|
+
*/
|
|
2092
|
+
renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
|
|
2093
|
+
accessList?: import("viem").AccessList;
|
|
2094
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2095
|
+
chain?: import("viem").Chain | null;
|
|
2096
|
+
dataSuffix?: `0x${string}`;
|
|
2097
|
+
gas?: bigint;
|
|
2098
|
+
gasPrice?: bigint;
|
|
2099
|
+
maxFeePerGas?: bigint;
|
|
2100
|
+
maxPriorityFeePerGas?: bigint;
|
|
2101
|
+
nonce?: number;
|
|
2102
|
+
value?: bigint;
|
|
2103
|
+
}): Promise<void>;
|
|
2104
|
+
/**
|
|
2105
|
+
* Simulate rescueErc20TokenFromContract
|
|
2106
|
+
* Returns gas estimate and result without sending transaction
|
|
2107
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2108
|
+
*/
|
|
2109
|
+
rescueErc20TokenFromContract(_receiver: `0x${string}`, _token: `0x${string}`, _amount: bigint, options?: {
|
|
2110
|
+
accessList?: import("viem").AccessList;
|
|
2111
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2112
|
+
chain?: import("viem").Chain | null;
|
|
2113
|
+
dataSuffix?: `0x${string}`;
|
|
2114
|
+
gas?: bigint;
|
|
2115
|
+
gasPrice?: bigint;
|
|
2116
|
+
maxFeePerGas?: bigint;
|
|
2117
|
+
maxPriorityFeePerGas?: bigint;
|
|
2118
|
+
nonce?: number;
|
|
2119
|
+
value?: bigint;
|
|
2120
|
+
}): Promise<void>;
|
|
2121
|
+
/**
|
|
2122
|
+
* Simulate rescueNativeTokenFromContract
|
|
2123
|
+
* Returns gas estimate and result without sending transaction
|
|
2124
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2125
|
+
*/
|
|
2126
|
+
rescueNativeTokenFromContract(_receiver: `0x${string}`, _amount: bigint, options?: {
|
|
2127
|
+
accessList?: import("viem").AccessList;
|
|
2128
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2129
|
+
chain?: import("viem").Chain | null;
|
|
2130
|
+
dataSuffix?: `0x${string}`;
|
|
2131
|
+
gas?: bigint;
|
|
2132
|
+
gasPrice?: bigint;
|
|
2133
|
+
maxFeePerGas?: bigint;
|
|
2134
|
+
maxPriorityFeePerGas?: bigint;
|
|
2135
|
+
nonce?: number;
|
|
2136
|
+
value?: bigint;
|
|
2137
|
+
}): Promise<void>;
|
|
2138
|
+
/**
|
|
2139
|
+
* Simulate revokeRole
|
|
2140
|
+
* Returns gas estimate and result without sending transaction
|
|
2141
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2142
|
+
*/
|
|
2143
|
+
revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
2144
|
+
accessList?: import("viem").AccessList;
|
|
2145
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2146
|
+
chain?: import("viem").Chain | null;
|
|
2147
|
+
dataSuffix?: `0x${string}`;
|
|
2148
|
+
gas?: bigint;
|
|
2149
|
+
gasPrice?: bigint;
|
|
2150
|
+
maxFeePerGas?: bigint;
|
|
2151
|
+
maxPriorityFeePerGas?: bigint;
|
|
2152
|
+
nonce?: number;
|
|
2153
|
+
value?: bigint;
|
|
2154
|
+
}): Promise<void>;
|
|
2155
|
+
/**
|
|
2156
|
+
* Simulate setTreasuryManager
|
|
2157
|
+
* Returns gas estimate and result without sending transaction
|
|
2158
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2159
|
+
*/
|
|
2160
|
+
setTreasuryManager(_treasuryManager: `0x${string}`, options?: {
|
|
2161
|
+
accessList?: import("viem").AccessList;
|
|
2162
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2163
|
+
chain?: import("viem").Chain | null;
|
|
2164
|
+
dataSuffix?: `0x${string}`;
|
|
2165
|
+
gas?: bigint;
|
|
2166
|
+
gasPrice?: bigint;
|
|
2167
|
+
maxFeePerGas?: bigint;
|
|
2168
|
+
maxPriorityFeePerGas?: bigint;
|
|
2169
|
+
nonce?: number;
|
|
2170
|
+
value?: bigint;
|
|
2171
|
+
}): Promise<void>;
|
|
2172
|
+
/**
|
|
2173
|
+
* Simulate setUniswapRouter
|
|
2174
|
+
* Returns gas estimate and result without sending transaction
|
|
2175
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2176
|
+
*/
|
|
2177
|
+
setUniswapRouter(_router: `0x${string}`, options?: {
|
|
2178
|
+
accessList?: import("viem").AccessList;
|
|
2179
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2180
|
+
chain?: import("viem").Chain | null;
|
|
2181
|
+
dataSuffix?: `0x${string}`;
|
|
2182
|
+
gas?: bigint;
|
|
2183
|
+
gasPrice?: bigint;
|
|
2184
|
+
maxFeePerGas?: bigint;
|
|
2185
|
+
maxPriorityFeePerGas?: bigint;
|
|
2186
|
+
nonce?: number;
|
|
2187
|
+
value?: bigint;
|
|
2188
|
+
}): Promise<void>;
|
|
2189
|
+
/**
|
|
2190
|
+
* Simulate transfer
|
|
2191
|
+
* Returns gas estimate and result without sending transaction
|
|
2192
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2193
|
+
*/
|
|
2194
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
2195
|
+
accessList?: import("viem").AccessList;
|
|
2196
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2197
|
+
chain?: import("viem").Chain | null;
|
|
2198
|
+
dataSuffix?: `0x${string}`;
|
|
2199
|
+
gas?: bigint;
|
|
2200
|
+
gasPrice?: bigint;
|
|
2201
|
+
maxFeePerGas?: bigint;
|
|
2202
|
+
maxPriorityFeePerGas?: bigint;
|
|
2203
|
+
nonce?: number;
|
|
2204
|
+
value?: bigint;
|
|
2205
|
+
}): Promise<boolean>;
|
|
2206
|
+
/**
|
|
2207
|
+
* Simulate transferFrom
|
|
2208
|
+
* Returns gas estimate and result without sending transaction
|
|
2209
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2210
|
+
*/
|
|
2211
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
2212
|
+
accessList?: import("viem").AccessList;
|
|
2213
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2214
|
+
chain?: import("viem").Chain | null;
|
|
2215
|
+
dataSuffix?: `0x${string}`;
|
|
2216
|
+
gas?: bigint;
|
|
2217
|
+
gasPrice?: bigint;
|
|
2218
|
+
maxFeePerGas?: bigint;
|
|
2219
|
+
maxPriorityFeePerGas?: bigint;
|
|
2220
|
+
nonce?: number;
|
|
2221
|
+
value?: bigint;
|
|
2222
|
+
}): Promise<boolean>;
|
|
2223
|
+
/**
|
|
2224
|
+
* Simulate unpause
|
|
2225
|
+
* Returns gas estimate and result without sending transaction
|
|
2226
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2227
|
+
*/
|
|
2228
|
+
unpause(options?: {
|
|
2229
|
+
accessList?: import("viem").AccessList;
|
|
2230
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2231
|
+
chain?: import("viem").Chain | null;
|
|
2232
|
+
dataSuffix?: `0x${string}`;
|
|
2233
|
+
gas?: bigint;
|
|
2234
|
+
gasPrice?: bigint;
|
|
2235
|
+
maxFeePerGas?: bigint;
|
|
2236
|
+
maxPriorityFeePerGas?: bigint;
|
|
2237
|
+
nonce?: number;
|
|
2238
|
+
value?: bigint;
|
|
2239
|
+
}): Promise<void>;
|
|
2240
|
+
/**
|
|
2241
|
+
* Simulate updateAutoSwapStatus
|
|
2242
|
+
* Returns gas estimate and result without sending transaction
|
|
2243
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2244
|
+
*/
|
|
2245
|
+
updateAutoSwapStatus(_status: boolean, options?: {
|
|
2246
|
+
accessList?: import("viem").AccessList;
|
|
2247
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2248
|
+
chain?: import("viem").Chain | null;
|
|
2249
|
+
dataSuffix?: `0x${string}`;
|
|
2250
|
+
gas?: bigint;
|
|
2251
|
+
gasPrice?: bigint;
|
|
2252
|
+
maxFeePerGas?: bigint;
|
|
2253
|
+
maxPriorityFeePerGas?: bigint;
|
|
2254
|
+
nonce?: number;
|
|
2255
|
+
value?: bigint;
|
|
2256
|
+
}): Promise<void>;
|
|
2257
|
+
/**
|
|
2258
|
+
* Simulate updateBlocklist
|
|
2259
|
+
* Returns gas estimate and result without sending transaction
|
|
2260
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2261
|
+
*/
|
|
2262
|
+
updateBlocklist(_account: `0x${string}`, _isBlocklisted: boolean, options?: {
|
|
2263
|
+
accessList?: import("viem").AccessList;
|
|
2264
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2265
|
+
chain?: import("viem").Chain | null;
|
|
2266
|
+
dataSuffix?: `0x${string}`;
|
|
2267
|
+
gas?: bigint;
|
|
2268
|
+
gasPrice?: bigint;
|
|
2269
|
+
maxFeePerGas?: bigint;
|
|
2270
|
+
maxPriorityFeePerGas?: bigint;
|
|
2271
|
+
nonce?: number;
|
|
2272
|
+
value?: bigint;
|
|
2273
|
+
}): Promise<void>;
|
|
2274
|
+
/**
|
|
2275
|
+
* Simulate updateBuyTax
|
|
2276
|
+
* Returns gas estimate and result without sending transaction
|
|
2277
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2278
|
+
*/
|
|
2279
|
+
updateBuyTax(_value: bigint, options?: {
|
|
2280
|
+
accessList?: import("viem").AccessList;
|
|
2281
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2282
|
+
chain?: import("viem").Chain | null;
|
|
2283
|
+
dataSuffix?: `0x${string}`;
|
|
2284
|
+
gas?: bigint;
|
|
2285
|
+
gasPrice?: bigint;
|
|
2286
|
+
maxFeePerGas?: bigint;
|
|
2287
|
+
maxPriorityFeePerGas?: bigint;
|
|
2288
|
+
nonce?: number;
|
|
2289
|
+
value?: bigint;
|
|
2290
|
+
}): Promise<void>;
|
|
2291
|
+
/**
|
|
2292
|
+
* Simulate updateSellTax
|
|
2293
|
+
* Returns gas estimate and result without sending transaction
|
|
2294
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2295
|
+
*/
|
|
2296
|
+
updateSellTax(_value: bigint, options?: {
|
|
2297
|
+
accessList?: import("viem").AccessList;
|
|
2298
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2299
|
+
chain?: import("viem").Chain | null;
|
|
2300
|
+
dataSuffix?: `0x${string}`;
|
|
2301
|
+
gas?: bigint;
|
|
2302
|
+
gasPrice?: bigint;
|
|
2303
|
+
maxFeePerGas?: bigint;
|
|
2304
|
+
maxPriorityFeePerGas?: bigint;
|
|
2305
|
+
nonce?: number;
|
|
2306
|
+
value?: bigint;
|
|
2307
|
+
}): Promise<void>;
|
|
2308
|
+
/**
|
|
2309
|
+
* Simulate updateSwapThreshold
|
|
2310
|
+
* Returns gas estimate and result without sending transaction
|
|
2311
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2312
|
+
*/
|
|
2313
|
+
updateSwapThreshold(_threshold: bigint, options?: {
|
|
2314
|
+
accessList?: import("viem").AccessList;
|
|
2315
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2316
|
+
chain?: import("viem").Chain | null;
|
|
2317
|
+
dataSuffix?: `0x${string}`;
|
|
2318
|
+
gas?: bigint;
|
|
2319
|
+
gasPrice?: bigint;
|
|
2320
|
+
maxFeePerGas?: bigint;
|
|
2321
|
+
maxPriorityFeePerGas?: bigint;
|
|
2322
|
+
nonce?: number;
|
|
2323
|
+
value?: bigint;
|
|
2324
|
+
}): Promise<void>;
|
|
2325
|
+
/**
|
|
2326
|
+
* Simulate updateTaxLedger
|
|
2327
|
+
* Returns gas estimate and result without sending transaction
|
|
2328
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2329
|
+
*/
|
|
2330
|
+
updateTaxLedger(_ledger: `0x${string}`, options?: {
|
|
2331
|
+
accessList?: import("viem").AccessList;
|
|
2332
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2333
|
+
chain?: import("viem").Chain | null;
|
|
2334
|
+
dataSuffix?: `0x${string}`;
|
|
2335
|
+
gas?: bigint;
|
|
2336
|
+
gasPrice?: bigint;
|
|
2337
|
+
maxFeePerGas?: bigint;
|
|
2338
|
+
maxPriorityFeePerGas?: bigint;
|
|
2339
|
+
nonce?: number;
|
|
2340
|
+
value?: bigint;
|
|
2341
|
+
}): Promise<void>;
|
|
2342
|
+
/**
|
|
2343
|
+
* Simulate updateWhitelist
|
|
2344
|
+
* Returns gas estimate and result without sending transaction
|
|
2345
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2346
|
+
*/
|
|
2347
|
+
updateWhitelist(_account: `0x${string}`, _status: boolean, options?: {
|
|
2348
|
+
accessList?: import("viem").AccessList;
|
|
2349
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2350
|
+
chain?: import("viem").Chain | null;
|
|
2351
|
+
dataSuffix?: `0x${string}`;
|
|
2352
|
+
gas?: bigint;
|
|
2353
|
+
gasPrice?: bigint;
|
|
2354
|
+
maxFeePerGas?: bigint;
|
|
2355
|
+
maxPriorityFeePerGas?: bigint;
|
|
2356
|
+
nonce?: number;
|
|
2357
|
+
value?: bigint;
|
|
2358
|
+
}): Promise<void>;
|
|
2359
|
+
};
|
|
2360
|
+
/**
|
|
2361
|
+
* Watch contract events
|
|
2362
|
+
*
|
|
2363
|
+
* @example
|
|
2364
|
+
* // Watch all Transfer events
|
|
2365
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
2366
|
+
* console.log('Transfer:', event);
|
|
2367
|
+
* });
|
|
2368
|
+
*
|
|
2369
|
+
* // Stop watching
|
|
2370
|
+
* unwatch();
|
|
2371
|
+
*/
|
|
2372
|
+
get watch(): {
|
|
2373
|
+
/**
|
|
2374
|
+
* Watch Approval events
|
|
2375
|
+
* @param callback Function to call when event is emitted
|
|
2376
|
+
* @param filter Optional filter for indexed parameters
|
|
2377
|
+
* @returns Unwatch function to stop listening
|
|
2378
|
+
*/
|
|
2379
|
+
Approval: (callback: (event: {
|
|
2380
|
+
owner: `0x${string}`;
|
|
2381
|
+
spender: `0x${string}`;
|
|
2382
|
+
value: bigint;
|
|
2383
|
+
}) => void, filter?: {
|
|
2384
|
+
owner: `0x${string}`;
|
|
2385
|
+
spender: `0x${string}`;
|
|
2386
|
+
}) => () => void;
|
|
2387
|
+
/**
|
|
2388
|
+
* Watch BatchBlocklistUpdated events
|
|
2389
|
+
* @param callback Function to call when event is emitted
|
|
2390
|
+
* @param filter Optional filter for indexed parameters
|
|
2391
|
+
* @returns Unwatch function to stop listening
|
|
2392
|
+
*/
|
|
2393
|
+
BatchBlocklistUpdated: (callback: (event: {
|
|
2394
|
+
_accounts: `0x${string}`[];
|
|
2395
|
+
_isBlocklisted: boolean[];
|
|
2396
|
+
}) => void) => () => void;
|
|
2397
|
+
/**
|
|
2398
|
+
* Watch BlocklistUpdated events
|
|
2399
|
+
* @param callback Function to call when event is emitted
|
|
2400
|
+
* @param filter Optional filter for indexed parameters
|
|
2401
|
+
* @returns Unwatch function to stop listening
|
|
2402
|
+
*/
|
|
2403
|
+
BlocklistUpdated: (callback: (event: {
|
|
2404
|
+
_account: `0x${string}`;
|
|
2405
|
+
_isBlocklisted: boolean;
|
|
2406
|
+
}) => void, filter?: {
|
|
2407
|
+
_account: `0x${string}`;
|
|
2408
|
+
}) => () => void;
|
|
2409
|
+
/**
|
|
2410
|
+
* Watch BuyTaxUpdated events
|
|
2411
|
+
* @param callback Function to call when event is emitted
|
|
2412
|
+
* @param filter Optional filter for indexed parameters
|
|
2413
|
+
* @returns Unwatch function to stop listening
|
|
2414
|
+
*/
|
|
2415
|
+
BuyTaxUpdated: (callback: (event: {
|
|
2416
|
+
_value: bigint;
|
|
2417
|
+
}) => void) => () => void;
|
|
2418
|
+
/**
|
|
2419
|
+
* Watch EIP712DomainChanged events
|
|
2420
|
+
* @param callback Function to call when event is emitted
|
|
2421
|
+
* @param filter Optional filter for indexed parameters
|
|
2422
|
+
* @returns Unwatch function to stop listening
|
|
2423
|
+
*/
|
|
2424
|
+
EIP712DomainChanged: (callback: (event: {}) => void) => () => void;
|
|
2425
|
+
/**
|
|
2426
|
+
* Watch Initialized events
|
|
2427
|
+
* @param callback Function to call when event is emitted
|
|
2428
|
+
* @param filter Optional filter for indexed parameters
|
|
2429
|
+
* @returns Unwatch function to stop listening
|
|
2430
|
+
*/
|
|
2431
|
+
Initialized: (callback: (event: {
|
|
2432
|
+
version: bigint;
|
|
2433
|
+
}) => void) => () => void;
|
|
2434
|
+
/**
|
|
2435
|
+
* Watch Minted events
|
|
2436
|
+
* @param callback Function to call when event is emitted
|
|
2437
|
+
* @param filter Optional filter for indexed parameters
|
|
2438
|
+
* @returns Unwatch function to stop listening
|
|
2439
|
+
*/
|
|
2440
|
+
Minted: (callback: (event: {
|
|
2441
|
+
_receiver: `0x${string}`;
|
|
2442
|
+
_amount: bigint;
|
|
2443
|
+
}) => void, filter?: {
|
|
2444
|
+
_receiver: `0x${string}`;
|
|
2445
|
+
}) => () => void;
|
|
2446
|
+
/**
|
|
2447
|
+
* Watch Paused events
|
|
2448
|
+
* @param callback Function to call when event is emitted
|
|
2449
|
+
* @param filter Optional filter for indexed parameters
|
|
2450
|
+
* @returns Unwatch function to stop listening
|
|
2451
|
+
*/
|
|
2452
|
+
Paused: (callback: (event: {
|
|
2453
|
+
account: `0x${string}`;
|
|
2454
|
+
}) => void) => () => void;
|
|
2455
|
+
/**
|
|
2456
|
+
* Watch RescuedAllTokens events
|
|
2457
|
+
* @param callback Function to call when event is emitted
|
|
2458
|
+
* @param filter Optional filter for indexed parameters
|
|
2459
|
+
* @returns Unwatch function to stop listening
|
|
2460
|
+
*/
|
|
2461
|
+
RescuedAllTokens: (callback: (event: {
|
|
2462
|
+
_account: `0x${string}`;
|
|
2463
|
+
_amount: bigint;
|
|
2464
|
+
}) => void, filter?: {
|
|
2465
|
+
_account: `0x${string}`;
|
|
2466
|
+
}) => () => void;
|
|
2467
|
+
/**
|
|
2468
|
+
* Watch RoleAdminChanged events
|
|
2469
|
+
* @param callback Function to call when event is emitted
|
|
2470
|
+
* @param filter Optional filter for indexed parameters
|
|
2471
|
+
* @returns Unwatch function to stop listening
|
|
2472
|
+
*/
|
|
2473
|
+
RoleAdminChanged: (callback: (event: {
|
|
2474
|
+
role: `0x${string}`;
|
|
2475
|
+
previousAdminRole: `0x${string}`;
|
|
2476
|
+
newAdminRole: `0x${string}`;
|
|
2477
|
+
}) => void, filter?: {
|
|
2478
|
+
role: `0x${string}`;
|
|
2479
|
+
previousAdminRole: `0x${string}`;
|
|
2480
|
+
newAdminRole: `0x${string}`;
|
|
2481
|
+
}) => () => void;
|
|
2482
|
+
/**
|
|
2483
|
+
* Watch RoleGranted events
|
|
2484
|
+
* @param callback Function to call when event is emitted
|
|
2485
|
+
* @param filter Optional filter for indexed parameters
|
|
2486
|
+
* @returns Unwatch function to stop listening
|
|
2487
|
+
*/
|
|
2488
|
+
RoleGranted: (callback: (event: {
|
|
2489
|
+
role: `0x${string}`;
|
|
2490
|
+
account: `0x${string}`;
|
|
2491
|
+
sender: `0x${string}`;
|
|
2492
|
+
}) => void, filter?: {
|
|
2493
|
+
role: `0x${string}`;
|
|
2494
|
+
account: `0x${string}`;
|
|
2495
|
+
sender: `0x${string}`;
|
|
2496
|
+
}) => () => void;
|
|
2497
|
+
/**
|
|
2498
|
+
* Watch RoleRevoked events
|
|
2499
|
+
* @param callback Function to call when event is emitted
|
|
2500
|
+
* @param filter Optional filter for indexed parameters
|
|
2501
|
+
* @returns Unwatch function to stop listening
|
|
2502
|
+
*/
|
|
2503
|
+
RoleRevoked: (callback: (event: {
|
|
2504
|
+
role: `0x${string}`;
|
|
2505
|
+
account: `0x${string}`;
|
|
2506
|
+
sender: `0x${string}`;
|
|
2507
|
+
}) => void, filter?: {
|
|
2508
|
+
role: `0x${string}`;
|
|
2509
|
+
account: `0x${string}`;
|
|
2510
|
+
sender: `0x${string}`;
|
|
2511
|
+
}) => () => void;
|
|
2512
|
+
/**
|
|
2513
|
+
* Watch SellTaxUpdated events
|
|
2514
|
+
* @param callback Function to call when event is emitted
|
|
2515
|
+
* @param filter Optional filter for indexed parameters
|
|
2516
|
+
* @returns Unwatch function to stop listening
|
|
2517
|
+
*/
|
|
2518
|
+
SellTaxUpdated: (callback: (event: {
|
|
2519
|
+
_value: bigint;
|
|
2520
|
+
}) => void) => () => void;
|
|
2521
|
+
/**
|
|
2522
|
+
* Watch SwapThresholdUpdated events
|
|
2523
|
+
* @param callback Function to call when event is emitted
|
|
2524
|
+
* @param filter Optional filter for indexed parameters
|
|
2525
|
+
* @returns Unwatch function to stop listening
|
|
2526
|
+
*/
|
|
2527
|
+
SwapThresholdUpdated: (callback: (event: {
|
|
2528
|
+
_threshold: bigint;
|
|
2529
|
+
}) => void) => () => void;
|
|
2530
|
+
/**
|
|
2531
|
+
* Watch TokensConfiscated events
|
|
2532
|
+
* @param callback Function to call when event is emitted
|
|
2533
|
+
* @param filter Optional filter for indexed parameters
|
|
2534
|
+
* @returns Unwatch function to stop listening
|
|
2535
|
+
*/
|
|
2536
|
+
TokensConfiscated: (callback: (event: {
|
|
2537
|
+
_from: `0x${string}`;
|
|
2538
|
+
_to: `0x${string}`;
|
|
2539
|
+
_amount: bigint;
|
|
2540
|
+
}) => void, filter?: {
|
|
2541
|
+
_from: `0x${string}`;
|
|
2542
|
+
}) => () => void;
|
|
2543
|
+
/**
|
|
2544
|
+
* Watch Transfer events
|
|
2545
|
+
* @param callback Function to call when event is emitted
|
|
2546
|
+
* @param filter Optional filter for indexed parameters
|
|
2547
|
+
* @returns Unwatch function to stop listening
|
|
2548
|
+
*/
|
|
2549
|
+
Transfer: (callback: (event: {
|
|
2550
|
+
from: `0x${string}`;
|
|
2551
|
+
to: `0x${string}`;
|
|
2552
|
+
value: bigint;
|
|
2553
|
+
}) => void, filter?: {
|
|
2554
|
+
from: `0x${string}`;
|
|
2555
|
+
to: `0x${string}`;
|
|
2556
|
+
}) => () => void;
|
|
2557
|
+
/**
|
|
2558
|
+
* Watch TreasuryManagerUpdated events
|
|
2559
|
+
* @param callback Function to call when event is emitted
|
|
2560
|
+
* @param filter Optional filter for indexed parameters
|
|
2561
|
+
* @returns Unwatch function to stop listening
|
|
2562
|
+
*/
|
|
2563
|
+
TreasuryManagerUpdated: (callback: (event: {
|
|
2564
|
+
_treasury: `0x${string}`;
|
|
2565
|
+
}) => void) => () => void;
|
|
2566
|
+
/**
|
|
2567
|
+
* Watch UniSwapRouterUpdated events
|
|
2568
|
+
* @param callback Function to call when event is emitted
|
|
2569
|
+
* @param filter Optional filter for indexed parameters
|
|
2570
|
+
* @returns Unwatch function to stop listening
|
|
2571
|
+
*/
|
|
2572
|
+
UniSwapRouterUpdated: (callback: (event: {
|
|
2573
|
+
_router: `0x${string}`;
|
|
2574
|
+
}) => void) => () => void;
|
|
2575
|
+
/**
|
|
2576
|
+
* Watch Unpaused events
|
|
2577
|
+
* @param callback Function to call when event is emitted
|
|
2578
|
+
* @param filter Optional filter for indexed parameters
|
|
2579
|
+
* @returns Unwatch function to stop listening
|
|
2580
|
+
*/
|
|
2581
|
+
Unpaused: (callback: (event: {
|
|
2582
|
+
account: `0x${string}`;
|
|
2583
|
+
}) => void) => () => void;
|
|
2584
|
+
/**
|
|
2585
|
+
* Watch WhitelistUpdated events
|
|
2586
|
+
* @param callback Function to call when event is emitted
|
|
2587
|
+
* @param filter Optional filter for indexed parameters
|
|
2588
|
+
* @returns Unwatch function to stop listening
|
|
2589
|
+
*/
|
|
2590
|
+
WhitelistUpdated: (callback: (event: {
|
|
2591
|
+
_account: `0x${string}`;
|
|
2592
|
+
_status: boolean;
|
|
2593
|
+
}) => void, filter?: {
|
|
2594
|
+
_account: `0x${string}`;
|
|
2595
|
+
}) => () => void;
|
|
2596
|
+
};
|
|
2597
|
+
}
|