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