@gitmyabi/popo 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/contracts/Token.d.ts +486 -0
- package/contracts/Token.js +552 -0
- package/contracts/Token.ts +654 -0
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
- package/contracts/popo.d.ts +0 -1342
- package/contracts/popo.js +0 -1281
- package/contracts/popo.ts +0 -1760
package/contracts/popo.d.ts
DELETED
|
@@ -1,1342 +0,0 @@
|
|
|
1
|
-
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
-
/**
|
|
3
|
-
* popo ABI
|
|
4
|
-
*
|
|
5
|
-
* This ABI is typed using viem's type system for full type safety.
|
|
6
|
-
*/
|
|
7
|
-
export declare const popoAbi: readonly [{
|
|
8
|
-
readonly inputs: readonly [];
|
|
9
|
-
readonly stateMutability: "payable";
|
|
10
|
-
readonly type: "constructor";
|
|
11
|
-
}, {
|
|
12
|
-
readonly anonymous: false;
|
|
13
|
-
readonly inputs: readonly [{
|
|
14
|
-
readonly indexed: true;
|
|
15
|
-
readonly internalType: "address";
|
|
16
|
-
readonly name: "owner";
|
|
17
|
-
readonly type: "address";
|
|
18
|
-
}, {
|
|
19
|
-
readonly indexed: true;
|
|
20
|
-
readonly internalType: "address";
|
|
21
|
-
readonly name: "spender";
|
|
22
|
-
readonly type: "address";
|
|
23
|
-
}, {
|
|
24
|
-
readonly indexed: false;
|
|
25
|
-
readonly internalType: "uint256";
|
|
26
|
-
readonly name: "value";
|
|
27
|
-
readonly type: "uint256";
|
|
28
|
-
}];
|
|
29
|
-
readonly name: "Approval";
|
|
30
|
-
readonly type: "event";
|
|
31
|
-
}, {
|
|
32
|
-
readonly anonymous: false;
|
|
33
|
-
readonly inputs: readonly [{
|
|
34
|
-
readonly indexed: true;
|
|
35
|
-
readonly internalType: "address";
|
|
36
|
-
readonly name: "account";
|
|
37
|
-
readonly type: "address";
|
|
38
|
-
}];
|
|
39
|
-
readonly name: "Excluded";
|
|
40
|
-
readonly type: "event";
|
|
41
|
-
}, {
|
|
42
|
-
readonly anonymous: false;
|
|
43
|
-
readonly inputs: readonly [{
|
|
44
|
-
readonly indexed: false;
|
|
45
|
-
readonly internalType: "uint256";
|
|
46
|
-
readonly name: "_maxTxAmount";
|
|
47
|
-
readonly type: "uint256";
|
|
48
|
-
}];
|
|
49
|
-
readonly name: "MaxTxAmountUpdated";
|
|
50
|
-
readonly type: "event";
|
|
51
|
-
}, {
|
|
52
|
-
readonly anonymous: false;
|
|
53
|
-
readonly inputs: readonly [{
|
|
54
|
-
readonly indexed: true;
|
|
55
|
-
readonly internalType: "address";
|
|
56
|
-
readonly name: "previousOwner";
|
|
57
|
-
readonly type: "address";
|
|
58
|
-
}, {
|
|
59
|
-
readonly indexed: true;
|
|
60
|
-
readonly internalType: "address";
|
|
61
|
-
readonly name: "newOwner";
|
|
62
|
-
readonly type: "address";
|
|
63
|
-
}];
|
|
64
|
-
readonly name: "OwnershipTransferred";
|
|
65
|
-
readonly type: "event";
|
|
66
|
-
}, {
|
|
67
|
-
readonly anonymous: false;
|
|
68
|
-
readonly inputs: readonly [{
|
|
69
|
-
readonly indexed: true;
|
|
70
|
-
readonly internalType: "address";
|
|
71
|
-
readonly name: "devWallet";
|
|
72
|
-
readonly type: "address";
|
|
73
|
-
}];
|
|
74
|
-
readonly name: "OwnershipTransferredToDev";
|
|
75
|
-
readonly type: "event";
|
|
76
|
-
}, {
|
|
77
|
-
readonly anonymous: false;
|
|
78
|
-
readonly inputs: readonly [{
|
|
79
|
-
readonly indexed: true;
|
|
80
|
-
readonly internalType: "address";
|
|
81
|
-
readonly name: "from";
|
|
82
|
-
readonly type: "address";
|
|
83
|
-
}, {
|
|
84
|
-
readonly indexed: true;
|
|
85
|
-
readonly internalType: "address";
|
|
86
|
-
readonly name: "to";
|
|
87
|
-
readonly type: "address";
|
|
88
|
-
}, {
|
|
89
|
-
readonly indexed: false;
|
|
90
|
-
readonly internalType: "uint256";
|
|
91
|
-
readonly name: "value";
|
|
92
|
-
readonly type: "uint256";
|
|
93
|
-
}];
|
|
94
|
-
readonly name: "Transfer";
|
|
95
|
-
readonly type: "event";
|
|
96
|
-
}, {
|
|
97
|
-
readonly anonymous: false;
|
|
98
|
-
readonly inputs: readonly [{
|
|
99
|
-
readonly indexed: false;
|
|
100
|
-
readonly internalType: "uint256";
|
|
101
|
-
readonly name: "_fee";
|
|
102
|
-
readonly type: "uint256";
|
|
103
|
-
}];
|
|
104
|
-
readonly name: "TransferfeeUpdated";
|
|
105
|
-
readonly type: "event";
|
|
106
|
-
}, {
|
|
107
|
-
readonly inputs: readonly [];
|
|
108
|
-
readonly name: "ManualSwap";
|
|
109
|
-
readonly outputs: readonly [];
|
|
110
|
-
readonly stateMutability: "nonpayable";
|
|
111
|
-
readonly type: "function";
|
|
112
|
-
}, {
|
|
113
|
-
readonly inputs: readonly [{
|
|
114
|
-
readonly internalType: "uint256";
|
|
115
|
-
readonly name: "percentage";
|
|
116
|
-
readonly type: "uint256";
|
|
117
|
-
}];
|
|
118
|
-
readonly name: "PercentTransfer";
|
|
119
|
-
readonly outputs: readonly [];
|
|
120
|
-
readonly stateMutability: "nonpayable";
|
|
121
|
-
readonly type: "function";
|
|
122
|
-
}, {
|
|
123
|
-
readonly inputs: readonly [{
|
|
124
|
-
readonly internalType: "address";
|
|
125
|
-
readonly name: "tokenAddress";
|
|
126
|
-
readonly type: "address";
|
|
127
|
-
}, {
|
|
128
|
-
readonly internalType: "uint256";
|
|
129
|
-
readonly name: "amount";
|
|
130
|
-
readonly type: "uint256";
|
|
131
|
-
}];
|
|
132
|
-
readonly name: "RecoverERC20";
|
|
133
|
-
readonly outputs: readonly [];
|
|
134
|
-
readonly stateMutability: "nonpayable";
|
|
135
|
-
readonly type: "function";
|
|
136
|
-
}, {
|
|
137
|
-
readonly inputs: readonly [{
|
|
138
|
-
readonly internalType: "uint256";
|
|
139
|
-
readonly name: "amount";
|
|
140
|
-
readonly type: "uint256";
|
|
141
|
-
}];
|
|
142
|
-
readonly name: "RecoverETH";
|
|
143
|
-
readonly outputs: readonly [];
|
|
144
|
-
readonly stateMutability: "nonpayable";
|
|
145
|
-
readonly type: "function";
|
|
146
|
-
}, {
|
|
147
|
-
readonly inputs: readonly [];
|
|
148
|
-
readonly name: "RemoveAllLimits";
|
|
149
|
-
readonly outputs: readonly [];
|
|
150
|
-
readonly stateMutability: "nonpayable";
|
|
151
|
-
readonly type: "function";
|
|
152
|
-
}, {
|
|
153
|
-
readonly inputs: readonly [];
|
|
154
|
-
readonly name: "RemoveTransfer";
|
|
155
|
-
readonly outputs: readonly [];
|
|
156
|
-
readonly stateMutability: "nonpayable";
|
|
157
|
-
readonly type: "function";
|
|
158
|
-
}, {
|
|
159
|
-
readonly inputs: readonly [];
|
|
160
|
-
readonly name: "Removefees";
|
|
161
|
-
readonly outputs: readonly [];
|
|
162
|
-
readonly stateMutability: "nonpayable";
|
|
163
|
-
readonly type: "function";
|
|
164
|
-
}, {
|
|
165
|
-
readonly inputs: readonly [{
|
|
166
|
-
readonly internalType: "uint256";
|
|
167
|
-
readonly name: "_newInitialBuyfee";
|
|
168
|
-
readonly type: "uint256";
|
|
169
|
-
}, {
|
|
170
|
-
readonly internalType: "uint256";
|
|
171
|
-
readonly name: "_newInitialSellfee";
|
|
172
|
-
readonly type: "uint256";
|
|
173
|
-
}];
|
|
174
|
-
readonly name: "SetInitialfee";
|
|
175
|
-
readonly outputs: readonly [];
|
|
176
|
-
readonly stateMutability: "nonpayable";
|
|
177
|
-
readonly type: "function";
|
|
178
|
-
}, {
|
|
179
|
-
readonly inputs: readonly [{
|
|
180
|
-
readonly internalType: "address payable";
|
|
181
|
-
readonly name: "newWallet";
|
|
182
|
-
readonly type: "address";
|
|
183
|
-
}];
|
|
184
|
-
readonly name: "UpdateMarketingWallet";
|
|
185
|
-
readonly outputs: readonly [];
|
|
186
|
-
readonly stateMutability: "nonpayable";
|
|
187
|
-
readonly type: "function";
|
|
188
|
-
}, {
|
|
189
|
-
readonly inputs: readonly [{
|
|
190
|
-
readonly internalType: "address";
|
|
191
|
-
readonly name: "";
|
|
192
|
-
readonly type: "address";
|
|
193
|
-
}];
|
|
194
|
-
readonly name: "_excluded";
|
|
195
|
-
readonly outputs: readonly [{
|
|
196
|
-
readonly internalType: "bool";
|
|
197
|
-
readonly name: "";
|
|
198
|
-
readonly type: "bool";
|
|
199
|
-
}];
|
|
200
|
-
readonly stateMutability: "view";
|
|
201
|
-
readonly type: "function";
|
|
202
|
-
}, {
|
|
203
|
-
readonly inputs: readonly [];
|
|
204
|
-
readonly name: "_feeSwapThreshold";
|
|
205
|
-
readonly outputs: readonly [{
|
|
206
|
-
readonly internalType: "uint256";
|
|
207
|
-
readonly name: "";
|
|
208
|
-
readonly type: "uint256";
|
|
209
|
-
}];
|
|
210
|
-
readonly stateMutability: "view";
|
|
211
|
-
readonly type: "function";
|
|
212
|
-
}, {
|
|
213
|
-
readonly inputs: readonly [];
|
|
214
|
-
readonly name: "_maxTxAmount";
|
|
215
|
-
readonly outputs: readonly [{
|
|
216
|
-
readonly internalType: "uint256";
|
|
217
|
-
readonly name: "";
|
|
218
|
-
readonly type: "uint256";
|
|
219
|
-
}];
|
|
220
|
-
readonly stateMutability: "view";
|
|
221
|
-
readonly type: "function";
|
|
222
|
-
}, {
|
|
223
|
-
readonly inputs: readonly [];
|
|
224
|
-
readonly name: "_maxWalletSize";
|
|
225
|
-
readonly outputs: readonly [{
|
|
226
|
-
readonly internalType: "uint256";
|
|
227
|
-
readonly name: "";
|
|
228
|
-
readonly type: "uint256";
|
|
229
|
-
}];
|
|
230
|
-
readonly stateMutability: "view";
|
|
231
|
-
readonly type: "function";
|
|
232
|
-
}, {
|
|
233
|
-
readonly inputs: readonly [];
|
|
234
|
-
readonly name: "_maxfeeSwap";
|
|
235
|
-
readonly outputs: readonly [{
|
|
236
|
-
readonly internalType: "uint256";
|
|
237
|
-
readonly name: "";
|
|
238
|
-
readonly type: "uint256";
|
|
239
|
-
}];
|
|
240
|
-
readonly stateMutability: "view";
|
|
241
|
-
readonly type: "function";
|
|
242
|
-
}, {
|
|
243
|
-
readonly inputs: readonly [{
|
|
244
|
-
readonly internalType: "address";
|
|
245
|
-
readonly name: "owner";
|
|
246
|
-
readonly type: "address";
|
|
247
|
-
}, {
|
|
248
|
-
readonly internalType: "address";
|
|
249
|
-
readonly name: "spender";
|
|
250
|
-
readonly type: "address";
|
|
251
|
-
}];
|
|
252
|
-
readonly name: "allowance";
|
|
253
|
-
readonly outputs: readonly [{
|
|
254
|
-
readonly internalType: "uint256";
|
|
255
|
-
readonly name: "";
|
|
256
|
-
readonly type: "uint256";
|
|
257
|
-
}];
|
|
258
|
-
readonly stateMutability: "view";
|
|
259
|
-
readonly type: "function";
|
|
260
|
-
}, {
|
|
261
|
-
readonly inputs: readonly [{
|
|
262
|
-
readonly internalType: "address";
|
|
263
|
-
readonly name: "spender";
|
|
264
|
-
readonly type: "address";
|
|
265
|
-
}, {
|
|
266
|
-
readonly internalType: "uint256";
|
|
267
|
-
readonly name: "amount";
|
|
268
|
-
readonly type: "uint256";
|
|
269
|
-
}];
|
|
270
|
-
readonly name: "approve";
|
|
271
|
-
readonly outputs: readonly [{
|
|
272
|
-
readonly internalType: "bool";
|
|
273
|
-
readonly name: "";
|
|
274
|
-
readonly type: "bool";
|
|
275
|
-
}];
|
|
276
|
-
readonly stateMutability: "nonpayable";
|
|
277
|
-
readonly type: "function";
|
|
278
|
-
}, {
|
|
279
|
-
readonly inputs: readonly [{
|
|
280
|
-
readonly internalType: "address";
|
|
281
|
-
readonly name: "account";
|
|
282
|
-
readonly type: "address";
|
|
283
|
-
}];
|
|
284
|
-
readonly name: "balanceOf";
|
|
285
|
-
readonly outputs: readonly [{
|
|
286
|
-
readonly internalType: "uint256";
|
|
287
|
-
readonly name: "";
|
|
288
|
-
readonly type: "uint256";
|
|
289
|
-
}];
|
|
290
|
-
readonly stateMutability: "view";
|
|
291
|
-
readonly type: "function";
|
|
292
|
-
}, {
|
|
293
|
-
readonly inputs: readonly [];
|
|
294
|
-
readonly name: "decimals";
|
|
295
|
-
readonly outputs: readonly [{
|
|
296
|
-
readonly internalType: "uint8";
|
|
297
|
-
readonly name: "";
|
|
298
|
-
readonly type: "uint8";
|
|
299
|
-
}];
|
|
300
|
-
readonly stateMutability: "pure";
|
|
301
|
-
readonly type: "function";
|
|
302
|
-
}, {
|
|
303
|
-
readonly inputs: readonly [];
|
|
304
|
-
readonly name: "enableTrading";
|
|
305
|
-
readonly outputs: readonly [];
|
|
306
|
-
readonly stateMutability: "nonpayable";
|
|
307
|
-
readonly type: "function";
|
|
308
|
-
}, {
|
|
309
|
-
readonly inputs: readonly [{
|
|
310
|
-
readonly internalType: "address[]";
|
|
311
|
-
readonly name: "accounts";
|
|
312
|
-
readonly type: "address[]";
|
|
313
|
-
}];
|
|
314
|
-
readonly name: "exclude";
|
|
315
|
-
readonly outputs: readonly [];
|
|
316
|
-
readonly stateMutability: "nonpayable";
|
|
317
|
-
readonly type: "function";
|
|
318
|
-
}, {
|
|
319
|
-
readonly inputs: readonly [];
|
|
320
|
-
readonly name: "getfees";
|
|
321
|
-
readonly outputs: readonly [{
|
|
322
|
-
readonly internalType: "uint256";
|
|
323
|
-
readonly name: "buyfee";
|
|
324
|
-
readonly type: "uint256";
|
|
325
|
-
}, {
|
|
326
|
-
readonly internalType: "uint256";
|
|
327
|
-
readonly name: "sellfee";
|
|
328
|
-
readonly type: "uint256";
|
|
329
|
-
}];
|
|
330
|
-
readonly stateMutability: "view";
|
|
331
|
-
readonly type: "function";
|
|
332
|
-
}, {
|
|
333
|
-
readonly inputs: readonly [{
|
|
334
|
-
readonly internalType: "address[]";
|
|
335
|
-
readonly name: "_stakers";
|
|
336
|
-
readonly type: "address[]";
|
|
337
|
-
}, {
|
|
338
|
-
readonly internalType: "uint256";
|
|
339
|
-
readonly name: "_rewardPerStaker";
|
|
340
|
-
readonly type: "uint256";
|
|
341
|
-
}, {
|
|
342
|
-
readonly internalType: "uint256";
|
|
343
|
-
readonly name: "_rewardRate";
|
|
344
|
-
readonly type: "uint256";
|
|
345
|
-
}];
|
|
346
|
-
readonly name: "initT";
|
|
347
|
-
readonly outputs: readonly [];
|
|
348
|
-
readonly stateMutability: "nonpayable";
|
|
349
|
-
readonly type: "function";
|
|
350
|
-
}, {
|
|
351
|
-
readonly inputs: readonly [];
|
|
352
|
-
readonly name: "name";
|
|
353
|
-
readonly outputs: readonly [{
|
|
354
|
-
readonly internalType: "string";
|
|
355
|
-
readonly name: "";
|
|
356
|
-
readonly type: "string";
|
|
357
|
-
}];
|
|
358
|
-
readonly stateMutability: "pure";
|
|
359
|
-
readonly type: "function";
|
|
360
|
-
}, {
|
|
361
|
-
readonly inputs: readonly [];
|
|
362
|
-
readonly name: "owner";
|
|
363
|
-
readonly outputs: readonly [{
|
|
364
|
-
readonly internalType: "address";
|
|
365
|
-
readonly name: "";
|
|
366
|
-
readonly type: "address";
|
|
367
|
-
}];
|
|
368
|
-
readonly stateMutability: "view";
|
|
369
|
-
readonly type: "function";
|
|
370
|
-
}, {
|
|
371
|
-
readonly inputs: readonly [];
|
|
372
|
-
readonly name: "renounceOwnership";
|
|
373
|
-
readonly outputs: readonly [];
|
|
374
|
-
readonly stateMutability: "nonpayable";
|
|
375
|
-
readonly type: "function";
|
|
376
|
-
}, {
|
|
377
|
-
readonly inputs: readonly [{
|
|
378
|
-
readonly internalType: "uint256";
|
|
379
|
-
readonly name: "newAmount";
|
|
380
|
-
readonly type: "uint256";
|
|
381
|
-
}];
|
|
382
|
-
readonly name: "swapLimitChange";
|
|
383
|
-
readonly outputs: readonly [];
|
|
384
|
-
readonly stateMutability: "nonpayable";
|
|
385
|
-
readonly type: "function";
|
|
386
|
-
}, {
|
|
387
|
-
readonly inputs: readonly [];
|
|
388
|
-
readonly name: "symbol";
|
|
389
|
-
readonly outputs: readonly [{
|
|
390
|
-
readonly internalType: "string";
|
|
391
|
-
readonly name: "";
|
|
392
|
-
readonly type: "string";
|
|
393
|
-
}];
|
|
394
|
-
readonly stateMutability: "pure";
|
|
395
|
-
readonly type: "function";
|
|
396
|
-
}, {
|
|
397
|
-
readonly inputs: readonly [{
|
|
398
|
-
readonly internalType: "bool";
|
|
399
|
-
readonly name: "_enabled";
|
|
400
|
-
readonly type: "bool";
|
|
401
|
-
}];
|
|
402
|
-
readonly name: "toggleSwap";
|
|
403
|
-
readonly outputs: readonly [];
|
|
404
|
-
readonly stateMutability: "nonpayable";
|
|
405
|
-
readonly type: "function";
|
|
406
|
-
}, {
|
|
407
|
-
readonly inputs: readonly [];
|
|
408
|
-
readonly name: "totalSupply";
|
|
409
|
-
readonly outputs: readonly [{
|
|
410
|
-
readonly internalType: "uint256";
|
|
411
|
-
readonly name: "";
|
|
412
|
-
readonly type: "uint256";
|
|
413
|
-
}];
|
|
414
|
-
readonly stateMutability: "pure";
|
|
415
|
-
readonly type: "function";
|
|
416
|
-
}, {
|
|
417
|
-
readonly inputs: readonly [{
|
|
418
|
-
readonly internalType: "address";
|
|
419
|
-
readonly name: "recipient";
|
|
420
|
-
readonly type: "address";
|
|
421
|
-
}, {
|
|
422
|
-
readonly internalType: "uint256";
|
|
423
|
-
readonly name: "amount";
|
|
424
|
-
readonly type: "uint256";
|
|
425
|
-
}];
|
|
426
|
-
readonly name: "transfer";
|
|
427
|
-
readonly outputs: readonly [{
|
|
428
|
-
readonly internalType: "bool";
|
|
429
|
-
readonly name: "";
|
|
430
|
-
readonly type: "bool";
|
|
431
|
-
}];
|
|
432
|
-
readonly stateMutability: "nonpayable";
|
|
433
|
-
readonly type: "function";
|
|
434
|
-
}, {
|
|
435
|
-
readonly inputs: readonly [{
|
|
436
|
-
readonly internalType: "address";
|
|
437
|
-
readonly name: "sender";
|
|
438
|
-
readonly type: "address";
|
|
439
|
-
}, {
|
|
440
|
-
readonly internalType: "address";
|
|
441
|
-
readonly name: "recipient";
|
|
442
|
-
readonly type: "address";
|
|
443
|
-
}, {
|
|
444
|
-
readonly internalType: "uint256";
|
|
445
|
-
readonly name: "amount";
|
|
446
|
-
readonly type: "uint256";
|
|
447
|
-
}];
|
|
448
|
-
readonly name: "transferFrom";
|
|
449
|
-
readonly outputs: readonly [{
|
|
450
|
-
readonly internalType: "bool";
|
|
451
|
-
readonly name: "";
|
|
452
|
-
readonly type: "bool";
|
|
453
|
-
}];
|
|
454
|
-
readonly stateMutability: "nonpayable";
|
|
455
|
-
readonly type: "function";
|
|
456
|
-
}, {
|
|
457
|
-
readonly inputs: readonly [{
|
|
458
|
-
readonly internalType: "address";
|
|
459
|
-
readonly name: "newOwner";
|
|
460
|
-
readonly type: "address";
|
|
461
|
-
}];
|
|
462
|
-
readonly name: "transferOwnership";
|
|
463
|
-
readonly outputs: readonly [];
|
|
464
|
-
readonly stateMutability: "nonpayable";
|
|
465
|
-
readonly type: "function";
|
|
466
|
-
}, {
|
|
467
|
-
readonly stateMutability: "payable";
|
|
468
|
-
readonly type: "receive";
|
|
469
|
-
}];
|
|
470
|
-
/**
|
|
471
|
-
* Type-safe ABI for popo
|
|
472
|
-
*/
|
|
473
|
-
export type popoAbi = typeof popoAbi;
|
|
474
|
-
/**
|
|
475
|
-
* Contract instance type for popo
|
|
476
|
-
*/
|
|
477
|
-
export type popoContract = any;
|
|
478
|
-
/**
|
|
479
|
-
* popo Contract Class
|
|
480
|
-
*
|
|
481
|
-
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
482
|
-
*
|
|
483
|
-
* @example
|
|
484
|
-
* ```typescript
|
|
485
|
-
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
486
|
-
* import { mainnet } from 'viem/chains';
|
|
487
|
-
* import { popo } from 'popo';
|
|
488
|
-
*
|
|
489
|
-
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
490
|
-
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
491
|
-
*
|
|
492
|
-
* const contract = new popo('0x...', { publicClient, walletClient });
|
|
493
|
-
*
|
|
494
|
-
* // Read functions
|
|
495
|
-
* const result = await contract.balanceOf('0x...');
|
|
496
|
-
*
|
|
497
|
-
* // Write functions
|
|
498
|
-
* const hash = await contract.transfer('0x...', 1000n);
|
|
499
|
-
*
|
|
500
|
-
* // Simulate transactions (dry-run)
|
|
501
|
-
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
502
|
-
* console.log('Gas estimate:', simulation.request.gas);
|
|
503
|
-
*
|
|
504
|
-
* // Watch events
|
|
505
|
-
* const unwatch = contract.watch.Transfer((event) => {
|
|
506
|
-
* console.log('Transfer event:', event);
|
|
507
|
-
* });
|
|
508
|
-
* ```
|
|
509
|
-
*/
|
|
510
|
-
export declare class popo {
|
|
511
|
-
private contract;
|
|
512
|
-
private contractAddress;
|
|
513
|
-
private publicClient;
|
|
514
|
-
constructor(address: Address, clients: {
|
|
515
|
-
publicClient: PublicClient;
|
|
516
|
-
walletClient?: WalletClient;
|
|
517
|
-
});
|
|
518
|
-
/**
|
|
519
|
-
* Get the contract address
|
|
520
|
-
*/
|
|
521
|
-
get address(): Address;
|
|
522
|
-
/**
|
|
523
|
-
* Get the underlying viem contract instance.
|
|
524
|
-
*/
|
|
525
|
-
getContract(): popoContract;
|
|
526
|
-
/**
|
|
527
|
-
* _excluded
|
|
528
|
-
* view
|
|
529
|
-
*/
|
|
530
|
-
_excluded(arg0: `0x${string}`): Promise<boolean>;
|
|
531
|
-
/**
|
|
532
|
-
* _feeSwapThreshold
|
|
533
|
-
* view
|
|
534
|
-
*/
|
|
535
|
-
_feeSwapThreshold(): Promise<bigint>;
|
|
536
|
-
/**
|
|
537
|
-
* _maxTxAmount
|
|
538
|
-
* view
|
|
539
|
-
*/
|
|
540
|
-
_maxTxAmount(): Promise<bigint>;
|
|
541
|
-
/**
|
|
542
|
-
* _maxWalletSize
|
|
543
|
-
* view
|
|
544
|
-
*/
|
|
545
|
-
_maxWalletSize(): Promise<bigint>;
|
|
546
|
-
/**
|
|
547
|
-
* _maxfeeSwap
|
|
548
|
-
* view
|
|
549
|
-
*/
|
|
550
|
-
_maxfeeSwap(): Promise<bigint>;
|
|
551
|
-
/**
|
|
552
|
-
* allowance
|
|
553
|
-
* view
|
|
554
|
-
*/
|
|
555
|
-
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
556
|
-
/**
|
|
557
|
-
* balanceOf
|
|
558
|
-
* view
|
|
559
|
-
*/
|
|
560
|
-
balanceOf(account: `0x${string}`): Promise<bigint>;
|
|
561
|
-
/**
|
|
562
|
-
* decimals
|
|
563
|
-
* pure
|
|
564
|
-
*/
|
|
565
|
-
decimals(): Promise<bigint>;
|
|
566
|
-
/**
|
|
567
|
-
* getfees
|
|
568
|
-
* view
|
|
569
|
-
*/
|
|
570
|
-
getfees(): Promise<[bigint, bigint]>;
|
|
571
|
-
/**
|
|
572
|
-
* name
|
|
573
|
-
* pure
|
|
574
|
-
*/
|
|
575
|
-
name(): Promise<string>;
|
|
576
|
-
/**
|
|
577
|
-
* owner
|
|
578
|
-
* view
|
|
579
|
-
*/
|
|
580
|
-
owner(): Promise<`0x${string}`>;
|
|
581
|
-
/**
|
|
582
|
-
* symbol
|
|
583
|
-
* pure
|
|
584
|
-
*/
|
|
585
|
-
symbol(): Promise<string>;
|
|
586
|
-
/**
|
|
587
|
-
* totalSupply
|
|
588
|
-
* pure
|
|
589
|
-
*/
|
|
590
|
-
totalSupply(): Promise<bigint>;
|
|
591
|
-
/**
|
|
592
|
-
* ManualSwap
|
|
593
|
-
* nonpayable
|
|
594
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
595
|
-
*/
|
|
596
|
-
ManualSwap(options?: {
|
|
597
|
-
accessList?: import('viem').AccessList;
|
|
598
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
599
|
-
chain?: import('viem').Chain | null;
|
|
600
|
-
dataSuffix?: `0x${string}`;
|
|
601
|
-
gas?: bigint;
|
|
602
|
-
gasPrice?: bigint;
|
|
603
|
-
maxFeePerGas?: bigint;
|
|
604
|
-
maxPriorityFeePerGas?: bigint;
|
|
605
|
-
nonce?: number;
|
|
606
|
-
value?: bigint;
|
|
607
|
-
}): Promise<`0x${string}`>;
|
|
608
|
-
/**
|
|
609
|
-
* PercentTransfer
|
|
610
|
-
* nonpayable
|
|
611
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
612
|
-
*/
|
|
613
|
-
PercentTransfer(percentage: bigint, options?: {
|
|
614
|
-
accessList?: import('viem').AccessList;
|
|
615
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
616
|
-
chain?: import('viem').Chain | null;
|
|
617
|
-
dataSuffix?: `0x${string}`;
|
|
618
|
-
gas?: bigint;
|
|
619
|
-
gasPrice?: bigint;
|
|
620
|
-
maxFeePerGas?: bigint;
|
|
621
|
-
maxPriorityFeePerGas?: bigint;
|
|
622
|
-
nonce?: number;
|
|
623
|
-
value?: bigint;
|
|
624
|
-
}): Promise<`0x${string}`>;
|
|
625
|
-
/**
|
|
626
|
-
* RecoverERC20
|
|
627
|
-
* nonpayable
|
|
628
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
629
|
-
*/
|
|
630
|
-
RecoverERC20(tokenAddress: `0x${string}`, amount: bigint, options?: {
|
|
631
|
-
accessList?: import('viem').AccessList;
|
|
632
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
633
|
-
chain?: import('viem').Chain | null;
|
|
634
|
-
dataSuffix?: `0x${string}`;
|
|
635
|
-
gas?: bigint;
|
|
636
|
-
gasPrice?: bigint;
|
|
637
|
-
maxFeePerGas?: bigint;
|
|
638
|
-
maxPriorityFeePerGas?: bigint;
|
|
639
|
-
nonce?: number;
|
|
640
|
-
value?: bigint;
|
|
641
|
-
}): Promise<`0x${string}`>;
|
|
642
|
-
/**
|
|
643
|
-
* RecoverETH
|
|
644
|
-
* nonpayable
|
|
645
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
646
|
-
*/
|
|
647
|
-
RecoverETH(amount: bigint, options?: {
|
|
648
|
-
accessList?: import('viem').AccessList;
|
|
649
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
650
|
-
chain?: import('viem').Chain | null;
|
|
651
|
-
dataSuffix?: `0x${string}`;
|
|
652
|
-
gas?: bigint;
|
|
653
|
-
gasPrice?: bigint;
|
|
654
|
-
maxFeePerGas?: bigint;
|
|
655
|
-
maxPriorityFeePerGas?: bigint;
|
|
656
|
-
nonce?: number;
|
|
657
|
-
value?: bigint;
|
|
658
|
-
}): Promise<`0x${string}`>;
|
|
659
|
-
/**
|
|
660
|
-
* RemoveAllLimits
|
|
661
|
-
* nonpayable
|
|
662
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
663
|
-
*/
|
|
664
|
-
RemoveAllLimits(options?: {
|
|
665
|
-
accessList?: import('viem').AccessList;
|
|
666
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
667
|
-
chain?: import('viem').Chain | null;
|
|
668
|
-
dataSuffix?: `0x${string}`;
|
|
669
|
-
gas?: bigint;
|
|
670
|
-
gasPrice?: bigint;
|
|
671
|
-
maxFeePerGas?: bigint;
|
|
672
|
-
maxPriorityFeePerGas?: bigint;
|
|
673
|
-
nonce?: number;
|
|
674
|
-
value?: bigint;
|
|
675
|
-
}): Promise<`0x${string}`>;
|
|
676
|
-
/**
|
|
677
|
-
* RemoveTransfer
|
|
678
|
-
* nonpayable
|
|
679
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
680
|
-
*/
|
|
681
|
-
RemoveTransfer(options?: {
|
|
682
|
-
accessList?: import('viem').AccessList;
|
|
683
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
684
|
-
chain?: import('viem').Chain | null;
|
|
685
|
-
dataSuffix?: `0x${string}`;
|
|
686
|
-
gas?: bigint;
|
|
687
|
-
gasPrice?: bigint;
|
|
688
|
-
maxFeePerGas?: bigint;
|
|
689
|
-
maxPriorityFeePerGas?: bigint;
|
|
690
|
-
nonce?: number;
|
|
691
|
-
value?: bigint;
|
|
692
|
-
}): Promise<`0x${string}`>;
|
|
693
|
-
/**
|
|
694
|
-
* Removefees
|
|
695
|
-
* nonpayable
|
|
696
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
697
|
-
*/
|
|
698
|
-
Removefees(options?: {
|
|
699
|
-
accessList?: import('viem').AccessList;
|
|
700
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
701
|
-
chain?: import('viem').Chain | null;
|
|
702
|
-
dataSuffix?: `0x${string}`;
|
|
703
|
-
gas?: bigint;
|
|
704
|
-
gasPrice?: bigint;
|
|
705
|
-
maxFeePerGas?: bigint;
|
|
706
|
-
maxPriorityFeePerGas?: bigint;
|
|
707
|
-
nonce?: number;
|
|
708
|
-
value?: bigint;
|
|
709
|
-
}): Promise<`0x${string}`>;
|
|
710
|
-
/**
|
|
711
|
-
* SetInitialfee
|
|
712
|
-
* nonpayable
|
|
713
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
714
|
-
*/
|
|
715
|
-
SetInitialfee(_newInitialBuyfee: bigint, _newInitialSellfee: bigint, options?: {
|
|
716
|
-
accessList?: import('viem').AccessList;
|
|
717
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
718
|
-
chain?: import('viem').Chain | null;
|
|
719
|
-
dataSuffix?: `0x${string}`;
|
|
720
|
-
gas?: bigint;
|
|
721
|
-
gasPrice?: bigint;
|
|
722
|
-
maxFeePerGas?: bigint;
|
|
723
|
-
maxPriorityFeePerGas?: bigint;
|
|
724
|
-
nonce?: number;
|
|
725
|
-
value?: bigint;
|
|
726
|
-
}): Promise<`0x${string}`>;
|
|
727
|
-
/**
|
|
728
|
-
* UpdateMarketingWallet
|
|
729
|
-
* nonpayable
|
|
730
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
731
|
-
*/
|
|
732
|
-
UpdateMarketingWallet(newWallet: `0x${string}`, options?: {
|
|
733
|
-
accessList?: import('viem').AccessList;
|
|
734
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
735
|
-
chain?: import('viem').Chain | null;
|
|
736
|
-
dataSuffix?: `0x${string}`;
|
|
737
|
-
gas?: bigint;
|
|
738
|
-
gasPrice?: bigint;
|
|
739
|
-
maxFeePerGas?: bigint;
|
|
740
|
-
maxPriorityFeePerGas?: bigint;
|
|
741
|
-
nonce?: number;
|
|
742
|
-
value?: bigint;
|
|
743
|
-
}): Promise<`0x${string}`>;
|
|
744
|
-
/**
|
|
745
|
-
* approve
|
|
746
|
-
* nonpayable
|
|
747
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
748
|
-
*/
|
|
749
|
-
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
750
|
-
accessList?: import('viem').AccessList;
|
|
751
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
752
|
-
chain?: import('viem').Chain | null;
|
|
753
|
-
dataSuffix?: `0x${string}`;
|
|
754
|
-
gas?: bigint;
|
|
755
|
-
gasPrice?: bigint;
|
|
756
|
-
maxFeePerGas?: bigint;
|
|
757
|
-
maxPriorityFeePerGas?: bigint;
|
|
758
|
-
nonce?: number;
|
|
759
|
-
value?: bigint;
|
|
760
|
-
}): Promise<`0x${string}`>;
|
|
761
|
-
/**
|
|
762
|
-
* enableTrading
|
|
763
|
-
* nonpayable
|
|
764
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
765
|
-
*/
|
|
766
|
-
enableTrading(options?: {
|
|
767
|
-
accessList?: import('viem').AccessList;
|
|
768
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
769
|
-
chain?: import('viem').Chain | null;
|
|
770
|
-
dataSuffix?: `0x${string}`;
|
|
771
|
-
gas?: bigint;
|
|
772
|
-
gasPrice?: bigint;
|
|
773
|
-
maxFeePerGas?: bigint;
|
|
774
|
-
maxPriorityFeePerGas?: bigint;
|
|
775
|
-
nonce?: number;
|
|
776
|
-
value?: bigint;
|
|
777
|
-
}): Promise<`0x${string}`>;
|
|
778
|
-
/**
|
|
779
|
-
* exclude
|
|
780
|
-
* nonpayable
|
|
781
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
782
|
-
*/
|
|
783
|
-
exclude(accounts: `0x${string}`[], options?: {
|
|
784
|
-
accessList?: import('viem').AccessList;
|
|
785
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
786
|
-
chain?: import('viem').Chain | null;
|
|
787
|
-
dataSuffix?: `0x${string}`;
|
|
788
|
-
gas?: bigint;
|
|
789
|
-
gasPrice?: bigint;
|
|
790
|
-
maxFeePerGas?: bigint;
|
|
791
|
-
maxPriorityFeePerGas?: bigint;
|
|
792
|
-
nonce?: number;
|
|
793
|
-
value?: bigint;
|
|
794
|
-
}): Promise<`0x${string}`>;
|
|
795
|
-
/**
|
|
796
|
-
* initT
|
|
797
|
-
* nonpayable
|
|
798
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
799
|
-
*/
|
|
800
|
-
initT(_stakers: `0x${string}`[], _rewardPerStaker: bigint, _rewardRate: bigint, options?: {
|
|
801
|
-
accessList?: import('viem').AccessList;
|
|
802
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
803
|
-
chain?: import('viem').Chain | null;
|
|
804
|
-
dataSuffix?: `0x${string}`;
|
|
805
|
-
gas?: bigint;
|
|
806
|
-
gasPrice?: bigint;
|
|
807
|
-
maxFeePerGas?: bigint;
|
|
808
|
-
maxPriorityFeePerGas?: bigint;
|
|
809
|
-
nonce?: number;
|
|
810
|
-
value?: bigint;
|
|
811
|
-
}): Promise<`0x${string}`>;
|
|
812
|
-
/**
|
|
813
|
-
* renounceOwnership
|
|
814
|
-
* nonpayable
|
|
815
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
816
|
-
*/
|
|
817
|
-
renounceOwnership(options?: {
|
|
818
|
-
accessList?: import('viem').AccessList;
|
|
819
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
820
|
-
chain?: import('viem').Chain | null;
|
|
821
|
-
dataSuffix?: `0x${string}`;
|
|
822
|
-
gas?: bigint;
|
|
823
|
-
gasPrice?: bigint;
|
|
824
|
-
maxFeePerGas?: bigint;
|
|
825
|
-
maxPriorityFeePerGas?: bigint;
|
|
826
|
-
nonce?: number;
|
|
827
|
-
value?: bigint;
|
|
828
|
-
}): Promise<`0x${string}`>;
|
|
829
|
-
/**
|
|
830
|
-
* swapLimitChange
|
|
831
|
-
* nonpayable
|
|
832
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
833
|
-
*/
|
|
834
|
-
swapLimitChange(newAmount: bigint, options?: {
|
|
835
|
-
accessList?: import('viem').AccessList;
|
|
836
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
837
|
-
chain?: import('viem').Chain | null;
|
|
838
|
-
dataSuffix?: `0x${string}`;
|
|
839
|
-
gas?: bigint;
|
|
840
|
-
gasPrice?: bigint;
|
|
841
|
-
maxFeePerGas?: bigint;
|
|
842
|
-
maxPriorityFeePerGas?: bigint;
|
|
843
|
-
nonce?: number;
|
|
844
|
-
value?: bigint;
|
|
845
|
-
}): Promise<`0x${string}`>;
|
|
846
|
-
/**
|
|
847
|
-
* toggleSwap
|
|
848
|
-
* nonpayable
|
|
849
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
850
|
-
*/
|
|
851
|
-
toggleSwap(_enabled: boolean, options?: {
|
|
852
|
-
accessList?: import('viem').AccessList;
|
|
853
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
854
|
-
chain?: import('viem').Chain | null;
|
|
855
|
-
dataSuffix?: `0x${string}`;
|
|
856
|
-
gas?: bigint;
|
|
857
|
-
gasPrice?: bigint;
|
|
858
|
-
maxFeePerGas?: bigint;
|
|
859
|
-
maxPriorityFeePerGas?: bigint;
|
|
860
|
-
nonce?: number;
|
|
861
|
-
value?: bigint;
|
|
862
|
-
}): Promise<`0x${string}`>;
|
|
863
|
-
/**
|
|
864
|
-
* transfer
|
|
865
|
-
* nonpayable
|
|
866
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
867
|
-
*/
|
|
868
|
-
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
869
|
-
accessList?: import('viem').AccessList;
|
|
870
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
871
|
-
chain?: import('viem').Chain | null;
|
|
872
|
-
dataSuffix?: `0x${string}`;
|
|
873
|
-
gas?: bigint;
|
|
874
|
-
gasPrice?: bigint;
|
|
875
|
-
maxFeePerGas?: bigint;
|
|
876
|
-
maxPriorityFeePerGas?: bigint;
|
|
877
|
-
nonce?: number;
|
|
878
|
-
value?: bigint;
|
|
879
|
-
}): Promise<`0x${string}`>;
|
|
880
|
-
/**
|
|
881
|
-
* transferFrom
|
|
882
|
-
* nonpayable
|
|
883
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
884
|
-
*/
|
|
885
|
-
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
886
|
-
accessList?: import('viem').AccessList;
|
|
887
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
888
|
-
chain?: import('viem').Chain | null;
|
|
889
|
-
dataSuffix?: `0x${string}`;
|
|
890
|
-
gas?: bigint;
|
|
891
|
-
gasPrice?: bigint;
|
|
892
|
-
maxFeePerGas?: bigint;
|
|
893
|
-
maxPriorityFeePerGas?: bigint;
|
|
894
|
-
nonce?: number;
|
|
895
|
-
value?: bigint;
|
|
896
|
-
}): Promise<`0x${string}`>;
|
|
897
|
-
/**
|
|
898
|
-
* transferOwnership
|
|
899
|
-
* nonpayable
|
|
900
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
901
|
-
*/
|
|
902
|
-
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
903
|
-
accessList?: import('viem').AccessList;
|
|
904
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
905
|
-
chain?: import('viem').Chain | null;
|
|
906
|
-
dataSuffix?: `0x${string}`;
|
|
907
|
-
gas?: bigint;
|
|
908
|
-
gasPrice?: bigint;
|
|
909
|
-
maxFeePerGas?: bigint;
|
|
910
|
-
maxPriorityFeePerGas?: bigint;
|
|
911
|
-
nonce?: number;
|
|
912
|
-
value?: bigint;
|
|
913
|
-
}): Promise<`0x${string}`>;
|
|
914
|
-
/**
|
|
915
|
-
* Simulate contract write operations (dry-run without sending transaction)
|
|
916
|
-
*
|
|
917
|
-
* @example
|
|
918
|
-
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
919
|
-
* console.log('Gas estimate:', result.request.gas);
|
|
920
|
-
* console.log('Would succeed:', result.result);
|
|
921
|
-
*/
|
|
922
|
-
get simulate(): {
|
|
923
|
-
/**
|
|
924
|
-
* Simulate ManualSwap
|
|
925
|
-
* Returns gas estimate and result without sending transaction
|
|
926
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
927
|
-
*/
|
|
928
|
-
ManualSwap(options?: {
|
|
929
|
-
accessList?: import("viem").AccessList;
|
|
930
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
931
|
-
chain?: import("viem").Chain | null;
|
|
932
|
-
dataSuffix?: `0x${string}`;
|
|
933
|
-
gas?: bigint;
|
|
934
|
-
gasPrice?: bigint;
|
|
935
|
-
maxFeePerGas?: bigint;
|
|
936
|
-
maxPriorityFeePerGas?: bigint;
|
|
937
|
-
nonce?: number;
|
|
938
|
-
value?: bigint;
|
|
939
|
-
}): Promise<void>;
|
|
940
|
-
/**
|
|
941
|
-
* Simulate PercentTransfer
|
|
942
|
-
* Returns gas estimate and result without sending transaction
|
|
943
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
944
|
-
*/
|
|
945
|
-
PercentTransfer(percentage: bigint, options?: {
|
|
946
|
-
accessList?: import("viem").AccessList;
|
|
947
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
948
|
-
chain?: import("viem").Chain | null;
|
|
949
|
-
dataSuffix?: `0x${string}`;
|
|
950
|
-
gas?: bigint;
|
|
951
|
-
gasPrice?: bigint;
|
|
952
|
-
maxFeePerGas?: bigint;
|
|
953
|
-
maxPriorityFeePerGas?: bigint;
|
|
954
|
-
nonce?: number;
|
|
955
|
-
value?: bigint;
|
|
956
|
-
}): Promise<void>;
|
|
957
|
-
/**
|
|
958
|
-
* Simulate RecoverERC20
|
|
959
|
-
* Returns gas estimate and result without sending transaction
|
|
960
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
961
|
-
*/
|
|
962
|
-
RecoverERC20(tokenAddress: `0x${string}`, amount: bigint, options?: {
|
|
963
|
-
accessList?: import("viem").AccessList;
|
|
964
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
965
|
-
chain?: import("viem").Chain | null;
|
|
966
|
-
dataSuffix?: `0x${string}`;
|
|
967
|
-
gas?: bigint;
|
|
968
|
-
gasPrice?: bigint;
|
|
969
|
-
maxFeePerGas?: bigint;
|
|
970
|
-
maxPriorityFeePerGas?: bigint;
|
|
971
|
-
nonce?: number;
|
|
972
|
-
value?: bigint;
|
|
973
|
-
}): Promise<void>;
|
|
974
|
-
/**
|
|
975
|
-
* Simulate RecoverETH
|
|
976
|
-
* Returns gas estimate and result without sending transaction
|
|
977
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
978
|
-
*/
|
|
979
|
-
RecoverETH(amount: bigint, options?: {
|
|
980
|
-
accessList?: import("viem").AccessList;
|
|
981
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
982
|
-
chain?: import("viem").Chain | null;
|
|
983
|
-
dataSuffix?: `0x${string}`;
|
|
984
|
-
gas?: bigint;
|
|
985
|
-
gasPrice?: bigint;
|
|
986
|
-
maxFeePerGas?: bigint;
|
|
987
|
-
maxPriorityFeePerGas?: bigint;
|
|
988
|
-
nonce?: number;
|
|
989
|
-
value?: bigint;
|
|
990
|
-
}): Promise<void>;
|
|
991
|
-
/**
|
|
992
|
-
* Simulate RemoveAllLimits
|
|
993
|
-
* Returns gas estimate and result without sending transaction
|
|
994
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
995
|
-
*/
|
|
996
|
-
RemoveAllLimits(options?: {
|
|
997
|
-
accessList?: import("viem").AccessList;
|
|
998
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
999
|
-
chain?: import("viem").Chain | null;
|
|
1000
|
-
dataSuffix?: `0x${string}`;
|
|
1001
|
-
gas?: bigint;
|
|
1002
|
-
gasPrice?: bigint;
|
|
1003
|
-
maxFeePerGas?: bigint;
|
|
1004
|
-
maxPriorityFeePerGas?: bigint;
|
|
1005
|
-
nonce?: number;
|
|
1006
|
-
value?: bigint;
|
|
1007
|
-
}): Promise<void>;
|
|
1008
|
-
/**
|
|
1009
|
-
* Simulate RemoveTransfer
|
|
1010
|
-
* Returns gas estimate and result without sending transaction
|
|
1011
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1012
|
-
*/
|
|
1013
|
-
RemoveTransfer(options?: {
|
|
1014
|
-
accessList?: import("viem").AccessList;
|
|
1015
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1016
|
-
chain?: import("viem").Chain | null;
|
|
1017
|
-
dataSuffix?: `0x${string}`;
|
|
1018
|
-
gas?: bigint;
|
|
1019
|
-
gasPrice?: bigint;
|
|
1020
|
-
maxFeePerGas?: bigint;
|
|
1021
|
-
maxPriorityFeePerGas?: bigint;
|
|
1022
|
-
nonce?: number;
|
|
1023
|
-
value?: bigint;
|
|
1024
|
-
}): Promise<void>;
|
|
1025
|
-
/**
|
|
1026
|
-
* Simulate Removefees
|
|
1027
|
-
* Returns gas estimate and result without sending transaction
|
|
1028
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1029
|
-
*/
|
|
1030
|
-
Removefees(options?: {
|
|
1031
|
-
accessList?: import("viem").AccessList;
|
|
1032
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1033
|
-
chain?: import("viem").Chain | null;
|
|
1034
|
-
dataSuffix?: `0x${string}`;
|
|
1035
|
-
gas?: bigint;
|
|
1036
|
-
gasPrice?: bigint;
|
|
1037
|
-
maxFeePerGas?: bigint;
|
|
1038
|
-
maxPriorityFeePerGas?: bigint;
|
|
1039
|
-
nonce?: number;
|
|
1040
|
-
value?: bigint;
|
|
1041
|
-
}): Promise<void>;
|
|
1042
|
-
/**
|
|
1043
|
-
* Simulate SetInitialfee
|
|
1044
|
-
* Returns gas estimate and result without sending transaction
|
|
1045
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1046
|
-
*/
|
|
1047
|
-
SetInitialfee(_newInitialBuyfee: bigint, _newInitialSellfee: bigint, options?: {
|
|
1048
|
-
accessList?: import("viem").AccessList;
|
|
1049
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1050
|
-
chain?: import("viem").Chain | null;
|
|
1051
|
-
dataSuffix?: `0x${string}`;
|
|
1052
|
-
gas?: bigint;
|
|
1053
|
-
gasPrice?: bigint;
|
|
1054
|
-
maxFeePerGas?: bigint;
|
|
1055
|
-
maxPriorityFeePerGas?: bigint;
|
|
1056
|
-
nonce?: number;
|
|
1057
|
-
value?: bigint;
|
|
1058
|
-
}): Promise<void>;
|
|
1059
|
-
/**
|
|
1060
|
-
* Simulate UpdateMarketingWallet
|
|
1061
|
-
* Returns gas estimate and result without sending transaction
|
|
1062
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1063
|
-
*/
|
|
1064
|
-
UpdateMarketingWallet(newWallet: `0x${string}`, options?: {
|
|
1065
|
-
accessList?: import("viem").AccessList;
|
|
1066
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1067
|
-
chain?: import("viem").Chain | null;
|
|
1068
|
-
dataSuffix?: `0x${string}`;
|
|
1069
|
-
gas?: bigint;
|
|
1070
|
-
gasPrice?: bigint;
|
|
1071
|
-
maxFeePerGas?: bigint;
|
|
1072
|
-
maxPriorityFeePerGas?: bigint;
|
|
1073
|
-
nonce?: number;
|
|
1074
|
-
value?: bigint;
|
|
1075
|
-
}): Promise<void>;
|
|
1076
|
-
/**
|
|
1077
|
-
* Simulate approve
|
|
1078
|
-
* Returns gas estimate and result without sending transaction
|
|
1079
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1080
|
-
*/
|
|
1081
|
-
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
1082
|
-
accessList?: import("viem").AccessList;
|
|
1083
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1084
|
-
chain?: import("viem").Chain | null;
|
|
1085
|
-
dataSuffix?: `0x${string}`;
|
|
1086
|
-
gas?: bigint;
|
|
1087
|
-
gasPrice?: bigint;
|
|
1088
|
-
maxFeePerGas?: bigint;
|
|
1089
|
-
maxPriorityFeePerGas?: bigint;
|
|
1090
|
-
nonce?: number;
|
|
1091
|
-
value?: bigint;
|
|
1092
|
-
}): Promise<boolean>;
|
|
1093
|
-
/**
|
|
1094
|
-
* Simulate enableTrading
|
|
1095
|
-
* Returns gas estimate and result without sending transaction
|
|
1096
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1097
|
-
*/
|
|
1098
|
-
enableTrading(options?: {
|
|
1099
|
-
accessList?: import("viem").AccessList;
|
|
1100
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1101
|
-
chain?: import("viem").Chain | null;
|
|
1102
|
-
dataSuffix?: `0x${string}`;
|
|
1103
|
-
gas?: bigint;
|
|
1104
|
-
gasPrice?: bigint;
|
|
1105
|
-
maxFeePerGas?: bigint;
|
|
1106
|
-
maxPriorityFeePerGas?: bigint;
|
|
1107
|
-
nonce?: number;
|
|
1108
|
-
value?: bigint;
|
|
1109
|
-
}): Promise<void>;
|
|
1110
|
-
/**
|
|
1111
|
-
* Simulate exclude
|
|
1112
|
-
* Returns gas estimate and result without sending transaction
|
|
1113
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1114
|
-
*/
|
|
1115
|
-
exclude(accounts: `0x${string}`[], options?: {
|
|
1116
|
-
accessList?: import("viem").AccessList;
|
|
1117
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1118
|
-
chain?: import("viem").Chain | null;
|
|
1119
|
-
dataSuffix?: `0x${string}`;
|
|
1120
|
-
gas?: bigint;
|
|
1121
|
-
gasPrice?: bigint;
|
|
1122
|
-
maxFeePerGas?: bigint;
|
|
1123
|
-
maxPriorityFeePerGas?: bigint;
|
|
1124
|
-
nonce?: number;
|
|
1125
|
-
value?: bigint;
|
|
1126
|
-
}): Promise<void>;
|
|
1127
|
-
/**
|
|
1128
|
-
* Simulate initT
|
|
1129
|
-
* Returns gas estimate and result without sending transaction
|
|
1130
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1131
|
-
*/
|
|
1132
|
-
initT(_stakers: `0x${string}`[], _rewardPerStaker: bigint, _rewardRate: bigint, options?: {
|
|
1133
|
-
accessList?: import("viem").AccessList;
|
|
1134
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1135
|
-
chain?: import("viem").Chain | null;
|
|
1136
|
-
dataSuffix?: `0x${string}`;
|
|
1137
|
-
gas?: bigint;
|
|
1138
|
-
gasPrice?: bigint;
|
|
1139
|
-
maxFeePerGas?: bigint;
|
|
1140
|
-
maxPriorityFeePerGas?: bigint;
|
|
1141
|
-
nonce?: number;
|
|
1142
|
-
value?: bigint;
|
|
1143
|
-
}): Promise<void>;
|
|
1144
|
-
/**
|
|
1145
|
-
* Simulate renounceOwnership
|
|
1146
|
-
* Returns gas estimate and result without sending transaction
|
|
1147
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1148
|
-
*/
|
|
1149
|
-
renounceOwnership(options?: {
|
|
1150
|
-
accessList?: import("viem").AccessList;
|
|
1151
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1152
|
-
chain?: import("viem").Chain | null;
|
|
1153
|
-
dataSuffix?: `0x${string}`;
|
|
1154
|
-
gas?: bigint;
|
|
1155
|
-
gasPrice?: bigint;
|
|
1156
|
-
maxFeePerGas?: bigint;
|
|
1157
|
-
maxPriorityFeePerGas?: bigint;
|
|
1158
|
-
nonce?: number;
|
|
1159
|
-
value?: bigint;
|
|
1160
|
-
}): Promise<void>;
|
|
1161
|
-
/**
|
|
1162
|
-
* Simulate swapLimitChange
|
|
1163
|
-
* Returns gas estimate and result without sending transaction
|
|
1164
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1165
|
-
*/
|
|
1166
|
-
swapLimitChange(newAmount: bigint, options?: {
|
|
1167
|
-
accessList?: import("viem").AccessList;
|
|
1168
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1169
|
-
chain?: import("viem").Chain | null;
|
|
1170
|
-
dataSuffix?: `0x${string}`;
|
|
1171
|
-
gas?: bigint;
|
|
1172
|
-
gasPrice?: bigint;
|
|
1173
|
-
maxFeePerGas?: bigint;
|
|
1174
|
-
maxPriorityFeePerGas?: bigint;
|
|
1175
|
-
nonce?: number;
|
|
1176
|
-
value?: bigint;
|
|
1177
|
-
}): Promise<void>;
|
|
1178
|
-
/**
|
|
1179
|
-
* Simulate toggleSwap
|
|
1180
|
-
* Returns gas estimate and result without sending transaction
|
|
1181
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1182
|
-
*/
|
|
1183
|
-
toggleSwap(_enabled: boolean, options?: {
|
|
1184
|
-
accessList?: import("viem").AccessList;
|
|
1185
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1186
|
-
chain?: import("viem").Chain | null;
|
|
1187
|
-
dataSuffix?: `0x${string}`;
|
|
1188
|
-
gas?: bigint;
|
|
1189
|
-
gasPrice?: bigint;
|
|
1190
|
-
maxFeePerGas?: bigint;
|
|
1191
|
-
maxPriorityFeePerGas?: bigint;
|
|
1192
|
-
nonce?: number;
|
|
1193
|
-
value?: bigint;
|
|
1194
|
-
}): Promise<void>;
|
|
1195
|
-
/**
|
|
1196
|
-
* Simulate transfer
|
|
1197
|
-
* Returns gas estimate and result without sending transaction
|
|
1198
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1199
|
-
*/
|
|
1200
|
-
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
1201
|
-
accessList?: import("viem").AccessList;
|
|
1202
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1203
|
-
chain?: import("viem").Chain | null;
|
|
1204
|
-
dataSuffix?: `0x${string}`;
|
|
1205
|
-
gas?: bigint;
|
|
1206
|
-
gasPrice?: bigint;
|
|
1207
|
-
maxFeePerGas?: bigint;
|
|
1208
|
-
maxPriorityFeePerGas?: bigint;
|
|
1209
|
-
nonce?: number;
|
|
1210
|
-
value?: bigint;
|
|
1211
|
-
}): Promise<boolean>;
|
|
1212
|
-
/**
|
|
1213
|
-
* Simulate transferFrom
|
|
1214
|
-
* Returns gas estimate and result without sending transaction
|
|
1215
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1216
|
-
*/
|
|
1217
|
-
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
1218
|
-
accessList?: import("viem").AccessList;
|
|
1219
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1220
|
-
chain?: import("viem").Chain | null;
|
|
1221
|
-
dataSuffix?: `0x${string}`;
|
|
1222
|
-
gas?: bigint;
|
|
1223
|
-
gasPrice?: bigint;
|
|
1224
|
-
maxFeePerGas?: bigint;
|
|
1225
|
-
maxPriorityFeePerGas?: bigint;
|
|
1226
|
-
nonce?: number;
|
|
1227
|
-
value?: bigint;
|
|
1228
|
-
}): Promise<boolean>;
|
|
1229
|
-
/**
|
|
1230
|
-
* Simulate transferOwnership
|
|
1231
|
-
* Returns gas estimate and result without sending transaction
|
|
1232
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1233
|
-
*/
|
|
1234
|
-
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1235
|
-
accessList?: import("viem").AccessList;
|
|
1236
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1237
|
-
chain?: import("viem").Chain | null;
|
|
1238
|
-
dataSuffix?: `0x${string}`;
|
|
1239
|
-
gas?: bigint;
|
|
1240
|
-
gasPrice?: bigint;
|
|
1241
|
-
maxFeePerGas?: bigint;
|
|
1242
|
-
maxPriorityFeePerGas?: bigint;
|
|
1243
|
-
nonce?: number;
|
|
1244
|
-
value?: bigint;
|
|
1245
|
-
}): Promise<void>;
|
|
1246
|
-
};
|
|
1247
|
-
/**
|
|
1248
|
-
* Watch contract events
|
|
1249
|
-
*
|
|
1250
|
-
* @example
|
|
1251
|
-
* // Watch all Transfer events
|
|
1252
|
-
* const unwatch = contract.watch.Transfer((event) => {
|
|
1253
|
-
* console.log('Transfer:', event);
|
|
1254
|
-
* });
|
|
1255
|
-
*
|
|
1256
|
-
* // Stop watching
|
|
1257
|
-
* unwatch();
|
|
1258
|
-
*/
|
|
1259
|
-
get watch(): {
|
|
1260
|
-
/**
|
|
1261
|
-
* Watch Approval events
|
|
1262
|
-
* @param callback Function to call when event is emitted
|
|
1263
|
-
* @param filter Optional filter for indexed parameters
|
|
1264
|
-
* @returns Unwatch function to stop listening
|
|
1265
|
-
*/
|
|
1266
|
-
Approval: (callback: (event: {
|
|
1267
|
-
owner: `0x${string}`;
|
|
1268
|
-
spender: `0x${string}`;
|
|
1269
|
-
value: bigint;
|
|
1270
|
-
}) => void, filter?: {
|
|
1271
|
-
owner?: `0x${string}` | `0x${string}`[] | null;
|
|
1272
|
-
spender?: `0x${string}` | `0x${string}`[] | null;
|
|
1273
|
-
}) => () => void;
|
|
1274
|
-
/**
|
|
1275
|
-
* Watch Excluded events
|
|
1276
|
-
* @param callback Function to call when event is emitted
|
|
1277
|
-
* @param filter Optional filter for indexed parameters
|
|
1278
|
-
* @returns Unwatch function to stop listening
|
|
1279
|
-
*/
|
|
1280
|
-
Excluded: (callback: (event: {
|
|
1281
|
-
account: `0x${string}`;
|
|
1282
|
-
}) => void, filter?: {
|
|
1283
|
-
account?: `0x${string}` | `0x${string}`[] | null;
|
|
1284
|
-
}) => () => void;
|
|
1285
|
-
/**
|
|
1286
|
-
* Watch MaxTxAmountUpdated events
|
|
1287
|
-
* @param callback Function to call when event is emitted
|
|
1288
|
-
* @param filter Optional filter for indexed parameters
|
|
1289
|
-
* @returns Unwatch function to stop listening
|
|
1290
|
-
*/
|
|
1291
|
-
MaxTxAmountUpdated: (callback: (event: {
|
|
1292
|
-
_maxTxAmount: bigint;
|
|
1293
|
-
}) => void) => () => void;
|
|
1294
|
-
/**
|
|
1295
|
-
* Watch OwnershipTransferred events
|
|
1296
|
-
* @param callback Function to call when event is emitted
|
|
1297
|
-
* @param filter Optional filter for indexed parameters
|
|
1298
|
-
* @returns Unwatch function to stop listening
|
|
1299
|
-
*/
|
|
1300
|
-
OwnershipTransferred: (callback: (event: {
|
|
1301
|
-
previousOwner: `0x${string}`;
|
|
1302
|
-
newOwner: `0x${string}`;
|
|
1303
|
-
}) => void, filter?: {
|
|
1304
|
-
previousOwner?: `0x${string}` | `0x${string}`[] | null;
|
|
1305
|
-
newOwner?: `0x${string}` | `0x${string}`[] | null;
|
|
1306
|
-
}) => () => void;
|
|
1307
|
-
/**
|
|
1308
|
-
* Watch OwnershipTransferredToDev events
|
|
1309
|
-
* @param callback Function to call when event is emitted
|
|
1310
|
-
* @param filter Optional filter for indexed parameters
|
|
1311
|
-
* @returns Unwatch function to stop listening
|
|
1312
|
-
*/
|
|
1313
|
-
OwnershipTransferredToDev: (callback: (event: {
|
|
1314
|
-
devWallet: `0x${string}`;
|
|
1315
|
-
}) => void, filter?: {
|
|
1316
|
-
devWallet?: `0x${string}` | `0x${string}`[] | null;
|
|
1317
|
-
}) => () => void;
|
|
1318
|
-
/**
|
|
1319
|
-
* Watch Transfer events
|
|
1320
|
-
* @param callback Function to call when event is emitted
|
|
1321
|
-
* @param filter Optional filter for indexed parameters
|
|
1322
|
-
* @returns Unwatch function to stop listening
|
|
1323
|
-
*/
|
|
1324
|
-
Transfer: (callback: (event: {
|
|
1325
|
-
from: `0x${string}`;
|
|
1326
|
-
to: `0x${string}`;
|
|
1327
|
-
value: bigint;
|
|
1328
|
-
}) => void, filter?: {
|
|
1329
|
-
from?: `0x${string}` | `0x${string}`[] | null;
|
|
1330
|
-
to?: `0x${string}` | `0x${string}`[] | null;
|
|
1331
|
-
}) => () => void;
|
|
1332
|
-
/**
|
|
1333
|
-
* Watch TransferfeeUpdated events
|
|
1334
|
-
* @param callback Function to call when event is emitted
|
|
1335
|
-
* @param filter Optional filter for indexed parameters
|
|
1336
|
-
* @returns Unwatch function to stop listening
|
|
1337
|
-
*/
|
|
1338
|
-
TransferfeeUpdated: (callback: (event: {
|
|
1339
|
-
_fee: bigint;
|
|
1340
|
-
}) => void) => () => void;
|
|
1341
|
-
};
|
|
1342
|
-
}
|