@kehtus/proportion-sdk 0.1.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 (56) hide show
  1. package/SDK_IMPROVEMENT_PLAN.md +197 -0
  2. package/arch.md +448 -0
  3. package/dist/__tests__/account.test.d.ts +1 -0
  4. package/dist/__tests__/account.test.js +36 -0
  5. package/dist/__tests__/indexer.test.d.ts +1 -0
  6. package/dist/__tests__/indexer.test.js +230 -0
  7. package/dist/__tests__/lifecycle.test.d.ts +1 -0
  8. package/dist/__tests__/lifecycle.test.js +186 -0
  9. package/dist/__tests__/reads.test.d.ts +1 -0
  10. package/dist/__tests__/reads.test.js +185 -0
  11. package/dist/__tests__/utils.test.d.ts +1 -0
  12. package/dist/__tests__/utils.test.js +185 -0
  13. package/dist/abi/factory.d.ts +308 -0
  14. package/dist/abi/factory.js +399 -0
  15. package/dist/abi/fundedAccount.d.ts +1074 -0
  16. package/dist/abi/fundedAccount.js +1373 -0
  17. package/dist/abi/mainVault.d.ts +1448 -0
  18. package/dist/abi/mainVault.js +1865 -0
  19. package/dist/account.d.ts +55 -0
  20. package/dist/account.js +290 -0
  21. package/dist/constants.d.ts +48 -0
  22. package/dist/constants.js +42 -0
  23. package/dist/factory.d.ts +23 -0
  24. package/dist/factory.js +139 -0
  25. package/dist/index.d.ts +11 -0
  26. package/dist/index.js +14 -0
  27. package/dist/indexer.d.ts +57 -0
  28. package/dist/indexer.js +540 -0
  29. package/dist/sdk.d.ts +22 -0
  30. package/dist/sdk.js +89 -0
  31. package/dist/types.d.ts +384 -0
  32. package/dist/types.js +11 -0
  33. package/dist/utils.d.ts +21 -0
  34. package/dist/utils.js +89 -0
  35. package/dist/vault.d.ts +60 -0
  36. package/dist/vault.js +429 -0
  37. package/package.json +32 -0
  38. package/src/__tests__/account.test.ts +40 -0
  39. package/src/__tests__/indexer.test.ts +255 -0
  40. package/src/__tests__/lifecycle.test.ts +231 -0
  41. package/src/__tests__/reads.test.ts +209 -0
  42. package/src/__tests__/utils.test.ts +245 -0
  43. package/src/abi/factory.ts +399 -0
  44. package/src/abi/fundedAccount.ts +1373 -0
  45. package/src/abi/mainVault.ts +1865 -0
  46. package/src/account.ts +339 -0
  47. package/src/constants.ts +50 -0
  48. package/src/factory.ts +157 -0
  49. package/src/index.ts +16 -0
  50. package/src/indexer.ts +636 -0
  51. package/src/sdk.ts +93 -0
  52. package/src/types.ts +426 -0
  53. package/src/utils.ts +143 -0
  54. package/src/vault.ts +479 -0
  55. package/tsconfig.json +19 -0
  56. package/vitest.config.ts +8 -0
@@ -0,0 +1,1865 @@
1
+ export const mainVaultAbi = [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_usdc",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_factory",
12
+ "type": "address"
13
+ }
14
+ ],
15
+ "stateMutability": "nonpayable",
16
+ "type": "constructor"
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "ReentrancyGuardReentrantCall",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [
25
+ {
26
+ "internalType": "address",
27
+ "name": "token",
28
+ "type": "address"
29
+ }
30
+ ],
31
+ "name": "SafeERC20FailedOperation",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "anonymous": false,
36
+ "inputs": [
37
+ {
38
+ "indexed": true,
39
+ "internalType": "address",
40
+ "name": "trader",
41
+ "type": "address"
42
+ },
43
+ {
44
+ "indexed": true,
45
+ "internalType": "address",
46
+ "name": "account",
47
+ "type": "address"
48
+ },
49
+ {
50
+ "indexed": false,
51
+ "internalType": "uint256",
52
+ "name": "amount",
53
+ "type": "uint256"
54
+ }
55
+ ],
56
+ "name": "AccountClosed",
57
+ "type": "event"
58
+ },
59
+ {
60
+ "anonymous": false,
61
+ "inputs": [
62
+ {
63
+ "indexed": true,
64
+ "internalType": "address",
65
+ "name": "builder",
66
+ "type": "address"
67
+ }
68
+ ],
69
+ "name": "BuilderDeactivated",
70
+ "type": "event"
71
+ },
72
+ {
73
+ "anonymous": false,
74
+ "inputs": [
75
+ {
76
+ "indexed": false,
77
+ "internalType": "uint256",
78
+ "name": "oldValue",
79
+ "type": "uint256"
80
+ },
81
+ {
82
+ "indexed": false,
83
+ "internalType": "uint256",
84
+ "name": "newValue",
85
+ "type": "uint256"
86
+ }
87
+ ],
88
+ "name": "BuilderLeverageUpdated",
89
+ "type": "event"
90
+ },
91
+ {
92
+ "anonymous": false,
93
+ "inputs": [
94
+ {
95
+ "indexed": true,
96
+ "internalType": "address",
97
+ "name": "builder",
98
+ "type": "address"
99
+ }
100
+ ],
101
+ "name": "BuilderRegistered",
102
+ "type": "event"
103
+ },
104
+ {
105
+ "anonymous": false,
106
+ "inputs": [
107
+ {
108
+ "indexed": false,
109
+ "internalType": "uint16",
110
+ "name": "oldValue",
111
+ "type": "uint16"
112
+ },
113
+ {
114
+ "indexed": false,
115
+ "internalType": "uint16",
116
+ "name": "newValue",
117
+ "type": "uint16"
118
+ }
119
+ ],
120
+ "name": "DailyDdDiscountBpsUpdated",
121
+ "type": "event"
122
+ },
123
+ {
124
+ "anonymous": false,
125
+ "inputs": [
126
+ {
127
+ "indexed": true,
128
+ "internalType": "address",
129
+ "name": "builder",
130
+ "type": "address"
131
+ },
132
+ {
133
+ "indexed": true,
134
+ "internalType": "address",
135
+ "name": "delegate",
136
+ "type": "address"
137
+ }
138
+ ],
139
+ "name": "DelegateRemoved",
140
+ "type": "event"
141
+ },
142
+ {
143
+ "anonymous": false,
144
+ "inputs": [
145
+ {
146
+ "indexed": true,
147
+ "internalType": "address",
148
+ "name": "builder",
149
+ "type": "address"
150
+ },
151
+ {
152
+ "indexed": true,
153
+ "internalType": "address",
154
+ "name": "delegate",
155
+ "type": "address"
156
+ }
157
+ ],
158
+ "name": "DelegateSet",
159
+ "type": "event"
160
+ },
161
+ {
162
+ "anonymous": false,
163
+ "inputs": [
164
+ {
165
+ "indexed": true,
166
+ "internalType": "address",
167
+ "name": "lp",
168
+ "type": "address"
169
+ },
170
+ {
171
+ "indexed": false,
172
+ "internalType": "uint256",
173
+ "name": "amount",
174
+ "type": "uint256"
175
+ },
176
+ {
177
+ "indexed": false,
178
+ "internalType": "uint256",
179
+ "name": "sharesReceived",
180
+ "type": "uint256"
181
+ }
182
+ ],
183
+ "name": "Deposited",
184
+ "type": "event"
185
+ },
186
+ {
187
+ "anonymous": false,
188
+ "inputs": [
189
+ {
190
+ "indexed": true,
191
+ "internalType": "address",
192
+ "name": "oldFactory",
193
+ "type": "address"
194
+ },
195
+ {
196
+ "indexed": true,
197
+ "internalType": "address",
198
+ "name": "newFactory",
199
+ "type": "address"
200
+ }
201
+ ],
202
+ "name": "FactoryUpdated",
203
+ "type": "event"
204
+ },
205
+ {
206
+ "anonymous": false,
207
+ "inputs": [
208
+ {
209
+ "indexed": false,
210
+ "internalType": "uint16",
211
+ "name": "oldMultiplier",
212
+ "type": "uint16"
213
+ },
214
+ {
215
+ "indexed": false,
216
+ "internalType": "uint16",
217
+ "name": "newMultiplier",
218
+ "type": "uint16"
219
+ }
220
+ ],
221
+ "name": "FeeMultiplierUpdated",
222
+ "type": "event"
223
+ },
224
+ {
225
+ "anonymous": false,
226
+ "inputs": [
227
+ {
228
+ "indexed": true,
229
+ "internalType": "address",
230
+ "name": "trader",
231
+ "type": "address"
232
+ },
233
+ {
234
+ "indexed": true,
235
+ "internalType": "address",
236
+ "name": "builder",
237
+ "type": "address"
238
+ },
239
+ {
240
+ "indexed": true,
241
+ "internalType": "address",
242
+ "name": "account",
243
+ "type": "address"
244
+ },
245
+ {
246
+ "indexed": false,
247
+ "internalType": "uint96",
248
+ "name": "accountSize",
249
+ "type": "uint96"
250
+ },
251
+ {
252
+ "indexed": false,
253
+ "internalType": "uint16",
254
+ "name": "drawdownBps",
255
+ "type": "uint16"
256
+ },
257
+ {
258
+ "indexed": false,
259
+ "internalType": "bool",
260
+ "name": "dailyDrawdownEnabled",
261
+ "type": "bool"
262
+ },
263
+ {
264
+ "indexed": false,
265
+ "internalType": "uint256",
266
+ "name": "activationFee",
267
+ "type": "uint256"
268
+ }
269
+ ],
270
+ "name": "FundedActivated",
271
+ "type": "event"
272
+ },
273
+ {
274
+ "anonymous": false,
275
+ "inputs": [
276
+ {
277
+ "indexed": false,
278
+ "internalType": "uint256",
279
+ "name": "oldAmount",
280
+ "type": "uint256"
281
+ },
282
+ {
283
+ "indexed": false,
284
+ "internalType": "uint256",
285
+ "name": "newAmount",
286
+ "type": "uint256"
287
+ }
288
+ ],
289
+ "name": "HypeForSpotUpdated",
290
+ "type": "event"
291
+ },
292
+ {
293
+ "anonymous": false,
294
+ "inputs": [
295
+ {
296
+ "indexed": true,
297
+ "internalType": "address",
298
+ "name": "factory",
299
+ "type": "address"
300
+ },
301
+ {
302
+ "indexed": true,
303
+ "internalType": "address",
304
+ "name": "owner",
305
+ "type": "address"
306
+ },
307
+ {
308
+ "indexed": false,
309
+ "internalType": "address",
310
+ "name": "protocolFeeReceiver",
311
+ "type": "address"
312
+ },
313
+ {
314
+ "indexed": false,
315
+ "internalType": "address",
316
+ "name": "relayer",
317
+ "type": "address"
318
+ },
319
+ {
320
+ "indexed": false,
321
+ "internalType": "uint16",
322
+ "name": "feeMultiplier",
323
+ "type": "uint16"
324
+ },
325
+ {
326
+ "indexed": false,
327
+ "internalType": "uint16",
328
+ "name": "subscriptionFeeMultiplier",
329
+ "type": "uint16"
330
+ },
331
+ {
332
+ "indexed": false,
333
+ "internalType": "uint16",
334
+ "name": "dailyDdDiscountBps",
335
+ "type": "uint16"
336
+ },
337
+ {
338
+ "indexed": false,
339
+ "internalType": "uint256",
340
+ "name": "minBuilderShares",
341
+ "type": "uint256"
342
+ },
343
+ {
344
+ "indexed": false,
345
+ "internalType": "uint256",
346
+ "name": "builderLeverage",
347
+ "type": "uint256"
348
+ },
349
+ {
350
+ "indexed": false,
351
+ "internalType": "uint256",
352
+ "name": "protocolFeeBps",
353
+ "type": "uint256"
354
+ },
355
+ {
356
+ "indexed": false,
357
+ "internalType": "uint96",
358
+ "name": "minAccountSize",
359
+ "type": "uint96"
360
+ },
361
+ {
362
+ "indexed": false,
363
+ "internalType": "uint96",
364
+ "name": "maxAccountSize",
365
+ "type": "uint96"
366
+ },
367
+ {
368
+ "indexed": false,
369
+ "internalType": "uint16",
370
+ "name": "minDrawdownBps",
371
+ "type": "uint16"
372
+ },
373
+ {
374
+ "indexed": false,
375
+ "internalType": "uint16",
376
+ "name": "maxDrawdownBps",
377
+ "type": "uint16"
378
+ },
379
+ {
380
+ "indexed": false,
381
+ "internalType": "uint256",
382
+ "name": "maxUtilizationBps",
383
+ "type": "uint256"
384
+ },
385
+ {
386
+ "indexed": false,
387
+ "internalType": "uint256",
388
+ "name": "maxSingleAccountBps",
389
+ "type": "uint256"
390
+ },
391
+ {
392
+ "indexed": false,
393
+ "internalType": "uint256",
394
+ "name": "hypeForSpot",
395
+ "type": "uint256"
396
+ },
397
+ {
398
+ "indexed": false,
399
+ "internalType": "uint256",
400
+ "name": "maxCap",
401
+ "type": "uint256"
402
+ }
403
+ ],
404
+ "name": "MainVaultConfigInitialized",
405
+ "type": "event"
406
+ },
407
+ {
408
+ "anonymous": false,
409
+ "inputs": [
410
+ {
411
+ "indexed": false,
412
+ "internalType": "uint96",
413
+ "name": "oldValue",
414
+ "type": "uint96"
415
+ },
416
+ {
417
+ "indexed": false,
418
+ "internalType": "uint96",
419
+ "name": "newValue",
420
+ "type": "uint96"
421
+ }
422
+ ],
423
+ "name": "MaxAccountSizeUpdated",
424
+ "type": "event"
425
+ },
426
+ {
427
+ "anonymous": false,
428
+ "inputs": [
429
+ {
430
+ "indexed": false,
431
+ "internalType": "uint256",
432
+ "name": "oldMaxCap",
433
+ "type": "uint256"
434
+ },
435
+ {
436
+ "indexed": false,
437
+ "internalType": "uint256",
438
+ "name": "newMaxCap",
439
+ "type": "uint256"
440
+ }
441
+ ],
442
+ "name": "MaxCapUpdated",
443
+ "type": "event"
444
+ },
445
+ {
446
+ "anonymous": false,
447
+ "inputs": [
448
+ {
449
+ "indexed": false,
450
+ "internalType": "uint16",
451
+ "name": "oldValue",
452
+ "type": "uint16"
453
+ },
454
+ {
455
+ "indexed": false,
456
+ "internalType": "uint16",
457
+ "name": "newValue",
458
+ "type": "uint16"
459
+ }
460
+ ],
461
+ "name": "MaxDrawdownBpsUpdated",
462
+ "type": "event"
463
+ },
464
+ {
465
+ "anonymous": false,
466
+ "inputs": [
467
+ {
468
+ "indexed": false,
469
+ "internalType": "uint256",
470
+ "name": "oldValue",
471
+ "type": "uint256"
472
+ },
473
+ {
474
+ "indexed": false,
475
+ "internalType": "uint256",
476
+ "name": "newValue",
477
+ "type": "uint256"
478
+ }
479
+ ],
480
+ "name": "MaxSingleAccountBpsUpdated",
481
+ "type": "event"
482
+ },
483
+ {
484
+ "anonymous": false,
485
+ "inputs": [
486
+ {
487
+ "indexed": false,
488
+ "internalType": "uint256",
489
+ "name": "oldValue",
490
+ "type": "uint256"
491
+ },
492
+ {
493
+ "indexed": false,
494
+ "internalType": "uint256",
495
+ "name": "newValue",
496
+ "type": "uint256"
497
+ }
498
+ ],
499
+ "name": "MaxUtilizationBpsUpdated",
500
+ "type": "event"
501
+ },
502
+ {
503
+ "anonymous": false,
504
+ "inputs": [
505
+ {
506
+ "indexed": false,
507
+ "internalType": "uint96",
508
+ "name": "oldValue",
509
+ "type": "uint96"
510
+ },
511
+ {
512
+ "indexed": false,
513
+ "internalType": "uint96",
514
+ "name": "newValue",
515
+ "type": "uint96"
516
+ }
517
+ ],
518
+ "name": "MinAccountSizeUpdated",
519
+ "type": "event"
520
+ },
521
+ {
522
+ "anonymous": false,
523
+ "inputs": [
524
+ {
525
+ "indexed": false,
526
+ "internalType": "uint256",
527
+ "name": "oldValue",
528
+ "type": "uint256"
529
+ },
530
+ {
531
+ "indexed": false,
532
+ "internalType": "uint256",
533
+ "name": "newValue",
534
+ "type": "uint256"
535
+ }
536
+ ],
537
+ "name": "MinBuilderSharesUpdated",
538
+ "type": "event"
539
+ },
540
+ {
541
+ "anonymous": false,
542
+ "inputs": [
543
+ {
544
+ "indexed": false,
545
+ "internalType": "uint16",
546
+ "name": "oldValue",
547
+ "type": "uint16"
548
+ },
549
+ {
550
+ "indexed": false,
551
+ "internalType": "uint16",
552
+ "name": "newValue",
553
+ "type": "uint16"
554
+ }
555
+ ],
556
+ "name": "MinDrawdownBpsUpdated",
557
+ "type": "event"
558
+ },
559
+ {
560
+ "anonymous": false,
561
+ "inputs": [
562
+ {
563
+ "indexed": true,
564
+ "internalType": "address",
565
+ "name": "previousOwner",
566
+ "type": "address"
567
+ },
568
+ {
569
+ "indexed": true,
570
+ "internalType": "address",
571
+ "name": "newOwner",
572
+ "type": "address"
573
+ }
574
+ ],
575
+ "name": "OwnershipTransferStarted",
576
+ "type": "event"
577
+ },
578
+ {
579
+ "anonymous": false,
580
+ "inputs": [
581
+ {
582
+ "indexed": true,
583
+ "internalType": "address",
584
+ "name": "oldOwner",
585
+ "type": "address"
586
+ },
587
+ {
588
+ "indexed": true,
589
+ "internalType": "address",
590
+ "name": "newOwner",
591
+ "type": "address"
592
+ }
593
+ ],
594
+ "name": "OwnershipTransferred",
595
+ "type": "event"
596
+ },
597
+ {
598
+ "anonymous": false,
599
+ "inputs": [
600
+ {
601
+ "indexed": false,
602
+ "internalType": "address",
603
+ "name": "by",
604
+ "type": "address"
605
+ }
606
+ ],
607
+ "name": "Paused",
608
+ "type": "event"
609
+ },
610
+ {
611
+ "anonymous": false,
612
+ "inputs": [
613
+ {
614
+ "indexed": true,
615
+ "internalType": "uint32",
616
+ "name": "perpIndex",
617
+ "type": "uint32"
618
+ }
619
+ ],
620
+ "name": "PerpAllowed",
621
+ "type": "event"
622
+ },
623
+ {
624
+ "anonymous": false,
625
+ "inputs": [
626
+ {
627
+ "indexed": true,
628
+ "internalType": "uint32",
629
+ "name": "perpIndex",
630
+ "type": "uint32"
631
+ }
632
+ ],
633
+ "name": "PerpRemoved",
634
+ "type": "event"
635
+ },
636
+ {
637
+ "anonymous": false,
638
+ "inputs": [
639
+ {
640
+ "indexed": false,
641
+ "internalType": "uint256",
642
+ "name": "oldValue",
643
+ "type": "uint256"
644
+ },
645
+ {
646
+ "indexed": false,
647
+ "internalType": "uint256",
648
+ "name": "newValue",
649
+ "type": "uint256"
650
+ }
651
+ ],
652
+ "name": "ProtocolFeeBpsUpdated",
653
+ "type": "event"
654
+ },
655
+ {
656
+ "anonymous": false,
657
+ "inputs": [
658
+ {
659
+ "indexed": true,
660
+ "internalType": "address",
661
+ "name": "oldReceiver",
662
+ "type": "address"
663
+ },
664
+ {
665
+ "indexed": true,
666
+ "internalType": "address",
667
+ "name": "newReceiver",
668
+ "type": "address"
669
+ }
670
+ ],
671
+ "name": "ProtocolFeeReceiverUpdated",
672
+ "type": "event"
673
+ },
674
+ {
675
+ "anonymous": false,
676
+ "inputs": [
677
+ {
678
+ "indexed": true,
679
+ "internalType": "address",
680
+ "name": "oldRelayer",
681
+ "type": "address"
682
+ },
683
+ {
684
+ "indexed": true,
685
+ "internalType": "address",
686
+ "name": "newRelayer",
687
+ "type": "address"
688
+ }
689
+ ],
690
+ "name": "RelayerUpdated",
691
+ "type": "event"
692
+ },
693
+ {
694
+ "anonymous": false,
695
+ "inputs": [
696
+ {
697
+ "indexed": false,
698
+ "internalType": "uint16",
699
+ "name": "oldMultiplier",
700
+ "type": "uint16"
701
+ },
702
+ {
703
+ "indexed": false,
704
+ "internalType": "uint16",
705
+ "name": "newMultiplier",
706
+ "type": "uint16"
707
+ }
708
+ ],
709
+ "name": "SubscriptionFeeMultiplierUpdated",
710
+ "type": "event"
711
+ },
712
+ {
713
+ "anonymous": false,
714
+ "inputs": [
715
+ {
716
+ "indexed": false,
717
+ "internalType": "address",
718
+ "name": "by",
719
+ "type": "address"
720
+ }
721
+ ],
722
+ "name": "Unpaused",
723
+ "type": "event"
724
+ },
725
+ {
726
+ "anonymous": false,
727
+ "inputs": [
728
+ {
729
+ "indexed": true,
730
+ "internalType": "address",
731
+ "name": "lp",
732
+ "type": "address"
733
+ },
734
+ {
735
+ "indexed": false,
736
+ "internalType": "uint256",
737
+ "name": "amount",
738
+ "type": "uint256"
739
+ },
740
+ {
741
+ "indexed": false,
742
+ "internalType": "uint256",
743
+ "name": "sharesBurned",
744
+ "type": "uint256"
745
+ }
746
+ ],
747
+ "name": "Withdrawn",
748
+ "type": "event"
749
+ },
750
+ {
751
+ "inputs": [],
752
+ "name": "BPS_DENOMINATOR",
753
+ "outputs": [
754
+ {
755
+ "internalType": "uint256",
756
+ "name": "",
757
+ "type": "uint256"
758
+ }
759
+ ],
760
+ "stateMutability": "view",
761
+ "type": "function"
762
+ },
763
+ {
764
+ "inputs": [],
765
+ "name": "BUILDER_LEVERAGE",
766
+ "outputs": [
767
+ {
768
+ "internalType": "uint256",
769
+ "name": "",
770
+ "type": "uint256"
771
+ }
772
+ ],
773
+ "stateMutability": "view",
774
+ "type": "function"
775
+ },
776
+ {
777
+ "inputs": [],
778
+ "name": "CORE_DEPOSIT_WALLET",
779
+ "outputs": [
780
+ {
781
+ "internalType": "address",
782
+ "name": "",
783
+ "type": "address"
784
+ }
785
+ ],
786
+ "stateMutability": "view",
787
+ "type": "function"
788
+ },
789
+ {
790
+ "inputs": [],
791
+ "name": "DAILY_DD_DISCOUNT_BPS",
792
+ "outputs": [
793
+ {
794
+ "internalType": "uint16",
795
+ "name": "",
796
+ "type": "uint16"
797
+ }
798
+ ],
799
+ "stateMutability": "view",
800
+ "type": "function"
801
+ },
802
+ {
803
+ "inputs": [],
804
+ "name": "DEAD_SHARES",
805
+ "outputs": [
806
+ {
807
+ "internalType": "uint256",
808
+ "name": "",
809
+ "type": "uint256"
810
+ }
811
+ ],
812
+ "stateMutability": "view",
813
+ "type": "function"
814
+ },
815
+ {
816
+ "inputs": [],
817
+ "name": "HYPERCORE_NEW_ACCOUNT_FEE",
818
+ "outputs": [
819
+ {
820
+ "internalType": "uint256",
821
+ "name": "",
822
+ "type": "uint256"
823
+ }
824
+ ],
825
+ "stateMutability": "view",
826
+ "type": "function"
827
+ },
828
+ {
829
+ "inputs": [],
830
+ "name": "MAX_ACCOUNT_SIZE",
831
+ "outputs": [
832
+ {
833
+ "internalType": "uint96",
834
+ "name": "",
835
+ "type": "uint96"
836
+ }
837
+ ],
838
+ "stateMutability": "view",
839
+ "type": "function"
840
+ },
841
+ {
842
+ "inputs": [],
843
+ "name": "MAX_DRAWDOWN_BPS",
844
+ "outputs": [
845
+ {
846
+ "internalType": "uint16",
847
+ "name": "",
848
+ "type": "uint16"
849
+ }
850
+ ],
851
+ "stateMutability": "view",
852
+ "type": "function"
853
+ },
854
+ {
855
+ "inputs": [],
856
+ "name": "MAX_SINGLE_ACCOUNT_BPS",
857
+ "outputs": [
858
+ {
859
+ "internalType": "uint256",
860
+ "name": "",
861
+ "type": "uint256"
862
+ }
863
+ ],
864
+ "stateMutability": "view",
865
+ "type": "function"
866
+ },
867
+ {
868
+ "inputs": [],
869
+ "name": "MAX_UTILIZATION_BPS",
870
+ "outputs": [
871
+ {
872
+ "internalType": "uint256",
873
+ "name": "",
874
+ "type": "uint256"
875
+ }
876
+ ],
877
+ "stateMutability": "view",
878
+ "type": "function"
879
+ },
880
+ {
881
+ "inputs": [],
882
+ "name": "MIN_ACCOUNT_SIZE",
883
+ "outputs": [
884
+ {
885
+ "internalType": "uint96",
886
+ "name": "",
887
+ "type": "uint96"
888
+ }
889
+ ],
890
+ "stateMutability": "view",
891
+ "type": "function"
892
+ },
893
+ {
894
+ "inputs": [],
895
+ "name": "MIN_BUILDER_SHARES",
896
+ "outputs": [
897
+ {
898
+ "internalType": "uint256",
899
+ "name": "",
900
+ "type": "uint256"
901
+ }
902
+ ],
903
+ "stateMutability": "view",
904
+ "type": "function"
905
+ },
906
+ {
907
+ "inputs": [],
908
+ "name": "MIN_DRAWDOWN_BPS",
909
+ "outputs": [
910
+ {
911
+ "internalType": "uint16",
912
+ "name": "",
913
+ "type": "uint16"
914
+ }
915
+ ],
916
+ "stateMutability": "view",
917
+ "type": "function"
918
+ },
919
+ {
920
+ "inputs": [],
921
+ "name": "PERP_DEX",
922
+ "outputs": [
923
+ {
924
+ "internalType": "uint32",
925
+ "name": "",
926
+ "type": "uint32"
927
+ }
928
+ ],
929
+ "stateMutability": "view",
930
+ "type": "function"
931
+ },
932
+ {
933
+ "inputs": [],
934
+ "name": "PROTOCOL_FEE_BPS",
935
+ "outputs": [
936
+ {
937
+ "internalType": "uint256",
938
+ "name": "",
939
+ "type": "uint256"
940
+ }
941
+ ],
942
+ "stateMutability": "view",
943
+ "type": "function"
944
+ },
945
+ {
946
+ "inputs": [],
947
+ "name": "acceptOwnership",
948
+ "outputs": [],
949
+ "stateMutability": "nonpayable",
950
+ "type": "function"
951
+ },
952
+ {
953
+ "inputs": [
954
+ {
955
+ "internalType": "address",
956
+ "name": "trader",
957
+ "type": "address"
958
+ },
959
+ {
960
+ "internalType": "uint96",
961
+ "name": "accountSize",
962
+ "type": "uint96"
963
+ },
964
+ {
965
+ "internalType": "uint16",
966
+ "name": "drawdownBps",
967
+ "type": "uint16"
968
+ },
969
+ {
970
+ "internalType": "bool",
971
+ "name": "dailyDrawdownEnabled",
972
+ "type": "bool"
973
+ }
974
+ ],
975
+ "name": "activateFunded",
976
+ "outputs": [],
977
+ "stateMutability": "payable",
978
+ "type": "function"
979
+ },
980
+ {
981
+ "inputs": [
982
+ {
983
+ "internalType": "uint32",
984
+ "name": "perpIndex",
985
+ "type": "uint32"
986
+ }
987
+ ],
988
+ "name": "addAllowedPerp",
989
+ "outputs": [],
990
+ "stateMutability": "nonpayable",
991
+ "type": "function"
992
+ },
993
+ {
994
+ "inputs": [
995
+ {
996
+ "internalType": "uint256",
997
+ "name": "",
998
+ "type": "uint256"
999
+ }
1000
+ ],
1001
+ "name": "allowedPerpList",
1002
+ "outputs": [
1003
+ {
1004
+ "internalType": "uint32",
1005
+ "name": "",
1006
+ "type": "uint32"
1007
+ }
1008
+ ],
1009
+ "stateMutability": "view",
1010
+ "type": "function"
1011
+ },
1012
+ {
1013
+ "inputs": [
1014
+ {
1015
+ "internalType": "uint32",
1016
+ "name": "",
1017
+ "type": "uint32"
1018
+ }
1019
+ ],
1020
+ "name": "allowedPerps",
1021
+ "outputs": [
1022
+ {
1023
+ "internalType": "bool",
1024
+ "name": "",
1025
+ "type": "bool"
1026
+ }
1027
+ ],
1028
+ "stateMutability": "view",
1029
+ "type": "function"
1030
+ },
1031
+ {
1032
+ "inputs": [
1033
+ {
1034
+ "internalType": "address",
1035
+ "name": "builder",
1036
+ "type": "address"
1037
+ }
1038
+ ],
1039
+ "name": "builderAvailableFunded",
1040
+ "outputs": [
1041
+ {
1042
+ "internalType": "uint256",
1043
+ "name": "",
1044
+ "type": "uint256"
1045
+ }
1046
+ ],
1047
+ "stateMutability": "view",
1048
+ "type": "function"
1049
+ },
1050
+ {
1051
+ "inputs": [
1052
+ {
1053
+ "internalType": "address",
1054
+ "name": "",
1055
+ "type": "address"
1056
+ }
1057
+ ],
1058
+ "name": "builders",
1059
+ "outputs": [
1060
+ {
1061
+ "internalType": "bool",
1062
+ "name": "active",
1063
+ "type": "bool"
1064
+ },
1065
+ {
1066
+ "internalType": "uint96",
1067
+ "name": "activeFunded",
1068
+ "type": "uint96"
1069
+ }
1070
+ ],
1071
+ "stateMutability": "view",
1072
+ "type": "function"
1073
+ },
1074
+ {
1075
+ "inputs": [
1076
+ {
1077
+ "internalType": "uint96",
1078
+ "name": "_accountSize",
1079
+ "type": "uint96"
1080
+ },
1081
+ {
1082
+ "internalType": "uint16",
1083
+ "name": "_drawdownBps",
1084
+ "type": "uint16"
1085
+ }
1086
+ ],
1087
+ "name": "calculateActivationFee",
1088
+ "outputs": [
1089
+ {
1090
+ "internalType": "uint256",
1091
+ "name": "",
1092
+ "type": "uint256"
1093
+ }
1094
+ ],
1095
+ "stateMutability": "view",
1096
+ "type": "function"
1097
+ },
1098
+ {
1099
+ "inputs": [
1100
+ {
1101
+ "internalType": "uint96",
1102
+ "name": "_accountSize",
1103
+ "type": "uint96"
1104
+ },
1105
+ {
1106
+ "internalType": "uint16",
1107
+ "name": "_drawdownBps",
1108
+ "type": "uint16"
1109
+ },
1110
+ {
1111
+ "internalType": "bool",
1112
+ "name": "_dailyDrawdownEnabled",
1113
+ "type": "bool"
1114
+ }
1115
+ ],
1116
+ "name": "calculateActivationFee",
1117
+ "outputs": [
1118
+ {
1119
+ "internalType": "uint256",
1120
+ "name": "",
1121
+ "type": "uint256"
1122
+ }
1123
+ ],
1124
+ "stateMutability": "view",
1125
+ "type": "function"
1126
+ },
1127
+ {
1128
+ "inputs": [
1129
+ {
1130
+ "internalType": "address",
1131
+ "name": "",
1132
+ "type": "address"
1133
+ }
1134
+ ],
1135
+ "name": "delegateBuilder",
1136
+ "outputs": [
1137
+ {
1138
+ "internalType": "address",
1139
+ "name": "",
1140
+ "type": "address"
1141
+ }
1142
+ ],
1143
+ "stateMutability": "view",
1144
+ "type": "function"
1145
+ },
1146
+ {
1147
+ "inputs": [
1148
+ {
1149
+ "internalType": "uint256",
1150
+ "name": "amount",
1151
+ "type": "uint256"
1152
+ }
1153
+ ],
1154
+ "name": "deposit",
1155
+ "outputs": [
1156
+ {
1157
+ "internalType": "uint256",
1158
+ "name": "sharesOut",
1159
+ "type": "uint256"
1160
+ }
1161
+ ],
1162
+ "stateMutability": "nonpayable",
1163
+ "type": "function"
1164
+ },
1165
+ {
1166
+ "inputs": [],
1167
+ "name": "factory",
1168
+ "outputs": [
1169
+ {
1170
+ "internalType": "contract IFundedAccountFactory",
1171
+ "name": "",
1172
+ "type": "address"
1173
+ }
1174
+ ],
1175
+ "stateMutability": "view",
1176
+ "type": "function"
1177
+ },
1178
+ {
1179
+ "inputs": [],
1180
+ "name": "feeMultiplier",
1181
+ "outputs": [
1182
+ {
1183
+ "internalType": "uint16",
1184
+ "name": "",
1185
+ "type": "uint16"
1186
+ }
1187
+ ],
1188
+ "stateMutability": "view",
1189
+ "type": "function"
1190
+ },
1191
+ {
1192
+ "inputs": [],
1193
+ "name": "getAllowedPerps",
1194
+ "outputs": [
1195
+ {
1196
+ "internalType": "uint32[]",
1197
+ "name": "",
1198
+ "type": "uint32[]"
1199
+ }
1200
+ ],
1201
+ "stateMutability": "view",
1202
+ "type": "function"
1203
+ },
1204
+ {
1205
+ "inputs": [],
1206
+ "name": "getAvailableForAllocation",
1207
+ "outputs": [
1208
+ {
1209
+ "internalType": "uint256",
1210
+ "name": "",
1211
+ "type": "uint256"
1212
+ }
1213
+ ],
1214
+ "stateMutability": "view",
1215
+ "type": "function"
1216
+ },
1217
+ {
1218
+ "inputs": [],
1219
+ "name": "getMaxAccountSize",
1220
+ "outputs": [
1221
+ {
1222
+ "internalType": "uint256",
1223
+ "name": "",
1224
+ "type": "uint256"
1225
+ }
1226
+ ],
1227
+ "stateMutability": "view",
1228
+ "type": "function"
1229
+ },
1230
+ {
1231
+ "inputs": [],
1232
+ "name": "getRemainingCap",
1233
+ "outputs": [
1234
+ {
1235
+ "internalType": "uint256",
1236
+ "name": "",
1237
+ "type": "uint256"
1238
+ }
1239
+ ],
1240
+ "stateMutability": "view",
1241
+ "type": "function"
1242
+ },
1243
+ {
1244
+ "inputs": [],
1245
+ "name": "getUtilizationBps",
1246
+ "outputs": [
1247
+ {
1248
+ "internalType": "uint256",
1249
+ "name": "",
1250
+ "type": "uint256"
1251
+ }
1252
+ ],
1253
+ "stateMutability": "view",
1254
+ "type": "function"
1255
+ },
1256
+ {
1257
+ "inputs": [],
1258
+ "name": "hypeForSpot",
1259
+ "outputs": [
1260
+ {
1261
+ "internalType": "uint256",
1262
+ "name": "",
1263
+ "type": "uint256"
1264
+ }
1265
+ ],
1266
+ "stateMutability": "view",
1267
+ "type": "function"
1268
+ },
1269
+ {
1270
+ "inputs": [
1271
+ {
1272
+ "internalType": "uint32",
1273
+ "name": "perpIndex",
1274
+ "type": "uint32"
1275
+ }
1276
+ ],
1277
+ "name": "isAllowedPerp",
1278
+ "outputs": [
1279
+ {
1280
+ "internalType": "bool",
1281
+ "name": "",
1282
+ "type": "bool"
1283
+ }
1284
+ ],
1285
+ "stateMutability": "view",
1286
+ "type": "function"
1287
+ },
1288
+ {
1289
+ "inputs": [
1290
+ {
1291
+ "internalType": "address",
1292
+ "name": "",
1293
+ "type": "address"
1294
+ }
1295
+ ],
1296
+ "name": "isFundedAccount",
1297
+ "outputs": [
1298
+ {
1299
+ "internalType": "bool",
1300
+ "name": "",
1301
+ "type": "bool"
1302
+ }
1303
+ ],
1304
+ "stateMutability": "view",
1305
+ "type": "function"
1306
+ },
1307
+ {
1308
+ "inputs": [],
1309
+ "name": "maxCap",
1310
+ "outputs": [
1311
+ {
1312
+ "internalType": "uint256",
1313
+ "name": "",
1314
+ "type": "uint256"
1315
+ }
1316
+ ],
1317
+ "stateMutability": "view",
1318
+ "type": "function"
1319
+ },
1320
+ {
1321
+ "inputs": [],
1322
+ "name": "owner",
1323
+ "outputs": [
1324
+ {
1325
+ "internalType": "address",
1326
+ "name": "",
1327
+ "type": "address"
1328
+ }
1329
+ ],
1330
+ "stateMutability": "view",
1331
+ "type": "function"
1332
+ },
1333
+ {
1334
+ "inputs": [],
1335
+ "name": "pause",
1336
+ "outputs": [],
1337
+ "stateMutability": "nonpayable",
1338
+ "type": "function"
1339
+ },
1340
+ {
1341
+ "inputs": [],
1342
+ "name": "paused",
1343
+ "outputs": [
1344
+ {
1345
+ "internalType": "bool",
1346
+ "name": "",
1347
+ "type": "bool"
1348
+ }
1349
+ ],
1350
+ "stateMutability": "view",
1351
+ "type": "function"
1352
+ },
1353
+ {
1354
+ "inputs": [],
1355
+ "name": "pendingOwner",
1356
+ "outputs": [
1357
+ {
1358
+ "internalType": "address",
1359
+ "name": "",
1360
+ "type": "address"
1361
+ }
1362
+ ],
1363
+ "stateMutability": "view",
1364
+ "type": "function"
1365
+ },
1366
+ {
1367
+ "inputs": [],
1368
+ "name": "protocolFeeReceiver",
1369
+ "outputs": [
1370
+ {
1371
+ "internalType": "address",
1372
+ "name": "",
1373
+ "type": "address"
1374
+ }
1375
+ ],
1376
+ "stateMutability": "view",
1377
+ "type": "function"
1378
+ },
1379
+ {
1380
+ "inputs": [
1381
+ {
1382
+ "internalType": "address",
1383
+ "name": "trader",
1384
+ "type": "address"
1385
+ },
1386
+ {
1387
+ "internalType": "uint256",
1388
+ "name": "amount",
1389
+ "type": "uint256"
1390
+ },
1391
+ {
1392
+ "internalType": "uint96",
1393
+ "name": "originalAccountSize",
1394
+ "type": "uint96"
1395
+ },
1396
+ {
1397
+ "internalType": "address",
1398
+ "name": "builder",
1399
+ "type": "address"
1400
+ }
1401
+ ],
1402
+ "name": "receiveFunds",
1403
+ "outputs": [],
1404
+ "stateMutability": "nonpayable",
1405
+ "type": "function"
1406
+ },
1407
+ {
1408
+ "inputs": [],
1409
+ "name": "registerBuilder",
1410
+ "outputs": [],
1411
+ "stateMutability": "nonpayable",
1412
+ "type": "function"
1413
+ },
1414
+ {
1415
+ "inputs": [],
1416
+ "name": "relayer",
1417
+ "outputs": [
1418
+ {
1419
+ "internalType": "address",
1420
+ "name": "",
1421
+ "type": "address"
1422
+ }
1423
+ ],
1424
+ "stateMutability": "view",
1425
+ "type": "function"
1426
+ },
1427
+ {
1428
+ "inputs": [
1429
+ {
1430
+ "internalType": "uint32",
1431
+ "name": "perpIndex",
1432
+ "type": "uint32"
1433
+ }
1434
+ ],
1435
+ "name": "removeAllowedPerp",
1436
+ "outputs": [],
1437
+ "stateMutability": "nonpayable",
1438
+ "type": "function"
1439
+ },
1440
+ {
1441
+ "inputs": [
1442
+ {
1443
+ "internalType": "address",
1444
+ "name": "_delegate",
1445
+ "type": "address"
1446
+ }
1447
+ ],
1448
+ "name": "removeDelegate",
1449
+ "outputs": [],
1450
+ "stateMutability": "nonpayable",
1451
+ "type": "function"
1452
+ },
1453
+ {
1454
+ "inputs": [
1455
+ {
1456
+ "internalType": "uint256",
1457
+ "name": "_builderLeverage",
1458
+ "type": "uint256"
1459
+ }
1460
+ ],
1461
+ "name": "setBuilderLeverage",
1462
+ "outputs": [],
1463
+ "stateMutability": "nonpayable",
1464
+ "type": "function"
1465
+ },
1466
+ {
1467
+ "inputs": [
1468
+ {
1469
+ "internalType": "uint16",
1470
+ "name": "_dailyDdDiscountBps",
1471
+ "type": "uint16"
1472
+ }
1473
+ ],
1474
+ "name": "setDailyDdDiscountBps",
1475
+ "outputs": [],
1476
+ "stateMutability": "nonpayable",
1477
+ "type": "function"
1478
+ },
1479
+ {
1480
+ "inputs": [
1481
+ {
1482
+ "internalType": "address",
1483
+ "name": "_delegate",
1484
+ "type": "address"
1485
+ }
1486
+ ],
1487
+ "name": "setDelegate",
1488
+ "outputs": [],
1489
+ "stateMutability": "nonpayable",
1490
+ "type": "function"
1491
+ },
1492
+ {
1493
+ "inputs": [
1494
+ {
1495
+ "internalType": "address",
1496
+ "name": "_factory",
1497
+ "type": "address"
1498
+ }
1499
+ ],
1500
+ "name": "setFactory",
1501
+ "outputs": [],
1502
+ "stateMutability": "nonpayable",
1503
+ "type": "function"
1504
+ },
1505
+ {
1506
+ "inputs": [
1507
+ {
1508
+ "internalType": "uint16",
1509
+ "name": "_feeMultiplier",
1510
+ "type": "uint16"
1511
+ }
1512
+ ],
1513
+ "name": "setFeeMultiplier",
1514
+ "outputs": [],
1515
+ "stateMutability": "nonpayable",
1516
+ "type": "function"
1517
+ },
1518
+ {
1519
+ "inputs": [
1520
+ {
1521
+ "internalType": "uint256",
1522
+ "name": "_hypeForSpot",
1523
+ "type": "uint256"
1524
+ }
1525
+ ],
1526
+ "name": "setHypeForSpot",
1527
+ "outputs": [],
1528
+ "stateMutability": "nonpayable",
1529
+ "type": "function"
1530
+ },
1531
+ {
1532
+ "inputs": [
1533
+ {
1534
+ "internalType": "uint96",
1535
+ "name": "_maxAccountSize",
1536
+ "type": "uint96"
1537
+ }
1538
+ ],
1539
+ "name": "setMaxAccountSize",
1540
+ "outputs": [],
1541
+ "stateMutability": "nonpayable",
1542
+ "type": "function"
1543
+ },
1544
+ {
1545
+ "inputs": [
1546
+ {
1547
+ "internalType": "uint256",
1548
+ "name": "_maxCap",
1549
+ "type": "uint256"
1550
+ }
1551
+ ],
1552
+ "name": "setMaxCap",
1553
+ "outputs": [],
1554
+ "stateMutability": "nonpayable",
1555
+ "type": "function"
1556
+ },
1557
+ {
1558
+ "inputs": [
1559
+ {
1560
+ "internalType": "uint16",
1561
+ "name": "_maxDrawdownBps",
1562
+ "type": "uint16"
1563
+ }
1564
+ ],
1565
+ "name": "setMaxDrawdownBps",
1566
+ "outputs": [],
1567
+ "stateMutability": "nonpayable",
1568
+ "type": "function"
1569
+ },
1570
+ {
1571
+ "inputs": [
1572
+ {
1573
+ "internalType": "uint256",
1574
+ "name": "_maxSingleAccountBps",
1575
+ "type": "uint256"
1576
+ }
1577
+ ],
1578
+ "name": "setMaxSingleAccountBps",
1579
+ "outputs": [],
1580
+ "stateMutability": "nonpayable",
1581
+ "type": "function"
1582
+ },
1583
+ {
1584
+ "inputs": [
1585
+ {
1586
+ "internalType": "uint256",
1587
+ "name": "_maxUtilizationBps",
1588
+ "type": "uint256"
1589
+ }
1590
+ ],
1591
+ "name": "setMaxUtilizationBps",
1592
+ "outputs": [],
1593
+ "stateMutability": "nonpayable",
1594
+ "type": "function"
1595
+ },
1596
+ {
1597
+ "inputs": [
1598
+ {
1599
+ "internalType": "uint96",
1600
+ "name": "_minAccountSize",
1601
+ "type": "uint96"
1602
+ }
1603
+ ],
1604
+ "name": "setMinAccountSize",
1605
+ "outputs": [],
1606
+ "stateMutability": "nonpayable",
1607
+ "type": "function"
1608
+ },
1609
+ {
1610
+ "inputs": [
1611
+ {
1612
+ "internalType": "uint256",
1613
+ "name": "_minBuilderShares",
1614
+ "type": "uint256"
1615
+ }
1616
+ ],
1617
+ "name": "setMinBuilderShares",
1618
+ "outputs": [],
1619
+ "stateMutability": "nonpayable",
1620
+ "type": "function"
1621
+ },
1622
+ {
1623
+ "inputs": [
1624
+ {
1625
+ "internalType": "uint16",
1626
+ "name": "_minDrawdownBps",
1627
+ "type": "uint16"
1628
+ }
1629
+ ],
1630
+ "name": "setMinDrawdownBps",
1631
+ "outputs": [],
1632
+ "stateMutability": "nonpayable",
1633
+ "type": "function"
1634
+ },
1635
+ {
1636
+ "inputs": [
1637
+ {
1638
+ "internalType": "uint256",
1639
+ "name": "_protocolFeeBps",
1640
+ "type": "uint256"
1641
+ }
1642
+ ],
1643
+ "name": "setProtocolFeeBps",
1644
+ "outputs": [],
1645
+ "stateMutability": "nonpayable",
1646
+ "type": "function"
1647
+ },
1648
+ {
1649
+ "inputs": [
1650
+ {
1651
+ "internalType": "address",
1652
+ "name": "_receiver",
1653
+ "type": "address"
1654
+ }
1655
+ ],
1656
+ "name": "setProtocolFeeReceiver",
1657
+ "outputs": [],
1658
+ "stateMutability": "nonpayable",
1659
+ "type": "function"
1660
+ },
1661
+ {
1662
+ "inputs": [
1663
+ {
1664
+ "internalType": "address",
1665
+ "name": "_relayer",
1666
+ "type": "address"
1667
+ }
1668
+ ],
1669
+ "name": "setRelayer",
1670
+ "outputs": [],
1671
+ "stateMutability": "nonpayable",
1672
+ "type": "function"
1673
+ },
1674
+ {
1675
+ "inputs": [
1676
+ {
1677
+ "internalType": "uint16",
1678
+ "name": "_subscriptionFeeMultiplier",
1679
+ "type": "uint16"
1680
+ }
1681
+ ],
1682
+ "name": "setSubscriptionFeeMultiplier",
1683
+ "outputs": [],
1684
+ "stateMutability": "nonpayable",
1685
+ "type": "function"
1686
+ },
1687
+ {
1688
+ "inputs": [],
1689
+ "name": "sharePrice",
1690
+ "outputs": [
1691
+ {
1692
+ "internalType": "uint256",
1693
+ "name": "",
1694
+ "type": "uint256"
1695
+ }
1696
+ ],
1697
+ "stateMutability": "view",
1698
+ "type": "function"
1699
+ },
1700
+ {
1701
+ "inputs": [
1702
+ {
1703
+ "internalType": "address",
1704
+ "name": "",
1705
+ "type": "address"
1706
+ }
1707
+ ],
1708
+ "name": "shares",
1709
+ "outputs": [
1710
+ {
1711
+ "internalType": "uint256",
1712
+ "name": "",
1713
+ "type": "uint256"
1714
+ }
1715
+ ],
1716
+ "stateMutability": "view",
1717
+ "type": "function"
1718
+ },
1719
+ {
1720
+ "inputs": [
1721
+ {
1722
+ "internalType": "address",
1723
+ "name": "account",
1724
+ "type": "address"
1725
+ }
1726
+ ],
1727
+ "name": "sharesValue",
1728
+ "outputs": [
1729
+ {
1730
+ "internalType": "uint256",
1731
+ "name": "",
1732
+ "type": "uint256"
1733
+ }
1734
+ ],
1735
+ "stateMutability": "view",
1736
+ "type": "function"
1737
+ },
1738
+ {
1739
+ "inputs": [],
1740
+ "name": "subscriptionFeeMultiplier",
1741
+ "outputs": [
1742
+ {
1743
+ "internalType": "uint16",
1744
+ "name": "",
1745
+ "type": "uint16"
1746
+ }
1747
+ ],
1748
+ "stateMutability": "view",
1749
+ "type": "function"
1750
+ },
1751
+ {
1752
+ "inputs": [],
1753
+ "name": "totalAllocated",
1754
+ "outputs": [
1755
+ {
1756
+ "internalType": "uint256",
1757
+ "name": "",
1758
+ "type": "uint256"
1759
+ }
1760
+ ],
1761
+ "stateMutability": "view",
1762
+ "type": "function"
1763
+ },
1764
+ {
1765
+ "inputs": [],
1766
+ "name": "totalAssets",
1767
+ "outputs": [
1768
+ {
1769
+ "internalType": "uint256",
1770
+ "name": "",
1771
+ "type": "uint256"
1772
+ }
1773
+ ],
1774
+ "stateMutability": "view",
1775
+ "type": "function"
1776
+ },
1777
+ {
1778
+ "inputs": [],
1779
+ "name": "totalShares",
1780
+ "outputs": [
1781
+ {
1782
+ "internalType": "uint256",
1783
+ "name": "",
1784
+ "type": "uint256"
1785
+ }
1786
+ ],
1787
+ "stateMutability": "view",
1788
+ "type": "function"
1789
+ },
1790
+ {
1791
+ "inputs": [
1792
+ {
1793
+ "internalType": "address",
1794
+ "name": "newOwner",
1795
+ "type": "address"
1796
+ }
1797
+ ],
1798
+ "name": "transferOwnership",
1799
+ "outputs": [],
1800
+ "stateMutability": "nonpayable",
1801
+ "type": "function"
1802
+ },
1803
+ {
1804
+ "inputs": [],
1805
+ "name": "unpause",
1806
+ "outputs": [],
1807
+ "stateMutability": "nonpayable",
1808
+ "type": "function"
1809
+ },
1810
+ {
1811
+ "inputs": [],
1812
+ "name": "usdc",
1813
+ "outputs": [
1814
+ {
1815
+ "internalType": "contract IERC20",
1816
+ "name": "",
1817
+ "type": "address"
1818
+ }
1819
+ ],
1820
+ "stateMutability": "view",
1821
+ "type": "function"
1822
+ },
1823
+ {
1824
+ "inputs": [
1825
+ {
1826
+ "internalType": "uint256",
1827
+ "name": "sharesToBurn",
1828
+ "type": "uint256"
1829
+ }
1830
+ ],
1831
+ "name": "withdraw",
1832
+ "outputs": [
1833
+ {
1834
+ "internalType": "uint256",
1835
+ "name": "amountOut",
1836
+ "type": "uint256"
1837
+ }
1838
+ ],
1839
+ "stateMutability": "nonpayable",
1840
+ "type": "function"
1841
+ },
1842
+ {
1843
+ "inputs": [
1844
+ {
1845
+ "internalType": "address",
1846
+ "name": "account",
1847
+ "type": "address"
1848
+ }
1849
+ ],
1850
+ "name": "withdrawableShares",
1851
+ "outputs": [
1852
+ {
1853
+ "internalType": "uint256",
1854
+ "name": "",
1855
+ "type": "uint256"
1856
+ }
1857
+ ],
1858
+ "stateMutability": "view",
1859
+ "type": "function"
1860
+ },
1861
+ {
1862
+ "stateMutability": "payable",
1863
+ "type": "receive"
1864
+ }
1865
+ ] as const;