@gitmyabi/xai 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/contracts/XAI_json.d.ts +70 -628
- package/contracts/XAI_json.js +66 -574
- package/contracts/XAI_json.ts +87 -811
- package/package.json +3 -3
package/contracts/XAI_json.js
CHANGED
|
@@ -38,38 +38,6 @@ exports.XAI_jsonAbi = [
|
|
|
38
38
|
"name": "Approval",
|
|
39
39
|
"type": "event"
|
|
40
40
|
},
|
|
41
|
-
{
|
|
42
|
-
"anonymous": false,
|
|
43
|
-
"inputs": [
|
|
44
|
-
{
|
|
45
|
-
"indexed": false,
|
|
46
|
-
"internalType": "uint256",
|
|
47
|
-
"name": "_maxTxAmount",
|
|
48
|
-
"type": "uint256"
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
"name": "MaxTxAmountUpdated",
|
|
52
|
-
"type": "event"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"anonymous": false,
|
|
56
|
-
"inputs": [
|
|
57
|
-
{
|
|
58
|
-
"indexed": true,
|
|
59
|
-
"internalType": "address",
|
|
60
|
-
"name": "previousOwner",
|
|
61
|
-
"type": "address"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"indexed": true,
|
|
65
|
-
"internalType": "address",
|
|
66
|
-
"name": "newOwner",
|
|
67
|
-
"type": "address"
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
"name": "OwnershipTransferred",
|
|
71
|
-
"type": "event"
|
|
72
|
-
},
|
|
73
41
|
{
|
|
74
42
|
"anonymous": false,
|
|
75
43
|
"inputs": [
|
|
@@ -95,64 +63,6 @@ exports.XAI_jsonAbi = [
|
|
|
95
63
|
"name": "Transfer",
|
|
96
64
|
"type": "event"
|
|
97
65
|
},
|
|
98
|
-
{
|
|
99
|
-
"inputs": [
|
|
100
|
-
{
|
|
101
|
-
"internalType": "address",
|
|
102
|
-
"name": "",
|
|
103
|
-
"type": "address"
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
"name": "_buyMap",
|
|
107
|
-
"outputs": [
|
|
108
|
-
{
|
|
109
|
-
"internalType": "uint256",
|
|
110
|
-
"name": "",
|
|
111
|
-
"type": "uint256"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"stateMutability": "view",
|
|
115
|
-
"type": "function"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"inputs": [],
|
|
119
|
-
"name": "_maxTxAmount",
|
|
120
|
-
"outputs": [
|
|
121
|
-
{
|
|
122
|
-
"internalType": "uint256",
|
|
123
|
-
"name": "",
|
|
124
|
-
"type": "uint256"
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
"stateMutability": "view",
|
|
128
|
-
"type": "function"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"inputs": [],
|
|
132
|
-
"name": "_maxWalletSize",
|
|
133
|
-
"outputs": [
|
|
134
|
-
{
|
|
135
|
-
"internalType": "uint256",
|
|
136
|
-
"name": "",
|
|
137
|
-
"type": "uint256"
|
|
138
|
-
}
|
|
139
|
-
],
|
|
140
|
-
"stateMutability": "view",
|
|
141
|
-
"type": "function"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"inputs": [],
|
|
145
|
-
"name": "_swapTokensAtAmount",
|
|
146
|
-
"outputs": [
|
|
147
|
-
{
|
|
148
|
-
"internalType": "uint256",
|
|
149
|
-
"name": "",
|
|
150
|
-
"type": "uint256"
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
"stateMutability": "view",
|
|
154
|
-
"type": "function"
|
|
155
|
-
},
|
|
156
66
|
{
|
|
157
67
|
"inputs": [
|
|
158
68
|
{
|
|
@@ -223,12 +133,12 @@ exports.XAI_jsonAbi = [
|
|
|
223
133
|
{
|
|
224
134
|
"inputs": [
|
|
225
135
|
{
|
|
226
|
-
"internalType": "
|
|
227
|
-
"name": "
|
|
228
|
-
"type": "
|
|
136
|
+
"internalType": "uint256",
|
|
137
|
+
"name": "amount",
|
|
138
|
+
"type": "uint256"
|
|
229
139
|
}
|
|
230
140
|
],
|
|
231
|
-
"name": "
|
|
141
|
+
"name": "burn",
|
|
232
142
|
"outputs": [],
|
|
233
143
|
"stateMutability": "nonpayable",
|
|
234
144
|
"type": "function"
|
|
@@ -237,19 +147,18 @@ exports.XAI_jsonAbi = [
|
|
|
237
147
|
"inputs": [
|
|
238
148
|
{
|
|
239
149
|
"internalType": "address",
|
|
240
|
-
"name": "",
|
|
150
|
+
"name": "account",
|
|
241
151
|
"type": "address"
|
|
242
|
-
}
|
|
243
|
-
],
|
|
244
|
-
"name": "bots",
|
|
245
|
-
"outputs": [
|
|
152
|
+
},
|
|
246
153
|
{
|
|
247
|
-
"internalType": "
|
|
248
|
-
"name": "",
|
|
249
|
-
"type": "
|
|
154
|
+
"internalType": "uint256",
|
|
155
|
+
"name": "amount",
|
|
156
|
+
"type": "uint256"
|
|
250
157
|
}
|
|
251
158
|
],
|
|
252
|
-
"
|
|
159
|
+
"name": "burnFrom",
|
|
160
|
+
"outputs": [],
|
|
161
|
+
"stateMutability": "nonpayable",
|
|
253
162
|
"type": "function"
|
|
254
163
|
},
|
|
255
164
|
{
|
|
@@ -262,157 +171,60 @@ exports.XAI_jsonAbi = [
|
|
|
262
171
|
"type": "uint8"
|
|
263
172
|
}
|
|
264
173
|
],
|
|
265
|
-
"stateMutability": "
|
|
174
|
+
"stateMutability": "view",
|
|
266
175
|
"type": "function"
|
|
267
176
|
},
|
|
268
177
|
{
|
|
269
178
|
"inputs": [
|
|
270
|
-
{
|
|
271
|
-
"internalType": "address[]",
|
|
272
|
-
"name": "accounts",
|
|
273
|
-
"type": "address[]"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"internalType": "bool",
|
|
277
|
-
"name": "excluded",
|
|
278
|
-
"type": "bool"
|
|
279
|
-
}
|
|
280
|
-
],
|
|
281
|
-
"name": "excludeMultipleAccountsFromFees",
|
|
282
|
-
"outputs": [],
|
|
283
|
-
"stateMutability": "nonpayable",
|
|
284
|
-
"type": "function"
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
"inputs": [],
|
|
288
|
-
"name": "manualsend",
|
|
289
|
-
"outputs": [],
|
|
290
|
-
"stateMutability": "nonpayable",
|
|
291
|
-
"type": "function"
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"inputs": [],
|
|
295
|
-
"name": "manualswap",
|
|
296
|
-
"outputs": [],
|
|
297
|
-
"stateMutability": "nonpayable",
|
|
298
|
-
"type": "function"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"inputs": [],
|
|
302
|
-
"name": "name",
|
|
303
|
-
"outputs": [
|
|
304
|
-
{
|
|
305
|
-
"internalType": "string",
|
|
306
|
-
"name": "",
|
|
307
|
-
"type": "string"
|
|
308
|
-
}
|
|
309
|
-
],
|
|
310
|
-
"stateMutability": "pure",
|
|
311
|
-
"type": "function"
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"inputs": [],
|
|
315
|
-
"name": "owner",
|
|
316
|
-
"outputs": [
|
|
317
179
|
{
|
|
318
180
|
"internalType": "address",
|
|
319
|
-
"name": "",
|
|
181
|
+
"name": "spender",
|
|
320
182
|
"type": "address"
|
|
321
|
-
}
|
|
322
|
-
],
|
|
323
|
-
"stateMutability": "view",
|
|
324
|
-
"type": "function"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"inputs": [],
|
|
328
|
-
"name": "renounceOwnership",
|
|
329
|
-
"outputs": [],
|
|
330
|
-
"stateMutability": "nonpayable",
|
|
331
|
-
"type": "function"
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
"inputs": [
|
|
335
|
-
{
|
|
336
|
-
"internalType": "uint256",
|
|
337
|
-
"name": "redisFeeOnBuy",
|
|
338
|
-
"type": "uint256"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"internalType": "uint256",
|
|
342
|
-
"name": "redisFeeOnSell",
|
|
343
|
-
"type": "uint256"
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
"internalType": "uint256",
|
|
347
|
-
"name": "taxFeeOnBuy",
|
|
348
|
-
"type": "uint256"
|
|
349
183
|
},
|
|
350
184
|
{
|
|
351
185
|
"internalType": "uint256",
|
|
352
|
-
"name": "
|
|
186
|
+
"name": "subtractedValue",
|
|
353
187
|
"type": "uint256"
|
|
354
188
|
}
|
|
355
189
|
],
|
|
356
|
-
"name": "
|
|
357
|
-
"outputs": [
|
|
358
|
-
"stateMutability": "nonpayable",
|
|
359
|
-
"type": "function"
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
"inputs": [
|
|
190
|
+
"name": "decreaseAllowance",
|
|
191
|
+
"outputs": [
|
|
363
192
|
{
|
|
364
|
-
"internalType": "
|
|
365
|
-
"name": "
|
|
366
|
-
"type": "
|
|
193
|
+
"internalType": "bool",
|
|
194
|
+
"name": "",
|
|
195
|
+
"type": "bool"
|
|
367
196
|
}
|
|
368
197
|
],
|
|
369
|
-
"name": "setMaxTxnAmount",
|
|
370
|
-
"outputs": [],
|
|
371
198
|
"stateMutability": "nonpayable",
|
|
372
199
|
"type": "function"
|
|
373
200
|
},
|
|
374
201
|
{
|
|
375
202
|
"inputs": [
|
|
376
203
|
{
|
|
377
|
-
"internalType": "
|
|
378
|
-
"name": "
|
|
379
|
-
"type": "
|
|
380
|
-
}
|
|
381
|
-
],
|
|
382
|
-
"name": "setMaxWalletSize",
|
|
383
|
-
"outputs": [],
|
|
384
|
-
"stateMutability": "nonpayable",
|
|
385
|
-
"type": "function"
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
"inputs": [
|
|
204
|
+
"internalType": "address",
|
|
205
|
+
"name": "spender",
|
|
206
|
+
"type": "address"
|
|
207
|
+
},
|
|
389
208
|
{
|
|
390
209
|
"internalType": "uint256",
|
|
391
|
-
"name": "
|
|
210
|
+
"name": "addedValue",
|
|
392
211
|
"type": "uint256"
|
|
393
212
|
}
|
|
394
213
|
],
|
|
395
|
-
"name": "
|
|
396
|
-
"outputs": [
|
|
397
|
-
"stateMutability": "nonpayable",
|
|
398
|
-
"type": "function"
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
"inputs": [
|
|
214
|
+
"name": "increaseAllowance",
|
|
215
|
+
"outputs": [
|
|
402
216
|
{
|
|
403
217
|
"internalType": "bool",
|
|
404
|
-
"name": "
|
|
218
|
+
"name": "",
|
|
405
219
|
"type": "bool"
|
|
406
220
|
}
|
|
407
221
|
],
|
|
408
|
-
"name": "setTrading",
|
|
409
|
-
"outputs": [],
|
|
410
222
|
"stateMutability": "nonpayable",
|
|
411
223
|
"type": "function"
|
|
412
224
|
},
|
|
413
225
|
{
|
|
414
226
|
"inputs": [],
|
|
415
|
-
"name": "
|
|
227
|
+
"name": "name",
|
|
416
228
|
"outputs": [
|
|
417
229
|
{
|
|
418
230
|
"internalType": "string",
|
|
@@ -420,20 +232,20 @@ exports.XAI_jsonAbi = [
|
|
|
420
232
|
"type": "string"
|
|
421
233
|
}
|
|
422
234
|
],
|
|
423
|
-
"stateMutability": "
|
|
235
|
+
"stateMutability": "view",
|
|
424
236
|
"type": "function"
|
|
425
237
|
},
|
|
426
238
|
{
|
|
427
|
-
"inputs": [
|
|
239
|
+
"inputs": [],
|
|
240
|
+
"name": "symbol",
|
|
241
|
+
"outputs": [
|
|
428
242
|
{
|
|
429
|
-
"internalType": "
|
|
430
|
-
"name": "
|
|
431
|
-
"type": "
|
|
243
|
+
"internalType": "string",
|
|
244
|
+
"name": "",
|
|
245
|
+
"type": "string"
|
|
432
246
|
}
|
|
433
247
|
],
|
|
434
|
-
"
|
|
435
|
-
"outputs": [],
|
|
436
|
-
"stateMutability": "nonpayable",
|
|
248
|
+
"stateMutability": "view",
|
|
437
249
|
"type": "function"
|
|
438
250
|
},
|
|
439
251
|
{
|
|
@@ -446,7 +258,7 @@ exports.XAI_jsonAbi = [
|
|
|
446
258
|
"type": "uint256"
|
|
447
259
|
}
|
|
448
260
|
],
|
|
449
|
-
"stateMutability": "
|
|
261
|
+
"stateMutability": "view",
|
|
450
262
|
"type": "function"
|
|
451
263
|
},
|
|
452
264
|
{
|
|
@@ -501,62 +313,6 @@ exports.XAI_jsonAbi = [
|
|
|
501
313
|
],
|
|
502
314
|
"stateMutability": "nonpayable",
|
|
503
315
|
"type": "function"
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
"inputs": [
|
|
507
|
-
{
|
|
508
|
-
"internalType": "address",
|
|
509
|
-
"name": "newOwner",
|
|
510
|
-
"type": "address"
|
|
511
|
-
}
|
|
512
|
-
],
|
|
513
|
-
"name": "transferOwnership",
|
|
514
|
-
"outputs": [],
|
|
515
|
-
"stateMutability": "nonpayable",
|
|
516
|
-
"type": "function"
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
"inputs": [
|
|
520
|
-
{
|
|
521
|
-
"internalType": "address",
|
|
522
|
-
"name": "notbot",
|
|
523
|
-
"type": "address"
|
|
524
|
-
}
|
|
525
|
-
],
|
|
526
|
-
"name": "unblockBot",
|
|
527
|
-
"outputs": [],
|
|
528
|
-
"stateMutability": "nonpayable",
|
|
529
|
-
"type": "function"
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
"inputs": [],
|
|
533
|
-
"name": "uniswapV2Pair",
|
|
534
|
-
"outputs": [
|
|
535
|
-
{
|
|
536
|
-
"internalType": "address",
|
|
537
|
-
"name": "",
|
|
538
|
-
"type": "address"
|
|
539
|
-
}
|
|
540
|
-
],
|
|
541
|
-
"stateMutability": "view",
|
|
542
|
-
"type": "function"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"inputs": [],
|
|
546
|
-
"name": "uniswapV2Router",
|
|
547
|
-
"outputs": [
|
|
548
|
-
{
|
|
549
|
-
"internalType": "contract IUniswapV2Router02",
|
|
550
|
-
"name": "",
|
|
551
|
-
"type": "address"
|
|
552
|
-
}
|
|
553
|
-
],
|
|
554
|
-
"stateMutability": "view",
|
|
555
|
-
"type": "function"
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
"stateMutability": "payable",
|
|
559
|
-
"type": "receive"
|
|
560
316
|
}
|
|
561
317
|
];
|
|
562
318
|
/**
|
|
@@ -616,34 +372,6 @@ class XAI_json {
|
|
|
616
372
|
getContract() {
|
|
617
373
|
return this.contract;
|
|
618
374
|
}
|
|
619
|
-
/**
|
|
620
|
-
* _buyMap
|
|
621
|
-
* view
|
|
622
|
-
*/
|
|
623
|
-
async _buyMap(arg0) {
|
|
624
|
-
return this.contract.read._buyMap([arg0]);
|
|
625
|
-
}
|
|
626
|
-
/**
|
|
627
|
-
* _maxTxAmount
|
|
628
|
-
* view
|
|
629
|
-
*/
|
|
630
|
-
async _maxTxAmount() {
|
|
631
|
-
return this.contract.read._maxTxAmount();
|
|
632
|
-
}
|
|
633
|
-
/**
|
|
634
|
-
* _maxWalletSize
|
|
635
|
-
* view
|
|
636
|
-
*/
|
|
637
|
-
async _maxWalletSize() {
|
|
638
|
-
return this.contract.read._maxWalletSize();
|
|
639
|
-
}
|
|
640
|
-
/**
|
|
641
|
-
* _swapTokensAtAmount
|
|
642
|
-
* view
|
|
643
|
-
*/
|
|
644
|
-
async _swapTokensAtAmount() {
|
|
645
|
-
return this.contract.read._swapTokensAtAmount();
|
|
646
|
-
}
|
|
647
375
|
/**
|
|
648
376
|
* allowance
|
|
649
377
|
* view
|
|
@@ -658,62 +386,34 @@ class XAI_json {
|
|
|
658
386
|
async balanceOf(account) {
|
|
659
387
|
return this.contract.read.balanceOf([account]);
|
|
660
388
|
}
|
|
661
|
-
/**
|
|
662
|
-
* bots
|
|
663
|
-
* view
|
|
664
|
-
*/
|
|
665
|
-
async bots(arg0) {
|
|
666
|
-
return this.contract.read.bots([arg0]);
|
|
667
|
-
}
|
|
668
389
|
/**
|
|
669
390
|
* decimals
|
|
670
|
-
*
|
|
391
|
+
* view
|
|
671
392
|
*/
|
|
672
393
|
async decimals() {
|
|
673
394
|
return this.contract.read.decimals();
|
|
674
395
|
}
|
|
675
396
|
/**
|
|
676
397
|
* name
|
|
677
|
-
*
|
|
398
|
+
* view
|
|
678
399
|
*/
|
|
679
400
|
async name() {
|
|
680
401
|
return this.contract.read.name();
|
|
681
402
|
}
|
|
682
|
-
/**
|
|
683
|
-
* owner
|
|
684
|
-
* view
|
|
685
|
-
*/
|
|
686
|
-
async owner() {
|
|
687
|
-
return this.contract.read.owner();
|
|
688
|
-
}
|
|
689
403
|
/**
|
|
690
404
|
* symbol
|
|
691
|
-
*
|
|
405
|
+
* view
|
|
692
406
|
*/
|
|
693
407
|
async symbol() {
|
|
694
408
|
return this.contract.read.symbol();
|
|
695
409
|
}
|
|
696
410
|
/**
|
|
697
411
|
* totalSupply
|
|
698
|
-
*
|
|
412
|
+
* view
|
|
699
413
|
*/
|
|
700
414
|
async totalSupply() {
|
|
701
415
|
return this.contract.read.totalSupply();
|
|
702
416
|
}
|
|
703
|
-
/**
|
|
704
|
-
* uniswapV2Pair
|
|
705
|
-
* view
|
|
706
|
-
*/
|
|
707
|
-
async uniswapV2Pair() {
|
|
708
|
-
return this.contract.read.uniswapV2Pair();
|
|
709
|
-
}
|
|
710
|
-
/**
|
|
711
|
-
* uniswapV2Router
|
|
712
|
-
* view
|
|
713
|
-
*/
|
|
714
|
-
async uniswapV2Router() {
|
|
715
|
-
return this.contract.read.uniswapV2Router();
|
|
716
|
-
}
|
|
717
417
|
/**
|
|
718
418
|
* approve
|
|
719
419
|
* nonpayable
|
|
@@ -726,125 +426,48 @@ class XAI_json {
|
|
|
726
426
|
return this.contract.write.approve([spender, amount], options);
|
|
727
427
|
}
|
|
728
428
|
/**
|
|
729
|
-
*
|
|
730
|
-
* nonpayable
|
|
731
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
732
|
-
*/
|
|
733
|
-
async blockBots(bots_, options) {
|
|
734
|
-
if (!this.contract.write) {
|
|
735
|
-
throw new Error('Wallet client is required for write operations');
|
|
736
|
-
}
|
|
737
|
-
return this.contract.write.blockBots([bots_], options);
|
|
738
|
-
}
|
|
739
|
-
/**
|
|
740
|
-
* excludeMultipleAccountsFromFees
|
|
741
|
-
* nonpayable
|
|
742
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
743
|
-
*/
|
|
744
|
-
async excludeMultipleAccountsFromFees(accounts, excluded, options) {
|
|
745
|
-
if (!this.contract.write) {
|
|
746
|
-
throw new Error('Wallet client is required for write operations');
|
|
747
|
-
}
|
|
748
|
-
return this.contract.write.excludeMultipleAccountsFromFees([accounts, excluded], options);
|
|
749
|
-
}
|
|
750
|
-
/**
|
|
751
|
-
* manualsend
|
|
752
|
-
* nonpayable
|
|
753
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
754
|
-
*/
|
|
755
|
-
async manualsend(options) {
|
|
756
|
-
if (!this.contract.write) {
|
|
757
|
-
throw new Error('Wallet client is required for write operations');
|
|
758
|
-
}
|
|
759
|
-
return this.contract.write.manualsend(options);
|
|
760
|
-
}
|
|
761
|
-
/**
|
|
762
|
-
* manualswap
|
|
763
|
-
* nonpayable
|
|
764
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
765
|
-
*/
|
|
766
|
-
async manualswap(options) {
|
|
767
|
-
if (!this.contract.write) {
|
|
768
|
-
throw new Error('Wallet client is required for write operations');
|
|
769
|
-
}
|
|
770
|
-
return this.contract.write.manualswap(options);
|
|
771
|
-
}
|
|
772
|
-
/**
|
|
773
|
-
* renounceOwnership
|
|
429
|
+
* burn
|
|
774
430
|
* nonpayable
|
|
775
431
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
776
432
|
*/
|
|
777
|
-
async
|
|
433
|
+
async burn(amount, options) {
|
|
778
434
|
if (!this.contract.write) {
|
|
779
435
|
throw new Error('Wallet client is required for write operations');
|
|
780
436
|
}
|
|
781
|
-
return this.contract.write.
|
|
437
|
+
return this.contract.write.burn([amount], options);
|
|
782
438
|
}
|
|
783
439
|
/**
|
|
784
|
-
*
|
|
440
|
+
* burnFrom
|
|
785
441
|
* nonpayable
|
|
786
442
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
787
443
|
*/
|
|
788
|
-
async
|
|
444
|
+
async burnFrom(account, amount, options) {
|
|
789
445
|
if (!this.contract.write) {
|
|
790
446
|
throw new Error('Wallet client is required for write operations');
|
|
791
447
|
}
|
|
792
|
-
return this.contract.write.
|
|
448
|
+
return this.contract.write.burnFrom([account, amount], options);
|
|
793
449
|
}
|
|
794
450
|
/**
|
|
795
|
-
*
|
|
451
|
+
* decreaseAllowance
|
|
796
452
|
* nonpayable
|
|
797
453
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
798
454
|
*/
|
|
799
|
-
async
|
|
455
|
+
async decreaseAllowance(spender, subtractedValue, options) {
|
|
800
456
|
if (!this.contract.write) {
|
|
801
457
|
throw new Error('Wallet client is required for write operations');
|
|
802
458
|
}
|
|
803
|
-
return this.contract.write.
|
|
459
|
+
return this.contract.write.decreaseAllowance([spender, subtractedValue], options);
|
|
804
460
|
}
|
|
805
461
|
/**
|
|
806
|
-
*
|
|
462
|
+
* increaseAllowance
|
|
807
463
|
* nonpayable
|
|
808
464
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
809
465
|
*/
|
|
810
|
-
async
|
|
466
|
+
async increaseAllowance(spender, addedValue, options) {
|
|
811
467
|
if (!this.contract.write) {
|
|
812
468
|
throw new Error('Wallet client is required for write operations');
|
|
813
469
|
}
|
|
814
|
-
return this.contract.write.
|
|
815
|
-
}
|
|
816
|
-
/**
|
|
817
|
-
* setMinSwapTokensThreshold
|
|
818
|
-
* nonpayable
|
|
819
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
820
|
-
*/
|
|
821
|
-
async setMinSwapTokensThreshold(swapTokensAtAmount, options) {
|
|
822
|
-
if (!this.contract.write) {
|
|
823
|
-
throw new Error('Wallet client is required for write operations');
|
|
824
|
-
}
|
|
825
|
-
return this.contract.write.setMinSwapTokensThreshold([swapTokensAtAmount], options);
|
|
826
|
-
}
|
|
827
|
-
/**
|
|
828
|
-
* setTrading
|
|
829
|
-
* nonpayable
|
|
830
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
831
|
-
*/
|
|
832
|
-
async setTrading(_tradingOpen, options) {
|
|
833
|
-
if (!this.contract.write) {
|
|
834
|
-
throw new Error('Wallet client is required for write operations');
|
|
835
|
-
}
|
|
836
|
-
return this.contract.write.setTrading([_tradingOpen], options);
|
|
837
|
-
}
|
|
838
|
-
/**
|
|
839
|
-
* toggleSwap
|
|
840
|
-
* nonpayable
|
|
841
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
842
|
-
*/
|
|
843
|
-
async toggleSwap(_swapEnabled, options) {
|
|
844
|
-
if (!this.contract.write) {
|
|
845
|
-
throw new Error('Wallet client is required for write operations');
|
|
846
|
-
}
|
|
847
|
-
return this.contract.write.toggleSwap([_swapEnabled], options);
|
|
470
|
+
return this.contract.write.increaseAllowance([spender, addedValue], options);
|
|
848
471
|
}
|
|
849
472
|
/**
|
|
850
473
|
* transfer
|
|
@@ -868,28 +491,6 @@ class XAI_json {
|
|
|
868
491
|
}
|
|
869
492
|
return this.contract.write.transferFrom([sender, recipient, amount], options);
|
|
870
493
|
}
|
|
871
|
-
/**
|
|
872
|
-
* transferOwnership
|
|
873
|
-
* nonpayable
|
|
874
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
875
|
-
*/
|
|
876
|
-
async transferOwnership(newOwner, options) {
|
|
877
|
-
if (!this.contract.write) {
|
|
878
|
-
throw new Error('Wallet client is required for write operations');
|
|
879
|
-
}
|
|
880
|
-
return this.contract.write.transferOwnership([newOwner], options);
|
|
881
|
-
}
|
|
882
|
-
/**
|
|
883
|
-
* unblockBot
|
|
884
|
-
* nonpayable
|
|
885
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
886
|
-
*/
|
|
887
|
-
async unblockBot(notbot, options) {
|
|
888
|
-
if (!this.contract.write) {
|
|
889
|
-
throw new Error('Wallet client is required for write operations');
|
|
890
|
-
}
|
|
891
|
-
return this.contract.write.unblockBot([notbot], options);
|
|
892
|
-
}
|
|
893
494
|
/**
|
|
894
495
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
895
496
|
*
|
|
@@ -913,92 +514,36 @@ class XAI_json {
|
|
|
913
514
|
return contract.simulate.approve([spender, amount], options);
|
|
914
515
|
},
|
|
915
516
|
/**
|
|
916
|
-
* Simulate
|
|
917
|
-
* Returns gas estimate and result without sending transaction
|
|
918
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
919
|
-
*/
|
|
920
|
-
async blockBots(bots_, options) {
|
|
921
|
-
return contract.simulate.blockBots([bots_], options);
|
|
922
|
-
},
|
|
923
|
-
/**
|
|
924
|
-
* Simulate excludeMultipleAccountsFromFees
|
|
925
|
-
* Returns gas estimate and result without sending transaction
|
|
926
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
927
|
-
*/
|
|
928
|
-
async excludeMultipleAccountsFromFees(accounts, excluded, options) {
|
|
929
|
-
return contract.simulate.excludeMultipleAccountsFromFees([accounts, excluded], options);
|
|
930
|
-
},
|
|
931
|
-
/**
|
|
932
|
-
* Simulate manualsend
|
|
933
|
-
* Returns gas estimate and result without sending transaction
|
|
934
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
935
|
-
*/
|
|
936
|
-
async manualsend(options) {
|
|
937
|
-
return contract.simulate.manualsend(options);
|
|
938
|
-
},
|
|
939
|
-
/**
|
|
940
|
-
* Simulate manualswap
|
|
517
|
+
* Simulate burn
|
|
941
518
|
* Returns gas estimate and result without sending transaction
|
|
942
519
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
943
520
|
*/
|
|
944
|
-
async
|
|
945
|
-
return contract.simulate.
|
|
521
|
+
async burn(amount, options) {
|
|
522
|
+
return contract.simulate.burn([amount], options);
|
|
946
523
|
},
|
|
947
524
|
/**
|
|
948
|
-
* Simulate
|
|
525
|
+
* Simulate burnFrom
|
|
949
526
|
* Returns gas estimate and result without sending transaction
|
|
950
527
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
951
528
|
*/
|
|
952
|
-
async
|
|
953
|
-
return contract.simulate.
|
|
529
|
+
async burnFrom(account, amount, options) {
|
|
530
|
+
return contract.simulate.burnFrom([account, amount], options);
|
|
954
531
|
},
|
|
955
532
|
/**
|
|
956
|
-
* Simulate
|
|
533
|
+
* Simulate decreaseAllowance
|
|
957
534
|
* Returns gas estimate and result without sending transaction
|
|
958
535
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
959
536
|
*/
|
|
960
|
-
async
|
|
961
|
-
return contract.simulate.
|
|
537
|
+
async decreaseAllowance(spender, subtractedValue, options) {
|
|
538
|
+
return contract.simulate.decreaseAllowance([spender, subtractedValue], options);
|
|
962
539
|
},
|
|
963
540
|
/**
|
|
964
|
-
* Simulate
|
|
541
|
+
* Simulate increaseAllowance
|
|
965
542
|
* Returns gas estimate and result without sending transaction
|
|
966
543
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
967
544
|
*/
|
|
968
|
-
async
|
|
969
|
-
return contract.simulate.
|
|
970
|
-
},
|
|
971
|
-
/**
|
|
972
|
-
* Simulate setMaxWalletSize
|
|
973
|
-
* Returns gas estimate and result without sending transaction
|
|
974
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
975
|
-
*/
|
|
976
|
-
async setMaxWalletSize(maxWalletSize, options) {
|
|
977
|
-
return contract.simulate.setMaxWalletSize([maxWalletSize], options);
|
|
978
|
-
},
|
|
979
|
-
/**
|
|
980
|
-
* Simulate setMinSwapTokensThreshold
|
|
981
|
-
* Returns gas estimate and result without sending transaction
|
|
982
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
983
|
-
*/
|
|
984
|
-
async setMinSwapTokensThreshold(swapTokensAtAmount, options) {
|
|
985
|
-
return contract.simulate.setMinSwapTokensThreshold([swapTokensAtAmount], options);
|
|
986
|
-
},
|
|
987
|
-
/**
|
|
988
|
-
* Simulate setTrading
|
|
989
|
-
* Returns gas estimate and result without sending transaction
|
|
990
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
991
|
-
*/
|
|
992
|
-
async setTrading(_tradingOpen, options) {
|
|
993
|
-
return contract.simulate.setTrading([_tradingOpen], options);
|
|
994
|
-
},
|
|
995
|
-
/**
|
|
996
|
-
* Simulate toggleSwap
|
|
997
|
-
* Returns gas estimate and result without sending transaction
|
|
998
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
999
|
-
*/
|
|
1000
|
-
async toggleSwap(_swapEnabled, options) {
|
|
1001
|
-
return contract.simulate.toggleSwap([_swapEnabled], options);
|
|
545
|
+
async increaseAllowance(spender, addedValue, options) {
|
|
546
|
+
return contract.simulate.increaseAllowance([spender, addedValue], options);
|
|
1002
547
|
},
|
|
1003
548
|
/**
|
|
1004
549
|
* Simulate transfer
|
|
@@ -1015,22 +560,6 @@ class XAI_json {
|
|
|
1015
560
|
*/
|
|
1016
561
|
async transferFrom(sender, recipient, amount, options) {
|
|
1017
562
|
return contract.simulate.transferFrom([sender, recipient, amount], options);
|
|
1018
|
-
},
|
|
1019
|
-
/**
|
|
1020
|
-
* Simulate transferOwnership
|
|
1021
|
-
* Returns gas estimate and result without sending transaction
|
|
1022
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1023
|
-
*/
|
|
1024
|
-
async transferOwnership(newOwner, options) {
|
|
1025
|
-
return contract.simulate.transferOwnership([newOwner], options);
|
|
1026
|
-
},
|
|
1027
|
-
/**
|
|
1028
|
-
* Simulate unblockBot
|
|
1029
|
-
* Returns gas estimate and result without sending transaction
|
|
1030
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1031
|
-
*/
|
|
1032
|
-
async unblockBot(notbot, options) {
|
|
1033
|
-
return contract.simulate.unblockBot([notbot], options);
|
|
1034
563
|
}
|
|
1035
564
|
};
|
|
1036
565
|
}
|
|
@@ -1067,43 +596,6 @@ class XAI_json {
|
|
|
1067
596
|
},
|
|
1068
597
|
});
|
|
1069
598
|
},
|
|
1070
|
-
/**
|
|
1071
|
-
* Watch MaxTxAmountUpdated events
|
|
1072
|
-
* @param callback Function to call when event is emitted
|
|
1073
|
-
* @param filter Optional filter for indexed parameters
|
|
1074
|
-
* @returns Unwatch function to stop listening
|
|
1075
|
-
*/
|
|
1076
|
-
MaxTxAmountUpdated: (callback) => {
|
|
1077
|
-
return this.publicClient.watchContractEvent({
|
|
1078
|
-
address: this.contractAddress,
|
|
1079
|
-
abi: exports.XAI_jsonAbi,
|
|
1080
|
-
eventName: 'MaxTxAmountUpdated',
|
|
1081
|
-
onLogs: (logs) => {
|
|
1082
|
-
logs.forEach((log) => {
|
|
1083
|
-
callback(log.args);
|
|
1084
|
-
});
|
|
1085
|
-
},
|
|
1086
|
-
});
|
|
1087
|
-
},
|
|
1088
|
-
/**
|
|
1089
|
-
* Watch OwnershipTransferred events
|
|
1090
|
-
* @param callback Function to call when event is emitted
|
|
1091
|
-
* @param filter Optional filter for indexed parameters
|
|
1092
|
-
* @returns Unwatch function to stop listening
|
|
1093
|
-
*/
|
|
1094
|
-
OwnershipTransferred: (callback, filter) => {
|
|
1095
|
-
return this.publicClient.watchContractEvent({
|
|
1096
|
-
address: this.contractAddress,
|
|
1097
|
-
abi: exports.XAI_jsonAbi,
|
|
1098
|
-
eventName: 'OwnershipTransferred',
|
|
1099
|
-
args: filter,
|
|
1100
|
-
onLogs: (logs) => {
|
|
1101
|
-
logs.forEach((log) => {
|
|
1102
|
-
callback(log.args);
|
|
1103
|
-
});
|
|
1104
|
-
},
|
|
1105
|
-
});
|
|
1106
|
-
},
|
|
1107
599
|
/**
|
|
1108
600
|
* Watch Transfer events
|
|
1109
601
|
* @param callback Function to call when event is emitted
|