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