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