@kehtus/proportion-sdk 0.5.0 → 1.2.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.
Files changed (95) hide show
  1. package/dist/abi/challengeAccount.d.ts +1855 -0
  2. package/dist/abi/challengeAccount.d.ts.map +1 -0
  3. package/dist/abi/challengeAccount.js +2365 -0
  4. package/dist/abi/challengeAccount.js.map +1 -0
  5. package/dist/abi/challengeFactory.d.ts +1351 -0
  6. package/dist/abi/challengeFactory.d.ts.map +1 -0
  7. package/dist/abi/challengeFactory.js +1727 -0
  8. package/dist/abi/challengeFactory.js.map +1 -0
  9. package/dist/abi/challengeVault.d.ts +1392 -0
  10. package/dist/abi/challengeVault.d.ts.map +1 -0
  11. package/dist/abi/challengeVault.js +1793 -0
  12. package/dist/abi/challengeVault.js.map +1 -0
  13. package/dist/abi/factory.d.ts +4 -0
  14. package/dist/abi/factory.d.ts.map +1 -1
  15. package/dist/abi/factory.js +5 -0
  16. package/dist/abi/factory.js.map +1 -1
  17. package/dist/abi/fundedAccount.d.ts +49 -10
  18. package/dist/abi/fundedAccount.d.ts.map +1 -1
  19. package/dist/abi/fundedAccount.js +62 -13
  20. package/dist/abi/fundedAccount.js.map +1 -1
  21. package/dist/abi/mainVault.d.ts +409 -20
  22. package/dist/abi/mainVault.d.ts.map +1 -1
  23. package/dist/abi/mainVault.js +523 -20
  24. package/dist/abi/mainVault.js.map +1 -1
  25. package/dist/abi/priceOracle.d.ts +497 -0
  26. package/dist/abi/priceOracle.d.ts.map +1 -0
  27. package/dist/abi/priceOracle.js +644 -0
  28. package/dist/abi/priceOracle.js.map +1 -0
  29. package/dist/account.d.ts.map +1 -1
  30. package/dist/account.js +6 -0
  31. package/dist/account.js.map +1 -1
  32. package/dist/challenge/account.d.ts +95 -0
  33. package/dist/challenge/account.d.ts.map +1 -0
  34. package/dist/challenge/account.js +375 -0
  35. package/dist/challenge/account.js.map +1 -0
  36. package/dist/challenge/api.d.ts +49 -0
  37. package/dist/challenge/api.d.ts.map +1 -0
  38. package/dist/challenge/api.js +173 -0
  39. package/dist/challenge/api.js.map +1 -0
  40. package/dist/challenge/factory.d.ts +165 -0
  41. package/dist/challenge/factory.d.ts.map +1 -0
  42. package/dist/challenge/factory.js +392 -0
  43. package/dist/challenge/factory.js.map +1 -0
  44. package/dist/challenge/intents.d.ts +137 -0
  45. package/dist/challenge/intents.d.ts.map +1 -0
  46. package/dist/challenge/intents.js +218 -0
  47. package/dist/challenge/intents.js.map +1 -0
  48. package/dist/challenge/oracle.d.ts +50 -0
  49. package/dist/challenge/oracle.d.ts.map +1 -0
  50. package/dist/challenge/oracle.js +117 -0
  51. package/dist/challenge/oracle.js.map +1 -0
  52. package/dist/challenge/types.d.ts +652 -0
  53. package/dist/challenge/types.d.ts.map +1 -0
  54. package/dist/challenge/types.js +64 -0
  55. package/dist/challenge/types.js.map +1 -0
  56. package/dist/challenge/vault.d.ts +87 -0
  57. package/dist/challenge/vault.d.ts.map +1 -0
  58. package/dist/challenge/vault.js +299 -0
  59. package/dist/challenge/vault.js.map +1 -0
  60. package/dist/constants.d.ts +7 -3
  61. package/dist/constants.d.ts.map +1 -1
  62. package/dist/constants.js +21 -3
  63. package/dist/constants.js.map +1 -1
  64. package/dist/factory.d.ts +1 -1
  65. package/dist/factory.d.ts.map +1 -1
  66. package/dist/factory.js +12 -0
  67. package/dist/factory.js.map +1 -1
  68. package/dist/forwarder.d.ts +58 -0
  69. package/dist/forwarder.d.ts.map +1 -0
  70. package/dist/forwarder.js +145 -0
  71. package/dist/forwarder.js.map +1 -0
  72. package/dist/index.d.ts +13 -0
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.js +14 -0
  75. package/dist/index.js.map +1 -1
  76. package/dist/indexer.d.ts +52 -0
  77. package/dist/indexer.d.ts.map +1 -1
  78. package/dist/indexer.js +219 -4
  79. package/dist/indexer.js.map +1 -1
  80. package/dist/sdk.d.ts +23 -1
  81. package/dist/sdk.d.ts.map +1 -1
  82. package/dist/sdk.js +122 -35
  83. package/dist/sdk.js.map +1 -1
  84. package/dist/types.d.ts +50 -0
  85. package/dist/types.d.ts.map +1 -1
  86. package/dist/types.js.map +1 -1
  87. package/dist/utils.d.ts +35 -2
  88. package/dist/utils.d.ts.map +1 -1
  89. package/dist/utils.js +86 -7
  90. package/dist/utils.js.map +1 -1
  91. package/dist/vault.d.ts +44 -4
  92. package/dist/vault.d.ts.map +1 -1
  93. package/dist/vault.js +143 -9
  94. package/dist/vault.js.map +1 -1
  95. package/package.json +42 -42
@@ -0,0 +1,2365 @@
1
+ export const challengeAccountAbi = [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "facet",
7
+ "type": "address"
8
+ }
9
+ ],
10
+ "stateMutability": "nonpayable",
11
+ "type": "constructor"
12
+ },
13
+ {
14
+ "inputs": [],
15
+ "name": "AlreadyInitialized",
16
+ "type": "error"
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "BadDrawdown",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "BadEntryPrice",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "BadFinalTarget",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "BadIntent",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [],
40
+ "name": "BadLeverage",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [],
45
+ "name": "BadNonce",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [],
50
+ "name": "BadProfitDays",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [],
55
+ "name": "BadReduce",
56
+ "type": "error"
57
+ },
58
+ {
59
+ "inputs": [],
60
+ "name": "BadRiskPrice",
61
+ "type": "error"
62
+ },
63
+ {
64
+ "inputs": [],
65
+ "name": "BadStepTarget",
66
+ "type": "error"
67
+ },
68
+ {
69
+ "inputs": [],
70
+ "name": "BadSteps",
71
+ "type": "error"
72
+ },
73
+ {
74
+ "inputs": [],
75
+ "name": "CannotOpen",
76
+ "type": "error"
77
+ },
78
+ {
79
+ "inputs": [],
80
+ "name": "CannotReduce",
81
+ "type": "error"
82
+ },
83
+ {
84
+ "inputs": [],
85
+ "name": "ChallengeExpired",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "inputs": [],
90
+ "name": "ECDSAInvalidSignature",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [
95
+ {
96
+ "internalType": "uint256",
97
+ "name": "length",
98
+ "type": "uint256"
99
+ }
100
+ ],
101
+ "name": "ECDSAInvalidSignatureLength",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [
106
+ {
107
+ "internalType": "bytes32",
108
+ "name": "s",
109
+ "type": "bytes32"
110
+ }
111
+ ],
112
+ "name": "ECDSAInvalidSignatureS",
113
+ "type": "error"
114
+ },
115
+ {
116
+ "inputs": [],
117
+ "name": "EntryOverflow",
118
+ "type": "error"
119
+ },
120
+ {
121
+ "inputs": [],
122
+ "name": "ExitNotTriggered",
123
+ "type": "error"
124
+ },
125
+ {
126
+ "inputs": [],
127
+ "name": "ExpiredIntent",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [],
132
+ "name": "HoldBlocks",
133
+ "type": "error"
134
+ },
135
+ {
136
+ "inputs": [],
137
+ "name": "InsufficientEquity",
138
+ "type": "error"
139
+ },
140
+ {
141
+ "inputs": [],
142
+ "name": "IntOverflow",
143
+ "type": "error"
144
+ },
145
+ {
146
+ "inputs": [],
147
+ "name": "InvalidShortString",
148
+ "type": "error"
149
+ },
150
+ {
151
+ "inputs": [],
152
+ "name": "LeverageTooHigh",
153
+ "type": "error"
154
+ },
155
+ {
156
+ "inputs": [],
157
+ "name": "MarketNotAllowed",
158
+ "type": "error"
159
+ },
160
+ {
161
+ "inputs": [],
162
+ "name": "MaxNotional",
163
+ "type": "error"
164
+ },
165
+ {
166
+ "inputs": [],
167
+ "name": "NoExitOrder",
168
+ "type": "error"
169
+ },
170
+ {
171
+ "inputs": [],
172
+ "name": "NoPaperProfit",
173
+ "type": "error"
174
+ },
175
+ {
176
+ "inputs": [],
177
+ "name": "NoPosition",
178
+ "type": "error"
179
+ },
180
+ {
181
+ "inputs": [],
182
+ "name": "NotBuilder",
183
+ "type": "error"
184
+ },
185
+ {
186
+ "inputs": [],
187
+ "name": "NotFlat",
188
+ "type": "error"
189
+ },
190
+ {
191
+ "inputs": [],
192
+ "name": "NotLiquidatable",
193
+ "type": "error"
194
+ },
195
+ {
196
+ "inputs": [],
197
+ "name": "NotOwner",
198
+ "type": "error"
199
+ },
200
+ {
201
+ "inputs": [],
202
+ "name": "NotVault",
203
+ "type": "error"
204
+ },
205
+ {
206
+ "inputs": [],
207
+ "name": "NotionalBelowMargin",
208
+ "type": "error"
209
+ },
210
+ {
211
+ "inputs": [],
212
+ "name": "PayoutCap",
213
+ "type": "error"
214
+ },
215
+ {
216
+ "inputs": [],
217
+ "name": "PayoutPending",
218
+ "type": "error"
219
+ },
220
+ {
221
+ "inputs": [],
222
+ "name": "PermissionDenied",
223
+ "type": "error"
224
+ },
225
+ {
226
+ "inputs": [],
227
+ "name": "PnlOverflow",
228
+ "type": "error"
229
+ },
230
+ {
231
+ "inputs": [],
232
+ "name": "PositionOverflow",
233
+ "type": "error"
234
+ },
235
+ {
236
+ "inputs": [],
237
+ "name": "PriceTooHigh",
238
+ "type": "error"
239
+ },
240
+ {
241
+ "inputs": [],
242
+ "name": "PriceTooLow",
243
+ "type": "error"
244
+ },
245
+ {
246
+ "inputs": [],
247
+ "name": "ProfitDays",
248
+ "type": "error"
249
+ },
250
+ {
251
+ "inputs": [],
252
+ "name": "ProfitTooSmall",
253
+ "type": "error"
254
+ },
255
+ {
256
+ "inputs": [],
257
+ "name": "ReduceOnly",
258
+ "type": "error"
259
+ },
260
+ {
261
+ "inputs": [],
262
+ "name": "ReentrancyGuardReentrantCall",
263
+ "type": "error"
264
+ },
265
+ {
266
+ "inputs": [],
267
+ "name": "SessionExpired",
268
+ "type": "error"
269
+ },
270
+ {
271
+ "inputs": [],
272
+ "name": "SessionInactive",
273
+ "type": "error"
274
+ },
275
+ {
276
+ "inputs": [],
277
+ "name": "SessionLeverage",
278
+ "type": "error"
279
+ },
280
+ {
281
+ "inputs": [],
282
+ "name": "SessionMargin",
283
+ "type": "error"
284
+ },
285
+ {
286
+ "inputs": [],
287
+ "name": "SessionMarket",
288
+ "type": "error"
289
+ },
290
+ {
291
+ "inputs": [],
292
+ "name": "SessionNotional",
293
+ "type": "error"
294
+ },
295
+ {
296
+ "inputs": [
297
+ {
298
+ "internalType": "string",
299
+ "name": "str",
300
+ "type": "string"
301
+ }
302
+ ],
303
+ "name": "StringTooLong",
304
+ "type": "error"
305
+ },
306
+ {
307
+ "inputs": [],
308
+ "name": "TargetNotMet",
309
+ "type": "error"
310
+ },
311
+ {
312
+ "inputs": [],
313
+ "name": "TooManyPositions",
314
+ "type": "error"
315
+ },
316
+ {
317
+ "inputs": [],
318
+ "name": "UintUnderflow",
319
+ "type": "error"
320
+ },
321
+ {
322
+ "inputs": [],
323
+ "name": "WrongPhase",
324
+ "type": "error"
325
+ },
326
+ {
327
+ "inputs": [],
328
+ "name": "ZeroAllocation",
329
+ "type": "error"
330
+ },
331
+ {
332
+ "inputs": [],
333
+ "name": "ZeroBalance",
334
+ "type": "error"
335
+ },
336
+ {
337
+ "inputs": [],
338
+ "name": "ZeroBuilder",
339
+ "type": "error"
340
+ },
341
+ {
342
+ "inputs": [],
343
+ "name": "ZeroEntry",
344
+ "type": "error"
345
+ },
346
+ {
347
+ "inputs": [],
348
+ "name": "ZeroExit",
349
+ "type": "error"
350
+ },
351
+ {
352
+ "inputs": [],
353
+ "name": "ZeroFunded",
354
+ "type": "error"
355
+ },
356
+ {
357
+ "inputs": [],
358
+ "name": "ZeroMargin",
359
+ "type": "error"
360
+ },
361
+ {
362
+ "inputs": [],
363
+ "name": "ZeroMaxPositions",
364
+ "type": "error"
365
+ },
366
+ {
367
+ "inputs": [],
368
+ "name": "ZeroNotional",
369
+ "type": "error"
370
+ },
371
+ {
372
+ "inputs": [],
373
+ "name": "ZeroOracle",
374
+ "type": "error"
375
+ },
376
+ {
377
+ "inputs": [],
378
+ "name": "ZeroOwner",
379
+ "type": "error"
380
+ },
381
+ {
382
+ "inputs": [],
383
+ "name": "ZeroPayout",
384
+ "type": "error"
385
+ },
386
+ {
387
+ "inputs": [],
388
+ "name": "ZeroRegistry",
389
+ "type": "error"
390
+ },
391
+ {
392
+ "inputs": [],
393
+ "name": "ZeroVault",
394
+ "type": "error"
395
+ },
396
+ {
397
+ "anonymous": false,
398
+ "inputs": [
399
+ {
400
+ "indexed": true,
401
+ "internalType": "address",
402
+ "name": "fundedAccount",
403
+ "type": "address"
404
+ }
405
+ ],
406
+ "name": "AbookPromotionFinalized",
407
+ "type": "event"
408
+ },
409
+ {
410
+ "anonymous": false,
411
+ "inputs": [
412
+ {
413
+ "indexed": true,
414
+ "internalType": "uint8",
415
+ "name": "step",
416
+ "type": "uint8"
417
+ },
418
+ {
419
+ "indexed": false,
420
+ "internalType": "uint16",
421
+ "name": "targetProfitBps",
422
+ "type": "uint16"
423
+ }
424
+ ],
425
+ "name": "ChallengeStepAdvanced",
426
+ "type": "event"
427
+ },
428
+ {
429
+ "anonymous": false,
430
+ "inputs": [
431
+ {
432
+ "indexed": false,
433
+ "internalType": "int256",
434
+ "name": "equity6",
435
+ "type": "int256"
436
+ },
437
+ {
438
+ "indexed": false,
439
+ "internalType": "int256",
440
+ "name": "highWaterMark6",
441
+ "type": "int256"
442
+ },
443
+ {
444
+ "indexed": false,
445
+ "internalType": "int256",
446
+ "name": "dayStartEquity6",
447
+ "type": "int256"
448
+ }
449
+ ],
450
+ "name": "Checkpoint",
451
+ "type": "event"
452
+ },
453
+ {
454
+ "anonymous": false,
455
+ "inputs": [],
456
+ "name": "EIP712DomainChanged",
457
+ "type": "event"
458
+ },
459
+ {
460
+ "anonymous": false,
461
+ "inputs": [
462
+ {
463
+ "indexed": true,
464
+ "internalType": "uint32",
465
+ "name": "market",
466
+ "type": "uint32"
467
+ },
468
+ {
469
+ "indexed": true,
470
+ "internalType": "uint64",
471
+ "name": "positionId",
472
+ "type": "uint64"
473
+ },
474
+ {
475
+ "indexed": false,
476
+ "internalType": "enum ChallengeAccount.ExitOrderKind",
477
+ "name": "kind",
478
+ "type": "uint8"
479
+ }
480
+ ],
481
+ "name": "ExitOrderCancelled",
482
+ "type": "event"
483
+ },
484
+ {
485
+ "anonymous": false,
486
+ "inputs": [
487
+ {
488
+ "indexed": true,
489
+ "internalType": "uint32",
490
+ "name": "market",
491
+ "type": "uint32"
492
+ },
493
+ {
494
+ "indexed": true,
495
+ "internalType": "uint64",
496
+ "name": "positionId",
497
+ "type": "uint64"
498
+ },
499
+ {
500
+ "indexed": false,
501
+ "internalType": "enum ChallengeAccount.ExitOrderKind",
502
+ "name": "kind",
503
+ "type": "uint8"
504
+ },
505
+ {
506
+ "indexed": false,
507
+ "internalType": "uint64",
508
+ "name": "triggerPrice",
509
+ "type": "uint64"
510
+ },
511
+ {
512
+ "indexed": false,
513
+ "internalType": "uint64",
514
+ "name": "riskPrice",
515
+ "type": "uint64"
516
+ }
517
+ ],
518
+ "name": "ExitOrderExecuted",
519
+ "type": "event"
520
+ },
521
+ {
522
+ "anonymous": false,
523
+ "inputs": [
524
+ {
525
+ "indexed": true,
526
+ "internalType": "uint32",
527
+ "name": "market",
528
+ "type": "uint32"
529
+ },
530
+ {
531
+ "indexed": true,
532
+ "internalType": "uint64",
533
+ "name": "positionId",
534
+ "type": "uint64"
535
+ }
536
+ ],
537
+ "name": "ExitOrdersCleared",
538
+ "type": "event"
539
+ },
540
+ {
541
+ "anonymous": false,
542
+ "inputs": [
543
+ {
544
+ "indexed": true,
545
+ "internalType": "uint32",
546
+ "name": "market",
547
+ "type": "uint32"
548
+ },
549
+ {
550
+ "indexed": true,
551
+ "internalType": "uint64",
552
+ "name": "positionId",
553
+ "type": "uint64"
554
+ },
555
+ {
556
+ "indexed": false,
557
+ "internalType": "uint64",
558
+ "name": "stopLossPrice",
559
+ "type": "uint64"
560
+ },
561
+ {
562
+ "indexed": false,
563
+ "internalType": "uint64",
564
+ "name": "takeProfitPrice",
565
+ "type": "uint64"
566
+ }
567
+ ],
568
+ "name": "ExitOrdersSet",
569
+ "type": "event"
570
+ },
571
+ {
572
+ "anonymous": false,
573
+ "inputs": [
574
+ {
575
+ "indexed": true,
576
+ "internalType": "address",
577
+ "name": "owner",
578
+ "type": "address"
579
+ },
580
+ {
581
+ "indexed": true,
582
+ "internalType": "address",
583
+ "name": "builder",
584
+ "type": "address"
585
+ },
586
+ {
587
+ "indexed": true,
588
+ "internalType": "address",
589
+ "name": "vault",
590
+ "type": "address"
591
+ },
592
+ {
593
+ "indexed": false,
594
+ "internalType": "uint96",
595
+ "name": "initialBalance6",
596
+ "type": "uint96"
597
+ },
598
+ {
599
+ "indexed": false,
600
+ "internalType": "uint32",
601
+ "name": "maxLeverageBps",
602
+ "type": "uint32"
603
+ },
604
+ {
605
+ "indexed": false,
606
+ "internalType": "uint16",
607
+ "name": "drawdownBps",
608
+ "type": "uint16"
609
+ },
610
+ {
611
+ "indexed": false,
612
+ "internalType": "bool",
613
+ "name": "dailyDrawdownEnabled",
614
+ "type": "bool"
615
+ },
616
+ {
617
+ "indexed": false,
618
+ "internalType": "bool",
619
+ "name": "tradingDaysEnabled",
620
+ "type": "bool"
621
+ },
622
+ {
623
+ "indexed": false,
624
+ "internalType": "uint8",
625
+ "name": "profitableDaysRequired",
626
+ "type": "uint8"
627
+ },
628
+ {
629
+ "indexed": false,
630
+ "internalType": "uint8",
631
+ "name": "totalSteps",
632
+ "type": "uint8"
633
+ },
634
+ {
635
+ "indexed": false,
636
+ "internalType": "uint16",
637
+ "name": "targetProfitBps",
638
+ "type": "uint16"
639
+ },
640
+ {
641
+ "indexed": false,
642
+ "internalType": "uint16",
643
+ "name": "finalTargetProfitBps",
644
+ "type": "uint16"
645
+ },
646
+ {
647
+ "indexed": false,
648
+ "internalType": "uint96",
649
+ "name": "maxNotional",
650
+ "type": "uint96"
651
+ },
652
+ {
653
+ "indexed": false,
654
+ "internalType": "uint8",
655
+ "name": "maxOpenPositions",
656
+ "type": "uint8"
657
+ },
658
+ {
659
+ "indexed": false,
660
+ "internalType": "uint64",
661
+ "name": "minHoldBlocks",
662
+ "type": "uint64"
663
+ }
664
+ ],
665
+ "name": "Initialized",
666
+ "type": "event"
667
+ },
668
+ {
669
+ "anonymous": false,
670
+ "inputs": [
671
+ {
672
+ "indexed": true,
673
+ "internalType": "uint256",
674
+ "name": "nonce",
675
+ "type": "uint256"
676
+ }
677
+ ],
678
+ "name": "NonceSkipped",
679
+ "type": "event"
680
+ },
681
+ {
682
+ "anonymous": false,
683
+ "inputs": [
684
+ {
685
+ "indexed": false,
686
+ "internalType": "uint256",
687
+ "name": "gross6",
688
+ "type": "uint256"
689
+ },
690
+ {
691
+ "indexed": false,
692
+ "internalType": "int256",
693
+ "name": "postPayoutEquity6",
694
+ "type": "int256"
695
+ }
696
+ ],
697
+ "name": "PayoutApplied",
698
+ "type": "event"
699
+ },
700
+ {
701
+ "anonymous": false,
702
+ "inputs": [
703
+ {
704
+ "indexed": false,
705
+ "internalType": "uint256",
706
+ "name": "gross6",
707
+ "type": "uint256"
708
+ },
709
+ {
710
+ "indexed": false,
711
+ "internalType": "bool",
712
+ "name": "fullyPaid",
713
+ "type": "bool"
714
+ },
715
+ {
716
+ "indexed": true,
717
+ "internalType": "uint64",
718
+ "name": "queueId",
719
+ "type": "uint64"
720
+ }
721
+ ],
722
+ "name": "PayoutRequested",
723
+ "type": "event"
724
+ },
725
+ {
726
+ "anonymous": false,
727
+ "inputs": [
728
+ {
729
+ "indexed": true,
730
+ "internalType": "enum ChallengeAccount.Phase",
731
+ "name": "phase",
732
+ "type": "uint8"
733
+ },
734
+ {
735
+ "indexed": false,
736
+ "internalType": "enum ChallengeAccount.FailReason",
737
+ "name": "reason",
738
+ "type": "uint8"
739
+ }
740
+ ],
741
+ "name": "PhaseChanged",
742
+ "type": "event"
743
+ },
744
+ {
745
+ "anonymous": false,
746
+ "inputs": [
747
+ {
748
+ "indexed": true,
749
+ "internalType": "uint64",
750
+ "name": "positionId",
751
+ "type": "uint64"
752
+ },
753
+ {
754
+ "indexed": false,
755
+ "internalType": "uint64",
756
+ "name": "exitPrice",
757
+ "type": "uint64"
758
+ },
759
+ {
760
+ "indexed": false,
761
+ "internalType": "int256",
762
+ "name": "pnl",
763
+ "type": "int256"
764
+ },
765
+ {
766
+ "indexed": false,
767
+ "internalType": "int256",
768
+ "name": "freeBalance6",
769
+ "type": "int256"
770
+ }
771
+ ],
772
+ "name": "PositionClosed",
773
+ "type": "event"
774
+ },
775
+ {
776
+ "anonymous": false,
777
+ "inputs": [
778
+ {
779
+ "indexed": true,
780
+ "internalType": "uint64",
781
+ "name": "positionId",
782
+ "type": "uint64"
783
+ },
784
+ {
785
+ "indexed": false,
786
+ "internalType": "uint64",
787
+ "name": "riskPrice",
788
+ "type": "uint64"
789
+ },
790
+ {
791
+ "indexed": false,
792
+ "internalType": "int256",
793
+ "name": "pnl",
794
+ "type": "int256"
795
+ }
796
+ ],
797
+ "name": "PositionLiquidated",
798
+ "type": "event"
799
+ },
800
+ {
801
+ "anonymous": false,
802
+ "inputs": [
803
+ {
804
+ "indexed": true,
805
+ "internalType": "uint64",
806
+ "name": "positionId",
807
+ "type": "uint64"
808
+ },
809
+ {
810
+ "indexed": true,
811
+ "internalType": "uint32",
812
+ "name": "market",
813
+ "type": "uint32"
814
+ },
815
+ {
816
+ "indexed": false,
817
+ "internalType": "bool",
818
+ "name": "isLong",
819
+ "type": "bool"
820
+ },
821
+ {
822
+ "indexed": false,
823
+ "internalType": "uint96",
824
+ "name": "margin",
825
+ "type": "uint96"
826
+ },
827
+ {
828
+ "indexed": false,
829
+ "internalType": "uint96",
830
+ "name": "notional",
831
+ "type": "uint96"
832
+ },
833
+ {
834
+ "indexed": false,
835
+ "internalType": "uint64",
836
+ "name": "entryPrice",
837
+ "type": "uint64"
838
+ }
839
+ ],
840
+ "name": "PositionOpened",
841
+ "type": "event"
842
+ },
843
+ {
844
+ "anonymous": false,
845
+ "inputs": [
846
+ {
847
+ "indexed": true,
848
+ "internalType": "uint64",
849
+ "name": "positionId",
850
+ "type": "uint64"
851
+ },
852
+ {
853
+ "indexed": true,
854
+ "internalType": "uint32",
855
+ "name": "market",
856
+ "type": "uint32"
857
+ },
858
+ {
859
+ "indexed": false,
860
+ "internalType": "uint64",
861
+ "name": "exitPrice",
862
+ "type": "uint64"
863
+ },
864
+ {
865
+ "indexed": false,
866
+ "internalType": "uint96",
867
+ "name": "reducedNotional",
868
+ "type": "uint96"
869
+ },
870
+ {
871
+ "indexed": false,
872
+ "internalType": "int256",
873
+ "name": "pnl",
874
+ "type": "int256"
875
+ },
876
+ {
877
+ "indexed": false,
878
+ "internalType": "int256",
879
+ "name": "freeBalance6",
880
+ "type": "int256"
881
+ }
882
+ ],
883
+ "name": "PositionReduced",
884
+ "type": "event"
885
+ },
886
+ {
887
+ "anonymous": false,
888
+ "inputs": [
889
+ {
890
+ "indexed": true,
891
+ "internalType": "uint64",
892
+ "name": "positionId",
893
+ "type": "uint64"
894
+ },
895
+ {
896
+ "indexed": true,
897
+ "internalType": "uint32",
898
+ "name": "market",
899
+ "type": "uint32"
900
+ },
901
+ {
902
+ "indexed": false,
903
+ "internalType": "bool",
904
+ "name": "isLong",
905
+ "type": "bool"
906
+ },
907
+ {
908
+ "indexed": false,
909
+ "internalType": "uint96",
910
+ "name": "margin",
911
+ "type": "uint96"
912
+ },
913
+ {
914
+ "indexed": false,
915
+ "internalType": "uint96",
916
+ "name": "notional",
917
+ "type": "uint96"
918
+ },
919
+ {
920
+ "indexed": false,
921
+ "internalType": "uint64",
922
+ "name": "entryPrice",
923
+ "type": "uint64"
924
+ }
925
+ ],
926
+ "name": "PositionUpdated",
927
+ "type": "event"
928
+ },
929
+ {
930
+ "anonymous": false,
931
+ "inputs": [
932
+ {
933
+ "indexed": false,
934
+ "internalType": "int256",
935
+ "name": "equity6",
936
+ "type": "int256"
937
+ },
938
+ {
939
+ "indexed": false,
940
+ "internalType": "uint8",
941
+ "name": "profitableDaysCount",
942
+ "type": "uint8"
943
+ }
944
+ ],
945
+ "name": "ProfitCheckpoint",
946
+ "type": "event"
947
+ },
948
+ {
949
+ "anonymous": false,
950
+ "inputs": [
951
+ {
952
+ "indexed": true,
953
+ "internalType": "address",
954
+ "name": "key",
955
+ "type": "address"
956
+ },
957
+ {
958
+ "indexed": false,
959
+ "internalType": "uint64",
960
+ "name": "expiry",
961
+ "type": "uint64"
962
+ },
963
+ {
964
+ "indexed": false,
965
+ "internalType": "uint256",
966
+ "name": "permissions",
967
+ "type": "uint256"
968
+ }
969
+ ],
970
+ "name": "SessionKeyRegistered",
971
+ "type": "event"
972
+ },
973
+ {
974
+ "anonymous": false,
975
+ "inputs": [
976
+ {
977
+ "indexed": true,
978
+ "internalType": "address",
979
+ "name": "key",
980
+ "type": "address"
981
+ }
982
+ ],
983
+ "name": "SessionKeyRevoked",
984
+ "type": "event"
985
+ },
986
+ {
987
+ "anonymous": false,
988
+ "inputs": [
989
+ {
990
+ "indexed": true,
991
+ "internalType": "uint64",
992
+ "name": "positionId",
993
+ "type": "uint64"
994
+ },
995
+ {
996
+ "indexed": false,
997
+ "internalType": "uint256",
998
+ "name": "fee6",
999
+ "type": "uint256"
1000
+ },
1001
+ {
1002
+ "indexed": false,
1003
+ "internalType": "bool",
1004
+ "name": "isOpen",
1005
+ "type": "bool"
1006
+ }
1007
+ ],
1008
+ "name": "TradingFeeCharged",
1009
+ "type": "event"
1010
+ },
1011
+ {
1012
+ "inputs": [],
1013
+ "name": "BASE_TAKER_FEE_RATE",
1014
+ "outputs": [
1015
+ {
1016
+ "internalType": "uint256",
1017
+ "name": "",
1018
+ "type": "uint256"
1019
+ }
1020
+ ],
1021
+ "stateMutability": "view",
1022
+ "type": "function"
1023
+ },
1024
+ {
1025
+ "inputs": [],
1026
+ "name": "CHALLENGE_DURATION",
1027
+ "outputs": [
1028
+ {
1029
+ "internalType": "uint64",
1030
+ "name": "",
1031
+ "type": "uint64"
1032
+ }
1033
+ ],
1034
+ "stateMutability": "view",
1035
+ "type": "function"
1036
+ },
1037
+ {
1038
+ "inputs": [],
1039
+ "name": "CLOSE_INTENT_TYPEHASH",
1040
+ "outputs": [
1041
+ {
1042
+ "internalType": "bytes32",
1043
+ "name": "",
1044
+ "type": "bytes32"
1045
+ }
1046
+ ],
1047
+ "stateMutability": "view",
1048
+ "type": "function"
1049
+ },
1050
+ {
1051
+ "inputs": [],
1052
+ "name": "FEE_DENOMINATOR",
1053
+ "outputs": [
1054
+ {
1055
+ "internalType": "uint256",
1056
+ "name": "",
1057
+ "type": "uint256"
1058
+ }
1059
+ ],
1060
+ "stateMutability": "view",
1061
+ "type": "function"
1062
+ },
1063
+ {
1064
+ "inputs": [],
1065
+ "name": "MIN_PROFIT_BPS",
1066
+ "outputs": [
1067
+ {
1068
+ "internalType": "uint256",
1069
+ "name": "",
1070
+ "type": "uint256"
1071
+ }
1072
+ ],
1073
+ "stateMutability": "view",
1074
+ "type": "function"
1075
+ },
1076
+ {
1077
+ "inputs": [],
1078
+ "name": "OPEN_INTENT_TYPEHASH",
1079
+ "outputs": [
1080
+ {
1081
+ "internalType": "bytes32",
1082
+ "name": "",
1083
+ "type": "bytes32"
1084
+ }
1085
+ ],
1086
+ "stateMutability": "view",
1087
+ "type": "function"
1088
+ },
1089
+ {
1090
+ "inputs": [],
1091
+ "name": "activatePaperFunded",
1092
+ "outputs": [],
1093
+ "stateMutability": "nonpayable",
1094
+ "type": "function"
1095
+ },
1096
+ {
1097
+ "inputs": [],
1098
+ "name": "activatedAt",
1099
+ "outputs": [
1100
+ {
1101
+ "internalType": "uint64",
1102
+ "name": "",
1103
+ "type": "uint64"
1104
+ }
1105
+ ],
1106
+ "stateMutability": "view",
1107
+ "type": "function"
1108
+ },
1109
+ {
1110
+ "inputs": [
1111
+ {
1112
+ "internalType": "uint32",
1113
+ "name": "market",
1114
+ "type": "uint32"
1115
+ }
1116
+ ],
1117
+ "name": "activePositionId",
1118
+ "outputs": [
1119
+ {
1120
+ "internalType": "uint64",
1121
+ "name": "",
1122
+ "type": "uint64"
1123
+ }
1124
+ ],
1125
+ "stateMutability": "view",
1126
+ "type": "function"
1127
+ },
1128
+ {
1129
+ "inputs": [],
1130
+ "name": "allocation6",
1131
+ "outputs": [
1132
+ {
1133
+ "internalType": "uint96",
1134
+ "name": "",
1135
+ "type": "uint96"
1136
+ }
1137
+ ],
1138
+ "stateMutability": "view",
1139
+ "type": "function"
1140
+ },
1141
+ {
1142
+ "inputs": [],
1143
+ "name": "availableEquity",
1144
+ "outputs": [
1145
+ {
1146
+ "internalType": "uint256",
1147
+ "name": "",
1148
+ "type": "uint256"
1149
+ }
1150
+ ],
1151
+ "stateMutability": "view",
1152
+ "type": "function"
1153
+ },
1154
+ {
1155
+ "inputs": [],
1156
+ "name": "builder",
1157
+ "outputs": [
1158
+ {
1159
+ "internalType": "address",
1160
+ "name": "",
1161
+ "type": "address"
1162
+ }
1163
+ ],
1164
+ "stateMutability": "view",
1165
+ "type": "function"
1166
+ },
1167
+ {
1168
+ "inputs": [],
1169
+ "name": "builderRegistry",
1170
+ "outputs": [
1171
+ {
1172
+ "internalType": "contract IBuilderRegistryViews",
1173
+ "name": "",
1174
+ "type": "address"
1175
+ }
1176
+ ],
1177
+ "stateMutability": "view",
1178
+ "type": "function"
1179
+ },
1180
+ {
1181
+ "inputs": [
1182
+ {
1183
+ "internalType": "uint32",
1184
+ "name": "",
1185
+ "type": "uint32"
1186
+ },
1187
+ {
1188
+ "internalType": "enum ChallengeAccount.ExitOrderKind",
1189
+ "name": "",
1190
+ "type": "uint8"
1191
+ }
1192
+ ],
1193
+ "name": "cancelExitOrder",
1194
+ "outputs": [],
1195
+ "stateMutability": "nonpayable",
1196
+ "type": "function"
1197
+ },
1198
+ {
1199
+ "inputs": [],
1200
+ "name": "challengeExpiry",
1201
+ "outputs": [
1202
+ {
1203
+ "internalType": "uint64",
1204
+ "name": "",
1205
+ "type": "uint64"
1206
+ }
1207
+ ],
1208
+ "stateMutability": "view",
1209
+ "type": "function"
1210
+ },
1211
+ {
1212
+ "inputs": [],
1213
+ "name": "checkpoint",
1214
+ "outputs": [
1215
+ {
1216
+ "internalType": "int256",
1217
+ "name": "currentEquity",
1218
+ "type": "int256"
1219
+ }
1220
+ ],
1221
+ "stateMutability": "nonpayable",
1222
+ "type": "function"
1223
+ },
1224
+ {
1225
+ "inputs": [],
1226
+ "name": "checkpointProfitDay",
1227
+ "outputs": [
1228
+ {
1229
+ "internalType": "int256",
1230
+ "name": "currentEquity",
1231
+ "type": "int256"
1232
+ }
1233
+ ],
1234
+ "stateMutability": "nonpayable",
1235
+ "type": "function"
1236
+ },
1237
+ {
1238
+ "inputs": [],
1239
+ "name": "claimPass",
1240
+ "outputs": [],
1241
+ "stateMutability": "nonpayable",
1242
+ "type": "function"
1243
+ },
1244
+ {
1245
+ "inputs": [
1246
+ {
1247
+ "internalType": "uint32",
1248
+ "name": "",
1249
+ "type": "uint32"
1250
+ }
1251
+ ],
1252
+ "name": "clearExitOrders",
1253
+ "outputs": [],
1254
+ "stateMutability": "nonpayable",
1255
+ "type": "function"
1256
+ },
1257
+ {
1258
+ "inputs": [],
1259
+ "name": "closeAccount",
1260
+ "outputs": [],
1261
+ "stateMutability": "nonpayable",
1262
+ "type": "function"
1263
+ },
1264
+ {
1265
+ "inputs": [
1266
+ {
1267
+ "internalType": "uint64",
1268
+ "name": "positionId",
1269
+ "type": "uint64"
1270
+ },
1271
+ {
1272
+ "internalType": "uint64",
1273
+ "name": "maxPrice",
1274
+ "type": "uint64"
1275
+ },
1276
+ {
1277
+ "internalType": "uint64",
1278
+ "name": "minPrice",
1279
+ "type": "uint64"
1280
+ }
1281
+ ],
1282
+ "name": "closePosition",
1283
+ "outputs": [
1284
+ {
1285
+ "internalType": "int256",
1286
+ "name": "pnl",
1287
+ "type": "int256"
1288
+ }
1289
+ ],
1290
+ "stateMutability": "nonpayable",
1291
+ "type": "function"
1292
+ },
1293
+ {
1294
+ "inputs": [
1295
+ {
1296
+ "components": [
1297
+ {
1298
+ "internalType": "address",
1299
+ "name": "owner",
1300
+ "type": "address"
1301
+ },
1302
+ {
1303
+ "internalType": "address",
1304
+ "name": "account",
1305
+ "type": "address"
1306
+ },
1307
+ {
1308
+ "internalType": "uint64",
1309
+ "name": "positionId",
1310
+ "type": "uint64"
1311
+ },
1312
+ {
1313
+ "internalType": "uint64",
1314
+ "name": "maxPrice",
1315
+ "type": "uint64"
1316
+ },
1317
+ {
1318
+ "internalType": "uint64",
1319
+ "name": "minPrice",
1320
+ "type": "uint64"
1321
+ },
1322
+ {
1323
+ "internalType": "uint256",
1324
+ "name": "nonce",
1325
+ "type": "uint256"
1326
+ },
1327
+ {
1328
+ "internalType": "uint64",
1329
+ "name": "deadline",
1330
+ "type": "uint64"
1331
+ }
1332
+ ],
1333
+ "internalType": "struct ChallengeAccount.CloseIntent",
1334
+ "name": "intent",
1335
+ "type": "tuple"
1336
+ },
1337
+ {
1338
+ "internalType": "bytes",
1339
+ "name": "signature",
1340
+ "type": "bytes"
1341
+ }
1342
+ ],
1343
+ "name": "closePositionBySig",
1344
+ "outputs": [
1345
+ {
1346
+ "internalType": "int256",
1347
+ "name": "pnl",
1348
+ "type": "int256"
1349
+ }
1350
+ ],
1351
+ "stateMutability": "nonpayable",
1352
+ "type": "function"
1353
+ },
1354
+ {
1355
+ "inputs": [],
1356
+ "name": "currentStep",
1357
+ "outputs": [
1358
+ {
1359
+ "internalType": "uint8",
1360
+ "name": "",
1361
+ "type": "uint8"
1362
+ }
1363
+ ],
1364
+ "stateMutability": "view",
1365
+ "type": "function"
1366
+ },
1367
+ {
1368
+ "inputs": [],
1369
+ "name": "dailyDrawdownEnabled",
1370
+ "outputs": [
1371
+ {
1372
+ "internalType": "bool",
1373
+ "name": "",
1374
+ "type": "bool"
1375
+ }
1376
+ ],
1377
+ "stateMutability": "view",
1378
+ "type": "function"
1379
+ },
1380
+ {
1381
+ "inputs": [],
1382
+ "name": "drawdownBps",
1383
+ "outputs": [
1384
+ {
1385
+ "internalType": "uint16",
1386
+ "name": "",
1387
+ "type": "uint16"
1388
+ }
1389
+ ],
1390
+ "stateMutability": "view",
1391
+ "type": "function"
1392
+ },
1393
+ {
1394
+ "inputs": [],
1395
+ "name": "eip712Domain",
1396
+ "outputs": [
1397
+ {
1398
+ "internalType": "bytes1",
1399
+ "name": "fields",
1400
+ "type": "bytes1"
1401
+ },
1402
+ {
1403
+ "internalType": "string",
1404
+ "name": "name",
1405
+ "type": "string"
1406
+ },
1407
+ {
1408
+ "internalType": "string",
1409
+ "name": "version",
1410
+ "type": "string"
1411
+ },
1412
+ {
1413
+ "internalType": "uint256",
1414
+ "name": "chainId",
1415
+ "type": "uint256"
1416
+ },
1417
+ {
1418
+ "internalType": "address",
1419
+ "name": "verifyingContract",
1420
+ "type": "address"
1421
+ },
1422
+ {
1423
+ "internalType": "bytes32",
1424
+ "name": "salt",
1425
+ "type": "bytes32"
1426
+ },
1427
+ {
1428
+ "internalType": "uint256[]",
1429
+ "name": "extensions",
1430
+ "type": "uint256[]"
1431
+ }
1432
+ ],
1433
+ "stateMutability": "view",
1434
+ "type": "function"
1435
+ },
1436
+ {
1437
+ "inputs": [],
1438
+ "name": "equity",
1439
+ "outputs": [
1440
+ {
1441
+ "internalType": "int256",
1442
+ "name": "",
1443
+ "type": "int256"
1444
+ }
1445
+ ],
1446
+ "stateMutability": "view",
1447
+ "type": "function"
1448
+ },
1449
+ {
1450
+ "inputs": [
1451
+ {
1452
+ "internalType": "uint32",
1453
+ "name": "market",
1454
+ "type": "uint32"
1455
+ },
1456
+ {
1457
+ "internalType": "enum ChallengeAccount.ExitOrderKind",
1458
+ "name": "kind",
1459
+ "type": "uint8"
1460
+ },
1461
+ {
1462
+ "internalType": "uint64",
1463
+ "name": "maxPrice",
1464
+ "type": "uint64"
1465
+ },
1466
+ {
1467
+ "internalType": "uint64",
1468
+ "name": "minPrice",
1469
+ "type": "uint64"
1470
+ }
1471
+ ],
1472
+ "name": "executeExitOrder",
1473
+ "outputs": [
1474
+ {
1475
+ "internalType": "int256",
1476
+ "name": "pnl",
1477
+ "type": "int256"
1478
+ }
1479
+ ],
1480
+ "stateMutability": "nonpayable",
1481
+ "type": "function"
1482
+ },
1483
+ {
1484
+ "inputs": [],
1485
+ "name": "finalTargetProfitBps",
1486
+ "outputs": [
1487
+ {
1488
+ "internalType": "uint16",
1489
+ "name": "",
1490
+ "type": "uint16"
1491
+ }
1492
+ ],
1493
+ "stateMutability": "view",
1494
+ "type": "function"
1495
+ },
1496
+ {
1497
+ "inputs": [
1498
+ {
1499
+ "internalType": "address",
1500
+ "name": "fundedAccount",
1501
+ "type": "address"
1502
+ }
1503
+ ],
1504
+ "name": "finalizeAbookPromotion",
1505
+ "outputs": [],
1506
+ "stateMutability": "nonpayable",
1507
+ "type": "function"
1508
+ },
1509
+ {
1510
+ "inputs": [],
1511
+ "name": "freeBalance6",
1512
+ "outputs": [
1513
+ {
1514
+ "internalType": "int256",
1515
+ "name": "",
1516
+ "type": "int256"
1517
+ }
1518
+ ],
1519
+ "stateMutability": "view",
1520
+ "type": "function"
1521
+ },
1522
+ {
1523
+ "inputs": [
1524
+ {
1525
+ "internalType": "uint32",
1526
+ "name": "market",
1527
+ "type": "uint32"
1528
+ }
1529
+ ],
1530
+ "name": "getExitOrders",
1531
+ "outputs": [
1532
+ {
1533
+ "components": [
1534
+ {
1535
+ "internalType": "uint64",
1536
+ "name": "positionId",
1537
+ "type": "uint64"
1538
+ },
1539
+ {
1540
+ "internalType": "uint64",
1541
+ "name": "stopLossPrice",
1542
+ "type": "uint64"
1543
+ },
1544
+ {
1545
+ "internalType": "uint64",
1546
+ "name": "takeProfitPrice",
1547
+ "type": "uint64"
1548
+ }
1549
+ ],
1550
+ "internalType": "struct ChallengeAccount.ExitOrders",
1551
+ "name": "",
1552
+ "type": "tuple"
1553
+ }
1554
+ ],
1555
+ "stateMutability": "view",
1556
+ "type": "function"
1557
+ },
1558
+ {
1559
+ "inputs": [],
1560
+ "name": "getOpenPositionIds",
1561
+ "outputs": [
1562
+ {
1563
+ "internalType": "uint64[]",
1564
+ "name": "",
1565
+ "type": "uint64[]"
1566
+ }
1567
+ ],
1568
+ "stateMutability": "view",
1569
+ "type": "function"
1570
+ },
1571
+ {
1572
+ "inputs": [
1573
+ {
1574
+ "internalType": "uint64",
1575
+ "name": "positionId",
1576
+ "type": "uint64"
1577
+ }
1578
+ ],
1579
+ "name": "getPosition",
1580
+ "outputs": [
1581
+ {
1582
+ "components": [
1583
+ {
1584
+ "internalType": "uint64",
1585
+ "name": "id",
1586
+ "type": "uint64"
1587
+ },
1588
+ {
1589
+ "internalType": "uint32",
1590
+ "name": "market",
1591
+ "type": "uint32"
1592
+ },
1593
+ {
1594
+ "internalType": "bool",
1595
+ "name": "isLong",
1596
+ "type": "bool"
1597
+ },
1598
+ {
1599
+ "internalType": "uint96",
1600
+ "name": "margin",
1601
+ "type": "uint96"
1602
+ },
1603
+ {
1604
+ "internalType": "uint96",
1605
+ "name": "notional",
1606
+ "type": "uint96"
1607
+ },
1608
+ {
1609
+ "internalType": "uint64",
1610
+ "name": "entryPrice",
1611
+ "type": "uint64"
1612
+ },
1613
+ {
1614
+ "internalType": "uint64",
1615
+ "name": "openedAtBlock",
1616
+ "type": "uint64"
1617
+ }
1618
+ ],
1619
+ "internalType": "struct SettlementLib.Position",
1620
+ "name": "",
1621
+ "type": "tuple"
1622
+ }
1623
+ ],
1624
+ "stateMutability": "view",
1625
+ "type": "function"
1626
+ },
1627
+ {
1628
+ "inputs": [
1629
+ {
1630
+ "internalType": "address",
1631
+ "name": "key",
1632
+ "type": "address"
1633
+ }
1634
+ ],
1635
+ "name": "getSessionKey",
1636
+ "outputs": [
1637
+ {
1638
+ "components": [
1639
+ {
1640
+ "internalType": "uint256",
1641
+ "name": "permissions",
1642
+ "type": "uint256"
1643
+ },
1644
+ {
1645
+ "internalType": "uint256",
1646
+ "name": "marketMask",
1647
+ "type": "uint256"
1648
+ },
1649
+ {
1650
+ "internalType": "uint96",
1651
+ "name": "maxMarginPerIntent",
1652
+ "type": "uint96"
1653
+ },
1654
+ {
1655
+ "internalType": "uint96",
1656
+ "name": "maxNotional",
1657
+ "type": "uint96"
1658
+ },
1659
+ {
1660
+ "internalType": "uint64",
1661
+ "name": "expiry",
1662
+ "type": "uint64"
1663
+ },
1664
+ {
1665
+ "internalType": "uint32",
1666
+ "name": "maxLeverageBps",
1667
+ "type": "uint32"
1668
+ },
1669
+ {
1670
+ "internalType": "bool",
1671
+ "name": "active",
1672
+ "type": "bool"
1673
+ }
1674
+ ],
1675
+ "internalType": "struct SessionKeyLib.SessionKey",
1676
+ "name": "",
1677
+ "type": "tuple"
1678
+ }
1679
+ ],
1680
+ "stateMutability": "view",
1681
+ "type": "function"
1682
+ },
1683
+ {
1684
+ "inputs": [],
1685
+ "name": "hasRequiredProfitableDays",
1686
+ "outputs": [
1687
+ {
1688
+ "internalType": "bool",
1689
+ "name": "",
1690
+ "type": "bool"
1691
+ }
1692
+ ],
1693
+ "stateMutability": "view",
1694
+ "type": "function"
1695
+ },
1696
+ {
1697
+ "inputs": [
1698
+ {
1699
+ "components": [
1700
+ {
1701
+ "internalType": "address",
1702
+ "name": "owner",
1703
+ "type": "address"
1704
+ },
1705
+ {
1706
+ "internalType": "address",
1707
+ "name": "builder",
1708
+ "type": "address"
1709
+ },
1710
+ {
1711
+ "internalType": "address",
1712
+ "name": "vault",
1713
+ "type": "address"
1714
+ },
1715
+ {
1716
+ "internalType": "address",
1717
+ "name": "oracle",
1718
+ "type": "address"
1719
+ },
1720
+ {
1721
+ "internalType": "address",
1722
+ "name": "builderRegistry",
1723
+ "type": "address"
1724
+ },
1725
+ {
1726
+ "internalType": "address",
1727
+ "name": "trustedForwarder",
1728
+ "type": "address"
1729
+ },
1730
+ {
1731
+ "internalType": "uint96",
1732
+ "name": "initialBalance6",
1733
+ "type": "uint96"
1734
+ },
1735
+ {
1736
+ "internalType": "uint96",
1737
+ "name": "allocation6",
1738
+ "type": "uint96"
1739
+ },
1740
+ {
1741
+ "internalType": "uint32",
1742
+ "name": "maxLeverageBps",
1743
+ "type": "uint32"
1744
+ },
1745
+ {
1746
+ "internalType": "uint16",
1747
+ "name": "drawdownBps",
1748
+ "type": "uint16"
1749
+ },
1750
+ {
1751
+ "internalType": "bool",
1752
+ "name": "dailyDrawdownEnabled",
1753
+ "type": "bool"
1754
+ },
1755
+ {
1756
+ "internalType": "bool",
1757
+ "name": "tradingDaysEnabled",
1758
+ "type": "bool"
1759
+ },
1760
+ {
1761
+ "internalType": "uint8",
1762
+ "name": "profitableDaysRequired",
1763
+ "type": "uint8"
1764
+ },
1765
+ {
1766
+ "internalType": "uint8",
1767
+ "name": "totalSteps",
1768
+ "type": "uint8"
1769
+ },
1770
+ {
1771
+ "internalType": "uint16",
1772
+ "name": "stepTargetProfitBps",
1773
+ "type": "uint16"
1774
+ },
1775
+ {
1776
+ "internalType": "uint16",
1777
+ "name": "finalTargetProfitBps",
1778
+ "type": "uint16"
1779
+ },
1780
+ {
1781
+ "internalType": "uint96",
1782
+ "name": "maxNotional",
1783
+ "type": "uint96"
1784
+ },
1785
+ {
1786
+ "internalType": "uint8",
1787
+ "name": "maxOpenPositions",
1788
+ "type": "uint8"
1789
+ },
1790
+ {
1791
+ "internalType": "uint64",
1792
+ "name": "minHoldBlocks",
1793
+ "type": "uint64"
1794
+ }
1795
+ ],
1796
+ "internalType": "struct IChallengeAccount.InitParams",
1797
+ "name": "params",
1798
+ "type": "tuple"
1799
+ }
1800
+ ],
1801
+ "name": "init",
1802
+ "outputs": [],
1803
+ "stateMutability": "nonpayable",
1804
+ "type": "function"
1805
+ },
1806
+ {
1807
+ "inputs": [],
1808
+ "name": "initialBalance6",
1809
+ "outputs": [
1810
+ {
1811
+ "internalType": "uint96",
1812
+ "name": "",
1813
+ "type": "uint96"
1814
+ }
1815
+ ],
1816
+ "stateMutability": "view",
1817
+ "type": "function"
1818
+ },
1819
+ {
1820
+ "inputs": [],
1821
+ "name": "isExpired",
1822
+ "outputs": [
1823
+ {
1824
+ "internalType": "bool",
1825
+ "name": "",
1826
+ "type": "bool"
1827
+ }
1828
+ ],
1829
+ "stateMutability": "view",
1830
+ "type": "function"
1831
+ },
1832
+ {
1833
+ "inputs": [
1834
+ {
1835
+ "internalType": "address",
1836
+ "name": "forwarder",
1837
+ "type": "address"
1838
+ }
1839
+ ],
1840
+ "name": "isTrustedForwarder",
1841
+ "outputs": [
1842
+ {
1843
+ "internalType": "bool",
1844
+ "name": "",
1845
+ "type": "bool"
1846
+ }
1847
+ ],
1848
+ "stateMutability": "view",
1849
+ "type": "function"
1850
+ },
1851
+ {
1852
+ "inputs": [
1853
+ {
1854
+ "internalType": "uint64",
1855
+ "name": "positionId",
1856
+ "type": "uint64"
1857
+ }
1858
+ ],
1859
+ "name": "liquidate",
1860
+ "outputs": [],
1861
+ "stateMutability": "nonpayable",
1862
+ "type": "function"
1863
+ },
1864
+ {
1865
+ "inputs": [],
1866
+ "name": "managementFacet",
1867
+ "outputs": [
1868
+ {
1869
+ "internalType": "address",
1870
+ "name": "",
1871
+ "type": "address"
1872
+ }
1873
+ ],
1874
+ "stateMutability": "view",
1875
+ "type": "function"
1876
+ },
1877
+ {
1878
+ "inputs": [],
1879
+ "name": "maxLeverageBps",
1880
+ "outputs": [
1881
+ {
1882
+ "internalType": "uint32",
1883
+ "name": "",
1884
+ "type": "uint32"
1885
+ }
1886
+ ],
1887
+ "stateMutability": "view",
1888
+ "type": "function"
1889
+ },
1890
+ {
1891
+ "inputs": [],
1892
+ "name": "maxNotional",
1893
+ "outputs": [
1894
+ {
1895
+ "internalType": "uint96",
1896
+ "name": "",
1897
+ "type": "uint96"
1898
+ }
1899
+ ],
1900
+ "stateMutability": "view",
1901
+ "type": "function"
1902
+ },
1903
+ {
1904
+ "inputs": [],
1905
+ "name": "maxOpenPositions",
1906
+ "outputs": [
1907
+ {
1908
+ "internalType": "uint8",
1909
+ "name": "",
1910
+ "type": "uint8"
1911
+ }
1912
+ ],
1913
+ "stateMutability": "view",
1914
+ "type": "function"
1915
+ },
1916
+ {
1917
+ "inputs": [],
1918
+ "name": "minHoldBlocks",
1919
+ "outputs": [
1920
+ {
1921
+ "internalType": "uint64",
1922
+ "name": "",
1923
+ "type": "uint64"
1924
+ }
1925
+ ],
1926
+ "stateMutability": "view",
1927
+ "type": "function"
1928
+ },
1929
+ {
1930
+ "inputs": [],
1931
+ "name": "nextNonce",
1932
+ "outputs": [
1933
+ {
1934
+ "internalType": "uint256",
1935
+ "name": "",
1936
+ "type": "uint256"
1937
+ }
1938
+ ],
1939
+ "stateMutability": "view",
1940
+ "type": "function"
1941
+ },
1942
+ {
1943
+ "inputs": [],
1944
+ "name": "nextPositionId",
1945
+ "outputs": [
1946
+ {
1947
+ "internalType": "uint64",
1948
+ "name": "",
1949
+ "type": "uint64"
1950
+ }
1951
+ ],
1952
+ "stateMutability": "view",
1953
+ "type": "function"
1954
+ },
1955
+ {
1956
+ "inputs": [
1957
+ {
1958
+ "internalType": "uint256",
1959
+ "name": "paidGross6",
1960
+ "type": "uint256"
1961
+ },
1962
+ {
1963
+ "internalType": "uint256",
1964
+ "name": "remainingPendingGross6",
1965
+ "type": "uint256"
1966
+ }
1967
+ ],
1968
+ "name": "onVaultPayoutSettled",
1969
+ "outputs": [],
1970
+ "stateMutability": "nonpayable",
1971
+ "type": "function"
1972
+ },
1973
+ {
1974
+ "inputs": [],
1975
+ "name": "openNotional6",
1976
+ "outputs": [
1977
+ {
1978
+ "internalType": "uint128",
1979
+ "name": "",
1980
+ "type": "uint128"
1981
+ }
1982
+ ],
1983
+ "stateMutability": "view",
1984
+ "type": "function"
1985
+ },
1986
+ {
1987
+ "inputs": [
1988
+ {
1989
+ "internalType": "uint32",
1990
+ "name": "market",
1991
+ "type": "uint32"
1992
+ },
1993
+ {
1994
+ "internalType": "bool",
1995
+ "name": "isLong",
1996
+ "type": "bool"
1997
+ },
1998
+ {
1999
+ "internalType": "uint96",
2000
+ "name": "margin",
2001
+ "type": "uint96"
2002
+ },
2003
+ {
2004
+ "internalType": "uint96",
2005
+ "name": "notional",
2006
+ "type": "uint96"
2007
+ },
2008
+ {
2009
+ "internalType": "uint64",
2010
+ "name": "maxPrice",
2011
+ "type": "uint64"
2012
+ },
2013
+ {
2014
+ "internalType": "uint64",
2015
+ "name": "minPrice",
2016
+ "type": "uint64"
2017
+ }
2018
+ ],
2019
+ "name": "openPosition",
2020
+ "outputs": [
2021
+ {
2022
+ "internalType": "uint64",
2023
+ "name": "positionId",
2024
+ "type": "uint64"
2025
+ }
2026
+ ],
2027
+ "stateMutability": "nonpayable",
2028
+ "type": "function"
2029
+ },
2030
+ {
2031
+ "inputs": [
2032
+ {
2033
+ "components": [
2034
+ {
2035
+ "internalType": "address",
2036
+ "name": "owner",
2037
+ "type": "address"
2038
+ },
2039
+ {
2040
+ "internalType": "address",
2041
+ "name": "account",
2042
+ "type": "address"
2043
+ },
2044
+ {
2045
+ "internalType": "uint32",
2046
+ "name": "market",
2047
+ "type": "uint32"
2048
+ },
2049
+ {
2050
+ "internalType": "bool",
2051
+ "name": "isLong",
2052
+ "type": "bool"
2053
+ },
2054
+ {
2055
+ "internalType": "uint96",
2056
+ "name": "margin",
2057
+ "type": "uint96"
2058
+ },
2059
+ {
2060
+ "internalType": "uint96",
2061
+ "name": "notional",
2062
+ "type": "uint96"
2063
+ },
2064
+ {
2065
+ "internalType": "uint64",
2066
+ "name": "maxPrice",
2067
+ "type": "uint64"
2068
+ },
2069
+ {
2070
+ "internalType": "uint64",
2071
+ "name": "minPrice",
2072
+ "type": "uint64"
2073
+ },
2074
+ {
2075
+ "internalType": "uint256",
2076
+ "name": "nonce",
2077
+ "type": "uint256"
2078
+ },
2079
+ {
2080
+ "internalType": "uint64",
2081
+ "name": "deadline",
2082
+ "type": "uint64"
2083
+ }
2084
+ ],
2085
+ "internalType": "struct ChallengeAccount.OpenIntent",
2086
+ "name": "intent",
2087
+ "type": "tuple"
2088
+ },
2089
+ {
2090
+ "internalType": "bytes",
2091
+ "name": "signature",
2092
+ "type": "bytes"
2093
+ }
2094
+ ],
2095
+ "name": "openPositionBySig",
2096
+ "outputs": [
2097
+ {
2098
+ "internalType": "uint64",
2099
+ "name": "positionId",
2100
+ "type": "uint64"
2101
+ }
2102
+ ],
2103
+ "stateMutability": "nonpayable",
2104
+ "type": "function"
2105
+ },
2106
+ {
2107
+ "inputs": [],
2108
+ "name": "oracle",
2109
+ "outputs": [
2110
+ {
2111
+ "internalType": "contract IChallengePriceOracle",
2112
+ "name": "",
2113
+ "type": "address"
2114
+ }
2115
+ ],
2116
+ "stateMutability": "view",
2117
+ "type": "function"
2118
+ },
2119
+ {
2120
+ "inputs": [],
2121
+ "name": "owner",
2122
+ "outputs": [
2123
+ {
2124
+ "internalType": "address",
2125
+ "name": "",
2126
+ "type": "address"
2127
+ }
2128
+ ],
2129
+ "stateMutability": "view",
2130
+ "type": "function"
2131
+ },
2132
+ {
2133
+ "inputs": [],
2134
+ "name": "phase",
2135
+ "outputs": [
2136
+ {
2137
+ "internalType": "enum ChallengeAccount.Phase",
2138
+ "name": "",
2139
+ "type": "uint8"
2140
+ }
2141
+ ],
2142
+ "stateMutability": "view",
2143
+ "type": "function"
2144
+ },
2145
+ {
2146
+ "inputs": [],
2147
+ "name": "profitableDaysRequired",
2148
+ "outputs": [
2149
+ {
2150
+ "internalType": "uint8",
2151
+ "name": "",
2152
+ "type": "uint8"
2153
+ }
2154
+ ],
2155
+ "stateMutability": "view",
2156
+ "type": "function"
2157
+ },
2158
+ {
2159
+ "inputs": [],
2160
+ "name": "reduceOnly",
2161
+ "outputs": [
2162
+ {
2163
+ "internalType": "bool",
2164
+ "name": "",
2165
+ "type": "bool"
2166
+ }
2167
+ ],
2168
+ "stateMutability": "view",
2169
+ "type": "function"
2170
+ },
2171
+ {
2172
+ "inputs": [
2173
+ {
2174
+ "internalType": "address",
2175
+ "name": "",
2176
+ "type": "address"
2177
+ },
2178
+ {
2179
+ "internalType": "uint64",
2180
+ "name": "",
2181
+ "type": "uint64"
2182
+ },
2183
+ {
2184
+ "internalType": "uint256",
2185
+ "name": "",
2186
+ "type": "uint256"
2187
+ },
2188
+ {
2189
+ "internalType": "uint96",
2190
+ "name": "",
2191
+ "type": "uint96"
2192
+ },
2193
+ {
2194
+ "internalType": "uint96",
2195
+ "name": "",
2196
+ "type": "uint96"
2197
+ },
2198
+ {
2199
+ "internalType": "uint32",
2200
+ "name": "",
2201
+ "type": "uint32"
2202
+ },
2203
+ {
2204
+ "internalType": "uint256",
2205
+ "name": "",
2206
+ "type": "uint256"
2207
+ }
2208
+ ],
2209
+ "name": "registerSessionKey",
2210
+ "outputs": [],
2211
+ "stateMutability": "nonpayable",
2212
+ "type": "function"
2213
+ },
2214
+ {
2215
+ "inputs": [],
2216
+ "name": "requestPayout",
2217
+ "outputs": [
2218
+ {
2219
+ "internalType": "uint256",
2220
+ "name": "gross6",
2221
+ "type": "uint256"
2222
+ },
2223
+ {
2224
+ "internalType": "bool",
2225
+ "name": "fullyPaid",
2226
+ "type": "bool"
2227
+ },
2228
+ {
2229
+ "internalType": "uint64",
2230
+ "name": "queueId",
2231
+ "type": "uint64"
2232
+ }
2233
+ ],
2234
+ "stateMutability": "nonpayable",
2235
+ "type": "function"
2236
+ },
2237
+ {
2238
+ "inputs": [],
2239
+ "name": "reservedMargin6",
2240
+ "outputs": [
2241
+ {
2242
+ "internalType": "uint128",
2243
+ "name": "",
2244
+ "type": "uint128"
2245
+ }
2246
+ ],
2247
+ "stateMutability": "view",
2248
+ "type": "function"
2249
+ },
2250
+ {
2251
+ "inputs": [
2252
+ {
2253
+ "internalType": "address",
2254
+ "name": "",
2255
+ "type": "address"
2256
+ }
2257
+ ],
2258
+ "name": "revokeSessionKey",
2259
+ "outputs": [],
2260
+ "stateMutability": "nonpayable",
2261
+ "type": "function"
2262
+ },
2263
+ {
2264
+ "inputs": [
2265
+ {
2266
+ "internalType": "uint32",
2267
+ "name": "",
2268
+ "type": "uint32"
2269
+ },
2270
+ {
2271
+ "internalType": "uint64",
2272
+ "name": "",
2273
+ "type": "uint64"
2274
+ },
2275
+ {
2276
+ "internalType": "uint64",
2277
+ "name": "",
2278
+ "type": "uint64"
2279
+ }
2280
+ ],
2281
+ "name": "setExitOrders",
2282
+ "outputs": [],
2283
+ "stateMutability": "nonpayable",
2284
+ "type": "function"
2285
+ },
2286
+ {
2287
+ "inputs": [
2288
+ {
2289
+ "internalType": "uint256",
2290
+ "name": "expectedNonce",
2291
+ "type": "uint256"
2292
+ }
2293
+ ],
2294
+ "name": "skipNonce",
2295
+ "outputs": [],
2296
+ "stateMutability": "nonpayable",
2297
+ "type": "function"
2298
+ },
2299
+ {
2300
+ "inputs": [],
2301
+ "name": "targetProfitBps",
2302
+ "outputs": [
2303
+ {
2304
+ "internalType": "uint16",
2305
+ "name": "",
2306
+ "type": "uint16"
2307
+ }
2308
+ ],
2309
+ "stateMutability": "view",
2310
+ "type": "function"
2311
+ },
2312
+ {
2313
+ "inputs": [],
2314
+ "name": "totalSteps",
2315
+ "outputs": [
2316
+ {
2317
+ "internalType": "uint8",
2318
+ "name": "",
2319
+ "type": "uint8"
2320
+ }
2321
+ ],
2322
+ "stateMutability": "view",
2323
+ "type": "function"
2324
+ },
2325
+ {
2326
+ "inputs": [],
2327
+ "name": "tradingDaysEnabled",
2328
+ "outputs": [
2329
+ {
2330
+ "internalType": "bool",
2331
+ "name": "",
2332
+ "type": "bool"
2333
+ }
2334
+ ],
2335
+ "stateMutability": "view",
2336
+ "type": "function"
2337
+ },
2338
+ {
2339
+ "inputs": [],
2340
+ "name": "trustedForwarder",
2341
+ "outputs": [
2342
+ {
2343
+ "internalType": "address",
2344
+ "name": "",
2345
+ "type": "address"
2346
+ }
2347
+ ],
2348
+ "stateMutability": "view",
2349
+ "type": "function"
2350
+ },
2351
+ {
2352
+ "inputs": [],
2353
+ "name": "vault",
2354
+ "outputs": [
2355
+ {
2356
+ "internalType": "contract IChallengeVault",
2357
+ "name": "",
2358
+ "type": "address"
2359
+ }
2360
+ ],
2361
+ "stateMutability": "view",
2362
+ "type": "function"
2363
+ }
2364
+ ];
2365
+ //# sourceMappingURL=challengeAccount.js.map