@gitmyabi/xai 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 +4 -4
- package/contracts/{SDSHD_json.d.ts → XAI_json.d.ts} +79 -374
- package/contracts/{SDSHD_json.js → XAI_json.js} +97 -412
- package/contracts/{SDSHD_json.ts → XAI_json.ts} +103 -491
- 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,21 +28,6 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
112
28
|
}];
|
|
113
29
|
readonly name: "Approval";
|
|
114
30
|
readonly type: "event";
|
|
115
|
-
}, {
|
|
116
|
-
readonly anonymous: false;
|
|
117
|
-
readonly inputs: readonly [{
|
|
118
|
-
readonly indexed: true;
|
|
119
|
-
readonly internalType: "address";
|
|
120
|
-
readonly name: "previousOwner";
|
|
121
|
-
readonly type: "address";
|
|
122
|
-
}, {
|
|
123
|
-
readonly indexed: true;
|
|
124
|
-
readonly internalType: "address";
|
|
125
|
-
readonly name: "newOwner";
|
|
126
|
-
readonly type: "address";
|
|
127
|
-
}];
|
|
128
|
-
readonly name: "OwnershipTransferred";
|
|
129
|
-
readonly type: "event";
|
|
130
31
|
}, {
|
|
131
32
|
readonly anonymous: false;
|
|
132
33
|
readonly inputs: readonly [{
|
|
@@ -147,24 +48,14 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
147
48
|
}];
|
|
148
49
|
readonly name: "Transfer";
|
|
149
50
|
readonly type: "event";
|
|
150
|
-
}, {
|
|
151
|
-
readonly inputs: readonly [{
|
|
152
|
-
readonly internalType: "address[]";
|
|
153
|
-
readonly name: "to";
|
|
154
|
-
readonly type: "address[]";
|
|
155
|
-
}];
|
|
156
|
-
readonly name: "airdrop";
|
|
157
|
-
readonly outputs: readonly [];
|
|
158
|
-
readonly stateMutability: "nonpayable";
|
|
159
|
-
readonly type: "function";
|
|
160
51
|
}, {
|
|
161
52
|
readonly inputs: readonly [{
|
|
162
53
|
readonly internalType: "address";
|
|
163
|
-
readonly name: "
|
|
54
|
+
readonly name: "owner";
|
|
164
55
|
readonly type: "address";
|
|
165
56
|
}, {
|
|
166
57
|
readonly internalType: "address";
|
|
167
|
-
readonly name: "
|
|
58
|
+
readonly name: "spender";
|
|
168
59
|
readonly type: "address";
|
|
169
60
|
}];
|
|
170
61
|
readonly name: "allowance";
|
|
@@ -182,7 +73,7 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
182
73
|
readonly type: "address";
|
|
183
74
|
}, {
|
|
184
75
|
readonly internalType: "uint256";
|
|
185
|
-
readonly name: "
|
|
76
|
+
readonly name: "amount";
|
|
186
77
|
readonly type: "uint256";
|
|
187
78
|
}];
|
|
188
79
|
readonly name: "approve";
|
|
@@ -207,17 +98,27 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
207
98
|
}];
|
|
208
99
|
readonly stateMutability: "view";
|
|
209
100
|
readonly type: "function";
|
|
101
|
+
}, {
|
|
102
|
+
readonly inputs: readonly [{
|
|
103
|
+
readonly internalType: "uint256";
|
|
104
|
+
readonly name: "amount";
|
|
105
|
+
readonly type: "uint256";
|
|
106
|
+
}];
|
|
107
|
+
readonly name: "burn";
|
|
108
|
+
readonly outputs: readonly [];
|
|
109
|
+
readonly stateMutability: "nonpayable";
|
|
110
|
+
readonly type: "function";
|
|
210
111
|
}, {
|
|
211
112
|
readonly inputs: readonly [{
|
|
212
113
|
readonly internalType: "address";
|
|
213
|
-
readonly name: "
|
|
114
|
+
readonly name: "account";
|
|
214
115
|
readonly type: "address";
|
|
215
116
|
}, {
|
|
216
117
|
readonly internalType: "uint256";
|
|
217
118
|
readonly name: "amount";
|
|
218
119
|
readonly type: "uint256";
|
|
219
120
|
}];
|
|
220
|
-
readonly name: "
|
|
121
|
+
readonly name: "burnFrom";
|
|
221
122
|
readonly outputs: readonly [];
|
|
222
123
|
readonly stateMutability: "nonpayable";
|
|
223
124
|
readonly type: "function";
|
|
@@ -234,66 +135,42 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
234
135
|
}, {
|
|
235
136
|
readonly inputs: readonly [{
|
|
236
137
|
readonly internalType: "address";
|
|
237
|
-
readonly name: "
|
|
138
|
+
readonly name: "spender";
|
|
238
139
|
readonly type: "address";
|
|
140
|
+
}, {
|
|
141
|
+
readonly internalType: "uint256";
|
|
142
|
+
readonly name: "subtractedValue";
|
|
143
|
+
readonly type: "uint256";
|
|
239
144
|
}];
|
|
240
|
-
readonly name: "
|
|
145
|
+
readonly name: "decreaseAllowance";
|
|
241
146
|
readonly outputs: readonly [{
|
|
242
147
|
readonly internalType: "bool";
|
|
243
148
|
readonly name: "";
|
|
244
149
|
readonly type: "bool";
|
|
245
150
|
}];
|
|
246
|
-
readonly stateMutability: "
|
|
247
|
-
readonly type: "function";
|
|
248
|
-
}, {
|
|
249
|
-
readonly inputs: readonly [];
|
|
250
|
-
readonly name: "name";
|
|
251
|
-
readonly outputs: readonly [{
|
|
252
|
-
readonly internalType: "string";
|
|
253
|
-
readonly name: "";
|
|
254
|
-
readonly type: "string";
|
|
255
|
-
}];
|
|
256
|
-
readonly stateMutability: "view";
|
|
151
|
+
readonly stateMutability: "nonpayable";
|
|
257
152
|
readonly type: "function";
|
|
258
153
|
}, {
|
|
259
|
-
readonly inputs: readonly [
|
|
260
|
-
readonly name: "owner";
|
|
261
|
-
readonly outputs: readonly [{
|
|
154
|
+
readonly inputs: readonly [{
|
|
262
155
|
readonly internalType: "address";
|
|
263
|
-
readonly name: "";
|
|
156
|
+
readonly name: "spender";
|
|
264
157
|
readonly type: "address";
|
|
158
|
+
}, {
|
|
159
|
+
readonly internalType: "uint256";
|
|
160
|
+
readonly name: "addedValue";
|
|
161
|
+
readonly type: "uint256";
|
|
265
162
|
}];
|
|
266
|
-
readonly
|
|
267
|
-
readonly type: "function";
|
|
268
|
-
}, {
|
|
269
|
-
readonly inputs: readonly [];
|
|
270
|
-
readonly name: "pairAddress";
|
|
163
|
+
readonly name: "increaseAllowance";
|
|
271
164
|
readonly outputs: readonly [{
|
|
272
|
-
readonly internalType: "
|
|
165
|
+
readonly internalType: "bool";
|
|
273
166
|
readonly name: "";
|
|
274
|
-
readonly type: "
|
|
275
|
-
}];
|
|
276
|
-
readonly stateMutability: "view";
|
|
277
|
-
readonly type: "function";
|
|
278
|
-
}, {
|
|
279
|
-
readonly inputs: readonly [{
|
|
280
|
-
readonly internalType: "address[]";
|
|
281
|
-
readonly name: "addrs";
|
|
282
|
-
readonly type: "address[]";
|
|
167
|
+
readonly type: "bool";
|
|
283
168
|
}];
|
|
284
|
-
readonly name: "removeBlackList";
|
|
285
|
-
readonly outputs: readonly [];
|
|
286
169
|
readonly stateMutability: "nonpayable";
|
|
287
170
|
readonly type: "function";
|
|
288
171
|
}, {
|
|
289
172
|
readonly inputs: readonly [];
|
|
290
|
-
readonly name: "
|
|
291
|
-
readonly outputs: readonly [];
|
|
292
|
-
readonly stateMutability: "nonpayable";
|
|
293
|
-
readonly type: "function";
|
|
294
|
-
}, {
|
|
295
|
-
readonly inputs: readonly [];
|
|
296
|
-
readonly name: "symbol";
|
|
173
|
+
readonly name: "name";
|
|
297
174
|
readonly outputs: readonly [{
|
|
298
175
|
readonly internalType: "string";
|
|
299
176
|
readonly name: "";
|
|
@@ -303,11 +180,11 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
303
180
|
readonly type: "function";
|
|
304
181
|
}, {
|
|
305
182
|
readonly inputs: readonly [];
|
|
306
|
-
readonly name: "
|
|
183
|
+
readonly name: "symbol";
|
|
307
184
|
readonly outputs: readonly [{
|
|
308
|
-
readonly internalType: "
|
|
185
|
+
readonly internalType: "string";
|
|
309
186
|
readonly name: "";
|
|
310
|
-
readonly type: "
|
|
187
|
+
readonly type: "string";
|
|
311
188
|
}];
|
|
312
189
|
readonly stateMutability: "view";
|
|
313
190
|
readonly type: "function";
|
|
@@ -324,11 +201,11 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
324
201
|
}, {
|
|
325
202
|
readonly inputs: readonly [{
|
|
326
203
|
readonly internalType: "address";
|
|
327
|
-
readonly name: "
|
|
204
|
+
readonly name: "recipient";
|
|
328
205
|
readonly type: "address";
|
|
329
206
|
}, {
|
|
330
207
|
readonly internalType: "uint256";
|
|
331
|
-
readonly name: "
|
|
208
|
+
readonly name: "amount";
|
|
332
209
|
readonly type: "uint256";
|
|
333
210
|
}];
|
|
334
211
|
readonly name: "transfer";
|
|
@@ -342,15 +219,15 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
342
219
|
}, {
|
|
343
220
|
readonly inputs: readonly [{
|
|
344
221
|
readonly internalType: "address";
|
|
345
|
-
readonly name: "
|
|
222
|
+
readonly name: "sender";
|
|
346
223
|
readonly type: "address";
|
|
347
224
|
}, {
|
|
348
225
|
readonly internalType: "address";
|
|
349
|
-
readonly name: "
|
|
226
|
+
readonly name: "recipient";
|
|
350
227
|
readonly type: "address";
|
|
351
228
|
}, {
|
|
352
229
|
readonly internalType: "uint256";
|
|
353
|
-
readonly name: "
|
|
230
|
+
readonly name: "amount";
|
|
354
231
|
readonly type: "uint256";
|
|
355
232
|
}];
|
|
356
233
|
readonly name: "transferFrom";
|
|
@@ -361,54 +238,17 @@ export declare const SDSHD_jsonAbi: readonly [{
|
|
|
361
238
|
}];
|
|
362
239
|
readonly stateMutability: "nonpayable";
|
|
363
240
|
readonly type: "function";
|
|
364
|
-
}, {
|
|
365
|
-
readonly inputs: readonly [{
|
|
366
|
-
readonly internalType: "address";
|
|
367
|
-
readonly name: "newOwner";
|
|
368
|
-
readonly type: "address";
|
|
369
|
-
}];
|
|
370
|
-
readonly name: "transferOwnership";
|
|
371
|
-
readonly outputs: readonly [];
|
|
372
|
-
readonly stateMutability: "nonpayable";
|
|
373
|
-
readonly type: "function";
|
|
374
|
-
}, {
|
|
375
|
-
readonly inputs: readonly [{
|
|
376
|
-
readonly internalType: "address[]";
|
|
377
|
-
readonly name: "addrs";
|
|
378
|
-
readonly type: "address[]";
|
|
379
|
-
}, {
|
|
380
|
-
readonly internalType: "bool[]";
|
|
381
|
-
readonly name: "values";
|
|
382
|
-
readonly type: "bool[]";
|
|
383
|
-
}];
|
|
384
|
-
readonly name: "updateBlackList";
|
|
385
|
-
readonly outputs: readonly [];
|
|
386
|
-
readonly stateMutability: "nonpayable";
|
|
387
|
-
readonly type: "function";
|
|
388
|
-
}, {
|
|
389
|
-
readonly inputs: readonly [{
|
|
390
|
-
readonly internalType: "address";
|
|
391
|
-
readonly name: "_token";
|
|
392
|
-
readonly type: "address";
|
|
393
|
-
}];
|
|
394
|
-
readonly name: "withdraw";
|
|
395
|
-
readonly outputs: readonly [];
|
|
396
|
-
readonly stateMutability: "nonpayable";
|
|
397
|
-
readonly type: "function";
|
|
398
|
-
}, {
|
|
399
|
-
readonly stateMutability: "payable";
|
|
400
|
-
readonly type: "receive";
|
|
401
241
|
}];
|
|
402
242
|
/**
|
|
403
|
-
* Type-safe ABI for
|
|
243
|
+
* Type-safe ABI for XAI_json
|
|
404
244
|
*/
|
|
405
|
-
export type
|
|
245
|
+
export type XAI_jsonAbi = typeof XAI_jsonAbi;
|
|
406
246
|
/**
|
|
407
|
-
* Contract instance type for
|
|
247
|
+
* Contract instance type for XAI_json
|
|
408
248
|
*/
|
|
409
|
-
export type
|
|
249
|
+
export type XAI_jsonContract = any;
|
|
410
250
|
/**
|
|
411
|
-
*
|
|
251
|
+
* XAI_json Contract Class
|
|
412
252
|
*
|
|
413
253
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
414
254
|
*
|
|
@@ -416,12 +256,12 @@ export type SDSHD_jsonContract = any;
|
|
|
416
256
|
* ```typescript
|
|
417
257
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
418
258
|
* import { mainnet } from 'viem/chains';
|
|
419
|
-
* import {
|
|
259
|
+
* import { XAI_json } from 'XAI_json';
|
|
420
260
|
*
|
|
421
261
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
422
262
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
423
263
|
*
|
|
424
|
-
* const contract = new
|
|
264
|
+
* const contract = new XAI_json('0x...', { publicClient, walletClient });
|
|
425
265
|
*
|
|
426
266
|
* // Read functions
|
|
427
267
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -439,7 +279,7 @@ export type SDSHD_jsonContract = any;
|
|
|
439
279
|
* });
|
|
440
280
|
* ```
|
|
441
281
|
*/
|
|
442
|
-
export declare class
|
|
282
|
+
export declare class XAI_json {
|
|
443
283
|
private contract;
|
|
444
284
|
private contractAddress;
|
|
445
285
|
private publicClient;
|
|
@@ -454,12 +294,12 @@ export declare class SDSHD_json {
|
|
|
454
294
|
/**
|
|
455
295
|
* Get the underlying viem contract instance
|
|
456
296
|
*/
|
|
457
|
-
getContract():
|
|
297
|
+
getContract(): XAI_jsonContract;
|
|
458
298
|
/**
|
|
459
299
|
* allowance
|
|
460
300
|
* view
|
|
461
301
|
*/
|
|
462
|
-
allowance(
|
|
302
|
+
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
463
303
|
/**
|
|
464
304
|
* balanceOf
|
|
465
305
|
* view
|
|
@@ -470,64 +310,27 @@ export declare class SDSHD_json {
|
|
|
470
310
|
* view
|
|
471
311
|
*/
|
|
472
312
|
decimals(): Promise<bigint>;
|
|
473
|
-
/**
|
|
474
|
-
* isInBlackList
|
|
475
|
-
* view
|
|
476
|
-
*/
|
|
477
|
-
isInBlackList(addr: `0x${string}`): Promise<boolean>;
|
|
478
313
|
/**
|
|
479
314
|
* name
|
|
480
315
|
* view
|
|
481
316
|
*/
|
|
482
317
|
name(): Promise<string>;
|
|
483
|
-
/**
|
|
484
|
-
* owner
|
|
485
|
-
* view
|
|
486
|
-
*/
|
|
487
|
-
owner(): Promise<`0x${string}`>;
|
|
488
|
-
/**
|
|
489
|
-
* pairAddress
|
|
490
|
-
* view
|
|
491
|
-
*/
|
|
492
|
-
pairAddress(): Promise<`0x${string}`>;
|
|
493
318
|
/**
|
|
494
319
|
* symbol
|
|
495
320
|
* view
|
|
496
321
|
*/
|
|
497
322
|
symbol(): Promise<string>;
|
|
498
|
-
/**
|
|
499
|
-
* taxReceiver
|
|
500
|
-
* view
|
|
501
|
-
*/
|
|
502
|
-
taxReceiver(): Promise<`0x${string}`>;
|
|
503
323
|
/**
|
|
504
324
|
* totalSupply
|
|
505
325
|
* view
|
|
506
326
|
*/
|
|
507
327
|
totalSupply(): Promise<bigint>;
|
|
508
|
-
/**
|
|
509
|
-
* airdrop
|
|
510
|
-
* nonpayable
|
|
511
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
512
|
-
*/
|
|
513
|
-
airdrop(to: `0x${string}`[], options?: {
|
|
514
|
-
accessList?: import('viem').AccessList;
|
|
515
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
516
|
-
chain?: import('viem').Chain | null;
|
|
517
|
-
dataSuffix?: `0x${string}`;
|
|
518
|
-
gas?: bigint;
|
|
519
|
-
gasPrice?: bigint;
|
|
520
|
-
maxFeePerGas?: bigint;
|
|
521
|
-
maxPriorityFeePerGas?: bigint;
|
|
522
|
-
nonce?: number;
|
|
523
|
-
value?: bigint;
|
|
524
|
-
}): Promise<`0x${string}`>;
|
|
525
328
|
/**
|
|
526
329
|
* approve
|
|
527
330
|
* nonpayable
|
|
528
331
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
529
332
|
*/
|
|
530
|
-
approve(spender: `0x${string}`,
|
|
333
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
531
334
|
accessList?: import('viem').AccessList;
|
|
532
335
|
authorizationList?: import('viem').AuthorizationList;
|
|
533
336
|
chain?: import('viem').Chain | null;
|
|
@@ -544,41 +347,7 @@ export declare class SDSHD_json {
|
|
|
544
347
|
* nonpayable
|
|
545
348
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
546
349
|
*/
|
|
547
|
-
burn(
|
|
548
|
-
accessList?: import('viem').AccessList;
|
|
549
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
550
|
-
chain?: import('viem').Chain | null;
|
|
551
|
-
dataSuffix?: `0x${string}`;
|
|
552
|
-
gas?: bigint;
|
|
553
|
-
gasPrice?: bigint;
|
|
554
|
-
maxFeePerGas?: bigint;
|
|
555
|
-
maxPriorityFeePerGas?: bigint;
|
|
556
|
-
nonce?: number;
|
|
557
|
-
value?: bigint;
|
|
558
|
-
}): Promise<`0x${string}`>;
|
|
559
|
-
/**
|
|
560
|
-
* removeBlackList
|
|
561
|
-
* nonpayable
|
|
562
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
563
|
-
*/
|
|
564
|
-
removeBlackList(addrs: `0x${string}`[], options?: {
|
|
565
|
-
accessList?: import('viem').AccessList;
|
|
566
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
567
|
-
chain?: import('viem').Chain | null;
|
|
568
|
-
dataSuffix?: `0x${string}`;
|
|
569
|
-
gas?: bigint;
|
|
570
|
-
gasPrice?: bigint;
|
|
571
|
-
maxFeePerGas?: bigint;
|
|
572
|
-
maxPriorityFeePerGas?: bigint;
|
|
573
|
-
nonce?: number;
|
|
574
|
-
value?: bigint;
|
|
575
|
-
}): Promise<`0x${string}`>;
|
|
576
|
-
/**
|
|
577
|
-
* renounceOwnership
|
|
578
|
-
* nonpayable
|
|
579
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
580
|
-
*/
|
|
581
|
-
renounceOwnership(options?: {
|
|
350
|
+
burn(amount: bigint, options?: {
|
|
582
351
|
accessList?: import('viem').AccessList;
|
|
583
352
|
authorizationList?: import('viem').AuthorizationList;
|
|
584
353
|
chain?: import('viem').Chain | null;
|
|
@@ -591,11 +360,11 @@ export declare class SDSHD_json {
|
|
|
591
360
|
value?: bigint;
|
|
592
361
|
}): Promise<`0x${string}`>;
|
|
593
362
|
/**
|
|
594
|
-
*
|
|
363
|
+
* burnFrom
|
|
595
364
|
* nonpayable
|
|
596
365
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
597
366
|
*/
|
|
598
|
-
|
|
367
|
+
burnFrom(account: `0x${string}`, amount: bigint, options?: {
|
|
599
368
|
accessList?: import('viem').AccessList;
|
|
600
369
|
authorizationList?: import('viem').AuthorizationList;
|
|
601
370
|
chain?: import('viem').Chain | null;
|
|
@@ -608,11 +377,11 @@ export declare class SDSHD_json {
|
|
|
608
377
|
value?: bigint;
|
|
609
378
|
}): Promise<`0x${string}`>;
|
|
610
379
|
/**
|
|
611
|
-
*
|
|
380
|
+
* decreaseAllowance
|
|
612
381
|
* nonpayable
|
|
613
382
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
614
383
|
*/
|
|
615
|
-
|
|
384
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
616
385
|
accessList?: import('viem').AccessList;
|
|
617
386
|
authorizationList?: import('viem').AuthorizationList;
|
|
618
387
|
chain?: import('viem').Chain | null;
|
|
@@ -625,11 +394,11 @@ export declare class SDSHD_json {
|
|
|
625
394
|
value?: bigint;
|
|
626
395
|
}): Promise<`0x${string}`>;
|
|
627
396
|
/**
|
|
628
|
-
*
|
|
397
|
+
* increaseAllowance
|
|
629
398
|
* nonpayable
|
|
630
399
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
631
400
|
*/
|
|
632
|
-
|
|
401
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
633
402
|
accessList?: import('viem').AccessList;
|
|
634
403
|
authorizationList?: import('viem').AuthorizationList;
|
|
635
404
|
chain?: import('viem').Chain | null;
|
|
@@ -642,11 +411,11 @@ export declare class SDSHD_json {
|
|
|
642
411
|
value?: bigint;
|
|
643
412
|
}): Promise<`0x${string}`>;
|
|
644
413
|
/**
|
|
645
|
-
*
|
|
414
|
+
* transfer
|
|
646
415
|
* nonpayable
|
|
647
416
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
648
417
|
*/
|
|
649
|
-
|
|
418
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
650
419
|
accessList?: import('viem').AccessList;
|
|
651
420
|
authorizationList?: import('viem').AuthorizationList;
|
|
652
421
|
chain?: import('viem').Chain | null;
|
|
@@ -659,11 +428,11 @@ export declare class SDSHD_json {
|
|
|
659
428
|
value?: bigint;
|
|
660
429
|
}): Promise<`0x${string}`>;
|
|
661
430
|
/**
|
|
662
|
-
*
|
|
431
|
+
* transferFrom
|
|
663
432
|
* nonpayable
|
|
664
433
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
665
434
|
*/
|
|
666
|
-
|
|
435
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
667
436
|
accessList?: import('viem').AccessList;
|
|
668
437
|
authorizationList?: import('viem').AuthorizationList;
|
|
669
438
|
chain?: import('viem').Chain | null;
|
|
@@ -684,29 +453,12 @@ export declare class SDSHD_json {
|
|
|
684
453
|
* console.log('Would succeed:', result.result);
|
|
685
454
|
*/
|
|
686
455
|
get simulate(): {
|
|
687
|
-
/**
|
|
688
|
-
* Simulate airdrop
|
|
689
|
-
* Returns gas estimate and result without sending transaction
|
|
690
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
691
|
-
*/
|
|
692
|
-
airdrop(to: `0x${string}`[], options?: {
|
|
693
|
-
accessList?: import("viem").AccessList;
|
|
694
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
695
|
-
chain?: import("viem").Chain | null;
|
|
696
|
-
dataSuffix?: `0x${string}`;
|
|
697
|
-
gas?: bigint;
|
|
698
|
-
gasPrice?: bigint;
|
|
699
|
-
maxFeePerGas?: bigint;
|
|
700
|
-
maxPriorityFeePerGas?: bigint;
|
|
701
|
-
nonce?: number;
|
|
702
|
-
value?: bigint;
|
|
703
|
-
}): Promise<void>;
|
|
704
456
|
/**
|
|
705
457
|
* Simulate approve
|
|
706
458
|
* Returns gas estimate and result without sending transaction
|
|
707
459
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
708
460
|
*/
|
|
709
|
-
approve(spender: `0x${string}`,
|
|
461
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
710
462
|
accessList?: import("viem").AccessList;
|
|
711
463
|
authorizationList?: import("viem").AuthorizationList;
|
|
712
464
|
chain?: import("viem").Chain | null;
|
|
@@ -723,7 +475,7 @@ export declare class SDSHD_json {
|
|
|
723
475
|
* Returns gas estimate and result without sending transaction
|
|
724
476
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
725
477
|
*/
|
|
726
|
-
burn(
|
|
478
|
+
burn(amount: bigint, options?: {
|
|
727
479
|
accessList?: import("viem").AccessList;
|
|
728
480
|
authorizationList?: import("viem").AuthorizationList;
|
|
729
481
|
chain?: import("viem").Chain | null;
|
|
@@ -736,11 +488,11 @@ export declare class SDSHD_json {
|
|
|
736
488
|
value?: bigint;
|
|
737
489
|
}): Promise<void>;
|
|
738
490
|
/**
|
|
739
|
-
* Simulate
|
|
491
|
+
* Simulate burnFrom
|
|
740
492
|
* Returns gas estimate and result without sending transaction
|
|
741
493
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
742
494
|
*/
|
|
743
|
-
|
|
495
|
+
burnFrom(account: `0x${string}`, amount: bigint, options?: {
|
|
744
496
|
accessList?: import("viem").AccessList;
|
|
745
497
|
authorizationList?: import("viem").AuthorizationList;
|
|
746
498
|
chain?: import("viem").Chain | null;
|
|
@@ -753,28 +505,11 @@ export declare class SDSHD_json {
|
|
|
753
505
|
value?: bigint;
|
|
754
506
|
}): Promise<void>;
|
|
755
507
|
/**
|
|
756
|
-
* Simulate
|
|
508
|
+
* Simulate decreaseAllowance
|
|
757
509
|
* Returns gas estimate and result without sending transaction
|
|
758
510
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
759
511
|
*/
|
|
760
|
-
|
|
761
|
-
accessList?: import("viem").AccessList;
|
|
762
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
763
|
-
chain?: import("viem").Chain | null;
|
|
764
|
-
dataSuffix?: `0x${string}`;
|
|
765
|
-
gas?: bigint;
|
|
766
|
-
gasPrice?: bigint;
|
|
767
|
-
maxFeePerGas?: bigint;
|
|
768
|
-
maxPriorityFeePerGas?: bigint;
|
|
769
|
-
nonce?: number;
|
|
770
|
-
value?: bigint;
|
|
771
|
-
}): Promise<void>;
|
|
772
|
-
/**
|
|
773
|
-
* Simulate transfer
|
|
774
|
-
* Returns gas estimate and result without sending transaction
|
|
775
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
776
|
-
*/
|
|
777
|
-
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
512
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
778
513
|
accessList?: import("viem").AccessList;
|
|
779
514
|
authorizationList?: import("viem").AuthorizationList;
|
|
780
515
|
chain?: import("viem").Chain | null;
|
|
@@ -787,11 +522,11 @@ export declare class SDSHD_json {
|
|
|
787
522
|
value?: bigint;
|
|
788
523
|
}): Promise<boolean>;
|
|
789
524
|
/**
|
|
790
|
-
* Simulate
|
|
525
|
+
* Simulate increaseAllowance
|
|
791
526
|
* Returns gas estimate and result without sending transaction
|
|
792
527
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
793
528
|
*/
|
|
794
|
-
|
|
529
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
795
530
|
accessList?: import("viem").AccessList;
|
|
796
531
|
authorizationList?: import("viem").AuthorizationList;
|
|
797
532
|
chain?: import("viem").Chain | null;
|
|
@@ -804,28 +539,11 @@ export declare class SDSHD_json {
|
|
|
804
539
|
value?: bigint;
|
|
805
540
|
}): Promise<boolean>;
|
|
806
541
|
/**
|
|
807
|
-
* Simulate
|
|
808
|
-
* Returns gas estimate and result without sending transaction
|
|
809
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
810
|
-
*/
|
|
811
|
-
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
812
|
-
accessList?: import("viem").AccessList;
|
|
813
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
814
|
-
chain?: import("viem").Chain | null;
|
|
815
|
-
dataSuffix?: `0x${string}`;
|
|
816
|
-
gas?: bigint;
|
|
817
|
-
gasPrice?: bigint;
|
|
818
|
-
maxFeePerGas?: bigint;
|
|
819
|
-
maxPriorityFeePerGas?: bigint;
|
|
820
|
-
nonce?: number;
|
|
821
|
-
value?: bigint;
|
|
822
|
-
}): Promise<void>;
|
|
823
|
-
/**
|
|
824
|
-
* Simulate updateBlackList
|
|
542
|
+
* Simulate transfer
|
|
825
543
|
* Returns gas estimate and result without sending transaction
|
|
826
544
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
827
545
|
*/
|
|
828
|
-
|
|
546
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
829
547
|
accessList?: import("viem").AccessList;
|
|
830
548
|
authorizationList?: import("viem").AuthorizationList;
|
|
831
549
|
chain?: import("viem").Chain | null;
|
|
@@ -836,13 +554,13 @@ export declare class SDSHD_json {
|
|
|
836
554
|
maxPriorityFeePerGas?: bigint;
|
|
837
555
|
nonce?: number;
|
|
838
556
|
value?: bigint;
|
|
839
|
-
}): Promise<
|
|
557
|
+
}): Promise<boolean>;
|
|
840
558
|
/**
|
|
841
|
-
* Simulate
|
|
559
|
+
* Simulate transferFrom
|
|
842
560
|
* Returns gas estimate and result without sending transaction
|
|
843
561
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
844
562
|
*/
|
|
845
|
-
|
|
563
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
846
564
|
accessList?: import("viem").AccessList;
|
|
847
565
|
authorizationList?: import("viem").AuthorizationList;
|
|
848
566
|
chain?: import("viem").Chain | null;
|
|
@@ -853,7 +571,7 @@ export declare class SDSHD_json {
|
|
|
853
571
|
maxPriorityFeePerGas?: bigint;
|
|
854
572
|
nonce?: number;
|
|
855
573
|
value?: bigint;
|
|
856
|
-
}): Promise<
|
|
574
|
+
}): Promise<boolean>;
|
|
857
575
|
};
|
|
858
576
|
/**
|
|
859
577
|
* Watch contract events
|
|
@@ -882,19 +600,6 @@ export declare class SDSHD_json {
|
|
|
882
600
|
owner: `0x${string}`;
|
|
883
601
|
spender: `0x${string}`;
|
|
884
602
|
}) => () => void;
|
|
885
|
-
/**
|
|
886
|
-
* Watch OwnershipTransferred events
|
|
887
|
-
* @param callback Function to call when event is emitted
|
|
888
|
-
* @param filter Optional filter for indexed parameters
|
|
889
|
-
* @returns Unwatch function to stop listening
|
|
890
|
-
*/
|
|
891
|
-
OwnershipTransferred: (callback: (event: {
|
|
892
|
-
previousOwner: `0x${string}`;
|
|
893
|
-
newOwner: `0x${string}`;
|
|
894
|
-
}) => void, filter?: {
|
|
895
|
-
previousOwner: `0x${string}`;
|
|
896
|
-
newOwner: `0x${string}`;
|
|
897
|
-
}) => () => void;
|
|
898
603
|
/**
|
|
899
604
|
* Watch Transfer events
|
|
900
605
|
* @param callback Function to call when event is emitted
|