@gitmyabi/usdt 1.0.11 → 1.0.13
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/{DefiTokenFixedSupply_json.d.ts → EssentialToken_json.d.ts} +288 -1028
- package/contracts/{DefiTokenFixedSupply_json.js → EssentialToken_json.js} +321 -1248
- package/contracts/{DefiTokenFixedSupply_json.ts → EssentialToken_json.ts} +321 -1330
- 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,246 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.EssentialToken_json = exports.EssentialToken_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* EssentialToken_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.EssentialToken_jsonAbi = [
|
|
11
11
|
{
|
|
12
|
-
"inputs": [
|
|
13
|
-
{
|
|
14
|
-
"internalType": "string",
|
|
15
|
-
"name": "name_",
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"internalType": "string",
|
|
20
|
-
"name": "symbol_",
|
|
21
|
-
"type": "string"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"internalType": "uint256",
|
|
25
|
-
"name": "initialSupplyToSet",
|
|
26
|
-
"type": "uint256"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"internalType": "uint8",
|
|
30
|
-
"name": "decimalsToSet",
|
|
31
|
-
"type": "uint8"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"internalType": "address",
|
|
35
|
-
"name": "tokenOwner",
|
|
36
|
-
"type": "address"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"components": [
|
|
40
|
-
{
|
|
41
|
-
"internalType": "bool",
|
|
42
|
-
"name": "_isBurnable",
|
|
43
|
-
"type": "bool"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"internalType": "bool",
|
|
47
|
-
"name": "_isDocumentAllowed",
|
|
48
|
-
"type": "bool"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"internalType": "bool",
|
|
52
|
-
"name": "_isMaxAmountOfTokensSet",
|
|
53
|
-
"type": "bool"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"internalType": "bool",
|
|
57
|
-
"name": "_isTaxable",
|
|
58
|
-
"type": "bool"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"internalType": "bool",
|
|
62
|
-
"name": "_isDeflationary",
|
|
63
|
-
"type": "bool"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"internalType": "bool",
|
|
67
|
-
"name": "_isReflective",
|
|
68
|
-
"type": "bool"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"internalType": "struct DefiTokenFixedSupply.ERC20ConfigProps",
|
|
72
|
-
"name": "customConfigProps",
|
|
73
|
-
"type": "tuple"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"internalType": "string",
|
|
77
|
-
"name": "newDocumentUri",
|
|
78
|
-
"type": "string"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"internalType": "address",
|
|
82
|
-
"name": "_taxAddress",
|
|
83
|
-
"type": "address"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"internalType": "uint256[3]",
|
|
87
|
-
"name": "bpsParams",
|
|
88
|
-
"type": "uint256[3]"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"internalType": "uint256[1]",
|
|
92
|
-
"name": "amountParams",
|
|
93
|
-
"type": "uint256[1]"
|
|
94
|
-
}
|
|
95
|
-
],
|
|
12
|
+
"inputs": [],
|
|
96
13
|
"stateMutability": "nonpayable",
|
|
97
14
|
"type": "constructor"
|
|
98
15
|
},
|
|
99
|
-
{
|
|
100
|
-
"inputs": [],
|
|
101
|
-
"name": "AlreadyExcludedFromFeesAndLimits",
|
|
102
|
-
"type": "error"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"inputs": [],
|
|
106
|
-
"name": "AlreadyExcludedFromRewards",
|
|
107
|
-
"type": "error"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"inputs": [],
|
|
111
|
-
"name": "AlreadyIncludedInFeesAndLimits",
|
|
112
|
-
"type": "error"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"inputs": [],
|
|
116
|
-
"name": "AlreadyIncludedInRewards",
|
|
117
|
-
"type": "error"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"inputs": [],
|
|
121
|
-
"name": "BurningNotEnabled",
|
|
122
|
-
"type": "error"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"inputs": [
|
|
126
|
-
{
|
|
127
|
-
"internalType": "address",
|
|
128
|
-
"name": "addr",
|
|
129
|
-
"type": "address"
|
|
130
|
-
}
|
|
131
|
-
],
|
|
132
|
-
"name": "DestBalanceExceedsMaxAllowed",
|
|
133
|
-
"type": "error"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"inputs": [],
|
|
137
|
-
"name": "DocumentUriNotAllowed",
|
|
138
|
-
"type": "error"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"inputs": [
|
|
142
|
-
{
|
|
143
|
-
"internalType": "address",
|
|
144
|
-
"name": "recipient",
|
|
145
|
-
"type": "address"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"internalType": "uint256",
|
|
149
|
-
"name": "fromBalance",
|
|
150
|
-
"type": "uint256"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"internalType": "uint256",
|
|
154
|
-
"name": "balance",
|
|
155
|
-
"type": "uint256"
|
|
156
|
-
}
|
|
157
|
-
],
|
|
158
|
-
"name": "ERC20InsufficientBalance",
|
|
159
|
-
"type": "error"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"inputs": [
|
|
163
|
-
{
|
|
164
|
-
"internalType": "uint8",
|
|
165
|
-
"name": "decimals",
|
|
166
|
-
"type": "uint8"
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
"name": "InvalidDecimals",
|
|
170
|
-
"type": "error"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"inputs": [
|
|
174
|
-
{
|
|
175
|
-
"internalType": "uint256",
|
|
176
|
-
"name": "maxTokenAmount",
|
|
177
|
-
"type": "uint256"
|
|
178
|
-
}
|
|
179
|
-
],
|
|
180
|
-
"name": "InvalidMaxTokenAmount",
|
|
181
|
-
"type": "error"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"inputs": [],
|
|
185
|
-
"name": "InvalidReflectiveConfig",
|
|
186
|
-
"type": "error"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"inputs": [
|
|
190
|
-
{
|
|
191
|
-
"internalType": "uint256",
|
|
192
|
-
"name": "bps",
|
|
193
|
-
"type": "uint256"
|
|
194
|
-
}
|
|
195
|
-
],
|
|
196
|
-
"name": "InvalidTotalBPS",
|
|
197
|
-
"type": "error"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"inputs": [],
|
|
201
|
-
"name": "MaxTokenAmountNotAllowed",
|
|
202
|
-
"type": "error"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"inputs": [],
|
|
206
|
-
"name": "MaxTokenAmountPerAddrLtPrevious",
|
|
207
|
-
"type": "error"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"inputs": [],
|
|
211
|
-
"name": "ReachedMaxExclusionLimit",
|
|
212
|
-
"type": "error"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"inputs": [],
|
|
216
|
-
"name": "ReachedMaxRewardExclusionLimit",
|
|
217
|
-
"type": "error"
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"inputs": [],
|
|
221
|
-
"name": "TokenIsNotDeflationary",
|
|
222
|
-
"type": "error"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"inputs": [],
|
|
226
|
-
"name": "TokenIsNotReflective",
|
|
227
|
-
"type": "error"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
"inputs": [],
|
|
231
|
-
"name": "TokenIsNotTaxable",
|
|
232
|
-
"type": "error"
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"inputs": [],
|
|
236
|
-
"name": "TotalReflectionTooSmall",
|
|
237
|
-
"type": "error"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
"inputs": [],
|
|
241
|
-
"name": "ZeroTransferError",
|
|
242
|
-
"type": "error"
|
|
243
|
-
},
|
|
244
16
|
{
|
|
245
17
|
"anonymous": false,
|
|
246
18
|
"inputs": [
|
|
@@ -266,82 +38,17 @@ exports.DefiTokenFixedSupply_jsonAbi = [
|
|
|
266
38
|
"name": "Approval",
|
|
267
39
|
"type": "event"
|
|
268
40
|
},
|
|
269
|
-
{
|
|
270
|
-
"anonymous": false,
|
|
271
|
-
"inputs": [
|
|
272
|
-
{
|
|
273
|
-
"indexed": true,
|
|
274
|
-
"internalType": "uint256",
|
|
275
|
-
"name": "_deflationBPS",
|
|
276
|
-
"type": "uint256"
|
|
277
|
-
}
|
|
278
|
-
],
|
|
279
|
-
"name": "DeflationConfigSet",
|
|
280
|
-
"type": "event"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"anonymous": false,
|
|
284
|
-
"inputs": [
|
|
285
|
-
{
|
|
286
|
-
"indexed": false,
|
|
287
|
-
"internalType": "string",
|
|
288
|
-
"name": "newDocUri",
|
|
289
|
-
"type": "string"
|
|
290
|
-
}
|
|
291
|
-
],
|
|
292
|
-
"name": "DocumentUriSet",
|
|
293
|
-
"type": "event"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"anonymous": false,
|
|
297
|
-
"inputs": [
|
|
298
|
-
{
|
|
299
|
-
"indexed": true,
|
|
300
|
-
"internalType": "address",
|
|
301
|
-
"name": "account",
|
|
302
|
-
"type": "address"
|
|
303
|
-
}
|
|
304
|
-
],
|
|
305
|
-
"name": "ExcludeFromFeesAndLimits",
|
|
306
|
-
"type": "event"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
"anonymous": false,
|
|
310
|
-
"inputs": [
|
|
311
|
-
{
|
|
312
|
-
"indexed": true,
|
|
313
|
-
"internalType": "address",
|
|
314
|
-
"name": "account",
|
|
315
|
-
"type": "address"
|
|
316
|
-
}
|
|
317
|
-
],
|
|
318
|
-
"name": "ExcludedFromRewards",
|
|
319
|
-
"type": "event"
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
"anonymous": false,
|
|
323
|
-
"inputs": [
|
|
324
|
-
{
|
|
325
|
-
"indexed": true,
|
|
326
|
-
"internalType": "address",
|
|
327
|
-
"name": "account",
|
|
328
|
-
"type": "address"
|
|
329
|
-
}
|
|
330
|
-
],
|
|
331
|
-
"name": "IncludedInFeesAndLimits",
|
|
332
|
-
"type": "event"
|
|
333
|
-
},
|
|
334
41
|
{
|
|
335
42
|
"anonymous": false,
|
|
336
43
|
"inputs": [
|
|
337
44
|
{
|
|
338
45
|
"indexed": true,
|
|
339
46
|
"internalType": "address",
|
|
340
|
-
"name": "
|
|
47
|
+
"name": "_account",
|
|
341
48
|
"type": "address"
|
|
342
49
|
}
|
|
343
50
|
],
|
|
344
|
-
"name": "
|
|
51
|
+
"name": "BlockedAccount",
|
|
345
52
|
"type": "event"
|
|
346
53
|
},
|
|
347
54
|
{
|
|
@@ -349,12 +56,12 @@ exports.DefiTokenFixedSupply_jsonAbi = [
|
|
|
349
56
|
"inputs": [
|
|
350
57
|
{
|
|
351
58
|
"indexed": false,
|
|
352
|
-
"internalType": "
|
|
353
|
-
"name": "
|
|
354
|
-
"type": "
|
|
59
|
+
"internalType": "uint8",
|
|
60
|
+
"name": "version",
|
|
61
|
+
"type": "uint8"
|
|
355
62
|
}
|
|
356
63
|
],
|
|
357
|
-
"name": "
|
|
64
|
+
"name": "Initialized",
|
|
358
65
|
"type": "event"
|
|
359
66
|
},
|
|
360
67
|
{
|
|
@@ -380,32 +87,13 @@ exports.DefiTokenFixedSupply_jsonAbi = [
|
|
|
380
87
|
"anonymous": false,
|
|
381
88
|
"inputs": [
|
|
382
89
|
{
|
|
383
|
-
"indexed":
|
|
384
|
-
"internalType": "uint256",
|
|
385
|
-
"name": "_feeBPS",
|
|
386
|
-
"type": "uint256"
|
|
387
|
-
}
|
|
388
|
-
],
|
|
389
|
-
"name": "ReflectionConfigSet",
|
|
390
|
-
"type": "event"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
"anonymous": false,
|
|
394
|
-
"inputs": [
|
|
395
|
-
{
|
|
396
|
-
"indexed": true,
|
|
90
|
+
"indexed": false,
|
|
397
91
|
"internalType": "address",
|
|
398
|
-
"name": "
|
|
92
|
+
"name": "account",
|
|
399
93
|
"type": "address"
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
"indexed": true,
|
|
403
|
-
"internalType": "uint256",
|
|
404
|
-
"name": "_taxBPS",
|
|
405
|
-
"type": "uint256"
|
|
406
94
|
}
|
|
407
95
|
],
|
|
408
|
-
"name": "
|
|
96
|
+
"name": "Paused",
|
|
409
97
|
"type": "event"
|
|
410
98
|
},
|
|
411
99
|
{
|
|
@@ -434,433 +122,50 @@ exports.DefiTokenFixedSupply_jsonAbi = [
|
|
|
434
122
|
"type": "event"
|
|
435
123
|
},
|
|
436
124
|
{
|
|
437
|
-
"
|
|
438
|
-
"
|
|
439
|
-
"outputs": [
|
|
125
|
+
"anonymous": false,
|
|
126
|
+
"inputs": [
|
|
440
127
|
{
|
|
441
|
-
"
|
|
442
|
-
"
|
|
443
|
-
"
|
|
128
|
+
"indexed": true,
|
|
129
|
+
"internalType": "address",
|
|
130
|
+
"name": "_account",
|
|
131
|
+
"type": "address"
|
|
444
132
|
}
|
|
445
133
|
],
|
|
446
|
-
"
|
|
447
|
-
"type": "
|
|
134
|
+
"name": "UnblockedAccount",
|
|
135
|
+
"type": "event"
|
|
448
136
|
},
|
|
449
137
|
{
|
|
450
|
-
"
|
|
451
|
-
"
|
|
452
|
-
"outputs": [
|
|
138
|
+
"anonymous": false,
|
|
139
|
+
"inputs": [
|
|
453
140
|
{
|
|
454
|
-
"
|
|
455
|
-
"
|
|
456
|
-
"
|
|
141
|
+
"indexed": false,
|
|
142
|
+
"internalType": "address",
|
|
143
|
+
"name": "account",
|
|
144
|
+
"type": "address"
|
|
457
145
|
}
|
|
458
146
|
],
|
|
459
|
-
"
|
|
460
|
-
"type": "
|
|
147
|
+
"name": "Unpaused",
|
|
148
|
+
"type": "event"
|
|
461
149
|
},
|
|
462
150
|
{
|
|
463
|
-
"inputs": [
|
|
464
|
-
"name": "MAX_EXCLUSION_LIMIT",
|
|
465
|
-
"outputs": [
|
|
466
|
-
{
|
|
467
|
-
"internalType": "uint256",
|
|
468
|
-
"name": "",
|
|
469
|
-
"type": "uint256"
|
|
470
|
-
}
|
|
471
|
-
],
|
|
472
|
-
"stateMutability": "view",
|
|
473
|
-
"type": "function"
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
"inputs": [],
|
|
477
|
-
"name": "MAX_REWARDS_EXCLUSION_LIMIT",
|
|
478
|
-
"outputs": [
|
|
479
|
-
{
|
|
480
|
-
"internalType": "uint256",
|
|
481
|
-
"name": "",
|
|
482
|
-
"type": "uint256"
|
|
483
|
-
}
|
|
484
|
-
],
|
|
485
|
-
"stateMutability": "view",
|
|
486
|
-
"type": "function"
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
"inputs": [],
|
|
490
|
-
"name": "VERSION",
|
|
491
|
-
"outputs": [
|
|
492
|
-
{
|
|
493
|
-
"internalType": "string",
|
|
494
|
-
"name": "",
|
|
495
|
-
"type": "string"
|
|
496
|
-
}
|
|
497
|
-
],
|
|
498
|
-
"stateMutability": "view",
|
|
499
|
-
"type": "function"
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
"inputs": [],
|
|
503
|
-
"name": "_tTotal",
|
|
504
|
-
"outputs": [
|
|
505
|
-
{
|
|
506
|
-
"internalType": "uint256",
|
|
507
|
-
"name": "",
|
|
508
|
-
"type": "uint256"
|
|
509
|
-
}
|
|
510
|
-
],
|
|
511
|
-
"stateMutability": "view",
|
|
512
|
-
"type": "function"
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
"inputs": [
|
|
151
|
+
"inputs": [
|
|
516
152
|
{
|
|
517
153
|
"internalType": "address",
|
|
518
154
|
"name": "owner",
|
|
519
|
-
"type": "address"
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
"internalType": "address",
|
|
523
|
-
"name": "spender",
|
|
524
|
-
"type": "address"
|
|
525
|
-
}
|
|
526
|
-
],
|
|
527
|
-
"name": "allowance",
|
|
528
|
-
"outputs": [
|
|
529
|
-
{
|
|
530
|
-
"internalType": "uint256",
|
|
531
|
-
"name": "",
|
|
532
|
-
"type": "uint256"
|
|
533
|
-
}
|
|
534
|
-
],
|
|
535
|
-
"stateMutability": "view",
|
|
536
|
-
"type": "function"
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
"inputs": [
|
|
540
|
-
{
|
|
541
|
-
"internalType": "address",
|
|
542
|
-
"name": "spender",
|
|
543
|
-
"type": "address"
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
"internalType": "uint256",
|
|
547
|
-
"name": "amount",
|
|
548
|
-
"type": "uint256"
|
|
549
|
-
}
|
|
550
|
-
],
|
|
551
|
-
"name": "approve",
|
|
552
|
-
"outputs": [
|
|
553
|
-
{
|
|
554
|
-
"internalType": "bool",
|
|
555
|
-
"name": "",
|
|
556
|
-
"type": "bool"
|
|
557
|
-
}
|
|
558
|
-
],
|
|
559
|
-
"stateMutability": "nonpayable",
|
|
560
|
-
"type": "function"
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
"inputs": [
|
|
564
|
-
{
|
|
565
|
-
"internalType": "address",
|
|
566
|
-
"name": "account",
|
|
567
|
-
"type": "address"
|
|
568
|
-
}
|
|
569
|
-
],
|
|
570
|
-
"name": "balanceOf",
|
|
571
|
-
"outputs": [
|
|
572
|
-
{
|
|
573
|
-
"internalType": "uint256",
|
|
574
|
-
"name": "",
|
|
575
|
-
"type": "uint256"
|
|
576
|
-
}
|
|
577
|
-
],
|
|
578
|
-
"stateMutability": "view",
|
|
579
|
-
"type": "function"
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
"inputs": [
|
|
583
|
-
{
|
|
584
|
-
"internalType": "uint256",
|
|
585
|
-
"name": "amount",
|
|
586
|
-
"type": "uint256"
|
|
587
|
-
}
|
|
588
|
-
],
|
|
589
|
-
"name": "burn",
|
|
590
|
-
"outputs": [],
|
|
591
|
-
"stateMutability": "nonpayable",
|
|
592
|
-
"type": "function"
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
"inputs": [],
|
|
596
|
-
"name": "decimals",
|
|
597
|
-
"outputs": [
|
|
598
|
-
{
|
|
599
|
-
"internalType": "uint8",
|
|
600
|
-
"name": "",
|
|
601
|
-
"type": "uint8"
|
|
602
|
-
}
|
|
603
|
-
],
|
|
604
|
-
"stateMutability": "view",
|
|
605
|
-
"type": "function"
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
"inputs": [
|
|
609
|
-
{
|
|
610
|
-
"internalType": "address",
|
|
611
|
-
"name": "spender",
|
|
612
|
-
"type": "address"
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
"internalType": "uint256",
|
|
616
|
-
"name": "subtractedValue",
|
|
617
|
-
"type": "uint256"
|
|
618
|
-
}
|
|
619
|
-
],
|
|
620
|
-
"name": "decreaseAllowance",
|
|
621
|
-
"outputs": [
|
|
622
|
-
{
|
|
623
|
-
"internalType": "bool",
|
|
624
|
-
"name": "",
|
|
625
|
-
"type": "bool"
|
|
626
|
-
}
|
|
627
|
-
],
|
|
628
|
-
"stateMutability": "nonpayable",
|
|
629
|
-
"type": "function"
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
"inputs": [],
|
|
633
|
-
"name": "deflationBPS",
|
|
634
|
-
"outputs": [
|
|
635
|
-
{
|
|
636
|
-
"internalType": "uint256",
|
|
637
|
-
"name": "",
|
|
638
|
-
"type": "uint256"
|
|
639
|
-
}
|
|
640
|
-
],
|
|
641
|
-
"stateMutability": "view",
|
|
642
|
-
"type": "function"
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
"inputs": [],
|
|
646
|
-
"name": "documentUri",
|
|
647
|
-
"outputs": [
|
|
648
|
-
{
|
|
649
|
-
"internalType": "string",
|
|
650
|
-
"name": "",
|
|
651
|
-
"type": "string"
|
|
652
|
-
}
|
|
653
|
-
],
|
|
654
|
-
"stateMutability": "view",
|
|
655
|
-
"type": "function"
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
"inputs": [
|
|
659
|
-
{
|
|
660
|
-
"internalType": "address",
|
|
661
|
-
"name": "account",
|
|
662
|
-
"type": "address"
|
|
663
|
-
}
|
|
664
|
-
],
|
|
665
|
-
"name": "excludeFromFeesAndLimits",
|
|
666
|
-
"outputs": [],
|
|
667
|
-
"stateMutability": "nonpayable",
|
|
668
|
-
"type": "function"
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
"inputs": [
|
|
672
|
-
{
|
|
673
|
-
"internalType": "address",
|
|
674
|
-
"name": "account",
|
|
675
|
-
"type": "address"
|
|
676
|
-
}
|
|
677
|
-
],
|
|
678
|
-
"name": "excludeFromRewards",
|
|
679
|
-
"outputs": [],
|
|
680
|
-
"stateMutability": "nonpayable",
|
|
681
|
-
"type": "function"
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
"inputs": [
|
|
685
|
-
{
|
|
686
|
-
"internalType": "uint256",
|
|
687
|
-
"name": "",
|
|
688
|
-
"type": "uint256"
|
|
689
|
-
}
|
|
690
|
-
],
|
|
691
|
-
"name": "feesAndLimitsExcluded",
|
|
692
|
-
"outputs": [
|
|
693
|
-
{
|
|
694
|
-
"internalType": "address",
|
|
695
|
-
"name": "",
|
|
696
|
-
"type": "address"
|
|
697
|
-
}
|
|
698
|
-
],
|
|
699
|
-
"stateMutability": "view",
|
|
700
|
-
"type": "function"
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
"inputs": [],
|
|
704
|
-
"name": "getFeesAndLimitsExclusionList",
|
|
705
|
-
"outputs": [
|
|
706
|
-
{
|
|
707
|
-
"internalType": "address[]",
|
|
708
|
-
"name": "",
|
|
709
|
-
"type": "address[]"
|
|
710
|
-
}
|
|
711
|
-
],
|
|
712
|
-
"stateMutability": "view",
|
|
713
|
-
"type": "function"
|
|
714
|
-
},
|
|
715
|
-
{
|
|
716
|
-
"inputs": [],
|
|
717
|
-
"name": "getRewardsExclusionList",
|
|
718
|
-
"outputs": [
|
|
719
|
-
{
|
|
720
|
-
"internalType": "address[]",
|
|
721
|
-
"name": "",
|
|
722
|
-
"type": "address[]"
|
|
723
|
-
}
|
|
724
|
-
],
|
|
725
|
-
"stateMutability": "view",
|
|
726
|
-
"type": "function"
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
"inputs": [
|
|
730
|
-
{
|
|
731
|
-
"internalType": "address",
|
|
732
|
-
"name": "account",
|
|
733
|
-
"type": "address"
|
|
734
|
-
}
|
|
735
|
-
],
|
|
736
|
-
"name": "includeInFeesAndLimits",
|
|
737
|
-
"outputs": [],
|
|
738
|
-
"stateMutability": "nonpayable",
|
|
739
|
-
"type": "function"
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
"inputs": [
|
|
743
|
-
{
|
|
744
|
-
"internalType": "address",
|
|
745
|
-
"name": "account",
|
|
746
|
-
"type": "address"
|
|
747
|
-
}
|
|
748
|
-
],
|
|
749
|
-
"name": "includeInRewards",
|
|
750
|
-
"outputs": [],
|
|
751
|
-
"stateMutability": "nonpayable",
|
|
752
|
-
"type": "function"
|
|
753
|
-
},
|
|
754
|
-
{
|
|
755
|
-
"inputs": [
|
|
756
|
-
{
|
|
757
|
-
"internalType": "address",
|
|
758
|
-
"name": "spender",
|
|
759
|
-
"type": "address"
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
"internalType": "uint256",
|
|
763
|
-
"name": "addedValue",
|
|
764
|
-
"type": "uint256"
|
|
765
|
-
}
|
|
766
|
-
],
|
|
767
|
-
"name": "increaseAllowance",
|
|
768
|
-
"outputs": [
|
|
769
|
-
{
|
|
770
|
-
"internalType": "bool",
|
|
771
|
-
"name": "",
|
|
772
|
-
"type": "bool"
|
|
773
|
-
}
|
|
774
|
-
],
|
|
775
|
-
"stateMutability": "nonpayable",
|
|
776
|
-
"type": "function"
|
|
777
|
-
},
|
|
778
|
-
{
|
|
779
|
-
"inputs": [],
|
|
780
|
-
"name": "initialDocumentUri",
|
|
781
|
-
"outputs": [
|
|
782
|
-
{
|
|
783
|
-
"internalType": "string",
|
|
784
|
-
"name": "",
|
|
785
|
-
"type": "string"
|
|
786
|
-
}
|
|
787
|
-
],
|
|
788
|
-
"stateMutability": "view",
|
|
789
|
-
"type": "function"
|
|
790
|
-
},
|
|
791
|
-
{
|
|
792
|
-
"inputs": [],
|
|
793
|
-
"name": "initialMaxTokenAmountPerAddress",
|
|
794
|
-
"outputs": [
|
|
795
|
-
{
|
|
796
|
-
"internalType": "uint256",
|
|
797
|
-
"name": "",
|
|
798
|
-
"type": "uint256"
|
|
799
|
-
}
|
|
800
|
-
],
|
|
801
|
-
"stateMutability": "view",
|
|
802
|
-
"type": "function"
|
|
803
|
-
},
|
|
804
|
-
{
|
|
805
|
-
"inputs": [],
|
|
806
|
-
"name": "initialSupply",
|
|
807
|
-
"outputs": [
|
|
808
|
-
{
|
|
809
|
-
"internalType": "uint256",
|
|
810
|
-
"name": "",
|
|
811
|
-
"type": "uint256"
|
|
812
|
-
}
|
|
813
|
-
],
|
|
814
|
-
"stateMutability": "view",
|
|
815
|
-
"type": "function"
|
|
816
|
-
},
|
|
817
|
-
{
|
|
818
|
-
"inputs": [],
|
|
819
|
-
"name": "initialTokenOwner",
|
|
820
|
-
"outputs": [
|
|
821
|
-
{
|
|
822
|
-
"internalType": "address",
|
|
823
|
-
"name": "",
|
|
824
|
-
"type": "address"
|
|
825
|
-
}
|
|
826
|
-
],
|
|
827
|
-
"stateMutability": "view",
|
|
828
|
-
"type": "function"
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
"inputs": [],
|
|
832
|
-
"name": "isBurnable",
|
|
833
|
-
"outputs": [
|
|
834
|
-
{
|
|
835
|
-
"internalType": "bool",
|
|
836
|
-
"name": "",
|
|
837
|
-
"type": "bool"
|
|
838
|
-
}
|
|
839
|
-
],
|
|
840
|
-
"stateMutability": "view",
|
|
841
|
-
"type": "function"
|
|
842
|
-
},
|
|
843
|
-
{
|
|
844
|
-
"inputs": [],
|
|
845
|
-
"name": "isDeflationary",
|
|
846
|
-
"outputs": [
|
|
155
|
+
"type": "address"
|
|
156
|
+
},
|
|
847
157
|
{
|
|
848
|
-
"internalType": "
|
|
849
|
-
"name": "",
|
|
850
|
-
"type": "
|
|
158
|
+
"internalType": "address",
|
|
159
|
+
"name": "spender",
|
|
160
|
+
"type": "address"
|
|
851
161
|
}
|
|
852
162
|
],
|
|
853
|
-
"
|
|
854
|
-
"type": "function"
|
|
855
|
-
},
|
|
856
|
-
{
|
|
857
|
-
"inputs": [],
|
|
858
|
-
"name": "isDocumentUriAllowed",
|
|
163
|
+
"name": "allowance",
|
|
859
164
|
"outputs": [
|
|
860
165
|
{
|
|
861
|
-
"internalType": "
|
|
166
|
+
"internalType": "uint256",
|
|
862
167
|
"name": "",
|
|
863
|
-
"type": "
|
|
168
|
+
"type": "uint256"
|
|
864
169
|
}
|
|
865
170
|
],
|
|
866
171
|
"stateMutability": "view",
|
|
@@ -870,11 +175,16 @@ exports.DefiTokenFixedSupply_jsonAbi = [
|
|
|
870
175
|
"inputs": [
|
|
871
176
|
{
|
|
872
177
|
"internalType": "address",
|
|
873
|
-
"name": "",
|
|
178
|
+
"name": "spender",
|
|
874
179
|
"type": "address"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"internalType": "uint256",
|
|
183
|
+
"name": "amount",
|
|
184
|
+
"type": "uint256"
|
|
875
185
|
}
|
|
876
186
|
],
|
|
877
|
-
"name": "
|
|
187
|
+
"name": "approve",
|
|
878
188
|
"outputs": [
|
|
879
189
|
{
|
|
880
190
|
"internalType": "bool",
|
|
@@ -882,135 +192,167 @@ exports.DefiTokenFixedSupply_jsonAbi = [
|
|
|
882
192
|
"type": "bool"
|
|
883
193
|
}
|
|
884
194
|
],
|
|
885
|
-
"stateMutability": "
|
|
195
|
+
"stateMutability": "nonpayable",
|
|
886
196
|
"type": "function"
|
|
887
197
|
},
|
|
888
198
|
{
|
|
889
|
-
"inputs": [
|
|
890
|
-
"name": "isMaxAmountOfTokensSet",
|
|
891
|
-
"outputs": [
|
|
199
|
+
"inputs": [
|
|
892
200
|
{
|
|
893
|
-
"internalType": "
|
|
894
|
-
"name": "",
|
|
895
|
-
"type": "
|
|
201
|
+
"internalType": "address",
|
|
202
|
+
"name": "account",
|
|
203
|
+
"type": "address"
|
|
896
204
|
}
|
|
897
205
|
],
|
|
898
|
-
"
|
|
899
|
-
"type": "function"
|
|
900
|
-
},
|
|
901
|
-
{
|
|
902
|
-
"inputs": [],
|
|
903
|
-
"name": "isReflective",
|
|
206
|
+
"name": "balanceOf",
|
|
904
207
|
"outputs": [
|
|
905
208
|
{
|
|
906
|
-
"internalType": "
|
|
209
|
+
"internalType": "uint256",
|
|
907
210
|
"name": "",
|
|
908
|
-
"type": "
|
|
211
|
+
"type": "uint256"
|
|
909
212
|
}
|
|
910
213
|
],
|
|
911
214
|
"stateMutability": "view",
|
|
912
215
|
"type": "function"
|
|
913
216
|
},
|
|
914
217
|
{
|
|
915
|
-
"inputs": [
|
|
916
|
-
"name": "isTaxable",
|
|
917
|
-
"outputs": [
|
|
218
|
+
"inputs": [
|
|
918
219
|
{
|
|
919
|
-
"internalType": "
|
|
920
|
-
"name": "",
|
|
921
|
-
"type": "
|
|
220
|
+
"internalType": "address",
|
|
221
|
+
"name": "_account",
|
|
222
|
+
"type": "address"
|
|
922
223
|
}
|
|
923
224
|
],
|
|
924
|
-
"
|
|
225
|
+
"name": "blockAccount",
|
|
226
|
+
"outputs": [],
|
|
227
|
+
"stateMutability": "nonpayable",
|
|
925
228
|
"type": "function"
|
|
926
229
|
},
|
|
927
230
|
{
|
|
928
|
-
"inputs": [
|
|
929
|
-
"name": "maxTokenAmountPerAddress",
|
|
930
|
-
"outputs": [
|
|
231
|
+
"inputs": [
|
|
931
232
|
{
|
|
932
233
|
"internalType": "uint256",
|
|
933
|
-
"name": "",
|
|
234
|
+
"name": "amount",
|
|
934
235
|
"type": "uint256"
|
|
935
236
|
}
|
|
936
237
|
],
|
|
937
|
-
"
|
|
238
|
+
"name": "burn",
|
|
239
|
+
"outputs": [],
|
|
240
|
+
"stateMutability": "nonpayable",
|
|
938
241
|
"type": "function"
|
|
939
242
|
},
|
|
940
243
|
{
|
|
941
|
-
"inputs": [
|
|
942
|
-
"name": "name",
|
|
943
|
-
"outputs": [
|
|
244
|
+
"inputs": [
|
|
944
245
|
{
|
|
945
|
-
"internalType": "
|
|
946
|
-
"name": "",
|
|
947
|
-
"type": "
|
|
246
|
+
"internalType": "address",
|
|
247
|
+
"name": "account",
|
|
248
|
+
"type": "address"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"internalType": "uint256",
|
|
252
|
+
"name": "amount",
|
|
253
|
+
"type": "uint256"
|
|
948
254
|
}
|
|
949
255
|
],
|
|
950
|
-
"
|
|
256
|
+
"name": "burnFrom",
|
|
257
|
+
"outputs": [],
|
|
258
|
+
"stateMutability": "nonpayable",
|
|
951
259
|
"type": "function"
|
|
952
260
|
},
|
|
953
261
|
{
|
|
954
262
|
"inputs": [],
|
|
955
|
-
"name": "
|
|
263
|
+
"name": "decimals",
|
|
956
264
|
"outputs": [
|
|
957
265
|
{
|
|
958
|
-
"internalType": "
|
|
266
|
+
"internalType": "uint8",
|
|
959
267
|
"name": "",
|
|
960
|
-
"type": "
|
|
268
|
+
"type": "uint8"
|
|
961
269
|
}
|
|
962
270
|
],
|
|
963
271
|
"stateMutability": "view",
|
|
964
272
|
"type": "function"
|
|
965
273
|
},
|
|
966
|
-
{
|
|
967
|
-
"inputs": [],
|
|
968
|
-
"name": "renounceOwnership",
|
|
969
|
-
"outputs": [],
|
|
970
|
-
"stateMutability": "nonpayable",
|
|
971
|
-
"type": "function"
|
|
972
|
-
},
|
|
973
274
|
{
|
|
974
275
|
"inputs": [
|
|
276
|
+
{
|
|
277
|
+
"internalType": "address",
|
|
278
|
+
"name": "spender",
|
|
279
|
+
"type": "address"
|
|
280
|
+
},
|
|
975
281
|
{
|
|
976
282
|
"internalType": "uint256",
|
|
977
|
-
"name": "",
|
|
283
|
+
"name": "subtractedValue",
|
|
978
284
|
"type": "uint256"
|
|
979
285
|
}
|
|
980
286
|
],
|
|
981
|
-
"name": "
|
|
287
|
+
"name": "decreaseAllowance",
|
|
982
288
|
"outputs": [
|
|
983
289
|
{
|
|
984
|
-
"internalType": "
|
|
290
|
+
"internalType": "bool",
|
|
985
291
|
"name": "",
|
|
986
|
-
"type": "
|
|
292
|
+
"type": "bool"
|
|
987
293
|
}
|
|
988
294
|
],
|
|
989
|
-
"stateMutability": "
|
|
295
|
+
"stateMutability": "nonpayable",
|
|
990
296
|
"type": "function"
|
|
991
297
|
},
|
|
992
298
|
{
|
|
993
299
|
"inputs": [
|
|
300
|
+
{
|
|
301
|
+
"internalType": "address",
|
|
302
|
+
"name": "spender",
|
|
303
|
+
"type": "address"
|
|
304
|
+
},
|
|
994
305
|
{
|
|
995
306
|
"internalType": "uint256",
|
|
996
|
-
"name": "
|
|
307
|
+
"name": "addedValue",
|
|
997
308
|
"type": "uint256"
|
|
998
309
|
}
|
|
999
310
|
],
|
|
1000
|
-
"name": "
|
|
1001
|
-
"outputs": [
|
|
311
|
+
"name": "increaseAllowance",
|
|
312
|
+
"outputs": [
|
|
313
|
+
{
|
|
314
|
+
"internalType": "bool",
|
|
315
|
+
"name": "",
|
|
316
|
+
"type": "bool"
|
|
317
|
+
}
|
|
318
|
+
],
|
|
1002
319
|
"stateMutability": "nonpayable",
|
|
1003
320
|
"type": "function"
|
|
1004
321
|
},
|
|
1005
322
|
{
|
|
1006
323
|
"inputs": [
|
|
324
|
+
{
|
|
325
|
+
"internalType": "address",
|
|
326
|
+
"name": "_owner",
|
|
327
|
+
"type": "address"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"internalType": "string",
|
|
331
|
+
"name": "_name",
|
|
332
|
+
"type": "string"
|
|
333
|
+
},
|
|
1007
334
|
{
|
|
1008
335
|
"internalType": "string",
|
|
1009
|
-
"name": "
|
|
336
|
+
"name": "_symbol",
|
|
1010
337
|
"type": "string"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"internalType": "uint8",
|
|
341
|
+
"name": "_decimals",
|
|
342
|
+
"type": "uint8"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"internalType": "uint256",
|
|
346
|
+
"name": "_initialSupply",
|
|
347
|
+
"type": "uint256"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"internalType": "uint256",
|
|
351
|
+
"name": "_maxSupply",
|
|
352
|
+
"type": "uint256"
|
|
1011
353
|
}
|
|
1012
354
|
],
|
|
1013
|
-
"name": "
|
|
355
|
+
"name": "initialize",
|
|
1014
356
|
"outputs": [],
|
|
1015
357
|
"stateMutability": "nonpayable",
|
|
1016
358
|
"type": "function"
|
|
@@ -1018,50 +360,56 @@ exports.DefiTokenFixedSupply_jsonAbi = [
|
|
|
1018
360
|
{
|
|
1019
361
|
"inputs": [
|
|
1020
362
|
{
|
|
1021
|
-
"internalType": "
|
|
1022
|
-
"name": "
|
|
1023
|
-
"type": "
|
|
363
|
+
"internalType": "address",
|
|
364
|
+
"name": "_account",
|
|
365
|
+
"type": "address"
|
|
1024
366
|
}
|
|
1025
367
|
],
|
|
1026
|
-
"name": "
|
|
1027
|
-
"outputs": [
|
|
1028
|
-
|
|
368
|
+
"name": "isAccountBlocked",
|
|
369
|
+
"outputs": [
|
|
370
|
+
{
|
|
371
|
+
"internalType": "bool",
|
|
372
|
+
"name": "",
|
|
373
|
+
"type": "bool"
|
|
374
|
+
}
|
|
375
|
+
],
|
|
376
|
+
"stateMutability": "view",
|
|
1029
377
|
"type": "function"
|
|
1030
378
|
},
|
|
1031
379
|
{
|
|
1032
|
-
"inputs": [
|
|
380
|
+
"inputs": [],
|
|
381
|
+
"name": "maxSupply",
|
|
382
|
+
"outputs": [
|
|
1033
383
|
{
|
|
1034
384
|
"internalType": "uint256",
|
|
1035
|
-
"name": "
|
|
385
|
+
"name": "",
|
|
1036
386
|
"type": "uint256"
|
|
1037
387
|
}
|
|
1038
388
|
],
|
|
1039
|
-
"
|
|
1040
|
-
"outputs": [],
|
|
1041
|
-
"stateMutability": "nonpayable",
|
|
389
|
+
"stateMutability": "view",
|
|
1042
390
|
"type": "function"
|
|
1043
391
|
},
|
|
1044
392
|
{
|
|
1045
393
|
"inputs": [
|
|
1046
394
|
{
|
|
1047
395
|
"internalType": "address",
|
|
1048
|
-
"name": "
|
|
396
|
+
"name": "to",
|
|
1049
397
|
"type": "address"
|
|
1050
398
|
},
|
|
1051
399
|
{
|
|
1052
400
|
"internalType": "uint256",
|
|
1053
|
-
"name": "
|
|
401
|
+
"name": "amount",
|
|
1054
402
|
"type": "uint256"
|
|
1055
403
|
}
|
|
1056
404
|
],
|
|
1057
|
-
"name": "
|
|
405
|
+
"name": "mint",
|
|
1058
406
|
"outputs": [],
|
|
1059
407
|
"stateMutability": "nonpayable",
|
|
1060
408
|
"type": "function"
|
|
1061
409
|
},
|
|
1062
410
|
{
|
|
1063
411
|
"inputs": [],
|
|
1064
|
-
"name": "
|
|
412
|
+
"name": "name",
|
|
1065
413
|
"outputs": [
|
|
1066
414
|
{
|
|
1067
415
|
"internalType": "string",
|
|
@@ -1074,12 +422,12 @@ exports.DefiTokenFixedSupply_jsonAbi = [
|
|
|
1074
422
|
},
|
|
1075
423
|
{
|
|
1076
424
|
"inputs": [],
|
|
1077
|
-
"name": "
|
|
425
|
+
"name": "owner",
|
|
1078
426
|
"outputs": [
|
|
1079
427
|
{
|
|
1080
|
-
"internalType": "
|
|
428
|
+
"internalType": "address",
|
|
1081
429
|
"name": "",
|
|
1082
|
-
"type": "
|
|
430
|
+
"type": "address"
|
|
1083
431
|
}
|
|
1084
432
|
],
|
|
1085
433
|
"stateMutability": "view",
|
|
@@ -1087,44 +435,39 @@ exports.DefiTokenFixedSupply_jsonAbi = [
|
|
|
1087
435
|
},
|
|
1088
436
|
{
|
|
1089
437
|
"inputs": [],
|
|
1090
|
-
"name": "
|
|
1091
|
-
"outputs": [
|
|
1092
|
-
|
|
1093
|
-
"internalType": "address",
|
|
1094
|
-
"name": "",
|
|
1095
|
-
"type": "address"
|
|
1096
|
-
}
|
|
1097
|
-
],
|
|
1098
|
-
"stateMutability": "view",
|
|
438
|
+
"name": "pause",
|
|
439
|
+
"outputs": [],
|
|
440
|
+
"stateMutability": "nonpayable",
|
|
1099
441
|
"type": "function"
|
|
1100
442
|
},
|
|
1101
443
|
{
|
|
1102
444
|
"inputs": [],
|
|
1103
|
-
"name": "
|
|
445
|
+
"name": "paused",
|
|
1104
446
|
"outputs": [
|
|
1105
447
|
{
|
|
1106
|
-
"internalType": "
|
|
448
|
+
"internalType": "bool",
|
|
1107
449
|
"name": "",
|
|
1108
|
-
"type": "
|
|
450
|
+
"type": "bool"
|
|
1109
451
|
}
|
|
1110
452
|
],
|
|
1111
453
|
"stateMutability": "view",
|
|
1112
454
|
"type": "function"
|
|
1113
455
|
},
|
|
1114
456
|
{
|
|
1115
|
-
"inputs": [
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
"
|
|
457
|
+
"inputs": [],
|
|
458
|
+
"name": "renounceOwnership",
|
|
459
|
+
"outputs": [],
|
|
460
|
+
"stateMutability": "nonpayable",
|
|
461
|
+
"type": "function"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"inputs": [],
|
|
465
|
+
"name": "symbol",
|
|
1123
466
|
"outputs": [
|
|
1124
467
|
{
|
|
1125
|
-
"internalType": "
|
|
468
|
+
"internalType": "string",
|
|
1126
469
|
"name": "",
|
|
1127
|
-
"type": "
|
|
470
|
+
"type": "string"
|
|
1128
471
|
}
|
|
1129
472
|
],
|
|
1130
473
|
"stateMutability": "view",
|
|
@@ -1208,10 +551,30 @@ exports.DefiTokenFixedSupply_jsonAbi = [
|
|
|
1208
551
|
"outputs": [],
|
|
1209
552
|
"stateMutability": "nonpayable",
|
|
1210
553
|
"type": "function"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"inputs": [
|
|
557
|
+
{
|
|
558
|
+
"internalType": "address",
|
|
559
|
+
"name": "_account",
|
|
560
|
+
"type": "address"
|
|
561
|
+
}
|
|
562
|
+
],
|
|
563
|
+
"name": "unblockAccount",
|
|
564
|
+
"outputs": [],
|
|
565
|
+
"stateMutability": "nonpayable",
|
|
566
|
+
"type": "function"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"inputs": [],
|
|
570
|
+
"name": "unpause",
|
|
571
|
+
"outputs": [],
|
|
572
|
+
"stateMutability": "nonpayable",
|
|
573
|
+
"type": "function"
|
|
1211
574
|
}
|
|
1212
575
|
];
|
|
1213
576
|
/**
|
|
1214
|
-
*
|
|
577
|
+
* EssentialToken_json Contract Class
|
|
1215
578
|
*
|
|
1216
579
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1217
580
|
*
|
|
@@ -1219,12 +582,12 @@ exports.DefiTokenFixedSupply_jsonAbi = [
|
|
|
1219
582
|
* ```typescript
|
|
1220
583
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1221
584
|
* import { mainnet } from 'viem/chains';
|
|
1222
|
-
* import {
|
|
585
|
+
* import { EssentialToken_json } from 'EssentialToken_json';
|
|
1223
586
|
*
|
|
1224
587
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1225
588
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1226
589
|
*
|
|
1227
|
-
* const contract = new
|
|
590
|
+
* const contract = new EssentialToken_json('0x...', { publicClient, walletClient });
|
|
1228
591
|
*
|
|
1229
592
|
* // Read functions
|
|
1230
593
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -1242,72 +605,30 @@ exports.DefiTokenFixedSupply_jsonAbi = [
|
|
|
1242
605
|
* });
|
|
1243
606
|
* ```
|
|
1244
607
|
*/
|
|
1245
|
-
class
|
|
608
|
+
class EssentialToken_json {
|
|
1246
609
|
constructor(address, clients) {
|
|
1247
610
|
this.contractAddress = address;
|
|
1248
611
|
this.publicClient = clients.publicClient;
|
|
1249
612
|
this.contract = (0, viem_1.getContract)({
|
|
1250
613
|
address,
|
|
1251
|
-
abi: exports.
|
|
614
|
+
abi: exports.EssentialToken_jsonAbi,
|
|
1252
615
|
client: {
|
|
1253
616
|
public: clients.publicClient,
|
|
1254
617
|
wallet: clients.walletClient,
|
|
1255
618
|
},
|
|
1256
|
-
});
|
|
1257
|
-
}
|
|
1258
|
-
/**
|
|
1259
|
-
* Get the contract address
|
|
1260
|
-
*/
|
|
1261
|
-
get address() {
|
|
1262
|
-
return this.contractAddress;
|
|
1263
|
-
}
|
|
1264
|
-
/**
|
|
1265
|
-
* Get the underlying viem contract instance
|
|
1266
|
-
*/
|
|
1267
|
-
getContract() {
|
|
1268
|
-
return this.contract;
|
|
1269
|
-
}
|
|
1270
|
-
/**
|
|
1271
|
-
* CONTRACT_HASH
|
|
1272
|
-
* view
|
|
1273
|
-
*/
|
|
1274
|
-
async CONTRACT_HASH() {
|
|
1275
|
-
return this.contract.read.CONTRACT_HASH();
|
|
1276
|
-
}
|
|
1277
|
-
/**
|
|
1278
|
-
* CONTRACT_NAME
|
|
1279
|
-
* view
|
|
1280
|
-
*/
|
|
1281
|
-
async CONTRACT_NAME() {
|
|
1282
|
-
return this.contract.read.CONTRACT_NAME();
|
|
1283
|
-
}
|
|
1284
|
-
/**
|
|
1285
|
-
* MAX_EXCLUSION_LIMIT
|
|
1286
|
-
* view
|
|
1287
|
-
*/
|
|
1288
|
-
async MAX_EXCLUSION_LIMIT() {
|
|
1289
|
-
return this.contract.read.MAX_EXCLUSION_LIMIT();
|
|
1290
|
-
}
|
|
1291
|
-
/**
|
|
1292
|
-
* MAX_REWARDS_EXCLUSION_LIMIT
|
|
1293
|
-
* view
|
|
1294
|
-
*/
|
|
1295
|
-
async MAX_REWARDS_EXCLUSION_LIMIT() {
|
|
1296
|
-
return this.contract.read.MAX_REWARDS_EXCLUSION_LIMIT();
|
|
619
|
+
});
|
|
1297
620
|
}
|
|
1298
621
|
/**
|
|
1299
|
-
*
|
|
1300
|
-
* view
|
|
622
|
+
* Get the contract address
|
|
1301
623
|
*/
|
|
1302
|
-
|
|
1303
|
-
return this.
|
|
624
|
+
get address() {
|
|
625
|
+
return this.contractAddress;
|
|
1304
626
|
}
|
|
1305
627
|
/**
|
|
1306
|
-
*
|
|
1307
|
-
* view
|
|
628
|
+
* Get the underlying viem contract instance
|
|
1308
629
|
*/
|
|
1309
|
-
|
|
1310
|
-
return this.contract
|
|
630
|
+
getContract() {
|
|
631
|
+
return this.contract;
|
|
1311
632
|
}
|
|
1312
633
|
/**
|
|
1313
634
|
* allowance
|
|
@@ -1331,123 +652,18 @@ class DefiTokenFixedSupply_json {
|
|
|
1331
652
|
return this.contract.read.decimals();
|
|
1332
653
|
}
|
|
1333
654
|
/**
|
|
1334
|
-
*
|
|
1335
|
-
* view
|
|
1336
|
-
*/
|
|
1337
|
-
async deflationBPS() {
|
|
1338
|
-
return this.contract.read.deflationBPS();
|
|
1339
|
-
}
|
|
1340
|
-
/**
|
|
1341
|
-
* documentUri
|
|
1342
|
-
* view
|
|
1343
|
-
*/
|
|
1344
|
-
async documentUri() {
|
|
1345
|
-
return this.contract.read.documentUri();
|
|
1346
|
-
}
|
|
1347
|
-
/**
|
|
1348
|
-
* feesAndLimitsExcluded
|
|
1349
|
-
* view
|
|
1350
|
-
*/
|
|
1351
|
-
async feesAndLimitsExcluded(arg0) {
|
|
1352
|
-
return this.contract.read.feesAndLimitsExcluded([arg0]);
|
|
1353
|
-
}
|
|
1354
|
-
/**
|
|
1355
|
-
* getFeesAndLimitsExclusionList
|
|
1356
|
-
* view
|
|
1357
|
-
*/
|
|
1358
|
-
async getFeesAndLimitsExclusionList() {
|
|
1359
|
-
return this.contract.read.getFeesAndLimitsExclusionList();
|
|
1360
|
-
}
|
|
1361
|
-
/**
|
|
1362
|
-
* getRewardsExclusionList
|
|
1363
|
-
* view
|
|
1364
|
-
*/
|
|
1365
|
-
async getRewardsExclusionList() {
|
|
1366
|
-
return this.contract.read.getRewardsExclusionList();
|
|
1367
|
-
}
|
|
1368
|
-
/**
|
|
1369
|
-
* initialDocumentUri
|
|
1370
|
-
* view
|
|
1371
|
-
*/
|
|
1372
|
-
async initialDocumentUri() {
|
|
1373
|
-
return this.contract.read.initialDocumentUri();
|
|
1374
|
-
}
|
|
1375
|
-
/**
|
|
1376
|
-
* initialMaxTokenAmountPerAddress
|
|
1377
|
-
* view
|
|
1378
|
-
*/
|
|
1379
|
-
async initialMaxTokenAmountPerAddress() {
|
|
1380
|
-
return this.contract.read.initialMaxTokenAmountPerAddress();
|
|
1381
|
-
}
|
|
1382
|
-
/**
|
|
1383
|
-
* initialSupply
|
|
1384
|
-
* view
|
|
1385
|
-
*/
|
|
1386
|
-
async initialSupply() {
|
|
1387
|
-
return this.contract.read.initialSupply();
|
|
1388
|
-
}
|
|
1389
|
-
/**
|
|
1390
|
-
* initialTokenOwner
|
|
1391
|
-
* view
|
|
1392
|
-
*/
|
|
1393
|
-
async initialTokenOwner() {
|
|
1394
|
-
return this.contract.read.initialTokenOwner();
|
|
1395
|
-
}
|
|
1396
|
-
/**
|
|
1397
|
-
* isBurnable
|
|
1398
|
-
* view
|
|
1399
|
-
*/
|
|
1400
|
-
async isBurnable() {
|
|
1401
|
-
return this.contract.read.isBurnable();
|
|
1402
|
-
}
|
|
1403
|
-
/**
|
|
1404
|
-
* isDeflationary
|
|
1405
|
-
* view
|
|
1406
|
-
*/
|
|
1407
|
-
async isDeflationary() {
|
|
1408
|
-
return this.contract.read.isDeflationary();
|
|
1409
|
-
}
|
|
1410
|
-
/**
|
|
1411
|
-
* isDocumentUriAllowed
|
|
1412
|
-
* view
|
|
1413
|
-
*/
|
|
1414
|
-
async isDocumentUriAllowed() {
|
|
1415
|
-
return this.contract.read.isDocumentUriAllowed();
|
|
1416
|
-
}
|
|
1417
|
-
/**
|
|
1418
|
-
* isFeesAndLimitsExcluded
|
|
1419
|
-
* view
|
|
1420
|
-
*/
|
|
1421
|
-
async isFeesAndLimitsExcluded(arg0) {
|
|
1422
|
-
return this.contract.read.isFeesAndLimitsExcluded([arg0]);
|
|
1423
|
-
}
|
|
1424
|
-
/**
|
|
1425
|
-
* isMaxAmountOfTokensSet
|
|
1426
|
-
* view
|
|
1427
|
-
*/
|
|
1428
|
-
async isMaxAmountOfTokensSet() {
|
|
1429
|
-
return this.contract.read.isMaxAmountOfTokensSet();
|
|
1430
|
-
}
|
|
1431
|
-
/**
|
|
1432
|
-
* isReflective
|
|
1433
|
-
* view
|
|
1434
|
-
*/
|
|
1435
|
-
async isReflective() {
|
|
1436
|
-
return this.contract.read.isReflective();
|
|
1437
|
-
}
|
|
1438
|
-
/**
|
|
1439
|
-
* isTaxable
|
|
655
|
+
* isAccountBlocked
|
|
1440
656
|
* view
|
|
1441
657
|
*/
|
|
1442
|
-
async
|
|
1443
|
-
return this.contract.read.
|
|
658
|
+
async isAccountBlocked(_account) {
|
|
659
|
+
return this.contract.read.isAccountBlocked([_account]);
|
|
1444
660
|
}
|
|
1445
661
|
/**
|
|
1446
|
-
*
|
|
662
|
+
* maxSupply
|
|
1447
663
|
* view
|
|
1448
664
|
*/
|
|
1449
|
-
async
|
|
1450
|
-
return this.contract.read.
|
|
665
|
+
async maxSupply() {
|
|
666
|
+
return this.contract.read.maxSupply();
|
|
1451
667
|
}
|
|
1452
668
|
/**
|
|
1453
669
|
* name
|
|
@@ -1464,11 +680,11 @@ class DefiTokenFixedSupply_json {
|
|
|
1464
680
|
return this.contract.read.owner();
|
|
1465
681
|
}
|
|
1466
682
|
/**
|
|
1467
|
-
*
|
|
683
|
+
* paused
|
|
1468
684
|
* view
|
|
1469
685
|
*/
|
|
1470
|
-
async
|
|
1471
|
-
return this.contract.read.
|
|
686
|
+
async paused() {
|
|
687
|
+
return this.contract.read.paused();
|
|
1472
688
|
}
|
|
1473
689
|
/**
|
|
1474
690
|
* symbol
|
|
@@ -1477,34 +693,6 @@ class DefiTokenFixedSupply_json {
|
|
|
1477
693
|
async symbol() {
|
|
1478
694
|
return this.contract.read.symbol();
|
|
1479
695
|
}
|
|
1480
|
-
/**
|
|
1481
|
-
* tFeeBPS
|
|
1482
|
-
* view
|
|
1483
|
-
*/
|
|
1484
|
-
async tFeeBPS() {
|
|
1485
|
-
return this.contract.read.tFeeBPS();
|
|
1486
|
-
}
|
|
1487
|
-
/**
|
|
1488
|
-
* taxAddress
|
|
1489
|
-
* view
|
|
1490
|
-
*/
|
|
1491
|
-
async taxAddress() {
|
|
1492
|
-
return this.contract.read.taxAddress();
|
|
1493
|
-
}
|
|
1494
|
-
/**
|
|
1495
|
-
* taxBPS
|
|
1496
|
-
* view
|
|
1497
|
-
*/
|
|
1498
|
-
async taxBPS() {
|
|
1499
|
-
return this.contract.read.taxBPS();
|
|
1500
|
-
}
|
|
1501
|
-
/**
|
|
1502
|
-
* tokenFromReflection
|
|
1503
|
-
* view
|
|
1504
|
-
*/
|
|
1505
|
-
async tokenFromReflection(rAmount) {
|
|
1506
|
-
return this.contract.read.tokenFromReflection([rAmount]);
|
|
1507
|
-
}
|
|
1508
696
|
/**
|
|
1509
697
|
* totalSupply
|
|
1510
698
|
* view
|
|
@@ -1524,70 +712,48 @@ class DefiTokenFixedSupply_json {
|
|
|
1524
712
|
return this.contract.write.approve([spender, amount], options);
|
|
1525
713
|
}
|
|
1526
714
|
/**
|
|
1527
|
-
*
|
|
1528
|
-
* nonpayable
|
|
1529
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1530
|
-
*/
|
|
1531
|
-
async burn(amount, options) {
|
|
1532
|
-
if (!this.contract.write) {
|
|
1533
|
-
throw new Error('Wallet client is required for write operations');
|
|
1534
|
-
}
|
|
1535
|
-
return this.contract.write.burn([amount], options);
|
|
1536
|
-
}
|
|
1537
|
-
/**
|
|
1538
|
-
* decreaseAllowance
|
|
1539
|
-
* nonpayable
|
|
1540
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1541
|
-
*/
|
|
1542
|
-
async decreaseAllowance(spender, subtractedValue, options) {
|
|
1543
|
-
if (!this.contract.write) {
|
|
1544
|
-
throw new Error('Wallet client is required for write operations');
|
|
1545
|
-
}
|
|
1546
|
-
return this.contract.write.decreaseAllowance([spender, subtractedValue], options);
|
|
1547
|
-
}
|
|
1548
|
-
/**
|
|
1549
|
-
* excludeFromFeesAndLimits
|
|
715
|
+
* blockAccount
|
|
1550
716
|
* nonpayable
|
|
1551
717
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1552
718
|
*/
|
|
1553
|
-
async
|
|
719
|
+
async blockAccount(_account, options) {
|
|
1554
720
|
if (!this.contract.write) {
|
|
1555
721
|
throw new Error('Wallet client is required for write operations');
|
|
1556
722
|
}
|
|
1557
|
-
return this.contract.write.
|
|
723
|
+
return this.contract.write.blockAccount([_account], options);
|
|
1558
724
|
}
|
|
1559
725
|
/**
|
|
1560
|
-
*
|
|
726
|
+
* burn
|
|
1561
727
|
* nonpayable
|
|
1562
728
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1563
729
|
*/
|
|
1564
|
-
async
|
|
730
|
+
async burn(amount, options) {
|
|
1565
731
|
if (!this.contract.write) {
|
|
1566
732
|
throw new Error('Wallet client is required for write operations');
|
|
1567
733
|
}
|
|
1568
|
-
return this.contract.write.
|
|
734
|
+
return this.contract.write.burn([amount], options);
|
|
1569
735
|
}
|
|
1570
736
|
/**
|
|
1571
|
-
*
|
|
737
|
+
* burnFrom
|
|
1572
738
|
* nonpayable
|
|
1573
739
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1574
740
|
*/
|
|
1575
|
-
async
|
|
741
|
+
async burnFrom(account, amount, options) {
|
|
1576
742
|
if (!this.contract.write) {
|
|
1577
743
|
throw new Error('Wallet client is required for write operations');
|
|
1578
744
|
}
|
|
1579
|
-
return this.contract.write.
|
|
745
|
+
return this.contract.write.burnFrom([account, amount], options);
|
|
1580
746
|
}
|
|
1581
747
|
/**
|
|
1582
|
-
*
|
|
748
|
+
* decreaseAllowance
|
|
1583
749
|
* nonpayable
|
|
1584
750
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1585
751
|
*/
|
|
1586
|
-
async
|
|
752
|
+
async decreaseAllowance(spender, subtractedValue, options) {
|
|
1587
753
|
if (!this.contract.write) {
|
|
1588
754
|
throw new Error('Wallet client is required for write operations');
|
|
1589
755
|
}
|
|
1590
|
-
return this.contract.write.
|
|
756
|
+
return this.contract.write.decreaseAllowance([spender, subtractedValue], options);
|
|
1591
757
|
}
|
|
1592
758
|
/**
|
|
1593
759
|
* increaseAllowance
|
|
@@ -1601,103 +767,103 @@ class DefiTokenFixedSupply_json {
|
|
|
1601
767
|
return this.contract.write.increaseAllowance([spender, addedValue], options);
|
|
1602
768
|
}
|
|
1603
769
|
/**
|
|
1604
|
-
*
|
|
770
|
+
* initialize
|
|
1605
771
|
* nonpayable
|
|
1606
772
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1607
773
|
*/
|
|
1608
|
-
async
|
|
774
|
+
async initialize(_owner, _name, _symbol, _decimals, _initialSupply, _maxSupply, options) {
|
|
1609
775
|
if (!this.contract.write) {
|
|
1610
776
|
throw new Error('Wallet client is required for write operations');
|
|
1611
777
|
}
|
|
1612
|
-
return this.contract.write.
|
|
778
|
+
return this.contract.write.initialize([_owner, _name, _symbol, _decimals, _initialSupply, _maxSupply], options);
|
|
1613
779
|
}
|
|
1614
780
|
/**
|
|
1615
|
-
*
|
|
781
|
+
* mint
|
|
1616
782
|
* nonpayable
|
|
1617
783
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1618
784
|
*/
|
|
1619
|
-
async
|
|
785
|
+
async mint(to, amount, options) {
|
|
1620
786
|
if (!this.contract.write) {
|
|
1621
787
|
throw new Error('Wallet client is required for write operations');
|
|
1622
788
|
}
|
|
1623
|
-
return this.contract.write.
|
|
789
|
+
return this.contract.write.mint([to, amount], options);
|
|
1624
790
|
}
|
|
1625
791
|
/**
|
|
1626
|
-
*
|
|
792
|
+
* pause
|
|
1627
793
|
* nonpayable
|
|
1628
794
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1629
795
|
*/
|
|
1630
|
-
async
|
|
796
|
+
async pause(options) {
|
|
1631
797
|
if (!this.contract.write) {
|
|
1632
798
|
throw new Error('Wallet client is required for write operations');
|
|
1633
799
|
}
|
|
1634
|
-
return this.contract.write.
|
|
800
|
+
return this.contract.write.pause(options);
|
|
1635
801
|
}
|
|
1636
802
|
/**
|
|
1637
|
-
*
|
|
803
|
+
* renounceOwnership
|
|
1638
804
|
* nonpayable
|
|
1639
805
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1640
806
|
*/
|
|
1641
|
-
async
|
|
807
|
+
async renounceOwnership(options) {
|
|
1642
808
|
if (!this.contract.write) {
|
|
1643
809
|
throw new Error('Wallet client is required for write operations');
|
|
1644
810
|
}
|
|
1645
|
-
return this.contract.write.
|
|
811
|
+
return this.contract.write.renounceOwnership(options);
|
|
1646
812
|
}
|
|
1647
813
|
/**
|
|
1648
|
-
*
|
|
814
|
+
* transfer
|
|
1649
815
|
* nonpayable
|
|
1650
816
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1651
817
|
*/
|
|
1652
|
-
async
|
|
818
|
+
async transfer(to, amount, options) {
|
|
1653
819
|
if (!this.contract.write) {
|
|
1654
820
|
throw new Error('Wallet client is required for write operations');
|
|
1655
821
|
}
|
|
1656
|
-
return this.contract.write.
|
|
822
|
+
return this.contract.write.transfer([to, amount], options);
|
|
1657
823
|
}
|
|
1658
824
|
/**
|
|
1659
|
-
*
|
|
825
|
+
* transferFrom
|
|
1660
826
|
* nonpayable
|
|
1661
827
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1662
828
|
*/
|
|
1663
|
-
async
|
|
829
|
+
async transferFrom(from, to, amount, options) {
|
|
1664
830
|
if (!this.contract.write) {
|
|
1665
831
|
throw new Error('Wallet client is required for write operations');
|
|
1666
832
|
}
|
|
1667
|
-
return this.contract.write.
|
|
833
|
+
return this.contract.write.transferFrom([from, to, amount], options);
|
|
1668
834
|
}
|
|
1669
835
|
/**
|
|
1670
|
-
*
|
|
836
|
+
* transferOwnership
|
|
1671
837
|
* nonpayable
|
|
1672
838
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1673
839
|
*/
|
|
1674
|
-
async
|
|
840
|
+
async transferOwnership(newOwner, options) {
|
|
1675
841
|
if (!this.contract.write) {
|
|
1676
842
|
throw new Error('Wallet client is required for write operations');
|
|
1677
843
|
}
|
|
1678
|
-
return this.contract.write.
|
|
844
|
+
return this.contract.write.transferOwnership([newOwner], options);
|
|
1679
845
|
}
|
|
1680
846
|
/**
|
|
1681
|
-
*
|
|
847
|
+
* unblockAccount
|
|
1682
848
|
* nonpayable
|
|
1683
849
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1684
850
|
*/
|
|
1685
|
-
async
|
|
851
|
+
async unblockAccount(_account, options) {
|
|
1686
852
|
if (!this.contract.write) {
|
|
1687
853
|
throw new Error('Wallet client is required for write operations');
|
|
1688
854
|
}
|
|
1689
|
-
return this.contract.write.
|
|
855
|
+
return this.contract.write.unblockAccount([_account], options);
|
|
1690
856
|
}
|
|
1691
857
|
/**
|
|
1692
|
-
*
|
|
858
|
+
* unpause
|
|
1693
859
|
* nonpayable
|
|
1694
860
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1695
861
|
*/
|
|
1696
|
-
async
|
|
862
|
+
async unpause(options) {
|
|
1697
863
|
if (!this.contract.write) {
|
|
1698
864
|
throw new Error('Wallet client is required for write operations');
|
|
1699
865
|
}
|
|
1700
|
-
return this.contract.write.
|
|
866
|
+
return this.contract.write.unpause(options);
|
|
1701
867
|
}
|
|
1702
868
|
/**
|
|
1703
869
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -1722,52 +888,36 @@ class DefiTokenFixedSupply_json {
|
|
|
1722
888
|
return contract.simulate.approve([spender, amount], options);
|
|
1723
889
|
},
|
|
1724
890
|
/**
|
|
1725
|
-
* Simulate
|
|
1726
|
-
* Returns gas estimate and result without sending transaction
|
|
1727
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1728
|
-
*/
|
|
1729
|
-
async burn(amount, options) {
|
|
1730
|
-
return contract.simulate.burn([amount], options);
|
|
1731
|
-
},
|
|
1732
|
-
/**
|
|
1733
|
-
* Simulate decreaseAllowance
|
|
1734
|
-
* Returns gas estimate and result without sending transaction
|
|
1735
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1736
|
-
*/
|
|
1737
|
-
async decreaseAllowance(spender, subtractedValue, options) {
|
|
1738
|
-
return contract.simulate.decreaseAllowance([spender, subtractedValue], options);
|
|
1739
|
-
},
|
|
1740
|
-
/**
|
|
1741
|
-
* Simulate excludeFromFeesAndLimits
|
|
891
|
+
* Simulate blockAccount
|
|
1742
892
|
* Returns gas estimate and result without sending transaction
|
|
1743
893
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1744
894
|
*/
|
|
1745
|
-
async
|
|
1746
|
-
return contract.simulate.
|
|
895
|
+
async blockAccount(_account, options) {
|
|
896
|
+
return contract.simulate.blockAccount([_account], options);
|
|
1747
897
|
},
|
|
1748
898
|
/**
|
|
1749
|
-
* Simulate
|
|
899
|
+
* Simulate burn
|
|
1750
900
|
* Returns gas estimate and result without sending transaction
|
|
1751
901
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1752
902
|
*/
|
|
1753
|
-
async
|
|
1754
|
-
return contract.simulate.
|
|
903
|
+
async burn(amount, options) {
|
|
904
|
+
return contract.simulate.burn([amount], options);
|
|
1755
905
|
},
|
|
1756
906
|
/**
|
|
1757
|
-
* Simulate
|
|
907
|
+
* Simulate burnFrom
|
|
1758
908
|
* Returns gas estimate and result without sending transaction
|
|
1759
909
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1760
910
|
*/
|
|
1761
|
-
async
|
|
1762
|
-
return contract.simulate.
|
|
911
|
+
async burnFrom(account, amount, options) {
|
|
912
|
+
return contract.simulate.burnFrom([account, amount], options);
|
|
1763
913
|
},
|
|
1764
914
|
/**
|
|
1765
|
-
* Simulate
|
|
915
|
+
* Simulate decreaseAllowance
|
|
1766
916
|
* Returns gas estimate and result without sending transaction
|
|
1767
917
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1768
918
|
*/
|
|
1769
|
-
async
|
|
1770
|
-
return contract.simulate.
|
|
919
|
+
async decreaseAllowance(spender, subtractedValue, options) {
|
|
920
|
+
return contract.simulate.decreaseAllowance([spender, subtractedValue], options);
|
|
1771
921
|
},
|
|
1772
922
|
/**
|
|
1773
923
|
* Simulate increaseAllowance
|
|
@@ -1778,76 +928,76 @@ class DefiTokenFixedSupply_json {
|
|
|
1778
928
|
return contract.simulate.increaseAllowance([spender, addedValue], options);
|
|
1779
929
|
},
|
|
1780
930
|
/**
|
|
1781
|
-
* Simulate
|
|
931
|
+
* Simulate initialize
|
|
1782
932
|
* Returns gas estimate and result without sending transaction
|
|
1783
933
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1784
934
|
*/
|
|
1785
|
-
async
|
|
1786
|
-
return contract.simulate.
|
|
935
|
+
async initialize(_owner, _name, _symbol, _decimals, _initialSupply, _maxSupply, options) {
|
|
936
|
+
return contract.simulate.initialize([_owner, _name, _symbol, _decimals, _initialSupply, _maxSupply], options);
|
|
1787
937
|
},
|
|
1788
938
|
/**
|
|
1789
|
-
* Simulate
|
|
939
|
+
* Simulate mint
|
|
1790
940
|
* Returns gas estimate and result without sending transaction
|
|
1791
941
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1792
942
|
*/
|
|
1793
|
-
async
|
|
1794
|
-
return contract.simulate.
|
|
943
|
+
async mint(to, amount, options) {
|
|
944
|
+
return contract.simulate.mint([to, amount], options);
|
|
1795
945
|
},
|
|
1796
946
|
/**
|
|
1797
|
-
* Simulate
|
|
947
|
+
* Simulate pause
|
|
1798
948
|
* Returns gas estimate and result without sending transaction
|
|
1799
949
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1800
950
|
*/
|
|
1801
|
-
async
|
|
1802
|
-
return contract.simulate.
|
|
951
|
+
async pause(options) {
|
|
952
|
+
return contract.simulate.pause(options);
|
|
1803
953
|
},
|
|
1804
954
|
/**
|
|
1805
|
-
* Simulate
|
|
955
|
+
* Simulate renounceOwnership
|
|
1806
956
|
* Returns gas estimate and result without sending transaction
|
|
1807
957
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1808
958
|
*/
|
|
1809
|
-
async
|
|
1810
|
-
return contract.simulate.
|
|
959
|
+
async renounceOwnership(options) {
|
|
960
|
+
return contract.simulate.renounceOwnership(options);
|
|
1811
961
|
},
|
|
1812
962
|
/**
|
|
1813
|
-
* Simulate
|
|
963
|
+
* Simulate transfer
|
|
1814
964
|
* Returns gas estimate and result without sending transaction
|
|
1815
965
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1816
966
|
*/
|
|
1817
|
-
async
|
|
1818
|
-
return contract.simulate.
|
|
967
|
+
async transfer(to, amount, options) {
|
|
968
|
+
return contract.simulate.transfer([to, amount], options);
|
|
1819
969
|
},
|
|
1820
970
|
/**
|
|
1821
|
-
* Simulate
|
|
971
|
+
* Simulate transferFrom
|
|
1822
972
|
* Returns gas estimate and result without sending transaction
|
|
1823
973
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1824
974
|
*/
|
|
1825
|
-
async
|
|
1826
|
-
return contract.simulate.
|
|
975
|
+
async transferFrom(from, to, amount, options) {
|
|
976
|
+
return contract.simulate.transferFrom([from, to, amount], options);
|
|
1827
977
|
},
|
|
1828
978
|
/**
|
|
1829
|
-
* Simulate
|
|
979
|
+
* Simulate transferOwnership
|
|
1830
980
|
* Returns gas estimate and result without sending transaction
|
|
1831
981
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1832
982
|
*/
|
|
1833
|
-
async
|
|
1834
|
-
return contract.simulate.
|
|
983
|
+
async transferOwnership(newOwner, options) {
|
|
984
|
+
return contract.simulate.transferOwnership([newOwner], options);
|
|
1835
985
|
},
|
|
1836
986
|
/**
|
|
1837
|
-
* Simulate
|
|
987
|
+
* Simulate unblockAccount
|
|
1838
988
|
* Returns gas estimate and result without sending transaction
|
|
1839
989
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1840
990
|
*/
|
|
1841
|
-
async
|
|
1842
|
-
return contract.simulate.
|
|
991
|
+
async unblockAccount(_account, options) {
|
|
992
|
+
return contract.simulate.unblockAccount([_account], options);
|
|
1843
993
|
},
|
|
1844
994
|
/**
|
|
1845
|
-
* Simulate
|
|
995
|
+
* Simulate unpause
|
|
1846
996
|
* Returns gas estimate and result without sending transaction
|
|
1847
997
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1848
998
|
*/
|
|
1849
|
-
async
|
|
1850
|
-
return contract.simulate.
|
|
999
|
+
async unpause(options) {
|
|
1000
|
+
return contract.simulate.unpause(options);
|
|
1851
1001
|
}
|
|
1852
1002
|
};
|
|
1853
1003
|
}
|
|
@@ -1874,7 +1024,7 @@ class DefiTokenFixedSupply_json {
|
|
|
1874
1024
|
Approval: (callback, filter) => {
|
|
1875
1025
|
return this.publicClient.watchContractEvent({
|
|
1876
1026
|
address: this.contractAddress,
|
|
1877
|
-
abi: exports.
|
|
1027
|
+
abi: exports.EssentialToken_jsonAbi,
|
|
1878
1028
|
eventName: 'Approval',
|
|
1879
1029
|
args: filter,
|
|
1880
1030
|
onLogs: (logs) => {
|
|
@@ -1885,72 +1035,16 @@ class DefiTokenFixedSupply_json {
|
|
|
1885
1035
|
});
|
|
1886
1036
|
},
|
|
1887
1037
|
/**
|
|
1888
|
-
* Watch
|
|
1889
|
-
* @param callback Function to call when event is emitted
|
|
1890
|
-
* @param filter Optional filter for indexed parameters
|
|
1891
|
-
* @returns Unwatch function to stop listening
|
|
1892
|
-
*/
|
|
1893
|
-
DeflationConfigSet: (callback, filter) => {
|
|
1894
|
-
return this.publicClient.watchContractEvent({
|
|
1895
|
-
address: this.contractAddress,
|
|
1896
|
-
abi: exports.DefiTokenFixedSupply_jsonAbi,
|
|
1897
|
-
eventName: 'DeflationConfigSet',
|
|
1898
|
-
args: filter,
|
|
1899
|
-
onLogs: (logs) => {
|
|
1900
|
-
logs.forEach((log) => {
|
|
1901
|
-
callback(log.args);
|
|
1902
|
-
});
|
|
1903
|
-
},
|
|
1904
|
-
});
|
|
1905
|
-
},
|
|
1906
|
-
/**
|
|
1907
|
-
* Watch DocumentUriSet events
|
|
1908
|
-
* @param callback Function to call when event is emitted
|
|
1909
|
-
* @param filter Optional filter for indexed parameters
|
|
1910
|
-
* @returns Unwatch function to stop listening
|
|
1911
|
-
*/
|
|
1912
|
-
DocumentUriSet: (callback) => {
|
|
1913
|
-
return this.publicClient.watchContractEvent({
|
|
1914
|
-
address: this.contractAddress,
|
|
1915
|
-
abi: exports.DefiTokenFixedSupply_jsonAbi,
|
|
1916
|
-
eventName: 'DocumentUriSet',
|
|
1917
|
-
onLogs: (logs) => {
|
|
1918
|
-
logs.forEach((log) => {
|
|
1919
|
-
callback(log.args);
|
|
1920
|
-
});
|
|
1921
|
-
},
|
|
1922
|
-
});
|
|
1923
|
-
},
|
|
1924
|
-
/**
|
|
1925
|
-
* Watch ExcludeFromFeesAndLimits events
|
|
1926
|
-
* @param callback Function to call when event is emitted
|
|
1927
|
-
* @param filter Optional filter for indexed parameters
|
|
1928
|
-
* @returns Unwatch function to stop listening
|
|
1929
|
-
*/
|
|
1930
|
-
ExcludeFromFeesAndLimits: (callback, filter) => {
|
|
1931
|
-
return this.publicClient.watchContractEvent({
|
|
1932
|
-
address: this.contractAddress,
|
|
1933
|
-
abi: exports.DefiTokenFixedSupply_jsonAbi,
|
|
1934
|
-
eventName: 'ExcludeFromFeesAndLimits',
|
|
1935
|
-
args: filter,
|
|
1936
|
-
onLogs: (logs) => {
|
|
1937
|
-
logs.forEach((log) => {
|
|
1938
|
-
callback(log.args);
|
|
1939
|
-
});
|
|
1940
|
-
},
|
|
1941
|
-
});
|
|
1942
|
-
},
|
|
1943
|
-
/**
|
|
1944
|
-
* Watch ExcludedFromRewards events
|
|
1038
|
+
* Watch BlockedAccount events
|
|
1945
1039
|
* @param callback Function to call when event is emitted
|
|
1946
1040
|
* @param filter Optional filter for indexed parameters
|
|
1947
1041
|
* @returns Unwatch function to stop listening
|
|
1948
1042
|
*/
|
|
1949
|
-
|
|
1043
|
+
BlockedAccount: (callback, filter) => {
|
|
1950
1044
|
return this.publicClient.watchContractEvent({
|
|
1951
1045
|
address: this.contractAddress,
|
|
1952
|
-
abi: exports.
|
|
1953
|
-
eventName: '
|
|
1046
|
+
abi: exports.EssentialToken_jsonAbi,
|
|
1047
|
+
eventName: 'BlockedAccount',
|
|
1954
1048
|
args: filter,
|
|
1955
1049
|
onLogs: (logs) => {
|
|
1956
1050
|
logs.forEach((log) => {
|
|
@@ -1960,17 +1054,16 @@ class DefiTokenFixedSupply_json {
|
|
|
1960
1054
|
});
|
|
1961
1055
|
},
|
|
1962
1056
|
/**
|
|
1963
|
-
* Watch
|
|
1057
|
+
* Watch Initialized events
|
|
1964
1058
|
* @param callback Function to call when event is emitted
|
|
1965
1059
|
* @param filter Optional filter for indexed parameters
|
|
1966
1060
|
* @returns Unwatch function to stop listening
|
|
1967
1061
|
*/
|
|
1968
|
-
|
|
1062
|
+
Initialized: (callback) => {
|
|
1969
1063
|
return this.publicClient.watchContractEvent({
|
|
1970
1064
|
address: this.contractAddress,
|
|
1971
|
-
abi: exports.
|
|
1972
|
-
eventName: '
|
|
1973
|
-
args: filter,
|
|
1065
|
+
abi: exports.EssentialToken_jsonAbi,
|
|
1066
|
+
eventName: 'Initialized',
|
|
1974
1067
|
onLogs: (logs) => {
|
|
1975
1068
|
logs.forEach((log) => {
|
|
1976
1069
|
callback(log.args);
|
|
@@ -1979,16 +1072,16 @@ class DefiTokenFixedSupply_json {
|
|
|
1979
1072
|
});
|
|
1980
1073
|
},
|
|
1981
1074
|
/**
|
|
1982
|
-
* Watch
|
|
1075
|
+
* Watch OwnershipTransferred events
|
|
1983
1076
|
* @param callback Function to call when event is emitted
|
|
1984
1077
|
* @param filter Optional filter for indexed parameters
|
|
1985
1078
|
* @returns Unwatch function to stop listening
|
|
1986
1079
|
*/
|
|
1987
|
-
|
|
1080
|
+
OwnershipTransferred: (callback, filter) => {
|
|
1988
1081
|
return this.publicClient.watchContractEvent({
|
|
1989
1082
|
address: this.contractAddress,
|
|
1990
|
-
abi: exports.
|
|
1991
|
-
eventName: '
|
|
1083
|
+
abi: exports.EssentialToken_jsonAbi,
|
|
1084
|
+
eventName: 'OwnershipTransferred',
|
|
1992
1085
|
args: filter,
|
|
1993
1086
|
onLogs: (logs) => {
|
|
1994
1087
|
logs.forEach((log) => {
|
|
@@ -1998,35 +1091,16 @@ class DefiTokenFixedSupply_json {
|
|
|
1998
1091
|
});
|
|
1999
1092
|
},
|
|
2000
1093
|
/**
|
|
2001
|
-
* Watch
|
|
2002
|
-
* @param callback Function to call when event is emitted
|
|
2003
|
-
* @param filter Optional filter for indexed parameters
|
|
2004
|
-
* @returns Unwatch function to stop listening
|
|
2005
|
-
*/
|
|
2006
|
-
MaxTokenAmountPerSet: (callback) => {
|
|
2007
|
-
return this.publicClient.watchContractEvent({
|
|
2008
|
-
address: this.contractAddress,
|
|
2009
|
-
abi: exports.DefiTokenFixedSupply_jsonAbi,
|
|
2010
|
-
eventName: 'MaxTokenAmountPerSet',
|
|
2011
|
-
onLogs: (logs) => {
|
|
2012
|
-
logs.forEach((log) => {
|
|
2013
|
-
callback(log.args);
|
|
2014
|
-
});
|
|
2015
|
-
},
|
|
2016
|
-
});
|
|
2017
|
-
},
|
|
2018
|
-
/**
|
|
2019
|
-
* Watch OwnershipTransferred events
|
|
1094
|
+
* Watch Paused events
|
|
2020
1095
|
* @param callback Function to call when event is emitted
|
|
2021
1096
|
* @param filter Optional filter for indexed parameters
|
|
2022
1097
|
* @returns Unwatch function to stop listening
|
|
2023
1098
|
*/
|
|
2024
|
-
|
|
1099
|
+
Paused: (callback) => {
|
|
2025
1100
|
return this.publicClient.watchContractEvent({
|
|
2026
1101
|
address: this.contractAddress,
|
|
2027
|
-
abi: exports.
|
|
2028
|
-
eventName: '
|
|
2029
|
-
args: filter,
|
|
1102
|
+
abi: exports.EssentialToken_jsonAbi,
|
|
1103
|
+
eventName: 'Paused',
|
|
2030
1104
|
onLogs: (logs) => {
|
|
2031
1105
|
logs.forEach((log) => {
|
|
2032
1106
|
callback(log.args);
|
|
@@ -2035,16 +1109,16 @@ class DefiTokenFixedSupply_json {
|
|
|
2035
1109
|
});
|
|
2036
1110
|
},
|
|
2037
1111
|
/**
|
|
2038
|
-
* Watch
|
|
1112
|
+
* Watch Transfer events
|
|
2039
1113
|
* @param callback Function to call when event is emitted
|
|
2040
1114
|
* @param filter Optional filter for indexed parameters
|
|
2041
1115
|
* @returns Unwatch function to stop listening
|
|
2042
1116
|
*/
|
|
2043
|
-
|
|
1117
|
+
Transfer: (callback, filter) => {
|
|
2044
1118
|
return this.publicClient.watchContractEvent({
|
|
2045
1119
|
address: this.contractAddress,
|
|
2046
|
-
abi: exports.
|
|
2047
|
-
eventName: '
|
|
1120
|
+
abi: exports.EssentialToken_jsonAbi,
|
|
1121
|
+
eventName: 'Transfer',
|
|
2048
1122
|
args: filter,
|
|
2049
1123
|
onLogs: (logs) => {
|
|
2050
1124
|
logs.forEach((log) => {
|
|
@@ -2054,16 +1128,16 @@ class DefiTokenFixedSupply_json {
|
|
|
2054
1128
|
});
|
|
2055
1129
|
},
|
|
2056
1130
|
/**
|
|
2057
|
-
* Watch
|
|
1131
|
+
* Watch UnblockedAccount events
|
|
2058
1132
|
* @param callback Function to call when event is emitted
|
|
2059
1133
|
* @param filter Optional filter for indexed parameters
|
|
2060
1134
|
* @returns Unwatch function to stop listening
|
|
2061
1135
|
*/
|
|
2062
|
-
|
|
1136
|
+
UnblockedAccount: (callback, filter) => {
|
|
2063
1137
|
return this.publicClient.watchContractEvent({
|
|
2064
1138
|
address: this.contractAddress,
|
|
2065
|
-
abi: exports.
|
|
2066
|
-
eventName: '
|
|
1139
|
+
abi: exports.EssentialToken_jsonAbi,
|
|
1140
|
+
eventName: 'UnblockedAccount',
|
|
2067
1141
|
args: filter,
|
|
2068
1142
|
onLogs: (logs) => {
|
|
2069
1143
|
logs.forEach((log) => {
|
|
@@ -2073,17 +1147,16 @@ class DefiTokenFixedSupply_json {
|
|
|
2073
1147
|
});
|
|
2074
1148
|
},
|
|
2075
1149
|
/**
|
|
2076
|
-
* Watch
|
|
1150
|
+
* Watch Unpaused events
|
|
2077
1151
|
* @param callback Function to call when event is emitted
|
|
2078
1152
|
* @param filter Optional filter for indexed parameters
|
|
2079
1153
|
* @returns Unwatch function to stop listening
|
|
2080
1154
|
*/
|
|
2081
|
-
|
|
1155
|
+
Unpaused: (callback) => {
|
|
2082
1156
|
return this.publicClient.watchContractEvent({
|
|
2083
1157
|
address: this.contractAddress,
|
|
2084
|
-
abi: exports.
|
|
2085
|
-
eventName: '
|
|
2086
|
-
args: filter,
|
|
1158
|
+
abi: exports.EssentialToken_jsonAbi,
|
|
1159
|
+
eventName: 'Unpaused',
|
|
2087
1160
|
onLogs: (logs) => {
|
|
2088
1161
|
logs.forEach((log) => {
|
|
2089
1162
|
callback(log.args);
|
|
@@ -2094,4 +1167,4 @@ class DefiTokenFixedSupply_json {
|
|
|
2094
1167
|
};
|
|
2095
1168
|
}
|
|
2096
1169
|
}
|
|
2097
|
-
exports.
|
|
1170
|
+
exports.EssentialToken_json = EssentialToken_json;
|