@gitmyabi/dec 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,314 +1,358 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * Decentr_json ABI
3
+ * DarkEnergyCrystals ABI
4
4
  *
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
- export declare const Decentr_jsonAbi: readonly [{
8
- readonly inputs: readonly [{
9
- readonly internalType: "address";
10
- readonly name: "saleAddress";
11
- readonly type: "address";
7
+ export declare const DarkEnergyCrystalsAbi: readonly [{
8
+ readonly constant: true;
9
+ readonly inputs: readonly [];
10
+ readonly name: "name";
11
+ readonly outputs: readonly [{
12
+ readonly name: "";
13
+ readonly type: "string";
12
14
  }];
13
- readonly stateMutability: "nonpayable";
14
- readonly type: "constructor";
15
+ readonly payable: false;
16
+ readonly stateMutability: "view";
17
+ readonly type: "function";
15
18
  }, {
16
- readonly anonymous: false;
19
+ readonly constant: false;
17
20
  readonly inputs: readonly [{
18
- readonly indexed: true;
19
- readonly internalType: "address";
20
- readonly name: "owner";
21
- readonly type: "address";
22
- }, {
23
- readonly indexed: true;
24
- readonly internalType: "address";
25
21
  readonly name: "spender";
26
22
  readonly type: "address";
27
23
  }, {
28
- readonly indexed: false;
29
- readonly internalType: "uint256";
30
- readonly name: "value";
24
+ readonly name: "amount";
31
25
  readonly type: "uint256";
32
26
  }];
33
- readonly name: "Approval";
34
- readonly type: "event";
35
- }, {
36
- readonly anonymous: false;
37
- readonly inputs: readonly [{
38
- readonly indexed: false;
39
- readonly internalType: "address";
40
- readonly name: "account";
41
- readonly type: "address";
27
+ readonly name: "approve";
28
+ readonly outputs: readonly [{
29
+ readonly name: "";
30
+ readonly type: "bool";
42
31
  }];
43
- readonly name: "Paused";
44
- readonly type: "event";
32
+ readonly payable: false;
33
+ readonly stateMutability: "nonpayable";
34
+ readonly type: "function";
45
35
  }, {
46
- readonly anonymous: false;
47
- readonly inputs: readonly [{
48
- readonly indexed: false;
49
- readonly internalType: "address";
50
- readonly name: "minter";
51
- readonly type: "address";
36
+ readonly constant: true;
37
+ readonly inputs: readonly [];
38
+ readonly name: "totalSupply";
39
+ readonly outputs: readonly [{
40
+ readonly name: "";
41
+ readonly type: "uint256";
52
42
  }];
53
- readonly name: "TokenMinterUpdated";
54
- readonly type: "event";
43
+ readonly payable: false;
44
+ readonly stateMutability: "view";
45
+ readonly type: "function";
55
46
  }, {
56
- readonly anonymous: false;
47
+ readonly constant: false;
57
48
  readonly inputs: readonly [{
58
- readonly indexed: true;
59
- readonly internalType: "address";
60
- readonly name: "from";
49
+ readonly name: "sender";
61
50
  readonly type: "address";
62
51
  }, {
63
- readonly indexed: true;
64
- readonly internalType: "address";
65
- readonly name: "to";
52
+ readonly name: "recipient";
66
53
  readonly type: "address";
67
54
  }, {
68
- readonly indexed: false;
69
- readonly internalType: "uint256";
70
- readonly name: "value";
55
+ readonly name: "amount";
71
56
  readonly type: "uint256";
72
57
  }];
73
- readonly name: "Transfer";
74
- readonly type: "event";
75
- }, {
76
- readonly anonymous: false;
77
- readonly inputs: readonly [{
78
- readonly indexed: false;
79
- readonly internalType: "address";
80
- readonly name: "account";
81
- readonly type: "address";
58
+ readonly name: "transferFrom";
59
+ readonly outputs: readonly [{
60
+ readonly name: "";
61
+ readonly type: "bool";
82
62
  }];
83
- readonly name: "Unpaused";
84
- readonly type: "event";
63
+ readonly payable: false;
64
+ readonly stateMutability: "nonpayable";
65
+ readonly type: "function";
85
66
  }, {
86
- readonly inputs: readonly [{
87
- readonly internalType: "address";
88
- readonly name: "owner";
89
- readonly type: "address";
90
- }, {
91
- readonly internalType: "address";
92
- readonly name: "spender";
93
- readonly type: "address";
94
- }];
95
- readonly name: "allowance";
67
+ readonly constant: true;
68
+ readonly inputs: readonly [];
69
+ readonly name: "decimals";
96
70
  readonly outputs: readonly [{
97
- readonly internalType: "uint256";
98
71
  readonly name: "";
99
72
  readonly type: "uint256";
100
73
  }];
74
+ readonly payable: false;
101
75
  readonly stateMutability: "view";
102
76
  readonly type: "function";
103
77
  }, {
78
+ readonly constant: false;
104
79
  readonly inputs: readonly [{
105
- readonly internalType: "address";
106
80
  readonly name: "spender";
107
81
  readonly type: "address";
108
82
  }, {
109
- readonly internalType: "uint256";
110
- readonly name: "amount";
83
+ readonly name: "addedValue";
111
84
  readonly type: "uint256";
112
85
  }];
113
- readonly name: "approve";
86
+ readonly name: "increaseAllowance";
114
87
  readonly outputs: readonly [{
115
- readonly internalType: "bool";
116
88
  readonly name: "";
117
89
  readonly type: "bool";
118
90
  }];
91
+ readonly payable: false;
119
92
  readonly stateMutability: "nonpayable";
120
93
  readonly type: "function";
121
94
  }, {
95
+ readonly constant: false;
96
+ readonly inputs: readonly [{
97
+ readonly name: "_quantity";
98
+ readonly type: "uint256";
99
+ }];
100
+ readonly name: "burn";
101
+ readonly outputs: readonly [];
102
+ readonly payable: false;
103
+ readonly stateMutability: "nonpayable";
104
+ readonly type: "function";
105
+ }, {
106
+ readonly constant: true;
122
107
  readonly inputs: readonly [{
123
- readonly internalType: "address";
124
108
  readonly name: "account";
125
109
  readonly type: "address";
126
110
  }];
127
111
  readonly name: "balanceOf";
128
112
  readonly outputs: readonly [{
129
- readonly internalType: "uint256";
130
113
  readonly name: "";
131
114
  readonly type: "uint256";
132
115
  }];
116
+ readonly payable: false;
133
117
  readonly stateMutability: "view";
134
118
  readonly type: "function";
135
119
  }, {
120
+ readonly constant: false;
136
121
  readonly inputs: readonly [];
137
- readonly name: "decimals";
138
- readonly outputs: readonly [{
139
- readonly internalType: "uint8";
140
- readonly name: "";
141
- readonly type: "uint8";
142
- }];
143
- readonly stateMutability: "view";
122
+ readonly name: "renounceOwnership";
123
+ readonly outputs: readonly [];
124
+ readonly payable: false;
125
+ readonly stateMutability: "nonpayable";
144
126
  readonly type: "function";
145
127
  }, {
128
+ readonly constant: false;
146
129
  readonly inputs: readonly [{
147
- readonly internalType: "address";
148
- readonly name: "spender";
130
+ readonly name: "_holder";
149
131
  readonly type: "address";
150
132
  }, {
151
- readonly internalType: "uint256";
152
- readonly name: "subtractedValue";
133
+ readonly name: "_quantity";
153
134
  readonly type: "uint256";
154
135
  }];
155
- readonly name: "decreaseAllowance";
136
+ readonly name: "unlock";
137
+ readonly outputs: readonly [];
138
+ readonly payable: false;
139
+ readonly stateMutability: "nonpayable";
140
+ readonly type: "function";
141
+ }, {
142
+ readonly constant: true;
143
+ readonly inputs: readonly [];
144
+ readonly name: "owner";
145
+ readonly outputs: readonly [{
146
+ readonly name: "";
147
+ readonly type: "address";
148
+ }];
149
+ readonly payable: false;
150
+ readonly stateMutability: "view";
151
+ readonly type: "function";
152
+ }, {
153
+ readonly constant: true;
154
+ readonly inputs: readonly [];
155
+ readonly name: "isOwner";
156
156
  readonly outputs: readonly [{
157
- readonly internalType: "bool";
158
157
  readonly name: "";
159
158
  readonly type: "bool";
160
159
  }];
160
+ readonly payable: false;
161
+ readonly stateMutability: "view";
162
+ readonly type: "function";
163
+ }, {
164
+ readonly constant: true;
165
+ readonly inputs: readonly [];
166
+ readonly name: "symbol";
167
+ readonly outputs: readonly [{
168
+ readonly name: "";
169
+ readonly type: "string";
170
+ }];
171
+ readonly payable: false;
172
+ readonly stateMutability: "view";
173
+ readonly type: "function";
174
+ }, {
175
+ readonly constant: false;
176
+ readonly inputs: readonly [{
177
+ readonly name: "_quantity";
178
+ readonly type: "uint256";
179
+ }];
180
+ readonly name: "mint";
181
+ readonly outputs: readonly [];
182
+ readonly payable: false;
161
183
  readonly stateMutability: "nonpayable";
162
184
  readonly type: "function";
163
185
  }, {
186
+ readonly constant: false;
164
187
  readonly inputs: readonly [{
165
- readonly internalType: "address";
166
188
  readonly name: "spender";
167
189
  readonly type: "address";
168
190
  }, {
169
- readonly internalType: "uint256";
170
- readonly name: "addedValue";
191
+ readonly name: "subtractedValue";
171
192
  readonly type: "uint256";
172
193
  }];
173
- readonly name: "increaseAllowance";
194
+ readonly name: "decreaseAllowance";
174
195
  readonly outputs: readonly [{
175
- readonly internalType: "bool";
176
196
  readonly name: "";
177
197
  readonly type: "bool";
178
198
  }];
199
+ readonly payable: false;
179
200
  readonly stateMutability: "nonpayable";
180
201
  readonly type: "function";
181
202
  }, {
203
+ readonly constant: false;
182
204
  readonly inputs: readonly [{
183
- readonly internalType: "address";
184
- readonly name: "receiver";
205
+ readonly name: "recipient";
185
206
  readonly type: "address";
186
207
  }, {
187
- readonly internalType: "uint256";
188
208
  readonly name: "amount";
189
209
  readonly type: "uint256";
190
210
  }];
191
- readonly name: "mintToken";
211
+ readonly name: "transfer";
192
212
  readonly outputs: readonly [{
193
- readonly internalType: "bool";
194
- readonly name: "success";
213
+ readonly name: "";
195
214
  readonly type: "bool";
196
215
  }];
216
+ readonly payable: false;
197
217
  readonly stateMutability: "nonpayable";
198
218
  readonly type: "function";
199
219
  }, {
200
- readonly inputs: readonly [];
201
- readonly name: "name";
220
+ readonly constant: true;
221
+ readonly inputs: readonly [{
222
+ readonly name: "owner";
223
+ readonly type: "address";
224
+ }, {
225
+ readonly name: "spender";
226
+ readonly type: "address";
227
+ }];
228
+ readonly name: "allowance";
202
229
  readonly outputs: readonly [{
203
- readonly internalType: "string";
204
230
  readonly name: "";
205
- readonly type: "string";
231
+ readonly type: "uint256";
206
232
  }];
233
+ readonly payable: false;
207
234
  readonly stateMutability: "view";
208
235
  readonly type: "function";
209
236
  }, {
210
- readonly inputs: readonly [];
211
- readonly name: "pause";
237
+ readonly constant: false;
238
+ readonly inputs: readonly [{
239
+ readonly name: "_steemAddr";
240
+ readonly type: "string";
241
+ }, {
242
+ readonly name: "_quantity";
243
+ readonly type: "uint256";
244
+ }];
245
+ readonly name: "lock";
212
246
  readonly outputs: readonly [];
247
+ readonly payable: false;
213
248
  readonly stateMutability: "nonpayable";
214
249
  readonly type: "function";
215
250
  }, {
216
- readonly inputs: readonly [];
217
- readonly name: "paused";
218
- readonly outputs: readonly [{
219
- readonly internalType: "bool";
220
- readonly name: "";
221
- readonly type: "bool";
222
- }];
223
- readonly stateMutability: "view";
224
- readonly type: "function";
225
- }, {
251
+ readonly constant: false;
226
252
  readonly inputs: readonly [{
227
- readonly internalType: "address";
228
- readonly name: "_minter";
253
+ readonly name: "newOwner";
229
254
  readonly type: "address";
230
255
  }];
231
- readonly name: "setMiter";
256
+ readonly name: "transferOwnership";
232
257
  readonly outputs: readonly [];
258
+ readonly payable: false;
233
259
  readonly stateMutability: "nonpayable";
234
260
  readonly type: "function";
235
261
  }, {
236
- readonly inputs: readonly [];
237
- readonly name: "symbol";
238
- readonly outputs: readonly [{
239
- readonly internalType: "string";
240
- readonly name: "";
241
- readonly type: "string";
262
+ readonly constant: false;
263
+ readonly inputs: readonly [{
264
+ readonly name: "_newMinter";
265
+ readonly type: "address";
242
266
  }];
243
- readonly stateMutability: "view";
267
+ readonly name: "setMinter";
268
+ readonly outputs: readonly [];
269
+ readonly payable: false;
270
+ readonly stateMutability: "nonpayable";
244
271
  readonly type: "function";
245
272
  }, {
246
- readonly inputs: readonly [];
247
- readonly name: "totalSupply";
248
- readonly outputs: readonly [{
249
- readonly internalType: "uint256";
250
- readonly name: "";
251
- readonly type: "uint256";
273
+ readonly anonymous: false;
274
+ readonly inputs: readonly [{
275
+ readonly indexed: true;
276
+ readonly name: "minter";
277
+ readonly type: "address";
252
278
  }];
253
- readonly stateMutability: "view";
254
- readonly type: "function";
279
+ readonly name: "SetMinter";
280
+ readonly type: "event";
255
281
  }, {
282
+ readonly anonymous: false;
256
283
  readonly inputs: readonly [{
257
- readonly internalType: "address";
258
- readonly name: "recipient";
284
+ readonly indexed: true;
285
+ readonly name: "holder";
259
286
  readonly type: "address";
260
287
  }, {
261
- readonly internalType: "uint256";
288
+ readonly indexed: true;
262
289
  readonly name: "amount";
263
290
  readonly type: "uint256";
291
+ }, {
292
+ readonly indexed: false;
293
+ readonly name: "steemAddr";
294
+ readonly type: "string";
264
295
  }];
265
- readonly name: "transfer";
266
- readonly outputs: readonly [{
267
- readonly internalType: "bool";
268
- readonly name: "";
269
- readonly type: "bool";
296
+ readonly name: "LockCrystals";
297
+ readonly type: "event";
298
+ }, {
299
+ readonly anonymous: false;
300
+ readonly inputs: readonly [{
301
+ readonly indexed: true;
302
+ readonly name: "previousOwner";
303
+ readonly type: "address";
304
+ }, {
305
+ readonly indexed: true;
306
+ readonly name: "newOwner";
307
+ readonly type: "address";
270
308
  }];
271
- readonly stateMutability: "nonpayable";
272
- readonly type: "function";
309
+ readonly name: "OwnershipTransferred";
310
+ readonly type: "event";
273
311
  }, {
312
+ readonly anonymous: false;
274
313
  readonly inputs: readonly [{
275
- readonly internalType: "address";
276
- readonly name: "sender";
314
+ readonly indexed: true;
315
+ readonly name: "from";
277
316
  readonly type: "address";
278
317
  }, {
279
- readonly internalType: "address";
280
- readonly name: "recipient";
318
+ readonly indexed: true;
319
+ readonly name: "to";
281
320
  readonly type: "address";
282
321
  }, {
283
- readonly internalType: "uint256";
284
- readonly name: "amount";
322
+ readonly indexed: false;
323
+ readonly name: "value";
285
324
  readonly type: "uint256";
286
325
  }];
287
- readonly name: "transferFrom";
288
- readonly outputs: readonly [{
289
- readonly internalType: "bool";
290
- readonly name: "";
291
- readonly type: "bool";
292
- }];
293
- readonly stateMutability: "nonpayable";
294
- readonly type: "function";
326
+ readonly name: "Transfer";
327
+ readonly type: "event";
295
328
  }, {
296
- readonly inputs: readonly [];
297
- readonly name: "unpause";
298
- readonly outputs: readonly [];
299
- readonly stateMutability: "nonpayable";
300
- readonly type: "function";
329
+ readonly anonymous: false;
330
+ readonly inputs: readonly [{
331
+ readonly indexed: true;
332
+ readonly name: "owner";
333
+ readonly type: "address";
334
+ }, {
335
+ readonly indexed: true;
336
+ readonly name: "spender";
337
+ readonly type: "address";
338
+ }, {
339
+ readonly indexed: false;
340
+ readonly name: "value";
341
+ readonly type: "uint256";
342
+ }];
343
+ readonly name: "Approval";
344
+ readonly type: "event";
301
345
  }];
302
346
  /**
303
- * Type-safe ABI for Decentr_json
347
+ * Type-safe ABI for DarkEnergyCrystals
304
348
  */
305
- export type Decentr_jsonAbi = typeof Decentr_jsonAbi;
349
+ export type DarkEnergyCrystalsAbi = typeof DarkEnergyCrystalsAbi;
306
350
  /**
307
- * Contract instance type for Decentr_json
351
+ * Contract instance type for DarkEnergyCrystals
308
352
  */
309
- export type Decentr_jsonContract = any;
353
+ export type DarkEnergyCrystalsContract = any;
310
354
  /**
311
- * Decentr_json Contract Class
355
+ * DarkEnergyCrystals Contract Class
312
356
  *
313
357
  * Provides a class-based API similar to TypeChain for interacting with the contract.
314
358
  *
@@ -316,12 +360,12 @@ export type Decentr_jsonContract = any;
316
360
  * ```typescript
317
361
  * import { createPublicClient, createWalletClient, http } from 'viem';
318
362
  * import { mainnet } from 'viem/chains';
319
- * import { Decentr_json } from 'Decentr_json';
363
+ * import { DarkEnergyCrystals } from 'DarkEnergyCrystals';
320
364
  *
321
365
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
322
366
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
323
367
  *
324
- * const contract = new Decentr_json('0x...', { publicClient, walletClient });
368
+ * const contract = new DarkEnergyCrystals('0x...', { publicClient, walletClient });
325
369
  *
326
370
  * // Read functions
327
371
  * const result = await contract.balanceOf('0x...');
@@ -339,7 +383,7 @@ export type Decentr_jsonContract = any;
339
383
  * });
340
384
  * ```
341
385
  */
342
- export declare class Decentr_json {
386
+ export declare class DarkEnergyCrystals {
343
387
  private contract;
344
388
  private contractAddress;
345
389
  private publicClient;
@@ -352,44 +396,49 @@ export declare class Decentr_json {
352
396
  */
353
397
  get address(): Address;
354
398
  /**
355
- * Get the underlying viem contract instance
399
+ * Get the underlying viem contract instance.
356
400
  */
357
- getContract(): Decentr_jsonContract;
401
+ getContract(): DarkEnergyCrystalsContract;
358
402
  /**
359
- * allowance
403
+ * name
360
404
  * view
361
405
  */
362
- allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
406
+ name(): Promise<string>;
363
407
  /**
364
- * balanceOf
408
+ * totalSupply
365
409
  * view
366
410
  */
367
- balanceOf(account: `0x${string}`): Promise<bigint>;
411
+ totalSupply(): Promise<bigint>;
368
412
  /**
369
413
  * decimals
370
414
  * view
371
415
  */
372
416
  decimals(): Promise<bigint>;
373
417
  /**
374
- * name
418
+ * balanceOf
375
419
  * view
376
420
  */
377
- name(): Promise<string>;
421
+ balanceOf(account: `0x${string}`): Promise<bigint>;
378
422
  /**
379
- * paused
423
+ * owner
380
424
  * view
381
425
  */
382
- paused(): Promise<boolean>;
426
+ owner(): Promise<`0x${string}`>;
427
+ /**
428
+ * isOwner
429
+ * view
430
+ */
431
+ isOwner(): Promise<boolean>;
383
432
  /**
384
433
  * symbol
385
434
  * view
386
435
  */
387
436
  symbol(): Promise<string>;
388
437
  /**
389
- * totalSupply
438
+ * allowance
390
439
  * view
391
440
  */
392
- totalSupply(): Promise<bigint>;
441
+ allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
393
442
  /**
394
443
  * approve
395
444
  * nonpayable
@@ -408,11 +457,11 @@ export declare class Decentr_json {
408
457
  value?: bigint;
409
458
  }): Promise<`0x${string}`>;
410
459
  /**
411
- * decreaseAllowance
460
+ * transferFrom
412
461
  * nonpayable
413
462
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
414
463
  */
415
- decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
464
+ transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
416
465
  accessList?: import('viem').AccessList;
417
466
  authorizationList?: import('viem').AuthorizationList;
418
467
  chain?: import('viem').Chain | null;
@@ -442,11 +491,45 @@ export declare class Decentr_json {
442
491
  value?: bigint;
443
492
  }): Promise<`0x${string}`>;
444
493
  /**
445
- * mintToken
494
+ * burn
495
+ * nonpayable
496
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
497
+ */
498
+ burn(_quantity: bigint, options?: {
499
+ accessList?: import('viem').AccessList;
500
+ authorizationList?: import('viem').AuthorizationList;
501
+ chain?: import('viem').Chain | null;
502
+ dataSuffix?: `0x${string}`;
503
+ gas?: bigint;
504
+ gasPrice?: bigint;
505
+ maxFeePerGas?: bigint;
506
+ maxPriorityFeePerGas?: bigint;
507
+ nonce?: number;
508
+ value?: bigint;
509
+ }): Promise<`0x${string}`>;
510
+ /**
511
+ * renounceOwnership
512
+ * nonpayable
513
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
514
+ */
515
+ renounceOwnership(options?: {
516
+ accessList?: import('viem').AccessList;
517
+ authorizationList?: import('viem').AuthorizationList;
518
+ chain?: import('viem').Chain | null;
519
+ dataSuffix?: `0x${string}`;
520
+ gas?: bigint;
521
+ gasPrice?: bigint;
522
+ maxFeePerGas?: bigint;
523
+ maxPriorityFeePerGas?: bigint;
524
+ nonce?: number;
525
+ value?: bigint;
526
+ }): Promise<`0x${string}`>;
527
+ /**
528
+ * unlock
446
529
  * nonpayable
447
530
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
448
531
  */
449
- mintToken(receiver: `0x${string}`, amount: bigint, options?: {
532
+ unlock(_holder: `0x${string}`, _quantity: bigint, options?: {
450
533
  accessList?: import('viem').AccessList;
451
534
  authorizationList?: import('viem').AuthorizationList;
452
535
  chain?: import('viem').Chain | null;
@@ -459,11 +542,11 @@ export declare class Decentr_json {
459
542
  value?: bigint;
460
543
  }): Promise<`0x${string}`>;
461
544
  /**
462
- * pause
545
+ * mint
463
546
  * nonpayable
464
547
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
465
548
  */
466
- pause(options?: {
549
+ mint(_quantity: bigint, options?: {
467
550
  accessList?: import('viem').AccessList;
468
551
  authorizationList?: import('viem').AuthorizationList;
469
552
  chain?: import('viem').Chain | null;
@@ -476,11 +559,11 @@ export declare class Decentr_json {
476
559
  value?: bigint;
477
560
  }): Promise<`0x${string}`>;
478
561
  /**
479
- * setMiter
562
+ * decreaseAllowance
480
563
  * nonpayable
481
564
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
482
565
  */
483
- setMiter(_minter: `0x${string}`, options?: {
566
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
484
567
  accessList?: import('viem').AccessList;
485
568
  authorizationList?: import('viem').AuthorizationList;
486
569
  chain?: import('viem').Chain | null;
@@ -510,11 +593,11 @@ export declare class Decentr_json {
510
593
  value?: bigint;
511
594
  }): Promise<`0x${string}`>;
512
595
  /**
513
- * transferFrom
596
+ * lock
514
597
  * nonpayable
515
598
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
516
599
  */
517
- transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
600
+ lock(_steemAddr: string, _quantity: bigint, options?: {
518
601
  accessList?: import('viem').AccessList;
519
602
  authorizationList?: import('viem').AuthorizationList;
520
603
  chain?: import('viem').Chain | null;
@@ -527,11 +610,28 @@ export declare class Decentr_json {
527
610
  value?: bigint;
528
611
  }): Promise<`0x${string}`>;
529
612
  /**
530
- * unpause
613
+ * transferOwnership
531
614
  * nonpayable
532
615
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
533
616
  */
534
- unpause(options?: {
617
+ transferOwnership(newOwner: `0x${string}`, options?: {
618
+ accessList?: import('viem').AccessList;
619
+ authorizationList?: import('viem').AuthorizationList;
620
+ chain?: import('viem').Chain | null;
621
+ dataSuffix?: `0x${string}`;
622
+ gas?: bigint;
623
+ gasPrice?: bigint;
624
+ maxFeePerGas?: bigint;
625
+ maxPriorityFeePerGas?: bigint;
626
+ nonce?: number;
627
+ value?: bigint;
628
+ }): Promise<`0x${string}`>;
629
+ /**
630
+ * setMinter
631
+ * nonpayable
632
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
633
+ */
634
+ setMinter(_newMinter: `0x${string}`, options?: {
535
635
  accessList?: import('viem').AccessList;
536
636
  authorizationList?: import('viem').AuthorizationList;
537
637
  chain?: import('viem').Chain | null;
@@ -570,11 +670,11 @@ export declare class Decentr_json {
570
670
  value?: bigint;
571
671
  }): Promise<boolean>;
572
672
  /**
573
- * Simulate decreaseAllowance
673
+ * Simulate transferFrom
574
674
  * Returns gas estimate and result without sending transaction
575
675
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
576
676
  */
577
- decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
677
+ transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
578
678
  accessList?: import("viem").AccessList;
579
679
  authorizationList?: import("viem").AuthorizationList;
580
680
  chain?: import("viem").Chain | null;
@@ -604,11 +704,11 @@ export declare class Decentr_json {
604
704
  value?: bigint;
605
705
  }): Promise<boolean>;
606
706
  /**
607
- * Simulate mintToken
707
+ * Simulate burn
608
708
  * Returns gas estimate and result without sending transaction
609
709
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
610
710
  */
611
- mintToken(receiver: `0x${string}`, amount: bigint, options?: {
711
+ burn(_quantity: bigint, options?: {
612
712
  accessList?: import("viem").AccessList;
613
713
  authorizationList?: import("viem").AuthorizationList;
614
714
  chain?: import("viem").Chain | null;
@@ -619,13 +719,13 @@ export declare class Decentr_json {
619
719
  maxPriorityFeePerGas?: bigint;
620
720
  nonce?: number;
621
721
  value?: bigint;
622
- }): Promise<boolean>;
722
+ }): Promise<void>;
623
723
  /**
624
- * Simulate pause
724
+ * Simulate renounceOwnership
625
725
  * Returns gas estimate and result without sending transaction
626
726
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
627
727
  */
628
- pause(options?: {
728
+ renounceOwnership(options?: {
629
729
  accessList?: import("viem").AccessList;
630
730
  authorizationList?: import("viem").AuthorizationList;
631
731
  chain?: import("viem").Chain | null;
@@ -638,11 +738,11 @@ export declare class Decentr_json {
638
738
  value?: bigint;
639
739
  }): Promise<void>;
640
740
  /**
641
- * Simulate setMiter
741
+ * Simulate unlock
642
742
  * Returns gas estimate and result without sending transaction
643
743
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
644
744
  */
645
- setMiter(_minter: `0x${string}`, options?: {
745
+ unlock(_holder: `0x${string}`, _quantity: bigint, options?: {
646
746
  accessList?: import("viem").AccessList;
647
747
  authorizationList?: import("viem").AuthorizationList;
648
748
  chain?: import("viem").Chain | null;
@@ -654,6 +754,40 @@ export declare class Decentr_json {
654
754
  nonce?: number;
655
755
  value?: bigint;
656
756
  }): Promise<void>;
757
+ /**
758
+ * Simulate mint
759
+ * Returns gas estimate and result without sending transaction
760
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
761
+ */
762
+ mint(_quantity: bigint, options?: {
763
+ accessList?: import("viem").AccessList;
764
+ authorizationList?: import("viem").AuthorizationList;
765
+ chain?: import("viem").Chain | null;
766
+ dataSuffix?: `0x${string}`;
767
+ gas?: bigint;
768
+ gasPrice?: bigint;
769
+ maxFeePerGas?: bigint;
770
+ maxPriorityFeePerGas?: bigint;
771
+ nonce?: number;
772
+ value?: bigint;
773
+ }): Promise<void>;
774
+ /**
775
+ * Simulate decreaseAllowance
776
+ * Returns gas estimate and result without sending transaction
777
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
778
+ */
779
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
780
+ accessList?: import("viem").AccessList;
781
+ authorizationList?: import("viem").AuthorizationList;
782
+ chain?: import("viem").Chain | null;
783
+ dataSuffix?: `0x${string}`;
784
+ gas?: bigint;
785
+ gasPrice?: bigint;
786
+ maxFeePerGas?: bigint;
787
+ maxPriorityFeePerGas?: bigint;
788
+ nonce?: number;
789
+ value?: bigint;
790
+ }): Promise<boolean>;
657
791
  /**
658
792
  * Simulate transfer
659
793
  * Returns gas estimate and result without sending transaction
@@ -672,11 +806,11 @@ export declare class Decentr_json {
672
806
  value?: bigint;
673
807
  }): Promise<boolean>;
674
808
  /**
675
- * Simulate transferFrom
809
+ * Simulate lock
676
810
  * Returns gas estimate and result without sending transaction
677
811
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
678
812
  */
679
- transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
813
+ lock(_steemAddr: string, _quantity: bigint, options?: {
680
814
  accessList?: import("viem").AccessList;
681
815
  authorizationList?: import("viem").AuthorizationList;
682
816
  chain?: import("viem").Chain | null;
@@ -687,13 +821,30 @@ export declare class Decentr_json {
687
821
  maxPriorityFeePerGas?: bigint;
688
822
  nonce?: number;
689
823
  value?: bigint;
690
- }): Promise<boolean>;
824
+ }): Promise<void>;
825
+ /**
826
+ * Simulate transferOwnership
827
+ * Returns gas estimate and result without sending transaction
828
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
829
+ */
830
+ transferOwnership(newOwner: `0x${string}`, options?: {
831
+ accessList?: import("viem").AccessList;
832
+ authorizationList?: import("viem").AuthorizationList;
833
+ chain?: import("viem").Chain | null;
834
+ dataSuffix?: `0x${string}`;
835
+ gas?: bigint;
836
+ gasPrice?: bigint;
837
+ maxFeePerGas?: bigint;
838
+ maxPriorityFeePerGas?: bigint;
839
+ nonce?: number;
840
+ value?: bigint;
841
+ }): Promise<void>;
691
842
  /**
692
- * Simulate unpause
843
+ * Simulate setMinter
693
844
  * Returns gas estimate and result without sending transaction
694
845
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
695
846
  */
696
- unpause(options?: {
847
+ setMinter(_newMinter: `0x${string}`, options?: {
697
848
  accessList?: import("viem").AccessList;
698
849
  authorizationList?: import("viem").AuthorizationList;
699
850
  chain?: import("viem").Chain | null;
@@ -720,37 +871,43 @@ export declare class Decentr_json {
720
871
  */
721
872
  get watch(): {
722
873
  /**
723
- * Watch Approval events
874
+ * Watch SetMinter events
724
875
  * @param callback Function to call when event is emitted
725
876
  * @param filter Optional filter for indexed parameters
726
877
  * @returns Unwatch function to stop listening
727
878
  */
728
- Approval: (callback: (event: {
729
- owner: `0x${string}`;
730
- spender: `0x${string}`;
731
- value: bigint;
879
+ SetMinter: (callback: (event: {
880
+ minter: `0x${string}`;
732
881
  }) => void, filter?: {
733
- owner: `0x${string}`;
734
- spender: `0x${string}`;
882
+ minter?: `0x${string}` | `0x${string}`[] | null;
735
883
  }) => () => void;
736
884
  /**
737
- * Watch Paused events
885
+ * Watch LockCrystals events
738
886
  * @param callback Function to call when event is emitted
739
887
  * @param filter Optional filter for indexed parameters
740
888
  * @returns Unwatch function to stop listening
741
889
  */
742
- Paused: (callback: (event: {
743
- account: `0x${string}`;
744
- }) => void) => () => void;
890
+ LockCrystals: (callback: (event: {
891
+ holder: `0x${string}`;
892
+ amount: bigint;
893
+ steemAddr: string;
894
+ }) => void, filter?: {
895
+ holder?: `0x${string}` | `0x${string}`[] | null;
896
+ amount?: bigint | bigint[] | null;
897
+ }) => () => void;
745
898
  /**
746
- * Watch TokenMinterUpdated events
899
+ * Watch OwnershipTransferred events
747
900
  * @param callback Function to call when event is emitted
748
901
  * @param filter Optional filter for indexed parameters
749
902
  * @returns Unwatch function to stop listening
750
903
  */
751
- TokenMinterUpdated: (callback: (event: {
752
- minter: `0x${string}`;
753
- }) => void) => () => void;
904
+ OwnershipTransferred: (callback: (event: {
905
+ previousOwner: `0x${string}`;
906
+ newOwner: `0x${string}`;
907
+ }) => void, filter?: {
908
+ previousOwner?: `0x${string}` | `0x${string}`[] | null;
909
+ newOwner?: `0x${string}` | `0x${string}`[] | null;
910
+ }) => () => void;
754
911
  /**
755
912
  * Watch Transfer events
756
913
  * @param callback Function to call when event is emitted
@@ -762,17 +919,22 @@ export declare class Decentr_json {
762
919
  to: `0x${string}`;
763
920
  value: bigint;
764
921
  }) => void, filter?: {
765
- from: `0x${string}`;
766
- to: `0x${string}`;
922
+ from?: `0x${string}` | `0x${string}`[] | null;
923
+ to?: `0x${string}` | `0x${string}`[] | null;
767
924
  }) => () => void;
768
925
  /**
769
- * Watch Unpaused events
926
+ * Watch Approval events
770
927
  * @param callback Function to call when event is emitted
771
928
  * @param filter Optional filter for indexed parameters
772
929
  * @returns Unwatch function to stop listening
773
930
  */
774
- Unpaused: (callback: (event: {
775
- account: `0x${string}`;
776
- }) => void) => () => void;
931
+ Approval: (callback: (event: {
932
+ owner: `0x${string}`;
933
+ spender: `0x${string}`;
934
+ value: bigint;
935
+ }) => void, filter?: {
936
+ owner?: `0x${string}` | `0x${string}`[] | null;
937
+ spender?: `0x${string}` | `0x${string}`[] | null;
938
+ }) => () => void;
777
939
  };
778
940
  }