@gitmyabi/bax 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 +3 -3
- package/contracts/{BAX_Token_2022_json.d.ts → BaxToken_json.d.ts} +130 -555
- package/contracts/{BAX_Token_2022_json.js → BaxToken_json.js} +159 -651
- package/contracts/{BAX_Token_2022_json.ts → BaxToken_json.ts} +164 -767
- 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,19 +1,19 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* BaxToken_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 constant:
|
|
9
|
-
readonly inputs: readonly [
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
export declare const BaxToken_jsonAbi: readonly [{
|
|
8
|
+
readonly constant: true;
|
|
9
|
+
readonly inputs: readonly [];
|
|
10
|
+
readonly name: "mintingFinished";
|
|
11
|
+
readonly outputs: readonly [{
|
|
12
|
+
readonly name: "";
|
|
13
|
+
readonly type: "bool";
|
|
12
14
|
}];
|
|
13
|
-
readonly name: "destroyFrozenFunds";
|
|
14
|
-
readonly outputs: readonly [];
|
|
15
15
|
readonly payable: false;
|
|
16
|
-
readonly stateMutability: "
|
|
16
|
+
readonly stateMutability: "view";
|
|
17
17
|
readonly type: "function";
|
|
18
18
|
}, {
|
|
19
19
|
readonly constant: true;
|
|
@@ -26,17 +26,6 @@ export declare const BAX_Token_2022_jsonAbi: readonly [{
|
|
|
26
26
|
readonly payable: false;
|
|
27
27
|
readonly stateMutability: "view";
|
|
28
28
|
readonly type: "function";
|
|
29
|
-
}, {
|
|
30
|
-
readonly constant: false;
|
|
31
|
-
readonly inputs: readonly [{
|
|
32
|
-
readonly name: "_upgradeContract";
|
|
33
|
-
readonly type: "address";
|
|
34
|
-
}];
|
|
35
|
-
readonly name: "upgrade";
|
|
36
|
-
readonly outputs: readonly [];
|
|
37
|
-
readonly payable: false;
|
|
38
|
-
readonly stateMutability: "nonpayable";
|
|
39
|
-
readonly type: "function";
|
|
40
29
|
}, {
|
|
41
30
|
readonly constant: false;
|
|
42
31
|
readonly inputs: readonly [{
|
|
@@ -47,20 +36,12 @@ export declare const BAX_Token_2022_jsonAbi: readonly [{
|
|
|
47
36
|
readonly type: "uint256";
|
|
48
37
|
}];
|
|
49
38
|
readonly name: "approve";
|
|
50
|
-
readonly outputs: readonly [];
|
|
51
|
-
readonly payable: false;
|
|
52
|
-
readonly stateMutability: "nonpayable";
|
|
53
|
-
readonly type: "function";
|
|
54
|
-
}, {
|
|
55
|
-
readonly constant: true;
|
|
56
|
-
readonly inputs: readonly [];
|
|
57
|
-
readonly name: "upgradeApplied";
|
|
58
39
|
readonly outputs: readonly [{
|
|
59
40
|
readonly name: "";
|
|
60
41
|
readonly type: "bool";
|
|
61
42
|
}];
|
|
62
43
|
readonly payable: false;
|
|
63
|
-
readonly stateMutability: "
|
|
44
|
+
readonly stateMutability: "nonpayable";
|
|
64
45
|
readonly type: "function";
|
|
65
46
|
}, {
|
|
66
47
|
readonly constant: true;
|
|
@@ -73,17 +54,6 @@ export declare const BAX_Token_2022_jsonAbi: readonly [{
|
|
|
73
54
|
readonly payable: false;
|
|
74
55
|
readonly stateMutability: "view";
|
|
75
56
|
readonly type: "function";
|
|
76
|
-
}, {
|
|
77
|
-
readonly constant: true;
|
|
78
|
-
readonly inputs: readonly [];
|
|
79
|
-
readonly name: "upgradeContract";
|
|
80
|
-
readonly outputs: readonly [{
|
|
81
|
-
readonly name: "";
|
|
82
|
-
readonly type: "address";
|
|
83
|
-
}];
|
|
84
|
-
readonly payable: false;
|
|
85
|
-
readonly stateMutability: "view";
|
|
86
|
-
readonly type: "function";
|
|
87
57
|
}, {
|
|
88
58
|
readonly constant: false;
|
|
89
59
|
readonly inputs: readonly [{
|
|
@@ -97,34 +67,20 @@ export declare const BAX_Token_2022_jsonAbi: readonly [{
|
|
|
97
67
|
readonly type: "uint256";
|
|
98
68
|
}];
|
|
99
69
|
readonly name: "transferFrom";
|
|
100
|
-
readonly outputs: readonly [];
|
|
101
|
-
readonly payable: false;
|
|
102
|
-
readonly stateMutability: "nonpayable";
|
|
103
|
-
readonly type: "function";
|
|
104
|
-
}, {
|
|
105
|
-
readonly constant: true;
|
|
106
|
-
readonly inputs: readonly [{
|
|
107
|
-
readonly name: "";
|
|
108
|
-
readonly type: "address";
|
|
109
|
-
}];
|
|
110
|
-
readonly name: "balances";
|
|
111
70
|
readonly outputs: readonly [{
|
|
112
71
|
readonly name: "";
|
|
113
|
-
readonly type: "
|
|
72
|
+
readonly type: "bool";
|
|
114
73
|
}];
|
|
115
74
|
readonly payable: false;
|
|
116
|
-
readonly stateMutability: "
|
|
75
|
+
readonly stateMutability: "nonpayable";
|
|
117
76
|
readonly type: "function";
|
|
118
77
|
}, {
|
|
119
78
|
readonly constant: true;
|
|
120
|
-
readonly inputs: readonly [
|
|
121
|
-
|
|
122
|
-
readonly type: "address";
|
|
123
|
-
}];
|
|
124
|
-
readonly name: "checkFrozenAlt";
|
|
79
|
+
readonly inputs: readonly [];
|
|
80
|
+
readonly name: "decimals";
|
|
125
81
|
readonly outputs: readonly [{
|
|
126
82
|
readonly name: "";
|
|
127
|
-
readonly type: "
|
|
83
|
+
readonly type: "uint8";
|
|
128
84
|
}];
|
|
129
85
|
readonly payable: false;
|
|
130
86
|
readonly stateMutability: "view";
|
|
@@ -132,7 +88,7 @@ export declare const BAX_Token_2022_jsonAbi: readonly [{
|
|
|
132
88
|
}, {
|
|
133
89
|
readonly constant: true;
|
|
134
90
|
readonly inputs: readonly [];
|
|
135
|
-
readonly name: "
|
|
91
|
+
readonly name: "cap";
|
|
136
92
|
readonly outputs: readonly [{
|
|
137
93
|
readonly name: "";
|
|
138
94
|
readonly type: "uint256";
|
|
@@ -140,87 +96,60 @@ export declare const BAX_Token_2022_jsonAbi: readonly [{
|
|
|
140
96
|
readonly payable: false;
|
|
141
97
|
readonly stateMutability: "view";
|
|
142
98
|
readonly type: "function";
|
|
143
|
-
}, {
|
|
144
|
-
readonly constant: false;
|
|
145
|
-
readonly inputs: readonly [];
|
|
146
|
-
readonly name: "unpause";
|
|
147
|
-
readonly outputs: readonly [];
|
|
148
|
-
readonly payable: false;
|
|
149
|
-
readonly stateMutability: "nonpayable";
|
|
150
|
-
readonly type: "function";
|
|
151
99
|
}, {
|
|
152
100
|
readonly constant: false;
|
|
153
101
|
readonly inputs: readonly [{
|
|
154
|
-
readonly name: "
|
|
102
|
+
readonly name: "_to";
|
|
103
|
+
readonly type: "address";
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "_amount";
|
|
155
106
|
readonly type: "uint256";
|
|
156
107
|
}];
|
|
157
|
-
readonly name: "
|
|
158
|
-
readonly outputs: readonly [
|
|
108
|
+
readonly name: "mint";
|
|
109
|
+
readonly outputs: readonly [{
|
|
110
|
+
readonly name: "";
|
|
111
|
+
readonly type: "bool";
|
|
112
|
+
}];
|
|
159
113
|
readonly payable: false;
|
|
160
114
|
readonly stateMutability: "nonpayable";
|
|
161
115
|
readonly type: "function";
|
|
162
116
|
}, {
|
|
163
117
|
readonly constant: false;
|
|
164
118
|
readonly inputs: readonly [{
|
|
165
|
-
readonly name: "
|
|
166
|
-
readonly type: "uint256";
|
|
167
|
-
}, {
|
|
168
|
-
readonly name: "newMaxFee";
|
|
119
|
+
readonly name: "_value";
|
|
169
120
|
readonly type: "uint256";
|
|
170
121
|
}];
|
|
171
|
-
readonly name: "
|
|
122
|
+
readonly name: "burn";
|
|
172
123
|
readonly outputs: readonly [];
|
|
173
124
|
readonly payable: false;
|
|
174
125
|
readonly stateMutability: "nonpayable";
|
|
175
126
|
readonly type: "function";
|
|
176
127
|
}, {
|
|
177
|
-
readonly constant:
|
|
178
|
-
readonly inputs: readonly [];
|
|
179
|
-
readonly name: "feeLimit";
|
|
180
|
-
readonly outputs: readonly [{
|
|
181
|
-
readonly name: "";
|
|
182
|
-
readonly type: "uint256";
|
|
183
|
-
}];
|
|
184
|
-
readonly payable: false;
|
|
185
|
-
readonly stateMutability: "view";
|
|
186
|
-
readonly type: "function";
|
|
187
|
-
}, {
|
|
188
|
-
readonly constant: true;
|
|
128
|
+
readonly constant: false;
|
|
189
129
|
readonly inputs: readonly [{
|
|
190
|
-
readonly name: "";
|
|
130
|
+
readonly name: "_spender";
|
|
191
131
|
readonly type: "address";
|
|
192
132
|
}, {
|
|
193
|
-
readonly name: "";
|
|
194
|
-
readonly type: "
|
|
133
|
+
readonly name: "_subtractedValue";
|
|
134
|
+
readonly type: "uint256";
|
|
195
135
|
}];
|
|
196
|
-
readonly name: "
|
|
136
|
+
readonly name: "decreaseApproval";
|
|
197
137
|
readonly outputs: readonly [{
|
|
198
138
|
readonly name: "";
|
|
199
|
-
readonly type: "
|
|
200
|
-
}];
|
|
201
|
-
readonly payable: false;
|
|
202
|
-
readonly stateMutability: "view";
|
|
203
|
-
readonly type: "function";
|
|
204
|
-
}, {
|
|
205
|
-
readonly constant: false;
|
|
206
|
-
readonly inputs: readonly [{
|
|
207
|
-
readonly name: "_clearedUser";
|
|
208
|
-
readonly type: "address";
|
|
139
|
+
readonly type: "bool";
|
|
209
140
|
}];
|
|
210
|
-
readonly name: "unfreezeWallet";
|
|
211
|
-
readonly outputs: readonly [];
|
|
212
141
|
readonly payable: false;
|
|
213
142
|
readonly stateMutability: "nonpayable";
|
|
214
143
|
readonly type: "function";
|
|
215
144
|
}, {
|
|
216
145
|
readonly constant: true;
|
|
217
146
|
readonly inputs: readonly [{
|
|
218
|
-
readonly name: "
|
|
147
|
+
readonly name: "_owner";
|
|
219
148
|
readonly type: "address";
|
|
220
149
|
}];
|
|
221
150
|
readonly name: "balanceOf";
|
|
222
151
|
readonly outputs: readonly [{
|
|
223
|
-
readonly name: "";
|
|
152
|
+
readonly name: "balance";
|
|
224
153
|
readonly type: "uint256";
|
|
225
154
|
}];
|
|
226
155
|
readonly payable: false;
|
|
@@ -229,21 +158,13 @@ export declare const BAX_Token_2022_jsonAbi: readonly [{
|
|
|
229
158
|
}, {
|
|
230
159
|
readonly constant: false;
|
|
231
160
|
readonly inputs: readonly [];
|
|
232
|
-
readonly name: "
|
|
233
|
-
readonly outputs: readonly [];
|
|
234
|
-
readonly payable: false;
|
|
235
|
-
readonly stateMutability: "nonpayable";
|
|
236
|
-
readonly type: "function";
|
|
237
|
-
}, {
|
|
238
|
-
readonly constant: true;
|
|
239
|
-
readonly inputs: readonly [];
|
|
240
|
-
readonly name: "contractPaused";
|
|
161
|
+
readonly name: "finishMinting";
|
|
241
162
|
readonly outputs: readonly [{
|
|
242
163
|
readonly name: "";
|
|
243
164
|
readonly type: "bool";
|
|
244
165
|
}];
|
|
245
166
|
readonly payable: false;
|
|
246
|
-
readonly stateMutability: "
|
|
167
|
+
readonly stateMutability: "nonpayable";
|
|
247
168
|
readonly type: "function";
|
|
248
169
|
}, {
|
|
249
170
|
readonly constant: true;
|
|
@@ -267,88 +188,39 @@ export declare const BAX_Token_2022_jsonAbi: readonly [{
|
|
|
267
188
|
readonly payable: false;
|
|
268
189
|
readonly stateMutability: "view";
|
|
269
190
|
readonly type: "function";
|
|
270
|
-
}, {
|
|
271
|
-
readonly constant: true;
|
|
272
|
-
readonly inputs: readonly [];
|
|
273
|
-
readonly name: "feeRate";
|
|
274
|
-
readonly outputs: readonly [{
|
|
275
|
-
readonly name: "";
|
|
276
|
-
readonly type: "uint256";
|
|
277
|
-
}];
|
|
278
|
-
readonly payable: false;
|
|
279
|
-
readonly stateMutability: "view";
|
|
280
|
-
readonly type: "function";
|
|
281
191
|
}, {
|
|
282
192
|
readonly constant: false;
|
|
283
193
|
readonly inputs: readonly [{
|
|
284
|
-
readonly name: "
|
|
285
|
-
readonly type: "address";
|
|
286
|
-
}];
|
|
287
|
-
readonly name: "freezeWallet";
|
|
288
|
-
readonly outputs: readonly [];
|
|
289
|
-
readonly payable: false;
|
|
290
|
-
readonly stateMutability: "nonpayable";
|
|
291
|
-
readonly type: "function";
|
|
292
|
-
}, {
|
|
293
|
-
readonly constant: true;
|
|
294
|
-
readonly inputs: readonly [{
|
|
295
|
-
readonly name: "_maker";
|
|
194
|
+
readonly name: "_to";
|
|
296
195
|
readonly type: "address";
|
|
196
|
+
}, {
|
|
197
|
+
readonly name: "_value";
|
|
198
|
+
readonly type: "uint256";
|
|
297
199
|
}];
|
|
298
|
-
readonly name: "
|
|
200
|
+
readonly name: "transfer";
|
|
299
201
|
readonly outputs: readonly [{
|
|
300
202
|
readonly name: "";
|
|
301
203
|
readonly type: "bool";
|
|
302
204
|
}];
|
|
303
205
|
readonly payable: false;
|
|
304
|
-
readonly stateMutability: "view";
|
|
305
|
-
readonly type: "function";
|
|
306
|
-
}, {
|
|
307
|
-
readonly constant: false;
|
|
308
|
-
readonly inputs: readonly [{
|
|
309
|
-
readonly name: "amount";
|
|
310
|
-
readonly type: "uint256";
|
|
311
|
-
}];
|
|
312
|
-
readonly name: "mint";
|
|
313
|
-
readonly outputs: readonly [];
|
|
314
|
-
readonly payable: false;
|
|
315
206
|
readonly stateMutability: "nonpayable";
|
|
316
207
|
readonly type: "function";
|
|
317
208
|
}, {
|
|
318
209
|
readonly constant: false;
|
|
319
210
|
readonly inputs: readonly [{
|
|
320
|
-
readonly name: "
|
|
211
|
+
readonly name: "_spender";
|
|
321
212
|
readonly type: "address";
|
|
322
213
|
}, {
|
|
323
|
-
readonly name: "
|
|
214
|
+
readonly name: "_addedValue";
|
|
324
215
|
readonly type: "uint256";
|
|
325
216
|
}];
|
|
326
|
-
readonly name: "
|
|
327
|
-
readonly outputs: readonly [];
|
|
328
|
-
readonly payable: false;
|
|
329
|
-
readonly stateMutability: "nonpayable";
|
|
330
|
-
readonly type: "function";
|
|
331
|
-
}, {
|
|
332
|
-
readonly constant: true;
|
|
333
|
-
readonly inputs: readonly [];
|
|
334
|
-
readonly name: "ownerAlt";
|
|
335
|
-
readonly outputs: readonly [{
|
|
336
|
-
readonly name: "";
|
|
337
|
-
readonly type: "address";
|
|
338
|
-
}];
|
|
339
|
-
readonly payable: false;
|
|
340
|
-
readonly stateMutability: "view";
|
|
341
|
-
readonly type: "function";
|
|
342
|
-
}, {
|
|
343
|
-
readonly constant: true;
|
|
344
|
-
readonly inputs: readonly [];
|
|
345
|
-
readonly name: "MAX_CAP";
|
|
217
|
+
readonly name: "increaseApproval";
|
|
346
218
|
readonly outputs: readonly [{
|
|
347
219
|
readonly name: "";
|
|
348
|
-
readonly type: "
|
|
220
|
+
readonly type: "bool";
|
|
349
221
|
}];
|
|
350
222
|
readonly payable: false;
|
|
351
|
-
readonly stateMutability: "
|
|
223
|
+
readonly stateMutability: "nonpayable";
|
|
352
224
|
readonly type: "function";
|
|
353
225
|
}, {
|
|
354
226
|
readonly constant: true;
|
|
@@ -360,28 +232,6 @@ export declare const BAX_Token_2022_jsonAbi: readonly [{
|
|
|
360
232
|
readonly type: "address";
|
|
361
233
|
}];
|
|
362
234
|
readonly name: "allowance";
|
|
363
|
-
readonly outputs: readonly [{
|
|
364
|
-
readonly name: "remaining";
|
|
365
|
-
readonly type: "uint256";
|
|
366
|
-
}];
|
|
367
|
-
readonly payable: false;
|
|
368
|
-
readonly stateMutability: "view";
|
|
369
|
-
readonly type: "function";
|
|
370
|
-
}, {
|
|
371
|
-
readonly constant: true;
|
|
372
|
-
readonly inputs: readonly [];
|
|
373
|
-
readonly name: "totalSupplyAlt";
|
|
374
|
-
readonly outputs: readonly [{
|
|
375
|
-
readonly name: "";
|
|
376
|
-
readonly type: "uint256";
|
|
377
|
-
}];
|
|
378
|
-
readonly payable: false;
|
|
379
|
-
readonly stateMutability: "view";
|
|
380
|
-
readonly type: "function";
|
|
381
|
-
}, {
|
|
382
|
-
readonly constant: true;
|
|
383
|
-
readonly inputs: readonly [];
|
|
384
|
-
readonly name: "MAX_UINT";
|
|
385
235
|
readonly outputs: readonly [{
|
|
386
236
|
readonly name: "";
|
|
387
237
|
readonly type: "uint256";
|
|
@@ -401,25 +251,17 @@ export declare const BAX_Token_2022_jsonAbi: readonly [{
|
|
|
401
251
|
readonly stateMutability: "nonpayable";
|
|
402
252
|
readonly type: "function";
|
|
403
253
|
}, {
|
|
404
|
-
readonly inputs: readonly [
|
|
405
|
-
readonly name: "_initialSupply";
|
|
406
|
-
readonly type: "uint256";
|
|
407
|
-
}, {
|
|
408
|
-
readonly name: "_name";
|
|
409
|
-
readonly type: "string";
|
|
410
|
-
}, {
|
|
411
|
-
readonly name: "_symbol";
|
|
412
|
-
readonly type: "string";
|
|
413
|
-
}, {
|
|
414
|
-
readonly name: "_decimals";
|
|
415
|
-
readonly type: "uint256";
|
|
416
|
-
}];
|
|
254
|
+
readonly inputs: readonly [];
|
|
417
255
|
readonly payable: false;
|
|
418
256
|
readonly stateMutability: "nonpayable";
|
|
419
257
|
readonly type: "constructor";
|
|
420
258
|
}, {
|
|
421
259
|
readonly anonymous: false;
|
|
422
260
|
readonly inputs: readonly [{
|
|
261
|
+
readonly indexed: true;
|
|
262
|
+
readonly name: "to";
|
|
263
|
+
readonly type: "address";
|
|
264
|
+
}, {
|
|
423
265
|
readonly indexed: false;
|
|
424
266
|
readonly name: "amount";
|
|
425
267
|
readonly type: "uint256";
|
|
@@ -428,65 +270,34 @@ export declare const BAX_Token_2022_jsonAbi: readonly [{
|
|
|
428
270
|
readonly type: "event";
|
|
429
271
|
}, {
|
|
430
272
|
readonly anonymous: false;
|
|
431
|
-
readonly inputs: readonly [
|
|
432
|
-
|
|
433
|
-
readonly name: "amount";
|
|
434
|
-
readonly type: "uint256";
|
|
435
|
-
}];
|
|
436
|
-
readonly name: "Burn";
|
|
273
|
+
readonly inputs: readonly [];
|
|
274
|
+
readonly name: "MintFinished";
|
|
437
275
|
readonly type: "event";
|
|
438
276
|
}, {
|
|
439
277
|
readonly anonymous: false;
|
|
440
278
|
readonly inputs: readonly [{
|
|
441
|
-
readonly indexed:
|
|
442
|
-
readonly name: "
|
|
279
|
+
readonly indexed: true;
|
|
280
|
+
readonly name: "previousOwner";
|
|
443
281
|
readonly type: "address";
|
|
444
|
-
}];
|
|
445
|
-
readonly name: "Upgrade";
|
|
446
|
-
readonly type: "event";
|
|
447
|
-
}, {
|
|
448
|
-
readonly anonymous: false;
|
|
449
|
-
readonly inputs: readonly [{
|
|
450
|
-
readonly indexed: false;
|
|
451
|
-
readonly name: "feeBasisPoints";
|
|
452
|
-
readonly type: "uint256";
|
|
453
282
|
}, {
|
|
454
|
-
readonly indexed:
|
|
455
|
-
readonly name: "
|
|
456
|
-
readonly type: "
|
|
283
|
+
readonly indexed: true;
|
|
284
|
+
readonly name: "newOwner";
|
|
285
|
+
readonly type: "address";
|
|
457
286
|
}];
|
|
458
|
-
readonly name: "
|
|
287
|
+
readonly name: "OwnershipTransferred";
|
|
459
288
|
readonly type: "event";
|
|
460
289
|
}, {
|
|
461
290
|
readonly anonymous: false;
|
|
462
291
|
readonly inputs: readonly [{
|
|
463
|
-
readonly indexed:
|
|
464
|
-
readonly name: "
|
|
292
|
+
readonly indexed: true;
|
|
293
|
+
readonly name: "burner";
|
|
465
294
|
readonly type: "address";
|
|
466
295
|
}, {
|
|
467
296
|
readonly indexed: false;
|
|
468
|
-
readonly name: "
|
|
297
|
+
readonly name: "value";
|
|
469
298
|
readonly type: "uint256";
|
|
470
299
|
}];
|
|
471
|
-
readonly name: "
|
|
472
|
-
readonly type: "event";
|
|
473
|
-
}, {
|
|
474
|
-
readonly anonymous: false;
|
|
475
|
-
readonly inputs: readonly [{
|
|
476
|
-
readonly indexed: false;
|
|
477
|
-
readonly name: "_user";
|
|
478
|
-
readonly type: "address";
|
|
479
|
-
}];
|
|
480
|
-
readonly name: "WalletFrozen";
|
|
481
|
-
readonly type: "event";
|
|
482
|
-
}, {
|
|
483
|
-
readonly anonymous: false;
|
|
484
|
-
readonly inputs: readonly [{
|
|
485
|
-
readonly indexed: false;
|
|
486
|
-
readonly name: "_user";
|
|
487
|
-
readonly type: "address";
|
|
488
|
-
}];
|
|
489
|
-
readonly name: "WalletUnfrozen";
|
|
300
|
+
readonly name: "Burn";
|
|
490
301
|
readonly type: "event";
|
|
491
302
|
}, {
|
|
492
303
|
readonly anonymous: false;
|
|
@@ -522,27 +333,17 @@ export declare const BAX_Token_2022_jsonAbi: readonly [{
|
|
|
522
333
|
}];
|
|
523
334
|
readonly name: "Transfer";
|
|
524
335
|
readonly type: "event";
|
|
525
|
-
}, {
|
|
526
|
-
readonly anonymous: false;
|
|
527
|
-
readonly inputs: readonly [];
|
|
528
|
-
readonly name: "Pause";
|
|
529
|
-
readonly type: "event";
|
|
530
|
-
}, {
|
|
531
|
-
readonly anonymous: false;
|
|
532
|
-
readonly inputs: readonly [];
|
|
533
|
-
readonly name: "Unpause";
|
|
534
|
-
readonly type: "event";
|
|
535
336
|
}];
|
|
536
337
|
/**
|
|
537
|
-
* Type-safe ABI for
|
|
338
|
+
* Type-safe ABI for BaxToken_json
|
|
538
339
|
*/
|
|
539
|
-
export type
|
|
340
|
+
export type BaxToken_jsonAbi = typeof BaxToken_jsonAbi;
|
|
540
341
|
/**
|
|
541
|
-
* Contract instance type for
|
|
342
|
+
* Contract instance type for BaxToken_json
|
|
542
343
|
*/
|
|
543
|
-
export type
|
|
344
|
+
export type BaxToken_jsonContract = any;
|
|
544
345
|
/**
|
|
545
|
-
*
|
|
346
|
+
* BaxToken_json Contract Class
|
|
546
347
|
*
|
|
547
348
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
548
349
|
*
|
|
@@ -550,12 +351,12 @@ export type BAX_Token_2022_jsonContract = any;
|
|
|
550
351
|
* ```typescript
|
|
551
352
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
552
353
|
* import { mainnet } from 'viem/chains';
|
|
553
|
-
* import {
|
|
354
|
+
* import { BaxToken_json } from 'BaxToken_json';
|
|
554
355
|
*
|
|
555
356
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
556
357
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
557
358
|
*
|
|
558
|
-
* const contract = new
|
|
359
|
+
* const contract = new BaxToken_json('0x...', { publicClient, walletClient });
|
|
559
360
|
*
|
|
560
361
|
* // Read functions
|
|
561
362
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -573,7 +374,7 @@ export type BAX_Token_2022_jsonContract = any;
|
|
|
573
374
|
* });
|
|
574
375
|
* ```
|
|
575
376
|
*/
|
|
576
|
-
export declare class
|
|
377
|
+
export declare class BaxToken_json {
|
|
577
378
|
private contract;
|
|
578
379
|
private contractAddress;
|
|
579
380
|
private publicClient;
|
|
@@ -588,62 +389,37 @@ export declare class BAX_Token_2022_json {
|
|
|
588
389
|
/**
|
|
589
390
|
* Get the underlying viem contract instance
|
|
590
391
|
*/
|
|
591
|
-
getContract():
|
|
392
|
+
getContract(): BaxToken_jsonContract;
|
|
592
393
|
/**
|
|
593
|
-
*
|
|
394
|
+
* mintingFinished
|
|
594
395
|
* view
|
|
595
396
|
*/
|
|
596
|
-
|
|
397
|
+
mintingFinished(): Promise<boolean>;
|
|
597
398
|
/**
|
|
598
|
-
*
|
|
399
|
+
* name
|
|
599
400
|
* view
|
|
600
401
|
*/
|
|
601
|
-
|
|
402
|
+
name(): Promise<string>;
|
|
602
403
|
/**
|
|
603
404
|
* totalSupply
|
|
604
405
|
* view
|
|
605
406
|
*/
|
|
606
407
|
totalSupply(): Promise<bigint>;
|
|
607
|
-
/**
|
|
608
|
-
* upgradeContract
|
|
609
|
-
* view
|
|
610
|
-
*/
|
|
611
|
-
upgradeContract(): Promise<`0x${string}`>;
|
|
612
|
-
/**
|
|
613
|
-
* balances
|
|
614
|
-
* view
|
|
615
|
-
*/
|
|
616
|
-
balances(arg0: `0x${string}`): Promise<bigint>;
|
|
617
|
-
/**
|
|
618
|
-
* checkFrozenAlt
|
|
619
|
-
* view
|
|
620
|
-
*/
|
|
621
|
-
checkFrozenAlt(arg0: `0x${string}`): Promise<boolean>;
|
|
622
408
|
/**
|
|
623
409
|
* decimals
|
|
624
410
|
* view
|
|
625
411
|
*/
|
|
626
412
|
decimals(): Promise<bigint>;
|
|
627
413
|
/**
|
|
628
|
-
*
|
|
414
|
+
* cap
|
|
629
415
|
* view
|
|
630
416
|
*/
|
|
631
|
-
|
|
632
|
-
/**
|
|
633
|
-
* allowed
|
|
634
|
-
* view
|
|
635
|
-
*/
|
|
636
|
-
allowed(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
|
|
417
|
+
cap(): Promise<bigint>;
|
|
637
418
|
/**
|
|
638
419
|
* balanceOf
|
|
639
420
|
* view
|
|
640
421
|
*/
|
|
641
|
-
balanceOf(
|
|
642
|
-
/**
|
|
643
|
-
* contractPaused
|
|
644
|
-
* view
|
|
645
|
-
*/
|
|
646
|
-
contractPaused(): Promise<boolean>;
|
|
422
|
+
balanceOf(_owner: `0x${string}`): Promise<bigint>;
|
|
647
423
|
/**
|
|
648
424
|
* owner
|
|
649
425
|
* view
|
|
@@ -654,75 +430,11 @@ export declare class BAX_Token_2022_json {
|
|
|
654
430
|
* view
|
|
655
431
|
*/
|
|
656
432
|
symbol(): Promise<string>;
|
|
657
|
-
/**
|
|
658
|
-
* feeRate
|
|
659
|
-
* view
|
|
660
|
-
*/
|
|
661
|
-
feeRate(): Promise<bigint>;
|
|
662
|
-
/**
|
|
663
|
-
* checkFrozen
|
|
664
|
-
* view
|
|
665
|
-
*/
|
|
666
|
-
checkFrozen(_maker: `0x${string}`): Promise<boolean>;
|
|
667
|
-
/**
|
|
668
|
-
* ownerAlt
|
|
669
|
-
* view
|
|
670
|
-
*/
|
|
671
|
-
ownerAlt(): Promise<`0x${string}`>;
|
|
672
|
-
/**
|
|
673
|
-
* MAX_CAP
|
|
674
|
-
* view
|
|
675
|
-
*/
|
|
676
|
-
MAX_CAP(): Promise<bigint>;
|
|
677
433
|
/**
|
|
678
434
|
* allowance
|
|
679
435
|
* view
|
|
680
436
|
*/
|
|
681
437
|
allowance(_owner: `0x${string}`, _spender: `0x${string}`): Promise<bigint>;
|
|
682
|
-
/**
|
|
683
|
-
* totalSupplyAlt
|
|
684
|
-
* view
|
|
685
|
-
*/
|
|
686
|
-
totalSupplyAlt(): Promise<bigint>;
|
|
687
|
-
/**
|
|
688
|
-
* MAX_UINT
|
|
689
|
-
* view
|
|
690
|
-
*/
|
|
691
|
-
MAX_UINT(): Promise<bigint>;
|
|
692
|
-
/**
|
|
693
|
-
* destroyFrozenFunds
|
|
694
|
-
* nonpayable
|
|
695
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
696
|
-
*/
|
|
697
|
-
destroyFrozenFunds(_blackListedUser: `0x${string}`, options?: {
|
|
698
|
-
accessList?: import('viem').AccessList;
|
|
699
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
700
|
-
chain?: import('viem').Chain | null;
|
|
701
|
-
dataSuffix?: `0x${string}`;
|
|
702
|
-
gas?: bigint;
|
|
703
|
-
gasPrice?: bigint;
|
|
704
|
-
maxFeePerGas?: bigint;
|
|
705
|
-
maxPriorityFeePerGas?: bigint;
|
|
706
|
-
nonce?: number;
|
|
707
|
-
value?: bigint;
|
|
708
|
-
}): Promise<`0x${string}`>;
|
|
709
|
-
/**
|
|
710
|
-
* upgrade
|
|
711
|
-
* nonpayable
|
|
712
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
713
|
-
*/
|
|
714
|
-
upgrade(_upgradeContract: `0x${string}`, options?: {
|
|
715
|
-
accessList?: import('viem').AccessList;
|
|
716
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
717
|
-
chain?: import('viem').Chain | null;
|
|
718
|
-
dataSuffix?: `0x${string}`;
|
|
719
|
-
gas?: bigint;
|
|
720
|
-
gasPrice?: bigint;
|
|
721
|
-
maxFeePerGas?: bigint;
|
|
722
|
-
maxPriorityFeePerGas?: bigint;
|
|
723
|
-
nonce?: number;
|
|
724
|
-
value?: bigint;
|
|
725
|
-
}): Promise<`0x${string}`>;
|
|
726
438
|
/**
|
|
727
439
|
* approve
|
|
728
440
|
* nonpayable
|
|
@@ -758,11 +470,11 @@ export declare class BAX_Token_2022_json {
|
|
|
758
470
|
value?: bigint;
|
|
759
471
|
}): Promise<`0x${string}`>;
|
|
760
472
|
/**
|
|
761
|
-
*
|
|
473
|
+
* mint
|
|
762
474
|
* nonpayable
|
|
763
475
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
764
476
|
*/
|
|
765
|
-
|
|
477
|
+
mint(_to: `0x${string}`, _amount: bigint, options?: {
|
|
766
478
|
accessList?: import('viem').AccessList;
|
|
767
479
|
authorizationList?: import('viem').AuthorizationList;
|
|
768
480
|
chain?: import('viem').Chain | null;
|
|
@@ -779,41 +491,7 @@ export declare class BAX_Token_2022_json {
|
|
|
779
491
|
* nonpayable
|
|
780
492
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
781
493
|
*/
|
|
782
|
-
burn(
|
|
783
|
-
accessList?: import('viem').AccessList;
|
|
784
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
785
|
-
chain?: import('viem').Chain | null;
|
|
786
|
-
dataSuffix?: `0x${string}`;
|
|
787
|
-
gas?: bigint;
|
|
788
|
-
gasPrice?: bigint;
|
|
789
|
-
maxFeePerGas?: bigint;
|
|
790
|
-
maxPriorityFeePerGas?: bigint;
|
|
791
|
-
nonce?: number;
|
|
792
|
-
value?: bigint;
|
|
793
|
-
}): Promise<`0x${string}`>;
|
|
794
|
-
/**
|
|
795
|
-
* setFee
|
|
796
|
-
* nonpayable
|
|
797
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
798
|
-
*/
|
|
799
|
-
setFee(newBasisPoints: bigint, newMaxFee: bigint, options?: {
|
|
800
|
-
accessList?: import('viem').AccessList;
|
|
801
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
802
|
-
chain?: import('viem').Chain | null;
|
|
803
|
-
dataSuffix?: `0x${string}`;
|
|
804
|
-
gas?: bigint;
|
|
805
|
-
gasPrice?: bigint;
|
|
806
|
-
maxFeePerGas?: bigint;
|
|
807
|
-
maxPriorityFeePerGas?: bigint;
|
|
808
|
-
nonce?: number;
|
|
809
|
-
value?: bigint;
|
|
810
|
-
}): Promise<`0x${string}`>;
|
|
811
|
-
/**
|
|
812
|
-
* unfreezeWallet
|
|
813
|
-
* nonpayable
|
|
814
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
815
|
-
*/
|
|
816
|
-
unfreezeWallet(_clearedUser: `0x${string}`, options?: {
|
|
494
|
+
burn(_value: bigint, options?: {
|
|
817
495
|
accessList?: import('viem').AccessList;
|
|
818
496
|
authorizationList?: import('viem').AuthorizationList;
|
|
819
497
|
chain?: import('viem').Chain | null;
|
|
@@ -826,11 +504,11 @@ export declare class BAX_Token_2022_json {
|
|
|
826
504
|
value?: bigint;
|
|
827
505
|
}): Promise<`0x${string}`>;
|
|
828
506
|
/**
|
|
829
|
-
*
|
|
507
|
+
* decreaseApproval
|
|
830
508
|
* nonpayable
|
|
831
509
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
832
510
|
*/
|
|
833
|
-
|
|
511
|
+
decreaseApproval(_spender: `0x${string}`, _subtractedValue: bigint, options?: {
|
|
834
512
|
accessList?: import('viem').AccessList;
|
|
835
513
|
authorizationList?: import('viem').AuthorizationList;
|
|
836
514
|
chain?: import('viem').Chain | null;
|
|
@@ -843,11 +521,11 @@ export declare class BAX_Token_2022_json {
|
|
|
843
521
|
value?: bigint;
|
|
844
522
|
}): Promise<`0x${string}`>;
|
|
845
523
|
/**
|
|
846
|
-
*
|
|
524
|
+
* finishMinting
|
|
847
525
|
* nonpayable
|
|
848
526
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
849
527
|
*/
|
|
850
|
-
|
|
528
|
+
finishMinting(options?: {
|
|
851
529
|
accessList?: import('viem').AccessList;
|
|
852
530
|
authorizationList?: import('viem').AuthorizationList;
|
|
853
531
|
chain?: import('viem').Chain | null;
|
|
@@ -860,11 +538,11 @@ export declare class BAX_Token_2022_json {
|
|
|
860
538
|
value?: bigint;
|
|
861
539
|
}): Promise<`0x${string}`>;
|
|
862
540
|
/**
|
|
863
|
-
*
|
|
541
|
+
* transfer
|
|
864
542
|
* nonpayable
|
|
865
543
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
866
544
|
*/
|
|
867
|
-
|
|
545
|
+
transfer(_to: `0x${string}`, _value: bigint, options?: {
|
|
868
546
|
accessList?: import('viem').AccessList;
|
|
869
547
|
authorizationList?: import('viem').AuthorizationList;
|
|
870
548
|
chain?: import('viem').Chain | null;
|
|
@@ -877,11 +555,11 @@ export declare class BAX_Token_2022_json {
|
|
|
877
555
|
value?: bigint;
|
|
878
556
|
}): Promise<`0x${string}`>;
|
|
879
557
|
/**
|
|
880
|
-
*
|
|
558
|
+
* increaseApproval
|
|
881
559
|
* nonpayable
|
|
882
560
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
883
561
|
*/
|
|
884
|
-
|
|
562
|
+
increaseApproval(_spender: `0x${string}`, _addedValue: bigint, options?: {
|
|
885
563
|
accessList?: import('viem').AccessList;
|
|
886
564
|
authorizationList?: import('viem').AuthorizationList;
|
|
887
565
|
chain?: import('viem').Chain | null;
|
|
@@ -919,40 +597,6 @@ export declare class BAX_Token_2022_json {
|
|
|
919
597
|
* console.log('Would succeed:', result.result);
|
|
920
598
|
*/
|
|
921
599
|
get simulate(): {
|
|
922
|
-
/**
|
|
923
|
-
* Simulate destroyFrozenFunds
|
|
924
|
-
* Returns gas estimate and result without sending transaction
|
|
925
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
926
|
-
*/
|
|
927
|
-
destroyFrozenFunds(_blackListedUser: `0x${string}`, options?: {
|
|
928
|
-
accessList?: import("viem").AccessList;
|
|
929
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
930
|
-
chain?: import("viem").Chain | null;
|
|
931
|
-
dataSuffix?: `0x${string}`;
|
|
932
|
-
gas?: bigint;
|
|
933
|
-
gasPrice?: bigint;
|
|
934
|
-
maxFeePerGas?: bigint;
|
|
935
|
-
maxPriorityFeePerGas?: bigint;
|
|
936
|
-
nonce?: number;
|
|
937
|
-
value?: bigint;
|
|
938
|
-
}): Promise<void>;
|
|
939
|
-
/**
|
|
940
|
-
* Simulate upgrade
|
|
941
|
-
* Returns gas estimate and result without sending transaction
|
|
942
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
943
|
-
*/
|
|
944
|
-
upgrade(_upgradeContract: `0x${string}`, options?: {
|
|
945
|
-
accessList?: import("viem").AccessList;
|
|
946
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
947
|
-
chain?: import("viem").Chain | null;
|
|
948
|
-
dataSuffix?: `0x${string}`;
|
|
949
|
-
gas?: bigint;
|
|
950
|
-
gasPrice?: bigint;
|
|
951
|
-
maxFeePerGas?: bigint;
|
|
952
|
-
maxPriorityFeePerGas?: bigint;
|
|
953
|
-
nonce?: number;
|
|
954
|
-
value?: bigint;
|
|
955
|
-
}): Promise<void>;
|
|
956
600
|
/**
|
|
957
601
|
* Simulate approve
|
|
958
602
|
* Returns gas estimate and result without sending transaction
|
|
@@ -969,7 +613,7 @@ export declare class BAX_Token_2022_json {
|
|
|
969
613
|
maxPriorityFeePerGas?: bigint;
|
|
970
614
|
nonce?: number;
|
|
971
615
|
value?: bigint;
|
|
972
|
-
}): Promise<
|
|
616
|
+
}): Promise<boolean>;
|
|
973
617
|
/**
|
|
974
618
|
* Simulate transferFrom
|
|
975
619
|
* Returns gas estimate and result without sending transaction
|
|
@@ -986,13 +630,13 @@ export declare class BAX_Token_2022_json {
|
|
|
986
630
|
maxPriorityFeePerGas?: bigint;
|
|
987
631
|
nonce?: number;
|
|
988
632
|
value?: bigint;
|
|
989
|
-
}): Promise<
|
|
633
|
+
}): Promise<boolean>;
|
|
990
634
|
/**
|
|
991
|
-
* Simulate
|
|
635
|
+
* Simulate mint
|
|
992
636
|
* Returns gas estimate and result without sending transaction
|
|
993
637
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
994
638
|
*/
|
|
995
|
-
|
|
639
|
+
mint(_to: `0x${string}`, _amount: bigint, options?: {
|
|
996
640
|
accessList?: import("viem").AccessList;
|
|
997
641
|
authorizationList?: import("viem").AuthorizationList;
|
|
998
642
|
chain?: import("viem").Chain | null;
|
|
@@ -1003,30 +647,13 @@ export declare class BAX_Token_2022_json {
|
|
|
1003
647
|
maxPriorityFeePerGas?: bigint;
|
|
1004
648
|
nonce?: number;
|
|
1005
649
|
value?: bigint;
|
|
1006
|
-
}): Promise<
|
|
650
|
+
}): Promise<boolean>;
|
|
1007
651
|
/**
|
|
1008
652
|
* Simulate burn
|
|
1009
653
|
* Returns gas estimate and result without sending transaction
|
|
1010
654
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1011
655
|
*/
|
|
1012
|
-
burn(
|
|
1013
|
-
accessList?: import("viem").AccessList;
|
|
1014
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1015
|
-
chain?: import("viem").Chain | null;
|
|
1016
|
-
dataSuffix?: `0x${string}`;
|
|
1017
|
-
gas?: bigint;
|
|
1018
|
-
gasPrice?: bigint;
|
|
1019
|
-
maxFeePerGas?: bigint;
|
|
1020
|
-
maxPriorityFeePerGas?: bigint;
|
|
1021
|
-
nonce?: number;
|
|
1022
|
-
value?: bigint;
|
|
1023
|
-
}): Promise<void>;
|
|
1024
|
-
/**
|
|
1025
|
-
* Simulate setFee
|
|
1026
|
-
* Returns gas estimate and result without sending transaction
|
|
1027
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1028
|
-
*/
|
|
1029
|
-
setFee(newBasisPoints: bigint, newMaxFee: bigint, options?: {
|
|
656
|
+
burn(_value: bigint, options?: {
|
|
1030
657
|
accessList?: import("viem").AccessList;
|
|
1031
658
|
authorizationList?: import("viem").AuthorizationList;
|
|
1032
659
|
chain?: import("viem").Chain | null;
|
|
@@ -1039,11 +666,11 @@ export declare class BAX_Token_2022_json {
|
|
|
1039
666
|
value?: bigint;
|
|
1040
667
|
}): Promise<void>;
|
|
1041
668
|
/**
|
|
1042
|
-
* Simulate
|
|
669
|
+
* Simulate decreaseApproval
|
|
1043
670
|
* Returns gas estimate and result without sending transaction
|
|
1044
671
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1045
672
|
*/
|
|
1046
|
-
|
|
673
|
+
decreaseApproval(_spender: `0x${string}`, _subtractedValue: bigint, options?: {
|
|
1047
674
|
accessList?: import("viem").AccessList;
|
|
1048
675
|
authorizationList?: import("viem").AuthorizationList;
|
|
1049
676
|
chain?: import("viem").Chain | null;
|
|
@@ -1054,13 +681,13 @@ export declare class BAX_Token_2022_json {
|
|
|
1054
681
|
maxPriorityFeePerGas?: bigint;
|
|
1055
682
|
nonce?: number;
|
|
1056
683
|
value?: bigint;
|
|
1057
|
-
}): Promise<
|
|
684
|
+
}): Promise<boolean>;
|
|
1058
685
|
/**
|
|
1059
|
-
* Simulate
|
|
686
|
+
* Simulate finishMinting
|
|
1060
687
|
* Returns gas estimate and result without sending transaction
|
|
1061
688
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1062
689
|
*/
|
|
1063
|
-
|
|
690
|
+
finishMinting(options?: {
|
|
1064
691
|
accessList?: import("viem").AccessList;
|
|
1065
692
|
authorizationList?: import("viem").AuthorizationList;
|
|
1066
693
|
chain?: import("viem").Chain | null;
|
|
@@ -1071,30 +698,13 @@ export declare class BAX_Token_2022_json {
|
|
|
1071
698
|
maxPriorityFeePerGas?: bigint;
|
|
1072
699
|
nonce?: number;
|
|
1073
700
|
value?: bigint;
|
|
1074
|
-
}): Promise<
|
|
701
|
+
}): Promise<boolean>;
|
|
1075
702
|
/**
|
|
1076
|
-
* Simulate
|
|
1077
|
-
* Returns gas estimate and result without sending transaction
|
|
1078
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1079
|
-
*/
|
|
1080
|
-
freezeWallet(_evilUser: `0x${string}`, options?: {
|
|
1081
|
-
accessList?: import("viem").AccessList;
|
|
1082
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1083
|
-
chain?: import("viem").Chain | null;
|
|
1084
|
-
dataSuffix?: `0x${string}`;
|
|
1085
|
-
gas?: bigint;
|
|
1086
|
-
gasPrice?: bigint;
|
|
1087
|
-
maxFeePerGas?: bigint;
|
|
1088
|
-
maxPriorityFeePerGas?: bigint;
|
|
1089
|
-
nonce?: number;
|
|
1090
|
-
value?: bigint;
|
|
1091
|
-
}): Promise<void>;
|
|
1092
|
-
/**
|
|
1093
|
-
* Simulate mint
|
|
703
|
+
* Simulate transfer
|
|
1094
704
|
* Returns gas estimate and result without sending transaction
|
|
1095
705
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1096
706
|
*/
|
|
1097
|
-
|
|
707
|
+
transfer(_to: `0x${string}`, _value: bigint, options?: {
|
|
1098
708
|
accessList?: import("viem").AccessList;
|
|
1099
709
|
authorizationList?: import("viem").AuthorizationList;
|
|
1100
710
|
chain?: import("viem").Chain | null;
|
|
@@ -1105,13 +715,13 @@ export declare class BAX_Token_2022_json {
|
|
|
1105
715
|
maxPriorityFeePerGas?: bigint;
|
|
1106
716
|
nonce?: number;
|
|
1107
717
|
value?: bigint;
|
|
1108
|
-
}): Promise<
|
|
718
|
+
}): Promise<boolean>;
|
|
1109
719
|
/**
|
|
1110
|
-
* Simulate
|
|
720
|
+
* Simulate increaseApproval
|
|
1111
721
|
* Returns gas estimate and result without sending transaction
|
|
1112
722
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1113
723
|
*/
|
|
1114
|
-
|
|
724
|
+
increaseApproval(_spender: `0x${string}`, _addedValue: bigint, options?: {
|
|
1115
725
|
accessList?: import("viem").AccessList;
|
|
1116
726
|
authorizationList?: import("viem").AuthorizationList;
|
|
1117
727
|
chain?: import("viem").Chain | null;
|
|
@@ -1122,7 +732,7 @@ export declare class BAX_Token_2022_json {
|
|
|
1122
732
|
maxPriorityFeePerGas?: bigint;
|
|
1123
733
|
nonce?: number;
|
|
1124
734
|
value?: bigint;
|
|
1125
|
-
}): Promise<
|
|
735
|
+
}): Promise<boolean>;
|
|
1126
736
|
/**
|
|
1127
737
|
* Simulate transferOwnership
|
|
1128
738
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1161,64 +771,43 @@ export declare class BAX_Token_2022_json {
|
|
|
1161
771
|
* @returns Unwatch function to stop listening
|
|
1162
772
|
*/
|
|
1163
773
|
Mint: (callback: (event: {
|
|
774
|
+
to: `0x${string}`;
|
|
1164
775
|
amount: bigint;
|
|
1165
|
-
}) => void
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
* @param callback Function to call when event is emitted
|
|
1169
|
-
* @param filter Optional filter for indexed parameters
|
|
1170
|
-
* @returns Unwatch function to stop listening
|
|
1171
|
-
*/
|
|
1172
|
-
Burn: (callback: (event: {
|
|
1173
|
-
amount: bigint;
|
|
1174
|
-
}) => void) => () => void;
|
|
1175
|
-
/**
|
|
1176
|
-
* Watch Upgrade events
|
|
1177
|
-
* @param callback Function to call when event is emitted
|
|
1178
|
-
* @param filter Optional filter for indexed parameters
|
|
1179
|
-
* @returns Unwatch function to stop listening
|
|
1180
|
-
*/
|
|
1181
|
-
Upgrade: (callback: (event: {
|
|
1182
|
-
newAddress: `0x${string}`;
|
|
1183
|
-
}) => void) => () => void;
|
|
1184
|
-
/**
|
|
1185
|
-
* Watch Params events
|
|
1186
|
-
* @param callback Function to call when event is emitted
|
|
1187
|
-
* @param filter Optional filter for indexed parameters
|
|
1188
|
-
* @returns Unwatch function to stop listening
|
|
1189
|
-
*/
|
|
1190
|
-
Params: (callback: (event: {
|
|
1191
|
-
feeBasisPoints: bigint;
|
|
1192
|
-
maxFee: bigint;
|
|
1193
|
-
}) => void) => () => void;
|
|
776
|
+
}) => void, filter?: {
|
|
777
|
+
to: `0x${string}`;
|
|
778
|
+
}) => () => void;
|
|
1194
779
|
/**
|
|
1195
|
-
* Watch
|
|
780
|
+
* Watch MintFinished events
|
|
1196
781
|
* @param callback Function to call when event is emitted
|
|
1197
782
|
* @param filter Optional filter for indexed parameters
|
|
1198
783
|
* @returns Unwatch function to stop listening
|
|
1199
784
|
*/
|
|
1200
|
-
|
|
1201
|
-
_blackListedUser: `0x${string}`;
|
|
1202
|
-
_balance: bigint;
|
|
1203
|
-
}) => void) => () => void;
|
|
785
|
+
MintFinished: (callback: (event: {}) => void) => () => void;
|
|
1204
786
|
/**
|
|
1205
|
-
* Watch
|
|
787
|
+
* Watch OwnershipTransferred events
|
|
1206
788
|
* @param callback Function to call when event is emitted
|
|
1207
789
|
* @param filter Optional filter for indexed parameters
|
|
1208
790
|
* @returns Unwatch function to stop listening
|
|
1209
791
|
*/
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
792
|
+
OwnershipTransferred: (callback: (event: {
|
|
793
|
+
previousOwner: `0x${string}`;
|
|
794
|
+
newOwner: `0x${string}`;
|
|
795
|
+
}) => void, filter?: {
|
|
796
|
+
previousOwner: `0x${string}`;
|
|
797
|
+
newOwner: `0x${string}`;
|
|
798
|
+
}) => () => void;
|
|
1213
799
|
/**
|
|
1214
|
-
* Watch
|
|
800
|
+
* Watch Burn events
|
|
1215
801
|
* @param callback Function to call when event is emitted
|
|
1216
802
|
* @param filter Optional filter for indexed parameters
|
|
1217
803
|
* @returns Unwatch function to stop listening
|
|
1218
804
|
*/
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
805
|
+
Burn: (callback: (event: {
|
|
806
|
+
burner: `0x${string}`;
|
|
807
|
+
value: bigint;
|
|
808
|
+
}) => void, filter?: {
|
|
809
|
+
burner: `0x${string}`;
|
|
810
|
+
}) => () => void;
|
|
1222
811
|
/**
|
|
1223
812
|
* Watch Approval events
|
|
1224
813
|
* @param callback Function to call when event is emitted
|
|
@@ -1247,19 +836,5 @@ export declare class BAX_Token_2022_json {
|
|
|
1247
836
|
from: `0x${string}`;
|
|
1248
837
|
to: `0x${string}`;
|
|
1249
838
|
}) => () => void;
|
|
1250
|
-
/**
|
|
1251
|
-
* Watch Pause events
|
|
1252
|
-
* @param callback Function to call when event is emitted
|
|
1253
|
-
* @param filter Optional filter for indexed parameters
|
|
1254
|
-
* @returns Unwatch function to stop listening
|
|
1255
|
-
*/
|
|
1256
|
-
Pause: (callback: (event: {}) => void) => () => void;
|
|
1257
|
-
/**
|
|
1258
|
-
* Watch Unpause events
|
|
1259
|
-
* @param callback Function to call when event is emitted
|
|
1260
|
-
* @param filter Optional filter for indexed parameters
|
|
1261
|
-
* @returns Unwatch function to stop listening
|
|
1262
|
-
*/
|
|
1263
|
-
Unpause: (callback: (event: {}) => void) => () => void;
|
|
1264
839
|
};
|
|
1265
840
|
}
|