@gitmyabi/hubiicrowdsale 0.0.0-stage → 1.0.0

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.
@@ -0,0 +1,1342 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * HubiiCrowdsale ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const HubiiCrowdsaleAbi: readonly [{
8
+ readonly constant: true;
9
+ readonly inputs: readonly [];
10
+ readonly name: "ownerTestValue";
11
+ readonly outputs: readonly [{
12
+ readonly name: "";
13
+ readonly type: "uint8";
14
+ }];
15
+ readonly payable: false;
16
+ readonly type: "function";
17
+ readonly stateMutability: "view";
18
+ }, {
19
+ readonly constant: true;
20
+ readonly inputs: readonly [];
21
+ readonly name: "requireCustomerId";
22
+ readonly outputs: readonly [{
23
+ readonly name: "";
24
+ readonly type: "bool";
25
+ }];
26
+ readonly payable: false;
27
+ readonly type: "function";
28
+ readonly stateMutability: "view";
29
+ }, {
30
+ readonly constant: true;
31
+ readonly inputs: readonly [];
32
+ readonly name: "endsAt";
33
+ readonly outputs: readonly [{
34
+ readonly name: "";
35
+ readonly type: "uint256";
36
+ }];
37
+ readonly payable: false;
38
+ readonly type: "function";
39
+ readonly stateMutability: "view";
40
+ }, {
41
+ readonly constant: true;
42
+ readonly inputs: readonly [];
43
+ readonly name: "minimumFundingGoal";
44
+ readonly outputs: readonly [{
45
+ readonly name: "";
46
+ readonly type: "uint256";
47
+ }];
48
+ readonly payable: false;
49
+ readonly type: "function";
50
+ readonly stateMutability: "view";
51
+ }, {
52
+ readonly constant: true;
53
+ readonly inputs: readonly [];
54
+ readonly name: "getState";
55
+ readonly outputs: readonly [{
56
+ readonly name: "";
57
+ readonly type: "uint8";
58
+ }];
59
+ readonly payable: false;
60
+ readonly type: "function";
61
+ readonly stateMutability: "view";
62
+ }, {
63
+ readonly constant: true;
64
+ readonly inputs: readonly [{
65
+ readonly name: "";
66
+ readonly type: "address";
67
+ }];
68
+ readonly name: "investedAmountOf";
69
+ readonly outputs: readonly [{
70
+ readonly name: "";
71
+ readonly type: "uint256";
72
+ }];
73
+ readonly payable: false;
74
+ readonly type: "function";
75
+ readonly stateMutability: "view";
76
+ }, {
77
+ readonly constant: true;
78
+ readonly inputs: readonly [];
79
+ readonly name: "finalizeAgent";
80
+ readonly outputs: readonly [{
81
+ readonly name: "";
82
+ readonly type: "address";
83
+ }];
84
+ readonly payable: false;
85
+ readonly type: "function";
86
+ readonly stateMutability: "view";
87
+ }, {
88
+ readonly constant: false;
89
+ readonly inputs: readonly [{
90
+ readonly name: "newCap";
91
+ readonly type: "uint256";
92
+ }];
93
+ readonly name: "setFundingCap";
94
+ readonly outputs: readonly [];
95
+ readonly payable: false;
96
+ readonly type: "function";
97
+ readonly stateMutability: "nonpayable";
98
+ }, {
99
+ readonly constant: false;
100
+ readonly inputs: readonly [{
101
+ readonly name: "receiver";
102
+ readonly type: "address";
103
+ }, {
104
+ readonly name: "fullTokens";
105
+ readonly type: "uint256";
106
+ }, {
107
+ readonly name: "weiPrice";
108
+ readonly type: "uint256";
109
+ }];
110
+ readonly name: "preallocate";
111
+ readonly outputs: readonly [];
112
+ readonly payable: false;
113
+ readonly type: "function";
114
+ readonly stateMutability: "nonpayable";
115
+ }, {
116
+ readonly constant: true;
117
+ readonly inputs: readonly [];
118
+ readonly name: "weiRaised";
119
+ readonly outputs: readonly [{
120
+ readonly name: "";
121
+ readonly type: "uint256";
122
+ }];
123
+ readonly payable: false;
124
+ readonly type: "function";
125
+ readonly stateMutability: "view";
126
+ }, {
127
+ readonly constant: true;
128
+ readonly inputs: readonly [];
129
+ readonly name: "isCrowdsale";
130
+ readonly outputs: readonly [{
131
+ readonly name: "";
132
+ readonly type: "bool";
133
+ }];
134
+ readonly payable: false;
135
+ readonly type: "function";
136
+ readonly stateMutability: "view";
137
+ }, {
138
+ readonly constant: false;
139
+ readonly inputs: readonly [{
140
+ readonly name: "endingBlock";
141
+ readonly type: "uint256";
142
+ }];
143
+ readonly name: "setEndingBlock";
144
+ readonly outputs: readonly [];
145
+ readonly payable: false;
146
+ readonly type: "function";
147
+ readonly stateMutability: "nonpayable";
148
+ }, {
149
+ readonly constant: false;
150
+ readonly inputs: readonly [];
151
+ readonly name: "finalize";
152
+ readonly outputs: readonly [];
153
+ readonly payable: false;
154
+ readonly type: "function";
155
+ readonly stateMutability: "nonpayable";
156
+ }, {
157
+ readonly constant: true;
158
+ readonly inputs: readonly [];
159
+ readonly name: "weiFundingCap";
160
+ readonly outputs: readonly [{
161
+ readonly name: "";
162
+ readonly type: "uint256";
163
+ }];
164
+ readonly payable: false;
165
+ readonly type: "function";
166
+ readonly stateMutability: "view";
167
+ }, {
168
+ readonly constant: true;
169
+ readonly inputs: readonly [];
170
+ readonly name: "tokensSold";
171
+ readonly outputs: readonly [{
172
+ readonly name: "";
173
+ readonly type: "uint256";
174
+ }];
175
+ readonly payable: false;
176
+ readonly type: "function";
177
+ readonly stateMutability: "view";
178
+ }, {
179
+ readonly constant: false;
180
+ readonly inputs: readonly [{
181
+ readonly name: "addr";
182
+ readonly type: "address";
183
+ }, {
184
+ readonly name: "status";
185
+ readonly type: "bool";
186
+ }];
187
+ readonly name: "setEarlyParticipantWhitelist";
188
+ readonly outputs: readonly [];
189
+ readonly payable: false;
190
+ readonly type: "function";
191
+ readonly stateMutability: "nonpayable";
192
+ }, {
193
+ readonly constant: false;
194
+ readonly inputs: readonly [];
195
+ readonly name: "refund";
196
+ readonly outputs: readonly [];
197
+ readonly payable: false;
198
+ readonly type: "function";
199
+ readonly stateMutability: "nonpayable";
200
+ }, {
201
+ readonly constant: true;
202
+ readonly inputs: readonly [];
203
+ readonly name: "weiRefunded";
204
+ readonly outputs: readonly [{
205
+ readonly name: "";
206
+ readonly type: "uint256";
207
+ }];
208
+ readonly payable: false;
209
+ readonly type: "function";
210
+ readonly stateMutability: "view";
211
+ }, {
212
+ readonly constant: false;
213
+ readonly inputs: readonly [];
214
+ readonly name: "halt";
215
+ readonly outputs: readonly [];
216
+ readonly payable: false;
217
+ readonly type: "function";
218
+ readonly stateMutability: "nonpayable";
219
+ }, {
220
+ readonly constant: true;
221
+ readonly inputs: readonly [];
222
+ readonly name: "pricingStrategy";
223
+ readonly outputs: readonly [{
224
+ readonly name: "";
225
+ readonly type: "address";
226
+ }];
227
+ readonly payable: false;
228
+ readonly type: "function";
229
+ readonly stateMutability: "view";
230
+ }, {
231
+ readonly constant: true;
232
+ readonly inputs: readonly [];
233
+ readonly name: "loadedRefund";
234
+ readonly outputs: readonly [{
235
+ readonly name: "";
236
+ readonly type: "uint256";
237
+ }];
238
+ readonly payable: false;
239
+ readonly type: "function";
240
+ readonly stateMutability: "view";
241
+ }, {
242
+ readonly constant: true;
243
+ readonly inputs: readonly [];
244
+ readonly name: "isMinimumGoalReached";
245
+ readonly outputs: readonly [{
246
+ readonly name: "reached";
247
+ readonly type: "bool";
248
+ }];
249
+ readonly payable: false;
250
+ readonly type: "function";
251
+ readonly stateMutability: "view";
252
+ }, {
253
+ readonly constant: false;
254
+ readonly inputs: readonly [{
255
+ readonly name: "value";
256
+ readonly type: "bool";
257
+ }];
258
+ readonly name: "setRequireCustomerId";
259
+ readonly outputs: readonly [];
260
+ readonly payable: false;
261
+ readonly type: "function";
262
+ readonly stateMutability: "nonpayable";
263
+ }, {
264
+ readonly constant: false;
265
+ readonly inputs: readonly [];
266
+ readonly name: "loadRefund";
267
+ readonly outputs: readonly [];
268
+ readonly payable: true;
269
+ readonly type: "function";
270
+ readonly stateMutability: "payable";
271
+ }, {
272
+ readonly constant: true;
273
+ readonly inputs: readonly [];
274
+ readonly name: "owner";
275
+ readonly outputs: readonly [{
276
+ readonly name: "";
277
+ readonly type: "address";
278
+ }];
279
+ readonly payable: false;
280
+ readonly type: "function";
281
+ readonly stateMutability: "view";
282
+ }, {
283
+ readonly constant: true;
284
+ readonly inputs: readonly [];
285
+ readonly name: "multisigWallet";
286
+ readonly outputs: readonly [{
287
+ readonly name: "";
288
+ readonly type: "address";
289
+ }];
290
+ readonly payable: false;
291
+ readonly type: "function";
292
+ readonly stateMutability: "view";
293
+ }, {
294
+ readonly constant: true;
295
+ readonly inputs: readonly [{
296
+ readonly name: "";
297
+ readonly type: "address";
298
+ }];
299
+ readonly name: "tokenAmountOf";
300
+ readonly outputs: readonly [{
301
+ readonly name: "";
302
+ readonly type: "uint256";
303
+ }];
304
+ readonly payable: false;
305
+ readonly type: "function";
306
+ readonly stateMutability: "view";
307
+ }, {
308
+ readonly constant: false;
309
+ readonly inputs: readonly [{
310
+ readonly name: "customerId";
311
+ readonly type: "uint128";
312
+ }];
313
+ readonly name: "buyWithCustomerId";
314
+ readonly outputs: readonly [];
315
+ readonly payable: true;
316
+ readonly type: "function";
317
+ readonly stateMutability: "payable";
318
+ }, {
319
+ readonly constant: false;
320
+ readonly inputs: readonly [];
321
+ readonly name: "buy";
322
+ readonly outputs: readonly [];
323
+ readonly payable: true;
324
+ readonly type: "function";
325
+ readonly stateMutability: "payable";
326
+ }, {
327
+ readonly constant: true;
328
+ readonly inputs: readonly [];
329
+ readonly name: "isFinalizerSane";
330
+ readonly outputs: readonly [{
331
+ readonly name: "sane";
332
+ readonly type: "bool";
333
+ }];
334
+ readonly payable: false;
335
+ readonly type: "function";
336
+ readonly stateMutability: "view";
337
+ }, {
338
+ readonly constant: true;
339
+ readonly inputs: readonly [];
340
+ readonly name: "startsAt";
341
+ readonly outputs: readonly [{
342
+ readonly name: "";
343
+ readonly type: "uint256";
344
+ }];
345
+ readonly payable: false;
346
+ readonly type: "function";
347
+ readonly stateMutability: "view";
348
+ }, {
349
+ readonly constant: true;
350
+ readonly inputs: readonly [];
351
+ readonly name: "finalized";
352
+ readonly outputs: readonly [{
353
+ readonly name: "";
354
+ readonly type: "bool";
355
+ }];
356
+ readonly payable: false;
357
+ readonly type: "function";
358
+ readonly stateMutability: "view";
359
+ }, {
360
+ readonly constant: true;
361
+ readonly inputs: readonly [];
362
+ readonly name: "halted";
363
+ readonly outputs: readonly [{
364
+ readonly name: "";
365
+ readonly type: "bool";
366
+ }];
367
+ readonly payable: false;
368
+ readonly type: "function";
369
+ readonly stateMutability: "view";
370
+ }, {
371
+ readonly constant: false;
372
+ readonly inputs: readonly [{
373
+ readonly name: "val";
374
+ readonly type: "uint8";
375
+ }];
376
+ readonly name: "setOwnerTestValue";
377
+ readonly outputs: readonly [];
378
+ readonly payable: false;
379
+ readonly type: "function";
380
+ readonly stateMutability: "nonpayable";
381
+ }, {
382
+ readonly constant: true;
383
+ readonly inputs: readonly [{
384
+ readonly name: "";
385
+ readonly type: "address";
386
+ }];
387
+ readonly name: "earlyParticipantWhitelist";
388
+ readonly outputs: readonly [{
389
+ readonly name: "";
390
+ readonly type: "bool";
391
+ }];
392
+ readonly payable: false;
393
+ readonly type: "function";
394
+ readonly stateMutability: "view";
395
+ }, {
396
+ readonly constant: false;
397
+ readonly inputs: readonly [];
398
+ readonly name: "unhalt";
399
+ readonly outputs: readonly [];
400
+ readonly payable: false;
401
+ readonly type: "function";
402
+ readonly stateMutability: "nonpayable";
403
+ }, {
404
+ readonly constant: true;
405
+ readonly inputs: readonly [];
406
+ readonly name: "investorCount";
407
+ readonly outputs: readonly [{
408
+ readonly name: "";
409
+ readonly type: "uint256";
410
+ }];
411
+ readonly payable: false;
412
+ readonly type: "function";
413
+ readonly stateMutability: "view";
414
+ }, {
415
+ readonly constant: false;
416
+ readonly inputs: readonly [{
417
+ readonly name: "startingBlock";
418
+ readonly type: "uint256";
419
+ }];
420
+ readonly name: "setStartingBlock";
421
+ readonly outputs: readonly [];
422
+ readonly payable: false;
423
+ readonly type: "function";
424
+ readonly stateMutability: "nonpayable";
425
+ }, {
426
+ readonly constant: true;
427
+ readonly inputs: readonly [];
428
+ readonly name: "ceilingStrategy";
429
+ readonly outputs: readonly [{
430
+ readonly name: "";
431
+ readonly type: "address";
432
+ }];
433
+ readonly payable: false;
434
+ readonly type: "function";
435
+ readonly stateMutability: "view";
436
+ }, {
437
+ readonly constant: false;
438
+ readonly inputs: readonly [{
439
+ readonly name: "newOwner";
440
+ readonly type: "address";
441
+ }];
442
+ readonly name: "transferOwnership";
443
+ readonly outputs: readonly [];
444
+ readonly payable: false;
445
+ readonly type: "function";
446
+ readonly stateMutability: "nonpayable";
447
+ }, {
448
+ readonly constant: true;
449
+ readonly inputs: readonly [];
450
+ readonly name: "token";
451
+ readonly outputs: readonly [{
452
+ readonly name: "";
453
+ readonly type: "address";
454
+ }];
455
+ readonly payable: false;
456
+ readonly type: "function";
457
+ readonly stateMutability: "view";
458
+ }, {
459
+ readonly inputs: readonly [{
460
+ readonly name: "_teamMultisig";
461
+ readonly type: "address";
462
+ }, {
463
+ readonly name: "_start";
464
+ readonly type: "uint256";
465
+ }, {
466
+ readonly name: "_end";
467
+ readonly type: "uint256";
468
+ }];
469
+ readonly payable: false;
470
+ readonly type: "constructor";
471
+ readonly stateMutability: "nonpayable";
472
+ }, {
473
+ readonly payable: true;
474
+ readonly type: "fallback";
475
+ readonly stateMutability: "payable";
476
+ }, {
477
+ readonly anonymous: false;
478
+ readonly inputs: readonly [{
479
+ readonly indexed: false;
480
+ readonly name: "investor";
481
+ readonly type: "address";
482
+ }, {
483
+ readonly indexed: false;
484
+ readonly name: "weiAmount";
485
+ readonly type: "uint256";
486
+ }, {
487
+ readonly indexed: false;
488
+ readonly name: "tokenAmount";
489
+ readonly type: "uint256";
490
+ }, {
491
+ readonly indexed: false;
492
+ readonly name: "customerId";
493
+ readonly type: "uint128";
494
+ }];
495
+ readonly name: "Invested";
496
+ readonly type: "event";
497
+ }, {
498
+ readonly anonymous: false;
499
+ readonly inputs: readonly [{
500
+ readonly indexed: false;
501
+ readonly name: "investor";
502
+ readonly type: "address";
503
+ }, {
504
+ readonly indexed: false;
505
+ readonly name: "weiAmount";
506
+ readonly type: "uint256";
507
+ }];
508
+ readonly name: "Refund";
509
+ readonly type: "event";
510
+ }, {
511
+ readonly anonymous: false;
512
+ readonly inputs: readonly [{
513
+ readonly indexed: false;
514
+ readonly name: "requireCId";
515
+ readonly type: "bool";
516
+ }];
517
+ readonly name: "InvestmentPolicyChanged";
518
+ readonly type: "event";
519
+ }, {
520
+ readonly anonymous: false;
521
+ readonly inputs: readonly [{
522
+ readonly indexed: false;
523
+ readonly name: "addr";
524
+ readonly type: "address";
525
+ }, {
526
+ readonly indexed: false;
527
+ readonly name: "status";
528
+ readonly type: "bool";
529
+ }];
530
+ readonly name: "Whitelisted";
531
+ readonly type: "event";
532
+ }, {
533
+ readonly anonymous: false;
534
+ readonly inputs: readonly [];
535
+ readonly name: "Finalized";
536
+ readonly type: "event";
537
+ }, {
538
+ readonly anonymous: false;
539
+ readonly inputs: readonly [{
540
+ readonly indexed: false;
541
+ readonly name: "newFundingCap";
542
+ readonly type: "uint256";
543
+ }];
544
+ readonly name: "FundingCapSet";
545
+ readonly type: "event";
546
+ }, {
547
+ readonly anonymous: false;
548
+ readonly inputs: readonly [{
549
+ readonly indexed: false;
550
+ readonly name: "halted";
551
+ readonly type: "bool";
552
+ }];
553
+ readonly name: "Halted";
554
+ readonly type: "event";
555
+ }];
556
+ /**
557
+ * Type-safe ABI for HubiiCrowdsale
558
+ */
559
+ export type HubiiCrowdsaleAbi = typeof HubiiCrowdsaleAbi;
560
+ /**
561
+ * Contract instance type for HubiiCrowdsale
562
+ */
563
+ export type HubiiCrowdsaleContract = any;
564
+ /**
565
+ * HubiiCrowdsale Contract Class
566
+ *
567
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
568
+ *
569
+ * @example
570
+ * ```typescript
571
+ * import { createPublicClient, createWalletClient, http } from 'viem';
572
+ * import { mainnet } from 'viem/chains';
573
+ * import { HubiiCrowdsale } from 'HubiiCrowdsale';
574
+ *
575
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
576
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
577
+ *
578
+ * const contract = new HubiiCrowdsale('0x...', { publicClient, walletClient });
579
+ *
580
+ * // Read functions
581
+ * const result = await contract.balanceOf('0x...');
582
+ *
583
+ * // Write functions
584
+ * const hash = await contract.transfer('0x...', 1000n);
585
+ *
586
+ * // Simulate transactions (dry-run)
587
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
588
+ * console.log('Gas estimate:', simulation.request.gas);
589
+ *
590
+ * // Watch events
591
+ * const unwatch = contract.watch.Transfer((event) => {
592
+ * console.log('Transfer event:', event);
593
+ * });
594
+ * ```
595
+ */
596
+ export declare class HubiiCrowdsale {
597
+ private contract;
598
+ private contractAddress;
599
+ private publicClient;
600
+ constructor(address: Address, clients: {
601
+ publicClient: PublicClient;
602
+ walletClient?: WalletClient;
603
+ });
604
+ /**
605
+ * Get the contract address
606
+ */
607
+ get address(): Address;
608
+ /**
609
+ * Get the underlying viem contract instance.
610
+ */
611
+ getContract(): HubiiCrowdsaleContract;
612
+ /**
613
+ * ownerTestValue
614
+ * view
615
+ */
616
+ ownerTestValue(): Promise<bigint>;
617
+ /**
618
+ * requireCustomerId
619
+ * view
620
+ */
621
+ requireCustomerId(): Promise<boolean>;
622
+ /**
623
+ * endsAt
624
+ * view
625
+ */
626
+ endsAt(): Promise<bigint>;
627
+ /**
628
+ * minimumFundingGoal
629
+ * view
630
+ */
631
+ minimumFundingGoal(): Promise<bigint>;
632
+ /**
633
+ * getState
634
+ * view
635
+ */
636
+ getState(): Promise<bigint>;
637
+ /**
638
+ * investedAmountOf
639
+ * view
640
+ */
641
+ investedAmountOf(arg0: `0x${string}`): Promise<bigint>;
642
+ /**
643
+ * finalizeAgent
644
+ * view
645
+ */
646
+ finalizeAgent(): Promise<`0x${string}`>;
647
+ /**
648
+ * weiRaised
649
+ * view
650
+ */
651
+ weiRaised(): Promise<bigint>;
652
+ /**
653
+ * isCrowdsale
654
+ * view
655
+ */
656
+ isCrowdsale(): Promise<boolean>;
657
+ /**
658
+ * weiFundingCap
659
+ * view
660
+ */
661
+ weiFundingCap(): Promise<bigint>;
662
+ /**
663
+ * tokensSold
664
+ * view
665
+ */
666
+ tokensSold(): Promise<bigint>;
667
+ /**
668
+ * weiRefunded
669
+ * view
670
+ */
671
+ weiRefunded(): Promise<bigint>;
672
+ /**
673
+ * pricingStrategy
674
+ * view
675
+ */
676
+ pricingStrategy(): Promise<`0x${string}`>;
677
+ /**
678
+ * loadedRefund
679
+ * view
680
+ */
681
+ loadedRefund(): Promise<bigint>;
682
+ /**
683
+ * isMinimumGoalReached
684
+ * view
685
+ */
686
+ isMinimumGoalReached(): Promise<boolean>;
687
+ /**
688
+ * owner
689
+ * view
690
+ */
691
+ owner(): Promise<`0x${string}`>;
692
+ /**
693
+ * multisigWallet
694
+ * view
695
+ */
696
+ multisigWallet(): Promise<`0x${string}`>;
697
+ /**
698
+ * tokenAmountOf
699
+ * view
700
+ */
701
+ tokenAmountOf(arg0: `0x${string}`): Promise<bigint>;
702
+ /**
703
+ * isFinalizerSane
704
+ * view
705
+ */
706
+ isFinalizerSane(): Promise<boolean>;
707
+ /**
708
+ * startsAt
709
+ * view
710
+ */
711
+ startsAt(): Promise<bigint>;
712
+ /**
713
+ * finalized
714
+ * view
715
+ */
716
+ finalized(): Promise<boolean>;
717
+ /**
718
+ * halted
719
+ * view
720
+ */
721
+ halted(): Promise<boolean>;
722
+ /**
723
+ * earlyParticipantWhitelist
724
+ * view
725
+ */
726
+ earlyParticipantWhitelist(arg0: `0x${string}`): Promise<boolean>;
727
+ /**
728
+ * investorCount
729
+ * view
730
+ */
731
+ investorCount(): Promise<bigint>;
732
+ /**
733
+ * ceilingStrategy
734
+ * view
735
+ */
736
+ ceilingStrategy(): Promise<`0x${string}`>;
737
+ /**
738
+ * token
739
+ * view
740
+ */
741
+ token(): Promise<`0x${string}`>;
742
+ /**
743
+ * setFundingCap
744
+ * nonpayable
745
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
746
+ */
747
+ setFundingCap(newCap: bigint, options?: {
748
+ accessList?: import('viem').AccessList;
749
+ authorizationList?: import('viem').AuthorizationList;
750
+ chain?: import('viem').Chain | null;
751
+ dataSuffix?: `0x${string}`;
752
+ gas?: bigint;
753
+ gasPrice?: bigint;
754
+ maxFeePerGas?: bigint;
755
+ maxPriorityFeePerGas?: bigint;
756
+ nonce?: number;
757
+ value?: bigint;
758
+ }): Promise<`0x${string}`>;
759
+ /**
760
+ * preallocate
761
+ * nonpayable
762
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
763
+ */
764
+ preallocate(receiver: `0x${string}`, fullTokens: bigint, weiPrice: bigint, options?: {
765
+ accessList?: import('viem').AccessList;
766
+ authorizationList?: import('viem').AuthorizationList;
767
+ chain?: import('viem').Chain | null;
768
+ dataSuffix?: `0x${string}`;
769
+ gas?: bigint;
770
+ gasPrice?: bigint;
771
+ maxFeePerGas?: bigint;
772
+ maxPriorityFeePerGas?: bigint;
773
+ nonce?: number;
774
+ value?: bigint;
775
+ }): Promise<`0x${string}`>;
776
+ /**
777
+ * setEndingBlock
778
+ * nonpayable
779
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
780
+ */
781
+ setEndingBlock(endingBlock: bigint, options?: {
782
+ accessList?: import('viem').AccessList;
783
+ authorizationList?: import('viem').AuthorizationList;
784
+ chain?: import('viem').Chain | null;
785
+ dataSuffix?: `0x${string}`;
786
+ gas?: bigint;
787
+ gasPrice?: bigint;
788
+ maxFeePerGas?: bigint;
789
+ maxPriorityFeePerGas?: bigint;
790
+ nonce?: number;
791
+ value?: bigint;
792
+ }): Promise<`0x${string}`>;
793
+ /**
794
+ * finalize
795
+ * nonpayable
796
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
797
+ */
798
+ finalize(options?: {
799
+ accessList?: import('viem').AccessList;
800
+ authorizationList?: import('viem').AuthorizationList;
801
+ chain?: import('viem').Chain | null;
802
+ dataSuffix?: `0x${string}`;
803
+ gas?: bigint;
804
+ gasPrice?: bigint;
805
+ maxFeePerGas?: bigint;
806
+ maxPriorityFeePerGas?: bigint;
807
+ nonce?: number;
808
+ value?: bigint;
809
+ }): Promise<`0x${string}`>;
810
+ /**
811
+ * setEarlyParticipantWhitelist
812
+ * nonpayable
813
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
814
+ */
815
+ setEarlyParticipantWhitelist(addr: `0x${string}`, status: boolean, options?: {
816
+ accessList?: import('viem').AccessList;
817
+ authorizationList?: import('viem').AuthorizationList;
818
+ chain?: import('viem').Chain | null;
819
+ dataSuffix?: `0x${string}`;
820
+ gas?: bigint;
821
+ gasPrice?: bigint;
822
+ maxFeePerGas?: bigint;
823
+ maxPriorityFeePerGas?: bigint;
824
+ nonce?: number;
825
+ value?: bigint;
826
+ }): Promise<`0x${string}`>;
827
+ /**
828
+ * refund
829
+ * nonpayable
830
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
831
+ */
832
+ refund(options?: {
833
+ accessList?: import('viem').AccessList;
834
+ authorizationList?: import('viem').AuthorizationList;
835
+ chain?: import('viem').Chain | null;
836
+ dataSuffix?: `0x${string}`;
837
+ gas?: bigint;
838
+ gasPrice?: bigint;
839
+ maxFeePerGas?: bigint;
840
+ maxPriorityFeePerGas?: bigint;
841
+ nonce?: number;
842
+ value?: bigint;
843
+ }): Promise<`0x${string}`>;
844
+ /**
845
+ * halt
846
+ * nonpayable
847
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
848
+ */
849
+ halt(options?: {
850
+ accessList?: import('viem').AccessList;
851
+ authorizationList?: import('viem').AuthorizationList;
852
+ chain?: import('viem').Chain | null;
853
+ dataSuffix?: `0x${string}`;
854
+ gas?: bigint;
855
+ gasPrice?: bigint;
856
+ maxFeePerGas?: bigint;
857
+ maxPriorityFeePerGas?: bigint;
858
+ nonce?: number;
859
+ value?: bigint;
860
+ }): Promise<`0x${string}`>;
861
+ /**
862
+ * setRequireCustomerId
863
+ * nonpayable
864
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
865
+ */
866
+ setRequireCustomerId(value: boolean, options?: {
867
+ accessList?: import('viem').AccessList;
868
+ authorizationList?: import('viem').AuthorizationList;
869
+ chain?: import('viem').Chain | null;
870
+ dataSuffix?: `0x${string}`;
871
+ gas?: bigint;
872
+ gasPrice?: bigint;
873
+ maxFeePerGas?: bigint;
874
+ maxPriorityFeePerGas?: bigint;
875
+ nonce?: number;
876
+ value?: bigint;
877
+ }): Promise<`0x${string}`>;
878
+ /**
879
+ * loadRefund
880
+ * payable
881
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
882
+ */
883
+ loadRefund(options?: {
884
+ accessList?: import('viem').AccessList;
885
+ authorizationList?: import('viem').AuthorizationList;
886
+ chain?: import('viem').Chain | null;
887
+ dataSuffix?: `0x${string}`;
888
+ gas?: bigint;
889
+ gasPrice?: bigint;
890
+ maxFeePerGas?: bigint;
891
+ maxPriorityFeePerGas?: bigint;
892
+ nonce?: number;
893
+ value?: bigint;
894
+ }): Promise<`0x${string}`>;
895
+ /**
896
+ * buyWithCustomerId
897
+ * payable
898
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
899
+ */
900
+ buyWithCustomerId(customerId: bigint, options?: {
901
+ accessList?: import('viem').AccessList;
902
+ authorizationList?: import('viem').AuthorizationList;
903
+ chain?: import('viem').Chain | null;
904
+ dataSuffix?: `0x${string}`;
905
+ gas?: bigint;
906
+ gasPrice?: bigint;
907
+ maxFeePerGas?: bigint;
908
+ maxPriorityFeePerGas?: bigint;
909
+ nonce?: number;
910
+ value?: bigint;
911
+ }): Promise<`0x${string}`>;
912
+ /**
913
+ * buy
914
+ * payable
915
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
916
+ */
917
+ buy(options?: {
918
+ accessList?: import('viem').AccessList;
919
+ authorizationList?: import('viem').AuthorizationList;
920
+ chain?: import('viem').Chain | null;
921
+ dataSuffix?: `0x${string}`;
922
+ gas?: bigint;
923
+ gasPrice?: bigint;
924
+ maxFeePerGas?: bigint;
925
+ maxPriorityFeePerGas?: bigint;
926
+ nonce?: number;
927
+ value?: bigint;
928
+ }): Promise<`0x${string}`>;
929
+ /**
930
+ * setOwnerTestValue
931
+ * nonpayable
932
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
933
+ */
934
+ setOwnerTestValue(val: bigint, options?: {
935
+ accessList?: import('viem').AccessList;
936
+ authorizationList?: import('viem').AuthorizationList;
937
+ chain?: import('viem').Chain | null;
938
+ dataSuffix?: `0x${string}`;
939
+ gas?: bigint;
940
+ gasPrice?: bigint;
941
+ maxFeePerGas?: bigint;
942
+ maxPriorityFeePerGas?: bigint;
943
+ nonce?: number;
944
+ value?: bigint;
945
+ }): Promise<`0x${string}`>;
946
+ /**
947
+ * unhalt
948
+ * nonpayable
949
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
950
+ */
951
+ unhalt(options?: {
952
+ accessList?: import('viem').AccessList;
953
+ authorizationList?: import('viem').AuthorizationList;
954
+ chain?: import('viem').Chain | null;
955
+ dataSuffix?: `0x${string}`;
956
+ gas?: bigint;
957
+ gasPrice?: bigint;
958
+ maxFeePerGas?: bigint;
959
+ maxPriorityFeePerGas?: bigint;
960
+ nonce?: number;
961
+ value?: bigint;
962
+ }): Promise<`0x${string}`>;
963
+ /**
964
+ * setStartingBlock
965
+ * nonpayable
966
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
967
+ */
968
+ setStartingBlock(startingBlock: bigint, options?: {
969
+ accessList?: import('viem').AccessList;
970
+ authorizationList?: import('viem').AuthorizationList;
971
+ chain?: import('viem').Chain | null;
972
+ dataSuffix?: `0x${string}`;
973
+ gas?: bigint;
974
+ gasPrice?: bigint;
975
+ maxFeePerGas?: bigint;
976
+ maxPriorityFeePerGas?: bigint;
977
+ nonce?: number;
978
+ value?: bigint;
979
+ }): Promise<`0x${string}`>;
980
+ /**
981
+ * transferOwnership
982
+ * nonpayable
983
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
984
+ */
985
+ transferOwnership(newOwner: `0x${string}`, options?: {
986
+ accessList?: import('viem').AccessList;
987
+ authorizationList?: import('viem').AuthorizationList;
988
+ chain?: import('viem').Chain | null;
989
+ dataSuffix?: `0x${string}`;
990
+ gas?: bigint;
991
+ gasPrice?: bigint;
992
+ maxFeePerGas?: bigint;
993
+ maxPriorityFeePerGas?: bigint;
994
+ nonce?: number;
995
+ value?: bigint;
996
+ }): Promise<`0x${string}`>;
997
+ /**
998
+ * Simulate contract write operations (dry-run without sending transaction)
999
+ *
1000
+ * @example
1001
+ * const result = await contract.simulate.transfer('0x...', 1000n);
1002
+ * console.log('Gas estimate:', result.request.gas);
1003
+ * console.log('Would succeed:', result.result);
1004
+ */
1005
+ get simulate(): {
1006
+ /**
1007
+ * Simulate setFundingCap
1008
+ * Returns gas estimate and result without sending transaction
1009
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1010
+ */
1011
+ setFundingCap(newCap: bigint, options?: {
1012
+ accessList?: import("viem").AccessList;
1013
+ authorizationList?: import("viem").AuthorizationList;
1014
+ chain?: import("viem").Chain | null;
1015
+ dataSuffix?: `0x${string}`;
1016
+ gas?: bigint;
1017
+ gasPrice?: bigint;
1018
+ maxFeePerGas?: bigint;
1019
+ maxPriorityFeePerGas?: bigint;
1020
+ nonce?: number;
1021
+ value?: bigint;
1022
+ }): Promise<void>;
1023
+ /**
1024
+ * Simulate preallocate
1025
+ * Returns gas estimate and result without sending transaction
1026
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1027
+ */
1028
+ preallocate(receiver: `0x${string}`, fullTokens: bigint, weiPrice: bigint, options?: {
1029
+ accessList?: import("viem").AccessList;
1030
+ authorizationList?: import("viem").AuthorizationList;
1031
+ chain?: import("viem").Chain | null;
1032
+ dataSuffix?: `0x${string}`;
1033
+ gas?: bigint;
1034
+ gasPrice?: bigint;
1035
+ maxFeePerGas?: bigint;
1036
+ maxPriorityFeePerGas?: bigint;
1037
+ nonce?: number;
1038
+ value?: bigint;
1039
+ }): Promise<void>;
1040
+ /**
1041
+ * Simulate setEndingBlock
1042
+ * Returns gas estimate and result without sending transaction
1043
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1044
+ */
1045
+ setEndingBlock(endingBlock: bigint, options?: {
1046
+ accessList?: import("viem").AccessList;
1047
+ authorizationList?: import("viem").AuthorizationList;
1048
+ chain?: import("viem").Chain | null;
1049
+ dataSuffix?: `0x${string}`;
1050
+ gas?: bigint;
1051
+ gasPrice?: bigint;
1052
+ maxFeePerGas?: bigint;
1053
+ maxPriorityFeePerGas?: bigint;
1054
+ nonce?: number;
1055
+ value?: bigint;
1056
+ }): Promise<void>;
1057
+ /**
1058
+ * Simulate finalize
1059
+ * Returns gas estimate and result without sending transaction
1060
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1061
+ */
1062
+ finalize(options?: {
1063
+ accessList?: import("viem").AccessList;
1064
+ authorizationList?: import("viem").AuthorizationList;
1065
+ chain?: import("viem").Chain | null;
1066
+ dataSuffix?: `0x${string}`;
1067
+ gas?: bigint;
1068
+ gasPrice?: bigint;
1069
+ maxFeePerGas?: bigint;
1070
+ maxPriorityFeePerGas?: bigint;
1071
+ nonce?: number;
1072
+ value?: bigint;
1073
+ }): Promise<void>;
1074
+ /**
1075
+ * Simulate setEarlyParticipantWhitelist
1076
+ * Returns gas estimate and result without sending transaction
1077
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1078
+ */
1079
+ setEarlyParticipantWhitelist(addr: `0x${string}`, status: boolean, options?: {
1080
+ accessList?: import("viem").AccessList;
1081
+ authorizationList?: import("viem").AuthorizationList;
1082
+ chain?: import("viem").Chain | null;
1083
+ dataSuffix?: `0x${string}`;
1084
+ gas?: bigint;
1085
+ gasPrice?: bigint;
1086
+ maxFeePerGas?: bigint;
1087
+ maxPriorityFeePerGas?: bigint;
1088
+ nonce?: number;
1089
+ value?: bigint;
1090
+ }): Promise<void>;
1091
+ /**
1092
+ * Simulate refund
1093
+ * Returns gas estimate and result without sending transaction
1094
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1095
+ */
1096
+ refund(options?: {
1097
+ accessList?: import("viem").AccessList;
1098
+ authorizationList?: import("viem").AuthorizationList;
1099
+ chain?: import("viem").Chain | null;
1100
+ dataSuffix?: `0x${string}`;
1101
+ gas?: bigint;
1102
+ gasPrice?: bigint;
1103
+ maxFeePerGas?: bigint;
1104
+ maxPriorityFeePerGas?: bigint;
1105
+ nonce?: number;
1106
+ value?: bigint;
1107
+ }): Promise<void>;
1108
+ /**
1109
+ * Simulate halt
1110
+ * Returns gas estimate and result without sending transaction
1111
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1112
+ */
1113
+ halt(options?: {
1114
+ accessList?: import("viem").AccessList;
1115
+ authorizationList?: import("viem").AuthorizationList;
1116
+ chain?: import("viem").Chain | null;
1117
+ dataSuffix?: `0x${string}`;
1118
+ gas?: bigint;
1119
+ gasPrice?: bigint;
1120
+ maxFeePerGas?: bigint;
1121
+ maxPriorityFeePerGas?: bigint;
1122
+ nonce?: number;
1123
+ value?: bigint;
1124
+ }): Promise<void>;
1125
+ /**
1126
+ * Simulate setRequireCustomerId
1127
+ * Returns gas estimate and result without sending transaction
1128
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1129
+ */
1130
+ setRequireCustomerId(value: boolean, options?: {
1131
+ accessList?: import("viem").AccessList;
1132
+ authorizationList?: import("viem").AuthorizationList;
1133
+ chain?: import("viem").Chain | null;
1134
+ dataSuffix?: `0x${string}`;
1135
+ gas?: bigint;
1136
+ gasPrice?: bigint;
1137
+ maxFeePerGas?: bigint;
1138
+ maxPriorityFeePerGas?: bigint;
1139
+ nonce?: number;
1140
+ value?: bigint;
1141
+ }): Promise<void>;
1142
+ /**
1143
+ * Simulate loadRefund
1144
+ * Returns gas estimate and result without sending transaction
1145
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1146
+ */
1147
+ loadRefund(options?: {
1148
+ accessList?: import("viem").AccessList;
1149
+ authorizationList?: import("viem").AuthorizationList;
1150
+ chain?: import("viem").Chain | null;
1151
+ dataSuffix?: `0x${string}`;
1152
+ gas?: bigint;
1153
+ gasPrice?: bigint;
1154
+ maxFeePerGas?: bigint;
1155
+ maxPriorityFeePerGas?: bigint;
1156
+ nonce?: number;
1157
+ value?: bigint;
1158
+ }): Promise<void>;
1159
+ /**
1160
+ * Simulate buyWithCustomerId
1161
+ * Returns gas estimate and result without sending transaction
1162
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1163
+ */
1164
+ buyWithCustomerId(customerId: bigint, options?: {
1165
+ accessList?: import("viem").AccessList;
1166
+ authorizationList?: import("viem").AuthorizationList;
1167
+ chain?: import("viem").Chain | null;
1168
+ dataSuffix?: `0x${string}`;
1169
+ gas?: bigint;
1170
+ gasPrice?: bigint;
1171
+ maxFeePerGas?: bigint;
1172
+ maxPriorityFeePerGas?: bigint;
1173
+ nonce?: number;
1174
+ value?: bigint;
1175
+ }): Promise<void>;
1176
+ /**
1177
+ * Simulate buy
1178
+ * Returns gas estimate and result without sending transaction
1179
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1180
+ */
1181
+ buy(options?: {
1182
+ accessList?: import("viem").AccessList;
1183
+ authorizationList?: import("viem").AuthorizationList;
1184
+ chain?: import("viem").Chain | null;
1185
+ dataSuffix?: `0x${string}`;
1186
+ gas?: bigint;
1187
+ gasPrice?: bigint;
1188
+ maxFeePerGas?: bigint;
1189
+ maxPriorityFeePerGas?: bigint;
1190
+ nonce?: number;
1191
+ value?: bigint;
1192
+ }): Promise<void>;
1193
+ /**
1194
+ * Simulate setOwnerTestValue
1195
+ * Returns gas estimate and result without sending transaction
1196
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1197
+ */
1198
+ setOwnerTestValue(val: bigint, options?: {
1199
+ accessList?: import("viem").AccessList;
1200
+ authorizationList?: import("viem").AuthorizationList;
1201
+ chain?: import("viem").Chain | null;
1202
+ dataSuffix?: `0x${string}`;
1203
+ gas?: bigint;
1204
+ gasPrice?: bigint;
1205
+ maxFeePerGas?: bigint;
1206
+ maxPriorityFeePerGas?: bigint;
1207
+ nonce?: number;
1208
+ value?: bigint;
1209
+ }): Promise<void>;
1210
+ /**
1211
+ * Simulate unhalt
1212
+ * Returns gas estimate and result without sending transaction
1213
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1214
+ */
1215
+ unhalt(options?: {
1216
+ accessList?: import("viem").AccessList;
1217
+ authorizationList?: import("viem").AuthorizationList;
1218
+ chain?: import("viem").Chain | null;
1219
+ dataSuffix?: `0x${string}`;
1220
+ gas?: bigint;
1221
+ gasPrice?: bigint;
1222
+ maxFeePerGas?: bigint;
1223
+ maxPriorityFeePerGas?: bigint;
1224
+ nonce?: number;
1225
+ value?: bigint;
1226
+ }): Promise<void>;
1227
+ /**
1228
+ * Simulate setStartingBlock
1229
+ * Returns gas estimate and result without sending transaction
1230
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1231
+ */
1232
+ setStartingBlock(startingBlock: bigint, options?: {
1233
+ accessList?: import("viem").AccessList;
1234
+ authorizationList?: import("viem").AuthorizationList;
1235
+ chain?: import("viem").Chain | null;
1236
+ dataSuffix?: `0x${string}`;
1237
+ gas?: bigint;
1238
+ gasPrice?: bigint;
1239
+ maxFeePerGas?: bigint;
1240
+ maxPriorityFeePerGas?: bigint;
1241
+ nonce?: number;
1242
+ value?: bigint;
1243
+ }): Promise<void>;
1244
+ /**
1245
+ * Simulate transferOwnership
1246
+ * Returns gas estimate and result without sending transaction
1247
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1248
+ */
1249
+ transferOwnership(newOwner: `0x${string}`, options?: {
1250
+ accessList?: import("viem").AccessList;
1251
+ authorizationList?: import("viem").AuthorizationList;
1252
+ chain?: import("viem").Chain | null;
1253
+ dataSuffix?: `0x${string}`;
1254
+ gas?: bigint;
1255
+ gasPrice?: bigint;
1256
+ maxFeePerGas?: bigint;
1257
+ maxPriorityFeePerGas?: bigint;
1258
+ nonce?: number;
1259
+ value?: bigint;
1260
+ }): Promise<void>;
1261
+ };
1262
+ /**
1263
+ * Watch contract events
1264
+ *
1265
+ * @example
1266
+ * // Watch all Transfer events
1267
+ * const unwatch = contract.watch.Transfer((event) => {
1268
+ * console.log('Transfer:', event);
1269
+ * });
1270
+ *
1271
+ * // Stop watching
1272
+ * unwatch();
1273
+ */
1274
+ get watch(): {
1275
+ /**
1276
+ * Watch Invested events
1277
+ * @param callback Function to call when event is emitted
1278
+ * @param filter Optional filter for indexed parameters
1279
+ * @returns Unwatch function to stop listening
1280
+ */
1281
+ Invested: (callback: (event: {
1282
+ investor: `0x${string}`;
1283
+ weiAmount: bigint;
1284
+ tokenAmount: bigint;
1285
+ customerId: bigint;
1286
+ }) => void) => () => void;
1287
+ /**
1288
+ * Watch Refund events
1289
+ * @param callback Function to call when event is emitted
1290
+ * @param filter Optional filter for indexed parameters
1291
+ * @returns Unwatch function to stop listening
1292
+ */
1293
+ Refund: (callback: (event: {
1294
+ investor: `0x${string}`;
1295
+ weiAmount: bigint;
1296
+ }) => void) => () => void;
1297
+ /**
1298
+ * Watch InvestmentPolicyChanged events
1299
+ * @param callback Function to call when event is emitted
1300
+ * @param filter Optional filter for indexed parameters
1301
+ * @returns Unwatch function to stop listening
1302
+ */
1303
+ InvestmentPolicyChanged: (callback: (event: {
1304
+ requireCId: boolean;
1305
+ }) => void) => () => void;
1306
+ /**
1307
+ * Watch Whitelisted events
1308
+ * @param callback Function to call when event is emitted
1309
+ * @param filter Optional filter for indexed parameters
1310
+ * @returns Unwatch function to stop listening
1311
+ */
1312
+ Whitelisted: (callback: (event: {
1313
+ addr: `0x${string}`;
1314
+ status: boolean;
1315
+ }) => void) => () => void;
1316
+ /**
1317
+ * Watch Finalized events
1318
+ * @param callback Function to call when event is emitted
1319
+ * @param filter Optional filter for indexed parameters
1320
+ * @returns Unwatch function to stop listening
1321
+ */
1322
+ Finalized: (callback: (event: {}) => void) => () => void;
1323
+ /**
1324
+ * Watch FundingCapSet events
1325
+ * @param callback Function to call when event is emitted
1326
+ * @param filter Optional filter for indexed parameters
1327
+ * @returns Unwatch function to stop listening
1328
+ */
1329
+ FundingCapSet: (callback: (event: {
1330
+ newFundingCap: bigint;
1331
+ }) => void) => () => void;
1332
+ /**
1333
+ * Watch Halted events
1334
+ * @param callback Function to call when event is emitted
1335
+ * @param filter Optional filter for indexed parameters
1336
+ * @returns Unwatch function to stop listening
1337
+ */
1338
+ Halted: (callback: (event: {
1339
+ halted: boolean;
1340
+ }) => void) => () => void;
1341
+ };
1342
+ }