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