@pendle/sdk-boros 0.1.23 → 0.1.24-market-maker

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.
Files changed (32) hide show
  1. package/dist/backend/index.d.ts +1 -0
  2. package/dist/backend/index.js +18 -0
  3. package/dist/backend/index.js.map +1 -0
  4. package/dist/backend/secrettune/BorosBackendSDK.d.ts +656 -0
  5. package/dist/backend/secrettune/BorosBackendSDK.js +384 -0
  6. package/dist/backend/secrettune/BorosBackendSDK.js.map +1 -0
  7. package/dist/backend/secrettune/index.d.ts +1 -0
  8. package/dist/backend/secrettune/index.js +38 -0
  9. package/dist/backend/secrettune/index.js.map +1 -0
  10. package/dist/backend/secrettune/module.d.ts +6 -0
  11. package/dist/backend/secrettune/module.js +33 -0
  12. package/dist/backend/secrettune/module.js.map +1 -0
  13. package/dist/contracts/viemAbis.d.ts +155 -0
  14. package/dist/contracts/viemAbis.js +4 -3
  15. package/dist/contracts/viemAbis.js.map +1 -1
  16. package/dist/entities/exchange/exchange.d.ts +1070 -0
  17. package/dist/entities/exchange/exchange.js +354 -0
  18. package/dist/entities/exchange/exchange.js.map +1 -0
  19. package/dist/entities/exchange/index.d.ts +2 -0
  20. package/dist/entities/exchange/index.js +19 -0
  21. package/dist/entities/exchange/index.js.map +1 -0
  22. package/dist/entities/exchange/types.d.ts +73 -0
  23. package/dist/entities/exchange/types.js +3 -0
  24. package/dist/entities/exchange/types.js.map +1 -0
  25. package/dist/entities/exchange/utils.d.ts +2126 -0
  26. package/dist/entities/exchange/utils.js +28 -0
  27. package/dist/entities/exchange/utils.js.map +1 -0
  28. package/dist/entities/index.d.ts +1 -0
  29. package/dist/entities/index.js +1 -0
  30. package/dist/entities/index.js.map +1 -1
  31. package/dist/types/common.d.ts +11 -0
  32. package/package.json +5 -2
@@ -0,0 +1,2126 @@
1
+ import { Hex, Log } from "viem";
2
+ export declare function parseEvents(txHash: Hex): Promise<{
3
+ hub: import("viem").ParseEventLogsReturnType<readonly [{
4
+ readonly anonymous: false;
5
+ readonly inputs: readonly [{
6
+ readonly indexed: false;
7
+ readonly internalType: "MarketAcc";
8
+ readonly name: "from";
9
+ readonly type: "bytes26";
10
+ }, {
11
+ readonly indexed: false;
12
+ readonly internalType: "MarketAcc";
13
+ readonly name: "to";
14
+ readonly type: "bytes26";
15
+ }, {
16
+ readonly indexed: false;
17
+ readonly internalType: "int256";
18
+ readonly name: "amount";
19
+ readonly type: "int256";
20
+ }];
21
+ readonly name: "CashTransfer";
22
+ readonly type: "event";
23
+ }, {
24
+ readonly anonymous: false;
25
+ readonly inputs: readonly [{
26
+ readonly indexed: true;
27
+ readonly internalType: "TokenId";
28
+ readonly name: "tokenId";
29
+ readonly type: "uint16";
30
+ }, {
31
+ readonly indexed: false;
32
+ readonly internalType: "uint256";
33
+ readonly name: "amount";
34
+ readonly type: "uint256";
35
+ }];
36
+ readonly name: "CollectFee";
37
+ readonly type: "event";
38
+ }, {
39
+ readonly anonymous: false;
40
+ readonly inputs: readonly [{
41
+ readonly indexed: false;
42
+ readonly internalType: "MarketAcc";
43
+ readonly name: "user";
44
+ readonly type: "bytes26";
45
+ }, {
46
+ readonly indexed: false;
47
+ readonly internalType: "MarketId";
48
+ readonly name: "marketId";
49
+ readonly type: "uint24";
50
+ }];
51
+ readonly name: "EnterMarket";
52
+ readonly type: "event";
53
+ }, {
54
+ readonly anonymous: false;
55
+ readonly inputs: readonly [{
56
+ readonly indexed: false;
57
+ readonly internalType: "MarketAcc";
58
+ readonly name: "user";
59
+ readonly type: "bytes26";
60
+ }, {
61
+ readonly indexed: false;
62
+ readonly internalType: "MarketId";
63
+ readonly name: "marketId";
64
+ readonly type: "uint24";
65
+ }];
66
+ readonly name: "ExitMarket";
67
+ readonly type: "event";
68
+ }, {
69
+ readonly anonymous: false;
70
+ readonly inputs: readonly [{
71
+ readonly indexed: true;
72
+ readonly internalType: "address";
73
+ readonly name: "root";
74
+ readonly type: "address";
75
+ }, {
76
+ readonly indexed: false;
77
+ readonly internalType: "uint8";
78
+ readonly name: "maxAllowedSubaccountIdOld";
79
+ readonly type: "uint8";
80
+ }, {
81
+ readonly indexed: false;
82
+ readonly internalType: "uint8";
83
+ readonly name: "maxAllowedSubaccountIdNew";
84
+ readonly type: "uint8";
85
+ }];
86
+ readonly name: "MaxAllowedSubaccountUpdated";
87
+ readonly type: "event";
88
+ }, {
89
+ readonly anonymous: false;
90
+ readonly inputs: readonly [{
91
+ readonly indexed: true;
92
+ readonly internalType: "TokenId";
93
+ readonly name: "tokenId";
94
+ readonly type: "uint16";
95
+ }, {
96
+ readonly indexed: true;
97
+ readonly internalType: "address";
98
+ readonly name: "tokenAddress";
99
+ readonly type: "address";
100
+ }];
101
+ readonly name: "TokenAdded";
102
+ readonly type: "event";
103
+ }, {
104
+ readonly anonymous: false;
105
+ readonly inputs: readonly [{
106
+ readonly indexed: false;
107
+ readonly internalType: "address";
108
+ readonly name: "root";
109
+ readonly type: "address";
110
+ }, {
111
+ readonly indexed: false;
112
+ readonly internalType: "TokenId";
113
+ readonly name: "tokenId";
114
+ readonly type: "uint16";
115
+ }, {
116
+ readonly indexed: false;
117
+ readonly internalType: "int256";
118
+ readonly name: "unscaledAmount";
119
+ readonly type: "int256";
120
+ }];
121
+ readonly name: "VaultTransfer";
122
+ readonly type: "event";
123
+ }, {
124
+ readonly inputs: readonly [];
125
+ readonly name: "MAX_ENTERED_MARKETS";
126
+ readonly outputs: readonly [{
127
+ readonly internalType: "uint256";
128
+ readonly name: "";
129
+ readonly type: "uint256";
130
+ }];
131
+ readonly stateMutability: "view";
132
+ readonly type: "function";
133
+ }, {
134
+ readonly inputs: readonly [];
135
+ readonly name: "ROUTER";
136
+ readonly outputs: readonly [{
137
+ readonly internalType: "address";
138
+ readonly name: "";
139
+ readonly type: "address";
140
+ }];
141
+ readonly stateMutability: "view";
142
+ readonly type: "function";
143
+ }, {
144
+ readonly inputs: readonly [];
145
+ readonly name: "TREASURY";
146
+ readonly outputs: readonly [{
147
+ readonly internalType: "address";
148
+ readonly name: "";
149
+ readonly type: "address";
150
+ }];
151
+ readonly stateMutability: "view";
152
+ readonly type: "function";
153
+ }, {
154
+ readonly inputs: readonly [{
155
+ readonly internalType: "MarketAcc";
156
+ readonly name: "user";
157
+ readonly type: "bytes26";
158
+ }];
159
+ readonly name: "accCash";
160
+ readonly outputs: readonly [{
161
+ readonly internalType: "int256";
162
+ readonly name: "";
163
+ readonly type: "int256";
164
+ }];
165
+ readonly stateMutability: "view";
166
+ readonly type: "function";
167
+ }, {
168
+ readonly inputs: readonly [{
169
+ readonly internalType: "MarketAcc";
170
+ readonly name: "from";
171
+ readonly type: "bytes26";
172
+ }, {
173
+ readonly internalType: "MarketAcc";
174
+ readonly name: "to";
175
+ readonly type: "bytes26";
176
+ }, {
177
+ readonly internalType: "int256";
178
+ readonly name: "amount";
179
+ readonly type: "int256";
180
+ }];
181
+ readonly name: "cashTransfer";
182
+ readonly outputs: readonly [];
183
+ readonly stateMutability: "nonpayable";
184
+ readonly type: "function";
185
+ }, {
186
+ readonly inputs: readonly [{
187
+ readonly internalType: "MarketAcc";
188
+ readonly name: "from";
189
+ readonly type: "bytes26";
190
+ }, {
191
+ readonly internalType: "MarketAcc";
192
+ readonly name: "to";
193
+ readonly type: "bytes26";
194
+ }];
195
+ readonly name: "cashTransferAll";
196
+ readonly outputs: readonly [{
197
+ readonly internalType: "int256";
198
+ readonly name: "amountOut";
199
+ readonly type: "int256";
200
+ }];
201
+ readonly stateMutability: "nonpayable";
202
+ readonly type: "function";
203
+ }, {
204
+ readonly inputs: readonly [{
205
+ readonly internalType: "MarketAcc";
206
+ readonly name: "user";
207
+ readonly type: "bytes26";
208
+ }, {
209
+ readonly internalType: "MarketId";
210
+ readonly name: "marketId";
211
+ readonly type: "uint24";
212
+ }];
213
+ readonly name: "enterMarket";
214
+ readonly outputs: readonly [];
215
+ readonly stateMutability: "nonpayable";
216
+ readonly type: "function";
217
+ }, {
218
+ readonly inputs: readonly [{
219
+ readonly internalType: "MarketAcc";
220
+ readonly name: "user";
221
+ readonly type: "bytes26";
222
+ }, {
223
+ readonly internalType: "MarketId";
224
+ readonly name: "marketId";
225
+ readonly type: "uint24";
226
+ }];
227
+ readonly name: "exitMarket";
228
+ readonly outputs: readonly [];
229
+ readonly stateMutability: "nonpayable";
230
+ readonly type: "function";
231
+ }, {
232
+ readonly inputs: readonly [{
233
+ readonly internalType: "MarketId";
234
+ readonly name: "marketId";
235
+ readonly type: "uint24";
236
+ }, {
237
+ readonly internalType: "MarketAcc";
238
+ readonly name: "user";
239
+ readonly type: "bytes26";
240
+ }, {
241
+ readonly internalType: "bool";
242
+ readonly name: "isCancelAll";
243
+ readonly type: "bool";
244
+ }, {
245
+ readonly internalType: "OrderId[]";
246
+ readonly name: "idsToCancel";
247
+ readonly type: "uint64[]";
248
+ }];
249
+ readonly name: "forceCancel";
250
+ readonly outputs: readonly [];
251
+ readonly stateMutability: "nonpayable";
252
+ readonly type: "function";
253
+ }, {
254
+ readonly inputs: readonly [{
255
+ readonly internalType: "MarketId";
256
+ readonly name: "marketId";
257
+ readonly type: "uint24";
258
+ }, {
259
+ readonly internalType: "MarketAcc";
260
+ readonly name: "user1";
261
+ readonly type: "bytes26";
262
+ }, {
263
+ readonly internalType: "MarketAcc";
264
+ readonly name: "user2";
265
+ readonly type: "bytes26";
266
+ }, {
267
+ readonly internalType: "int256";
268
+ readonly name: "size";
269
+ readonly type: "int256";
270
+ }];
271
+ readonly name: "forceDeleverage";
272
+ readonly outputs: readonly [{
273
+ readonly internalType: "Trade";
274
+ readonly name: "forcedTrade";
275
+ readonly type: "uint256";
276
+ }];
277
+ readonly stateMutability: "nonpayable";
278
+ readonly type: "function";
279
+ }, {
280
+ readonly inputs: readonly [{
281
+ readonly internalType: "MarketAcc";
282
+ readonly name: "user";
283
+ readonly type: "bytes26";
284
+ }];
285
+ readonly name: "getEnteredMarkets";
286
+ readonly outputs: readonly [{
287
+ readonly internalType: "MarketId[]";
288
+ readonly name: "";
289
+ readonly type: "uint24[]";
290
+ }];
291
+ readonly stateMutability: "view";
292
+ readonly type: "function";
293
+ }, {
294
+ readonly inputs: readonly [{
295
+ readonly internalType: "MarketId";
296
+ readonly name: "marketId";
297
+ readonly type: "uint24";
298
+ }, {
299
+ readonly internalType: "MarketAcc";
300
+ readonly name: "liquidator";
301
+ readonly type: "bytes26";
302
+ }, {
303
+ readonly internalType: "MarketAcc";
304
+ readonly name: "violator";
305
+ readonly type: "bytes26";
306
+ }, {
307
+ readonly internalType: "int256";
308
+ readonly name: "sizeToLiquidator";
309
+ readonly type: "int256";
310
+ }];
311
+ readonly name: "liquidate";
312
+ readonly outputs: readonly [{
313
+ readonly internalType: "Trade";
314
+ readonly name: "liqTrade";
315
+ readonly type: "uint256";
316
+ }, {
317
+ readonly internalType: "uint256";
318
+ readonly name: "liqFee";
319
+ readonly type: "uint256";
320
+ }];
321
+ readonly stateMutability: "nonpayable";
322
+ readonly type: "function";
323
+ }, {
324
+ readonly inputs: readonly [{
325
+ readonly internalType: "MarketId";
326
+ readonly name: "marketId";
327
+ readonly type: "uint24";
328
+ }];
329
+ readonly name: "marketIdToAddress";
330
+ readonly outputs: readonly [{
331
+ readonly internalType: "address";
332
+ readonly name: "";
333
+ readonly type: "address";
334
+ }];
335
+ readonly stateMutability: "view";
336
+ readonly type: "function";
337
+ }, {
338
+ readonly inputs: readonly [{
339
+ readonly internalType: "MarketId";
340
+ readonly name: "marketId";
341
+ readonly type: "uint24";
342
+ }, {
343
+ readonly internalType: "MarketAcc";
344
+ readonly name: "user";
345
+ readonly type: "bytes26";
346
+ }, {
347
+ readonly components: readonly [{
348
+ readonly internalType: "enum TimeInForce";
349
+ readonly name: "tif";
350
+ readonly type: "uint8";
351
+ }, {
352
+ readonly internalType: "Side";
353
+ readonly name: "side";
354
+ readonly type: "uint8";
355
+ }, {
356
+ readonly internalType: "uint256[]";
357
+ readonly name: "sizes";
358
+ readonly type: "uint256[]";
359
+ }, {
360
+ readonly internalType: "int16[]";
361
+ readonly name: "limitTicks";
362
+ readonly type: "int16[]";
363
+ }, {
364
+ readonly internalType: "OrderId[]";
365
+ readonly name: "idsToCancel";
366
+ readonly type: "uint64[]";
367
+ }, {
368
+ readonly internalType: "bool";
369
+ readonly name: "isCancelAll";
370
+ readonly type: "bool";
371
+ }, {
372
+ readonly internalType: "bool";
373
+ readonly name: "isStrictCancel";
374
+ readonly type: "bool";
375
+ }];
376
+ readonly internalType: "struct LongShort";
377
+ readonly name: "orders";
378
+ readonly type: "tuple";
379
+ }, {
380
+ readonly components: readonly [{
381
+ readonly internalType: "Trade";
382
+ readonly name: "trade";
383
+ readonly type: "uint256";
384
+ }, {
385
+ readonly internalType: "MarketAcc";
386
+ readonly name: "counter";
387
+ readonly type: "bytes26";
388
+ }];
389
+ readonly internalType: "struct OTCTrade[]";
390
+ readonly name: "OTCs";
391
+ readonly type: "tuple[]";
392
+ }];
393
+ readonly name: "orderAndOtc";
394
+ readonly outputs: readonly [{
395
+ readonly internalType: "Trade";
396
+ readonly name: "bookMatched";
397
+ readonly type: "uint256";
398
+ }, {
399
+ readonly internalType: "uint256";
400
+ readonly name: "takerFee";
401
+ readonly type: "uint256";
402
+ }, {
403
+ readonly internalType: "uint256";
404
+ readonly name: "otcFee";
405
+ readonly type: "uint256";
406
+ }];
407
+ readonly stateMutability: "nonpayable";
408
+ readonly type: "function";
409
+ }, {
410
+ readonly inputs: readonly [{
411
+ readonly internalType: "MarketId";
412
+ readonly name: "marketId";
413
+ readonly type: "uint24";
414
+ }, {
415
+ readonly internalType: "MarketAcc";
416
+ readonly name: "user";
417
+ readonly type: "bytes26";
418
+ }, {
419
+ readonly internalType: "MarketAcc";
420
+ readonly name: "counter";
421
+ readonly type: "bytes26";
422
+ }, {
423
+ readonly internalType: "Trade";
424
+ readonly name: "trade";
425
+ readonly type: "uint256";
426
+ }, {
427
+ readonly internalType: "int256";
428
+ readonly name: "amount";
429
+ readonly type: "int256";
430
+ }];
431
+ readonly name: "otcAndCashTransfer";
432
+ readonly outputs: readonly [{
433
+ readonly internalType: "uint256";
434
+ readonly name: "otcFee";
435
+ readonly type: "uint256";
436
+ }];
437
+ readonly stateMutability: "nonpayable";
438
+ readonly type: "function";
439
+ }, {
440
+ readonly inputs: readonly [{
441
+ readonly internalType: "address[]";
442
+ readonly name: "markets";
443
+ readonly type: "address[]";
444
+ }];
445
+ readonly name: "registerMarket";
446
+ readonly outputs: readonly [];
447
+ readonly stateMutability: "nonpayable";
448
+ readonly type: "function";
449
+ }, {
450
+ readonly inputs: readonly [{
451
+ readonly internalType: "address";
452
+ readonly name: "token";
453
+ readonly type: "address";
454
+ }];
455
+ readonly name: "registerToken";
456
+ readonly outputs: readonly [{
457
+ readonly internalType: "TokenId";
458
+ readonly name: "newTokenId";
459
+ readonly type: "uint16";
460
+ }];
461
+ readonly stateMutability: "nonpayable";
462
+ readonly type: "function";
463
+ }, {
464
+ readonly inputs: readonly [{
465
+ readonly internalType: "address";
466
+ readonly name: "root";
467
+ readonly type: "address";
468
+ }, {
469
+ readonly internalType: "uint8";
470
+ readonly name: "maxAllowedSubaccountIdNew";
471
+ readonly type: "uint8";
472
+ }];
473
+ readonly name: "setMaxAllowedSubaccountId";
474
+ readonly outputs: readonly [];
475
+ readonly stateMutability: "nonpayable";
476
+ readonly type: "function";
477
+ }, {
478
+ readonly inputs: readonly [{
479
+ readonly internalType: "MarketAcc";
480
+ readonly name: "user";
481
+ readonly type: "bytes26";
482
+ }, {
483
+ readonly internalType: "enum GetRequest";
484
+ readonly name: "req";
485
+ readonly type: "uint8";
486
+ }, {
487
+ readonly internalType: "MarketId";
488
+ readonly name: "marketId";
489
+ readonly type: "uint24";
490
+ }];
491
+ readonly name: "settleAllAndGet";
492
+ readonly outputs: readonly [{
493
+ readonly internalType: "int256";
494
+ readonly name: "cash";
495
+ readonly type: "int256";
496
+ }, {
497
+ readonly internalType: "VMResult";
498
+ readonly name: "totalIM";
499
+ readonly type: "uint256";
500
+ }, {
501
+ readonly internalType: "int256";
502
+ readonly name: "signedSize";
503
+ readonly type: "int256";
504
+ }];
505
+ readonly stateMutability: "nonpayable";
506
+ readonly type: "function";
507
+ }, {
508
+ readonly inputs: readonly [{
509
+ readonly internalType: "MarketAcc";
510
+ readonly name: "acc";
511
+ readonly type: "bytes26";
512
+ }, {
513
+ readonly internalType: "int256";
514
+ readonly name: "amount";
515
+ readonly type: "int256";
516
+ }];
517
+ readonly name: "simulateTransfer";
518
+ readonly outputs: readonly [];
519
+ readonly stateMutability: "nonpayable";
520
+ readonly type: "function";
521
+ }, {
522
+ readonly inputs: readonly [{
523
+ readonly internalType: "TokenId";
524
+ readonly name: "tokenId";
525
+ readonly type: "uint16";
526
+ }];
527
+ readonly name: "tokenData";
528
+ readonly outputs: readonly [{
529
+ readonly components: readonly [{
530
+ readonly internalType: "address";
531
+ readonly name: "token";
532
+ readonly type: "address";
533
+ }, {
534
+ readonly internalType: "uint96";
535
+ readonly name: "scalingFactor";
536
+ readonly type: "uint96";
537
+ }];
538
+ readonly internalType: "struct IMarketHubStorageOnly.TokenData";
539
+ readonly name: "";
540
+ readonly type: "tuple";
541
+ }];
542
+ readonly stateMutability: "view";
543
+ readonly type: "function";
544
+ }, {
545
+ readonly inputs: readonly [{
546
+ readonly internalType: "TokenId";
547
+ readonly name: "tokenId";
548
+ readonly type: "uint16";
549
+ }];
550
+ readonly name: "tokenIdToAddress";
551
+ readonly outputs: readonly [{
552
+ readonly internalType: "address";
553
+ readonly name: "";
554
+ readonly type: "address";
555
+ }];
556
+ readonly stateMutability: "view";
557
+ readonly type: "function";
558
+ }, {
559
+ readonly inputs: readonly [{
560
+ readonly internalType: "address";
561
+ readonly name: "token";
562
+ readonly type: "address";
563
+ }];
564
+ readonly name: "tokenToId";
565
+ readonly outputs: readonly [{
566
+ readonly internalType: "TokenId";
567
+ readonly name: "";
568
+ readonly type: "uint16";
569
+ }];
570
+ readonly stateMutability: "view";
571
+ readonly type: "function";
572
+ }, {
573
+ readonly inputs: readonly [{
574
+ readonly internalType: "TokenId";
575
+ readonly name: "tokenId";
576
+ readonly type: "uint16";
577
+ }];
578
+ readonly name: "treasuryCash";
579
+ readonly outputs: readonly [{
580
+ readonly internalType: "uint256";
581
+ readonly name: "amount";
582
+ readonly type: "uint256";
583
+ }];
584
+ readonly stateMutability: "view";
585
+ readonly type: "function";
586
+ }, {
587
+ readonly inputs: readonly [{
588
+ readonly internalType: "address";
589
+ readonly name: "root";
590
+ readonly type: "address";
591
+ }, {
592
+ readonly internalType: "TokenId";
593
+ readonly name: "tokenId";
594
+ readonly type: "uint16";
595
+ }, {
596
+ readonly internalType: "int256";
597
+ readonly name: "rawAmount";
598
+ readonly type: "int256";
599
+ }];
600
+ readonly name: "vaultTransfer";
601
+ readonly outputs: readonly [];
602
+ readonly stateMutability: "nonpayable";
603
+ readonly type: "function";
604
+ }, {
605
+ readonly inputs: readonly [{
606
+ readonly internalType: "TokenId[]";
607
+ readonly name: "tokenIds";
608
+ readonly type: "uint16[]";
609
+ }];
610
+ readonly name: "withdrawTreasury";
611
+ readonly outputs: readonly [];
612
+ readonly stateMutability: "nonpayable";
613
+ readonly type: "function";
614
+ }], undefined, true, undefined>;
615
+ market: import("viem").ParseEventLogsReturnType<readonly [{
616
+ readonly anonymous: false;
617
+ readonly inputs: readonly [{
618
+ readonly indexed: false;
619
+ readonly internalType: "FIndex";
620
+ readonly name: "newIndex";
621
+ readonly type: "bytes26";
622
+ }];
623
+ readonly name: "FIndexUpdated";
624
+ readonly type: "event";
625
+ }, {
626
+ readonly anonymous: false;
627
+ readonly inputs: readonly [{
628
+ readonly indexed: false;
629
+ readonly internalType: "MarketAcc";
630
+ readonly name: "user";
631
+ readonly type: "bytes26";
632
+ }, {
633
+ readonly indexed: false;
634
+ readonly internalType: "bool";
635
+ readonly name: "isCancelAll";
636
+ readonly type: "bool";
637
+ }, {
638
+ readonly indexed: false;
639
+ readonly internalType: "OrderId[]";
640
+ readonly name: "removedIds";
641
+ readonly type: "uint64[]";
642
+ }];
643
+ readonly name: "ForceCancel";
644
+ readonly type: "event";
645
+ }, {
646
+ readonly anonymous: false;
647
+ readonly inputs: readonly [{
648
+ readonly indexed: false;
649
+ readonly internalType: "MarketAcc";
650
+ readonly name: "winningUser";
651
+ readonly type: "bytes26";
652
+ }, {
653
+ readonly indexed: false;
654
+ readonly internalType: "MarketAcc";
655
+ readonly name: "losingUser";
656
+ readonly type: "bytes26";
657
+ }, {
658
+ readonly indexed: false;
659
+ readonly internalType: "Trade";
660
+ readonly name: "trade";
661
+ readonly type: "uint256";
662
+ }];
663
+ readonly name: "ForceDeleverage";
664
+ readonly type: "event";
665
+ }, {
666
+ readonly anonymous: false;
667
+ readonly inputs: readonly [{
668
+ readonly indexed: false;
669
+ readonly internalType: "uint32";
670
+ readonly name: "newWindow";
671
+ readonly type: "uint32";
672
+ }];
673
+ readonly name: "ImpliedRateObservationWindowUpdated";
674
+ readonly type: "event";
675
+ }, {
676
+ readonly anonymous: false;
677
+ readonly inputs: readonly [{
678
+ readonly indexed: false;
679
+ readonly internalType: "OrderId[]";
680
+ readonly name: "orderIds";
681
+ readonly type: "uint64[]";
682
+ }];
683
+ readonly name: "LimitOrderCancelled";
684
+ readonly type: "event";
685
+ }, {
686
+ readonly anonymous: false;
687
+ readonly inputs: readonly [{
688
+ readonly indexed: false;
689
+ readonly internalType: "OrderId";
690
+ readonly name: "from";
691
+ readonly type: "uint64";
692
+ }, {
693
+ readonly indexed: false;
694
+ readonly internalType: "OrderId";
695
+ readonly name: "to";
696
+ readonly type: "uint64";
697
+ }];
698
+ readonly name: "LimitOrderFilled";
699
+ readonly type: "event";
700
+ }, {
701
+ readonly anonymous: false;
702
+ readonly inputs: readonly [{
703
+ readonly indexed: false;
704
+ readonly internalType: "OrderId";
705
+ readonly name: "orderId";
706
+ readonly type: "uint64";
707
+ }, {
708
+ readonly indexed: false;
709
+ readonly internalType: "uint256";
710
+ readonly name: "filledSize";
711
+ readonly type: "uint256";
712
+ }];
713
+ readonly name: "LimitOrderPartiallyFilled";
714
+ readonly type: "event";
715
+ }, {
716
+ readonly anonymous: false;
717
+ readonly inputs: readonly [{
718
+ readonly indexed: false;
719
+ readonly internalType: "MarketAcc";
720
+ readonly name: "maker";
721
+ readonly type: "bytes26";
722
+ }, {
723
+ readonly indexed: false;
724
+ readonly internalType: "OrderId[]";
725
+ readonly name: "orderIds";
726
+ readonly type: "uint64[]";
727
+ }, {
728
+ readonly indexed: false;
729
+ readonly internalType: "uint256[]";
730
+ readonly name: "sizes";
731
+ readonly type: "uint256[]";
732
+ }];
733
+ readonly name: "LimitOrderPlaced";
734
+ readonly type: "event";
735
+ }, {
736
+ readonly anonymous: false;
737
+ readonly inputs: readonly [{
738
+ readonly indexed: false;
739
+ readonly internalType: "MarketAcc";
740
+ readonly name: "liquidator";
741
+ readonly type: "bytes26";
742
+ }, {
743
+ readonly indexed: false;
744
+ readonly internalType: "MarketAcc";
745
+ readonly name: "violator";
746
+ readonly type: "bytes26";
747
+ }, {
748
+ readonly indexed: false;
749
+ readonly internalType: "Trade";
750
+ readonly name: "liqTrade";
751
+ readonly type: "uint256";
752
+ }, {
753
+ readonly indexed: false;
754
+ readonly internalType: "uint256";
755
+ readonly name: "fees";
756
+ readonly type: "uint256";
757
+ }];
758
+ readonly name: "Liquidate";
759
+ readonly type: "event";
760
+ }, {
761
+ readonly anonymous: false;
762
+ readonly inputs: readonly [{
763
+ readonly components: readonly [{
764
+ readonly internalType: "uint16";
765
+ readonly name: "maxOpenOrders";
766
+ readonly type: "uint16";
767
+ }, {
768
+ readonly internalType: "address";
769
+ readonly name: "markRateOracle";
770
+ readonly type: "address";
771
+ }, {
772
+ readonly internalType: "address";
773
+ readonly name: "fIndexOracle";
774
+ readonly type: "address";
775
+ }, {
776
+ readonly internalType: "uint128";
777
+ readonly name: "OICap";
778
+ readonly type: "uint128";
779
+ }, {
780
+ readonly internalType: "uint64";
781
+ readonly name: "takerFee";
782
+ readonly type: "uint64";
783
+ }, {
784
+ readonly internalType: "uint64";
785
+ readonly name: "otcFee";
786
+ readonly type: "uint64";
787
+ }, {
788
+ readonly components: readonly [{
789
+ readonly internalType: "uint128";
790
+ readonly name: "base";
791
+ readonly type: "uint128";
792
+ }, {
793
+ readonly internalType: "uint128";
794
+ readonly name: "slope";
795
+ readonly type: "uint128";
796
+ }];
797
+ readonly internalType: "struct IMarketAllTypes.LiqIncentiveConfig";
798
+ readonly name: "liqIncentive";
799
+ readonly type: "tuple";
800
+ }, {
801
+ readonly internalType: "uint64";
802
+ readonly name: "IMFactor";
803
+ readonly type: "uint64";
804
+ }, {
805
+ readonly internalType: "uint64";
806
+ readonly name: "MMFactor";
807
+ readonly type: "uint64";
808
+ }, {
809
+ readonly internalType: "uint128";
810
+ readonly name: "minMarginIndexRate";
811
+ readonly type: "uint128";
812
+ }, {
813
+ readonly internalType: "uint32";
814
+ readonly name: "minMarginIndexDuration";
815
+ readonly type: "uint32";
816
+ }];
817
+ readonly indexed: false;
818
+ readonly internalType: "struct IMarketAllTypes.MarketConfigStruct";
819
+ readonly name: "newConfig";
820
+ readonly type: "tuple";
821
+ }];
822
+ readonly name: "MarketConfigUpdated";
823
+ readonly type: "event";
824
+ }, {
825
+ readonly anonymous: false;
826
+ readonly inputs: readonly [{
827
+ readonly indexed: false;
828
+ readonly internalType: "MarketAcc";
829
+ readonly name: "user";
830
+ readonly type: "bytes26";
831
+ }, {
832
+ readonly indexed: false;
833
+ readonly internalType: "Trade";
834
+ readonly name: "totalTrade";
835
+ readonly type: "uint256";
836
+ }, {
837
+ readonly indexed: false;
838
+ readonly internalType: "uint256";
839
+ readonly name: "totalFees";
840
+ readonly type: "uint256";
841
+ }];
842
+ readonly name: "MarketOrdersFilled";
843
+ readonly type: "event";
844
+ }, {
845
+ readonly anonymous: false;
846
+ readonly inputs: readonly [{
847
+ readonly indexed: false;
848
+ readonly internalType: "MarketAcc";
849
+ readonly name: "user";
850
+ readonly type: "bytes26";
851
+ }, {
852
+ readonly indexed: false;
853
+ readonly internalType: "MarketAcc";
854
+ readonly name: "counterParty";
855
+ readonly type: "bytes26";
856
+ }, {
857
+ readonly indexed: false;
858
+ readonly internalType: "Trade";
859
+ readonly name: "trade";
860
+ readonly type: "uint256";
861
+ }, {
862
+ readonly indexed: false;
863
+ readonly internalType: "uint256";
864
+ readonly name: "fees";
865
+ readonly type: "uint256";
866
+ }];
867
+ readonly name: "OtcSwap";
868
+ readonly type: "event";
869
+ }, {
870
+ readonly anonymous: false;
871
+ readonly inputs: readonly [{
872
+ readonly indexed: false;
873
+ readonly internalType: "MarketAcc";
874
+ readonly name: "user";
875
+ readonly type: "bytes26";
876
+ }, {
877
+ readonly indexed: false;
878
+ readonly internalType: "uint256";
879
+ readonly name: "lastFTime";
880
+ readonly type: "uint256";
881
+ }, {
882
+ readonly indexed: false;
883
+ readonly internalType: "uint256";
884
+ readonly name: "latestFTime";
885
+ readonly type: "uint256";
886
+ }, {
887
+ readonly indexed: false;
888
+ readonly internalType: "int256";
889
+ readonly name: "payment";
890
+ readonly type: "int256";
891
+ }, {
892
+ readonly indexed: false;
893
+ readonly internalType: "uint256";
894
+ readonly name: "fees";
895
+ readonly type: "uint256";
896
+ }];
897
+ readonly name: "PaymentFromSettlement";
898
+ readonly type: "event";
899
+ }, {
900
+ readonly anonymous: false;
901
+ readonly inputs: readonly [{
902
+ readonly indexed: true;
903
+ readonly internalType: "address";
904
+ readonly name: "user";
905
+ readonly type: "address";
906
+ }, {
907
+ readonly indexed: false;
908
+ readonly internalType: "uint64";
909
+ readonly name: "newTakerDisc";
910
+ readonly type: "uint64";
911
+ }, {
912
+ readonly indexed: false;
913
+ readonly internalType: "uint64";
914
+ readonly name: "newOtcDisc";
915
+ readonly type: "uint64";
916
+ }];
917
+ readonly name: "PersonalDiscRatesUpdated";
918
+ readonly type: "event";
919
+ }, {
920
+ readonly anonymous: false;
921
+ readonly inputs: readonly [{
922
+ readonly indexed: true;
923
+ readonly internalType: "address";
924
+ readonly name: "user";
925
+ readonly type: "address";
926
+ }, {
927
+ readonly indexed: false;
928
+ readonly internalType: "uint64";
929
+ readonly name: "newIMFactor";
930
+ readonly type: "uint64";
931
+ }, {
932
+ readonly indexed: false;
933
+ readonly internalType: "uint64";
934
+ readonly name: "newMMFactor";
935
+ readonly type: "uint64";
936
+ }];
937
+ readonly name: "PersonalMarginConfigUpdated";
938
+ readonly type: "event";
939
+ }, {
940
+ readonly inputs: readonly [{
941
+ readonly internalType: "MarketAcc";
942
+ readonly name: "violator";
943
+ readonly type: "bytes26";
944
+ }, {
945
+ readonly internalType: "int256";
946
+ readonly name: "sizeToLiquidator";
947
+ readonly type: "int256";
948
+ }, {
949
+ readonly internalType: "int256";
950
+ readonly name: "healthRatio";
951
+ readonly type: "int256";
952
+ }];
953
+ readonly name: "calcLiqTradeNoSettle";
954
+ readonly outputs: readonly [{
955
+ readonly internalType: "Trade";
956
+ readonly name: "liqTrade";
957
+ readonly type: "uint256";
958
+ }];
959
+ readonly stateMutability: "view";
960
+ readonly type: "function";
961
+ }, {
962
+ readonly inputs: readonly [{
963
+ readonly internalType: "MarketAcc";
964
+ readonly name: "user";
965
+ readonly type: "bytes26";
966
+ }, {
967
+ readonly internalType: "enum MarginType";
968
+ readonly name: "marginType";
969
+ readonly type: "uint8";
970
+ }];
971
+ readonly name: "calcMarginNoSettle";
972
+ readonly outputs: readonly [{
973
+ readonly internalType: "uint256";
974
+ readonly name: "";
975
+ readonly type: "uint256";
976
+ }];
977
+ readonly stateMutability: "view";
978
+ readonly type: "function";
979
+ }, {
980
+ readonly inputs: readonly [{
981
+ readonly internalType: "MarketAcc";
982
+ readonly name: "user";
983
+ readonly type: "bytes26";
984
+ }];
985
+ readonly name: "calcPositionValueNoSettle";
986
+ readonly outputs: readonly [{
987
+ readonly internalType: "int256";
988
+ readonly name: "";
989
+ readonly type: "int256";
990
+ }];
991
+ readonly stateMutability: "view";
992
+ readonly type: "function";
993
+ }, {
994
+ readonly inputs: readonly [{
995
+ readonly internalType: "uint32";
996
+ readonly name: "startCheckTime";
997
+ readonly type: "uint32";
998
+ }, {
999
+ readonly internalType: "int16";
1000
+ readonly name: "tick";
1001
+ readonly type: "int16";
1002
+ }, {
1003
+ readonly internalType: "bool";
1004
+ readonly name: "toHaveRecentGte";
1005
+ readonly type: "bool";
1006
+ }];
1007
+ readonly name: "checkStopTick";
1008
+ readonly outputs: readonly [{
1009
+ readonly internalType: "bool";
1010
+ readonly name: "";
1011
+ readonly type: "bool";
1012
+ }];
1013
+ readonly stateMutability: "view";
1014
+ readonly type: "function";
1015
+ }, {
1016
+ readonly inputs: readonly [];
1017
+ readonly name: "descriptor";
1018
+ readonly outputs: readonly [{
1019
+ readonly internalType: "bool";
1020
+ readonly name: "isIsolatedOnly";
1021
+ readonly type: "bool";
1022
+ }, {
1023
+ readonly internalType: "TokenId";
1024
+ readonly name: "tokenId";
1025
+ readonly type: "uint16";
1026
+ }, {
1027
+ readonly internalType: "MarketId";
1028
+ readonly name: "marketId";
1029
+ readonly type: "uint24";
1030
+ }, {
1031
+ readonly internalType: "uint32";
1032
+ readonly name: "maturity";
1033
+ readonly type: "uint32";
1034
+ }, {
1035
+ readonly internalType: "uint8";
1036
+ readonly name: "tickStep";
1037
+ readonly type: "uint8";
1038
+ }];
1039
+ readonly stateMutability: "view";
1040
+ readonly type: "function";
1041
+ }, {
1042
+ readonly inputs: readonly [{
1043
+ readonly internalType: "MarketAcc";
1044
+ readonly name: "user";
1045
+ readonly type: "bytes26";
1046
+ }, {
1047
+ readonly internalType: "bool";
1048
+ readonly name: "isCancelAll";
1049
+ readonly type: "bool";
1050
+ }, {
1051
+ readonly internalType: "OrderId[]";
1052
+ readonly name: "idsToCancel";
1053
+ readonly type: "uint64[]";
1054
+ }];
1055
+ readonly name: "forceCancel";
1056
+ readonly outputs: readonly [{
1057
+ readonly internalType: "PayFee";
1058
+ readonly name: "payFee";
1059
+ readonly type: "uint256";
1060
+ }, {
1061
+ readonly internalType: "OrderId[]";
1062
+ readonly name: "removedIds";
1063
+ readonly type: "uint64[]";
1064
+ }];
1065
+ readonly stateMutability: "nonpayable";
1066
+ readonly type: "function";
1067
+ }, {
1068
+ readonly inputs: readonly [{
1069
+ readonly internalType: "MarketAcc";
1070
+ readonly name: "winningUser";
1071
+ readonly type: "bytes26";
1072
+ }, {
1073
+ readonly internalType: "MarketAcc";
1074
+ readonly name: "losingUser";
1075
+ readonly type: "bytes26";
1076
+ }, {
1077
+ readonly internalType: "int256";
1078
+ readonly name: "size";
1079
+ readonly type: "int256";
1080
+ }];
1081
+ readonly name: "forceDeleverage";
1082
+ readonly outputs: readonly [{
1083
+ readonly internalType: "Trade";
1084
+ readonly name: "forcedTrade";
1085
+ readonly type: "uint256";
1086
+ }, {
1087
+ readonly internalType: "PayFee";
1088
+ readonly name: "settleWinningUser";
1089
+ readonly type: "uint256";
1090
+ }, {
1091
+ readonly internalType: "PayFee";
1092
+ readonly name: "settleLosingUser";
1093
+ readonly type: "uint256";
1094
+ }];
1095
+ readonly stateMutability: "nonpayable";
1096
+ readonly type: "function";
1097
+ }, {
1098
+ readonly inputs: readonly [{
1099
+ readonly internalType: "MarketAcc";
1100
+ readonly name: "user";
1101
+ readonly type: "bytes26";
1102
+ }];
1103
+ readonly name: "getAllOpenOrders";
1104
+ readonly outputs: readonly [{
1105
+ readonly components: readonly [{
1106
+ readonly internalType: "enum OrderStatus";
1107
+ readonly name: "status";
1108
+ readonly type: "uint8";
1109
+ }, {
1110
+ readonly internalType: "OrderId";
1111
+ readonly name: "id";
1112
+ readonly type: "uint64";
1113
+ }, {
1114
+ readonly internalType: "MarketAcc";
1115
+ readonly name: "maker";
1116
+ readonly type: "bytes26";
1117
+ }, {
1118
+ readonly internalType: "uint256";
1119
+ readonly name: "size";
1120
+ readonly type: "uint256";
1121
+ }, {
1122
+ readonly internalType: "int256";
1123
+ readonly name: "rate";
1124
+ readonly type: "int256";
1125
+ }];
1126
+ readonly internalType: "struct IMarketOffViewOnly.Order[]";
1127
+ readonly name: "";
1128
+ readonly type: "tuple[]";
1129
+ }];
1130
+ readonly stateMutability: "view";
1131
+ readonly type: "function";
1132
+ }, {
1133
+ readonly inputs: readonly [{
1134
+ readonly internalType: "MarketAcc";
1135
+ readonly name: "user";
1136
+ readonly type: "bytes26";
1137
+ }, {
1138
+ readonly internalType: "MarketAcc";
1139
+ readonly name: "otcCounter";
1140
+ readonly type: "bytes26";
1141
+ }];
1142
+ readonly name: "getBestFeeRates";
1143
+ readonly outputs: readonly [{
1144
+ readonly internalType: "uint64";
1145
+ readonly name: "takerFee";
1146
+ readonly type: "uint64";
1147
+ }, {
1148
+ readonly internalType: "uint64";
1149
+ readonly name: "otcFee";
1150
+ readonly type: "uint64";
1151
+ }];
1152
+ readonly stateMutability: "view";
1153
+ readonly type: "function";
1154
+ }, {
1155
+ readonly inputs: readonly [{
1156
+ readonly internalType: "MarketAcc";
1157
+ readonly name: "user";
1158
+ readonly type: "bytes26";
1159
+ }];
1160
+ readonly name: "getDelevLiqNonce";
1161
+ readonly outputs: readonly [{
1162
+ readonly internalType: "uint24";
1163
+ readonly name: "";
1164
+ readonly type: "uint24";
1165
+ }];
1166
+ readonly stateMutability: "view";
1167
+ readonly type: "function";
1168
+ }, {
1169
+ readonly inputs: readonly [{
1170
+ readonly internalType: "MarketAcc";
1171
+ readonly name: "user";
1172
+ readonly type: "bytes26";
1173
+ }];
1174
+ readonly name: "getDiscRates";
1175
+ readonly outputs: readonly [{
1176
+ readonly internalType: "uint64";
1177
+ readonly name: "takerDisc";
1178
+ readonly type: "uint64";
1179
+ }, {
1180
+ readonly internalType: "uint64";
1181
+ readonly name: "otcDisc";
1182
+ readonly type: "uint64";
1183
+ }];
1184
+ readonly stateMutability: "view";
1185
+ readonly type: "function";
1186
+ }, {
1187
+ readonly inputs: readonly [];
1188
+ readonly name: "getImpliedRate";
1189
+ readonly outputs: readonly [{
1190
+ readonly internalType: "int128";
1191
+ readonly name: "lastTradedRate";
1192
+ readonly type: "int128";
1193
+ }, {
1194
+ readonly internalType: "int128";
1195
+ readonly name: "oracleRate";
1196
+ readonly type: "int128";
1197
+ }, {
1198
+ readonly internalType: "uint32";
1199
+ readonly name: "lastTradedTime";
1200
+ readonly type: "uint32";
1201
+ }, {
1202
+ readonly internalType: "uint32";
1203
+ readonly name: "observationWindow";
1204
+ readonly type: "uint32";
1205
+ }];
1206
+ readonly stateMutability: "view";
1207
+ readonly type: "function";
1208
+ }, {
1209
+ readonly inputs: readonly [];
1210
+ readonly name: "getLatestFIndex";
1211
+ readonly outputs: readonly [{
1212
+ readonly internalType: "FIndex";
1213
+ readonly name: "";
1214
+ readonly type: "bytes26";
1215
+ }];
1216
+ readonly stateMutability: "view";
1217
+ readonly type: "function";
1218
+ }, {
1219
+ readonly inputs: readonly [{
1220
+ readonly internalType: "MarketAcc";
1221
+ readonly name: "user";
1222
+ readonly type: "bytes26";
1223
+ }];
1224
+ readonly name: "getMarginFactor";
1225
+ readonly outputs: readonly [{
1226
+ readonly internalType: "uint64";
1227
+ readonly name: "IMFactor";
1228
+ readonly type: "uint64";
1229
+ }, {
1230
+ readonly internalType: "uint64";
1231
+ readonly name: "MMFactor";
1232
+ readonly type: "uint64";
1233
+ }];
1234
+ readonly stateMutability: "view";
1235
+ readonly type: "function";
1236
+ }, {
1237
+ readonly inputs: readonly [];
1238
+ readonly name: "getMarkRate";
1239
+ readonly outputs: readonly [{
1240
+ readonly internalType: "int256";
1241
+ readonly name: "";
1242
+ readonly type: "int256";
1243
+ }];
1244
+ readonly stateMutability: "nonpayable";
1245
+ readonly type: "function";
1246
+ }, {
1247
+ readonly inputs: readonly [];
1248
+ readonly name: "getMarkRateView";
1249
+ readonly outputs: readonly [{
1250
+ readonly internalType: "int256";
1251
+ readonly name: "";
1252
+ readonly type: "int256";
1253
+ }];
1254
+ readonly stateMutability: "view";
1255
+ readonly type: "function";
1256
+ }, {
1257
+ readonly inputs: readonly [];
1258
+ readonly name: "getMarketConfig";
1259
+ readonly outputs: readonly [{
1260
+ readonly components: readonly [{
1261
+ readonly internalType: "uint16";
1262
+ readonly name: "maxOpenOrders";
1263
+ readonly type: "uint16";
1264
+ }, {
1265
+ readonly internalType: "address";
1266
+ readonly name: "markRateOracle";
1267
+ readonly type: "address";
1268
+ }, {
1269
+ readonly internalType: "address";
1270
+ readonly name: "fIndexOracle";
1271
+ readonly type: "address";
1272
+ }, {
1273
+ readonly internalType: "uint128";
1274
+ readonly name: "OICap";
1275
+ readonly type: "uint128";
1276
+ }, {
1277
+ readonly internalType: "uint64";
1278
+ readonly name: "takerFee";
1279
+ readonly type: "uint64";
1280
+ }, {
1281
+ readonly internalType: "uint64";
1282
+ readonly name: "otcFee";
1283
+ readonly type: "uint64";
1284
+ }, {
1285
+ readonly components: readonly [{
1286
+ readonly internalType: "uint128";
1287
+ readonly name: "base";
1288
+ readonly type: "uint128";
1289
+ }, {
1290
+ readonly internalType: "uint128";
1291
+ readonly name: "slope";
1292
+ readonly type: "uint128";
1293
+ }];
1294
+ readonly internalType: "struct IMarketAllTypes.LiqIncentiveConfig";
1295
+ readonly name: "liqIncentive";
1296
+ readonly type: "tuple";
1297
+ }, {
1298
+ readonly internalType: "uint64";
1299
+ readonly name: "IMFactor";
1300
+ readonly type: "uint64";
1301
+ }, {
1302
+ readonly internalType: "uint64";
1303
+ readonly name: "MMFactor";
1304
+ readonly type: "uint64";
1305
+ }, {
1306
+ readonly internalType: "uint128";
1307
+ readonly name: "minMarginIndexRate";
1308
+ readonly type: "uint128";
1309
+ }, {
1310
+ readonly internalType: "uint32";
1311
+ readonly name: "minMarginIndexDuration";
1312
+ readonly type: "uint32";
1313
+ }];
1314
+ readonly internalType: "struct IMarketAllTypes.MarketConfigStruct";
1315
+ readonly name: "";
1316
+ readonly type: "tuple";
1317
+ }];
1318
+ readonly stateMutability: "view";
1319
+ readonly type: "function";
1320
+ }, {
1321
+ readonly inputs: readonly [{
1322
+ readonly internalType: "Side";
1323
+ readonly name: "side";
1324
+ readonly type: "uint8";
1325
+ }, {
1326
+ readonly internalType: "int16";
1327
+ readonly name: "limitTick";
1328
+ readonly type: "int16";
1329
+ }, {
1330
+ readonly internalType: "uint256";
1331
+ readonly name: "maxNTicks";
1332
+ readonly type: "uint256";
1333
+ }];
1334
+ readonly name: "getNextNTicks";
1335
+ readonly outputs: readonly [{
1336
+ readonly internalType: "int16[]";
1337
+ readonly name: "ticks";
1338
+ readonly type: "int16[]";
1339
+ }, {
1340
+ readonly internalType: "uint256[]";
1341
+ readonly name: "tickSizes";
1342
+ readonly type: "uint256[]";
1343
+ }];
1344
+ readonly stateMutability: "view";
1345
+ readonly type: "function";
1346
+ }, {
1347
+ readonly inputs: readonly [];
1348
+ readonly name: "getOI";
1349
+ readonly outputs: readonly [{
1350
+ readonly internalType: "uint256";
1351
+ readonly name: "";
1352
+ readonly type: "uint256";
1353
+ }];
1354
+ readonly stateMutability: "view";
1355
+ readonly type: "function";
1356
+ }, {
1357
+ readonly inputs: readonly [{
1358
+ readonly internalType: "OrderId";
1359
+ readonly name: "id";
1360
+ readonly type: "uint64";
1361
+ }];
1362
+ readonly name: "getOrder";
1363
+ readonly outputs: readonly [{
1364
+ readonly components: readonly [{
1365
+ readonly internalType: "enum OrderStatus";
1366
+ readonly name: "status";
1367
+ readonly type: "uint8";
1368
+ }, {
1369
+ readonly internalType: "OrderId";
1370
+ readonly name: "id";
1371
+ readonly type: "uint64";
1372
+ }, {
1373
+ readonly internalType: "MarketAcc";
1374
+ readonly name: "maker";
1375
+ readonly type: "bytes26";
1376
+ }, {
1377
+ readonly internalType: "uint256";
1378
+ readonly name: "size";
1379
+ readonly type: "uint256";
1380
+ }, {
1381
+ readonly internalType: "int256";
1382
+ readonly name: "rate";
1383
+ readonly type: "int256";
1384
+ }];
1385
+ readonly internalType: "struct IMarketOffViewOnly.Order";
1386
+ readonly name: "order";
1387
+ readonly type: "tuple";
1388
+ }];
1389
+ readonly stateMutability: "view";
1390
+ readonly type: "function";
1391
+ }, {
1392
+ readonly inputs: readonly [{
1393
+ readonly internalType: "MarketAcc";
1394
+ readonly name: "user";
1395
+ readonly type: "bytes26";
1396
+ }];
1397
+ readonly name: "getPendingSizes";
1398
+ readonly outputs: readonly [{
1399
+ readonly internalType: "uint256";
1400
+ readonly name: "pendingLongSize";
1401
+ readonly type: "uint256";
1402
+ }, {
1403
+ readonly internalType: "uint256";
1404
+ readonly name: "pendingShortSize";
1405
+ readonly type: "uint256";
1406
+ }];
1407
+ readonly stateMutability: "view";
1408
+ readonly type: "function";
1409
+ }, {
1410
+ readonly inputs: readonly [{
1411
+ readonly internalType: "MarketAcc";
1412
+ readonly name: "user";
1413
+ readonly type: "bytes26";
1414
+ }];
1415
+ readonly name: "getSignedSizeNoSettle";
1416
+ readonly outputs: readonly [{
1417
+ readonly internalType: "int256";
1418
+ readonly name: "";
1419
+ readonly type: "int256";
1420
+ }];
1421
+ readonly stateMutability: "view";
1422
+ readonly type: "function";
1423
+ }, {
1424
+ readonly inputs: readonly [{
1425
+ readonly internalType: "Side";
1426
+ readonly name: "side";
1427
+ readonly type: "uint8";
1428
+ }, {
1429
+ readonly internalType: "int16";
1430
+ readonly name: "fromTick";
1431
+ readonly type: "int16";
1432
+ }, {
1433
+ readonly internalType: "int16";
1434
+ readonly name: "toTick";
1435
+ readonly type: "int16";
1436
+ }];
1437
+ readonly name: "getTickSumSize";
1438
+ readonly outputs: readonly [{
1439
+ readonly internalType: "uint256[]";
1440
+ readonly name: "sizes";
1441
+ readonly type: "uint256[]";
1442
+ }];
1443
+ readonly stateMutability: "view";
1444
+ readonly type: "function";
1445
+ }, {
1446
+ readonly inputs: readonly [{
1447
+ readonly components: readonly [{
1448
+ readonly internalType: "string";
1449
+ readonly name: "name";
1450
+ readonly type: "string";
1451
+ }, {
1452
+ readonly internalType: "string";
1453
+ readonly name: "symbol";
1454
+ readonly type: "string";
1455
+ }, {
1456
+ readonly internalType: "bool";
1457
+ readonly name: "k_isIsolatedOnly";
1458
+ readonly type: "bool";
1459
+ }, {
1460
+ readonly internalType: "uint32";
1461
+ readonly name: "k_maturity";
1462
+ readonly type: "uint32";
1463
+ }, {
1464
+ readonly internalType: "TokenId";
1465
+ readonly name: "k_tokenId";
1466
+ readonly type: "uint16";
1467
+ }, {
1468
+ readonly internalType: "MarketId";
1469
+ readonly name: "k_marketId";
1470
+ readonly type: "uint24";
1471
+ }, {
1472
+ readonly internalType: "uint8";
1473
+ readonly name: "k_tickStep";
1474
+ readonly type: "uint8";
1475
+ }];
1476
+ readonly internalType: "struct IMarketAllTypes.MarketImmutableDataStruct";
1477
+ readonly name: "initialImmData";
1478
+ readonly type: "tuple";
1479
+ }, {
1480
+ readonly components: readonly [{
1481
+ readonly internalType: "uint16";
1482
+ readonly name: "maxOpenOrders";
1483
+ readonly type: "uint16";
1484
+ }, {
1485
+ readonly internalType: "address";
1486
+ readonly name: "markRateOracle";
1487
+ readonly type: "address";
1488
+ }, {
1489
+ readonly internalType: "address";
1490
+ readonly name: "fIndexOracle";
1491
+ readonly type: "address";
1492
+ }, {
1493
+ readonly internalType: "uint128";
1494
+ readonly name: "OICap";
1495
+ readonly type: "uint128";
1496
+ }, {
1497
+ readonly internalType: "uint64";
1498
+ readonly name: "takerFee";
1499
+ readonly type: "uint64";
1500
+ }, {
1501
+ readonly internalType: "uint64";
1502
+ readonly name: "otcFee";
1503
+ readonly type: "uint64";
1504
+ }, {
1505
+ readonly components: readonly [{
1506
+ readonly internalType: "uint128";
1507
+ readonly name: "base";
1508
+ readonly type: "uint128";
1509
+ }, {
1510
+ readonly internalType: "uint128";
1511
+ readonly name: "slope";
1512
+ readonly type: "uint128";
1513
+ }];
1514
+ readonly internalType: "struct IMarketAllTypes.LiqIncentiveConfig";
1515
+ readonly name: "liqIncentive";
1516
+ readonly type: "tuple";
1517
+ }, {
1518
+ readonly internalType: "uint64";
1519
+ readonly name: "IMFactor";
1520
+ readonly type: "uint64";
1521
+ }, {
1522
+ readonly internalType: "uint64";
1523
+ readonly name: "MMFactor";
1524
+ readonly type: "uint64";
1525
+ }, {
1526
+ readonly internalType: "uint128";
1527
+ readonly name: "minMarginIndexRate";
1528
+ readonly type: "uint128";
1529
+ }, {
1530
+ readonly internalType: "uint32";
1531
+ readonly name: "minMarginIndexDuration";
1532
+ readonly type: "uint32";
1533
+ }];
1534
+ readonly internalType: "struct IMarketAllTypes.MarketConfigStruct";
1535
+ readonly name: "initialConfig";
1536
+ readonly type: "tuple";
1537
+ }, {
1538
+ readonly components: readonly [{
1539
+ readonly internalType: "int16";
1540
+ readonly name: "seedTradedTick";
1541
+ readonly type: "int16";
1542
+ }, {
1543
+ readonly internalType: "uint32";
1544
+ readonly name: "window";
1545
+ readonly type: "uint32";
1546
+ }];
1547
+ readonly internalType: "struct MarketImpliedRateLib.InitStruct";
1548
+ readonly name: "impliedRateInit";
1549
+ readonly type: "tuple";
1550
+ }];
1551
+ readonly name: "initialize";
1552
+ readonly outputs: readonly [];
1553
+ readonly stateMutability: "nonpayable";
1554
+ readonly type: "function";
1555
+ }, {
1556
+ readonly inputs: readonly [{
1557
+ readonly internalType: "MarketAcc";
1558
+ readonly name: "liquidator";
1559
+ readonly type: "bytes26";
1560
+ }, {
1561
+ readonly internalType: "MarketAcc";
1562
+ readonly name: "violator";
1563
+ readonly type: "bytes26";
1564
+ }, {
1565
+ readonly internalType: "int256";
1566
+ readonly name: "sizeToLiquidator";
1567
+ readonly type: "int256";
1568
+ }, {
1569
+ readonly internalType: "int256";
1570
+ readonly name: "healthRatio";
1571
+ readonly type: "int256";
1572
+ }];
1573
+ readonly name: "liquidate";
1574
+ readonly outputs: readonly [{
1575
+ readonly components: readonly [{
1576
+ readonly internalType: "VMResult";
1577
+ readonly name: "preIMLiq";
1578
+ readonly type: "uint256";
1579
+ }, {
1580
+ readonly internalType: "VMResult";
1581
+ readonly name: "postIMLiq";
1582
+ readonly type: "uint256";
1583
+ }, {
1584
+ readonly internalType: "PayFee";
1585
+ readonly name: "prePayFeeLiq";
1586
+ readonly type: "uint256";
1587
+ }, {
1588
+ readonly internalType: "PayFee";
1589
+ readonly name: "postPayFeeLiq";
1590
+ readonly type: "uint256";
1591
+ }, {
1592
+ readonly internalType: "PayFee";
1593
+ readonly name: "totalPayFeeVio";
1594
+ readonly type: "uint256";
1595
+ }, {
1596
+ readonly internalType: "Trade";
1597
+ readonly name: "liqTrade";
1598
+ readonly type: "uint256";
1599
+ }, {
1600
+ readonly internalType: "uint256";
1601
+ readonly name: "liqFee";
1602
+ readonly type: "uint256";
1603
+ }];
1604
+ readonly internalType: "struct LiqResult";
1605
+ readonly name: "res";
1606
+ readonly type: "tuple";
1607
+ }];
1608
+ readonly stateMutability: "nonpayable";
1609
+ readonly type: "function";
1610
+ }, {
1611
+ readonly inputs: readonly [];
1612
+ readonly name: "marketHub";
1613
+ readonly outputs: readonly [{
1614
+ readonly internalType: "address";
1615
+ readonly name: "";
1616
+ readonly type: "address";
1617
+ }];
1618
+ readonly stateMutability: "view";
1619
+ readonly type: "function";
1620
+ }, {
1621
+ readonly inputs: readonly [];
1622
+ readonly name: "name";
1623
+ readonly outputs: readonly [{
1624
+ readonly internalType: "string";
1625
+ readonly name: "";
1626
+ readonly type: "string";
1627
+ }];
1628
+ readonly stateMutability: "view";
1629
+ readonly type: "function";
1630
+ }, {
1631
+ readonly inputs: readonly [{
1632
+ readonly internalType: "MarketAcc";
1633
+ readonly name: "user";
1634
+ readonly type: "bytes26";
1635
+ }, {
1636
+ readonly components: readonly [{
1637
+ readonly internalType: "enum TimeInForce";
1638
+ readonly name: "tif";
1639
+ readonly type: "uint8";
1640
+ }, {
1641
+ readonly internalType: "Side";
1642
+ readonly name: "side";
1643
+ readonly type: "uint8";
1644
+ }, {
1645
+ readonly internalType: "uint256[]";
1646
+ readonly name: "sizes";
1647
+ readonly type: "uint256[]";
1648
+ }, {
1649
+ readonly internalType: "int16[]";
1650
+ readonly name: "limitTicks";
1651
+ readonly type: "int16[]";
1652
+ }, {
1653
+ readonly internalType: "OrderId[]";
1654
+ readonly name: "idsToCancel";
1655
+ readonly type: "uint64[]";
1656
+ }, {
1657
+ readonly internalType: "bool";
1658
+ readonly name: "isCancelAll";
1659
+ readonly type: "bool";
1660
+ }, {
1661
+ readonly internalType: "bool";
1662
+ readonly name: "isStrictCancel";
1663
+ readonly type: "bool";
1664
+ }];
1665
+ readonly internalType: "struct LongShort";
1666
+ readonly name: "orders";
1667
+ readonly type: "tuple";
1668
+ }, {
1669
+ readonly components: readonly [{
1670
+ readonly internalType: "Trade";
1671
+ readonly name: "trade";
1672
+ readonly type: "uint256";
1673
+ }, {
1674
+ readonly internalType: "MarketAcc";
1675
+ readonly name: "counter";
1676
+ readonly type: "bytes26";
1677
+ }];
1678
+ readonly internalType: "struct OTCTrade[]";
1679
+ readonly name: "OTCs";
1680
+ readonly type: "tuple[]";
1681
+ }];
1682
+ readonly name: "orderAndOtc";
1683
+ readonly outputs: readonly [{
1684
+ readonly components: readonly [{
1685
+ readonly internalType: "VMResult[]";
1686
+ readonly name: "preIM";
1687
+ readonly type: "uint256[]";
1688
+ }, {
1689
+ readonly internalType: "VMResult[]";
1690
+ readonly name: "postIM";
1691
+ readonly type: "uint256[]";
1692
+ }, {
1693
+ readonly internalType: "PayFee[]";
1694
+ readonly name: "prePayFee";
1695
+ readonly type: "uint256[]";
1696
+ }, {
1697
+ readonly internalType: "PayFee[]";
1698
+ readonly name: "postPayFee";
1699
+ readonly type: "uint256[]";
1700
+ }, {
1701
+ readonly internalType: "Trade";
1702
+ readonly name: "bookMatched";
1703
+ readonly type: "uint256";
1704
+ }, {
1705
+ readonly internalType: "MarketAcc";
1706
+ readonly name: "extraUser";
1707
+ readonly type: "bytes26";
1708
+ }, {
1709
+ readonly internalType: "PayFee";
1710
+ readonly name: "extraSettle";
1711
+ readonly type: "uint256";
1712
+ }, {
1713
+ readonly internalType: "OrderId[]";
1714
+ readonly name: "removedIds";
1715
+ readonly type: "uint64[]";
1716
+ }, {
1717
+ readonly internalType: "uint256";
1718
+ readonly name: "totalTakerFee";
1719
+ readonly type: "uint256";
1720
+ }, {
1721
+ readonly internalType: "uint256";
1722
+ readonly name: "totalOtcFee";
1723
+ readonly type: "uint256";
1724
+ }];
1725
+ readonly internalType: "struct MainResult";
1726
+ readonly name: "res";
1727
+ readonly type: "tuple";
1728
+ }];
1729
+ readonly stateMutability: "nonpayable";
1730
+ readonly type: "function";
1731
+ }, {
1732
+ readonly inputs: readonly [{
1733
+ readonly internalType: "uint32";
1734
+ readonly name: "newWindow";
1735
+ readonly type: "uint32";
1736
+ }];
1737
+ readonly name: "setImpliedRateObservationWindow";
1738
+ readonly outputs: readonly [];
1739
+ readonly stateMutability: "nonpayable";
1740
+ readonly type: "function";
1741
+ }, {
1742
+ readonly inputs: readonly [{
1743
+ readonly components: readonly [{
1744
+ readonly internalType: "uint16";
1745
+ readonly name: "maxOpenOrders";
1746
+ readonly type: "uint16";
1747
+ }, {
1748
+ readonly internalType: "address";
1749
+ readonly name: "markRateOracle";
1750
+ readonly type: "address";
1751
+ }, {
1752
+ readonly internalType: "address";
1753
+ readonly name: "fIndexOracle";
1754
+ readonly type: "address";
1755
+ }, {
1756
+ readonly internalType: "uint128";
1757
+ readonly name: "OICap";
1758
+ readonly type: "uint128";
1759
+ }, {
1760
+ readonly internalType: "uint64";
1761
+ readonly name: "takerFee";
1762
+ readonly type: "uint64";
1763
+ }, {
1764
+ readonly internalType: "uint64";
1765
+ readonly name: "otcFee";
1766
+ readonly type: "uint64";
1767
+ }, {
1768
+ readonly components: readonly [{
1769
+ readonly internalType: "uint128";
1770
+ readonly name: "base";
1771
+ readonly type: "uint128";
1772
+ }, {
1773
+ readonly internalType: "uint128";
1774
+ readonly name: "slope";
1775
+ readonly type: "uint128";
1776
+ }];
1777
+ readonly internalType: "struct IMarketAllTypes.LiqIncentiveConfig";
1778
+ readonly name: "liqIncentive";
1779
+ readonly type: "tuple";
1780
+ }, {
1781
+ readonly internalType: "uint64";
1782
+ readonly name: "IMFactor";
1783
+ readonly type: "uint64";
1784
+ }, {
1785
+ readonly internalType: "uint64";
1786
+ readonly name: "MMFactor";
1787
+ readonly type: "uint64";
1788
+ }, {
1789
+ readonly internalType: "uint128";
1790
+ readonly name: "minMarginIndexRate";
1791
+ readonly type: "uint128";
1792
+ }, {
1793
+ readonly internalType: "uint32";
1794
+ readonly name: "minMarginIndexDuration";
1795
+ readonly type: "uint32";
1796
+ }];
1797
+ readonly internalType: "struct IMarketAllTypes.MarketConfigStruct";
1798
+ readonly name: "config";
1799
+ readonly type: "tuple";
1800
+ }];
1801
+ readonly name: "setMarketConfig";
1802
+ readonly outputs: readonly [];
1803
+ readonly stateMutability: "nonpayable";
1804
+ readonly type: "function";
1805
+ }, {
1806
+ readonly inputs: readonly [{
1807
+ readonly internalType: "address";
1808
+ readonly name: "user";
1809
+ readonly type: "address";
1810
+ }, {
1811
+ readonly internalType: "uint64";
1812
+ readonly name: "takerDisc";
1813
+ readonly type: "uint64";
1814
+ }, {
1815
+ readonly internalType: "uint64";
1816
+ readonly name: "otcDisc";
1817
+ readonly type: "uint64";
1818
+ }];
1819
+ readonly name: "setPersonalDiscRates";
1820
+ readonly outputs: readonly [];
1821
+ readonly stateMutability: "nonpayable";
1822
+ readonly type: "function";
1823
+ }, {
1824
+ readonly inputs: readonly [{
1825
+ readonly internalType: "address";
1826
+ readonly name: "user";
1827
+ readonly type: "address";
1828
+ }, {
1829
+ readonly internalType: "uint64";
1830
+ readonly name: "IMFactor";
1831
+ readonly type: "uint64";
1832
+ }, {
1833
+ readonly internalType: "uint64";
1834
+ readonly name: "MMFactor";
1835
+ readonly type: "uint64";
1836
+ }];
1837
+ readonly name: "setPersonalMarginConfig";
1838
+ readonly outputs: readonly [];
1839
+ readonly stateMutability: "nonpayable";
1840
+ readonly type: "function";
1841
+ }, {
1842
+ readonly inputs: readonly [{
1843
+ readonly internalType: "MarketAcc";
1844
+ readonly name: "user";
1845
+ readonly type: "bytes26";
1846
+ }, {
1847
+ readonly internalType: "enum GetRequest";
1848
+ readonly name: "getType";
1849
+ readonly type: "uint8";
1850
+ }];
1851
+ readonly name: "settleAndGet";
1852
+ readonly outputs: readonly [{
1853
+ readonly internalType: "VMResult";
1854
+ readonly name: "res";
1855
+ readonly type: "uint256";
1856
+ }, {
1857
+ readonly internalType: "PayFee";
1858
+ readonly name: "payFee";
1859
+ readonly type: "uint256";
1860
+ }, {
1861
+ readonly internalType: "int256";
1862
+ readonly name: "signedSize";
1863
+ readonly type: "int256";
1864
+ }];
1865
+ readonly stateMutability: "nonpayable";
1866
+ readonly type: "function";
1867
+ }, {
1868
+ readonly inputs: readonly [];
1869
+ readonly name: "symbol";
1870
+ readonly outputs: readonly [{
1871
+ readonly internalType: "string";
1872
+ readonly name: "";
1873
+ readonly type: "string";
1874
+ }];
1875
+ readonly stateMutability: "view";
1876
+ readonly type: "function";
1877
+ }, {
1878
+ readonly inputs: readonly [{
1879
+ readonly internalType: "FIndex";
1880
+ readonly name: "newIndex";
1881
+ readonly type: "bytes26";
1882
+ }];
1883
+ readonly name: "updateFIndex";
1884
+ readonly outputs: readonly [];
1885
+ readonly stateMutability: "nonpayable";
1886
+ readonly type: "function";
1887
+ }], undefined, true, undefined>;
1888
+ }>;
1889
+ export declare function decodeLog(log: Log<bigint, number, false>): {
1890
+ eventName: "FIndexUpdated";
1891
+ args: {
1892
+ newIndex: `0x${string}`;
1893
+ };
1894
+ } | {
1895
+ eventName: "ForceCancel";
1896
+ args: {
1897
+ user: `0x${string}`;
1898
+ isCancelAll: boolean;
1899
+ removedIds: readonly bigint[];
1900
+ };
1901
+ } | {
1902
+ eventName: "ForceDeleverage";
1903
+ args: {
1904
+ winningUser: `0x${string}`;
1905
+ losingUser: `0x${string}`;
1906
+ trade: bigint;
1907
+ };
1908
+ } | {
1909
+ eventName: "ImpliedRateObservationWindowUpdated";
1910
+ args: {
1911
+ newWindow: number;
1912
+ };
1913
+ } | {
1914
+ eventName: "LimitOrderCancelled";
1915
+ args: {
1916
+ orderIds: readonly bigint[];
1917
+ };
1918
+ } | {
1919
+ eventName: "LimitOrderFilled";
1920
+ args: {
1921
+ from: bigint;
1922
+ to: bigint;
1923
+ };
1924
+ } | {
1925
+ eventName: "LimitOrderPartiallyFilled";
1926
+ args: {
1927
+ orderId: bigint;
1928
+ filledSize: bigint;
1929
+ };
1930
+ } | {
1931
+ eventName: "LimitOrderPlaced";
1932
+ args: {
1933
+ maker: `0x${string}`;
1934
+ orderIds: readonly bigint[];
1935
+ sizes: readonly bigint[];
1936
+ };
1937
+ } | {
1938
+ eventName: "Liquidate";
1939
+ args: {
1940
+ liquidator: `0x${string}`;
1941
+ violator: `0x${string}`;
1942
+ liqTrade: bigint;
1943
+ fees: bigint;
1944
+ };
1945
+ } | {
1946
+ eventName: "MarketConfigUpdated";
1947
+ args: {
1948
+ newConfig: {
1949
+ maxOpenOrders: number;
1950
+ markRateOracle: `0x${string}`;
1951
+ fIndexOracle: `0x${string}`;
1952
+ OICap: bigint;
1953
+ takerFee: bigint;
1954
+ otcFee: bigint;
1955
+ liqIncentive: {
1956
+ base: bigint;
1957
+ slope: bigint;
1958
+ };
1959
+ IMFactor: bigint;
1960
+ MMFactor: bigint;
1961
+ minMarginIndexRate: bigint;
1962
+ minMarginIndexDuration: number;
1963
+ };
1964
+ };
1965
+ } | {
1966
+ eventName: "MarketOrdersFilled";
1967
+ args: {
1968
+ user: `0x${string}`;
1969
+ totalTrade: bigint;
1970
+ totalFees: bigint;
1971
+ };
1972
+ } | {
1973
+ eventName: "OtcSwap";
1974
+ args: {
1975
+ user: `0x${string}`;
1976
+ counterParty: `0x${string}`;
1977
+ trade: bigint;
1978
+ fees: bigint;
1979
+ };
1980
+ } | {
1981
+ eventName: "PaymentFromSettlement";
1982
+ args: {
1983
+ user: `0x${string}`;
1984
+ lastFTime: bigint;
1985
+ latestFTime: bigint;
1986
+ payment: bigint;
1987
+ fees: bigint;
1988
+ };
1989
+ } | {
1990
+ eventName: "PersonalDiscRatesUpdated";
1991
+ args: {
1992
+ user: `0x${string}`;
1993
+ newTakerDisc: bigint;
1994
+ newOtcDisc: bigint;
1995
+ };
1996
+ } | {
1997
+ eventName: "PersonalMarginConfigUpdated";
1998
+ args: {
1999
+ user: `0x${string}`;
2000
+ newIMFactor: bigint;
2001
+ newMMFactor: bigint;
2002
+ };
2003
+ } | {
2004
+ eventName: "CashTransfer";
2005
+ args: {
2006
+ from: `0x${string}`;
2007
+ to: `0x${string}`;
2008
+ amount: bigint;
2009
+ };
2010
+ } | {
2011
+ eventName: "CollectFee";
2012
+ args: {
2013
+ tokenId: number;
2014
+ amount: bigint;
2015
+ };
2016
+ } | {
2017
+ eventName: "EnterMarket";
2018
+ args: {
2019
+ user: `0x${string}`;
2020
+ marketId: number;
2021
+ };
2022
+ } | {
2023
+ eventName: "ExitMarket";
2024
+ args: {
2025
+ user: `0x${string}`;
2026
+ marketId: number;
2027
+ };
2028
+ } | {
2029
+ eventName: "MaxAllowedSubaccountUpdated";
2030
+ args: {
2031
+ root: `0x${string}`;
2032
+ maxAllowedSubaccountIdOld: number;
2033
+ maxAllowedSubaccountIdNew: number;
2034
+ };
2035
+ } | {
2036
+ eventName: "TokenAdded";
2037
+ args: {
2038
+ tokenId: number;
2039
+ tokenAddress: `0x${string}`;
2040
+ };
2041
+ } | {
2042
+ eventName: "VaultTransfer";
2043
+ args: {
2044
+ root: `0x${string}`;
2045
+ tokenId: number;
2046
+ unscaledAmount: bigint;
2047
+ };
2048
+ } | {
2049
+ eventName: "AddLiquidityDualToAmm";
2050
+ args: {
2051
+ user: `0x${string}`;
2052
+ ammAddr: `0x${string}`;
2053
+ exactSizeIn: bigint;
2054
+ netLpOut: bigint;
2055
+ mintCashIn: bigint;
2056
+ netCashUsed: bigint;
2057
+ };
2058
+ } | {
2059
+ eventName: "AddLiquiditySingleCashToAmm";
2060
+ args: {
2061
+ user: `0x${string}`;
2062
+ ammAddr: `0x${string}`;
2063
+ netLpOut: bigint;
2064
+ netCashUsed: bigint;
2065
+ netSizeInterm: bigint;
2066
+ };
2067
+ } | {
2068
+ eventName: "AgentApproved";
2069
+ args: {
2070
+ account: `0x${string}`;
2071
+ agent: `0x${string}`;
2072
+ expiry: bigint;
2073
+ };
2074
+ } | {
2075
+ eventName: "AgentRevoked";
2076
+ args: {
2077
+ account: `0x${string}`;
2078
+ agent: `0x${string}`;
2079
+ };
2080
+ } | {
2081
+ eventName: "MarketIdAmmSet";
2082
+ args: {
2083
+ marketId: number;
2084
+ amm: `0x${string}`;
2085
+ };
2086
+ } | {
2087
+ eventName: "NewAccManagerSet";
2088
+ args: {
2089
+ account: `0x${string}`;
2090
+ newAccManager: `0x${string}`;
2091
+ };
2092
+ } | {
2093
+ eventName: "NumTicksToTryAtOnceUpdated";
2094
+ args: {
2095
+ newNumTicksToTryAtOnce: number;
2096
+ };
2097
+ } | {
2098
+ eventName: "RemoveLiquidityDualFromAmm";
2099
+ args: {
2100
+ user: `0x${string}`;
2101
+ ammAddr: `0x${string}`;
2102
+ lpToRemove: bigint;
2103
+ burnCashOut: bigint;
2104
+ netSizeOut: bigint;
2105
+ netCashOut: bigint;
2106
+ };
2107
+ } | {
2108
+ eventName: "RemoveLiquiditySingleCashFromAmm";
2109
+ args: {
2110
+ user: `0x${string}`;
2111
+ ammAddr: `0x${string}`;
2112
+ lpToRemove: bigint;
2113
+ netCashOut: bigint;
2114
+ netSizeInterm: bigint;
2115
+ };
2116
+ } | {
2117
+ eventName: "TryAggregateCallFailed";
2118
+ args: {
2119
+ index: bigint;
2120
+ };
2121
+ } | {
2122
+ eventName: "TryAggregateCallSucceeded";
2123
+ args: {
2124
+ index: bigint;
2125
+ };
2126
+ };