@gitmyabi/xai 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/contracts/{SDSHD_json.d.ts → XAI_json.d.ts} +481 -218
- package/contracts/{SDSHD_json.js → XAI_json.js} +464 -271
- package/contracts/{SDSHD_json.ts → XAI_json.ts} +622 -286
- 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,97 +1,13 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* XAI_json ABI
|
|
4
4
|
*
|
|
5
5
|
* This ABI is typed using viem's type system for full type safety.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
8
|
-
readonly inputs: readonly [
|
|
9
|
-
readonly internalType: "address";
|
|
10
|
-
readonly name: "swapRouter_";
|
|
11
|
-
readonly type: "address";
|
|
12
|
-
}];
|
|
7
|
+
export declare const XAI_jsonAbi: readonly [{
|
|
8
|
+
readonly inputs: readonly [];
|
|
13
9
|
readonly stateMutability: "nonpayable";
|
|
14
10
|
readonly type: "constructor";
|
|
15
|
-
}, {
|
|
16
|
-
readonly inputs: readonly [{
|
|
17
|
-
readonly internalType: "address";
|
|
18
|
-
readonly name: "spender";
|
|
19
|
-
readonly type: "address";
|
|
20
|
-
}, {
|
|
21
|
-
readonly internalType: "uint256";
|
|
22
|
-
readonly name: "allowance";
|
|
23
|
-
readonly type: "uint256";
|
|
24
|
-
}, {
|
|
25
|
-
readonly internalType: "uint256";
|
|
26
|
-
readonly name: "needed";
|
|
27
|
-
readonly type: "uint256";
|
|
28
|
-
}];
|
|
29
|
-
readonly name: "ERC20InsufficientAllowance";
|
|
30
|
-
readonly type: "error";
|
|
31
|
-
}, {
|
|
32
|
-
readonly inputs: readonly [{
|
|
33
|
-
readonly internalType: "address";
|
|
34
|
-
readonly name: "sender";
|
|
35
|
-
readonly type: "address";
|
|
36
|
-
}, {
|
|
37
|
-
readonly internalType: "uint256";
|
|
38
|
-
readonly name: "balance";
|
|
39
|
-
readonly type: "uint256";
|
|
40
|
-
}, {
|
|
41
|
-
readonly internalType: "uint256";
|
|
42
|
-
readonly name: "needed";
|
|
43
|
-
readonly type: "uint256";
|
|
44
|
-
}];
|
|
45
|
-
readonly name: "ERC20InsufficientBalance";
|
|
46
|
-
readonly type: "error";
|
|
47
|
-
}, {
|
|
48
|
-
readonly inputs: readonly [{
|
|
49
|
-
readonly internalType: "address";
|
|
50
|
-
readonly name: "approver";
|
|
51
|
-
readonly type: "address";
|
|
52
|
-
}];
|
|
53
|
-
readonly name: "ERC20InvalidApprover";
|
|
54
|
-
readonly type: "error";
|
|
55
|
-
}, {
|
|
56
|
-
readonly inputs: readonly [{
|
|
57
|
-
readonly internalType: "address";
|
|
58
|
-
readonly name: "receiver";
|
|
59
|
-
readonly type: "address";
|
|
60
|
-
}];
|
|
61
|
-
readonly name: "ERC20InvalidReceiver";
|
|
62
|
-
readonly type: "error";
|
|
63
|
-
}, {
|
|
64
|
-
readonly inputs: readonly [{
|
|
65
|
-
readonly internalType: "address";
|
|
66
|
-
readonly name: "sender";
|
|
67
|
-
readonly type: "address";
|
|
68
|
-
}];
|
|
69
|
-
readonly name: "ERC20InvalidSender";
|
|
70
|
-
readonly type: "error";
|
|
71
|
-
}, {
|
|
72
|
-
readonly inputs: readonly [{
|
|
73
|
-
readonly internalType: "address";
|
|
74
|
-
readonly name: "spender";
|
|
75
|
-
readonly type: "address";
|
|
76
|
-
}];
|
|
77
|
-
readonly name: "ERC20InvalidSpender";
|
|
78
|
-
readonly type: "error";
|
|
79
|
-
}, {
|
|
80
|
-
readonly inputs: readonly [{
|
|
81
|
-
readonly internalType: "address";
|
|
82
|
-
readonly name: "owner";
|
|
83
|
-
readonly type: "address";
|
|
84
|
-
}];
|
|
85
|
-
readonly name: "OwnableInvalidOwner";
|
|
86
|
-
readonly type: "error";
|
|
87
|
-
}, {
|
|
88
|
-
readonly inputs: readonly [{
|
|
89
|
-
readonly internalType: "address";
|
|
90
|
-
readonly name: "account";
|
|
91
|
-
readonly type: "address";
|
|
92
|
-
}];
|
|
93
|
-
readonly name: "OwnableUnauthorizedAccount";
|
|
94
|
-
readonly type: "error";
|
|
95
11
|
}, {
|
|
96
12
|
readonly anonymous: false;
|
|
97
13
|
readonly inputs: readonly [{
|
|
@@ -112,6 +28,16 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
112
28
|
}];
|
|
113
29
|
readonly name: "Approval";
|
|
114
30
|
readonly type: "event";
|
|
31
|
+
}, {
|
|
32
|
+
readonly anonymous: false;
|
|
33
|
+
readonly inputs: readonly [{
|
|
34
|
+
readonly indexed: false;
|
|
35
|
+
readonly internalType: "uint256";
|
|
36
|
+
readonly name: "_maxTxAmount";
|
|
37
|
+
readonly type: "uint256";
|
|
38
|
+
}];
|
|
39
|
+
readonly name: "MaxTxAmountUpdated";
|
|
40
|
+
readonly type: "event";
|
|
115
41
|
}, {
|
|
116
42
|
readonly anonymous: false;
|
|
117
43
|
readonly inputs: readonly [{
|
|
@@ -149,22 +75,56 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
149
75
|
readonly type: "event";
|
|
150
76
|
}, {
|
|
151
77
|
readonly inputs: readonly [{
|
|
152
|
-
readonly internalType: "address
|
|
153
|
-
readonly name: "
|
|
154
|
-
readonly type: "address
|
|
78
|
+
readonly internalType: "address";
|
|
79
|
+
readonly name: "";
|
|
80
|
+
readonly type: "address";
|
|
155
81
|
}];
|
|
156
|
-
readonly name: "
|
|
157
|
-
readonly outputs: readonly [
|
|
158
|
-
|
|
82
|
+
readonly name: "_buyMap";
|
|
83
|
+
readonly outputs: readonly [{
|
|
84
|
+
readonly internalType: "uint256";
|
|
85
|
+
readonly name: "";
|
|
86
|
+
readonly type: "uint256";
|
|
87
|
+
}];
|
|
88
|
+
readonly stateMutability: "view";
|
|
89
|
+
readonly type: "function";
|
|
90
|
+
}, {
|
|
91
|
+
readonly inputs: readonly [];
|
|
92
|
+
readonly name: "_maxTxAmount";
|
|
93
|
+
readonly outputs: readonly [{
|
|
94
|
+
readonly internalType: "uint256";
|
|
95
|
+
readonly name: "";
|
|
96
|
+
readonly type: "uint256";
|
|
97
|
+
}];
|
|
98
|
+
readonly stateMutability: "view";
|
|
99
|
+
readonly type: "function";
|
|
100
|
+
}, {
|
|
101
|
+
readonly inputs: readonly [];
|
|
102
|
+
readonly name: "_maxWalletSize";
|
|
103
|
+
readonly outputs: readonly [{
|
|
104
|
+
readonly internalType: "uint256";
|
|
105
|
+
readonly name: "";
|
|
106
|
+
readonly type: "uint256";
|
|
107
|
+
}];
|
|
108
|
+
readonly stateMutability: "view";
|
|
109
|
+
readonly type: "function";
|
|
110
|
+
}, {
|
|
111
|
+
readonly inputs: readonly [];
|
|
112
|
+
readonly name: "_swapTokensAtAmount";
|
|
113
|
+
readonly outputs: readonly [{
|
|
114
|
+
readonly internalType: "uint256";
|
|
115
|
+
readonly name: "";
|
|
116
|
+
readonly type: "uint256";
|
|
117
|
+
}];
|
|
118
|
+
readonly stateMutability: "view";
|
|
159
119
|
readonly type: "function";
|
|
160
120
|
}, {
|
|
161
121
|
readonly inputs: readonly [{
|
|
162
122
|
readonly internalType: "address";
|
|
163
|
-
readonly name: "
|
|
123
|
+
readonly name: "owner";
|
|
164
124
|
readonly type: "address";
|
|
165
125
|
}, {
|
|
166
126
|
readonly internalType: "address";
|
|
167
|
-
readonly name: "
|
|
127
|
+
readonly name: "spender";
|
|
168
128
|
readonly type: "address";
|
|
169
129
|
}];
|
|
170
130
|
readonly name: "allowance";
|
|
@@ -182,7 +142,7 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
182
142
|
readonly type: "address";
|
|
183
143
|
}, {
|
|
184
144
|
readonly internalType: "uint256";
|
|
185
|
-
readonly name: "
|
|
145
|
+
readonly name: "amount";
|
|
186
146
|
readonly type: "uint256";
|
|
187
147
|
}];
|
|
188
148
|
readonly name: "approve";
|
|
@@ -209,18 +169,28 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
209
169
|
readonly type: "function";
|
|
210
170
|
}, {
|
|
211
171
|
readonly inputs: readonly [{
|
|
212
|
-
readonly internalType: "address";
|
|
213
|
-
readonly name: "
|
|
214
|
-
readonly type: "address";
|
|
215
|
-
}, {
|
|
216
|
-
readonly internalType: "uint256";
|
|
217
|
-
readonly name: "amount";
|
|
218
|
-
readonly type: "uint256";
|
|
172
|
+
readonly internalType: "address[]";
|
|
173
|
+
readonly name: "bots_";
|
|
174
|
+
readonly type: "address[]";
|
|
219
175
|
}];
|
|
220
|
-
readonly name: "
|
|
176
|
+
readonly name: "blockBots";
|
|
221
177
|
readonly outputs: readonly [];
|
|
222
178
|
readonly stateMutability: "nonpayable";
|
|
223
179
|
readonly type: "function";
|
|
180
|
+
}, {
|
|
181
|
+
readonly inputs: readonly [{
|
|
182
|
+
readonly internalType: "address";
|
|
183
|
+
readonly name: "";
|
|
184
|
+
readonly type: "address";
|
|
185
|
+
}];
|
|
186
|
+
readonly name: "bots";
|
|
187
|
+
readonly outputs: readonly [{
|
|
188
|
+
readonly internalType: "bool";
|
|
189
|
+
readonly name: "";
|
|
190
|
+
readonly type: "bool";
|
|
191
|
+
}];
|
|
192
|
+
readonly stateMutability: "view";
|
|
193
|
+
readonly type: "function";
|
|
224
194
|
}, {
|
|
225
195
|
readonly inputs: readonly [];
|
|
226
196
|
readonly name: "decimals";
|
|
@@ -229,21 +199,33 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
229
199
|
readonly name: "";
|
|
230
200
|
readonly type: "uint8";
|
|
231
201
|
}];
|
|
232
|
-
readonly stateMutability: "
|
|
202
|
+
readonly stateMutability: "pure";
|
|
233
203
|
readonly type: "function";
|
|
234
204
|
}, {
|
|
235
205
|
readonly inputs: readonly [{
|
|
236
|
-
readonly internalType: "address";
|
|
237
|
-
readonly name: "
|
|
238
|
-
readonly type: "address";
|
|
239
|
-
}
|
|
240
|
-
readonly name: "isInBlackList";
|
|
241
|
-
readonly outputs: readonly [{
|
|
206
|
+
readonly internalType: "address[]";
|
|
207
|
+
readonly name: "accounts";
|
|
208
|
+
readonly type: "address[]";
|
|
209
|
+
}, {
|
|
242
210
|
readonly internalType: "bool";
|
|
243
|
-
readonly name: "";
|
|
211
|
+
readonly name: "excluded";
|
|
244
212
|
readonly type: "bool";
|
|
245
213
|
}];
|
|
246
|
-
readonly
|
|
214
|
+
readonly name: "excludeMultipleAccountsFromFees";
|
|
215
|
+
readonly outputs: readonly [];
|
|
216
|
+
readonly stateMutability: "nonpayable";
|
|
217
|
+
readonly type: "function";
|
|
218
|
+
}, {
|
|
219
|
+
readonly inputs: readonly [];
|
|
220
|
+
readonly name: "manualsend";
|
|
221
|
+
readonly outputs: readonly [];
|
|
222
|
+
readonly stateMutability: "nonpayable";
|
|
223
|
+
readonly type: "function";
|
|
224
|
+
}, {
|
|
225
|
+
readonly inputs: readonly [];
|
|
226
|
+
readonly name: "manualswap";
|
|
227
|
+
readonly outputs: readonly [];
|
|
228
|
+
readonly stateMutability: "nonpayable";
|
|
247
229
|
readonly type: "function";
|
|
248
230
|
}, {
|
|
249
231
|
readonly inputs: readonly [];
|
|
@@ -253,7 +235,7 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
253
235
|
readonly name: "";
|
|
254
236
|
readonly type: "string";
|
|
255
237
|
}];
|
|
256
|
-
readonly stateMutability: "
|
|
238
|
+
readonly stateMutability: "pure";
|
|
257
239
|
readonly type: "function";
|
|
258
240
|
}, {
|
|
259
241
|
readonly inputs: readonly [];
|
|
@@ -267,27 +249,69 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
267
249
|
readonly type: "function";
|
|
268
250
|
}, {
|
|
269
251
|
readonly inputs: readonly [];
|
|
270
|
-
readonly name: "
|
|
271
|
-
readonly outputs: readonly [
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
252
|
+
readonly name: "renounceOwnership";
|
|
253
|
+
readonly outputs: readonly [];
|
|
254
|
+
readonly stateMutability: "nonpayable";
|
|
255
|
+
readonly type: "function";
|
|
256
|
+
}, {
|
|
257
|
+
readonly inputs: readonly [{
|
|
258
|
+
readonly internalType: "uint256";
|
|
259
|
+
readonly name: "redisFeeOnBuy";
|
|
260
|
+
readonly type: "uint256";
|
|
261
|
+
}, {
|
|
262
|
+
readonly internalType: "uint256";
|
|
263
|
+
readonly name: "redisFeeOnSell";
|
|
264
|
+
readonly type: "uint256";
|
|
265
|
+
}, {
|
|
266
|
+
readonly internalType: "uint256";
|
|
267
|
+
readonly name: "taxFeeOnBuy";
|
|
268
|
+
readonly type: "uint256";
|
|
269
|
+
}, {
|
|
270
|
+
readonly internalType: "uint256";
|
|
271
|
+
readonly name: "taxFeeOnSell";
|
|
272
|
+
readonly type: "uint256";
|
|
275
273
|
}];
|
|
276
|
-
readonly
|
|
274
|
+
readonly name: "setFee";
|
|
275
|
+
readonly outputs: readonly [];
|
|
276
|
+
readonly stateMutability: "nonpayable";
|
|
277
277
|
readonly type: "function";
|
|
278
278
|
}, {
|
|
279
279
|
readonly inputs: readonly [{
|
|
280
|
-
readonly internalType: "
|
|
281
|
-
readonly name: "
|
|
282
|
-
readonly type: "
|
|
280
|
+
readonly internalType: "uint256";
|
|
281
|
+
readonly name: "maxTxAmount";
|
|
282
|
+
readonly type: "uint256";
|
|
283
283
|
}];
|
|
284
|
-
readonly name: "
|
|
284
|
+
readonly name: "setMaxTxnAmount";
|
|
285
285
|
readonly outputs: readonly [];
|
|
286
286
|
readonly stateMutability: "nonpayable";
|
|
287
287
|
readonly type: "function";
|
|
288
288
|
}, {
|
|
289
|
-
readonly inputs: readonly [
|
|
290
|
-
|
|
289
|
+
readonly inputs: readonly [{
|
|
290
|
+
readonly internalType: "uint256";
|
|
291
|
+
readonly name: "maxWalletSize";
|
|
292
|
+
readonly type: "uint256";
|
|
293
|
+
}];
|
|
294
|
+
readonly name: "setMaxWalletSize";
|
|
295
|
+
readonly outputs: readonly [];
|
|
296
|
+
readonly stateMutability: "nonpayable";
|
|
297
|
+
readonly type: "function";
|
|
298
|
+
}, {
|
|
299
|
+
readonly inputs: readonly [{
|
|
300
|
+
readonly internalType: "uint256";
|
|
301
|
+
readonly name: "swapTokensAtAmount";
|
|
302
|
+
readonly type: "uint256";
|
|
303
|
+
}];
|
|
304
|
+
readonly name: "setMinSwapTokensThreshold";
|
|
305
|
+
readonly outputs: readonly [];
|
|
306
|
+
readonly stateMutability: "nonpayable";
|
|
307
|
+
readonly type: "function";
|
|
308
|
+
}, {
|
|
309
|
+
readonly inputs: readonly [{
|
|
310
|
+
readonly internalType: "bool";
|
|
311
|
+
readonly name: "_tradingOpen";
|
|
312
|
+
readonly type: "bool";
|
|
313
|
+
}];
|
|
314
|
+
readonly name: "setTrading";
|
|
291
315
|
readonly outputs: readonly [];
|
|
292
316
|
readonly stateMutability: "nonpayable";
|
|
293
317
|
readonly type: "function";
|
|
@@ -299,17 +323,17 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
299
323
|
readonly name: "";
|
|
300
324
|
readonly type: "string";
|
|
301
325
|
}];
|
|
302
|
-
readonly stateMutability: "
|
|
326
|
+
readonly stateMutability: "pure";
|
|
303
327
|
readonly type: "function";
|
|
304
328
|
}, {
|
|
305
|
-
readonly inputs: readonly [
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
readonly
|
|
309
|
-
readonly name: "";
|
|
310
|
-
readonly type: "address";
|
|
329
|
+
readonly inputs: readonly [{
|
|
330
|
+
readonly internalType: "bool";
|
|
331
|
+
readonly name: "_swapEnabled";
|
|
332
|
+
readonly type: "bool";
|
|
311
333
|
}];
|
|
312
|
-
readonly
|
|
334
|
+
readonly name: "toggleSwap";
|
|
335
|
+
readonly outputs: readonly [];
|
|
336
|
+
readonly stateMutability: "nonpayable";
|
|
313
337
|
readonly type: "function";
|
|
314
338
|
}, {
|
|
315
339
|
readonly inputs: readonly [];
|
|
@@ -319,16 +343,16 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
319
343
|
readonly name: "";
|
|
320
344
|
readonly type: "uint256";
|
|
321
345
|
}];
|
|
322
|
-
readonly stateMutability: "
|
|
346
|
+
readonly stateMutability: "pure";
|
|
323
347
|
readonly type: "function";
|
|
324
348
|
}, {
|
|
325
349
|
readonly inputs: readonly [{
|
|
326
350
|
readonly internalType: "address";
|
|
327
|
-
readonly name: "
|
|
351
|
+
readonly name: "recipient";
|
|
328
352
|
readonly type: "address";
|
|
329
353
|
}, {
|
|
330
354
|
readonly internalType: "uint256";
|
|
331
|
-
readonly name: "
|
|
355
|
+
readonly name: "amount";
|
|
332
356
|
readonly type: "uint256";
|
|
333
357
|
}];
|
|
334
358
|
readonly name: "transfer";
|
|
@@ -342,15 +366,15 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
342
366
|
}, {
|
|
343
367
|
readonly inputs: readonly [{
|
|
344
368
|
readonly internalType: "address";
|
|
345
|
-
readonly name: "
|
|
369
|
+
readonly name: "sender";
|
|
346
370
|
readonly type: "address";
|
|
347
371
|
}, {
|
|
348
372
|
readonly internalType: "address";
|
|
349
|
-
readonly name: "
|
|
373
|
+
readonly name: "recipient";
|
|
350
374
|
readonly type: "address";
|
|
351
375
|
}, {
|
|
352
376
|
readonly internalType: "uint256";
|
|
353
|
-
readonly name: "
|
|
377
|
+
readonly name: "amount";
|
|
354
378
|
readonly type: "uint256";
|
|
355
379
|
}];
|
|
356
380
|
readonly name: "transferFrom";
|
|
@@ -373,42 +397,48 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
373
397
|
readonly type: "function";
|
|
374
398
|
}, {
|
|
375
399
|
readonly inputs: readonly [{
|
|
376
|
-
readonly internalType: "address
|
|
377
|
-
readonly name: "
|
|
378
|
-
readonly type: "address
|
|
379
|
-
}, {
|
|
380
|
-
readonly internalType: "bool[]";
|
|
381
|
-
readonly name: "values";
|
|
382
|
-
readonly type: "bool[]";
|
|
400
|
+
readonly internalType: "address";
|
|
401
|
+
readonly name: "notbot";
|
|
402
|
+
readonly type: "address";
|
|
383
403
|
}];
|
|
384
|
-
readonly name: "
|
|
404
|
+
readonly name: "unblockBot";
|
|
385
405
|
readonly outputs: readonly [];
|
|
386
406
|
readonly stateMutability: "nonpayable";
|
|
387
407
|
readonly type: "function";
|
|
388
408
|
}, {
|
|
389
|
-
readonly inputs: readonly [
|
|
409
|
+
readonly inputs: readonly [];
|
|
410
|
+
readonly name: "uniswapV2Pair";
|
|
411
|
+
readonly outputs: readonly [{
|
|
390
412
|
readonly internalType: "address";
|
|
391
|
-
readonly name: "
|
|
413
|
+
readonly name: "";
|
|
392
414
|
readonly type: "address";
|
|
393
415
|
}];
|
|
394
|
-
readonly
|
|
395
|
-
readonly
|
|
396
|
-
|
|
416
|
+
readonly stateMutability: "view";
|
|
417
|
+
readonly type: "function";
|
|
418
|
+
}, {
|
|
419
|
+
readonly inputs: readonly [];
|
|
420
|
+
readonly name: "uniswapV2Router";
|
|
421
|
+
readonly outputs: readonly [{
|
|
422
|
+
readonly internalType: "contract IUniswapV2Router02";
|
|
423
|
+
readonly name: "";
|
|
424
|
+
readonly type: "address";
|
|
425
|
+
}];
|
|
426
|
+
readonly stateMutability: "view";
|
|
397
427
|
readonly type: "function";
|
|
398
428
|
}, {
|
|
399
429
|
readonly stateMutability: "payable";
|
|
400
430
|
readonly type: "receive";
|
|
401
431
|
}];
|
|
402
432
|
/**
|
|
403
|
-
* Type-safe ABI for
|
|
433
|
+
* Type-safe ABI for XAI_json
|
|
404
434
|
*/
|
|
405
|
-
export type
|
|
435
|
+
export type XAI_jsonAbi = typeof XAI_jsonAbi;
|
|
406
436
|
/**
|
|
407
|
-
* Contract instance type for
|
|
437
|
+
* Contract instance type for XAI_json
|
|
408
438
|
*/
|
|
409
|
-
export type
|
|
439
|
+
export type XAI_jsonContract = any;
|
|
410
440
|
/**
|
|
411
|
-
*
|
|
441
|
+
* XAI_json Contract Class
|
|
412
442
|
*
|
|
413
443
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
414
444
|
*
|
|
@@ -416,12 +446,12 @@ export type SDSHD_jsonContract = any;
|
|
|
416
446
|
* ```typescript
|
|
417
447
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
418
448
|
* import { mainnet } from 'viem/chains';
|
|
419
|
-
* import {
|
|
449
|
+
* import { XAI_json } from 'XAI_json';
|
|
420
450
|
*
|
|
421
451
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
422
452
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
423
453
|
*
|
|
424
|
-
* const contract = new
|
|
454
|
+
* const contract = new XAI_json('0x...', { publicClient, walletClient });
|
|
425
455
|
*
|
|
426
456
|
* // Read functions
|
|
427
457
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -439,7 +469,7 @@ export type SDSHD_jsonContract = any;
|
|
|
439
469
|
* });
|
|
440
470
|
* ```
|
|
441
471
|
*/
|
|
442
|
-
export declare class
|
|
472
|
+
export declare class XAI_json {
|
|
443
473
|
private contract;
|
|
444
474
|
private contractAddress;
|
|
445
475
|
private publicClient;
|
|
@@ -454,30 +484,50 @@ export declare class SDSHD_json {
|
|
|
454
484
|
/**
|
|
455
485
|
* Get the underlying viem contract instance
|
|
456
486
|
*/
|
|
457
|
-
getContract():
|
|
487
|
+
getContract(): XAI_jsonContract;
|
|
488
|
+
/**
|
|
489
|
+
* _buyMap
|
|
490
|
+
* view
|
|
491
|
+
*/
|
|
492
|
+
_buyMap(arg0: `0x${string}`): Promise<bigint>;
|
|
493
|
+
/**
|
|
494
|
+
* _maxTxAmount
|
|
495
|
+
* view
|
|
496
|
+
*/
|
|
497
|
+
_maxTxAmount(): Promise<bigint>;
|
|
498
|
+
/**
|
|
499
|
+
* _maxWalletSize
|
|
500
|
+
* view
|
|
501
|
+
*/
|
|
502
|
+
_maxWalletSize(): Promise<bigint>;
|
|
503
|
+
/**
|
|
504
|
+
* _swapTokensAtAmount
|
|
505
|
+
* view
|
|
506
|
+
*/
|
|
507
|
+
_swapTokensAtAmount(): Promise<bigint>;
|
|
458
508
|
/**
|
|
459
509
|
* allowance
|
|
460
510
|
* view
|
|
461
511
|
*/
|
|
462
|
-
allowance(
|
|
512
|
+
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
463
513
|
/**
|
|
464
514
|
* balanceOf
|
|
465
515
|
* view
|
|
466
516
|
*/
|
|
467
517
|
balanceOf(account: `0x${string}`): Promise<bigint>;
|
|
468
518
|
/**
|
|
469
|
-
*
|
|
519
|
+
* bots
|
|
470
520
|
* view
|
|
471
521
|
*/
|
|
472
|
-
|
|
522
|
+
bots(arg0: `0x${string}`): Promise<boolean>;
|
|
473
523
|
/**
|
|
474
|
-
*
|
|
475
|
-
*
|
|
524
|
+
* decimals
|
|
525
|
+
* pure
|
|
476
526
|
*/
|
|
477
|
-
|
|
527
|
+
decimals(): Promise<bigint>;
|
|
478
528
|
/**
|
|
479
529
|
* name
|
|
480
|
-
*
|
|
530
|
+
* pure
|
|
481
531
|
*/
|
|
482
532
|
name(): Promise<string>;
|
|
483
533
|
/**
|
|
@@ -485,32 +535,32 @@ export declare class SDSHD_json {
|
|
|
485
535
|
* view
|
|
486
536
|
*/
|
|
487
537
|
owner(): Promise<`0x${string}`>;
|
|
488
|
-
/**
|
|
489
|
-
* pairAddress
|
|
490
|
-
* view
|
|
491
|
-
*/
|
|
492
|
-
pairAddress(): Promise<`0x${string}`>;
|
|
493
538
|
/**
|
|
494
539
|
* symbol
|
|
495
|
-
*
|
|
540
|
+
* pure
|
|
496
541
|
*/
|
|
497
542
|
symbol(): Promise<string>;
|
|
498
543
|
/**
|
|
499
|
-
*
|
|
544
|
+
* totalSupply
|
|
545
|
+
* pure
|
|
546
|
+
*/
|
|
547
|
+
totalSupply(): Promise<bigint>;
|
|
548
|
+
/**
|
|
549
|
+
* uniswapV2Pair
|
|
500
550
|
* view
|
|
501
551
|
*/
|
|
502
|
-
|
|
552
|
+
uniswapV2Pair(): Promise<`0x${string}`>;
|
|
503
553
|
/**
|
|
504
|
-
*
|
|
554
|
+
* uniswapV2Router
|
|
505
555
|
* view
|
|
506
556
|
*/
|
|
507
|
-
|
|
557
|
+
uniswapV2Router(): Promise<`0x${string}`>;
|
|
508
558
|
/**
|
|
509
|
-
*
|
|
559
|
+
* approve
|
|
510
560
|
* nonpayable
|
|
511
561
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
512
562
|
*/
|
|
513
|
-
|
|
563
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
514
564
|
accessList?: import('viem').AccessList;
|
|
515
565
|
authorizationList?: import('viem').AuthorizationList;
|
|
516
566
|
chain?: import('viem').Chain | null;
|
|
@@ -523,11 +573,11 @@ export declare class SDSHD_json {
|
|
|
523
573
|
value?: bigint;
|
|
524
574
|
}): Promise<`0x${string}`>;
|
|
525
575
|
/**
|
|
526
|
-
*
|
|
576
|
+
* blockBots
|
|
527
577
|
* nonpayable
|
|
528
578
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
529
579
|
*/
|
|
530
|
-
|
|
580
|
+
blockBots(bots_: `0x${string}`[], options?: {
|
|
531
581
|
accessList?: import('viem').AccessList;
|
|
532
582
|
authorizationList?: import('viem').AuthorizationList;
|
|
533
583
|
chain?: import('viem').Chain | null;
|
|
@@ -540,11 +590,11 @@ export declare class SDSHD_json {
|
|
|
540
590
|
value?: bigint;
|
|
541
591
|
}): Promise<`0x${string}`>;
|
|
542
592
|
/**
|
|
543
|
-
*
|
|
593
|
+
* excludeMultipleAccountsFromFees
|
|
544
594
|
* nonpayable
|
|
545
595
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
546
596
|
*/
|
|
547
|
-
|
|
597
|
+
excludeMultipleAccountsFromFees(accounts: `0x${string}`[], excluded: boolean, options?: {
|
|
548
598
|
accessList?: import('viem').AccessList;
|
|
549
599
|
authorizationList?: import('viem').AuthorizationList;
|
|
550
600
|
chain?: import('viem').Chain | null;
|
|
@@ -557,11 +607,28 @@ export declare class SDSHD_json {
|
|
|
557
607
|
value?: bigint;
|
|
558
608
|
}): Promise<`0x${string}`>;
|
|
559
609
|
/**
|
|
560
|
-
*
|
|
610
|
+
* manualsend
|
|
561
611
|
* nonpayable
|
|
562
612
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
563
613
|
*/
|
|
564
|
-
|
|
614
|
+
manualsend(options?: {
|
|
615
|
+
accessList?: import('viem').AccessList;
|
|
616
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
617
|
+
chain?: import('viem').Chain | null;
|
|
618
|
+
dataSuffix?: `0x${string}`;
|
|
619
|
+
gas?: bigint;
|
|
620
|
+
gasPrice?: bigint;
|
|
621
|
+
maxFeePerGas?: bigint;
|
|
622
|
+
maxPriorityFeePerGas?: bigint;
|
|
623
|
+
nonce?: number;
|
|
624
|
+
value?: bigint;
|
|
625
|
+
}): Promise<`0x${string}`>;
|
|
626
|
+
/**
|
|
627
|
+
* manualswap
|
|
628
|
+
* nonpayable
|
|
629
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
630
|
+
*/
|
|
631
|
+
manualswap(options?: {
|
|
565
632
|
accessList?: import('viem').AccessList;
|
|
566
633
|
authorizationList?: import('viem').AuthorizationList;
|
|
567
634
|
chain?: import('viem').Chain | null;
|
|
@@ -591,11 +658,11 @@ export declare class SDSHD_json {
|
|
|
591
658
|
value?: bigint;
|
|
592
659
|
}): Promise<`0x${string}`>;
|
|
593
660
|
/**
|
|
594
|
-
*
|
|
661
|
+
* setFee
|
|
595
662
|
* nonpayable
|
|
596
663
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
597
664
|
*/
|
|
598
|
-
|
|
665
|
+
setFee(redisFeeOnBuy: bigint, redisFeeOnSell: bigint, taxFeeOnBuy: bigint, taxFeeOnSell: bigint, options?: {
|
|
599
666
|
accessList?: import('viem').AccessList;
|
|
600
667
|
authorizationList?: import('viem').AuthorizationList;
|
|
601
668
|
chain?: import('viem').Chain | null;
|
|
@@ -608,11 +675,11 @@ export declare class SDSHD_json {
|
|
|
608
675
|
value?: bigint;
|
|
609
676
|
}): Promise<`0x${string}`>;
|
|
610
677
|
/**
|
|
611
|
-
*
|
|
678
|
+
* setMaxTxnAmount
|
|
612
679
|
* nonpayable
|
|
613
680
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
614
681
|
*/
|
|
615
|
-
|
|
682
|
+
setMaxTxnAmount(maxTxAmount: bigint, options?: {
|
|
616
683
|
accessList?: import('viem').AccessList;
|
|
617
684
|
authorizationList?: import('viem').AuthorizationList;
|
|
618
685
|
chain?: import('viem').Chain | null;
|
|
@@ -625,11 +692,11 @@ export declare class SDSHD_json {
|
|
|
625
692
|
value?: bigint;
|
|
626
693
|
}): Promise<`0x${string}`>;
|
|
627
694
|
/**
|
|
628
|
-
*
|
|
695
|
+
* setMaxWalletSize
|
|
629
696
|
* nonpayable
|
|
630
697
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
631
698
|
*/
|
|
632
|
-
|
|
699
|
+
setMaxWalletSize(maxWalletSize: bigint, options?: {
|
|
633
700
|
accessList?: import('viem').AccessList;
|
|
634
701
|
authorizationList?: import('viem').AuthorizationList;
|
|
635
702
|
chain?: import('viem').Chain | null;
|
|
@@ -642,11 +709,11 @@ export declare class SDSHD_json {
|
|
|
642
709
|
value?: bigint;
|
|
643
710
|
}): Promise<`0x${string}`>;
|
|
644
711
|
/**
|
|
645
|
-
*
|
|
712
|
+
* setMinSwapTokensThreshold
|
|
646
713
|
* nonpayable
|
|
647
714
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
648
715
|
*/
|
|
649
|
-
|
|
716
|
+
setMinSwapTokensThreshold(swapTokensAtAmount: bigint, options?: {
|
|
650
717
|
accessList?: import('viem').AccessList;
|
|
651
718
|
authorizationList?: import('viem').AuthorizationList;
|
|
652
719
|
chain?: import('viem').Chain | null;
|
|
@@ -659,11 +726,96 @@ export declare class SDSHD_json {
|
|
|
659
726
|
value?: bigint;
|
|
660
727
|
}): Promise<`0x${string}`>;
|
|
661
728
|
/**
|
|
662
|
-
*
|
|
729
|
+
* setTrading
|
|
663
730
|
* nonpayable
|
|
664
731
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
665
732
|
*/
|
|
666
|
-
|
|
733
|
+
setTrading(_tradingOpen: boolean, options?: {
|
|
734
|
+
accessList?: import('viem').AccessList;
|
|
735
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
736
|
+
chain?: import('viem').Chain | null;
|
|
737
|
+
dataSuffix?: `0x${string}`;
|
|
738
|
+
gas?: bigint;
|
|
739
|
+
gasPrice?: bigint;
|
|
740
|
+
maxFeePerGas?: bigint;
|
|
741
|
+
maxPriorityFeePerGas?: bigint;
|
|
742
|
+
nonce?: number;
|
|
743
|
+
value?: bigint;
|
|
744
|
+
}): Promise<`0x${string}`>;
|
|
745
|
+
/**
|
|
746
|
+
* toggleSwap
|
|
747
|
+
* nonpayable
|
|
748
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
749
|
+
*/
|
|
750
|
+
toggleSwap(_swapEnabled: boolean, options?: {
|
|
751
|
+
accessList?: import('viem').AccessList;
|
|
752
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
753
|
+
chain?: import('viem').Chain | null;
|
|
754
|
+
dataSuffix?: `0x${string}`;
|
|
755
|
+
gas?: bigint;
|
|
756
|
+
gasPrice?: bigint;
|
|
757
|
+
maxFeePerGas?: bigint;
|
|
758
|
+
maxPriorityFeePerGas?: bigint;
|
|
759
|
+
nonce?: number;
|
|
760
|
+
value?: bigint;
|
|
761
|
+
}): Promise<`0x${string}`>;
|
|
762
|
+
/**
|
|
763
|
+
* transfer
|
|
764
|
+
* nonpayable
|
|
765
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
766
|
+
*/
|
|
767
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
768
|
+
accessList?: import('viem').AccessList;
|
|
769
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
770
|
+
chain?: import('viem').Chain | null;
|
|
771
|
+
dataSuffix?: `0x${string}`;
|
|
772
|
+
gas?: bigint;
|
|
773
|
+
gasPrice?: bigint;
|
|
774
|
+
maxFeePerGas?: bigint;
|
|
775
|
+
maxPriorityFeePerGas?: bigint;
|
|
776
|
+
nonce?: number;
|
|
777
|
+
value?: bigint;
|
|
778
|
+
}): Promise<`0x${string}`>;
|
|
779
|
+
/**
|
|
780
|
+
* transferFrom
|
|
781
|
+
* nonpayable
|
|
782
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
783
|
+
*/
|
|
784
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
785
|
+
accessList?: import('viem').AccessList;
|
|
786
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
787
|
+
chain?: import('viem').Chain | null;
|
|
788
|
+
dataSuffix?: `0x${string}`;
|
|
789
|
+
gas?: bigint;
|
|
790
|
+
gasPrice?: bigint;
|
|
791
|
+
maxFeePerGas?: bigint;
|
|
792
|
+
maxPriorityFeePerGas?: bigint;
|
|
793
|
+
nonce?: number;
|
|
794
|
+
value?: bigint;
|
|
795
|
+
}): Promise<`0x${string}`>;
|
|
796
|
+
/**
|
|
797
|
+
* transferOwnership
|
|
798
|
+
* nonpayable
|
|
799
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
800
|
+
*/
|
|
801
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
802
|
+
accessList?: import('viem').AccessList;
|
|
803
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
804
|
+
chain?: import('viem').Chain | null;
|
|
805
|
+
dataSuffix?: `0x${string}`;
|
|
806
|
+
gas?: bigint;
|
|
807
|
+
gasPrice?: bigint;
|
|
808
|
+
maxFeePerGas?: bigint;
|
|
809
|
+
maxPriorityFeePerGas?: bigint;
|
|
810
|
+
nonce?: number;
|
|
811
|
+
value?: bigint;
|
|
812
|
+
}): Promise<`0x${string}`>;
|
|
813
|
+
/**
|
|
814
|
+
* unblockBot
|
|
815
|
+
* nonpayable
|
|
816
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
817
|
+
*/
|
|
818
|
+
unblockBot(notbot: `0x${string}`, options?: {
|
|
667
819
|
accessList?: import('viem').AccessList;
|
|
668
820
|
authorizationList?: import('viem').AuthorizationList;
|
|
669
821
|
chain?: import('viem').Chain | null;
|
|
@@ -685,11 +837,28 @@ export declare class SDSHD_json {
|
|
|
685
837
|
*/
|
|
686
838
|
get simulate(): {
|
|
687
839
|
/**
|
|
688
|
-
* Simulate
|
|
840
|
+
* Simulate approve
|
|
689
841
|
* Returns gas estimate and result without sending transaction
|
|
690
842
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
691
843
|
*/
|
|
692
|
-
|
|
844
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
845
|
+
accessList?: import("viem").AccessList;
|
|
846
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
847
|
+
chain?: import("viem").Chain | null;
|
|
848
|
+
dataSuffix?: `0x${string}`;
|
|
849
|
+
gas?: bigint;
|
|
850
|
+
gasPrice?: bigint;
|
|
851
|
+
maxFeePerGas?: bigint;
|
|
852
|
+
maxPriorityFeePerGas?: bigint;
|
|
853
|
+
nonce?: number;
|
|
854
|
+
value?: bigint;
|
|
855
|
+
}): Promise<boolean>;
|
|
856
|
+
/**
|
|
857
|
+
* Simulate blockBots
|
|
858
|
+
* Returns gas estimate and result without sending transaction
|
|
859
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
860
|
+
*/
|
|
861
|
+
blockBots(bots_: `0x${string}`[], options?: {
|
|
693
862
|
accessList?: import("viem").AccessList;
|
|
694
863
|
authorizationList?: import("viem").AuthorizationList;
|
|
695
864
|
chain?: import("viem").Chain | null;
|
|
@@ -702,11 +871,11 @@ export declare class SDSHD_json {
|
|
|
702
871
|
value?: bigint;
|
|
703
872
|
}): Promise<void>;
|
|
704
873
|
/**
|
|
705
|
-
* Simulate
|
|
874
|
+
* Simulate excludeMultipleAccountsFromFees
|
|
706
875
|
* Returns gas estimate and result without sending transaction
|
|
707
876
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
708
877
|
*/
|
|
709
|
-
|
|
878
|
+
excludeMultipleAccountsFromFees(accounts: `0x${string}`[], excluded: boolean, options?: {
|
|
710
879
|
accessList?: import("viem").AccessList;
|
|
711
880
|
authorizationList?: import("viem").AuthorizationList;
|
|
712
881
|
chain?: import("viem").Chain | null;
|
|
@@ -717,13 +886,13 @@ export declare class SDSHD_json {
|
|
|
717
886
|
maxPriorityFeePerGas?: bigint;
|
|
718
887
|
nonce?: number;
|
|
719
888
|
value?: bigint;
|
|
720
|
-
}): Promise<
|
|
889
|
+
}): Promise<void>;
|
|
721
890
|
/**
|
|
722
|
-
* Simulate
|
|
891
|
+
* Simulate manualsend
|
|
723
892
|
* Returns gas estimate and result without sending transaction
|
|
724
893
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
725
894
|
*/
|
|
726
|
-
|
|
895
|
+
manualsend(options?: {
|
|
727
896
|
accessList?: import("viem").AccessList;
|
|
728
897
|
authorizationList?: import("viem").AuthorizationList;
|
|
729
898
|
chain?: import("viem").Chain | null;
|
|
@@ -736,11 +905,11 @@ export declare class SDSHD_json {
|
|
|
736
905
|
value?: bigint;
|
|
737
906
|
}): Promise<void>;
|
|
738
907
|
/**
|
|
739
|
-
* Simulate
|
|
908
|
+
* Simulate manualswap
|
|
740
909
|
* Returns gas estimate and result without sending transaction
|
|
741
910
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
742
911
|
*/
|
|
743
|
-
|
|
912
|
+
manualswap(options?: {
|
|
744
913
|
accessList?: import("viem").AccessList;
|
|
745
914
|
authorizationList?: import("viem").AuthorizationList;
|
|
746
915
|
chain?: import("viem").Chain | null;
|
|
@@ -770,11 +939,11 @@ export declare class SDSHD_json {
|
|
|
770
939
|
value?: bigint;
|
|
771
940
|
}): Promise<void>;
|
|
772
941
|
/**
|
|
773
|
-
* Simulate
|
|
942
|
+
* Simulate setFee
|
|
774
943
|
* Returns gas estimate and result without sending transaction
|
|
775
944
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
776
945
|
*/
|
|
777
|
-
|
|
946
|
+
setFee(redisFeeOnBuy: bigint, redisFeeOnSell: bigint, taxFeeOnBuy: bigint, taxFeeOnSell: bigint, options?: {
|
|
778
947
|
accessList?: import("viem").AccessList;
|
|
779
948
|
authorizationList?: import("viem").AuthorizationList;
|
|
780
949
|
chain?: import("viem").Chain | null;
|
|
@@ -785,13 +954,13 @@ export declare class SDSHD_json {
|
|
|
785
954
|
maxPriorityFeePerGas?: bigint;
|
|
786
955
|
nonce?: number;
|
|
787
956
|
value?: bigint;
|
|
788
|
-
}): Promise<
|
|
957
|
+
}): Promise<void>;
|
|
789
958
|
/**
|
|
790
|
-
* Simulate
|
|
959
|
+
* Simulate setMaxTxnAmount
|
|
791
960
|
* Returns gas estimate and result without sending transaction
|
|
792
961
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
793
962
|
*/
|
|
794
|
-
|
|
963
|
+
setMaxTxnAmount(maxTxAmount: bigint, options?: {
|
|
795
964
|
accessList?: import("viem").AccessList;
|
|
796
965
|
authorizationList?: import("viem").AuthorizationList;
|
|
797
966
|
chain?: import("viem").Chain | null;
|
|
@@ -802,13 +971,47 @@ export declare class SDSHD_json {
|
|
|
802
971
|
maxPriorityFeePerGas?: bigint;
|
|
803
972
|
nonce?: number;
|
|
804
973
|
value?: bigint;
|
|
805
|
-
}): Promise<
|
|
974
|
+
}): Promise<void>;
|
|
806
975
|
/**
|
|
807
|
-
* Simulate
|
|
976
|
+
* Simulate setMaxWalletSize
|
|
808
977
|
* Returns gas estimate and result without sending transaction
|
|
809
978
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
810
979
|
*/
|
|
811
|
-
|
|
980
|
+
setMaxWalletSize(maxWalletSize: bigint, options?: {
|
|
981
|
+
accessList?: import("viem").AccessList;
|
|
982
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
983
|
+
chain?: import("viem").Chain | null;
|
|
984
|
+
dataSuffix?: `0x${string}`;
|
|
985
|
+
gas?: bigint;
|
|
986
|
+
gasPrice?: bigint;
|
|
987
|
+
maxFeePerGas?: bigint;
|
|
988
|
+
maxPriorityFeePerGas?: bigint;
|
|
989
|
+
nonce?: number;
|
|
990
|
+
value?: bigint;
|
|
991
|
+
}): Promise<void>;
|
|
992
|
+
/**
|
|
993
|
+
* Simulate setMinSwapTokensThreshold
|
|
994
|
+
* Returns gas estimate and result without sending transaction
|
|
995
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
996
|
+
*/
|
|
997
|
+
setMinSwapTokensThreshold(swapTokensAtAmount: bigint, options?: {
|
|
998
|
+
accessList?: import("viem").AccessList;
|
|
999
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1000
|
+
chain?: import("viem").Chain | null;
|
|
1001
|
+
dataSuffix?: `0x${string}`;
|
|
1002
|
+
gas?: bigint;
|
|
1003
|
+
gasPrice?: bigint;
|
|
1004
|
+
maxFeePerGas?: bigint;
|
|
1005
|
+
maxPriorityFeePerGas?: bigint;
|
|
1006
|
+
nonce?: number;
|
|
1007
|
+
value?: bigint;
|
|
1008
|
+
}): Promise<void>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Simulate setTrading
|
|
1011
|
+
* Returns gas estimate and result without sending transaction
|
|
1012
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1013
|
+
*/
|
|
1014
|
+
setTrading(_tradingOpen: boolean, options?: {
|
|
812
1015
|
accessList?: import("viem").AccessList;
|
|
813
1016
|
authorizationList?: import("viem").AuthorizationList;
|
|
814
1017
|
chain?: import("viem").Chain | null;
|
|
@@ -821,11 +1024,11 @@ export declare class SDSHD_json {
|
|
|
821
1024
|
value?: bigint;
|
|
822
1025
|
}): Promise<void>;
|
|
823
1026
|
/**
|
|
824
|
-
* Simulate
|
|
1027
|
+
* Simulate toggleSwap
|
|
825
1028
|
* Returns gas estimate and result without sending transaction
|
|
826
1029
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
827
1030
|
*/
|
|
828
|
-
|
|
1031
|
+
toggleSwap(_swapEnabled: boolean, options?: {
|
|
829
1032
|
accessList?: import("viem").AccessList;
|
|
830
1033
|
authorizationList?: import("viem").AuthorizationList;
|
|
831
1034
|
chain?: import("viem").Chain | null;
|
|
@@ -838,11 +1041,62 @@ export declare class SDSHD_json {
|
|
|
838
1041
|
value?: bigint;
|
|
839
1042
|
}): Promise<void>;
|
|
840
1043
|
/**
|
|
841
|
-
* Simulate
|
|
1044
|
+
* Simulate transfer
|
|
842
1045
|
* Returns gas estimate and result without sending transaction
|
|
843
1046
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
844
1047
|
*/
|
|
845
|
-
|
|
1048
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
1049
|
+
accessList?: import("viem").AccessList;
|
|
1050
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1051
|
+
chain?: import("viem").Chain | null;
|
|
1052
|
+
dataSuffix?: `0x${string}`;
|
|
1053
|
+
gas?: bigint;
|
|
1054
|
+
gasPrice?: bigint;
|
|
1055
|
+
maxFeePerGas?: bigint;
|
|
1056
|
+
maxPriorityFeePerGas?: bigint;
|
|
1057
|
+
nonce?: number;
|
|
1058
|
+
value?: bigint;
|
|
1059
|
+
}): Promise<boolean>;
|
|
1060
|
+
/**
|
|
1061
|
+
* Simulate transferFrom
|
|
1062
|
+
* Returns gas estimate and result without sending transaction
|
|
1063
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1064
|
+
*/
|
|
1065
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
1066
|
+
accessList?: import("viem").AccessList;
|
|
1067
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1068
|
+
chain?: import("viem").Chain | null;
|
|
1069
|
+
dataSuffix?: `0x${string}`;
|
|
1070
|
+
gas?: bigint;
|
|
1071
|
+
gasPrice?: bigint;
|
|
1072
|
+
maxFeePerGas?: bigint;
|
|
1073
|
+
maxPriorityFeePerGas?: bigint;
|
|
1074
|
+
nonce?: number;
|
|
1075
|
+
value?: bigint;
|
|
1076
|
+
}): Promise<boolean>;
|
|
1077
|
+
/**
|
|
1078
|
+
* Simulate transferOwnership
|
|
1079
|
+
* Returns gas estimate and result without sending transaction
|
|
1080
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1081
|
+
*/
|
|
1082
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1083
|
+
accessList?: import("viem").AccessList;
|
|
1084
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1085
|
+
chain?: import("viem").Chain | null;
|
|
1086
|
+
dataSuffix?: `0x${string}`;
|
|
1087
|
+
gas?: bigint;
|
|
1088
|
+
gasPrice?: bigint;
|
|
1089
|
+
maxFeePerGas?: bigint;
|
|
1090
|
+
maxPriorityFeePerGas?: bigint;
|
|
1091
|
+
nonce?: number;
|
|
1092
|
+
value?: bigint;
|
|
1093
|
+
}): Promise<void>;
|
|
1094
|
+
/**
|
|
1095
|
+
* Simulate unblockBot
|
|
1096
|
+
* Returns gas estimate and result without sending transaction
|
|
1097
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1098
|
+
*/
|
|
1099
|
+
unblockBot(notbot: `0x${string}`, options?: {
|
|
846
1100
|
accessList?: import("viem").AccessList;
|
|
847
1101
|
authorizationList?: import("viem").AuthorizationList;
|
|
848
1102
|
chain?: import("viem").Chain | null;
|
|
@@ -882,6 +1136,15 @@ export declare class SDSHD_json {
|
|
|
882
1136
|
owner: `0x${string}`;
|
|
883
1137
|
spender: `0x${string}`;
|
|
884
1138
|
}) => () => void;
|
|
1139
|
+
/**
|
|
1140
|
+
* Watch MaxTxAmountUpdated events
|
|
1141
|
+
* @param callback Function to call when event is emitted
|
|
1142
|
+
* @param filter Optional filter for indexed parameters
|
|
1143
|
+
* @returns Unwatch function to stop listening
|
|
1144
|
+
*/
|
|
1145
|
+
MaxTxAmountUpdated: (callback: (event: {
|
|
1146
|
+
_maxTxAmount: bigint;
|
|
1147
|
+
}) => void) => () => void;
|
|
885
1148
|
/**
|
|
886
1149
|
* Watch OwnershipTransferred events
|
|
887
1150
|
* @param callback Function to call when event is emitted
|