@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,1727 @@
1
+ export const challengeFactoryAbi = [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_implementation",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "contract IChallengeVault",
11
+ "name": "_vault",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "contract IBuilderRegistryViews",
16
+ "name": "_builderRegistry",
17
+ "type": "address"
18
+ },
19
+ {
20
+ "internalType": "contract IChallengePriceOracle",
21
+ "name": "_oracle",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "address",
26
+ "name": "initialOwner",
27
+ "type": "address"
28
+ }
29
+ ],
30
+ "stateMutability": "nonpayable",
31
+ "type": "constructor"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "FailedDeployment",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [
40
+ {
41
+ "internalType": "uint256",
42
+ "name": "balance",
43
+ "type": "uint256"
44
+ },
45
+ {
46
+ "internalType": "uint256",
47
+ "name": "needed",
48
+ "type": "uint256"
49
+ }
50
+ ],
51
+ "name": "InsufficientBalance",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "InvalidShortString",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [
61
+ {
62
+ "internalType": "address",
63
+ "name": "owner",
64
+ "type": "address"
65
+ }
66
+ ],
67
+ "name": "OwnableInvalidOwner",
68
+ "type": "error"
69
+ },
70
+ {
71
+ "inputs": [
72
+ {
73
+ "internalType": "address",
74
+ "name": "account",
75
+ "type": "address"
76
+ }
77
+ ],
78
+ "name": "OwnableUnauthorizedAccount",
79
+ "type": "error"
80
+ },
81
+ {
82
+ "inputs": [],
83
+ "name": "ReentrancyGuardReentrantCall",
84
+ "type": "error"
85
+ },
86
+ {
87
+ "inputs": [
88
+ {
89
+ "internalType": "string",
90
+ "name": "str",
91
+ "type": "string"
92
+ }
93
+ ],
94
+ "name": "StringTooLong",
95
+ "type": "error"
96
+ },
97
+ {
98
+ "anonymous": false,
99
+ "inputs": [
100
+ {
101
+ "indexed": true,
102
+ "internalType": "address",
103
+ "name": "builder",
104
+ "type": "address"
105
+ },
106
+ {
107
+ "indexed": false,
108
+ "internalType": "uint256",
109
+ "name": "epoch",
110
+ "type": "uint256"
111
+ }
112
+ ],
113
+ "name": "BuilderQuoteEpochUpdated",
114
+ "type": "event"
115
+ },
116
+ {
117
+ "anonymous": false,
118
+ "inputs": [
119
+ {
120
+ "indexed": true,
121
+ "internalType": "address",
122
+ "name": "payer",
123
+ "type": "address"
124
+ },
125
+ {
126
+ "indexed": true,
127
+ "internalType": "address",
128
+ "name": "trader",
129
+ "type": "address"
130
+ },
131
+ {
132
+ "indexed": true,
133
+ "internalType": "address",
134
+ "name": "builder",
135
+ "type": "address"
136
+ },
137
+ {
138
+ "indexed": false,
139
+ "internalType": "address",
140
+ "name": "account",
141
+ "type": "address"
142
+ },
143
+ {
144
+ "indexed": false,
145
+ "internalType": "uint96",
146
+ "name": "allocation",
147
+ "type": "uint96"
148
+ },
149
+ {
150
+ "indexed": false,
151
+ "internalType": "uint256",
152
+ "name": "challengeFee",
153
+ "type": "uint256"
154
+ },
155
+ {
156
+ "indexed": false,
157
+ "internalType": "uint256",
158
+ "name": "builderAmount",
159
+ "type": "uint256"
160
+ }
161
+ ],
162
+ "name": "ChallengePurchased",
163
+ "type": "event"
164
+ },
165
+ {
166
+ "anonymous": false,
167
+ "inputs": [
168
+ {
169
+ "indexed": true,
170
+ "internalType": "address",
171
+ "name": "builder",
172
+ "type": "address"
173
+ },
174
+ {
175
+ "indexed": true,
176
+ "internalType": "address",
177
+ "name": "trader",
178
+ "type": "address"
179
+ },
180
+ {
181
+ "indexed": true,
182
+ "internalType": "address",
183
+ "name": "account",
184
+ "type": "address"
185
+ },
186
+ {
187
+ "indexed": false,
188
+ "internalType": "address",
189
+ "name": "payer",
190
+ "type": "address"
191
+ },
192
+ {
193
+ "indexed": false,
194
+ "internalType": "uint256",
195
+ "name": "nonce",
196
+ "type": "uint256"
197
+ },
198
+ {
199
+ "indexed": false,
200
+ "internalType": "bytes32",
201
+ "name": "quoteHash",
202
+ "type": "bytes32"
203
+ },
204
+ {
205
+ "indexed": false,
206
+ "internalType": "uint256",
207
+ "name": "challengeFee",
208
+ "type": "uint256"
209
+ },
210
+ {
211
+ "indexed": false,
212
+ "internalType": "uint64",
213
+ "name": "deadline",
214
+ "type": "uint64"
215
+ }
216
+ ],
217
+ "name": "ChallengeQuoteUsed",
218
+ "type": "event"
219
+ },
220
+ {
221
+ "anonymous": false,
222
+ "inputs": [],
223
+ "name": "EIP712DomainChanged",
224
+ "type": "event"
225
+ },
226
+ {
227
+ "anonymous": false,
228
+ "inputs": [
229
+ {
230
+ "indexed": true,
231
+ "internalType": "address",
232
+ "name": "previousOwner",
233
+ "type": "address"
234
+ },
235
+ {
236
+ "indexed": true,
237
+ "internalType": "address",
238
+ "name": "newOwner",
239
+ "type": "address"
240
+ }
241
+ ],
242
+ "name": "OwnershipTransferStarted",
243
+ "type": "event"
244
+ },
245
+ {
246
+ "anonymous": false,
247
+ "inputs": [
248
+ {
249
+ "indexed": true,
250
+ "internalType": "address",
251
+ "name": "previousOwner",
252
+ "type": "address"
253
+ },
254
+ {
255
+ "indexed": true,
256
+ "internalType": "address",
257
+ "name": "newOwner",
258
+ "type": "address"
259
+ }
260
+ ],
261
+ "name": "OwnershipTransferred",
262
+ "type": "event"
263
+ },
264
+ {
265
+ "anonymous": false,
266
+ "inputs": [
267
+ {
268
+ "components": [
269
+ {
270
+ "internalType": "uint16",
271
+ "name": "challengeFeeBps",
272
+ "type": "uint16"
273
+ },
274
+ {
275
+ "internalType": "uint16",
276
+ "name": "protocolFeeBps",
277
+ "type": "uint16"
278
+ },
279
+ {
280
+ "internalType": "uint16",
281
+ "name": "referralFeeBps",
282
+ "type": "uint16"
283
+ },
284
+ {
285
+ "internalType": "uint16",
286
+ "name": "referenceDrawdownBps",
287
+ "type": "uint16"
288
+ },
289
+ {
290
+ "internalType": "uint16",
291
+ "name": "challengeFeeMultiplierBps",
292
+ "type": "uint16"
293
+ },
294
+ {
295
+ "internalType": "uint16",
296
+ "name": "noDailyDrawdownSurchargeBps",
297
+ "type": "uint16"
298
+ },
299
+ {
300
+ "internalType": "uint16",
301
+ "name": "noTradingDaysSurchargeBps",
302
+ "type": "uint16"
303
+ },
304
+ {
305
+ "internalType": "uint16",
306
+ "name": "minBuilderPriceMultiplierBps",
307
+ "type": "uint16"
308
+ },
309
+ {
310
+ "internalType": "uint16",
311
+ "name": "maxBuilderPriceMultiplierBps",
312
+ "type": "uint16"
313
+ },
314
+ {
315
+ "internalType": "uint16",
316
+ "name": "twoStepDiscountBps",
317
+ "type": "uint16"
318
+ },
319
+ {
320
+ "internalType": "uint32",
321
+ "name": "maxLeverageBps",
322
+ "type": "uint32"
323
+ },
324
+ {
325
+ "internalType": "uint96",
326
+ "name": "minAllocation",
327
+ "type": "uint96"
328
+ },
329
+ {
330
+ "internalType": "uint96",
331
+ "name": "maxAllocation",
332
+ "type": "uint96"
333
+ },
334
+ {
335
+ "internalType": "uint16",
336
+ "name": "minDrawdownBps",
337
+ "type": "uint16"
338
+ },
339
+ {
340
+ "internalType": "uint16",
341
+ "name": "maxDrawdownBps",
342
+ "type": "uint16"
343
+ },
344
+ {
345
+ "internalType": "uint8",
346
+ "name": "oneStepProfitableDaysRequired",
347
+ "type": "uint8"
348
+ },
349
+ {
350
+ "internalType": "uint8",
351
+ "name": "twoStepProfitableDaysRequired",
352
+ "type": "uint8"
353
+ }
354
+ ],
355
+ "indexed": false,
356
+ "internalType": "struct ChallengePricingLib.PricingConfig",
357
+ "name": "config",
358
+ "type": "tuple"
359
+ }
360
+ ],
361
+ "name": "PricingConfigUpdated",
362
+ "type": "event"
363
+ },
364
+ {
365
+ "anonymous": false,
366
+ "inputs": [
367
+ {
368
+ "indexed": false,
369
+ "internalType": "uint256",
370
+ "name": "nonce",
371
+ "type": "uint256"
372
+ }
373
+ ],
374
+ "name": "QuoteConfigNonceUpdated",
375
+ "type": "event"
376
+ },
377
+ {
378
+ "anonymous": false,
379
+ "inputs": [
380
+ {
381
+ "indexed": true,
382
+ "internalType": "address",
383
+ "name": "builder",
384
+ "type": "address"
385
+ },
386
+ {
387
+ "indexed": false,
388
+ "internalType": "uint256",
389
+ "name": "nonce",
390
+ "type": "uint256"
391
+ }
392
+ ],
393
+ "name": "QuoteNonceCancelled",
394
+ "type": "event"
395
+ },
396
+ {
397
+ "anonymous": false,
398
+ "inputs": [
399
+ {
400
+ "indexed": false,
401
+ "internalType": "uint8",
402
+ "name": "maxOpenPositions",
403
+ "type": "uint8"
404
+ },
405
+ {
406
+ "indexed": false,
407
+ "internalType": "uint64",
408
+ "name": "minHoldBlocks",
409
+ "type": "uint64"
410
+ }
411
+ ],
412
+ "name": "RiskConfigUpdated",
413
+ "type": "event"
414
+ },
415
+ {
416
+ "anonymous": false,
417
+ "inputs": [
418
+ {
419
+ "indexed": true,
420
+ "internalType": "address",
421
+ "name": "vault",
422
+ "type": "address"
423
+ },
424
+ {
425
+ "indexed": true,
426
+ "internalType": "address",
427
+ "name": "builderRegistry",
428
+ "type": "address"
429
+ },
430
+ {
431
+ "indexed": true,
432
+ "internalType": "address",
433
+ "name": "oracle",
434
+ "type": "address"
435
+ }
436
+ ],
437
+ "name": "RoutesUpdated",
438
+ "type": "event"
439
+ },
440
+ {
441
+ "inputs": [],
442
+ "name": "acceptOwnership",
443
+ "outputs": [],
444
+ "stateMutability": "nonpayable",
445
+ "type": "function"
446
+ },
447
+ {
448
+ "inputs": [
449
+ {
450
+ "internalType": "uint256",
451
+ "name": "",
452
+ "type": "uint256"
453
+ }
454
+ ],
455
+ "name": "allAccounts",
456
+ "outputs": [
457
+ {
458
+ "internalType": "address",
459
+ "name": "",
460
+ "type": "address"
461
+ }
462
+ ],
463
+ "stateMutability": "view",
464
+ "type": "function"
465
+ },
466
+ {
467
+ "inputs": [],
468
+ "name": "allAccountsLength",
469
+ "outputs": [
470
+ {
471
+ "internalType": "uint256",
472
+ "name": "",
473
+ "type": "uint256"
474
+ }
475
+ ],
476
+ "stateMutability": "view",
477
+ "type": "function"
478
+ },
479
+ {
480
+ "inputs": [
481
+ {
482
+ "internalType": "address",
483
+ "name": "",
484
+ "type": "address"
485
+ }
486
+ ],
487
+ "name": "builderQuoteEpoch",
488
+ "outputs": [
489
+ {
490
+ "internalType": "uint256",
491
+ "name": "",
492
+ "type": "uint256"
493
+ }
494
+ ],
495
+ "stateMutability": "view",
496
+ "type": "function"
497
+ },
498
+ {
499
+ "inputs": [],
500
+ "name": "builderRegistry",
501
+ "outputs": [
502
+ {
503
+ "internalType": "contract IBuilderRegistryViews",
504
+ "name": "",
505
+ "type": "address"
506
+ }
507
+ ],
508
+ "stateMutability": "view",
509
+ "type": "function"
510
+ },
511
+ {
512
+ "inputs": [
513
+ {
514
+ "components": [
515
+ {
516
+ "internalType": "address",
517
+ "name": "accountOwner",
518
+ "type": "address"
519
+ },
520
+ {
521
+ "internalType": "address",
522
+ "name": "payer",
523
+ "type": "address"
524
+ },
525
+ {
526
+ "internalType": "address",
527
+ "name": "builder",
528
+ "type": "address"
529
+ },
530
+ {
531
+ "internalType": "address",
532
+ "name": "referrer",
533
+ "type": "address"
534
+ },
535
+ {
536
+ "internalType": "uint96",
537
+ "name": "allocation",
538
+ "type": "uint96"
539
+ },
540
+ {
541
+ "internalType": "uint16",
542
+ "name": "drawdownBps",
543
+ "type": "uint16"
544
+ },
545
+ {
546
+ "internalType": "bool",
547
+ "name": "dailyDrawdownEnabled",
548
+ "type": "bool"
549
+ },
550
+ {
551
+ "internalType": "bool",
552
+ "name": "tradingDaysEnabled",
553
+ "type": "bool"
554
+ },
555
+ {
556
+ "internalType": "enum ChallengePricingLib.ChallengeType",
557
+ "name": "challengeType",
558
+ "type": "uint8"
559
+ },
560
+ {
561
+ "internalType": "uint16",
562
+ "name": "finalTargetProfitBps",
563
+ "type": "uint16"
564
+ },
565
+ {
566
+ "internalType": "uint16",
567
+ "name": "priceMultiplierBps",
568
+ "type": "uint16"
569
+ },
570
+ {
571
+ "internalType": "uint256",
572
+ "name": "quotedChallengeFee",
573
+ "type": "uint256"
574
+ },
575
+ {
576
+ "internalType": "uint256",
577
+ "name": "minBuilderVaultAmount",
578
+ "type": "uint256"
579
+ },
580
+ {
581
+ "internalType": "uint64",
582
+ "name": "deadline",
583
+ "type": "uint64"
584
+ },
585
+ {
586
+ "internalType": "uint256",
587
+ "name": "nonce",
588
+ "type": "uint256"
589
+ },
590
+ {
591
+ "internalType": "uint256",
592
+ "name": "quoteConfigNonce",
593
+ "type": "uint256"
594
+ },
595
+ {
596
+ "internalType": "uint256",
597
+ "name": "builderQuoteEpoch",
598
+ "type": "uint256"
599
+ }
600
+ ],
601
+ "internalType": "struct ChallengePricingLib.ChallengeQuote",
602
+ "name": "quote",
603
+ "type": "tuple"
604
+ },
605
+ {
606
+ "internalType": "uint256",
607
+ "name": "maxChallengeFee",
608
+ "type": "uint256"
609
+ },
610
+ {
611
+ "internalType": "bytes",
612
+ "name": "builderSignature",
613
+ "type": "bytes"
614
+ }
615
+ ],
616
+ "name": "buyChallenge",
617
+ "outputs": [
618
+ {
619
+ "internalType": "address",
620
+ "name": "account",
621
+ "type": "address"
622
+ }
623
+ ],
624
+ "stateMutability": "nonpayable",
625
+ "type": "function"
626
+ },
627
+ {
628
+ "inputs": [
629
+ {
630
+ "components": [
631
+ {
632
+ "internalType": "address",
633
+ "name": "accountOwner",
634
+ "type": "address"
635
+ },
636
+ {
637
+ "internalType": "address",
638
+ "name": "payer",
639
+ "type": "address"
640
+ },
641
+ {
642
+ "internalType": "address",
643
+ "name": "builder",
644
+ "type": "address"
645
+ },
646
+ {
647
+ "internalType": "address",
648
+ "name": "referrer",
649
+ "type": "address"
650
+ },
651
+ {
652
+ "internalType": "uint96",
653
+ "name": "allocation",
654
+ "type": "uint96"
655
+ },
656
+ {
657
+ "internalType": "uint16",
658
+ "name": "drawdownBps",
659
+ "type": "uint16"
660
+ },
661
+ {
662
+ "internalType": "bool",
663
+ "name": "dailyDrawdownEnabled",
664
+ "type": "bool"
665
+ },
666
+ {
667
+ "internalType": "bool",
668
+ "name": "tradingDaysEnabled",
669
+ "type": "bool"
670
+ },
671
+ {
672
+ "internalType": "enum ChallengePricingLib.ChallengeType",
673
+ "name": "challengeType",
674
+ "type": "uint8"
675
+ },
676
+ {
677
+ "internalType": "uint16",
678
+ "name": "finalTargetProfitBps",
679
+ "type": "uint16"
680
+ },
681
+ {
682
+ "internalType": "uint16",
683
+ "name": "priceMultiplierBps",
684
+ "type": "uint16"
685
+ },
686
+ {
687
+ "internalType": "uint256",
688
+ "name": "quotedChallengeFee",
689
+ "type": "uint256"
690
+ },
691
+ {
692
+ "internalType": "uint256",
693
+ "name": "minBuilderVaultAmount",
694
+ "type": "uint256"
695
+ },
696
+ {
697
+ "internalType": "uint64",
698
+ "name": "deadline",
699
+ "type": "uint64"
700
+ },
701
+ {
702
+ "internalType": "uint256",
703
+ "name": "nonce",
704
+ "type": "uint256"
705
+ },
706
+ {
707
+ "internalType": "uint256",
708
+ "name": "quoteConfigNonce",
709
+ "type": "uint256"
710
+ },
711
+ {
712
+ "internalType": "uint256",
713
+ "name": "builderQuoteEpoch",
714
+ "type": "uint256"
715
+ }
716
+ ],
717
+ "internalType": "struct ChallengePricingLib.ChallengeQuote",
718
+ "name": "quote",
719
+ "type": "tuple"
720
+ },
721
+ {
722
+ "internalType": "uint256",
723
+ "name": "maxChallengeFee",
724
+ "type": "uint256"
725
+ },
726
+ {
727
+ "internalType": "bytes",
728
+ "name": "builderSignature",
729
+ "type": "bytes"
730
+ },
731
+ {
732
+ "internalType": "uint256",
733
+ "name": "permitValue",
734
+ "type": "uint256"
735
+ },
736
+ {
737
+ "internalType": "uint256",
738
+ "name": "permitDeadline",
739
+ "type": "uint256"
740
+ },
741
+ {
742
+ "internalType": "uint8",
743
+ "name": "v",
744
+ "type": "uint8"
745
+ },
746
+ {
747
+ "internalType": "bytes32",
748
+ "name": "r",
749
+ "type": "bytes32"
750
+ },
751
+ {
752
+ "internalType": "bytes32",
753
+ "name": "s",
754
+ "type": "bytes32"
755
+ }
756
+ ],
757
+ "name": "buyChallengeWithPermit",
758
+ "outputs": [
759
+ {
760
+ "internalType": "address",
761
+ "name": "account",
762
+ "type": "address"
763
+ }
764
+ ],
765
+ "stateMutability": "nonpayable",
766
+ "type": "function"
767
+ },
768
+ {
769
+ "inputs": [
770
+ {
771
+ "internalType": "uint256",
772
+ "name": "nonce",
773
+ "type": "uint256"
774
+ }
775
+ ],
776
+ "name": "cancelQuoteNonce",
777
+ "outputs": [],
778
+ "stateMutability": "nonpayable",
779
+ "type": "function"
780
+ },
781
+ {
782
+ "inputs": [
783
+ {
784
+ "internalType": "uint256[]",
785
+ "name": "nonces",
786
+ "type": "uint256[]"
787
+ }
788
+ ],
789
+ "name": "cancelQuoteNonces",
790
+ "outputs": [],
791
+ "stateMutability": "nonpayable",
792
+ "type": "function"
793
+ },
794
+ {
795
+ "inputs": [
796
+ {
797
+ "components": [
798
+ {
799
+ "internalType": "address",
800
+ "name": "accountOwner",
801
+ "type": "address"
802
+ },
803
+ {
804
+ "internalType": "address",
805
+ "name": "payer",
806
+ "type": "address"
807
+ },
808
+ {
809
+ "internalType": "address",
810
+ "name": "builder",
811
+ "type": "address"
812
+ },
813
+ {
814
+ "internalType": "address",
815
+ "name": "referrer",
816
+ "type": "address"
817
+ },
818
+ {
819
+ "internalType": "uint96",
820
+ "name": "allocation",
821
+ "type": "uint96"
822
+ },
823
+ {
824
+ "internalType": "uint16",
825
+ "name": "drawdownBps",
826
+ "type": "uint16"
827
+ },
828
+ {
829
+ "internalType": "bool",
830
+ "name": "dailyDrawdownEnabled",
831
+ "type": "bool"
832
+ },
833
+ {
834
+ "internalType": "bool",
835
+ "name": "tradingDaysEnabled",
836
+ "type": "bool"
837
+ },
838
+ {
839
+ "internalType": "enum ChallengePricingLib.ChallengeType",
840
+ "name": "challengeType",
841
+ "type": "uint8"
842
+ },
843
+ {
844
+ "internalType": "uint16",
845
+ "name": "finalTargetProfitBps",
846
+ "type": "uint16"
847
+ },
848
+ {
849
+ "internalType": "uint16",
850
+ "name": "priceMultiplierBps",
851
+ "type": "uint16"
852
+ },
853
+ {
854
+ "internalType": "uint256",
855
+ "name": "quotedChallengeFee",
856
+ "type": "uint256"
857
+ },
858
+ {
859
+ "internalType": "uint256",
860
+ "name": "minBuilderVaultAmount",
861
+ "type": "uint256"
862
+ },
863
+ {
864
+ "internalType": "uint64",
865
+ "name": "deadline",
866
+ "type": "uint64"
867
+ },
868
+ {
869
+ "internalType": "uint256",
870
+ "name": "nonce",
871
+ "type": "uint256"
872
+ },
873
+ {
874
+ "internalType": "uint256",
875
+ "name": "quoteConfigNonce",
876
+ "type": "uint256"
877
+ },
878
+ {
879
+ "internalType": "uint256",
880
+ "name": "builderQuoteEpoch",
881
+ "type": "uint256"
882
+ }
883
+ ],
884
+ "internalType": "struct ChallengePricingLib.ChallengeQuote",
885
+ "name": "quote",
886
+ "type": "tuple"
887
+ }
888
+ ],
889
+ "name": "challengeQuoteDigest",
890
+ "outputs": [
891
+ {
892
+ "internalType": "bytes32",
893
+ "name": "",
894
+ "type": "bytes32"
895
+ }
896
+ ],
897
+ "stateMutability": "view",
898
+ "type": "function"
899
+ },
900
+ {
901
+ "inputs": [
902
+ {
903
+ "internalType": "address",
904
+ "name": "account",
905
+ "type": "address"
906
+ }
907
+ ],
908
+ "name": "challengeTerms",
909
+ "outputs": [
910
+ {
911
+ "components": [
912
+ {
913
+ "internalType": "enum ChallengePricingLib.ChallengeType",
914
+ "name": "challengeType",
915
+ "type": "uint8"
916
+ },
917
+ {
918
+ "internalType": "address",
919
+ "name": "trader",
920
+ "type": "address"
921
+ },
922
+ {
923
+ "internalType": "address",
924
+ "name": "builder",
925
+ "type": "address"
926
+ },
927
+ {
928
+ "internalType": "uint8",
929
+ "name": "totalSteps",
930
+ "type": "uint8"
931
+ },
932
+ {
933
+ "internalType": "uint96",
934
+ "name": "allocation6",
935
+ "type": "uint96"
936
+ },
937
+ {
938
+ "internalType": "uint16",
939
+ "name": "drawdownBps",
940
+ "type": "uint16"
941
+ },
942
+ {
943
+ "internalType": "bool",
944
+ "name": "dailyDrawdownEnabled",
945
+ "type": "bool"
946
+ },
947
+ {
948
+ "internalType": "bool",
949
+ "name": "tradingDaysEnabled",
950
+ "type": "bool"
951
+ },
952
+ {
953
+ "internalType": "uint8",
954
+ "name": "profitableDaysRequired",
955
+ "type": "uint8"
956
+ },
957
+ {
958
+ "internalType": "uint16",
959
+ "name": "stepTargetProfitBps",
960
+ "type": "uint16"
961
+ },
962
+ {
963
+ "internalType": "uint16",
964
+ "name": "finalTargetProfitBps",
965
+ "type": "uint16"
966
+ },
967
+ {
968
+ "internalType": "uint256",
969
+ "name": "challengeFee",
970
+ "type": "uint256"
971
+ },
972
+ {
973
+ "internalType": "uint256",
974
+ "name": "builderAmount",
975
+ "type": "uint256"
976
+ }
977
+ ],
978
+ "internalType": "struct ChallengeFactory.ChallengeTerms",
979
+ "name": "",
980
+ "type": "tuple"
981
+ }
982
+ ],
983
+ "stateMutability": "view",
984
+ "type": "function"
985
+ },
986
+ {
987
+ "inputs": [],
988
+ "name": "eip712Domain",
989
+ "outputs": [
990
+ {
991
+ "internalType": "bytes1",
992
+ "name": "fields",
993
+ "type": "bytes1"
994
+ },
995
+ {
996
+ "internalType": "string",
997
+ "name": "name",
998
+ "type": "string"
999
+ },
1000
+ {
1001
+ "internalType": "string",
1002
+ "name": "version",
1003
+ "type": "string"
1004
+ },
1005
+ {
1006
+ "internalType": "uint256",
1007
+ "name": "chainId",
1008
+ "type": "uint256"
1009
+ },
1010
+ {
1011
+ "internalType": "address",
1012
+ "name": "verifyingContract",
1013
+ "type": "address"
1014
+ },
1015
+ {
1016
+ "internalType": "bytes32",
1017
+ "name": "salt",
1018
+ "type": "bytes32"
1019
+ },
1020
+ {
1021
+ "internalType": "uint256[]",
1022
+ "name": "extensions",
1023
+ "type": "uint256[]"
1024
+ }
1025
+ ],
1026
+ "stateMutability": "view",
1027
+ "type": "function"
1028
+ },
1029
+ {
1030
+ "inputs": [
1031
+ {
1032
+ "components": [
1033
+ {
1034
+ "internalType": "address",
1035
+ "name": "accountOwner",
1036
+ "type": "address"
1037
+ },
1038
+ {
1039
+ "internalType": "address",
1040
+ "name": "payer",
1041
+ "type": "address"
1042
+ },
1043
+ {
1044
+ "internalType": "address",
1045
+ "name": "builder",
1046
+ "type": "address"
1047
+ },
1048
+ {
1049
+ "internalType": "address",
1050
+ "name": "referrer",
1051
+ "type": "address"
1052
+ },
1053
+ {
1054
+ "internalType": "uint96",
1055
+ "name": "allocation",
1056
+ "type": "uint96"
1057
+ },
1058
+ {
1059
+ "internalType": "uint16",
1060
+ "name": "drawdownBps",
1061
+ "type": "uint16"
1062
+ },
1063
+ {
1064
+ "internalType": "bool",
1065
+ "name": "dailyDrawdownEnabled",
1066
+ "type": "bool"
1067
+ },
1068
+ {
1069
+ "internalType": "bool",
1070
+ "name": "tradingDaysEnabled",
1071
+ "type": "bool"
1072
+ },
1073
+ {
1074
+ "internalType": "enum ChallengePricingLib.ChallengeType",
1075
+ "name": "challengeType",
1076
+ "type": "uint8"
1077
+ },
1078
+ {
1079
+ "internalType": "uint16",
1080
+ "name": "finalTargetProfitBps",
1081
+ "type": "uint16"
1082
+ },
1083
+ {
1084
+ "internalType": "uint16",
1085
+ "name": "priceMultiplierBps",
1086
+ "type": "uint16"
1087
+ },
1088
+ {
1089
+ "internalType": "uint256",
1090
+ "name": "quotedChallengeFee",
1091
+ "type": "uint256"
1092
+ },
1093
+ {
1094
+ "internalType": "uint256",
1095
+ "name": "minBuilderVaultAmount",
1096
+ "type": "uint256"
1097
+ },
1098
+ {
1099
+ "internalType": "uint64",
1100
+ "name": "deadline",
1101
+ "type": "uint64"
1102
+ },
1103
+ {
1104
+ "internalType": "uint256",
1105
+ "name": "nonce",
1106
+ "type": "uint256"
1107
+ },
1108
+ {
1109
+ "internalType": "uint256",
1110
+ "name": "quoteConfigNonce",
1111
+ "type": "uint256"
1112
+ },
1113
+ {
1114
+ "internalType": "uint256",
1115
+ "name": "builderQuoteEpoch",
1116
+ "type": "uint256"
1117
+ }
1118
+ ],
1119
+ "internalType": "struct ChallengePricingLib.ChallengeQuote",
1120
+ "name": "quote",
1121
+ "type": "tuple"
1122
+ }
1123
+ ],
1124
+ "name": "hashChallengeQuote",
1125
+ "outputs": [
1126
+ {
1127
+ "internalType": "bytes32",
1128
+ "name": "",
1129
+ "type": "bytes32"
1130
+ }
1131
+ ],
1132
+ "stateMutability": "pure",
1133
+ "type": "function"
1134
+ },
1135
+ {
1136
+ "inputs": [],
1137
+ "name": "implementation",
1138
+ "outputs": [
1139
+ {
1140
+ "internalType": "address",
1141
+ "name": "",
1142
+ "type": "address"
1143
+ }
1144
+ ],
1145
+ "stateMutability": "view",
1146
+ "type": "function"
1147
+ },
1148
+ {
1149
+ "inputs": [],
1150
+ "name": "incrementBuilderQuoteEpoch",
1151
+ "outputs": [],
1152
+ "stateMutability": "nonpayable",
1153
+ "type": "function"
1154
+ },
1155
+ {
1156
+ "inputs": [
1157
+ {
1158
+ "internalType": "address",
1159
+ "name": "forwarder",
1160
+ "type": "address"
1161
+ }
1162
+ ],
1163
+ "name": "isTrustedForwarder",
1164
+ "outputs": [
1165
+ {
1166
+ "internalType": "bool",
1167
+ "name": "",
1168
+ "type": "bool"
1169
+ }
1170
+ ],
1171
+ "stateMutability": "view",
1172
+ "type": "function"
1173
+ },
1174
+ {
1175
+ "inputs": [],
1176
+ "name": "maxOpenPositions",
1177
+ "outputs": [
1178
+ {
1179
+ "internalType": "uint8",
1180
+ "name": "",
1181
+ "type": "uint8"
1182
+ }
1183
+ ],
1184
+ "stateMutability": "view",
1185
+ "type": "function"
1186
+ },
1187
+ {
1188
+ "inputs": [],
1189
+ "name": "minHoldBlocks",
1190
+ "outputs": [
1191
+ {
1192
+ "internalType": "uint64",
1193
+ "name": "",
1194
+ "type": "uint64"
1195
+ }
1196
+ ],
1197
+ "stateMutability": "view",
1198
+ "type": "function"
1199
+ },
1200
+ {
1201
+ "inputs": [],
1202
+ "name": "oracle",
1203
+ "outputs": [
1204
+ {
1205
+ "internalType": "contract IChallengePriceOracle",
1206
+ "name": "",
1207
+ "type": "address"
1208
+ }
1209
+ ],
1210
+ "stateMutability": "view",
1211
+ "type": "function"
1212
+ },
1213
+ {
1214
+ "inputs": [],
1215
+ "name": "owner",
1216
+ "outputs": [
1217
+ {
1218
+ "internalType": "address",
1219
+ "name": "",
1220
+ "type": "address"
1221
+ }
1222
+ ],
1223
+ "stateMutability": "view",
1224
+ "type": "function"
1225
+ },
1226
+ {
1227
+ "inputs": [],
1228
+ "name": "pendingOwner",
1229
+ "outputs": [
1230
+ {
1231
+ "internalType": "address",
1232
+ "name": "",
1233
+ "type": "address"
1234
+ }
1235
+ ],
1236
+ "stateMutability": "view",
1237
+ "type": "function"
1238
+ },
1239
+ {
1240
+ "inputs": [
1241
+ {
1242
+ "internalType": "address",
1243
+ "name": "trader",
1244
+ "type": "address"
1245
+ },
1246
+ {
1247
+ "internalType": "address",
1248
+ "name": "builder",
1249
+ "type": "address"
1250
+ }
1251
+ ],
1252
+ "name": "predictChallengeAccount",
1253
+ "outputs": [
1254
+ {
1255
+ "internalType": "address",
1256
+ "name": "",
1257
+ "type": "address"
1258
+ }
1259
+ ],
1260
+ "stateMutability": "view",
1261
+ "type": "function"
1262
+ },
1263
+ {
1264
+ "inputs": [
1265
+ {
1266
+ "components": [
1267
+ {
1268
+ "internalType": "address",
1269
+ "name": "accountOwner",
1270
+ "type": "address"
1271
+ },
1272
+ {
1273
+ "internalType": "address",
1274
+ "name": "payer",
1275
+ "type": "address"
1276
+ },
1277
+ {
1278
+ "internalType": "address",
1279
+ "name": "builder",
1280
+ "type": "address"
1281
+ },
1282
+ {
1283
+ "internalType": "address",
1284
+ "name": "referrer",
1285
+ "type": "address"
1286
+ },
1287
+ {
1288
+ "internalType": "uint96",
1289
+ "name": "allocation",
1290
+ "type": "uint96"
1291
+ },
1292
+ {
1293
+ "internalType": "uint16",
1294
+ "name": "drawdownBps",
1295
+ "type": "uint16"
1296
+ },
1297
+ {
1298
+ "internalType": "bool",
1299
+ "name": "dailyDrawdownEnabled",
1300
+ "type": "bool"
1301
+ },
1302
+ {
1303
+ "internalType": "bool",
1304
+ "name": "tradingDaysEnabled",
1305
+ "type": "bool"
1306
+ },
1307
+ {
1308
+ "internalType": "enum ChallengePricingLib.ChallengeType",
1309
+ "name": "challengeType",
1310
+ "type": "uint8"
1311
+ },
1312
+ {
1313
+ "internalType": "uint16",
1314
+ "name": "finalTargetProfitBps",
1315
+ "type": "uint16"
1316
+ },
1317
+ {
1318
+ "internalType": "uint16",
1319
+ "name": "priceMultiplierBps",
1320
+ "type": "uint16"
1321
+ },
1322
+ {
1323
+ "internalType": "uint256",
1324
+ "name": "quotedChallengeFee",
1325
+ "type": "uint256"
1326
+ },
1327
+ {
1328
+ "internalType": "uint256",
1329
+ "name": "minBuilderVaultAmount",
1330
+ "type": "uint256"
1331
+ },
1332
+ {
1333
+ "internalType": "uint64",
1334
+ "name": "deadline",
1335
+ "type": "uint64"
1336
+ },
1337
+ {
1338
+ "internalType": "uint256",
1339
+ "name": "nonce",
1340
+ "type": "uint256"
1341
+ },
1342
+ {
1343
+ "internalType": "uint256",
1344
+ "name": "quoteConfigNonce",
1345
+ "type": "uint256"
1346
+ },
1347
+ {
1348
+ "internalType": "uint256",
1349
+ "name": "builderQuoteEpoch",
1350
+ "type": "uint256"
1351
+ }
1352
+ ],
1353
+ "internalType": "struct ChallengePricingLib.ChallengeQuote",
1354
+ "name": "quote",
1355
+ "type": "tuple"
1356
+ }
1357
+ ],
1358
+ "name": "previewQuotedChallenge",
1359
+ "outputs": [
1360
+ {
1361
+ "components": [
1362
+ {
1363
+ "internalType": "uint256",
1364
+ "name": "challengeFee",
1365
+ "type": "uint256"
1366
+ },
1367
+ {
1368
+ "internalType": "uint256",
1369
+ "name": "builderAmount",
1370
+ "type": "uint256"
1371
+ },
1372
+ {
1373
+ "internalType": "uint256",
1374
+ "name": "protocolFee",
1375
+ "type": "uint256"
1376
+ },
1377
+ {
1378
+ "internalType": "uint256",
1379
+ "name": "referralFee",
1380
+ "type": "uint256"
1381
+ },
1382
+ {
1383
+ "internalType": "uint96",
1384
+ "name": "maxNotional",
1385
+ "type": "uint96"
1386
+ }
1387
+ ],
1388
+ "internalType": "struct ChallengePricingLib.FeeBreakdown",
1389
+ "name": "fees",
1390
+ "type": "tuple"
1391
+ }
1392
+ ],
1393
+ "stateMutability": "view",
1394
+ "type": "function"
1395
+ },
1396
+ {
1397
+ "inputs": [],
1398
+ "name": "pricingConfig",
1399
+ "outputs": [
1400
+ {
1401
+ "components": [
1402
+ {
1403
+ "internalType": "uint16",
1404
+ "name": "challengeFeeBps",
1405
+ "type": "uint16"
1406
+ },
1407
+ {
1408
+ "internalType": "uint16",
1409
+ "name": "protocolFeeBps",
1410
+ "type": "uint16"
1411
+ },
1412
+ {
1413
+ "internalType": "uint16",
1414
+ "name": "referralFeeBps",
1415
+ "type": "uint16"
1416
+ },
1417
+ {
1418
+ "internalType": "uint16",
1419
+ "name": "referenceDrawdownBps",
1420
+ "type": "uint16"
1421
+ },
1422
+ {
1423
+ "internalType": "uint16",
1424
+ "name": "challengeFeeMultiplierBps",
1425
+ "type": "uint16"
1426
+ },
1427
+ {
1428
+ "internalType": "uint16",
1429
+ "name": "noDailyDrawdownSurchargeBps",
1430
+ "type": "uint16"
1431
+ },
1432
+ {
1433
+ "internalType": "uint16",
1434
+ "name": "noTradingDaysSurchargeBps",
1435
+ "type": "uint16"
1436
+ },
1437
+ {
1438
+ "internalType": "uint16",
1439
+ "name": "minBuilderPriceMultiplierBps",
1440
+ "type": "uint16"
1441
+ },
1442
+ {
1443
+ "internalType": "uint16",
1444
+ "name": "maxBuilderPriceMultiplierBps",
1445
+ "type": "uint16"
1446
+ },
1447
+ {
1448
+ "internalType": "uint16",
1449
+ "name": "twoStepDiscountBps",
1450
+ "type": "uint16"
1451
+ },
1452
+ {
1453
+ "internalType": "uint32",
1454
+ "name": "maxLeverageBps",
1455
+ "type": "uint32"
1456
+ },
1457
+ {
1458
+ "internalType": "uint96",
1459
+ "name": "minAllocation",
1460
+ "type": "uint96"
1461
+ },
1462
+ {
1463
+ "internalType": "uint96",
1464
+ "name": "maxAllocation",
1465
+ "type": "uint96"
1466
+ },
1467
+ {
1468
+ "internalType": "uint16",
1469
+ "name": "minDrawdownBps",
1470
+ "type": "uint16"
1471
+ },
1472
+ {
1473
+ "internalType": "uint16",
1474
+ "name": "maxDrawdownBps",
1475
+ "type": "uint16"
1476
+ },
1477
+ {
1478
+ "internalType": "uint8",
1479
+ "name": "oneStepProfitableDaysRequired",
1480
+ "type": "uint8"
1481
+ },
1482
+ {
1483
+ "internalType": "uint8",
1484
+ "name": "twoStepProfitableDaysRequired",
1485
+ "type": "uint8"
1486
+ }
1487
+ ],
1488
+ "internalType": "struct ChallengePricingLib.PricingConfig",
1489
+ "name": "",
1490
+ "type": "tuple"
1491
+ }
1492
+ ],
1493
+ "stateMutability": "view",
1494
+ "type": "function"
1495
+ },
1496
+ {
1497
+ "inputs": [],
1498
+ "name": "quoteConfigNonce",
1499
+ "outputs": [
1500
+ {
1501
+ "internalType": "uint256",
1502
+ "name": "",
1503
+ "type": "uint256"
1504
+ }
1505
+ ],
1506
+ "stateMutability": "view",
1507
+ "type": "function"
1508
+ },
1509
+ {
1510
+ "inputs": [],
1511
+ "name": "renounceOwnership",
1512
+ "outputs": [],
1513
+ "stateMutability": "nonpayable",
1514
+ "type": "function"
1515
+ },
1516
+ {
1517
+ "inputs": [
1518
+ {
1519
+ "components": [
1520
+ {
1521
+ "internalType": "uint16",
1522
+ "name": "challengeFeeBps",
1523
+ "type": "uint16"
1524
+ },
1525
+ {
1526
+ "internalType": "uint16",
1527
+ "name": "protocolFeeBps",
1528
+ "type": "uint16"
1529
+ },
1530
+ {
1531
+ "internalType": "uint16",
1532
+ "name": "referralFeeBps",
1533
+ "type": "uint16"
1534
+ },
1535
+ {
1536
+ "internalType": "uint16",
1537
+ "name": "referenceDrawdownBps",
1538
+ "type": "uint16"
1539
+ },
1540
+ {
1541
+ "internalType": "uint16",
1542
+ "name": "challengeFeeMultiplierBps",
1543
+ "type": "uint16"
1544
+ },
1545
+ {
1546
+ "internalType": "uint16",
1547
+ "name": "noDailyDrawdownSurchargeBps",
1548
+ "type": "uint16"
1549
+ },
1550
+ {
1551
+ "internalType": "uint16",
1552
+ "name": "noTradingDaysSurchargeBps",
1553
+ "type": "uint16"
1554
+ },
1555
+ {
1556
+ "internalType": "uint16",
1557
+ "name": "minBuilderPriceMultiplierBps",
1558
+ "type": "uint16"
1559
+ },
1560
+ {
1561
+ "internalType": "uint16",
1562
+ "name": "maxBuilderPriceMultiplierBps",
1563
+ "type": "uint16"
1564
+ },
1565
+ {
1566
+ "internalType": "uint16",
1567
+ "name": "twoStepDiscountBps",
1568
+ "type": "uint16"
1569
+ },
1570
+ {
1571
+ "internalType": "uint32",
1572
+ "name": "maxLeverageBps",
1573
+ "type": "uint32"
1574
+ },
1575
+ {
1576
+ "internalType": "uint96",
1577
+ "name": "minAllocation",
1578
+ "type": "uint96"
1579
+ },
1580
+ {
1581
+ "internalType": "uint96",
1582
+ "name": "maxAllocation",
1583
+ "type": "uint96"
1584
+ },
1585
+ {
1586
+ "internalType": "uint16",
1587
+ "name": "minDrawdownBps",
1588
+ "type": "uint16"
1589
+ },
1590
+ {
1591
+ "internalType": "uint16",
1592
+ "name": "maxDrawdownBps",
1593
+ "type": "uint16"
1594
+ },
1595
+ {
1596
+ "internalType": "uint8",
1597
+ "name": "oneStepProfitableDaysRequired",
1598
+ "type": "uint8"
1599
+ },
1600
+ {
1601
+ "internalType": "uint8",
1602
+ "name": "twoStepProfitableDaysRequired",
1603
+ "type": "uint8"
1604
+ }
1605
+ ],
1606
+ "internalType": "struct ChallengePricingLib.PricingConfig",
1607
+ "name": "config",
1608
+ "type": "tuple"
1609
+ }
1610
+ ],
1611
+ "name": "setPricingConfig",
1612
+ "outputs": [],
1613
+ "stateMutability": "nonpayable",
1614
+ "type": "function"
1615
+ },
1616
+ {
1617
+ "inputs": [
1618
+ {
1619
+ "internalType": "uint8",
1620
+ "name": "_maxOpenPositions",
1621
+ "type": "uint8"
1622
+ },
1623
+ {
1624
+ "internalType": "uint64",
1625
+ "name": "_minHoldBlocks",
1626
+ "type": "uint64"
1627
+ }
1628
+ ],
1629
+ "name": "setRiskConfig",
1630
+ "outputs": [],
1631
+ "stateMutability": "nonpayable",
1632
+ "type": "function"
1633
+ },
1634
+ {
1635
+ "inputs": [
1636
+ {
1637
+ "internalType": "contract IChallengeVault",
1638
+ "name": "_vault",
1639
+ "type": "address"
1640
+ },
1641
+ {
1642
+ "internalType": "contract IBuilderRegistryViews",
1643
+ "name": "_builderRegistry",
1644
+ "type": "address"
1645
+ },
1646
+ {
1647
+ "internalType": "contract IChallengePriceOracle",
1648
+ "name": "_oracle",
1649
+ "type": "address"
1650
+ }
1651
+ ],
1652
+ "name": "setRoutes",
1653
+ "outputs": [],
1654
+ "stateMutability": "nonpayable",
1655
+ "type": "function"
1656
+ },
1657
+ {
1658
+ "inputs": [
1659
+ {
1660
+ "internalType": "address",
1661
+ "name": "",
1662
+ "type": "address"
1663
+ }
1664
+ ],
1665
+ "name": "traderNonce",
1666
+ "outputs": [
1667
+ {
1668
+ "internalType": "uint256",
1669
+ "name": "",
1670
+ "type": "uint256"
1671
+ }
1672
+ ],
1673
+ "stateMutability": "view",
1674
+ "type": "function"
1675
+ },
1676
+ {
1677
+ "inputs": [
1678
+ {
1679
+ "internalType": "address",
1680
+ "name": "newOwner",
1681
+ "type": "address"
1682
+ }
1683
+ ],
1684
+ "name": "transferOwnership",
1685
+ "outputs": [],
1686
+ "stateMutability": "nonpayable",
1687
+ "type": "function"
1688
+ },
1689
+ {
1690
+ "inputs": [
1691
+ {
1692
+ "internalType": "address",
1693
+ "name": "",
1694
+ "type": "address"
1695
+ },
1696
+ {
1697
+ "internalType": "uint256",
1698
+ "name": "",
1699
+ "type": "uint256"
1700
+ }
1701
+ ],
1702
+ "name": "usedQuoteNonces",
1703
+ "outputs": [
1704
+ {
1705
+ "internalType": "bool",
1706
+ "name": "",
1707
+ "type": "bool"
1708
+ }
1709
+ ],
1710
+ "stateMutability": "view",
1711
+ "type": "function"
1712
+ },
1713
+ {
1714
+ "inputs": [],
1715
+ "name": "vault",
1716
+ "outputs": [
1717
+ {
1718
+ "internalType": "contract IChallengeVault",
1719
+ "name": "",
1720
+ "type": "address"
1721
+ }
1722
+ ],
1723
+ "stateMutability": "view",
1724
+ "type": "function"
1725
+ }
1726
+ ];
1727
+ //# sourceMappingURL=challengeFactory.js.map