@gitmyabi/dusd 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,105 +1,60 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * MachineShare_json ABI
3
+ * DigitalUSD ABI
4
4
  *
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
- export declare const MachineShare_jsonAbi: readonly [{
7
+ export declare const DigitalUSDAbi: readonly [{
8
8
  readonly inputs: readonly [{
9
- readonly internalType: "string";
10
- readonly name: "_name";
11
- readonly type: "string";
12
- }, {
13
- readonly internalType: "string";
14
- readonly name: "_symbol";
15
- readonly type: "string";
16
- }, {
17
9
  readonly internalType: "address";
18
- readonly name: "_initialMinter";
10
+ readonly name: "initialOwner";
19
11
  readonly type: "address";
20
12
  }];
21
13
  readonly stateMutability: "nonpayable";
22
14
  readonly type: "constructor";
23
15
  }, {
24
- readonly inputs: readonly [{
25
- readonly internalType: "address";
26
- readonly name: "spender";
27
- readonly type: "address";
28
- }, {
29
- readonly internalType: "uint256";
30
- readonly name: "allowance";
31
- readonly type: "uint256";
32
- }, {
33
- readonly internalType: "uint256";
34
- readonly name: "needed";
35
- readonly type: "uint256";
36
- }];
37
- readonly name: "ERC20InsufficientAllowance";
16
+ readonly inputs: readonly [];
17
+ readonly name: "AccountIsFrozen";
38
18
  readonly type: "error";
39
19
  }, {
40
- readonly inputs: readonly [{
41
- readonly internalType: "address";
42
- readonly name: "sender";
43
- readonly type: "address";
44
- }, {
45
- readonly internalType: "uint256";
46
- readonly name: "balance";
47
- readonly type: "uint256";
48
- }, {
49
- readonly internalType: "uint256";
50
- readonly name: "needed";
51
- readonly type: "uint256";
52
- }];
53
- readonly name: "ERC20InsufficientBalance";
20
+ readonly inputs: readonly [];
21
+ readonly name: "CapExceeded";
54
22
  readonly type: "error";
55
23
  }, {
56
- readonly inputs: readonly [{
57
- readonly internalType: "address";
58
- readonly name: "approver";
59
- readonly type: "address";
60
- }];
61
- readonly name: "ERC20InvalidApprover";
24
+ readonly inputs: readonly [];
25
+ readonly name: "ContractPaused";
62
26
  readonly type: "error";
63
27
  }, {
64
- readonly inputs: readonly [{
65
- readonly internalType: "address";
66
- readonly name: "receiver";
67
- readonly type: "address";
68
- }];
69
- readonly name: "ERC20InvalidReceiver";
28
+ readonly inputs: readonly [];
29
+ readonly name: "InsufficientAllowance";
70
30
  readonly type: "error";
71
31
  }, {
72
- readonly inputs: readonly [{
73
- readonly internalType: "address";
74
- readonly name: "sender";
75
- readonly type: "address";
76
- }];
77
- readonly name: "ERC20InvalidSender";
32
+ readonly inputs: readonly [];
33
+ readonly name: "InsufficientBalance";
78
34
  readonly type: "error";
79
35
  }, {
80
- readonly inputs: readonly [{
81
- readonly internalType: "address";
82
- readonly name: "spender";
83
- readonly type: "address";
84
- }];
85
- readonly name: "ERC20InvalidSpender";
36
+ readonly inputs: readonly [];
37
+ readonly name: "Unauthorized";
86
38
  readonly type: "error";
87
39
  }, {
88
- readonly inputs: readonly [{
89
- readonly internalType: "address";
90
- readonly name: "owner";
91
- readonly type: "address";
92
- }];
93
- readonly name: "OwnableInvalidOwner";
40
+ readonly inputs: readonly [];
41
+ readonly name: "ZeroAddress";
94
42
  readonly type: "error";
95
43
  }, {
44
+ readonly anonymous: false;
96
45
  readonly inputs: readonly [{
46
+ readonly indexed: true;
97
47
  readonly internalType: "address";
98
48
  readonly name: "account";
99
49
  readonly type: "address";
50
+ }, {
51
+ readonly indexed: false;
52
+ readonly internalType: "bool";
53
+ readonly name: "frozen";
54
+ readonly type: "bool";
100
55
  }];
101
- readonly name: "OwnableUnauthorizedAccount";
102
- readonly type: "error";
56
+ readonly name: "AccountFrozen";
57
+ readonly type: "event";
103
58
  }, {
104
59
  readonly anonymous: false;
105
60
  readonly inputs: readonly [{
@@ -120,6 +75,21 @@ export declare const MachineShare_jsonAbi: readonly [{
120
75
  }];
121
76
  readonly name: "Approval";
122
77
  readonly type: "event";
78
+ }, {
79
+ readonly anonymous: false;
80
+ readonly inputs: readonly [{
81
+ readonly indexed: true;
82
+ readonly internalType: "address";
83
+ readonly name: "account";
84
+ readonly type: "address";
85
+ }, {
86
+ readonly indexed: false;
87
+ readonly internalType: "bool";
88
+ readonly name: "authorized";
89
+ readonly type: "bool";
90
+ }];
91
+ readonly name: "MinterUpdated";
92
+ readonly type: "event";
123
93
  }, {
124
94
  readonly anonymous: false;
125
95
  readonly inputs: readonly [{
@@ -130,7 +100,7 @@ export declare const MachineShare_jsonAbi: readonly [{
130
100
  }, {
131
101
  readonly indexed: true;
132
102
  readonly internalType: "address";
133
- readonly name: "newOwner";
103
+ readonly name: "pendingOwner";
134
104
  readonly type: "address";
135
105
  }];
136
106
  readonly name: "OwnershipTransferStarted";
@@ -150,6 +120,16 @@ export declare const MachineShare_jsonAbi: readonly [{
150
120
  }];
151
121
  readonly name: "OwnershipTransferred";
152
122
  readonly type: "event";
123
+ }, {
124
+ readonly anonymous: false;
125
+ readonly inputs: readonly [{
126
+ readonly indexed: true;
127
+ readonly internalType: "address";
128
+ readonly name: "account";
129
+ readonly type: "address";
130
+ }];
131
+ readonly name: "Paused";
132
+ readonly type: "event";
153
133
  }, {
154
134
  readonly anonymous: false;
155
135
  readonly inputs: readonly [{
@@ -170,6 +150,26 @@ export declare const MachineShare_jsonAbi: readonly [{
170
150
  }];
171
151
  readonly name: "Transfer";
172
152
  readonly type: "event";
153
+ }, {
154
+ readonly anonymous: false;
155
+ readonly inputs: readonly [{
156
+ readonly indexed: true;
157
+ readonly internalType: "address";
158
+ readonly name: "account";
159
+ readonly type: "address";
160
+ }];
161
+ readonly name: "Unpaused";
162
+ readonly type: "event";
163
+ }, {
164
+ readonly inputs: readonly [];
165
+ readonly name: "MAX_SUPPLY";
166
+ readonly outputs: readonly [{
167
+ readonly internalType: "uint256";
168
+ readonly name: "";
169
+ readonly type: "uint256";
170
+ }];
171
+ readonly stateMutability: "view";
172
+ readonly type: "function";
173
173
  }, {
174
174
  readonly inputs: readonly [];
175
175
  readonly name: "acceptOwnership";
@@ -179,11 +179,11 @@ export declare const MachineShare_jsonAbi: readonly [{
179
179
  }, {
180
180
  readonly inputs: readonly [{
181
181
  readonly internalType: "address";
182
- readonly name: "owner";
182
+ readonly name: "";
183
183
  readonly type: "address";
184
184
  }, {
185
185
  readonly internalType: "address";
186
- readonly name: "spender";
186
+ readonly name: "";
187
187
  readonly type: "address";
188
188
  }];
189
189
  readonly name: "allowance";
@@ -215,7 +215,7 @@ export declare const MachineShare_jsonAbi: readonly [{
215
215
  }, {
216
216
  readonly inputs: readonly [{
217
217
  readonly internalType: "address";
218
- readonly name: "account";
218
+ readonly name: "";
219
219
  readonly type: "address";
220
220
  }];
221
221
  readonly name: "balanceOf";
@@ -226,6 +226,20 @@ export declare const MachineShare_jsonAbi: readonly [{
226
226
  }];
227
227
  readonly stateMutability: "view";
228
228
  readonly type: "function";
229
+ }, {
230
+ readonly inputs: readonly [{
231
+ readonly internalType: "uint256";
232
+ readonly name: "value";
233
+ readonly type: "uint256";
234
+ }];
235
+ readonly name: "burn";
236
+ readonly outputs: readonly [{
237
+ readonly internalType: "bool";
238
+ readonly name: "";
239
+ readonly type: "bool";
240
+ }];
241
+ readonly stateMutability: "nonpayable";
242
+ readonly type: "function";
229
243
  }, {
230
244
  readonly inputs: readonly [{
231
245
  readonly internalType: "address";
@@ -233,11 +247,15 @@ export declare const MachineShare_jsonAbi: readonly [{
233
247
  readonly type: "address";
234
248
  }, {
235
249
  readonly internalType: "uint256";
236
- readonly name: "amount";
250
+ readonly name: "value";
237
251
  readonly type: "uint256";
238
252
  }];
239
- readonly name: "burn";
240
- readonly outputs: readonly [];
253
+ readonly name: "burnFrom";
254
+ readonly outputs: readonly [{
255
+ readonly internalType: "bool";
256
+ readonly name: "";
257
+ readonly type: "bool";
258
+ }];
241
259
  readonly stateMutability: "nonpayable";
242
260
  readonly type: "function";
243
261
  }, {
@@ -248,7 +266,21 @@ export declare const MachineShare_jsonAbi: readonly [{
248
266
  readonly name: "";
249
267
  readonly type: "uint8";
250
268
  }];
251
- readonly stateMutability: "pure";
269
+ readonly stateMutability: "view";
270
+ readonly type: "function";
271
+ }, {
272
+ readonly inputs: readonly [{
273
+ readonly internalType: "address";
274
+ readonly name: "";
275
+ readonly type: "address";
276
+ }];
277
+ readonly name: "frozen";
278
+ readonly outputs: readonly [{
279
+ readonly internalType: "bool";
280
+ readonly name: "";
281
+ readonly type: "bool";
282
+ }];
283
+ readonly stateMutability: "view";
252
284
  readonly type: "function";
253
285
  }, {
254
286
  readonly inputs: readonly [{
@@ -257,21 +289,29 @@ export declare const MachineShare_jsonAbi: readonly [{
257
289
  readonly type: "address";
258
290
  }, {
259
291
  readonly internalType: "uint256";
260
- readonly name: "amount";
292
+ readonly name: "value";
261
293
  readonly type: "uint256";
262
294
  }];
263
295
  readonly name: "mint";
264
- readonly outputs: readonly [];
296
+ readonly outputs: readonly [{
297
+ readonly internalType: "bool";
298
+ readonly name: "";
299
+ readonly type: "bool";
300
+ }];
265
301
  readonly stateMutability: "nonpayable";
266
302
  readonly type: "function";
267
303
  }, {
268
- readonly inputs: readonly [];
269
- readonly name: "minter";
270
- readonly outputs: readonly [{
304
+ readonly inputs: readonly [{
271
305
  readonly internalType: "address";
272
306
  readonly name: "";
273
307
  readonly type: "address";
274
308
  }];
309
+ readonly name: "minters";
310
+ readonly outputs: readonly [{
311
+ readonly internalType: "bool";
312
+ readonly name: "";
313
+ readonly type: "bool";
314
+ }];
275
315
  readonly stateMutability: "view";
276
316
  readonly type: "function";
277
317
  }, {
@@ -294,6 +334,22 @@ export declare const MachineShare_jsonAbi: readonly [{
294
334
  }];
295
335
  readonly stateMutability: "view";
296
336
  readonly type: "function";
337
+ }, {
338
+ readonly inputs: readonly [];
339
+ readonly name: "pause";
340
+ readonly outputs: readonly [];
341
+ readonly stateMutability: "nonpayable";
342
+ readonly type: "function";
343
+ }, {
344
+ readonly inputs: readonly [];
345
+ readonly name: "paused";
346
+ readonly outputs: readonly [{
347
+ readonly internalType: "bool";
348
+ readonly name: "";
349
+ readonly type: "bool";
350
+ }];
351
+ readonly stateMutability: "view";
352
+ readonly type: "function";
297
353
  }, {
298
354
  readonly inputs: readonly [];
299
355
  readonly name: "pendingOwner";
@@ -305,8 +361,30 @@ export declare const MachineShare_jsonAbi: readonly [{
305
361
  readonly stateMutability: "view";
306
362
  readonly type: "function";
307
363
  }, {
308
- readonly inputs: readonly [];
309
- readonly name: "renounceOwnership";
364
+ readonly inputs: readonly [{
365
+ readonly internalType: "address";
366
+ readonly name: "account";
367
+ readonly type: "address";
368
+ }, {
369
+ readonly internalType: "bool";
370
+ readonly name: "state";
371
+ readonly type: "bool";
372
+ }];
373
+ readonly name: "setFrozen";
374
+ readonly outputs: readonly [];
375
+ readonly stateMutability: "nonpayable";
376
+ readonly type: "function";
377
+ }, {
378
+ readonly inputs: readonly [{
379
+ readonly internalType: "address";
380
+ readonly name: "account";
381
+ readonly type: "address";
382
+ }, {
383
+ readonly internalType: "bool";
384
+ readonly name: "authorized";
385
+ readonly type: "bool";
386
+ }];
387
+ readonly name: "setMinter";
310
388
  readonly outputs: readonly [];
311
389
  readonly stateMutability: "nonpayable";
312
390
  readonly type: "function";
@@ -373,24 +451,30 @@ export declare const MachineShare_jsonAbi: readonly [{
373
451
  }, {
374
452
  readonly inputs: readonly [{
375
453
  readonly internalType: "address";
376
- readonly name: "newOwner";
454
+ readonly name: "nextOwner";
377
455
  readonly type: "address";
378
456
  }];
379
457
  readonly name: "transferOwnership";
380
458
  readonly outputs: readonly [];
381
459
  readonly stateMutability: "nonpayable";
382
460
  readonly type: "function";
461
+ }, {
462
+ readonly inputs: readonly [];
463
+ readonly name: "unpause";
464
+ readonly outputs: readonly [];
465
+ readonly stateMutability: "nonpayable";
466
+ readonly type: "function";
383
467
  }];
384
468
  /**
385
- * Type-safe ABI for MachineShare_json
469
+ * Type-safe ABI for DigitalUSD
386
470
  */
387
- export type MachineShare_jsonAbi = typeof MachineShare_jsonAbi;
471
+ export type DigitalUSDAbi = typeof DigitalUSDAbi;
388
472
  /**
389
- * Contract instance type for MachineShare_json
473
+ * Contract instance type for DigitalUSD
390
474
  */
391
- export type MachineShare_jsonContract = any;
475
+ export type DigitalUSDContract = any;
392
476
  /**
393
- * MachineShare_json Contract Class
477
+ * DigitalUSD Contract Class
394
478
  *
395
479
  * Provides a class-based API similar to TypeChain for interacting with the contract.
396
480
  *
@@ -398,12 +482,12 @@ export type MachineShare_jsonContract = any;
398
482
  * ```typescript
399
483
  * import { createPublicClient, createWalletClient, http } from 'viem';
400
484
  * import { mainnet } from 'viem/chains';
401
- * import { MachineShare_json } from 'MachineShare_json';
485
+ * import { DigitalUSD } from 'DigitalUSD';
402
486
  *
403
487
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
404
488
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
405
489
  *
406
- * const contract = new MachineShare_json('0x...', { publicClient, walletClient });
490
+ * const contract = new DigitalUSD('0x...', { publicClient, walletClient });
407
491
  *
408
492
  * // Read functions
409
493
  * const result = await contract.balanceOf('0x...');
@@ -421,7 +505,7 @@ export type MachineShare_jsonContract = any;
421
505
  * });
422
506
  * ```
423
507
  */
424
- export declare class MachineShare_json {
508
+ export declare class DigitalUSD {
425
509
  private contract;
426
510
  private contractAddress;
427
511
  private publicClient;
@@ -434,29 +518,39 @@ export declare class MachineShare_json {
434
518
  */
435
519
  get address(): Address;
436
520
  /**
437
- * Get the underlying viem contract instance
521
+ * Get the underlying viem contract instance.
522
+ */
523
+ getContract(): DigitalUSDContract;
524
+ /**
525
+ * MAX_SUPPLY
526
+ * view
438
527
  */
439
- getContract(): MachineShare_jsonContract;
528
+ MAX_SUPPLY(): Promise<bigint>;
440
529
  /**
441
530
  * allowance
442
531
  * view
443
532
  */
444
- allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
533
+ allowance(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
445
534
  /**
446
535
  * balanceOf
447
536
  * view
448
537
  */
449
- balanceOf(account: `0x${string}`): Promise<bigint>;
538
+ balanceOf(arg0: `0x${string}`): Promise<bigint>;
450
539
  /**
451
540
  * decimals
452
- * pure
541
+ * view
453
542
  */
454
543
  decimals(): Promise<bigint>;
455
544
  /**
456
- * minter
545
+ * frozen
546
+ * view
547
+ */
548
+ frozen(arg0: `0x${string}`): Promise<boolean>;
549
+ /**
550
+ * minters
457
551
  * view
458
552
  */
459
- minter(): Promise<`0x${string}`>;
553
+ minters(arg0: `0x${string}`): Promise<boolean>;
460
554
  /**
461
555
  * name
462
556
  * view
@@ -467,6 +561,11 @@ export declare class MachineShare_json {
467
561
  * view
468
562
  */
469
563
  owner(): Promise<`0x${string}`>;
564
+ /**
565
+ * paused
566
+ * view
567
+ */
568
+ paused(): Promise<boolean>;
470
569
  /**
471
570
  * pendingOwner
472
571
  * view
@@ -521,7 +620,24 @@ export declare class MachineShare_json {
521
620
  * nonpayable
522
621
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
523
622
  */
524
- burn(from: `0x${string}`, amount: bigint, options?: {
623
+ burn(value: bigint, options?: {
624
+ accessList?: import('viem').AccessList;
625
+ authorizationList?: import('viem').AuthorizationList;
626
+ chain?: import('viem').Chain | null;
627
+ dataSuffix?: `0x${string}`;
628
+ gas?: bigint;
629
+ gasPrice?: bigint;
630
+ maxFeePerGas?: bigint;
631
+ maxPriorityFeePerGas?: bigint;
632
+ nonce?: number;
633
+ value?: bigint;
634
+ }): Promise<`0x${string}`>;
635
+ /**
636
+ * burnFrom
637
+ * nonpayable
638
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
639
+ */
640
+ burnFrom(from: `0x${string}`, value: bigint, options?: {
525
641
  accessList?: import('viem').AccessList;
526
642
  authorizationList?: import('viem').AuthorizationList;
527
643
  chain?: import('viem').Chain | null;
@@ -538,7 +654,7 @@ export declare class MachineShare_json {
538
654
  * nonpayable
539
655
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
540
656
  */
541
- mint(to: `0x${string}`, amount: bigint, options?: {
657
+ mint(to: `0x${string}`, value: bigint, options?: {
542
658
  accessList?: import('viem').AccessList;
543
659
  authorizationList?: import('viem').AuthorizationList;
544
660
  chain?: import('viem').Chain | null;
@@ -551,11 +667,45 @@ export declare class MachineShare_json {
551
667
  value?: bigint;
552
668
  }): Promise<`0x${string}`>;
553
669
  /**
554
- * renounceOwnership
670
+ * pause
555
671
  * nonpayable
556
672
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
557
673
  */
558
- renounceOwnership(options?: {
674
+ pause(options?: {
675
+ accessList?: import('viem').AccessList;
676
+ authorizationList?: import('viem').AuthorizationList;
677
+ chain?: import('viem').Chain | null;
678
+ dataSuffix?: `0x${string}`;
679
+ gas?: bigint;
680
+ gasPrice?: bigint;
681
+ maxFeePerGas?: bigint;
682
+ maxPriorityFeePerGas?: bigint;
683
+ nonce?: number;
684
+ value?: bigint;
685
+ }): Promise<`0x${string}`>;
686
+ /**
687
+ * setFrozen
688
+ * nonpayable
689
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
690
+ */
691
+ setFrozen(account: `0x${string}`, state: boolean, options?: {
692
+ accessList?: import('viem').AccessList;
693
+ authorizationList?: import('viem').AuthorizationList;
694
+ chain?: import('viem').Chain | null;
695
+ dataSuffix?: `0x${string}`;
696
+ gas?: bigint;
697
+ gasPrice?: bigint;
698
+ maxFeePerGas?: bigint;
699
+ maxPriorityFeePerGas?: bigint;
700
+ nonce?: number;
701
+ value?: bigint;
702
+ }): Promise<`0x${string}`>;
703
+ /**
704
+ * setMinter
705
+ * nonpayable
706
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
707
+ */
708
+ setMinter(account: `0x${string}`, authorized: boolean, options?: {
559
709
  accessList?: import('viem').AccessList;
560
710
  authorizationList?: import('viem').AuthorizationList;
561
711
  chain?: import('viem').Chain | null;
@@ -606,7 +756,24 @@ export declare class MachineShare_json {
606
756
  * nonpayable
607
757
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
608
758
  */
609
- transferOwnership(newOwner: `0x${string}`, options?: {
759
+ transferOwnership(nextOwner: `0x${string}`, options?: {
760
+ accessList?: import('viem').AccessList;
761
+ authorizationList?: import('viem').AuthorizationList;
762
+ chain?: import('viem').Chain | null;
763
+ dataSuffix?: `0x${string}`;
764
+ gas?: bigint;
765
+ gasPrice?: bigint;
766
+ maxFeePerGas?: bigint;
767
+ maxPriorityFeePerGas?: bigint;
768
+ nonce?: number;
769
+ value?: bigint;
770
+ }): Promise<`0x${string}`>;
771
+ /**
772
+ * unpause
773
+ * nonpayable
774
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
775
+ */
776
+ unpause(options?: {
610
777
  accessList?: import('viem').AccessList;
611
778
  authorizationList?: import('viem').AuthorizationList;
612
779
  chain?: import('viem').Chain | null;
@@ -666,7 +833,7 @@ export declare class MachineShare_json {
666
833
  * Returns gas estimate and result without sending transaction
667
834
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
668
835
  */
669
- burn(from: `0x${string}`, amount: bigint, options?: {
836
+ burn(value: bigint, options?: {
670
837
  accessList?: import("viem").AccessList;
671
838
  authorizationList?: import("viem").AuthorizationList;
672
839
  chain?: import("viem").Chain | null;
@@ -677,13 +844,47 @@ export declare class MachineShare_json {
677
844
  maxPriorityFeePerGas?: bigint;
678
845
  nonce?: number;
679
846
  value?: bigint;
680
- }): Promise<void>;
847
+ }): Promise<boolean>;
848
+ /**
849
+ * Simulate burnFrom
850
+ * Returns gas estimate and result without sending transaction
851
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
852
+ */
853
+ burnFrom(from: `0x${string}`, value: bigint, options?: {
854
+ accessList?: import("viem").AccessList;
855
+ authorizationList?: import("viem").AuthorizationList;
856
+ chain?: import("viem").Chain | null;
857
+ dataSuffix?: `0x${string}`;
858
+ gas?: bigint;
859
+ gasPrice?: bigint;
860
+ maxFeePerGas?: bigint;
861
+ maxPriorityFeePerGas?: bigint;
862
+ nonce?: number;
863
+ value?: bigint;
864
+ }): Promise<boolean>;
681
865
  /**
682
866
  * Simulate mint
683
867
  * Returns gas estimate and result without sending transaction
684
868
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
685
869
  */
686
- mint(to: `0x${string}`, amount: bigint, options?: {
870
+ mint(to: `0x${string}`, value: bigint, options?: {
871
+ accessList?: import("viem").AccessList;
872
+ authorizationList?: import("viem").AuthorizationList;
873
+ chain?: import("viem").Chain | null;
874
+ dataSuffix?: `0x${string}`;
875
+ gas?: bigint;
876
+ gasPrice?: bigint;
877
+ maxFeePerGas?: bigint;
878
+ maxPriorityFeePerGas?: bigint;
879
+ nonce?: number;
880
+ value?: bigint;
881
+ }): Promise<boolean>;
882
+ /**
883
+ * Simulate pause
884
+ * Returns gas estimate and result without sending transaction
885
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
886
+ */
887
+ pause(options?: {
687
888
  accessList?: import("viem").AccessList;
688
889
  authorizationList?: import("viem").AuthorizationList;
689
890
  chain?: import("viem").Chain | null;
@@ -696,11 +897,28 @@ export declare class MachineShare_json {
696
897
  value?: bigint;
697
898
  }): Promise<void>;
698
899
  /**
699
- * Simulate renounceOwnership
900
+ * Simulate setFrozen
700
901
  * Returns gas estimate and result without sending transaction
701
902
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
702
903
  */
703
- renounceOwnership(options?: {
904
+ setFrozen(account: `0x${string}`, state: boolean, options?: {
905
+ accessList?: import("viem").AccessList;
906
+ authorizationList?: import("viem").AuthorizationList;
907
+ chain?: import("viem").Chain | null;
908
+ dataSuffix?: `0x${string}`;
909
+ gas?: bigint;
910
+ gasPrice?: bigint;
911
+ maxFeePerGas?: bigint;
912
+ maxPriorityFeePerGas?: bigint;
913
+ nonce?: number;
914
+ value?: bigint;
915
+ }): Promise<void>;
916
+ /**
917
+ * Simulate setMinter
918
+ * Returns gas estimate and result without sending transaction
919
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
920
+ */
921
+ setMinter(account: `0x${string}`, authorized: boolean, options?: {
704
922
  accessList?: import("viem").AccessList;
705
923
  authorizationList?: import("viem").AuthorizationList;
706
924
  chain?: import("viem").Chain | null;
@@ -751,7 +969,24 @@ export declare class MachineShare_json {
751
969
  * Returns gas estimate and result without sending transaction
752
970
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
753
971
  */
754
- transferOwnership(newOwner: `0x${string}`, options?: {
972
+ transferOwnership(nextOwner: `0x${string}`, options?: {
973
+ accessList?: import("viem").AccessList;
974
+ authorizationList?: import("viem").AuthorizationList;
975
+ chain?: import("viem").Chain | null;
976
+ dataSuffix?: `0x${string}`;
977
+ gas?: bigint;
978
+ gasPrice?: bigint;
979
+ maxFeePerGas?: bigint;
980
+ maxPriorityFeePerGas?: bigint;
981
+ nonce?: number;
982
+ value?: bigint;
983
+ }): Promise<void>;
984
+ /**
985
+ * Simulate unpause
986
+ * Returns gas estimate and result without sending transaction
987
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
988
+ */
989
+ unpause(options?: {
755
990
  accessList?: import("viem").AccessList;
756
991
  authorizationList?: import("viem").AuthorizationList;
757
992
  chain?: import("viem").Chain | null;
@@ -777,6 +1012,18 @@ export declare class MachineShare_json {
777
1012
  * unwatch();
778
1013
  */
779
1014
  get watch(): {
1015
+ /**
1016
+ * Watch AccountFrozen events
1017
+ * @param callback Function to call when event is emitted
1018
+ * @param filter Optional filter for indexed parameters
1019
+ * @returns Unwatch function to stop listening
1020
+ */
1021
+ AccountFrozen: (callback: (event: {
1022
+ account: `0x${string}`;
1023
+ frozen: boolean;
1024
+ }) => void, filter?: {
1025
+ account?: `0x${string}` | `0x${string}`[] | null;
1026
+ }) => () => void;
780
1027
  /**
781
1028
  * Watch Approval events
782
1029
  * @param callback Function to call when event is emitted
@@ -788,8 +1035,20 @@ export declare class MachineShare_json {
788
1035
  spender: `0x${string}`;
789
1036
  value: bigint;
790
1037
  }) => void, filter?: {
791
- owner: `0x${string}`;
792
- spender: `0x${string}`;
1038
+ owner?: `0x${string}` | `0x${string}`[] | null;
1039
+ spender?: `0x${string}` | `0x${string}`[] | null;
1040
+ }) => () => void;
1041
+ /**
1042
+ * Watch MinterUpdated events
1043
+ * @param callback Function to call when event is emitted
1044
+ * @param filter Optional filter for indexed parameters
1045
+ * @returns Unwatch function to stop listening
1046
+ */
1047
+ MinterUpdated: (callback: (event: {
1048
+ account: `0x${string}`;
1049
+ authorized: boolean;
1050
+ }) => void, filter?: {
1051
+ account?: `0x${string}` | `0x${string}`[] | null;
793
1052
  }) => () => void;
794
1053
  /**
795
1054
  * Watch OwnershipTransferStarted events
@@ -799,10 +1058,10 @@ export declare class MachineShare_json {
799
1058
  */
800
1059
  OwnershipTransferStarted: (callback: (event: {
801
1060
  previousOwner: `0x${string}`;
802
- newOwner: `0x${string}`;
1061
+ pendingOwner: `0x${string}`;
803
1062
  }) => void, filter?: {
804
- previousOwner: `0x${string}`;
805
- newOwner: `0x${string}`;
1063
+ previousOwner?: `0x${string}` | `0x${string}`[] | null;
1064
+ pendingOwner?: `0x${string}` | `0x${string}`[] | null;
806
1065
  }) => () => void;
807
1066
  /**
808
1067
  * Watch OwnershipTransferred events
@@ -814,8 +1073,19 @@ export declare class MachineShare_json {
814
1073
  previousOwner: `0x${string}`;
815
1074
  newOwner: `0x${string}`;
816
1075
  }) => void, filter?: {
817
- previousOwner: `0x${string}`;
818
- newOwner: `0x${string}`;
1076
+ previousOwner?: `0x${string}` | `0x${string}`[] | null;
1077
+ newOwner?: `0x${string}` | `0x${string}`[] | null;
1078
+ }) => () => void;
1079
+ /**
1080
+ * Watch Paused events
1081
+ * @param callback Function to call when event is emitted
1082
+ * @param filter Optional filter for indexed parameters
1083
+ * @returns Unwatch function to stop listening
1084
+ */
1085
+ Paused: (callback: (event: {
1086
+ account: `0x${string}`;
1087
+ }) => void, filter?: {
1088
+ account?: `0x${string}` | `0x${string}`[] | null;
819
1089
  }) => () => void;
820
1090
  /**
821
1091
  * Watch Transfer events
@@ -828,8 +1098,19 @@ export declare class MachineShare_json {
828
1098
  to: `0x${string}`;
829
1099
  value: bigint;
830
1100
  }) => void, filter?: {
831
- from: `0x${string}`;
832
- to: `0x${string}`;
1101
+ from?: `0x${string}` | `0x${string}`[] | null;
1102
+ to?: `0x${string}` | `0x${string}`[] | null;
1103
+ }) => () => void;
1104
+ /**
1105
+ * Watch Unpaused events
1106
+ * @param callback Function to call when event is emitted
1107
+ * @param filter Optional filter for indexed parameters
1108
+ * @returns Unwatch function to stop listening
1109
+ */
1110
+ Unpaused: (callback: (event: {
1111
+ account: `0x${string}`;
1112
+ }) => void, filter?: {
1113
+ account?: `0x${string}` | `0x${string}`[] | null;
833
1114
  }) => () => void;
834
1115
  };
835
1116
  }