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