@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,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BaxToken_json = exports.BaxToken_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* BaxToken_json ABI
|
|
7
7
|
*
|
|
8
8
|
* This ABI is typed using viem's type system for full type safety.
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.BaxToken_jsonAbi = [
|
|
11
11
|
{
|
|
12
|
-
"constant":
|
|
13
|
-
"inputs": [
|
|
12
|
+
"constant": true,
|
|
13
|
+
"inputs": [],
|
|
14
|
+
"name": "mintingFinished",
|
|
15
|
+
"outputs": [
|
|
14
16
|
{
|
|
15
|
-
"name": "
|
|
16
|
-
"type": "
|
|
17
|
+
"name": "",
|
|
18
|
+
"type": "bool"
|
|
17
19
|
}
|
|
18
20
|
],
|
|
19
|
-
"name": "destroyFrozenFunds",
|
|
20
|
-
"outputs": [],
|
|
21
21
|
"payable": false,
|
|
22
|
-
"stateMutability": "
|
|
22
|
+
"stateMutability": "view",
|
|
23
23
|
"type": "function"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
@@ -36,20 +36,6 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
36
36
|
"stateMutability": "view",
|
|
37
37
|
"type": "function"
|
|
38
38
|
},
|
|
39
|
-
{
|
|
40
|
-
"constant": false,
|
|
41
|
-
"inputs": [
|
|
42
|
-
{
|
|
43
|
-
"name": "_upgradeContract",
|
|
44
|
-
"type": "address"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"name": "upgrade",
|
|
48
|
-
"outputs": [],
|
|
49
|
-
"payable": false,
|
|
50
|
-
"stateMutability": "nonpayable",
|
|
51
|
-
"type": "function"
|
|
52
|
-
},
|
|
53
39
|
{
|
|
54
40
|
"constant": false,
|
|
55
41
|
"inputs": [
|
|
@@ -63,15 +49,6 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
63
49
|
}
|
|
64
50
|
],
|
|
65
51
|
"name": "approve",
|
|
66
|
-
"outputs": [],
|
|
67
|
-
"payable": false,
|
|
68
|
-
"stateMutability": "nonpayable",
|
|
69
|
-
"type": "function"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"constant": true,
|
|
73
|
-
"inputs": [],
|
|
74
|
-
"name": "upgradeApplied",
|
|
75
52
|
"outputs": [
|
|
76
53
|
{
|
|
77
54
|
"name": "",
|
|
@@ -79,7 +56,7 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
79
56
|
}
|
|
80
57
|
],
|
|
81
58
|
"payable": false,
|
|
82
|
-
"stateMutability": "
|
|
59
|
+
"stateMutability": "nonpayable",
|
|
83
60
|
"type": "function"
|
|
84
61
|
},
|
|
85
62
|
{
|
|
@@ -96,20 +73,6 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
96
73
|
"stateMutability": "view",
|
|
97
74
|
"type": "function"
|
|
98
75
|
},
|
|
99
|
-
{
|
|
100
|
-
"constant": true,
|
|
101
|
-
"inputs": [],
|
|
102
|
-
"name": "upgradeContract",
|
|
103
|
-
"outputs": [
|
|
104
|
-
{
|
|
105
|
-
"name": "",
|
|
106
|
-
"type": "address"
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"payable": false,
|
|
110
|
-
"stateMutability": "view",
|
|
111
|
-
"type": "function"
|
|
112
|
-
},
|
|
113
76
|
{
|
|
114
77
|
"constant": false,
|
|
115
78
|
"inputs": [
|
|
@@ -127,43 +90,24 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
127
90
|
}
|
|
128
91
|
],
|
|
129
92
|
"name": "transferFrom",
|
|
130
|
-
"outputs": [],
|
|
131
|
-
"payable": false,
|
|
132
|
-
"stateMutability": "nonpayable",
|
|
133
|
-
"type": "function"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"constant": true,
|
|
137
|
-
"inputs": [
|
|
138
|
-
{
|
|
139
|
-
"name": "",
|
|
140
|
-
"type": "address"
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
"name": "balances",
|
|
144
93
|
"outputs": [
|
|
145
94
|
{
|
|
146
95
|
"name": "",
|
|
147
|
-
"type": "
|
|
96
|
+
"type": "bool"
|
|
148
97
|
}
|
|
149
98
|
],
|
|
150
99
|
"payable": false,
|
|
151
|
-
"stateMutability": "
|
|
100
|
+
"stateMutability": "nonpayable",
|
|
152
101
|
"type": "function"
|
|
153
102
|
},
|
|
154
103
|
{
|
|
155
104
|
"constant": true,
|
|
156
|
-
"inputs": [
|
|
157
|
-
|
|
158
|
-
"name": "",
|
|
159
|
-
"type": "address"
|
|
160
|
-
}
|
|
161
|
-
],
|
|
162
|
-
"name": "checkFrozenAlt",
|
|
105
|
+
"inputs": [],
|
|
106
|
+
"name": "decimals",
|
|
163
107
|
"outputs": [
|
|
164
108
|
{
|
|
165
109
|
"name": "",
|
|
166
|
-
"type": "
|
|
110
|
+
"type": "uint8"
|
|
167
111
|
}
|
|
168
112
|
],
|
|
169
113
|
"payable": false,
|
|
@@ -173,7 +117,7 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
173
117
|
{
|
|
174
118
|
"constant": true,
|
|
175
119
|
"inputs": [],
|
|
176
|
-
"name": "
|
|
120
|
+
"name": "cap",
|
|
177
121
|
"outputs": [
|
|
178
122
|
{
|
|
179
123
|
"name": "",
|
|
@@ -184,25 +128,25 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
184
128
|
"stateMutability": "view",
|
|
185
129
|
"type": "function"
|
|
186
130
|
},
|
|
187
|
-
{
|
|
188
|
-
"constant": false,
|
|
189
|
-
"inputs": [],
|
|
190
|
-
"name": "unpause",
|
|
191
|
-
"outputs": [],
|
|
192
|
-
"payable": false,
|
|
193
|
-
"stateMutability": "nonpayable",
|
|
194
|
-
"type": "function"
|
|
195
|
-
},
|
|
196
131
|
{
|
|
197
132
|
"constant": false,
|
|
198
133
|
"inputs": [
|
|
199
134
|
{
|
|
200
|
-
"name": "
|
|
135
|
+
"name": "_to",
|
|
136
|
+
"type": "address"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "_amount",
|
|
201
140
|
"type": "uint256"
|
|
202
141
|
}
|
|
203
142
|
],
|
|
204
|
-
"name": "
|
|
205
|
-
"outputs": [
|
|
143
|
+
"name": "mint",
|
|
144
|
+
"outputs": [
|
|
145
|
+
{
|
|
146
|
+
"name": "",
|
|
147
|
+
"type": "bool"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
206
150
|
"payable": false,
|
|
207
151
|
"stateMutability": "nonpayable",
|
|
208
152
|
"type": "function"
|
|
@@ -211,68 +155,36 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
211
155
|
"constant": false,
|
|
212
156
|
"inputs": [
|
|
213
157
|
{
|
|
214
|
-
"name": "
|
|
215
|
-
"type": "uint256"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"name": "newMaxFee",
|
|
158
|
+
"name": "_value",
|
|
219
159
|
"type": "uint256"
|
|
220
160
|
}
|
|
221
161
|
],
|
|
222
|
-
"name": "
|
|
162
|
+
"name": "burn",
|
|
223
163
|
"outputs": [],
|
|
224
164
|
"payable": false,
|
|
225
165
|
"stateMutability": "nonpayable",
|
|
226
166
|
"type": "function"
|
|
227
167
|
},
|
|
228
168
|
{
|
|
229
|
-
"constant":
|
|
230
|
-
"inputs": [],
|
|
231
|
-
"name": "feeLimit",
|
|
232
|
-
"outputs": [
|
|
233
|
-
{
|
|
234
|
-
"name": "",
|
|
235
|
-
"type": "uint256"
|
|
236
|
-
}
|
|
237
|
-
],
|
|
238
|
-
"payable": false,
|
|
239
|
-
"stateMutability": "view",
|
|
240
|
-
"type": "function"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"constant": true,
|
|
169
|
+
"constant": false,
|
|
244
170
|
"inputs": [
|
|
245
171
|
{
|
|
246
|
-
"name": "",
|
|
172
|
+
"name": "_spender",
|
|
247
173
|
"type": "address"
|
|
248
174
|
},
|
|
249
175
|
{
|
|
250
|
-
"name": "",
|
|
251
|
-
"type": "
|
|
176
|
+
"name": "_subtractedValue",
|
|
177
|
+
"type": "uint256"
|
|
252
178
|
}
|
|
253
179
|
],
|
|
254
|
-
"name": "
|
|
180
|
+
"name": "decreaseApproval",
|
|
255
181
|
"outputs": [
|
|
256
182
|
{
|
|
257
183
|
"name": "",
|
|
258
|
-
"type": "
|
|
184
|
+
"type": "bool"
|
|
259
185
|
}
|
|
260
186
|
],
|
|
261
187
|
"payable": false,
|
|
262
|
-
"stateMutability": "view",
|
|
263
|
-
"type": "function"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"constant": false,
|
|
267
|
-
"inputs": [
|
|
268
|
-
{
|
|
269
|
-
"name": "_clearedUser",
|
|
270
|
-
"type": "address"
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
"name": "unfreezeWallet",
|
|
274
|
-
"outputs": [],
|
|
275
|
-
"payable": false,
|
|
276
188
|
"stateMutability": "nonpayable",
|
|
277
189
|
"type": "function"
|
|
278
190
|
},
|
|
@@ -280,14 +192,14 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
280
192
|
"constant": true,
|
|
281
193
|
"inputs": [
|
|
282
194
|
{
|
|
283
|
-
"name": "
|
|
195
|
+
"name": "_owner",
|
|
284
196
|
"type": "address"
|
|
285
197
|
}
|
|
286
198
|
],
|
|
287
199
|
"name": "balanceOf",
|
|
288
200
|
"outputs": [
|
|
289
201
|
{
|
|
290
|
-
"name": "",
|
|
202
|
+
"name": "balance",
|
|
291
203
|
"type": "uint256"
|
|
292
204
|
}
|
|
293
205
|
],
|
|
@@ -298,16 +210,7 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
298
210
|
{
|
|
299
211
|
"constant": false,
|
|
300
212
|
"inputs": [],
|
|
301
|
-
"name": "
|
|
302
|
-
"outputs": [],
|
|
303
|
-
"payable": false,
|
|
304
|
-
"stateMutability": "nonpayable",
|
|
305
|
-
"type": "function"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"constant": true,
|
|
309
|
-
"inputs": [],
|
|
310
|
-
"name": "contractPaused",
|
|
213
|
+
"name": "finishMinting",
|
|
311
214
|
"outputs": [
|
|
312
215
|
{
|
|
313
216
|
"name": "",
|
|
@@ -315,7 +218,7 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
315
218
|
}
|
|
316
219
|
],
|
|
317
220
|
"payable": false,
|
|
318
|
-
"stateMutability": "
|
|
221
|
+
"stateMutability": "nonpayable",
|
|
319
222
|
"type": "function"
|
|
320
223
|
},
|
|
321
224
|
{
|
|
@@ -346,43 +249,19 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
346
249
|
"stateMutability": "view",
|
|
347
250
|
"type": "function"
|
|
348
251
|
},
|
|
349
|
-
{
|
|
350
|
-
"constant": true,
|
|
351
|
-
"inputs": [],
|
|
352
|
-
"name": "feeRate",
|
|
353
|
-
"outputs": [
|
|
354
|
-
{
|
|
355
|
-
"name": "",
|
|
356
|
-
"type": "uint256"
|
|
357
|
-
}
|
|
358
|
-
],
|
|
359
|
-
"payable": false,
|
|
360
|
-
"stateMutability": "view",
|
|
361
|
-
"type": "function"
|
|
362
|
-
},
|
|
363
252
|
{
|
|
364
253
|
"constant": false,
|
|
365
254
|
"inputs": [
|
|
366
255
|
{
|
|
367
|
-
"name": "
|
|
256
|
+
"name": "_to",
|
|
368
257
|
"type": "address"
|
|
369
|
-
}
|
|
370
|
-
],
|
|
371
|
-
"name": "freezeWallet",
|
|
372
|
-
"outputs": [],
|
|
373
|
-
"payable": false,
|
|
374
|
-
"stateMutability": "nonpayable",
|
|
375
|
-
"type": "function"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
"constant": true,
|
|
379
|
-
"inputs": [
|
|
258
|
+
},
|
|
380
259
|
{
|
|
381
|
-
"name": "
|
|
382
|
-
"type": "
|
|
260
|
+
"name": "_value",
|
|
261
|
+
"type": "uint256"
|
|
383
262
|
}
|
|
384
263
|
],
|
|
385
|
-
"name": "
|
|
264
|
+
"name": "transfer",
|
|
386
265
|
"outputs": [
|
|
387
266
|
{
|
|
388
267
|
"name": "",
|
|
@@ -390,20 +269,6 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
390
269
|
}
|
|
391
270
|
],
|
|
392
271
|
"payable": false,
|
|
393
|
-
"stateMutability": "view",
|
|
394
|
-
"type": "function"
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
"constant": false,
|
|
398
|
-
"inputs": [
|
|
399
|
-
{
|
|
400
|
-
"name": "amount",
|
|
401
|
-
"type": "uint256"
|
|
402
|
-
}
|
|
403
|
-
],
|
|
404
|
-
"name": "mint",
|
|
405
|
-
"outputs": [],
|
|
406
|
-
"payable": false,
|
|
407
272
|
"stateMutability": "nonpayable",
|
|
408
273
|
"type": "function"
|
|
409
274
|
},
|
|
@@ -411,46 +276,23 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
411
276
|
"constant": false,
|
|
412
277
|
"inputs": [
|
|
413
278
|
{
|
|
414
|
-
"name": "
|
|
279
|
+
"name": "_spender",
|
|
415
280
|
"type": "address"
|
|
416
281
|
},
|
|
417
282
|
{
|
|
418
|
-
"name": "
|
|
283
|
+
"name": "_addedValue",
|
|
419
284
|
"type": "uint256"
|
|
420
285
|
}
|
|
421
286
|
],
|
|
422
|
-
"name": "
|
|
423
|
-
"outputs": [],
|
|
424
|
-
"payable": false,
|
|
425
|
-
"stateMutability": "nonpayable",
|
|
426
|
-
"type": "function"
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
"constant": true,
|
|
430
|
-
"inputs": [],
|
|
431
|
-
"name": "ownerAlt",
|
|
432
|
-
"outputs": [
|
|
433
|
-
{
|
|
434
|
-
"name": "",
|
|
435
|
-
"type": "address"
|
|
436
|
-
}
|
|
437
|
-
],
|
|
438
|
-
"payable": false,
|
|
439
|
-
"stateMutability": "view",
|
|
440
|
-
"type": "function"
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
"constant": true,
|
|
444
|
-
"inputs": [],
|
|
445
|
-
"name": "MAX_CAP",
|
|
287
|
+
"name": "increaseApproval",
|
|
446
288
|
"outputs": [
|
|
447
289
|
{
|
|
448
290
|
"name": "",
|
|
449
|
-
"type": "
|
|
291
|
+
"type": "bool"
|
|
450
292
|
}
|
|
451
293
|
],
|
|
452
294
|
"payable": false,
|
|
453
|
-
"stateMutability": "
|
|
295
|
+
"stateMutability": "nonpayable",
|
|
454
296
|
"type": "function"
|
|
455
297
|
},
|
|
456
298
|
{
|
|
@@ -466,20 +308,6 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
466
308
|
}
|
|
467
309
|
],
|
|
468
310
|
"name": "allowance",
|
|
469
|
-
"outputs": [
|
|
470
|
-
{
|
|
471
|
-
"name": "remaining",
|
|
472
|
-
"type": "uint256"
|
|
473
|
-
}
|
|
474
|
-
],
|
|
475
|
-
"payable": false,
|
|
476
|
-
"stateMutability": "view",
|
|
477
|
-
"type": "function"
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
"constant": true,
|
|
481
|
-
"inputs": [],
|
|
482
|
-
"name": "totalSupplyAlt",
|
|
483
311
|
"outputs": [
|
|
484
312
|
{
|
|
485
313
|
"name": "",
|
|
@@ -487,152 +315,84 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
487
315
|
}
|
|
488
316
|
],
|
|
489
317
|
"payable": false,
|
|
490
|
-
"stateMutability": "view",
|
|
491
|
-
"type": "function"
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
"constant": true,
|
|
495
|
-
"inputs": [],
|
|
496
|
-
"name": "MAX_UINT",
|
|
497
|
-
"outputs": [
|
|
498
|
-
{
|
|
499
|
-
"name": "",
|
|
500
|
-
"type": "uint256"
|
|
501
|
-
}
|
|
502
|
-
],
|
|
503
|
-
"payable": false,
|
|
504
|
-
"stateMutability": "view",
|
|
505
|
-
"type": "function"
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
"constant": false,
|
|
509
|
-
"inputs": [
|
|
510
|
-
{
|
|
511
|
-
"name": "newOwner",
|
|
512
|
-
"type": "address"
|
|
513
|
-
}
|
|
514
|
-
],
|
|
515
|
-
"name": "transferOwnership",
|
|
516
|
-
"outputs": [],
|
|
517
|
-
"payable": false,
|
|
518
|
-
"stateMutability": "nonpayable",
|
|
519
|
-
"type": "function"
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
"inputs": [
|
|
523
|
-
{
|
|
524
|
-
"name": "_initialSupply",
|
|
525
|
-
"type": "uint256"
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
"name": "_name",
|
|
529
|
-
"type": "string"
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
"name": "_symbol",
|
|
533
|
-
"type": "string"
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
"name": "_decimals",
|
|
537
|
-
"type": "uint256"
|
|
538
|
-
}
|
|
539
|
-
],
|
|
540
|
-
"payable": false,
|
|
541
|
-
"stateMutability": "nonpayable",
|
|
542
|
-
"type": "constructor"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"anonymous": false,
|
|
546
|
-
"inputs": [
|
|
547
|
-
{
|
|
548
|
-
"indexed": false,
|
|
549
|
-
"name": "amount",
|
|
550
|
-
"type": "uint256"
|
|
551
|
-
}
|
|
552
|
-
],
|
|
553
|
-
"name": "Mint",
|
|
554
|
-
"type": "event"
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
"anonymous": false,
|
|
558
|
-
"inputs": [
|
|
559
|
-
{
|
|
560
|
-
"indexed": false,
|
|
561
|
-
"name": "amount",
|
|
562
|
-
"type": "uint256"
|
|
563
|
-
}
|
|
564
|
-
],
|
|
565
|
-
"name": "Burn",
|
|
566
|
-
"type": "event"
|
|
318
|
+
"stateMutability": "view",
|
|
319
|
+
"type": "function"
|
|
567
320
|
},
|
|
568
321
|
{
|
|
569
|
-
"
|
|
322
|
+
"constant": false,
|
|
570
323
|
"inputs": [
|
|
571
324
|
{
|
|
572
|
-
"
|
|
573
|
-
"name": "newAddress",
|
|
325
|
+
"name": "newOwner",
|
|
574
326
|
"type": "address"
|
|
575
327
|
}
|
|
576
328
|
],
|
|
577
|
-
"name": "
|
|
578
|
-
"
|
|
329
|
+
"name": "transferOwnership",
|
|
330
|
+
"outputs": [],
|
|
331
|
+
"payable": false,
|
|
332
|
+
"stateMutability": "nonpayable",
|
|
333
|
+
"type": "function"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"inputs": [],
|
|
337
|
+
"payable": false,
|
|
338
|
+
"stateMutability": "nonpayable",
|
|
339
|
+
"type": "constructor"
|
|
579
340
|
},
|
|
580
341
|
{
|
|
581
342
|
"anonymous": false,
|
|
582
343
|
"inputs": [
|
|
583
344
|
{
|
|
584
|
-
"indexed":
|
|
585
|
-
"name": "
|
|
586
|
-
"type": "
|
|
345
|
+
"indexed": true,
|
|
346
|
+
"name": "to",
|
|
347
|
+
"type": "address"
|
|
587
348
|
},
|
|
588
349
|
{
|
|
589
350
|
"indexed": false,
|
|
590
|
-
"name": "
|
|
351
|
+
"name": "amount",
|
|
591
352
|
"type": "uint256"
|
|
592
353
|
}
|
|
593
354
|
],
|
|
594
|
-
"name": "
|
|
355
|
+
"name": "Mint",
|
|
595
356
|
"type": "event"
|
|
596
357
|
},
|
|
597
358
|
{
|
|
598
359
|
"anonymous": false,
|
|
599
|
-
"inputs": [
|
|
600
|
-
|
|
601
|
-
"indexed": false,
|
|
602
|
-
"name": "_blackListedUser",
|
|
603
|
-
"type": "address"
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
"indexed": false,
|
|
607
|
-
"name": "_balance",
|
|
608
|
-
"type": "uint256"
|
|
609
|
-
}
|
|
610
|
-
],
|
|
611
|
-
"name": "DestroyedFrozenFunds",
|
|
360
|
+
"inputs": [],
|
|
361
|
+
"name": "MintFinished",
|
|
612
362
|
"type": "event"
|
|
613
363
|
},
|
|
614
364
|
{
|
|
615
365
|
"anonymous": false,
|
|
616
366
|
"inputs": [
|
|
617
367
|
{
|
|
618
|
-
"indexed":
|
|
619
|
-
"name": "
|
|
368
|
+
"indexed": true,
|
|
369
|
+
"name": "previousOwner",
|
|
370
|
+
"type": "address"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"indexed": true,
|
|
374
|
+
"name": "newOwner",
|
|
620
375
|
"type": "address"
|
|
621
376
|
}
|
|
622
377
|
],
|
|
623
|
-
"name": "
|
|
378
|
+
"name": "OwnershipTransferred",
|
|
624
379
|
"type": "event"
|
|
625
380
|
},
|
|
626
381
|
{
|
|
627
382
|
"anonymous": false,
|
|
628
383
|
"inputs": [
|
|
629
384
|
{
|
|
630
|
-
"indexed":
|
|
631
|
-
"name": "
|
|
385
|
+
"indexed": true,
|
|
386
|
+
"name": "burner",
|
|
632
387
|
"type": "address"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"indexed": false,
|
|
391
|
+
"name": "value",
|
|
392
|
+
"type": "uint256"
|
|
633
393
|
}
|
|
634
394
|
],
|
|
635
|
-
"name": "
|
|
395
|
+
"name": "Burn",
|
|
636
396
|
"type": "event"
|
|
637
397
|
},
|
|
638
398
|
{
|
|
@@ -678,22 +438,10 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
678
438
|
],
|
|
679
439
|
"name": "Transfer",
|
|
680
440
|
"type": "event"
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
"anonymous": false,
|
|
684
|
-
"inputs": [],
|
|
685
|
-
"name": "Pause",
|
|
686
|
-
"type": "event"
|
|
687
|
-
},
|
|
688
|
-
{
|
|
689
|
-
"anonymous": false,
|
|
690
|
-
"inputs": [],
|
|
691
|
-
"name": "Unpause",
|
|
692
|
-
"type": "event"
|
|
693
441
|
}
|
|
694
442
|
];
|
|
695
443
|
/**
|
|
696
|
-
*
|
|
444
|
+
* BaxToken_json Contract Class
|
|
697
445
|
*
|
|
698
446
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
699
447
|
*
|
|
@@ -701,12 +449,12 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
701
449
|
* ```typescript
|
|
702
450
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
703
451
|
* import { mainnet } from 'viem/chains';
|
|
704
|
-
* import {
|
|
452
|
+
* import { BaxToken_json } from 'BaxToken_json';
|
|
705
453
|
*
|
|
706
454
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
707
455
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
708
456
|
*
|
|
709
|
-
* const contract = new
|
|
457
|
+
* const contract = new BaxToken_json('0x...', { publicClient, walletClient });
|
|
710
458
|
*
|
|
711
459
|
* // Read functions
|
|
712
460
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -724,13 +472,13 @@ exports.BAX_Token_2022_jsonAbi = [
|
|
|
724
472
|
* });
|
|
725
473
|
* ```
|
|
726
474
|
*/
|
|
727
|
-
class
|
|
475
|
+
class BaxToken_json {
|
|
728
476
|
constructor(address, clients) {
|
|
729
477
|
this.contractAddress = address;
|
|
730
478
|
this.publicClient = clients.publicClient;
|
|
731
479
|
this.contract = (0, viem_1.getContract)({
|
|
732
480
|
address,
|
|
733
|
-
abi: exports.
|
|
481
|
+
abi: exports.BaxToken_jsonAbi,
|
|
734
482
|
client: {
|
|
735
483
|
public: clients.publicClient,
|
|
736
484
|
wallet: clients.walletClient,
|
|
@@ -750,18 +498,18 @@ class BAX_Token_2022_json {
|
|
|
750
498
|
return this.contract;
|
|
751
499
|
}
|
|
752
500
|
/**
|
|
753
|
-
*
|
|
501
|
+
* mintingFinished
|
|
754
502
|
* view
|
|
755
503
|
*/
|
|
756
|
-
async
|
|
757
|
-
return this.contract.read.
|
|
504
|
+
async mintingFinished() {
|
|
505
|
+
return this.contract.read.mintingFinished();
|
|
758
506
|
}
|
|
759
507
|
/**
|
|
760
|
-
*
|
|
508
|
+
* name
|
|
761
509
|
* view
|
|
762
510
|
*/
|
|
763
|
-
async
|
|
764
|
-
return this.contract.read.
|
|
511
|
+
async name() {
|
|
512
|
+
return this.contract.read.name();
|
|
765
513
|
}
|
|
766
514
|
/**
|
|
767
515
|
* totalSupply
|
|
@@ -770,27 +518,6 @@ class BAX_Token_2022_json {
|
|
|
770
518
|
async totalSupply() {
|
|
771
519
|
return this.contract.read.totalSupply();
|
|
772
520
|
}
|
|
773
|
-
/**
|
|
774
|
-
* upgradeContract
|
|
775
|
-
* view
|
|
776
|
-
*/
|
|
777
|
-
async upgradeContract() {
|
|
778
|
-
return this.contract.read.upgradeContract();
|
|
779
|
-
}
|
|
780
|
-
/**
|
|
781
|
-
* balances
|
|
782
|
-
* view
|
|
783
|
-
*/
|
|
784
|
-
async balances(arg0) {
|
|
785
|
-
return this.contract.read.balances([arg0]);
|
|
786
|
-
}
|
|
787
|
-
/**
|
|
788
|
-
* checkFrozenAlt
|
|
789
|
-
* view
|
|
790
|
-
*/
|
|
791
|
-
async checkFrozenAlt(arg0) {
|
|
792
|
-
return this.contract.read.checkFrozenAlt([arg0]);
|
|
793
|
-
}
|
|
794
521
|
/**
|
|
795
522
|
* decimals
|
|
796
523
|
* view
|
|
@@ -799,32 +526,18 @@ class BAX_Token_2022_json {
|
|
|
799
526
|
return this.contract.read.decimals();
|
|
800
527
|
}
|
|
801
528
|
/**
|
|
802
|
-
*
|
|
803
|
-
* view
|
|
804
|
-
*/
|
|
805
|
-
async feeLimit() {
|
|
806
|
-
return this.contract.read.feeLimit();
|
|
807
|
-
}
|
|
808
|
-
/**
|
|
809
|
-
* allowed
|
|
529
|
+
* cap
|
|
810
530
|
* view
|
|
811
531
|
*/
|
|
812
|
-
async
|
|
813
|
-
return this.contract.read.
|
|
532
|
+
async cap() {
|
|
533
|
+
return this.contract.read.cap();
|
|
814
534
|
}
|
|
815
535
|
/**
|
|
816
536
|
* balanceOf
|
|
817
537
|
* view
|
|
818
538
|
*/
|
|
819
|
-
async balanceOf(
|
|
820
|
-
return this.contract.read.balanceOf([
|
|
821
|
-
}
|
|
822
|
-
/**
|
|
823
|
-
* contractPaused
|
|
824
|
-
* view
|
|
825
|
-
*/
|
|
826
|
-
async contractPaused() {
|
|
827
|
-
return this.contract.read.contractPaused();
|
|
539
|
+
async balanceOf(_owner) {
|
|
540
|
+
return this.contract.read.balanceOf([_owner]);
|
|
828
541
|
}
|
|
829
542
|
/**
|
|
830
543
|
* owner
|
|
@@ -840,34 +553,6 @@ class BAX_Token_2022_json {
|
|
|
840
553
|
async symbol() {
|
|
841
554
|
return this.contract.read.symbol();
|
|
842
555
|
}
|
|
843
|
-
/**
|
|
844
|
-
* feeRate
|
|
845
|
-
* view
|
|
846
|
-
*/
|
|
847
|
-
async feeRate() {
|
|
848
|
-
return this.contract.read.feeRate();
|
|
849
|
-
}
|
|
850
|
-
/**
|
|
851
|
-
* checkFrozen
|
|
852
|
-
* view
|
|
853
|
-
*/
|
|
854
|
-
async checkFrozen(_maker) {
|
|
855
|
-
return this.contract.read.checkFrozen([_maker]);
|
|
856
|
-
}
|
|
857
|
-
/**
|
|
858
|
-
* ownerAlt
|
|
859
|
-
* view
|
|
860
|
-
*/
|
|
861
|
-
async ownerAlt() {
|
|
862
|
-
return this.contract.read.ownerAlt();
|
|
863
|
-
}
|
|
864
|
-
/**
|
|
865
|
-
* MAX_CAP
|
|
866
|
-
* view
|
|
867
|
-
*/
|
|
868
|
-
async MAX_CAP() {
|
|
869
|
-
return this.contract.read.MAX_CAP();
|
|
870
|
-
}
|
|
871
556
|
/**
|
|
872
557
|
* allowance
|
|
873
558
|
* view
|
|
@@ -875,42 +560,6 @@ class BAX_Token_2022_json {
|
|
|
875
560
|
async allowance(_owner, _spender) {
|
|
876
561
|
return this.contract.read.allowance([_owner, _spender]);
|
|
877
562
|
}
|
|
878
|
-
/**
|
|
879
|
-
* totalSupplyAlt
|
|
880
|
-
* view
|
|
881
|
-
*/
|
|
882
|
-
async totalSupplyAlt() {
|
|
883
|
-
return this.contract.read.totalSupplyAlt();
|
|
884
|
-
}
|
|
885
|
-
/**
|
|
886
|
-
* MAX_UINT
|
|
887
|
-
* view
|
|
888
|
-
*/
|
|
889
|
-
async MAX_UINT() {
|
|
890
|
-
return this.contract.read.MAX_UINT();
|
|
891
|
-
}
|
|
892
|
-
/**
|
|
893
|
-
* destroyFrozenFunds
|
|
894
|
-
* nonpayable
|
|
895
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
896
|
-
*/
|
|
897
|
-
async destroyFrozenFunds(_blackListedUser, options) {
|
|
898
|
-
if (!this.contract.write) {
|
|
899
|
-
throw new Error('Wallet client is required for write operations');
|
|
900
|
-
}
|
|
901
|
-
return this.contract.write.destroyFrozenFunds([_blackListedUser], options);
|
|
902
|
-
}
|
|
903
|
-
/**
|
|
904
|
-
* upgrade
|
|
905
|
-
* nonpayable
|
|
906
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
907
|
-
*/
|
|
908
|
-
async upgrade(_upgradeContract, options) {
|
|
909
|
-
if (!this.contract.write) {
|
|
910
|
-
throw new Error('Wallet client is required for write operations');
|
|
911
|
-
}
|
|
912
|
-
return this.contract.write.upgrade([_upgradeContract], options);
|
|
913
|
-
}
|
|
914
563
|
/**
|
|
915
564
|
* approve
|
|
916
565
|
* nonpayable
|
|
@@ -934,92 +583,70 @@ class BAX_Token_2022_json {
|
|
|
934
583
|
return this.contract.write.transferFrom([_from, _to, _value], options);
|
|
935
584
|
}
|
|
936
585
|
/**
|
|
937
|
-
*
|
|
586
|
+
* mint
|
|
938
587
|
* nonpayable
|
|
939
588
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
940
589
|
*/
|
|
941
|
-
async
|
|
590
|
+
async mint(_to, _amount, options) {
|
|
942
591
|
if (!this.contract.write) {
|
|
943
592
|
throw new Error('Wallet client is required for write operations');
|
|
944
593
|
}
|
|
945
|
-
return this.contract.write.
|
|
594
|
+
return this.contract.write.mint([_to, _amount], options);
|
|
946
595
|
}
|
|
947
596
|
/**
|
|
948
597
|
* burn
|
|
949
598
|
* nonpayable
|
|
950
599
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
951
600
|
*/
|
|
952
|
-
async burn(
|
|
601
|
+
async burn(_value, options) {
|
|
953
602
|
if (!this.contract.write) {
|
|
954
603
|
throw new Error('Wallet client is required for write operations');
|
|
955
604
|
}
|
|
956
|
-
return this.contract.write.burn([
|
|
605
|
+
return this.contract.write.burn([_value], options);
|
|
957
606
|
}
|
|
958
607
|
/**
|
|
959
|
-
*
|
|
608
|
+
* decreaseApproval
|
|
960
609
|
* nonpayable
|
|
961
610
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
962
611
|
*/
|
|
963
|
-
async
|
|
612
|
+
async decreaseApproval(_spender, _subtractedValue, options) {
|
|
964
613
|
if (!this.contract.write) {
|
|
965
614
|
throw new Error('Wallet client is required for write operations');
|
|
966
615
|
}
|
|
967
|
-
return this.contract.write.
|
|
616
|
+
return this.contract.write.decreaseApproval([_spender, _subtractedValue], options);
|
|
968
617
|
}
|
|
969
618
|
/**
|
|
970
|
-
*
|
|
619
|
+
* finishMinting
|
|
971
620
|
* nonpayable
|
|
972
621
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
973
622
|
*/
|
|
974
|
-
async
|
|
623
|
+
async finishMinting(options) {
|
|
975
624
|
if (!this.contract.write) {
|
|
976
625
|
throw new Error('Wallet client is required for write operations');
|
|
977
626
|
}
|
|
978
|
-
return this.contract.write.
|
|
627
|
+
return this.contract.write.finishMinting(options);
|
|
979
628
|
}
|
|
980
629
|
/**
|
|
981
|
-
*
|
|
982
|
-
* nonpayable
|
|
983
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
984
|
-
*/
|
|
985
|
-
async pause(options) {
|
|
986
|
-
if (!this.contract.write) {
|
|
987
|
-
throw new Error('Wallet client is required for write operations');
|
|
988
|
-
}
|
|
989
|
-
return this.contract.write.pause(options);
|
|
990
|
-
}
|
|
991
|
-
/**
|
|
992
|
-
* freezeWallet
|
|
993
|
-
* nonpayable
|
|
994
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
995
|
-
*/
|
|
996
|
-
async freezeWallet(_evilUser, options) {
|
|
997
|
-
if (!this.contract.write) {
|
|
998
|
-
throw new Error('Wallet client is required for write operations');
|
|
999
|
-
}
|
|
1000
|
-
return this.contract.write.freezeWallet([_evilUser], options);
|
|
1001
|
-
}
|
|
1002
|
-
/**
|
|
1003
|
-
* mint
|
|
630
|
+
* transfer
|
|
1004
631
|
* nonpayable
|
|
1005
632
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1006
633
|
*/
|
|
1007
|
-
async
|
|
634
|
+
async transfer(_to, _value, options) {
|
|
1008
635
|
if (!this.contract.write) {
|
|
1009
636
|
throw new Error('Wallet client is required for write operations');
|
|
1010
637
|
}
|
|
1011
|
-
return this.contract.write.
|
|
638
|
+
return this.contract.write.transfer([_to, _value], options);
|
|
1012
639
|
}
|
|
1013
640
|
/**
|
|
1014
|
-
*
|
|
641
|
+
* increaseApproval
|
|
1015
642
|
* nonpayable
|
|
1016
643
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1017
644
|
*/
|
|
1018
|
-
async
|
|
645
|
+
async increaseApproval(_spender, _addedValue, options) {
|
|
1019
646
|
if (!this.contract.write) {
|
|
1020
647
|
throw new Error('Wallet client is required for write operations');
|
|
1021
648
|
}
|
|
1022
|
-
return this.contract.write.
|
|
649
|
+
return this.contract.write.increaseApproval([_spender, _addedValue], options);
|
|
1023
650
|
}
|
|
1024
651
|
/**
|
|
1025
652
|
* transferOwnership
|
|
@@ -1046,22 +673,6 @@ class BAX_Token_2022_json {
|
|
|
1046
673
|
throw new Error('Public client is required for simulation');
|
|
1047
674
|
}
|
|
1048
675
|
return {
|
|
1049
|
-
/**
|
|
1050
|
-
* Simulate destroyFrozenFunds
|
|
1051
|
-
* Returns gas estimate and result without sending transaction
|
|
1052
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1053
|
-
*/
|
|
1054
|
-
async destroyFrozenFunds(_blackListedUser, options) {
|
|
1055
|
-
return contract.simulate.destroyFrozenFunds([_blackListedUser], options);
|
|
1056
|
-
},
|
|
1057
|
-
/**
|
|
1058
|
-
* Simulate upgrade
|
|
1059
|
-
* Returns gas estimate and result without sending transaction
|
|
1060
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1061
|
-
*/
|
|
1062
|
-
async upgrade(_upgradeContract, options) {
|
|
1063
|
-
return contract.simulate.upgrade([_upgradeContract], options);
|
|
1064
|
-
},
|
|
1065
676
|
/**
|
|
1066
677
|
* Simulate approve
|
|
1067
678
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1079,68 +690,52 @@ class BAX_Token_2022_json {
|
|
|
1079
690
|
return contract.simulate.transferFrom([_from, _to, _value], options);
|
|
1080
691
|
},
|
|
1081
692
|
/**
|
|
1082
|
-
* Simulate
|
|
693
|
+
* Simulate mint
|
|
1083
694
|
* Returns gas estimate and result without sending transaction
|
|
1084
695
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1085
696
|
*/
|
|
1086
|
-
async
|
|
1087
|
-
return contract.simulate.
|
|
697
|
+
async mint(_to, _amount, options) {
|
|
698
|
+
return contract.simulate.mint([_to, _amount], options);
|
|
1088
699
|
},
|
|
1089
700
|
/**
|
|
1090
701
|
* Simulate burn
|
|
1091
702
|
* Returns gas estimate and result without sending transaction
|
|
1092
703
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1093
704
|
*/
|
|
1094
|
-
async burn(
|
|
1095
|
-
return contract.simulate.burn([
|
|
1096
|
-
},
|
|
1097
|
-
/**
|
|
1098
|
-
* Simulate setFee
|
|
1099
|
-
* Returns gas estimate and result without sending transaction
|
|
1100
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1101
|
-
*/
|
|
1102
|
-
async setFee(newBasisPoints, newMaxFee, options) {
|
|
1103
|
-
return contract.simulate.setFee([newBasisPoints, newMaxFee], options);
|
|
1104
|
-
},
|
|
1105
|
-
/**
|
|
1106
|
-
* Simulate unfreezeWallet
|
|
1107
|
-
* Returns gas estimate and result without sending transaction
|
|
1108
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1109
|
-
*/
|
|
1110
|
-
async unfreezeWallet(_clearedUser, options) {
|
|
1111
|
-
return contract.simulate.unfreezeWallet([_clearedUser], options);
|
|
705
|
+
async burn(_value, options) {
|
|
706
|
+
return contract.simulate.burn([_value], options);
|
|
1112
707
|
},
|
|
1113
708
|
/**
|
|
1114
|
-
* Simulate
|
|
709
|
+
* Simulate decreaseApproval
|
|
1115
710
|
* Returns gas estimate and result without sending transaction
|
|
1116
711
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1117
712
|
*/
|
|
1118
|
-
async
|
|
1119
|
-
return contract.simulate.
|
|
713
|
+
async decreaseApproval(_spender, _subtractedValue, options) {
|
|
714
|
+
return contract.simulate.decreaseApproval([_spender, _subtractedValue], options);
|
|
1120
715
|
},
|
|
1121
716
|
/**
|
|
1122
|
-
* Simulate
|
|
717
|
+
* Simulate finishMinting
|
|
1123
718
|
* Returns gas estimate and result without sending transaction
|
|
1124
719
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1125
720
|
*/
|
|
1126
|
-
async
|
|
1127
|
-
return contract.simulate.
|
|
721
|
+
async finishMinting(options) {
|
|
722
|
+
return contract.simulate.finishMinting(options);
|
|
1128
723
|
},
|
|
1129
724
|
/**
|
|
1130
|
-
* Simulate
|
|
725
|
+
* Simulate transfer
|
|
1131
726
|
* Returns gas estimate and result without sending transaction
|
|
1132
727
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1133
728
|
*/
|
|
1134
|
-
async
|
|
1135
|
-
return contract.simulate.
|
|
729
|
+
async transfer(_to, _value, options) {
|
|
730
|
+
return contract.simulate.transfer([_to, _value], options);
|
|
1136
731
|
},
|
|
1137
732
|
/**
|
|
1138
|
-
* Simulate
|
|
733
|
+
* Simulate increaseApproval
|
|
1139
734
|
* Returns gas estimate and result without sending transaction
|
|
1140
735
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1141
736
|
*/
|
|
1142
|
-
async
|
|
1143
|
-
return contract.simulate.
|
|
737
|
+
async increaseApproval(_spender, _addedValue, options) {
|
|
738
|
+
return contract.simulate.increaseApproval([_spender, _addedValue], options);
|
|
1144
739
|
},
|
|
1145
740
|
/**
|
|
1146
741
|
* Simulate transferOwnership
|
|
@@ -1172,11 +767,12 @@ class BAX_Token_2022_json {
|
|
|
1172
767
|
* @param filter Optional filter for indexed parameters
|
|
1173
768
|
* @returns Unwatch function to stop listening
|
|
1174
769
|
*/
|
|
1175
|
-
Mint: (callback) => {
|
|
770
|
+
Mint: (callback, filter) => {
|
|
1176
771
|
return this.publicClient.watchContractEvent({
|
|
1177
772
|
address: this.contractAddress,
|
|
1178
|
-
abi: exports.
|
|
773
|
+
abi: exports.BaxToken_jsonAbi,
|
|
1179
774
|
eventName: 'Mint',
|
|
775
|
+
args: filter,
|
|
1180
776
|
onLogs: (logs) => {
|
|
1181
777
|
logs.forEach((log) => {
|
|
1182
778
|
callback(log.args);
|
|
@@ -1185,70 +781,16 @@ class BAX_Token_2022_json {
|
|
|
1185
781
|
});
|
|
1186
782
|
},
|
|
1187
783
|
/**
|
|
1188
|
-
* Watch
|
|
1189
|
-
* @param callback Function to call when event is emitted
|
|
1190
|
-
* @param filter Optional filter for indexed parameters
|
|
1191
|
-
* @returns Unwatch function to stop listening
|
|
1192
|
-
*/
|
|
1193
|
-
Burn: (callback) => {
|
|
1194
|
-
return this.publicClient.watchContractEvent({
|
|
1195
|
-
address: this.contractAddress,
|
|
1196
|
-
abi: exports.BAX_Token_2022_jsonAbi,
|
|
1197
|
-
eventName: 'Burn',
|
|
1198
|
-
onLogs: (logs) => {
|
|
1199
|
-
logs.forEach((log) => {
|
|
1200
|
-
callback(log.args);
|
|
1201
|
-
});
|
|
1202
|
-
},
|
|
1203
|
-
});
|
|
1204
|
-
},
|
|
1205
|
-
/**
|
|
1206
|
-
* Watch Upgrade events
|
|
1207
|
-
* @param callback Function to call when event is emitted
|
|
1208
|
-
* @param filter Optional filter for indexed parameters
|
|
1209
|
-
* @returns Unwatch function to stop listening
|
|
1210
|
-
*/
|
|
1211
|
-
Upgrade: (callback) => {
|
|
1212
|
-
return this.publicClient.watchContractEvent({
|
|
1213
|
-
address: this.contractAddress,
|
|
1214
|
-
abi: exports.BAX_Token_2022_jsonAbi,
|
|
1215
|
-
eventName: 'Upgrade',
|
|
1216
|
-
onLogs: (logs) => {
|
|
1217
|
-
logs.forEach((log) => {
|
|
1218
|
-
callback(log.args);
|
|
1219
|
-
});
|
|
1220
|
-
},
|
|
1221
|
-
});
|
|
1222
|
-
},
|
|
1223
|
-
/**
|
|
1224
|
-
* Watch Params events
|
|
1225
|
-
* @param callback Function to call when event is emitted
|
|
1226
|
-
* @param filter Optional filter for indexed parameters
|
|
1227
|
-
* @returns Unwatch function to stop listening
|
|
1228
|
-
*/
|
|
1229
|
-
Params: (callback) => {
|
|
1230
|
-
return this.publicClient.watchContractEvent({
|
|
1231
|
-
address: this.contractAddress,
|
|
1232
|
-
abi: exports.BAX_Token_2022_jsonAbi,
|
|
1233
|
-
eventName: 'Params',
|
|
1234
|
-
onLogs: (logs) => {
|
|
1235
|
-
logs.forEach((log) => {
|
|
1236
|
-
callback(log.args);
|
|
1237
|
-
});
|
|
1238
|
-
},
|
|
1239
|
-
});
|
|
1240
|
-
},
|
|
1241
|
-
/**
|
|
1242
|
-
* Watch DestroyedFrozenFunds events
|
|
784
|
+
* Watch MintFinished events
|
|
1243
785
|
* @param callback Function to call when event is emitted
|
|
1244
786
|
* @param filter Optional filter for indexed parameters
|
|
1245
787
|
* @returns Unwatch function to stop listening
|
|
1246
788
|
*/
|
|
1247
|
-
|
|
789
|
+
MintFinished: (callback) => {
|
|
1248
790
|
return this.publicClient.watchContractEvent({
|
|
1249
791
|
address: this.contractAddress,
|
|
1250
|
-
abi: exports.
|
|
1251
|
-
eventName: '
|
|
792
|
+
abi: exports.BaxToken_jsonAbi,
|
|
793
|
+
eventName: 'MintFinished',
|
|
1252
794
|
onLogs: (logs) => {
|
|
1253
795
|
logs.forEach((log) => {
|
|
1254
796
|
callback(log.args);
|
|
@@ -1257,16 +799,17 @@ class BAX_Token_2022_json {
|
|
|
1257
799
|
});
|
|
1258
800
|
},
|
|
1259
801
|
/**
|
|
1260
|
-
* Watch
|
|
802
|
+
* Watch OwnershipTransferred events
|
|
1261
803
|
* @param callback Function to call when event is emitted
|
|
1262
804
|
* @param filter Optional filter for indexed parameters
|
|
1263
805
|
* @returns Unwatch function to stop listening
|
|
1264
806
|
*/
|
|
1265
|
-
|
|
807
|
+
OwnershipTransferred: (callback, filter) => {
|
|
1266
808
|
return this.publicClient.watchContractEvent({
|
|
1267
809
|
address: this.contractAddress,
|
|
1268
|
-
abi: exports.
|
|
1269
|
-
eventName: '
|
|
810
|
+
abi: exports.BaxToken_jsonAbi,
|
|
811
|
+
eventName: 'OwnershipTransferred',
|
|
812
|
+
args: filter,
|
|
1270
813
|
onLogs: (logs) => {
|
|
1271
814
|
logs.forEach((log) => {
|
|
1272
815
|
callback(log.args);
|
|
@@ -1275,16 +818,17 @@ class BAX_Token_2022_json {
|
|
|
1275
818
|
});
|
|
1276
819
|
},
|
|
1277
820
|
/**
|
|
1278
|
-
* Watch
|
|
821
|
+
* Watch Burn events
|
|
1279
822
|
* @param callback Function to call when event is emitted
|
|
1280
823
|
* @param filter Optional filter for indexed parameters
|
|
1281
824
|
* @returns Unwatch function to stop listening
|
|
1282
825
|
*/
|
|
1283
|
-
|
|
826
|
+
Burn: (callback, filter) => {
|
|
1284
827
|
return this.publicClient.watchContractEvent({
|
|
1285
828
|
address: this.contractAddress,
|
|
1286
|
-
abi: exports.
|
|
1287
|
-
eventName: '
|
|
829
|
+
abi: exports.BaxToken_jsonAbi,
|
|
830
|
+
eventName: 'Burn',
|
|
831
|
+
args: filter,
|
|
1288
832
|
onLogs: (logs) => {
|
|
1289
833
|
logs.forEach((log) => {
|
|
1290
834
|
callback(log.args);
|
|
@@ -1301,7 +845,7 @@ class BAX_Token_2022_json {
|
|
|
1301
845
|
Approval: (callback, filter) => {
|
|
1302
846
|
return this.publicClient.watchContractEvent({
|
|
1303
847
|
address: this.contractAddress,
|
|
1304
|
-
abi: exports.
|
|
848
|
+
abi: exports.BaxToken_jsonAbi,
|
|
1305
849
|
eventName: 'Approval',
|
|
1306
850
|
args: filter,
|
|
1307
851
|
onLogs: (logs) => {
|
|
@@ -1320,7 +864,7 @@ class BAX_Token_2022_json {
|
|
|
1320
864
|
Transfer: (callback, filter) => {
|
|
1321
865
|
return this.publicClient.watchContractEvent({
|
|
1322
866
|
address: this.contractAddress,
|
|
1323
|
-
abi: exports.
|
|
867
|
+
abi: exports.BaxToken_jsonAbi,
|
|
1324
868
|
eventName: 'Transfer',
|
|
1325
869
|
args: filter,
|
|
1326
870
|
onLogs: (logs) => {
|
|
@@ -1329,44 +873,8 @@ class BAX_Token_2022_json {
|
|
|
1329
873
|
});
|
|
1330
874
|
},
|
|
1331
875
|
});
|
|
1332
|
-
},
|
|
1333
|
-
/**
|
|
1334
|
-
* Watch Pause events
|
|
1335
|
-
* @param callback Function to call when event is emitted
|
|
1336
|
-
* @param filter Optional filter for indexed parameters
|
|
1337
|
-
* @returns Unwatch function to stop listening
|
|
1338
|
-
*/
|
|
1339
|
-
Pause: (callback) => {
|
|
1340
|
-
return this.publicClient.watchContractEvent({
|
|
1341
|
-
address: this.contractAddress,
|
|
1342
|
-
abi: exports.BAX_Token_2022_jsonAbi,
|
|
1343
|
-
eventName: 'Pause',
|
|
1344
|
-
onLogs: (logs) => {
|
|
1345
|
-
logs.forEach((log) => {
|
|
1346
|
-
callback(log.args);
|
|
1347
|
-
});
|
|
1348
|
-
},
|
|
1349
|
-
});
|
|
1350
|
-
},
|
|
1351
|
-
/**
|
|
1352
|
-
* Watch Unpause events
|
|
1353
|
-
* @param callback Function to call when event is emitted
|
|
1354
|
-
* @param filter Optional filter for indexed parameters
|
|
1355
|
-
* @returns Unwatch function to stop listening
|
|
1356
|
-
*/
|
|
1357
|
-
Unpause: (callback) => {
|
|
1358
|
-
return this.publicClient.watchContractEvent({
|
|
1359
|
-
address: this.contractAddress,
|
|
1360
|
-
abi: exports.BAX_Token_2022_jsonAbi,
|
|
1361
|
-
eventName: 'Unpause',
|
|
1362
|
-
onLogs: (logs) => {
|
|
1363
|
-
logs.forEach((log) => {
|
|
1364
|
-
callback(log.args);
|
|
1365
|
-
});
|
|
1366
|
-
},
|
|
1367
|
-
});
|
|
1368
876
|
}
|
|
1369
877
|
};
|
|
1370
878
|
}
|
|
1371
879
|
}
|
|
1372
|
-
exports.
|
|
880
|
+
exports.BaxToken_json = BaxToken_json;
|