@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,257 +1,17 @@
|
|
|
1
1
|
import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* DefiTokenFixedSupply.ERC20ConfigProps struct type
|
|
7
|
-
*/
|
|
8
|
-
export type DefiTokenFixedSupply_ERC20ConfigProps = {
|
|
9
|
-
_isBurnable: boolean;
|
|
10
|
-
_isDocumentAllowed: boolean;
|
|
11
|
-
_isMaxAmountOfTokensSet: boolean;
|
|
12
|
-
_isTaxable: boolean;
|
|
13
|
-
_isDeflationary: boolean;
|
|
14
|
-
_isReflective: boolean;
|
|
15
|
-
};
|
|
16
4
|
/**
|
|
17
|
-
*
|
|
5
|
+
* EssentialToken_json ABI
|
|
18
6
|
*
|
|
19
7
|
* This ABI is typed using viem's type system for full type safety.
|
|
20
8
|
*/
|
|
21
|
-
export const
|
|
9
|
+
export const EssentialToken_jsonAbi = [
|
|
22
10
|
{
|
|
23
|
-
"inputs": [
|
|
24
|
-
{
|
|
25
|
-
"internalType": "string",
|
|
26
|
-
"name": "name_",
|
|
27
|
-
"type": "string"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"internalType": "string",
|
|
31
|
-
"name": "symbol_",
|
|
32
|
-
"type": "string"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"internalType": "uint256",
|
|
36
|
-
"name": "initialSupplyToSet",
|
|
37
|
-
"type": "uint256"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"internalType": "uint8",
|
|
41
|
-
"name": "decimalsToSet",
|
|
42
|
-
"type": "uint8"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"internalType": "address",
|
|
46
|
-
"name": "tokenOwner",
|
|
47
|
-
"type": "address"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"components": [
|
|
51
|
-
{
|
|
52
|
-
"internalType": "bool",
|
|
53
|
-
"name": "_isBurnable",
|
|
54
|
-
"type": "bool"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"internalType": "bool",
|
|
58
|
-
"name": "_isDocumentAllowed",
|
|
59
|
-
"type": "bool"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"internalType": "bool",
|
|
63
|
-
"name": "_isMaxAmountOfTokensSet",
|
|
64
|
-
"type": "bool"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"internalType": "bool",
|
|
68
|
-
"name": "_isTaxable",
|
|
69
|
-
"type": "bool"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"internalType": "bool",
|
|
73
|
-
"name": "_isDeflationary",
|
|
74
|
-
"type": "bool"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"internalType": "bool",
|
|
78
|
-
"name": "_isReflective",
|
|
79
|
-
"type": "bool"
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"internalType": "struct DefiTokenFixedSupply.ERC20ConfigProps",
|
|
83
|
-
"name": "customConfigProps",
|
|
84
|
-
"type": "tuple"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"internalType": "string",
|
|
88
|
-
"name": "newDocumentUri",
|
|
89
|
-
"type": "string"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"internalType": "address",
|
|
93
|
-
"name": "_taxAddress",
|
|
94
|
-
"type": "address"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"internalType": "uint256[3]",
|
|
98
|
-
"name": "bpsParams",
|
|
99
|
-
"type": "uint256[3]"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"internalType": "uint256[1]",
|
|
103
|
-
"name": "amountParams",
|
|
104
|
-
"type": "uint256[1]"
|
|
105
|
-
}
|
|
106
|
-
],
|
|
11
|
+
"inputs": [],
|
|
107
12
|
"stateMutability": "nonpayable",
|
|
108
13
|
"type": "constructor"
|
|
109
14
|
},
|
|
110
|
-
{
|
|
111
|
-
"inputs": [],
|
|
112
|
-
"name": "AlreadyExcludedFromFeesAndLimits",
|
|
113
|
-
"type": "error"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"inputs": [],
|
|
117
|
-
"name": "AlreadyExcludedFromRewards",
|
|
118
|
-
"type": "error"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"inputs": [],
|
|
122
|
-
"name": "AlreadyIncludedInFeesAndLimits",
|
|
123
|
-
"type": "error"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"inputs": [],
|
|
127
|
-
"name": "AlreadyIncludedInRewards",
|
|
128
|
-
"type": "error"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"inputs": [],
|
|
132
|
-
"name": "BurningNotEnabled",
|
|
133
|
-
"type": "error"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"inputs": [
|
|
137
|
-
{
|
|
138
|
-
"internalType": "address",
|
|
139
|
-
"name": "addr",
|
|
140
|
-
"type": "address"
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
"name": "DestBalanceExceedsMaxAllowed",
|
|
144
|
-
"type": "error"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"inputs": [],
|
|
148
|
-
"name": "DocumentUriNotAllowed",
|
|
149
|
-
"type": "error"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"inputs": [
|
|
153
|
-
{
|
|
154
|
-
"internalType": "address",
|
|
155
|
-
"name": "recipient",
|
|
156
|
-
"type": "address"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"internalType": "uint256",
|
|
160
|
-
"name": "fromBalance",
|
|
161
|
-
"type": "uint256"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"internalType": "uint256",
|
|
165
|
-
"name": "balance",
|
|
166
|
-
"type": "uint256"
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
"name": "ERC20InsufficientBalance",
|
|
170
|
-
"type": "error"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"inputs": [
|
|
174
|
-
{
|
|
175
|
-
"internalType": "uint8",
|
|
176
|
-
"name": "decimals",
|
|
177
|
-
"type": "uint8"
|
|
178
|
-
}
|
|
179
|
-
],
|
|
180
|
-
"name": "InvalidDecimals",
|
|
181
|
-
"type": "error"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"inputs": [
|
|
185
|
-
{
|
|
186
|
-
"internalType": "uint256",
|
|
187
|
-
"name": "maxTokenAmount",
|
|
188
|
-
"type": "uint256"
|
|
189
|
-
}
|
|
190
|
-
],
|
|
191
|
-
"name": "InvalidMaxTokenAmount",
|
|
192
|
-
"type": "error"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"inputs": [],
|
|
196
|
-
"name": "InvalidReflectiveConfig",
|
|
197
|
-
"type": "error"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"inputs": [
|
|
201
|
-
{
|
|
202
|
-
"internalType": "uint256",
|
|
203
|
-
"name": "bps",
|
|
204
|
-
"type": "uint256"
|
|
205
|
-
}
|
|
206
|
-
],
|
|
207
|
-
"name": "InvalidTotalBPS",
|
|
208
|
-
"type": "error"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"inputs": [],
|
|
212
|
-
"name": "MaxTokenAmountNotAllowed",
|
|
213
|
-
"type": "error"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"inputs": [],
|
|
217
|
-
"name": "MaxTokenAmountPerAddrLtPrevious",
|
|
218
|
-
"type": "error"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"inputs": [],
|
|
222
|
-
"name": "ReachedMaxExclusionLimit",
|
|
223
|
-
"type": "error"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"inputs": [],
|
|
227
|
-
"name": "ReachedMaxRewardExclusionLimit",
|
|
228
|
-
"type": "error"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"inputs": [],
|
|
232
|
-
"name": "TokenIsNotDeflationary",
|
|
233
|
-
"type": "error"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"inputs": [],
|
|
237
|
-
"name": "TokenIsNotReflective",
|
|
238
|
-
"type": "error"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"inputs": [],
|
|
242
|
-
"name": "TokenIsNotTaxable",
|
|
243
|
-
"type": "error"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"inputs": [],
|
|
247
|
-
"name": "TotalReflectionTooSmall",
|
|
248
|
-
"type": "error"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"inputs": [],
|
|
252
|
-
"name": "ZeroTransferError",
|
|
253
|
-
"type": "error"
|
|
254
|
-
},
|
|
255
15
|
{
|
|
256
16
|
"anonymous": false,
|
|
257
17
|
"inputs": [
|
|
@@ -282,12 +42,12 @@ export const DefiTokenFixedSupply_jsonAbi = [
|
|
|
282
42
|
"inputs": [
|
|
283
43
|
{
|
|
284
44
|
"indexed": true,
|
|
285
|
-
"internalType": "
|
|
286
|
-
"name": "
|
|
287
|
-
"type": "
|
|
45
|
+
"internalType": "address",
|
|
46
|
+
"name": "_account",
|
|
47
|
+
"type": "address"
|
|
288
48
|
}
|
|
289
49
|
],
|
|
290
|
-
"name": "
|
|
50
|
+
"name": "BlockedAccount",
|
|
291
51
|
"type": "event"
|
|
292
52
|
},
|
|
293
53
|
{
|
|
@@ -295,12 +55,12 @@ export const DefiTokenFixedSupply_jsonAbi = [
|
|
|
295
55
|
"inputs": [
|
|
296
56
|
{
|
|
297
57
|
"indexed": false,
|
|
298
|
-
"internalType": "
|
|
299
|
-
"name": "
|
|
300
|
-
"type": "
|
|
58
|
+
"internalType": "uint8",
|
|
59
|
+
"name": "version",
|
|
60
|
+
"type": "uint8"
|
|
301
61
|
}
|
|
302
62
|
],
|
|
303
|
-
"name": "
|
|
63
|
+
"name": "Initialized",
|
|
304
64
|
"type": "event"
|
|
305
65
|
},
|
|
306
66
|
{
|
|
@@ -309,37 +69,30 @@ export const DefiTokenFixedSupply_jsonAbi = [
|
|
|
309
69
|
{
|
|
310
70
|
"indexed": true,
|
|
311
71
|
"internalType": "address",
|
|
312
|
-
"name": "
|
|
72
|
+
"name": "previousOwner",
|
|
313
73
|
"type": "address"
|
|
314
|
-
}
|
|
315
|
-
],
|
|
316
|
-
"name": "ExcludeFromFeesAndLimits",
|
|
317
|
-
"type": "event"
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"anonymous": false,
|
|
321
|
-
"inputs": [
|
|
74
|
+
},
|
|
322
75
|
{
|
|
323
76
|
"indexed": true,
|
|
324
77
|
"internalType": "address",
|
|
325
|
-
"name": "
|
|
78
|
+
"name": "newOwner",
|
|
326
79
|
"type": "address"
|
|
327
80
|
}
|
|
328
81
|
],
|
|
329
|
-
"name": "
|
|
82
|
+
"name": "OwnershipTransferred",
|
|
330
83
|
"type": "event"
|
|
331
84
|
},
|
|
332
85
|
{
|
|
333
86
|
"anonymous": false,
|
|
334
87
|
"inputs": [
|
|
335
88
|
{
|
|
336
|
-
"indexed":
|
|
89
|
+
"indexed": false,
|
|
337
90
|
"internalType": "address",
|
|
338
91
|
"name": "account",
|
|
339
92
|
"type": "address"
|
|
340
93
|
}
|
|
341
94
|
],
|
|
342
|
-
"name": "
|
|
95
|
+
"name": "Paused",
|
|
343
96
|
"type": "event"
|
|
344
97
|
},
|
|
345
98
|
{
|
|
@@ -348,24 +101,23 @@ export const DefiTokenFixedSupply_jsonAbi = [
|
|
|
348
101
|
{
|
|
349
102
|
"indexed": true,
|
|
350
103
|
"internalType": "address",
|
|
351
|
-
"name": "
|
|
104
|
+
"name": "from",
|
|
352
105
|
"type": "address"
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
"inputs": [
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"indexed": true,
|
|
109
|
+
"internalType": "address",
|
|
110
|
+
"name": "to",
|
|
111
|
+
"type": "address"
|
|
112
|
+
},
|
|
361
113
|
{
|
|
362
114
|
"indexed": false,
|
|
363
115
|
"internalType": "uint256",
|
|
364
|
-
"name": "
|
|
116
|
+
"name": "value",
|
|
365
117
|
"type": "uint256"
|
|
366
118
|
}
|
|
367
119
|
],
|
|
368
|
-
"name": "
|
|
120
|
+
"name": "Transfer",
|
|
369
121
|
"type": "event"
|
|
370
122
|
},
|
|
371
123
|
{
|
|
@@ -374,105 +126,83 @@ export const DefiTokenFixedSupply_jsonAbi = [
|
|
|
374
126
|
{
|
|
375
127
|
"indexed": true,
|
|
376
128
|
"internalType": "address",
|
|
377
|
-
"name": "
|
|
378
|
-
"type": "address"
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"indexed": true,
|
|
382
|
-
"internalType": "address",
|
|
383
|
-
"name": "newOwner",
|
|
129
|
+
"name": "_account",
|
|
384
130
|
"type": "address"
|
|
385
131
|
}
|
|
386
132
|
],
|
|
387
|
-
"name": "
|
|
133
|
+
"name": "UnblockedAccount",
|
|
388
134
|
"type": "event"
|
|
389
135
|
},
|
|
390
136
|
{
|
|
391
137
|
"anonymous": false,
|
|
392
138
|
"inputs": [
|
|
393
139
|
{
|
|
394
|
-
"indexed":
|
|
395
|
-
"internalType": "
|
|
396
|
-
"name": "
|
|
397
|
-
"type": "
|
|
140
|
+
"indexed": false,
|
|
141
|
+
"internalType": "address",
|
|
142
|
+
"name": "account",
|
|
143
|
+
"type": "address"
|
|
398
144
|
}
|
|
399
145
|
],
|
|
400
|
-
"name": "
|
|
146
|
+
"name": "Unpaused",
|
|
401
147
|
"type": "event"
|
|
402
148
|
},
|
|
403
149
|
{
|
|
404
|
-
"anonymous": false,
|
|
405
150
|
"inputs": [
|
|
406
151
|
{
|
|
407
|
-
"indexed": true,
|
|
408
152
|
"internalType": "address",
|
|
409
|
-
"name": "
|
|
153
|
+
"name": "owner",
|
|
410
154
|
"type": "address"
|
|
411
155
|
},
|
|
412
156
|
{
|
|
413
|
-
"
|
|
157
|
+
"internalType": "address",
|
|
158
|
+
"name": "spender",
|
|
159
|
+
"type": "address"
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"name": "allowance",
|
|
163
|
+
"outputs": [
|
|
164
|
+
{
|
|
414
165
|
"internalType": "uint256",
|
|
415
|
-
"name": "
|
|
166
|
+
"name": "",
|
|
416
167
|
"type": "uint256"
|
|
417
168
|
}
|
|
418
169
|
],
|
|
419
|
-
"
|
|
420
|
-
"type": "
|
|
170
|
+
"stateMutability": "view",
|
|
171
|
+
"type": "function"
|
|
421
172
|
},
|
|
422
173
|
{
|
|
423
|
-
"anonymous": false,
|
|
424
174
|
"inputs": [
|
|
425
175
|
{
|
|
426
|
-
"indexed": true,
|
|
427
|
-
"internalType": "address",
|
|
428
|
-
"name": "from",
|
|
429
|
-
"type": "address"
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
"indexed": true,
|
|
433
176
|
"internalType": "address",
|
|
434
|
-
"name": "
|
|
177
|
+
"name": "spender",
|
|
435
178
|
"type": "address"
|
|
436
179
|
},
|
|
437
180
|
{
|
|
438
|
-
"indexed": false,
|
|
439
181
|
"internalType": "uint256",
|
|
440
|
-
"name": "
|
|
182
|
+
"name": "amount",
|
|
441
183
|
"type": "uint256"
|
|
442
184
|
}
|
|
443
185
|
],
|
|
444
|
-
"name": "
|
|
445
|
-
"type": "event"
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
"inputs": [],
|
|
449
|
-
"name": "CONTRACT_HASH",
|
|
186
|
+
"name": "approve",
|
|
450
187
|
"outputs": [
|
|
451
188
|
{
|
|
452
|
-
"internalType": "
|
|
189
|
+
"internalType": "bool",
|
|
453
190
|
"name": "",
|
|
454
|
-
"type": "
|
|
191
|
+
"type": "bool"
|
|
455
192
|
}
|
|
456
193
|
],
|
|
457
|
-
"stateMutability": "
|
|
194
|
+
"stateMutability": "nonpayable",
|
|
458
195
|
"type": "function"
|
|
459
196
|
},
|
|
460
197
|
{
|
|
461
|
-
"inputs": [
|
|
462
|
-
"name": "CONTRACT_NAME",
|
|
463
|
-
"outputs": [
|
|
198
|
+
"inputs": [
|
|
464
199
|
{
|
|
465
|
-
"internalType": "
|
|
466
|
-
"name": "",
|
|
467
|
-
"type": "
|
|
200
|
+
"internalType": "address",
|
|
201
|
+
"name": "account",
|
|
202
|
+
"type": "address"
|
|
468
203
|
}
|
|
469
204
|
],
|
|
470
|
-
"
|
|
471
|
-
"type": "function"
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
"inputs": [],
|
|
475
|
-
"name": "MAX_EXCLUSION_LIMIT",
|
|
205
|
+
"name": "balanceOf",
|
|
476
206
|
"outputs": [
|
|
477
207
|
{
|
|
478
208
|
"internalType": "uint256",
|
|
@@ -484,111 +214,18 @@ export const DefiTokenFixedSupply_jsonAbi = [
|
|
|
484
214
|
"type": "function"
|
|
485
215
|
},
|
|
486
216
|
{
|
|
487
|
-
"inputs": [
|
|
488
|
-
"name": "MAX_REWARDS_EXCLUSION_LIMIT",
|
|
489
|
-
"outputs": [
|
|
490
|
-
{
|
|
491
|
-
"internalType": "uint256",
|
|
492
|
-
"name": "",
|
|
493
|
-
"type": "uint256"
|
|
494
|
-
}
|
|
495
|
-
],
|
|
496
|
-
"stateMutability": "view",
|
|
497
|
-
"type": "function"
|
|
498
|
-
},
|
|
499
|
-
{
|
|
500
|
-
"inputs": [],
|
|
501
|
-
"name": "VERSION",
|
|
502
|
-
"outputs": [
|
|
503
|
-
{
|
|
504
|
-
"internalType": "string",
|
|
505
|
-
"name": "",
|
|
506
|
-
"type": "string"
|
|
507
|
-
}
|
|
508
|
-
],
|
|
509
|
-
"stateMutability": "view",
|
|
510
|
-
"type": "function"
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
"inputs": [],
|
|
514
|
-
"name": "_tTotal",
|
|
515
|
-
"outputs": [
|
|
516
|
-
{
|
|
517
|
-
"internalType": "uint256",
|
|
518
|
-
"name": "",
|
|
519
|
-
"type": "uint256"
|
|
520
|
-
}
|
|
521
|
-
],
|
|
522
|
-
"stateMutability": "view",
|
|
523
|
-
"type": "function"
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
"inputs": [
|
|
527
|
-
{
|
|
528
|
-
"internalType": "address",
|
|
529
|
-
"name": "owner",
|
|
530
|
-
"type": "address"
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
"internalType": "address",
|
|
534
|
-
"name": "spender",
|
|
535
|
-
"type": "address"
|
|
536
|
-
}
|
|
537
|
-
],
|
|
538
|
-
"name": "allowance",
|
|
539
|
-
"outputs": [
|
|
540
|
-
{
|
|
541
|
-
"internalType": "uint256",
|
|
542
|
-
"name": "",
|
|
543
|
-
"type": "uint256"
|
|
544
|
-
}
|
|
545
|
-
],
|
|
546
|
-
"stateMutability": "view",
|
|
547
|
-
"type": "function"
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
"inputs": [
|
|
217
|
+
"inputs": [
|
|
551
218
|
{
|
|
552
219
|
"internalType": "address",
|
|
553
|
-
"name": "
|
|
220
|
+
"name": "_account",
|
|
554
221
|
"type": "address"
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
"internalType": "uint256",
|
|
558
|
-
"name": "amount",
|
|
559
|
-
"type": "uint256"
|
|
560
|
-
}
|
|
561
|
-
],
|
|
562
|
-
"name": "approve",
|
|
563
|
-
"outputs": [
|
|
564
|
-
{
|
|
565
|
-
"internalType": "bool",
|
|
566
|
-
"name": "",
|
|
567
|
-
"type": "bool"
|
|
568
222
|
}
|
|
569
223
|
],
|
|
224
|
+
"name": "blockAccount",
|
|
225
|
+
"outputs": [],
|
|
570
226
|
"stateMutability": "nonpayable",
|
|
571
227
|
"type": "function"
|
|
572
228
|
},
|
|
573
|
-
{
|
|
574
|
-
"inputs": [
|
|
575
|
-
{
|
|
576
|
-
"internalType": "address",
|
|
577
|
-
"name": "account",
|
|
578
|
-
"type": "address"
|
|
579
|
-
}
|
|
580
|
-
],
|
|
581
|
-
"name": "balanceOf",
|
|
582
|
-
"outputs": [
|
|
583
|
-
{
|
|
584
|
-
"internalType": "uint256",
|
|
585
|
-
"name": "",
|
|
586
|
-
"type": "uint256"
|
|
587
|
-
}
|
|
588
|
-
],
|
|
589
|
-
"stateMutability": "view",
|
|
590
|
-
"type": "function"
|
|
591
|
-
},
|
|
592
229
|
{
|
|
593
230
|
"inputs": [
|
|
594
231
|
{
|
|
@@ -602,426 +239,119 @@ export const DefiTokenFixedSupply_jsonAbi = [
|
|
|
602
239
|
"stateMutability": "nonpayable",
|
|
603
240
|
"type": "function"
|
|
604
241
|
},
|
|
605
|
-
{
|
|
606
|
-
"inputs": [],
|
|
607
|
-
"name": "decimals",
|
|
608
|
-
"outputs": [
|
|
609
|
-
{
|
|
610
|
-
"internalType": "uint8",
|
|
611
|
-
"name": "",
|
|
612
|
-
"type": "uint8"
|
|
613
|
-
}
|
|
614
|
-
],
|
|
615
|
-
"stateMutability": "view",
|
|
616
|
-
"type": "function"
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
"inputs": [
|
|
620
|
-
{
|
|
621
|
-
"internalType": "address",
|
|
622
|
-
"name": "spender",
|
|
623
|
-
"type": "address"
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
"internalType": "uint256",
|
|
627
|
-
"name": "subtractedValue",
|
|
628
|
-
"type": "uint256"
|
|
629
|
-
}
|
|
630
|
-
],
|
|
631
|
-
"name": "decreaseAllowance",
|
|
632
|
-
"outputs": [
|
|
633
|
-
{
|
|
634
|
-
"internalType": "bool",
|
|
635
|
-
"name": "",
|
|
636
|
-
"type": "bool"
|
|
637
|
-
}
|
|
638
|
-
],
|
|
639
|
-
"stateMutability": "nonpayable",
|
|
640
|
-
"type": "function"
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
"inputs": [],
|
|
644
|
-
"name": "deflationBPS",
|
|
645
|
-
"outputs": [
|
|
646
|
-
{
|
|
647
|
-
"internalType": "uint256",
|
|
648
|
-
"name": "",
|
|
649
|
-
"type": "uint256"
|
|
650
|
-
}
|
|
651
|
-
],
|
|
652
|
-
"stateMutability": "view",
|
|
653
|
-
"type": "function"
|
|
654
|
-
},
|
|
655
|
-
{
|
|
656
|
-
"inputs": [],
|
|
657
|
-
"name": "documentUri",
|
|
658
|
-
"outputs": [
|
|
659
|
-
{
|
|
660
|
-
"internalType": "string",
|
|
661
|
-
"name": "",
|
|
662
|
-
"type": "string"
|
|
663
|
-
}
|
|
664
|
-
],
|
|
665
|
-
"stateMutability": "view",
|
|
666
|
-
"type": "function"
|
|
667
|
-
},
|
|
668
242
|
{
|
|
669
243
|
"inputs": [
|
|
670
244
|
{
|
|
671
245
|
"internalType": "address",
|
|
672
246
|
"name": "account",
|
|
673
247
|
"type": "address"
|
|
674
|
-
}
|
|
675
|
-
],
|
|
676
|
-
"name": "excludeFromFeesAndLimits",
|
|
677
|
-
"outputs": [],
|
|
678
|
-
"stateMutability": "nonpayable",
|
|
679
|
-
"type": "function"
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
"inputs": [
|
|
683
|
-
{
|
|
684
|
-
"internalType": "address",
|
|
685
|
-
"name": "account",
|
|
686
|
-
"type": "address"
|
|
687
|
-
}
|
|
688
|
-
],
|
|
689
|
-
"name": "excludeFromRewards",
|
|
690
|
-
"outputs": [],
|
|
691
|
-
"stateMutability": "nonpayable",
|
|
692
|
-
"type": "function"
|
|
693
|
-
},
|
|
694
|
-
{
|
|
695
|
-
"inputs": [
|
|
696
|
-
{
|
|
697
|
-
"internalType": "uint256",
|
|
698
|
-
"name": "",
|
|
699
|
-
"type": "uint256"
|
|
700
|
-
}
|
|
701
|
-
],
|
|
702
|
-
"name": "feesAndLimitsExcluded",
|
|
703
|
-
"outputs": [
|
|
704
|
-
{
|
|
705
|
-
"internalType": "address",
|
|
706
|
-
"name": "",
|
|
707
|
-
"type": "address"
|
|
708
|
-
}
|
|
709
|
-
],
|
|
710
|
-
"stateMutability": "view",
|
|
711
|
-
"type": "function"
|
|
712
|
-
},
|
|
713
|
-
{
|
|
714
|
-
"inputs": [],
|
|
715
|
-
"name": "getFeesAndLimitsExclusionList",
|
|
716
|
-
"outputs": [
|
|
717
|
-
{
|
|
718
|
-
"internalType": "address[]",
|
|
719
|
-
"name": "",
|
|
720
|
-
"type": "address[]"
|
|
721
|
-
}
|
|
722
|
-
],
|
|
723
|
-
"stateMutability": "view",
|
|
724
|
-
"type": "function"
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
"inputs": [],
|
|
728
|
-
"name": "getRewardsExclusionList",
|
|
729
|
-
"outputs": [
|
|
730
|
-
{
|
|
731
|
-
"internalType": "address[]",
|
|
732
|
-
"name": "",
|
|
733
|
-
"type": "address[]"
|
|
734
|
-
}
|
|
735
|
-
],
|
|
736
|
-
"stateMutability": "view",
|
|
737
|
-
"type": "function"
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
"inputs": [
|
|
741
|
-
{
|
|
742
|
-
"internalType": "address",
|
|
743
|
-
"name": "account",
|
|
744
|
-
"type": "address"
|
|
745
|
-
}
|
|
746
|
-
],
|
|
747
|
-
"name": "includeInFeesAndLimits",
|
|
748
|
-
"outputs": [],
|
|
749
|
-
"stateMutability": "nonpayable",
|
|
750
|
-
"type": "function"
|
|
751
|
-
},
|
|
752
|
-
{
|
|
753
|
-
"inputs": [
|
|
754
|
-
{
|
|
755
|
-
"internalType": "address",
|
|
756
|
-
"name": "account",
|
|
757
|
-
"type": "address"
|
|
758
|
-
}
|
|
759
|
-
],
|
|
760
|
-
"name": "includeInRewards",
|
|
761
|
-
"outputs": [],
|
|
762
|
-
"stateMutability": "nonpayable",
|
|
763
|
-
"type": "function"
|
|
764
|
-
},
|
|
765
|
-
{
|
|
766
|
-
"inputs": [
|
|
767
|
-
{
|
|
768
|
-
"internalType": "address",
|
|
769
|
-
"name": "spender",
|
|
770
|
-
"type": "address"
|
|
771
248
|
},
|
|
772
249
|
{
|
|
773
250
|
"internalType": "uint256",
|
|
774
|
-
"name": "
|
|
775
|
-
"type": "uint256"
|
|
776
|
-
}
|
|
777
|
-
],
|
|
778
|
-
"name": "increaseAllowance",
|
|
779
|
-
"outputs": [
|
|
780
|
-
{
|
|
781
|
-
"internalType": "bool",
|
|
782
|
-
"name": "",
|
|
783
|
-
"type": "bool"
|
|
784
|
-
}
|
|
785
|
-
],
|
|
786
|
-
"stateMutability": "nonpayable",
|
|
787
|
-
"type": "function"
|
|
788
|
-
},
|
|
789
|
-
{
|
|
790
|
-
"inputs": [],
|
|
791
|
-
"name": "initialDocumentUri",
|
|
792
|
-
"outputs": [
|
|
793
|
-
{
|
|
794
|
-
"internalType": "string",
|
|
795
|
-
"name": "",
|
|
796
|
-
"type": "string"
|
|
797
|
-
}
|
|
798
|
-
],
|
|
799
|
-
"stateMutability": "view",
|
|
800
|
-
"type": "function"
|
|
801
|
-
},
|
|
802
|
-
{
|
|
803
|
-
"inputs": [],
|
|
804
|
-
"name": "initialMaxTokenAmountPerAddress",
|
|
805
|
-
"outputs": [
|
|
806
|
-
{
|
|
807
|
-
"internalType": "uint256",
|
|
808
|
-
"name": "",
|
|
809
|
-
"type": "uint256"
|
|
810
|
-
}
|
|
811
|
-
],
|
|
812
|
-
"stateMutability": "view",
|
|
813
|
-
"type": "function"
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
"inputs": [],
|
|
817
|
-
"name": "initialSupply",
|
|
818
|
-
"outputs": [
|
|
819
|
-
{
|
|
820
|
-
"internalType": "uint256",
|
|
821
|
-
"name": "",
|
|
822
|
-
"type": "uint256"
|
|
823
|
-
}
|
|
824
|
-
],
|
|
825
|
-
"stateMutability": "view",
|
|
826
|
-
"type": "function"
|
|
827
|
-
},
|
|
828
|
-
{
|
|
829
|
-
"inputs": [],
|
|
830
|
-
"name": "initialTokenOwner",
|
|
831
|
-
"outputs": [
|
|
832
|
-
{
|
|
833
|
-
"internalType": "address",
|
|
834
|
-
"name": "",
|
|
835
|
-
"type": "address"
|
|
836
|
-
}
|
|
837
|
-
],
|
|
838
|
-
"stateMutability": "view",
|
|
839
|
-
"type": "function"
|
|
840
|
-
},
|
|
841
|
-
{
|
|
842
|
-
"inputs": [],
|
|
843
|
-
"name": "isBurnable",
|
|
844
|
-
"outputs": [
|
|
845
|
-
{
|
|
846
|
-
"internalType": "bool",
|
|
847
|
-
"name": "",
|
|
848
|
-
"type": "bool"
|
|
849
|
-
}
|
|
850
|
-
],
|
|
851
|
-
"stateMutability": "view",
|
|
852
|
-
"type": "function"
|
|
853
|
-
},
|
|
854
|
-
{
|
|
855
|
-
"inputs": [],
|
|
856
|
-
"name": "isDeflationary",
|
|
857
|
-
"outputs": [
|
|
858
|
-
{
|
|
859
|
-
"internalType": "bool",
|
|
860
|
-
"name": "",
|
|
861
|
-
"type": "bool"
|
|
862
|
-
}
|
|
863
|
-
],
|
|
864
|
-
"stateMutability": "view",
|
|
865
|
-
"type": "function"
|
|
866
|
-
},
|
|
867
|
-
{
|
|
868
|
-
"inputs": [],
|
|
869
|
-
"name": "isDocumentUriAllowed",
|
|
870
|
-
"outputs": [
|
|
871
|
-
{
|
|
872
|
-
"internalType": "bool",
|
|
873
|
-
"name": "",
|
|
874
|
-
"type": "bool"
|
|
875
|
-
}
|
|
876
|
-
],
|
|
877
|
-
"stateMutability": "view",
|
|
878
|
-
"type": "function"
|
|
879
|
-
},
|
|
880
|
-
{
|
|
881
|
-
"inputs": [
|
|
882
|
-
{
|
|
883
|
-
"internalType": "address",
|
|
884
|
-
"name": "",
|
|
885
|
-
"type": "address"
|
|
886
|
-
}
|
|
887
|
-
],
|
|
888
|
-
"name": "isFeesAndLimitsExcluded",
|
|
889
|
-
"outputs": [
|
|
890
|
-
{
|
|
891
|
-
"internalType": "bool",
|
|
892
|
-
"name": "",
|
|
893
|
-
"type": "bool"
|
|
894
|
-
}
|
|
895
|
-
],
|
|
896
|
-
"stateMutability": "view",
|
|
897
|
-
"type": "function"
|
|
898
|
-
},
|
|
899
|
-
{
|
|
900
|
-
"inputs": [],
|
|
901
|
-
"name": "isMaxAmountOfTokensSet",
|
|
902
|
-
"outputs": [
|
|
903
|
-
{
|
|
904
|
-
"internalType": "bool",
|
|
905
|
-
"name": "",
|
|
906
|
-
"type": "bool"
|
|
907
|
-
}
|
|
908
|
-
],
|
|
909
|
-
"stateMutability": "view",
|
|
910
|
-
"type": "function"
|
|
911
|
-
},
|
|
912
|
-
{
|
|
913
|
-
"inputs": [],
|
|
914
|
-
"name": "isReflective",
|
|
915
|
-
"outputs": [
|
|
916
|
-
{
|
|
917
|
-
"internalType": "bool",
|
|
918
|
-
"name": "",
|
|
919
|
-
"type": "bool"
|
|
920
|
-
}
|
|
921
|
-
],
|
|
922
|
-
"stateMutability": "view",
|
|
923
|
-
"type": "function"
|
|
924
|
-
},
|
|
925
|
-
{
|
|
926
|
-
"inputs": [],
|
|
927
|
-
"name": "isTaxable",
|
|
928
|
-
"outputs": [
|
|
929
|
-
{
|
|
930
|
-
"internalType": "bool",
|
|
931
|
-
"name": "",
|
|
932
|
-
"type": "bool"
|
|
933
|
-
}
|
|
934
|
-
],
|
|
935
|
-
"stateMutability": "view",
|
|
936
|
-
"type": "function"
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
"inputs": [],
|
|
940
|
-
"name": "maxTokenAmountPerAddress",
|
|
941
|
-
"outputs": [
|
|
942
|
-
{
|
|
943
|
-
"internalType": "uint256",
|
|
944
|
-
"name": "",
|
|
251
|
+
"name": "amount",
|
|
945
252
|
"type": "uint256"
|
|
946
253
|
}
|
|
947
254
|
],
|
|
948
|
-
"
|
|
949
|
-
"
|
|
950
|
-
|
|
951
|
-
{
|
|
952
|
-
"inputs": [],
|
|
953
|
-
"name": "name",
|
|
954
|
-
"outputs": [
|
|
955
|
-
{
|
|
956
|
-
"internalType": "string",
|
|
957
|
-
"name": "",
|
|
958
|
-
"type": "string"
|
|
959
|
-
}
|
|
960
|
-
],
|
|
961
|
-
"stateMutability": "view",
|
|
255
|
+
"name": "burnFrom",
|
|
256
|
+
"outputs": [],
|
|
257
|
+
"stateMutability": "nonpayable",
|
|
962
258
|
"type": "function"
|
|
963
259
|
},
|
|
964
260
|
{
|
|
965
261
|
"inputs": [],
|
|
966
|
-
"name": "
|
|
262
|
+
"name": "decimals",
|
|
967
263
|
"outputs": [
|
|
968
264
|
{
|
|
969
|
-
"internalType": "
|
|
265
|
+
"internalType": "uint8",
|
|
970
266
|
"name": "",
|
|
971
|
-
"type": "
|
|
267
|
+
"type": "uint8"
|
|
972
268
|
}
|
|
973
269
|
],
|
|
974
270
|
"stateMutability": "view",
|
|
975
271
|
"type": "function"
|
|
976
272
|
},
|
|
977
|
-
{
|
|
978
|
-
"inputs": [],
|
|
979
|
-
"name": "renounceOwnership",
|
|
980
|
-
"outputs": [],
|
|
981
|
-
"stateMutability": "nonpayable",
|
|
982
|
-
"type": "function"
|
|
983
|
-
},
|
|
984
273
|
{
|
|
985
274
|
"inputs": [
|
|
275
|
+
{
|
|
276
|
+
"internalType": "address",
|
|
277
|
+
"name": "spender",
|
|
278
|
+
"type": "address"
|
|
279
|
+
},
|
|
986
280
|
{
|
|
987
281
|
"internalType": "uint256",
|
|
988
|
-
"name": "",
|
|
282
|
+
"name": "subtractedValue",
|
|
989
283
|
"type": "uint256"
|
|
990
284
|
}
|
|
991
285
|
],
|
|
992
|
-
"name": "
|
|
286
|
+
"name": "decreaseAllowance",
|
|
993
287
|
"outputs": [
|
|
994
288
|
{
|
|
995
|
-
"internalType": "
|
|
289
|
+
"internalType": "bool",
|
|
996
290
|
"name": "",
|
|
997
|
-
"type": "
|
|
291
|
+
"type": "bool"
|
|
998
292
|
}
|
|
999
293
|
],
|
|
1000
|
-
"stateMutability": "
|
|
294
|
+
"stateMutability": "nonpayable",
|
|
1001
295
|
"type": "function"
|
|
1002
296
|
},
|
|
1003
297
|
{
|
|
1004
298
|
"inputs": [
|
|
299
|
+
{
|
|
300
|
+
"internalType": "address",
|
|
301
|
+
"name": "spender",
|
|
302
|
+
"type": "address"
|
|
303
|
+
},
|
|
1005
304
|
{
|
|
1006
305
|
"internalType": "uint256",
|
|
1007
|
-
"name": "
|
|
306
|
+
"name": "addedValue",
|
|
1008
307
|
"type": "uint256"
|
|
1009
308
|
}
|
|
1010
309
|
],
|
|
1011
|
-
"name": "
|
|
1012
|
-
"outputs": [
|
|
310
|
+
"name": "increaseAllowance",
|
|
311
|
+
"outputs": [
|
|
312
|
+
{
|
|
313
|
+
"internalType": "bool",
|
|
314
|
+
"name": "",
|
|
315
|
+
"type": "bool"
|
|
316
|
+
}
|
|
317
|
+
],
|
|
1013
318
|
"stateMutability": "nonpayable",
|
|
1014
319
|
"type": "function"
|
|
1015
320
|
},
|
|
1016
321
|
{
|
|
1017
322
|
"inputs": [
|
|
323
|
+
{
|
|
324
|
+
"internalType": "address",
|
|
325
|
+
"name": "_owner",
|
|
326
|
+
"type": "address"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"internalType": "string",
|
|
330
|
+
"name": "_name",
|
|
331
|
+
"type": "string"
|
|
332
|
+
},
|
|
1018
333
|
{
|
|
1019
334
|
"internalType": "string",
|
|
1020
|
-
"name": "
|
|
335
|
+
"name": "_symbol",
|
|
1021
336
|
"type": "string"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"internalType": "uint8",
|
|
340
|
+
"name": "_decimals",
|
|
341
|
+
"type": "uint8"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"internalType": "uint256",
|
|
345
|
+
"name": "_initialSupply",
|
|
346
|
+
"type": "uint256"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"internalType": "uint256",
|
|
350
|
+
"name": "_maxSupply",
|
|
351
|
+
"type": "uint256"
|
|
1022
352
|
}
|
|
1023
353
|
],
|
|
1024
|
-
"name": "
|
|
354
|
+
"name": "initialize",
|
|
1025
355
|
"outputs": [],
|
|
1026
356
|
"stateMutability": "nonpayable",
|
|
1027
357
|
"type": "function"
|
|
@@ -1029,50 +359,56 @@ export const DefiTokenFixedSupply_jsonAbi = [
|
|
|
1029
359
|
{
|
|
1030
360
|
"inputs": [
|
|
1031
361
|
{
|
|
1032
|
-
"internalType": "
|
|
1033
|
-
"name": "
|
|
1034
|
-
"type": "
|
|
362
|
+
"internalType": "address",
|
|
363
|
+
"name": "_account",
|
|
364
|
+
"type": "address"
|
|
1035
365
|
}
|
|
1036
366
|
],
|
|
1037
|
-
"name": "
|
|
1038
|
-
"outputs": [
|
|
1039
|
-
|
|
367
|
+
"name": "isAccountBlocked",
|
|
368
|
+
"outputs": [
|
|
369
|
+
{
|
|
370
|
+
"internalType": "bool",
|
|
371
|
+
"name": "",
|
|
372
|
+
"type": "bool"
|
|
373
|
+
}
|
|
374
|
+
],
|
|
375
|
+
"stateMutability": "view",
|
|
1040
376
|
"type": "function"
|
|
1041
377
|
},
|
|
1042
378
|
{
|
|
1043
|
-
"inputs": [
|
|
379
|
+
"inputs": [],
|
|
380
|
+
"name": "maxSupply",
|
|
381
|
+
"outputs": [
|
|
1044
382
|
{
|
|
1045
383
|
"internalType": "uint256",
|
|
1046
|
-
"name": "
|
|
384
|
+
"name": "",
|
|
1047
385
|
"type": "uint256"
|
|
1048
386
|
}
|
|
1049
387
|
],
|
|
1050
|
-
"
|
|
1051
|
-
"outputs": [],
|
|
1052
|
-
"stateMutability": "nonpayable",
|
|
388
|
+
"stateMutability": "view",
|
|
1053
389
|
"type": "function"
|
|
1054
390
|
},
|
|
1055
391
|
{
|
|
1056
392
|
"inputs": [
|
|
1057
393
|
{
|
|
1058
394
|
"internalType": "address",
|
|
1059
|
-
"name": "
|
|
395
|
+
"name": "to",
|
|
1060
396
|
"type": "address"
|
|
1061
397
|
},
|
|
1062
398
|
{
|
|
1063
399
|
"internalType": "uint256",
|
|
1064
|
-
"name": "
|
|
400
|
+
"name": "amount",
|
|
1065
401
|
"type": "uint256"
|
|
1066
402
|
}
|
|
1067
403
|
],
|
|
1068
|
-
"name": "
|
|
404
|
+
"name": "mint",
|
|
1069
405
|
"outputs": [],
|
|
1070
406
|
"stateMutability": "nonpayable",
|
|
1071
407
|
"type": "function"
|
|
1072
408
|
},
|
|
1073
409
|
{
|
|
1074
410
|
"inputs": [],
|
|
1075
|
-
"name": "
|
|
411
|
+
"name": "name",
|
|
1076
412
|
"outputs": [
|
|
1077
413
|
{
|
|
1078
414
|
"internalType": "string",
|
|
@@ -1085,12 +421,12 @@ export const DefiTokenFixedSupply_jsonAbi = [
|
|
|
1085
421
|
},
|
|
1086
422
|
{
|
|
1087
423
|
"inputs": [],
|
|
1088
|
-
"name": "
|
|
424
|
+
"name": "owner",
|
|
1089
425
|
"outputs": [
|
|
1090
426
|
{
|
|
1091
|
-
"internalType": "
|
|
427
|
+
"internalType": "address",
|
|
1092
428
|
"name": "",
|
|
1093
|
-
"type": "
|
|
429
|
+
"type": "address"
|
|
1094
430
|
}
|
|
1095
431
|
],
|
|
1096
432
|
"stateMutability": "view",
|
|
@@ -1098,44 +434,39 @@ export const DefiTokenFixedSupply_jsonAbi = [
|
|
|
1098
434
|
},
|
|
1099
435
|
{
|
|
1100
436
|
"inputs": [],
|
|
1101
|
-
"name": "
|
|
1102
|
-
"outputs": [
|
|
1103
|
-
|
|
1104
|
-
"internalType": "address",
|
|
1105
|
-
"name": "",
|
|
1106
|
-
"type": "address"
|
|
1107
|
-
}
|
|
1108
|
-
],
|
|
1109
|
-
"stateMutability": "view",
|
|
437
|
+
"name": "pause",
|
|
438
|
+
"outputs": [],
|
|
439
|
+
"stateMutability": "nonpayable",
|
|
1110
440
|
"type": "function"
|
|
1111
441
|
},
|
|
1112
442
|
{
|
|
1113
443
|
"inputs": [],
|
|
1114
|
-
"name": "
|
|
444
|
+
"name": "paused",
|
|
1115
445
|
"outputs": [
|
|
1116
446
|
{
|
|
1117
|
-
"internalType": "
|
|
447
|
+
"internalType": "bool",
|
|
1118
448
|
"name": "",
|
|
1119
|
-
"type": "
|
|
449
|
+
"type": "bool"
|
|
1120
450
|
}
|
|
1121
451
|
],
|
|
1122
452
|
"stateMutability": "view",
|
|
1123
453
|
"type": "function"
|
|
1124
454
|
},
|
|
1125
455
|
{
|
|
1126
|
-
"inputs": [
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
"
|
|
456
|
+
"inputs": [],
|
|
457
|
+
"name": "renounceOwnership",
|
|
458
|
+
"outputs": [],
|
|
459
|
+
"stateMutability": "nonpayable",
|
|
460
|
+
"type": "function"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"inputs": [],
|
|
464
|
+
"name": "symbol",
|
|
1134
465
|
"outputs": [
|
|
1135
466
|
{
|
|
1136
|
-
"internalType": "
|
|
467
|
+
"internalType": "string",
|
|
1137
468
|
"name": "",
|
|
1138
|
-
"type": "
|
|
469
|
+
"type": "string"
|
|
1139
470
|
}
|
|
1140
471
|
],
|
|
1141
472
|
"stateMutability": "view",
|
|
@@ -1219,23 +550,43 @@ export const DefiTokenFixedSupply_jsonAbi = [
|
|
|
1219
550
|
"outputs": [],
|
|
1220
551
|
"stateMutability": "nonpayable",
|
|
1221
552
|
"type": "function"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"inputs": [
|
|
556
|
+
{
|
|
557
|
+
"internalType": "address",
|
|
558
|
+
"name": "_account",
|
|
559
|
+
"type": "address"
|
|
560
|
+
}
|
|
561
|
+
],
|
|
562
|
+
"name": "unblockAccount",
|
|
563
|
+
"outputs": [],
|
|
564
|
+
"stateMutability": "nonpayable",
|
|
565
|
+
"type": "function"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"inputs": [],
|
|
569
|
+
"name": "unpause",
|
|
570
|
+
"outputs": [],
|
|
571
|
+
"stateMutability": "nonpayable",
|
|
572
|
+
"type": "function"
|
|
1222
573
|
}
|
|
1223
574
|
] as const satisfies Abi;
|
|
1224
575
|
|
|
1225
576
|
/**
|
|
1226
|
-
* Type-safe ABI for
|
|
577
|
+
* Type-safe ABI for EssentialToken_json
|
|
1227
578
|
*/
|
|
1228
|
-
export type
|
|
579
|
+
export type EssentialToken_jsonAbi = typeof EssentialToken_jsonAbi;
|
|
1229
580
|
|
|
1230
581
|
/**
|
|
1231
|
-
* Contract instance type for
|
|
582
|
+
* Contract instance type for EssentialToken_json
|
|
1232
583
|
*/
|
|
1233
584
|
// Use any for contract type to avoid complex viem type issues
|
|
1234
585
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
1235
|
-
export type
|
|
586
|
+
export type EssentialToken_jsonContract = any;
|
|
1236
587
|
|
|
1237
588
|
/**
|
|
1238
|
-
*
|
|
589
|
+
* EssentialToken_json Contract Class
|
|
1239
590
|
*
|
|
1240
591
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1241
592
|
*
|
|
@@ -1243,12 +594,12 @@ export type DefiTokenFixedSupply_jsonContract = any;
|
|
|
1243
594
|
* ```typescript
|
|
1244
595
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1245
596
|
* import { mainnet } from 'viem/chains';
|
|
1246
|
-
* import {
|
|
597
|
+
* import { EssentialToken_json } from 'EssentialToken_json';
|
|
1247
598
|
*
|
|
1248
599
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1249
600
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1250
601
|
*
|
|
1251
|
-
* const contract = new
|
|
602
|
+
* const contract = new EssentialToken_json('0x...', { publicClient, walletClient });
|
|
1252
603
|
*
|
|
1253
604
|
* // Read functions
|
|
1254
605
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -1266,8 +617,8 @@ export type DefiTokenFixedSupply_jsonContract = any;
|
|
|
1266
617
|
* });
|
|
1267
618
|
* ```
|
|
1268
619
|
*/
|
|
1269
|
-
export class
|
|
1270
|
-
private contract:
|
|
620
|
+
export class EssentialToken_json {
|
|
621
|
+
private contract: EssentialToken_jsonContract;
|
|
1271
622
|
private contractAddress: Address;
|
|
1272
623
|
private publicClient: PublicClient;
|
|
1273
624
|
|
|
@@ -1282,7 +633,7 @@ export class DefiTokenFixedSupply_json {
|
|
|
1282
633
|
this.publicClient = clients.publicClient;
|
|
1283
634
|
this.contract = getContract({
|
|
1284
635
|
address,
|
|
1285
|
-
abi:
|
|
636
|
+
abi: EssentialToken_jsonAbi,
|
|
1286
637
|
client: {
|
|
1287
638
|
public: clients.publicClient,
|
|
1288
639
|
wallet: clients.walletClient,
|
|
@@ -1300,216 +651,48 @@ export class DefiTokenFixedSupply_json {
|
|
|
1300
651
|
/**
|
|
1301
652
|
* Get the underlying viem contract instance
|
|
1302
653
|
*/
|
|
1303
|
-
getContract():
|
|
654
|
+
getContract(): EssentialToken_jsonContract {
|
|
1304
655
|
return this.contract;
|
|
1305
656
|
}
|
|
1306
657
|
|
|
1307
|
-
/**
|
|
1308
|
-
* CONTRACT_HASH
|
|
1309
|
-
* view
|
|
1310
|
-
*/
|
|
1311
|
-
async CONTRACT_HASH(): Promise<`0x${string}`> {
|
|
1312
|
-
return this.contract.read.CONTRACT_HASH() as Promise<`0x${string}`>;
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
/**
|
|
1316
|
-
* CONTRACT_NAME
|
|
1317
|
-
* view
|
|
1318
|
-
*/
|
|
1319
|
-
async CONTRACT_NAME(): Promise<string> {
|
|
1320
|
-
return this.contract.read.CONTRACT_NAME() as Promise<string>;
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
/**
|
|
1324
|
-
* MAX_EXCLUSION_LIMIT
|
|
1325
|
-
* view
|
|
1326
|
-
*/
|
|
1327
|
-
async MAX_EXCLUSION_LIMIT(): Promise<bigint> {
|
|
1328
|
-
return this.contract.read.MAX_EXCLUSION_LIMIT() as Promise<bigint>;
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
/**
|
|
1332
|
-
* MAX_REWARDS_EXCLUSION_LIMIT
|
|
1333
|
-
* view
|
|
1334
|
-
*/
|
|
1335
|
-
async MAX_REWARDS_EXCLUSION_LIMIT(): Promise<bigint> {
|
|
1336
|
-
return this.contract.read.MAX_REWARDS_EXCLUSION_LIMIT() as Promise<bigint>;
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
/**
|
|
1340
|
-
* VERSION
|
|
1341
|
-
* view
|
|
1342
|
-
*/
|
|
1343
|
-
async VERSION(): Promise<string> {
|
|
1344
|
-
return this.contract.read.VERSION() as Promise<string>;
|
|
1345
|
-
}
|
|
1346
|
-
|
|
1347
|
-
/**
|
|
1348
|
-
* _tTotal
|
|
1349
|
-
* view
|
|
1350
|
-
*/
|
|
1351
|
-
async _tTotal(): Promise<bigint> {
|
|
1352
|
-
return this.contract.read._tTotal() as Promise<bigint>;
|
|
1353
|
-
}
|
|
1354
|
-
|
|
1355
658
|
/**
|
|
1356
659
|
* allowance
|
|
1357
660
|
* view
|
|
1358
661
|
*/
|
|
1359
|
-
async allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
|
|
1360
|
-
return this.contract.read.allowance([owner, spender] as const) as Promise<bigint>;
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
/**
|
|
1364
|
-
* balanceOf
|
|
1365
|
-
* view
|
|
1366
|
-
*/
|
|
1367
|
-
async balanceOf(account: `0x${string}`): Promise<bigint> {
|
|
1368
|
-
return this.contract.read.balanceOf([account] as const) as Promise<bigint>;
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
/**
|
|
1372
|
-
* decimals
|
|
1373
|
-
* view
|
|
1374
|
-
*/
|
|
1375
|
-
async decimals(): Promise<bigint> {
|
|
1376
|
-
return this.contract.read.decimals() as Promise<bigint>;
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
/**
|
|
1380
|
-
* deflationBPS
|
|
1381
|
-
* view
|
|
1382
|
-
*/
|
|
1383
|
-
async deflationBPS(): Promise<bigint> {
|
|
1384
|
-
return this.contract.read.deflationBPS() as Promise<bigint>;
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
/**
|
|
1388
|
-
* documentUri
|
|
1389
|
-
* view
|
|
1390
|
-
*/
|
|
1391
|
-
async documentUri(): Promise<string> {
|
|
1392
|
-
return this.contract.read.documentUri() as Promise<string>;
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
/**
|
|
1396
|
-
* feesAndLimitsExcluded
|
|
1397
|
-
* view
|
|
1398
|
-
*/
|
|
1399
|
-
async feesAndLimitsExcluded(arg0: bigint): Promise<`0x${string}`> {
|
|
1400
|
-
return this.contract.read.feesAndLimitsExcluded([arg0] as const) as Promise<`0x${string}`>;
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
/**
|
|
1404
|
-
* getFeesAndLimitsExclusionList
|
|
1405
|
-
* view
|
|
1406
|
-
*/
|
|
1407
|
-
async getFeesAndLimitsExclusionList(): Promise<`0x${string}`[]> {
|
|
1408
|
-
return this.contract.read.getFeesAndLimitsExclusionList() as Promise<`0x${string}`[]>;
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
/**
|
|
1412
|
-
* getRewardsExclusionList
|
|
1413
|
-
* view
|
|
1414
|
-
*/
|
|
1415
|
-
async getRewardsExclusionList(): Promise<`0x${string}`[]> {
|
|
1416
|
-
return this.contract.read.getRewardsExclusionList() as Promise<`0x${string}`[]>;
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1419
|
-
/**
|
|
1420
|
-
* initialDocumentUri
|
|
1421
|
-
* view
|
|
1422
|
-
*/
|
|
1423
|
-
async initialDocumentUri(): Promise<string> {
|
|
1424
|
-
return this.contract.read.initialDocumentUri() as Promise<string>;
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
/**
|
|
1428
|
-
* initialMaxTokenAmountPerAddress
|
|
1429
|
-
* view
|
|
1430
|
-
*/
|
|
1431
|
-
async initialMaxTokenAmountPerAddress(): Promise<bigint> {
|
|
1432
|
-
return this.contract.read.initialMaxTokenAmountPerAddress() as Promise<bigint>;
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
/**
|
|
1436
|
-
* initialSupply
|
|
1437
|
-
* view
|
|
1438
|
-
*/
|
|
1439
|
-
async initialSupply(): Promise<bigint> {
|
|
1440
|
-
return this.contract.read.initialSupply() as Promise<bigint>;
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
/**
|
|
1444
|
-
* initialTokenOwner
|
|
1445
|
-
* view
|
|
1446
|
-
*/
|
|
1447
|
-
async initialTokenOwner(): Promise<`0x${string}`> {
|
|
1448
|
-
return this.contract.read.initialTokenOwner() as Promise<`0x${string}`>;
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
/**
|
|
1452
|
-
* isBurnable
|
|
1453
|
-
* view
|
|
1454
|
-
*/
|
|
1455
|
-
async isBurnable(): Promise<boolean> {
|
|
1456
|
-
return this.contract.read.isBurnable() as Promise<boolean>;
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
/**
|
|
1460
|
-
* isDeflationary
|
|
1461
|
-
* view
|
|
1462
|
-
*/
|
|
1463
|
-
async isDeflationary(): Promise<boolean> {
|
|
1464
|
-
return this.contract.read.isDeflationary() as Promise<boolean>;
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
/**
|
|
1468
|
-
* isDocumentUriAllowed
|
|
1469
|
-
* view
|
|
1470
|
-
*/
|
|
1471
|
-
async isDocumentUriAllowed(): Promise<boolean> {
|
|
1472
|
-
return this.contract.read.isDocumentUriAllowed() as Promise<boolean>;
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
/**
|
|
1476
|
-
* isFeesAndLimitsExcluded
|
|
1477
|
-
* view
|
|
1478
|
-
*/
|
|
1479
|
-
async isFeesAndLimitsExcluded(arg0: `0x${string}`): Promise<boolean> {
|
|
1480
|
-
return this.contract.read.isFeesAndLimitsExcluded([arg0] as const) as Promise<boolean>;
|
|
662
|
+
async allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
|
|
663
|
+
return this.contract.read.allowance([owner, spender] as const) as Promise<bigint>;
|
|
1481
664
|
}
|
|
1482
665
|
|
|
1483
666
|
/**
|
|
1484
|
-
*
|
|
667
|
+
* balanceOf
|
|
1485
668
|
* view
|
|
1486
669
|
*/
|
|
1487
|
-
async
|
|
1488
|
-
return this.contract.read.
|
|
670
|
+
async balanceOf(account: `0x${string}`): Promise<bigint> {
|
|
671
|
+
return this.contract.read.balanceOf([account] as const) as Promise<bigint>;
|
|
1489
672
|
}
|
|
1490
673
|
|
|
1491
674
|
/**
|
|
1492
|
-
*
|
|
675
|
+
* decimals
|
|
1493
676
|
* view
|
|
1494
677
|
*/
|
|
1495
|
-
async
|
|
1496
|
-
return this.contract.read.
|
|
678
|
+
async decimals(): Promise<bigint> {
|
|
679
|
+
return this.contract.read.decimals() as Promise<bigint>;
|
|
1497
680
|
}
|
|
1498
681
|
|
|
1499
682
|
/**
|
|
1500
|
-
*
|
|
683
|
+
* isAccountBlocked
|
|
1501
684
|
* view
|
|
1502
685
|
*/
|
|
1503
|
-
async
|
|
1504
|
-
return this.contract.read.
|
|
686
|
+
async isAccountBlocked(_account: `0x${string}`): Promise<boolean> {
|
|
687
|
+
return this.contract.read.isAccountBlocked([_account] as const) as Promise<boolean>;
|
|
1505
688
|
}
|
|
1506
689
|
|
|
1507
690
|
/**
|
|
1508
|
-
*
|
|
691
|
+
* maxSupply
|
|
1509
692
|
* view
|
|
1510
693
|
*/
|
|
1511
|
-
async
|
|
1512
|
-
return this.contract.read.
|
|
694
|
+
async maxSupply(): Promise<bigint> {
|
|
695
|
+
return this.contract.read.maxSupply() as Promise<bigint>;
|
|
1513
696
|
}
|
|
1514
697
|
|
|
1515
698
|
/**
|
|
@@ -1529,11 +712,11 @@ export class DefiTokenFixedSupply_json {
|
|
|
1529
712
|
}
|
|
1530
713
|
|
|
1531
714
|
/**
|
|
1532
|
-
*
|
|
715
|
+
* paused
|
|
1533
716
|
* view
|
|
1534
717
|
*/
|
|
1535
|
-
async
|
|
1536
|
-
return this.contract.read.
|
|
718
|
+
async paused(): Promise<boolean> {
|
|
719
|
+
return this.contract.read.paused() as Promise<boolean>;
|
|
1537
720
|
}
|
|
1538
721
|
|
|
1539
722
|
/**
|
|
@@ -1544,38 +727,6 @@ export class DefiTokenFixedSupply_json {
|
|
|
1544
727
|
return this.contract.read.symbol() as Promise<string>;
|
|
1545
728
|
}
|
|
1546
729
|
|
|
1547
|
-
/**
|
|
1548
|
-
* tFeeBPS
|
|
1549
|
-
* view
|
|
1550
|
-
*/
|
|
1551
|
-
async tFeeBPS(): Promise<bigint> {
|
|
1552
|
-
return this.contract.read.tFeeBPS() as Promise<bigint>;
|
|
1553
|
-
}
|
|
1554
|
-
|
|
1555
|
-
/**
|
|
1556
|
-
* taxAddress
|
|
1557
|
-
* view
|
|
1558
|
-
*/
|
|
1559
|
-
async taxAddress(): Promise<`0x${string}`> {
|
|
1560
|
-
return this.contract.read.taxAddress() as Promise<`0x${string}`>;
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
/**
|
|
1564
|
-
* taxBPS
|
|
1565
|
-
* view
|
|
1566
|
-
*/
|
|
1567
|
-
async taxBPS(): Promise<bigint> {
|
|
1568
|
-
return this.contract.read.taxBPS() as Promise<bigint>;
|
|
1569
|
-
}
|
|
1570
|
-
|
|
1571
|
-
/**
|
|
1572
|
-
* tokenFromReflection
|
|
1573
|
-
* view
|
|
1574
|
-
*/
|
|
1575
|
-
async tokenFromReflection(rAmount: bigint): Promise<bigint> {
|
|
1576
|
-
return this.contract.read.tokenFromReflection([rAmount] as const) as Promise<bigint>;
|
|
1577
|
-
}
|
|
1578
|
-
|
|
1579
730
|
/**
|
|
1580
731
|
* totalSupply
|
|
1581
732
|
* view
|
|
@@ -1608,57 +759,11 @@ export class DefiTokenFixedSupply_json {
|
|
|
1608
759
|
}
|
|
1609
760
|
|
|
1610
761
|
/**
|
|
1611
|
-
*
|
|
1612
|
-
* nonpayable
|
|
1613
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1614
|
-
*/
|
|
1615
|
-
async burn(amount: bigint, options?: {
|
|
1616
|
-
accessList?: import('viem').AccessList;
|
|
1617
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1618
|
-
chain?: import('viem').Chain | null;
|
|
1619
|
-
dataSuffix?: `0x${string}`;
|
|
1620
|
-
gas?: bigint;
|
|
1621
|
-
gasPrice?: bigint;
|
|
1622
|
-
maxFeePerGas?: bigint;
|
|
1623
|
-
maxPriorityFeePerGas?: bigint;
|
|
1624
|
-
nonce?: number;
|
|
1625
|
-
value?: bigint;
|
|
1626
|
-
}): Promise<`0x${string}`> {
|
|
1627
|
-
if (!this.contract.write) {
|
|
1628
|
-
throw new Error('Wallet client is required for write operations');
|
|
1629
|
-
}
|
|
1630
|
-
return this.contract.write.burn([amount] as const, options) as Promise<`0x${string}`>;
|
|
1631
|
-
}
|
|
1632
|
-
|
|
1633
|
-
/**
|
|
1634
|
-
* decreaseAllowance
|
|
1635
|
-
* nonpayable
|
|
1636
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1637
|
-
*/
|
|
1638
|
-
async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
1639
|
-
accessList?: import('viem').AccessList;
|
|
1640
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1641
|
-
chain?: import('viem').Chain | null;
|
|
1642
|
-
dataSuffix?: `0x${string}`;
|
|
1643
|
-
gas?: bigint;
|
|
1644
|
-
gasPrice?: bigint;
|
|
1645
|
-
maxFeePerGas?: bigint;
|
|
1646
|
-
maxPriorityFeePerGas?: bigint;
|
|
1647
|
-
nonce?: number;
|
|
1648
|
-
value?: bigint;
|
|
1649
|
-
}): Promise<`0x${string}`> {
|
|
1650
|
-
if (!this.contract.write) {
|
|
1651
|
-
throw new Error('Wallet client is required for write operations');
|
|
1652
|
-
}
|
|
1653
|
-
return this.contract.write.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
/**
|
|
1657
|
-
* excludeFromFeesAndLimits
|
|
762
|
+
* blockAccount
|
|
1658
763
|
* nonpayable
|
|
1659
764
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1660
765
|
*/
|
|
1661
|
-
async
|
|
766
|
+
async blockAccount(_account: `0x${string}`, options?: {
|
|
1662
767
|
accessList?: import('viem').AccessList;
|
|
1663
768
|
authorizationList?: import('viem').AuthorizationList;
|
|
1664
769
|
chain?: import('viem').Chain | null;
|
|
@@ -1673,15 +778,15 @@ export class DefiTokenFixedSupply_json {
|
|
|
1673
778
|
if (!this.contract.write) {
|
|
1674
779
|
throw new Error('Wallet client is required for write operations');
|
|
1675
780
|
}
|
|
1676
|
-
return this.contract.write.
|
|
781
|
+
return this.contract.write.blockAccount([_account] as const, options) as Promise<`0x${string}`>;
|
|
1677
782
|
}
|
|
1678
783
|
|
|
1679
784
|
/**
|
|
1680
|
-
*
|
|
785
|
+
* burn
|
|
1681
786
|
* nonpayable
|
|
1682
787
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1683
788
|
*/
|
|
1684
|
-
async
|
|
789
|
+
async burn(amount: bigint, options?: {
|
|
1685
790
|
accessList?: import('viem').AccessList;
|
|
1686
791
|
authorizationList?: import('viem').AuthorizationList;
|
|
1687
792
|
chain?: import('viem').Chain | null;
|
|
@@ -1696,15 +801,15 @@ export class DefiTokenFixedSupply_json {
|
|
|
1696
801
|
if (!this.contract.write) {
|
|
1697
802
|
throw new Error('Wallet client is required for write operations');
|
|
1698
803
|
}
|
|
1699
|
-
return this.contract.write.
|
|
804
|
+
return this.contract.write.burn([amount] as const, options) as Promise<`0x${string}`>;
|
|
1700
805
|
}
|
|
1701
806
|
|
|
1702
807
|
/**
|
|
1703
|
-
*
|
|
808
|
+
* burnFrom
|
|
1704
809
|
* nonpayable
|
|
1705
810
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1706
811
|
*/
|
|
1707
|
-
async
|
|
812
|
+
async burnFrom(account: `0x${string}`, amount: bigint, options?: {
|
|
1708
813
|
accessList?: import('viem').AccessList;
|
|
1709
814
|
authorizationList?: import('viem').AuthorizationList;
|
|
1710
815
|
chain?: import('viem').Chain | null;
|
|
@@ -1719,15 +824,15 @@ export class DefiTokenFixedSupply_json {
|
|
|
1719
824
|
if (!this.contract.write) {
|
|
1720
825
|
throw new Error('Wallet client is required for write operations');
|
|
1721
826
|
}
|
|
1722
|
-
return this.contract.write.
|
|
827
|
+
return this.contract.write.burnFrom([account, amount] as const, options) as Promise<`0x${string}`>;
|
|
1723
828
|
}
|
|
1724
829
|
|
|
1725
830
|
/**
|
|
1726
|
-
*
|
|
831
|
+
* decreaseAllowance
|
|
1727
832
|
* nonpayable
|
|
1728
833
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1729
834
|
*/
|
|
1730
|
-
async
|
|
835
|
+
async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
1731
836
|
accessList?: import('viem').AccessList;
|
|
1732
837
|
authorizationList?: import('viem').AuthorizationList;
|
|
1733
838
|
chain?: import('viem').Chain | null;
|
|
@@ -1742,7 +847,7 @@ export class DefiTokenFixedSupply_json {
|
|
|
1742
847
|
if (!this.contract.write) {
|
|
1743
848
|
throw new Error('Wallet client is required for write operations');
|
|
1744
849
|
}
|
|
1745
|
-
return this.contract.write.
|
|
850
|
+
return this.contract.write.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
|
|
1746
851
|
}
|
|
1747
852
|
|
|
1748
853
|
/**
|
|
@@ -1769,11 +874,11 @@ export class DefiTokenFixedSupply_json {
|
|
|
1769
874
|
}
|
|
1770
875
|
|
|
1771
876
|
/**
|
|
1772
|
-
*
|
|
877
|
+
* initialize
|
|
1773
878
|
* nonpayable
|
|
1774
879
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1775
880
|
*/
|
|
1776
|
-
async
|
|
881
|
+
async initialize(_owner: `0x${string}`, _name: string, _symbol: string, _decimals: bigint, _initialSupply: bigint, _maxSupply: bigint, options?: {
|
|
1777
882
|
accessList?: import('viem').AccessList;
|
|
1778
883
|
authorizationList?: import('viem').AuthorizationList;
|
|
1779
884
|
chain?: import('viem').Chain | null;
|
|
@@ -1788,15 +893,15 @@ export class DefiTokenFixedSupply_json {
|
|
|
1788
893
|
if (!this.contract.write) {
|
|
1789
894
|
throw new Error('Wallet client is required for write operations');
|
|
1790
895
|
}
|
|
1791
|
-
return this.contract.write.
|
|
896
|
+
return this.contract.write.initialize([_owner, _name, _symbol, _decimals, _initialSupply, _maxSupply] as const, options) as Promise<`0x${string}`>;
|
|
1792
897
|
}
|
|
1793
898
|
|
|
1794
899
|
/**
|
|
1795
|
-
*
|
|
900
|
+
* mint
|
|
1796
901
|
* nonpayable
|
|
1797
902
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1798
903
|
*/
|
|
1799
|
-
async
|
|
904
|
+
async mint(to: `0x${string}`, amount: bigint, options?: {
|
|
1800
905
|
accessList?: import('viem').AccessList;
|
|
1801
906
|
authorizationList?: import('viem').AuthorizationList;
|
|
1802
907
|
chain?: import('viem').Chain | null;
|
|
@@ -1811,15 +916,15 @@ export class DefiTokenFixedSupply_json {
|
|
|
1811
916
|
if (!this.contract.write) {
|
|
1812
917
|
throw new Error('Wallet client is required for write operations');
|
|
1813
918
|
}
|
|
1814
|
-
return this.contract.write.
|
|
919
|
+
return this.contract.write.mint([to, amount] as const, options) as Promise<`0x${string}`>;
|
|
1815
920
|
}
|
|
1816
921
|
|
|
1817
922
|
/**
|
|
1818
|
-
*
|
|
923
|
+
* pause
|
|
1819
924
|
* nonpayable
|
|
1820
925
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1821
926
|
*/
|
|
1822
|
-
async
|
|
927
|
+
async pause(options?: {
|
|
1823
928
|
accessList?: import('viem').AccessList;
|
|
1824
929
|
authorizationList?: import('viem').AuthorizationList;
|
|
1825
930
|
chain?: import('viem').Chain | null;
|
|
@@ -1834,15 +939,15 @@ export class DefiTokenFixedSupply_json {
|
|
|
1834
939
|
if (!this.contract.write) {
|
|
1835
940
|
throw new Error('Wallet client is required for write operations');
|
|
1836
941
|
}
|
|
1837
|
-
return this.contract.write.
|
|
942
|
+
return this.contract.write.pause(options) as Promise<`0x${string}`>;
|
|
1838
943
|
}
|
|
1839
944
|
|
|
1840
945
|
/**
|
|
1841
|
-
*
|
|
946
|
+
* renounceOwnership
|
|
1842
947
|
* nonpayable
|
|
1843
948
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1844
949
|
*/
|
|
1845
|
-
async
|
|
950
|
+
async renounceOwnership(options?: {
|
|
1846
951
|
accessList?: import('viem').AccessList;
|
|
1847
952
|
authorizationList?: import('viem').AuthorizationList;
|
|
1848
953
|
chain?: import('viem').Chain | null;
|
|
@@ -1857,15 +962,15 @@ export class DefiTokenFixedSupply_json {
|
|
|
1857
962
|
if (!this.contract.write) {
|
|
1858
963
|
throw new Error('Wallet client is required for write operations');
|
|
1859
964
|
}
|
|
1860
|
-
return this.contract.write.
|
|
965
|
+
return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
|
|
1861
966
|
}
|
|
1862
967
|
|
|
1863
968
|
/**
|
|
1864
|
-
*
|
|
969
|
+
* transfer
|
|
1865
970
|
* nonpayable
|
|
1866
971
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1867
972
|
*/
|
|
1868
|
-
async
|
|
973
|
+
async transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
1869
974
|
accessList?: import('viem').AccessList;
|
|
1870
975
|
authorizationList?: import('viem').AuthorizationList;
|
|
1871
976
|
chain?: import('viem').Chain | null;
|
|
@@ -1880,15 +985,15 @@ export class DefiTokenFixedSupply_json {
|
|
|
1880
985
|
if (!this.contract.write) {
|
|
1881
986
|
throw new Error('Wallet client is required for write operations');
|
|
1882
987
|
}
|
|
1883
|
-
return this.contract.write.
|
|
988
|
+
return this.contract.write.transfer([to, amount] as const, options) as Promise<`0x${string}`>;
|
|
1884
989
|
}
|
|
1885
990
|
|
|
1886
991
|
/**
|
|
1887
|
-
*
|
|
992
|
+
* transferFrom
|
|
1888
993
|
* nonpayable
|
|
1889
994
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1890
995
|
*/
|
|
1891
|
-
async
|
|
996
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
1892
997
|
accessList?: import('viem').AccessList;
|
|
1893
998
|
authorizationList?: import('viem').AuthorizationList;
|
|
1894
999
|
chain?: import('viem').Chain | null;
|
|
@@ -1903,15 +1008,15 @@ export class DefiTokenFixedSupply_json {
|
|
|
1903
1008
|
if (!this.contract.write) {
|
|
1904
1009
|
throw new Error('Wallet client is required for write operations');
|
|
1905
1010
|
}
|
|
1906
|
-
return this.contract.write.
|
|
1011
|
+
return this.contract.write.transferFrom([from, to, amount] as const, options) as Promise<`0x${string}`>;
|
|
1907
1012
|
}
|
|
1908
1013
|
|
|
1909
1014
|
/**
|
|
1910
|
-
*
|
|
1015
|
+
* transferOwnership
|
|
1911
1016
|
* nonpayable
|
|
1912
1017
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1913
1018
|
*/
|
|
1914
|
-
async
|
|
1019
|
+
async transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1915
1020
|
accessList?: import('viem').AccessList;
|
|
1916
1021
|
authorizationList?: import('viem').AuthorizationList;
|
|
1917
1022
|
chain?: import('viem').Chain | null;
|
|
@@ -1926,15 +1031,15 @@ export class DefiTokenFixedSupply_json {
|
|
|
1926
1031
|
if (!this.contract.write) {
|
|
1927
1032
|
throw new Error('Wallet client is required for write operations');
|
|
1928
1033
|
}
|
|
1929
|
-
return this.contract.write.
|
|
1034
|
+
return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
|
|
1930
1035
|
}
|
|
1931
1036
|
|
|
1932
1037
|
/**
|
|
1933
|
-
*
|
|
1038
|
+
* unblockAccount
|
|
1934
1039
|
* nonpayable
|
|
1935
1040
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1936
1041
|
*/
|
|
1937
|
-
async
|
|
1042
|
+
async unblockAccount(_account: `0x${string}`, options?: {
|
|
1938
1043
|
accessList?: import('viem').AccessList;
|
|
1939
1044
|
authorizationList?: import('viem').AuthorizationList;
|
|
1940
1045
|
chain?: import('viem').Chain | null;
|
|
@@ -1949,15 +1054,15 @@ export class DefiTokenFixedSupply_json {
|
|
|
1949
1054
|
if (!this.contract.write) {
|
|
1950
1055
|
throw new Error('Wallet client is required for write operations');
|
|
1951
1056
|
}
|
|
1952
|
-
return this.contract.write.
|
|
1057
|
+
return this.contract.write.unblockAccount([_account] as const, options) as Promise<`0x${string}`>;
|
|
1953
1058
|
}
|
|
1954
1059
|
|
|
1955
1060
|
/**
|
|
1956
|
-
*
|
|
1061
|
+
* unpause
|
|
1957
1062
|
* nonpayable
|
|
1958
1063
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1959
1064
|
*/
|
|
1960
|
-
async
|
|
1065
|
+
async unpause(options?: {
|
|
1961
1066
|
accessList?: import('viem').AccessList;
|
|
1962
1067
|
authorizationList?: import('viem').AuthorizationList;
|
|
1963
1068
|
chain?: import('viem').Chain | null;
|
|
@@ -1972,7 +1077,7 @@ export class DefiTokenFixedSupply_json {
|
|
|
1972
1077
|
if (!this.contract.write) {
|
|
1973
1078
|
throw new Error('Wallet client is required for write operations');
|
|
1974
1079
|
}
|
|
1975
|
-
return this.contract.write.
|
|
1080
|
+
return this.contract.write.unpause(options) as Promise<`0x${string}`>;
|
|
1976
1081
|
}
|
|
1977
1082
|
|
|
1978
1083
|
|
|
@@ -2011,49 +1116,11 @@ export class DefiTokenFixedSupply_json {
|
|
|
2011
1116
|
return contract.simulate.approve([spender, amount] as const, options) as Promise<boolean>;
|
|
2012
1117
|
},
|
|
2013
1118
|
/**
|
|
2014
|
-
* Simulate
|
|
2015
|
-
* Returns gas estimate and result without sending transaction
|
|
2016
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2017
|
-
*/
|
|
2018
|
-
async burn(amount: bigint, options?: {
|
|
2019
|
-
accessList?: import('viem').AccessList;
|
|
2020
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
2021
|
-
chain?: import('viem').Chain | null;
|
|
2022
|
-
dataSuffix?: `0x${string}`;
|
|
2023
|
-
gas?: bigint;
|
|
2024
|
-
gasPrice?: bigint;
|
|
2025
|
-
maxFeePerGas?: bigint;
|
|
2026
|
-
maxPriorityFeePerGas?: bigint;
|
|
2027
|
-
nonce?: number;
|
|
2028
|
-
value?: bigint;
|
|
2029
|
-
}): Promise<void> {
|
|
2030
|
-
return contract.simulate.burn([amount] as const, options) as Promise<void>;
|
|
2031
|
-
},
|
|
2032
|
-
/**
|
|
2033
|
-
* Simulate decreaseAllowance
|
|
2034
|
-
* Returns gas estimate and result without sending transaction
|
|
2035
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2036
|
-
*/
|
|
2037
|
-
async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
2038
|
-
accessList?: import('viem').AccessList;
|
|
2039
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
2040
|
-
chain?: import('viem').Chain | null;
|
|
2041
|
-
dataSuffix?: `0x${string}`;
|
|
2042
|
-
gas?: bigint;
|
|
2043
|
-
gasPrice?: bigint;
|
|
2044
|
-
maxFeePerGas?: bigint;
|
|
2045
|
-
maxPriorityFeePerGas?: bigint;
|
|
2046
|
-
nonce?: number;
|
|
2047
|
-
value?: bigint;
|
|
2048
|
-
}): Promise<boolean> {
|
|
2049
|
-
return contract.simulate.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<boolean>;
|
|
2050
|
-
},
|
|
2051
|
-
/**
|
|
2052
|
-
* Simulate excludeFromFeesAndLimits
|
|
1119
|
+
* Simulate blockAccount
|
|
2053
1120
|
* Returns gas estimate and result without sending transaction
|
|
2054
1121
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2055
1122
|
*/
|
|
2056
|
-
async
|
|
1123
|
+
async blockAccount(_account: `0x${string}`, options?: {
|
|
2057
1124
|
accessList?: import('viem').AccessList;
|
|
2058
1125
|
authorizationList?: import('viem').AuthorizationList;
|
|
2059
1126
|
chain?: import('viem').Chain | null;
|
|
@@ -2065,14 +1132,14 @@ export class DefiTokenFixedSupply_json {
|
|
|
2065
1132
|
nonce?: number;
|
|
2066
1133
|
value?: bigint;
|
|
2067
1134
|
}): Promise<void> {
|
|
2068
|
-
return contract.simulate.
|
|
1135
|
+
return contract.simulate.blockAccount([_account] as const, options) as Promise<void>;
|
|
2069
1136
|
},
|
|
2070
1137
|
/**
|
|
2071
|
-
* Simulate
|
|
1138
|
+
* Simulate burn
|
|
2072
1139
|
* Returns gas estimate and result without sending transaction
|
|
2073
1140
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2074
1141
|
*/
|
|
2075
|
-
async
|
|
1142
|
+
async burn(amount: bigint, options?: {
|
|
2076
1143
|
accessList?: import('viem').AccessList;
|
|
2077
1144
|
authorizationList?: import('viem').AuthorizationList;
|
|
2078
1145
|
chain?: import('viem').Chain | null;
|
|
@@ -2084,14 +1151,14 @@ export class DefiTokenFixedSupply_json {
|
|
|
2084
1151
|
nonce?: number;
|
|
2085
1152
|
value?: bigint;
|
|
2086
1153
|
}): Promise<void> {
|
|
2087
|
-
return contract.simulate.
|
|
1154
|
+
return contract.simulate.burn([amount] as const, options) as Promise<void>;
|
|
2088
1155
|
},
|
|
2089
1156
|
/**
|
|
2090
|
-
* Simulate
|
|
1157
|
+
* Simulate burnFrom
|
|
2091
1158
|
* Returns gas estimate and result without sending transaction
|
|
2092
1159
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2093
1160
|
*/
|
|
2094
|
-
async
|
|
1161
|
+
async burnFrom(account: `0x${string}`, amount: bigint, options?: {
|
|
2095
1162
|
accessList?: import('viem').AccessList;
|
|
2096
1163
|
authorizationList?: import('viem').AuthorizationList;
|
|
2097
1164
|
chain?: import('viem').Chain | null;
|
|
@@ -2103,14 +1170,14 @@ export class DefiTokenFixedSupply_json {
|
|
|
2103
1170
|
nonce?: number;
|
|
2104
1171
|
value?: bigint;
|
|
2105
1172
|
}): Promise<void> {
|
|
2106
|
-
return contract.simulate.
|
|
1173
|
+
return contract.simulate.burnFrom([account, amount] as const, options) as Promise<void>;
|
|
2107
1174
|
},
|
|
2108
1175
|
/**
|
|
2109
|
-
* Simulate
|
|
1176
|
+
* Simulate decreaseAllowance
|
|
2110
1177
|
* Returns gas estimate and result without sending transaction
|
|
2111
1178
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2112
1179
|
*/
|
|
2113
|
-
async
|
|
1180
|
+
async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
2114
1181
|
accessList?: import('viem').AccessList;
|
|
2115
1182
|
authorizationList?: import('viem').AuthorizationList;
|
|
2116
1183
|
chain?: import('viem').Chain | null;
|
|
@@ -2121,8 +1188,8 @@ export class DefiTokenFixedSupply_json {
|
|
|
2121
1188
|
maxPriorityFeePerGas?: bigint;
|
|
2122
1189
|
nonce?: number;
|
|
2123
1190
|
value?: bigint;
|
|
2124
|
-
}): Promise<
|
|
2125
|
-
return contract.simulate.
|
|
1191
|
+
}): Promise<boolean> {
|
|
1192
|
+
return contract.simulate.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<boolean>;
|
|
2126
1193
|
},
|
|
2127
1194
|
/**
|
|
2128
1195
|
* Simulate increaseAllowance
|
|
@@ -2144,11 +1211,11 @@ export class DefiTokenFixedSupply_json {
|
|
|
2144
1211
|
return contract.simulate.increaseAllowance([spender, addedValue] as const, options) as Promise<boolean>;
|
|
2145
1212
|
},
|
|
2146
1213
|
/**
|
|
2147
|
-
* Simulate
|
|
1214
|
+
* Simulate initialize
|
|
2148
1215
|
* Returns gas estimate and result without sending transaction
|
|
2149
1216
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2150
1217
|
*/
|
|
2151
|
-
async
|
|
1218
|
+
async initialize(_owner: `0x${string}`, _name: string, _symbol: string, _decimals: bigint, _initialSupply: bigint, _maxSupply: bigint, options?: {
|
|
2152
1219
|
accessList?: import('viem').AccessList;
|
|
2153
1220
|
authorizationList?: import('viem').AuthorizationList;
|
|
2154
1221
|
chain?: import('viem').Chain | null;
|
|
@@ -2160,14 +1227,14 @@ export class DefiTokenFixedSupply_json {
|
|
|
2160
1227
|
nonce?: number;
|
|
2161
1228
|
value?: bigint;
|
|
2162
1229
|
}): Promise<void> {
|
|
2163
|
-
return contract.simulate.
|
|
1230
|
+
return contract.simulate.initialize([_owner, _name, _symbol, _decimals, _initialSupply, _maxSupply] as const, options) as Promise<void>;
|
|
2164
1231
|
},
|
|
2165
1232
|
/**
|
|
2166
|
-
* Simulate
|
|
1233
|
+
* Simulate mint
|
|
2167
1234
|
* Returns gas estimate and result without sending transaction
|
|
2168
1235
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2169
1236
|
*/
|
|
2170
|
-
async
|
|
1237
|
+
async mint(to: `0x${string}`, amount: bigint, options?: {
|
|
2171
1238
|
accessList?: import('viem').AccessList;
|
|
2172
1239
|
authorizationList?: import('viem').AuthorizationList;
|
|
2173
1240
|
chain?: import('viem').Chain | null;
|
|
@@ -2179,14 +1246,14 @@ export class DefiTokenFixedSupply_json {
|
|
|
2179
1246
|
nonce?: number;
|
|
2180
1247
|
value?: bigint;
|
|
2181
1248
|
}): Promise<void> {
|
|
2182
|
-
return contract.simulate.
|
|
1249
|
+
return contract.simulate.mint([to, amount] as const, options) as Promise<void>;
|
|
2183
1250
|
},
|
|
2184
1251
|
/**
|
|
2185
|
-
* Simulate
|
|
1252
|
+
* Simulate pause
|
|
2186
1253
|
* Returns gas estimate and result without sending transaction
|
|
2187
1254
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2188
1255
|
*/
|
|
2189
|
-
async
|
|
1256
|
+
async pause(options?: {
|
|
2190
1257
|
accessList?: import('viem').AccessList;
|
|
2191
1258
|
authorizationList?: import('viem').AuthorizationList;
|
|
2192
1259
|
chain?: import('viem').Chain | null;
|
|
@@ -2198,14 +1265,14 @@ export class DefiTokenFixedSupply_json {
|
|
|
2198
1265
|
nonce?: number;
|
|
2199
1266
|
value?: bigint;
|
|
2200
1267
|
}): Promise<void> {
|
|
2201
|
-
return contract.simulate.
|
|
1268
|
+
return contract.simulate.pause(options) as Promise<void>;
|
|
2202
1269
|
},
|
|
2203
1270
|
/**
|
|
2204
|
-
* Simulate
|
|
1271
|
+
* Simulate renounceOwnership
|
|
2205
1272
|
* Returns gas estimate and result without sending transaction
|
|
2206
1273
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2207
1274
|
*/
|
|
2208
|
-
async
|
|
1275
|
+
async renounceOwnership(options?: {
|
|
2209
1276
|
accessList?: import('viem').AccessList;
|
|
2210
1277
|
authorizationList?: import('viem').AuthorizationList;
|
|
2211
1278
|
chain?: import('viem').Chain | null;
|
|
@@ -2217,14 +1284,14 @@ export class DefiTokenFixedSupply_json {
|
|
|
2217
1284
|
nonce?: number;
|
|
2218
1285
|
value?: bigint;
|
|
2219
1286
|
}): Promise<void> {
|
|
2220
|
-
return contract.simulate.
|
|
1287
|
+
return contract.simulate.renounceOwnership(options) as Promise<void>;
|
|
2221
1288
|
},
|
|
2222
1289
|
/**
|
|
2223
|
-
* Simulate
|
|
1290
|
+
* Simulate transfer
|
|
2224
1291
|
* Returns gas estimate and result without sending transaction
|
|
2225
1292
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2226
1293
|
*/
|
|
2227
|
-
async
|
|
1294
|
+
async transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
2228
1295
|
accessList?: import('viem').AccessList;
|
|
2229
1296
|
authorizationList?: import('viem').AuthorizationList;
|
|
2230
1297
|
chain?: import('viem').Chain | null;
|
|
@@ -2235,15 +1302,15 @@ export class DefiTokenFixedSupply_json {
|
|
|
2235
1302
|
maxPriorityFeePerGas?: bigint;
|
|
2236
1303
|
nonce?: number;
|
|
2237
1304
|
value?: bigint;
|
|
2238
|
-
}): Promise<
|
|
2239
|
-
return contract.simulate.
|
|
1305
|
+
}): Promise<boolean> {
|
|
1306
|
+
return contract.simulate.transfer([to, amount] as const, options) as Promise<boolean>;
|
|
2240
1307
|
},
|
|
2241
1308
|
/**
|
|
2242
|
-
* Simulate
|
|
1309
|
+
* Simulate transferFrom
|
|
2243
1310
|
* Returns gas estimate and result without sending transaction
|
|
2244
1311
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2245
1312
|
*/
|
|
2246
|
-
async
|
|
1313
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
2247
1314
|
accessList?: import('viem').AccessList;
|
|
2248
1315
|
authorizationList?: import('viem').AuthorizationList;
|
|
2249
1316
|
chain?: import('viem').Chain | null;
|
|
@@ -2254,15 +1321,15 @@ export class DefiTokenFixedSupply_json {
|
|
|
2254
1321
|
maxPriorityFeePerGas?: bigint;
|
|
2255
1322
|
nonce?: number;
|
|
2256
1323
|
value?: bigint;
|
|
2257
|
-
}): Promise<
|
|
2258
|
-
return contract.simulate.
|
|
1324
|
+
}): Promise<boolean> {
|
|
1325
|
+
return contract.simulate.transferFrom([from, to, amount] as const, options) as Promise<boolean>;
|
|
2259
1326
|
},
|
|
2260
1327
|
/**
|
|
2261
|
-
* Simulate
|
|
1328
|
+
* Simulate transferOwnership
|
|
2262
1329
|
* Returns gas estimate and result without sending transaction
|
|
2263
1330
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2264
1331
|
*/
|
|
2265
|
-
async
|
|
1332
|
+
async transferOwnership(newOwner: `0x${string}`, options?: {
|
|
2266
1333
|
accessList?: import('viem').AccessList;
|
|
2267
1334
|
authorizationList?: import('viem').AuthorizationList;
|
|
2268
1335
|
chain?: import('viem').Chain | null;
|
|
@@ -2273,15 +1340,15 @@ export class DefiTokenFixedSupply_json {
|
|
|
2273
1340
|
maxPriorityFeePerGas?: bigint;
|
|
2274
1341
|
nonce?: number;
|
|
2275
1342
|
value?: bigint;
|
|
2276
|
-
}): Promise<
|
|
2277
|
-
return contract.simulate.
|
|
1343
|
+
}): Promise<void> {
|
|
1344
|
+
return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
|
|
2278
1345
|
},
|
|
2279
1346
|
/**
|
|
2280
|
-
* Simulate
|
|
1347
|
+
* Simulate unblockAccount
|
|
2281
1348
|
* Returns gas estimate and result without sending transaction
|
|
2282
1349
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2283
1350
|
*/
|
|
2284
|
-
async
|
|
1351
|
+
async unblockAccount(_account: `0x${string}`, options?: {
|
|
2285
1352
|
accessList?: import('viem').AccessList;
|
|
2286
1353
|
authorizationList?: import('viem').AuthorizationList;
|
|
2287
1354
|
chain?: import('viem').Chain | null;
|
|
@@ -2292,15 +1359,15 @@ export class DefiTokenFixedSupply_json {
|
|
|
2292
1359
|
maxPriorityFeePerGas?: bigint;
|
|
2293
1360
|
nonce?: number;
|
|
2294
1361
|
value?: bigint;
|
|
2295
|
-
}): Promise<
|
|
2296
|
-
return contract.simulate.
|
|
1362
|
+
}): Promise<void> {
|
|
1363
|
+
return contract.simulate.unblockAccount([_account] as const, options) as Promise<void>;
|
|
2297
1364
|
},
|
|
2298
1365
|
/**
|
|
2299
|
-
* Simulate
|
|
1366
|
+
* Simulate unpause
|
|
2300
1367
|
* Returns gas estimate and result without sending transaction
|
|
2301
1368
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2302
1369
|
*/
|
|
2303
|
-
async
|
|
1370
|
+
async unpause(options?: {
|
|
2304
1371
|
accessList?: import('viem').AccessList;
|
|
2305
1372
|
authorizationList?: import('viem').AuthorizationList;
|
|
2306
1373
|
chain?: import('viem').Chain | null;
|
|
@@ -2312,7 +1379,7 @@ export class DefiTokenFixedSupply_json {
|
|
|
2312
1379
|
nonce?: number;
|
|
2313
1380
|
value?: bigint;
|
|
2314
1381
|
}): Promise<void> {
|
|
2315
|
-
return contract.simulate.
|
|
1382
|
+
return contract.simulate.unpause(options) as Promise<void>;
|
|
2316
1383
|
}
|
|
2317
1384
|
};
|
|
2318
1385
|
}
|
|
@@ -2340,7 +1407,7 @@ export class DefiTokenFixedSupply_json {
|
|
|
2340
1407
|
Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
|
|
2341
1408
|
return this.publicClient.watchContractEvent({
|
|
2342
1409
|
address: this.contractAddress,
|
|
2343
|
-
abi:
|
|
1410
|
+
abi: EssentialToken_jsonAbi,
|
|
2344
1411
|
eventName: 'Approval',
|
|
2345
1412
|
args: filter,
|
|
2346
1413
|
onLogs: (logs: any[]) => {
|
|
@@ -2351,16 +1418,16 @@ export class DefiTokenFixedSupply_json {
|
|
|
2351
1418
|
}) as () => void;
|
|
2352
1419
|
},
|
|
2353
1420
|
/**
|
|
2354
|
-
* Watch
|
|
1421
|
+
* Watch BlockedAccount events
|
|
2355
1422
|
* @param callback Function to call when event is emitted
|
|
2356
1423
|
* @param filter Optional filter for indexed parameters
|
|
2357
1424
|
* @returns Unwatch function to stop listening
|
|
2358
1425
|
*/
|
|
2359
|
-
|
|
1426
|
+
BlockedAccount: (callback: (event: { _account: `0x${string}` }) => void, filter?: { _account: `0x${string}` }) => {
|
|
2360
1427
|
return this.publicClient.watchContractEvent({
|
|
2361
1428
|
address: this.contractAddress,
|
|
2362
|
-
abi:
|
|
2363
|
-
eventName: '
|
|
1429
|
+
abi: EssentialToken_jsonAbi,
|
|
1430
|
+
eventName: 'BlockedAccount',
|
|
2364
1431
|
args: filter,
|
|
2365
1432
|
onLogs: (logs: any[]) => {
|
|
2366
1433
|
logs.forEach((log: any) => {
|
|
@@ -2370,16 +1437,16 @@ export class DefiTokenFixedSupply_json {
|
|
|
2370
1437
|
}) as () => void;
|
|
2371
1438
|
},
|
|
2372
1439
|
/**
|
|
2373
|
-
* Watch
|
|
1440
|
+
* Watch Initialized events
|
|
2374
1441
|
* @param callback Function to call when event is emitted
|
|
2375
1442
|
* @param filter Optional filter for indexed parameters
|
|
2376
1443
|
* @returns Unwatch function to stop listening
|
|
2377
1444
|
*/
|
|
2378
|
-
|
|
1445
|
+
Initialized: (callback: (event: { version: bigint }) => void) => {
|
|
2379
1446
|
return this.publicClient.watchContractEvent({
|
|
2380
1447
|
address: this.contractAddress,
|
|
2381
|
-
abi:
|
|
2382
|
-
eventName: '
|
|
1448
|
+
abi: EssentialToken_jsonAbi,
|
|
1449
|
+
eventName: 'Initialized',
|
|
2383
1450
|
|
|
2384
1451
|
onLogs: (logs: any[]) => {
|
|
2385
1452
|
logs.forEach((log: any) => {
|
|
@@ -2389,73 +1456,16 @@ export class DefiTokenFixedSupply_json {
|
|
|
2389
1456
|
}) as () => void;
|
|
2390
1457
|
},
|
|
2391
1458
|
/**
|
|
2392
|
-
* Watch
|
|
2393
|
-
* @param callback Function to call when event is emitted
|
|
2394
|
-
* @param filter Optional filter for indexed parameters
|
|
2395
|
-
* @returns Unwatch function to stop listening
|
|
2396
|
-
*/
|
|
2397
|
-
ExcludeFromFeesAndLimits: (callback: (event: { account: `0x${string}` }) => void, filter?: { account: `0x${string}` }) => {
|
|
2398
|
-
return this.publicClient.watchContractEvent({
|
|
2399
|
-
address: this.contractAddress,
|
|
2400
|
-
abi: DefiTokenFixedSupply_jsonAbi,
|
|
2401
|
-
eventName: 'ExcludeFromFeesAndLimits',
|
|
2402
|
-
args: filter,
|
|
2403
|
-
onLogs: (logs: any[]) => {
|
|
2404
|
-
logs.forEach((log: any) => {
|
|
2405
|
-
callback(log.args as any);
|
|
2406
|
-
});
|
|
2407
|
-
},
|
|
2408
|
-
}) as () => void;
|
|
2409
|
-
},
|
|
2410
|
-
/**
|
|
2411
|
-
* Watch ExcludedFromRewards events
|
|
2412
|
-
* @param callback Function to call when event is emitted
|
|
2413
|
-
* @param filter Optional filter for indexed parameters
|
|
2414
|
-
* @returns Unwatch function to stop listening
|
|
2415
|
-
*/
|
|
2416
|
-
ExcludedFromRewards: (callback: (event: { account: `0x${string}` }) => void, filter?: { account: `0x${string}` }) => {
|
|
2417
|
-
return this.publicClient.watchContractEvent({
|
|
2418
|
-
address: this.contractAddress,
|
|
2419
|
-
abi: DefiTokenFixedSupply_jsonAbi,
|
|
2420
|
-
eventName: 'ExcludedFromRewards',
|
|
2421
|
-
args: filter,
|
|
2422
|
-
onLogs: (logs: any[]) => {
|
|
2423
|
-
logs.forEach((log: any) => {
|
|
2424
|
-
callback(log.args as any);
|
|
2425
|
-
});
|
|
2426
|
-
},
|
|
2427
|
-
}) as () => void;
|
|
2428
|
-
},
|
|
2429
|
-
/**
|
|
2430
|
-
* Watch IncludedInFeesAndLimits events
|
|
2431
|
-
* @param callback Function to call when event is emitted
|
|
2432
|
-
* @param filter Optional filter for indexed parameters
|
|
2433
|
-
* @returns Unwatch function to stop listening
|
|
2434
|
-
*/
|
|
2435
|
-
IncludedInFeesAndLimits: (callback: (event: { account: `0x${string}` }) => void, filter?: { account: `0x${string}` }) => {
|
|
2436
|
-
return this.publicClient.watchContractEvent({
|
|
2437
|
-
address: this.contractAddress,
|
|
2438
|
-
abi: DefiTokenFixedSupply_jsonAbi,
|
|
2439
|
-
eventName: 'IncludedInFeesAndLimits',
|
|
2440
|
-
args: filter,
|
|
2441
|
-
onLogs: (logs: any[]) => {
|
|
2442
|
-
logs.forEach((log: any) => {
|
|
2443
|
-
callback(log.args as any);
|
|
2444
|
-
});
|
|
2445
|
-
},
|
|
2446
|
-
}) as () => void;
|
|
2447
|
-
},
|
|
2448
|
-
/**
|
|
2449
|
-
* Watch IncludedInRewards events
|
|
1459
|
+
* Watch OwnershipTransferred events
|
|
2450
1460
|
* @param callback Function to call when event is emitted
|
|
2451
1461
|
* @param filter Optional filter for indexed parameters
|
|
2452
1462
|
* @returns Unwatch function to stop listening
|
|
2453
1463
|
*/
|
|
2454
|
-
|
|
1464
|
+
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
|
|
2455
1465
|
return this.publicClient.watchContractEvent({
|
|
2456
1466
|
address: this.contractAddress,
|
|
2457
|
-
abi:
|
|
2458
|
-
eventName: '
|
|
1467
|
+
abi: EssentialToken_jsonAbi,
|
|
1468
|
+
eventName: 'OwnershipTransferred',
|
|
2459
1469
|
args: filter,
|
|
2460
1470
|
onLogs: (logs: any[]) => {
|
|
2461
1471
|
logs.forEach((log: any) => {
|
|
@@ -2465,16 +1475,16 @@ export class DefiTokenFixedSupply_json {
|
|
|
2465
1475
|
}) as () => void;
|
|
2466
1476
|
},
|
|
2467
1477
|
/**
|
|
2468
|
-
* Watch
|
|
1478
|
+
* Watch Paused events
|
|
2469
1479
|
* @param callback Function to call when event is emitted
|
|
2470
1480
|
* @param filter Optional filter for indexed parameters
|
|
2471
1481
|
* @returns Unwatch function to stop listening
|
|
2472
1482
|
*/
|
|
2473
|
-
|
|
1483
|
+
Paused: (callback: (event: { account: `0x${string}` }) => void) => {
|
|
2474
1484
|
return this.publicClient.watchContractEvent({
|
|
2475
1485
|
address: this.contractAddress,
|
|
2476
|
-
abi:
|
|
2477
|
-
eventName: '
|
|
1486
|
+
abi: EssentialToken_jsonAbi,
|
|
1487
|
+
eventName: 'Paused',
|
|
2478
1488
|
|
|
2479
1489
|
onLogs: (logs: any[]) => {
|
|
2480
1490
|
logs.forEach((log: any) => {
|
|
@@ -2484,35 +1494,16 @@ export class DefiTokenFixedSupply_json {
|
|
|
2484
1494
|
}) as () => void;
|
|
2485
1495
|
},
|
|
2486
1496
|
/**
|
|
2487
|
-
* Watch
|
|
2488
|
-
* @param callback Function to call when event is emitted
|
|
2489
|
-
* @param filter Optional filter for indexed parameters
|
|
2490
|
-
* @returns Unwatch function to stop listening
|
|
2491
|
-
*/
|
|
2492
|
-
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
|
|
2493
|
-
return this.publicClient.watchContractEvent({
|
|
2494
|
-
address: this.contractAddress,
|
|
2495
|
-
abi: DefiTokenFixedSupply_jsonAbi,
|
|
2496
|
-
eventName: 'OwnershipTransferred',
|
|
2497
|
-
args: filter,
|
|
2498
|
-
onLogs: (logs: any[]) => {
|
|
2499
|
-
logs.forEach((log: any) => {
|
|
2500
|
-
callback(log.args as any);
|
|
2501
|
-
});
|
|
2502
|
-
},
|
|
2503
|
-
}) as () => void;
|
|
2504
|
-
},
|
|
2505
|
-
/**
|
|
2506
|
-
* Watch ReflectionConfigSet events
|
|
1497
|
+
* Watch Transfer events
|
|
2507
1498
|
* @param callback Function to call when event is emitted
|
|
2508
1499
|
* @param filter Optional filter for indexed parameters
|
|
2509
1500
|
* @returns Unwatch function to stop listening
|
|
2510
1501
|
*/
|
|
2511
|
-
|
|
1502
|
+
Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
|
|
2512
1503
|
return this.publicClient.watchContractEvent({
|
|
2513
1504
|
address: this.contractAddress,
|
|
2514
|
-
abi:
|
|
2515
|
-
eventName: '
|
|
1505
|
+
abi: EssentialToken_jsonAbi,
|
|
1506
|
+
eventName: 'Transfer',
|
|
2516
1507
|
args: filter,
|
|
2517
1508
|
onLogs: (logs: any[]) => {
|
|
2518
1509
|
logs.forEach((log: any) => {
|
|
@@ -2522,16 +1513,16 @@ export class DefiTokenFixedSupply_json {
|
|
|
2522
1513
|
}) as () => void;
|
|
2523
1514
|
},
|
|
2524
1515
|
/**
|
|
2525
|
-
* Watch
|
|
1516
|
+
* Watch UnblockedAccount events
|
|
2526
1517
|
* @param callback Function to call when event is emitted
|
|
2527
1518
|
* @param filter Optional filter for indexed parameters
|
|
2528
1519
|
* @returns Unwatch function to stop listening
|
|
2529
1520
|
*/
|
|
2530
|
-
|
|
1521
|
+
UnblockedAccount: (callback: (event: { _account: `0x${string}` }) => void, filter?: { _account: `0x${string}` }) => {
|
|
2531
1522
|
return this.publicClient.watchContractEvent({
|
|
2532
1523
|
address: this.contractAddress,
|
|
2533
|
-
abi:
|
|
2534
|
-
eventName: '
|
|
1524
|
+
abi: EssentialToken_jsonAbi,
|
|
1525
|
+
eventName: 'UnblockedAccount',
|
|
2535
1526
|
args: filter,
|
|
2536
1527
|
onLogs: (logs: any[]) => {
|
|
2537
1528
|
logs.forEach((log: any) => {
|
|
@@ -2541,17 +1532,17 @@ export class DefiTokenFixedSupply_json {
|
|
|
2541
1532
|
}) as () => void;
|
|
2542
1533
|
},
|
|
2543
1534
|
/**
|
|
2544
|
-
* Watch
|
|
1535
|
+
* Watch Unpaused events
|
|
2545
1536
|
* @param callback Function to call when event is emitted
|
|
2546
1537
|
* @param filter Optional filter for indexed parameters
|
|
2547
1538
|
* @returns Unwatch function to stop listening
|
|
2548
1539
|
*/
|
|
2549
|
-
|
|
1540
|
+
Unpaused: (callback: (event: { account: `0x${string}` }) => void) => {
|
|
2550
1541
|
return this.publicClient.watchContractEvent({
|
|
2551
1542
|
address: this.contractAddress,
|
|
2552
|
-
abi:
|
|
2553
|
-
eventName: '
|
|
2554
|
-
|
|
1543
|
+
abi: EssentialToken_jsonAbi,
|
|
1544
|
+
eventName: 'Unpaused',
|
|
1545
|
+
|
|
2555
1546
|
onLogs: (logs: any[]) => {
|
|
2556
1547
|
logs.forEach((log: any) => {
|
|
2557
1548
|
callback(log.args as any);
|