@kehtus/proportion-sdk 0.1.2 → 0.1.4

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 (89) hide show
  1. package/LICENSE +21 -0
  2. package/dist/abi/factory.d.ts +1 -0
  3. package/dist/abi/factory.d.ts.map +1 -0
  4. package/dist/abi/factory.js +1 -0
  5. package/dist/abi/factory.js.map +1 -0
  6. package/dist/abi/forwarder.d.ts +1 -0
  7. package/dist/abi/forwarder.d.ts.map +1 -0
  8. package/dist/abi/forwarder.js +1 -0
  9. package/dist/abi/forwarder.js.map +1 -0
  10. package/dist/abi/fundedAccount.d.ts +1 -0
  11. package/dist/abi/fundedAccount.d.ts.map +1 -0
  12. package/dist/abi/fundedAccount.js +1 -0
  13. package/dist/abi/fundedAccount.js.map +1 -0
  14. package/dist/abi/mainVault.d.ts +198 -16
  15. package/dist/abi/mainVault.d.ts.map +1 -0
  16. package/dist/abi/mainVault.js +253 -19
  17. package/dist/abi/mainVault.js.map +1 -0
  18. package/dist/account.d.ts +3 -2
  19. package/dist/account.d.ts.map +1 -0
  20. package/dist/account.js +46 -43
  21. package/dist/account.js.map +1 -0
  22. package/dist/base.d.ts +9 -0
  23. package/dist/base.d.ts.map +1 -0
  24. package/dist/base.js +19 -0
  25. package/dist/base.js.map +1 -0
  26. package/dist/constants.d.ts +5 -4
  27. package/dist/constants.d.ts.map +1 -0
  28. package/dist/constants.js +5 -4
  29. package/dist/constants.js.map +1 -0
  30. package/dist/factory.d.ts +1 -0
  31. package/dist/factory.d.ts.map +1 -0
  32. package/dist/factory.js +56 -10
  33. package/dist/factory.js.map +1 -0
  34. package/dist/index.d.ts +1 -0
  35. package/dist/index.d.ts.map +1 -0
  36. package/dist/index.js +1 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/indexer.d.ts +9 -3
  39. package/dist/indexer.d.ts.map +1 -0
  40. package/dist/indexer.js +84 -136
  41. package/dist/indexer.js.map +1 -0
  42. package/dist/sdk.d.ts +1 -0
  43. package/dist/sdk.d.ts.map +1 -0
  44. package/dist/sdk.js +1 -0
  45. package/dist/sdk.js.map +1 -0
  46. package/dist/types.d.ts +5 -0
  47. package/dist/types.d.ts.map +1 -0
  48. package/dist/types.js +1 -0
  49. package/dist/types.js.map +1 -0
  50. package/dist/utils.d.ts +8 -0
  51. package/dist/utils.d.ts.map +1 -0
  52. package/dist/utils.js +10 -0
  53. package/dist/utils.js.map +1 -0
  54. package/dist/vault.d.ts +7 -4
  55. package/dist/vault.d.ts.map +1 -0
  56. package/dist/vault.js +76 -51
  57. package/dist/vault.js.map +1 -0
  58. package/package.json +12 -1
  59. package/arch.md +0 -455
  60. package/dist/__tests__/account.test.d.ts +0 -1
  61. package/dist/__tests__/account.test.js +0 -36
  62. package/dist/__tests__/indexer.test.d.ts +0 -1
  63. package/dist/__tests__/indexer.test.js +0 -230
  64. package/dist/__tests__/lifecycle.test.d.ts +0 -1
  65. package/dist/__tests__/lifecycle.test.js +0 -186
  66. package/dist/__tests__/reads.test.d.ts +0 -1
  67. package/dist/__tests__/reads.test.js +0 -184
  68. package/dist/__tests__/utils.test.d.ts +0 -1
  69. package/dist/__tests__/utils.test.js +0 -185
  70. package/src/__tests__/account.test.ts +0 -40
  71. package/src/__tests__/indexer.test.ts +0 -255
  72. package/src/__tests__/lifecycle.test.ts +0 -231
  73. package/src/__tests__/reads.test.ts +0 -208
  74. package/src/__tests__/utils.test.ts +0 -245
  75. package/src/abi/factory.ts +0 -417
  76. package/src/abi/forwarder.ts +0 -373
  77. package/src/abi/fundedAccount.ts +0 -1296
  78. package/src/abi/mainVault.ts +0 -1852
  79. package/src/account.ts +0 -325
  80. package/src/constants.ts +0 -51
  81. package/src/factory.ts +0 -157
  82. package/src/index.ts +0 -16
  83. package/src/indexer.ts +0 -636
  84. package/src/sdk.ts +0 -93
  85. package/src/types.ts +0 -421
  86. package/src/utils.ts +0 -143
  87. package/src/vault.ts +0 -479
  88. package/tsconfig.json +0 -19
  89. package/vitest.config.ts +0 -8
@@ -1,1852 +0,0 @@
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": "MAX_ACCOUNT_SIZE",
818
- "outputs": [
819
- {
820
- "internalType": "uint96",
821
- "name": "",
822
- "type": "uint96"
823
- }
824
- ],
825
- "stateMutability": "view",
826
- "type": "function"
827
- },
828
- {
829
- "inputs": [],
830
- "name": "MAX_DRAWDOWN_BPS",
831
- "outputs": [
832
- {
833
- "internalType": "uint16",
834
- "name": "",
835
- "type": "uint16"
836
- }
837
- ],
838
- "stateMutability": "view",
839
- "type": "function"
840
- },
841
- {
842
- "inputs": [],
843
- "name": "MAX_SINGLE_ACCOUNT_BPS",
844
- "outputs": [
845
- {
846
- "internalType": "uint256",
847
- "name": "",
848
- "type": "uint256"
849
- }
850
- ],
851
- "stateMutability": "view",
852
- "type": "function"
853
- },
854
- {
855
- "inputs": [],
856
- "name": "MAX_UTILIZATION_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": "MIN_ACCOUNT_SIZE",
870
- "outputs": [
871
- {
872
- "internalType": "uint96",
873
- "name": "",
874
- "type": "uint96"
875
- }
876
- ],
877
- "stateMutability": "view",
878
- "type": "function"
879
- },
880
- {
881
- "inputs": [],
882
- "name": "MIN_BUILDER_SHARES",
883
- "outputs": [
884
- {
885
- "internalType": "uint256",
886
- "name": "",
887
- "type": "uint256"
888
- }
889
- ],
890
- "stateMutability": "view",
891
- "type": "function"
892
- },
893
- {
894
- "inputs": [],
895
- "name": "MIN_DRAWDOWN_BPS",
896
- "outputs": [
897
- {
898
- "internalType": "uint16",
899
- "name": "",
900
- "type": "uint16"
901
- }
902
- ],
903
- "stateMutability": "view",
904
- "type": "function"
905
- },
906
- {
907
- "inputs": [],
908
- "name": "PERP_DEX",
909
- "outputs": [
910
- {
911
- "internalType": "uint32",
912
- "name": "",
913
- "type": "uint32"
914
- }
915
- ],
916
- "stateMutability": "view",
917
- "type": "function"
918
- },
919
- {
920
- "inputs": [],
921
- "name": "PROTOCOL_FEE_BPS",
922
- "outputs": [
923
- {
924
- "internalType": "uint256",
925
- "name": "",
926
- "type": "uint256"
927
- }
928
- ],
929
- "stateMutability": "view",
930
- "type": "function"
931
- },
932
- {
933
- "inputs": [],
934
- "name": "acceptOwnership",
935
- "outputs": [],
936
- "stateMutability": "nonpayable",
937
- "type": "function"
938
- },
939
- {
940
- "inputs": [
941
- {
942
- "internalType": "address",
943
- "name": "trader",
944
- "type": "address"
945
- },
946
- {
947
- "internalType": "uint96",
948
- "name": "accountSize",
949
- "type": "uint96"
950
- },
951
- {
952
- "internalType": "uint16",
953
- "name": "drawdownBps",
954
- "type": "uint16"
955
- },
956
- {
957
- "internalType": "bool",
958
- "name": "dailyDrawdownEnabled",
959
- "type": "bool"
960
- }
961
- ],
962
- "name": "activateFunded",
963
- "outputs": [],
964
- "stateMutability": "payable",
965
- "type": "function"
966
- },
967
- {
968
- "inputs": [
969
- {
970
- "internalType": "uint32",
971
- "name": "perpIndex",
972
- "type": "uint32"
973
- }
974
- ],
975
- "name": "addAllowedPerp",
976
- "outputs": [],
977
- "stateMutability": "nonpayable",
978
- "type": "function"
979
- },
980
- {
981
- "inputs": [
982
- {
983
- "internalType": "uint256",
984
- "name": "",
985
- "type": "uint256"
986
- }
987
- ],
988
- "name": "allowedPerpList",
989
- "outputs": [
990
- {
991
- "internalType": "uint32",
992
- "name": "",
993
- "type": "uint32"
994
- }
995
- ],
996
- "stateMutability": "view",
997
- "type": "function"
998
- },
999
- {
1000
- "inputs": [
1001
- {
1002
- "internalType": "uint32",
1003
- "name": "",
1004
- "type": "uint32"
1005
- }
1006
- ],
1007
- "name": "allowedPerps",
1008
- "outputs": [
1009
- {
1010
- "internalType": "bool",
1011
- "name": "",
1012
- "type": "bool"
1013
- }
1014
- ],
1015
- "stateMutability": "view",
1016
- "type": "function"
1017
- },
1018
- {
1019
- "inputs": [
1020
- {
1021
- "internalType": "address",
1022
- "name": "builder",
1023
- "type": "address"
1024
- }
1025
- ],
1026
- "name": "builderAvailableFunded",
1027
- "outputs": [
1028
- {
1029
- "internalType": "uint256",
1030
- "name": "",
1031
- "type": "uint256"
1032
- }
1033
- ],
1034
- "stateMutability": "view",
1035
- "type": "function"
1036
- },
1037
- {
1038
- "inputs": [
1039
- {
1040
- "internalType": "address",
1041
- "name": "",
1042
- "type": "address"
1043
- }
1044
- ],
1045
- "name": "builders",
1046
- "outputs": [
1047
- {
1048
- "internalType": "bool",
1049
- "name": "active",
1050
- "type": "bool"
1051
- },
1052
- {
1053
- "internalType": "uint96",
1054
- "name": "activeFunded",
1055
- "type": "uint96"
1056
- }
1057
- ],
1058
- "stateMutability": "view",
1059
- "type": "function"
1060
- },
1061
- {
1062
- "inputs": [
1063
- {
1064
- "internalType": "uint96",
1065
- "name": "_accountSize",
1066
- "type": "uint96"
1067
- },
1068
- {
1069
- "internalType": "uint16",
1070
- "name": "_drawdownBps",
1071
- "type": "uint16"
1072
- }
1073
- ],
1074
- "name": "calculateActivationFee",
1075
- "outputs": [
1076
- {
1077
- "internalType": "uint256",
1078
- "name": "",
1079
- "type": "uint256"
1080
- }
1081
- ],
1082
- "stateMutability": "view",
1083
- "type": "function"
1084
- },
1085
- {
1086
- "inputs": [
1087
- {
1088
- "internalType": "uint96",
1089
- "name": "_accountSize",
1090
- "type": "uint96"
1091
- },
1092
- {
1093
- "internalType": "uint16",
1094
- "name": "_drawdownBps",
1095
- "type": "uint16"
1096
- },
1097
- {
1098
- "internalType": "bool",
1099
- "name": "_dailyDrawdownEnabled",
1100
- "type": "bool"
1101
- }
1102
- ],
1103
- "name": "calculateActivationFee",
1104
- "outputs": [
1105
- {
1106
- "internalType": "uint256",
1107
- "name": "",
1108
- "type": "uint256"
1109
- }
1110
- ],
1111
- "stateMutability": "view",
1112
- "type": "function"
1113
- },
1114
- {
1115
- "inputs": [
1116
- {
1117
- "internalType": "address",
1118
- "name": "",
1119
- "type": "address"
1120
- }
1121
- ],
1122
- "name": "delegateBuilder",
1123
- "outputs": [
1124
- {
1125
- "internalType": "address",
1126
- "name": "",
1127
- "type": "address"
1128
- }
1129
- ],
1130
- "stateMutability": "view",
1131
- "type": "function"
1132
- },
1133
- {
1134
- "inputs": [
1135
- {
1136
- "internalType": "uint256",
1137
- "name": "amount",
1138
- "type": "uint256"
1139
- }
1140
- ],
1141
- "name": "deposit",
1142
- "outputs": [
1143
- {
1144
- "internalType": "uint256",
1145
- "name": "sharesOut",
1146
- "type": "uint256"
1147
- }
1148
- ],
1149
- "stateMutability": "nonpayable",
1150
- "type": "function"
1151
- },
1152
- {
1153
- "inputs": [],
1154
- "name": "factory",
1155
- "outputs": [
1156
- {
1157
- "internalType": "contract IFundedAccountFactory",
1158
- "name": "",
1159
- "type": "address"
1160
- }
1161
- ],
1162
- "stateMutability": "view",
1163
- "type": "function"
1164
- },
1165
- {
1166
- "inputs": [],
1167
- "name": "feeMultiplier",
1168
- "outputs": [
1169
- {
1170
- "internalType": "uint16",
1171
- "name": "",
1172
- "type": "uint16"
1173
- }
1174
- ],
1175
- "stateMutability": "view",
1176
- "type": "function"
1177
- },
1178
- {
1179
- "inputs": [],
1180
- "name": "getAllowedPerps",
1181
- "outputs": [
1182
- {
1183
- "internalType": "uint32[]",
1184
- "name": "",
1185
- "type": "uint32[]"
1186
- }
1187
- ],
1188
- "stateMutability": "view",
1189
- "type": "function"
1190
- },
1191
- {
1192
- "inputs": [],
1193
- "name": "getAvailableForAllocation",
1194
- "outputs": [
1195
- {
1196
- "internalType": "uint256",
1197
- "name": "",
1198
- "type": "uint256"
1199
- }
1200
- ],
1201
- "stateMutability": "view",
1202
- "type": "function"
1203
- },
1204
- {
1205
- "inputs": [],
1206
- "name": "getMaxAccountSize",
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": "getRemainingCap",
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": "getUtilizationBps",
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": "hypeForSpot",
1246
- "outputs": [
1247
- {
1248
- "internalType": "uint256",
1249
- "name": "",
1250
- "type": "uint256"
1251
- }
1252
- ],
1253
- "stateMutability": "view",
1254
- "type": "function"
1255
- },
1256
- {
1257
- "inputs": [
1258
- {
1259
- "internalType": "uint32",
1260
- "name": "perpIndex",
1261
- "type": "uint32"
1262
- }
1263
- ],
1264
- "name": "isAllowedPerp",
1265
- "outputs": [
1266
- {
1267
- "internalType": "bool",
1268
- "name": "",
1269
- "type": "bool"
1270
- }
1271
- ],
1272
- "stateMutability": "view",
1273
- "type": "function"
1274
- },
1275
- {
1276
- "inputs": [
1277
- {
1278
- "internalType": "address",
1279
- "name": "",
1280
- "type": "address"
1281
- }
1282
- ],
1283
- "name": "isFundedAccount",
1284
- "outputs": [
1285
- {
1286
- "internalType": "bool",
1287
- "name": "",
1288
- "type": "bool"
1289
- }
1290
- ],
1291
- "stateMutability": "view",
1292
- "type": "function"
1293
- },
1294
- {
1295
- "inputs": [],
1296
- "name": "maxCap",
1297
- "outputs": [
1298
- {
1299
- "internalType": "uint256",
1300
- "name": "",
1301
- "type": "uint256"
1302
- }
1303
- ],
1304
- "stateMutability": "view",
1305
- "type": "function"
1306
- },
1307
- {
1308
- "inputs": [],
1309
- "name": "owner",
1310
- "outputs": [
1311
- {
1312
- "internalType": "address",
1313
- "name": "",
1314
- "type": "address"
1315
- }
1316
- ],
1317
- "stateMutability": "view",
1318
- "type": "function"
1319
- },
1320
- {
1321
- "inputs": [],
1322
- "name": "pause",
1323
- "outputs": [],
1324
- "stateMutability": "nonpayable",
1325
- "type": "function"
1326
- },
1327
- {
1328
- "inputs": [],
1329
- "name": "paused",
1330
- "outputs": [
1331
- {
1332
- "internalType": "bool",
1333
- "name": "",
1334
- "type": "bool"
1335
- }
1336
- ],
1337
- "stateMutability": "view",
1338
- "type": "function"
1339
- },
1340
- {
1341
- "inputs": [],
1342
- "name": "pendingOwner",
1343
- "outputs": [
1344
- {
1345
- "internalType": "address",
1346
- "name": "",
1347
- "type": "address"
1348
- }
1349
- ],
1350
- "stateMutability": "view",
1351
- "type": "function"
1352
- },
1353
- {
1354
- "inputs": [],
1355
- "name": "protocolFeeReceiver",
1356
- "outputs": [
1357
- {
1358
- "internalType": "address",
1359
- "name": "",
1360
- "type": "address"
1361
- }
1362
- ],
1363
- "stateMutability": "view",
1364
- "type": "function"
1365
- },
1366
- {
1367
- "inputs": [
1368
- {
1369
- "internalType": "address",
1370
- "name": "trader",
1371
- "type": "address"
1372
- },
1373
- {
1374
- "internalType": "uint256",
1375
- "name": "amount",
1376
- "type": "uint256"
1377
- },
1378
- {
1379
- "internalType": "uint96",
1380
- "name": "originalAccountSize",
1381
- "type": "uint96"
1382
- },
1383
- {
1384
- "internalType": "address",
1385
- "name": "builder",
1386
- "type": "address"
1387
- }
1388
- ],
1389
- "name": "receiveFunds",
1390
- "outputs": [],
1391
- "stateMutability": "nonpayable",
1392
- "type": "function"
1393
- },
1394
- {
1395
- "inputs": [],
1396
- "name": "registerBuilder",
1397
- "outputs": [],
1398
- "stateMutability": "nonpayable",
1399
- "type": "function"
1400
- },
1401
- {
1402
- "inputs": [],
1403
- "name": "relayer",
1404
- "outputs": [
1405
- {
1406
- "internalType": "address",
1407
- "name": "",
1408
- "type": "address"
1409
- }
1410
- ],
1411
- "stateMutability": "view",
1412
- "type": "function"
1413
- },
1414
- {
1415
- "inputs": [
1416
- {
1417
- "internalType": "uint32",
1418
- "name": "perpIndex",
1419
- "type": "uint32"
1420
- }
1421
- ],
1422
- "name": "removeAllowedPerp",
1423
- "outputs": [],
1424
- "stateMutability": "nonpayable",
1425
- "type": "function"
1426
- },
1427
- {
1428
- "inputs": [
1429
- {
1430
- "internalType": "address",
1431
- "name": "_delegate",
1432
- "type": "address"
1433
- }
1434
- ],
1435
- "name": "removeDelegate",
1436
- "outputs": [],
1437
- "stateMutability": "nonpayable",
1438
- "type": "function"
1439
- },
1440
- {
1441
- "inputs": [
1442
- {
1443
- "internalType": "uint256",
1444
- "name": "_builderLeverage",
1445
- "type": "uint256"
1446
- }
1447
- ],
1448
- "name": "setBuilderLeverage",
1449
- "outputs": [],
1450
- "stateMutability": "nonpayable",
1451
- "type": "function"
1452
- },
1453
- {
1454
- "inputs": [
1455
- {
1456
- "internalType": "uint16",
1457
- "name": "_dailyDdDiscountBps",
1458
- "type": "uint16"
1459
- }
1460
- ],
1461
- "name": "setDailyDdDiscountBps",
1462
- "outputs": [],
1463
- "stateMutability": "nonpayable",
1464
- "type": "function"
1465
- },
1466
- {
1467
- "inputs": [
1468
- {
1469
- "internalType": "address",
1470
- "name": "_delegate",
1471
- "type": "address"
1472
- }
1473
- ],
1474
- "name": "setDelegate",
1475
- "outputs": [],
1476
- "stateMutability": "nonpayable",
1477
- "type": "function"
1478
- },
1479
- {
1480
- "inputs": [
1481
- {
1482
- "internalType": "address",
1483
- "name": "_factory",
1484
- "type": "address"
1485
- }
1486
- ],
1487
- "name": "setFactory",
1488
- "outputs": [],
1489
- "stateMutability": "nonpayable",
1490
- "type": "function"
1491
- },
1492
- {
1493
- "inputs": [
1494
- {
1495
- "internalType": "uint16",
1496
- "name": "_feeMultiplier",
1497
- "type": "uint16"
1498
- }
1499
- ],
1500
- "name": "setFeeMultiplier",
1501
- "outputs": [],
1502
- "stateMutability": "nonpayable",
1503
- "type": "function"
1504
- },
1505
- {
1506
- "inputs": [
1507
- {
1508
- "internalType": "uint256",
1509
- "name": "_hypeForSpot",
1510
- "type": "uint256"
1511
- }
1512
- ],
1513
- "name": "setHypeForSpot",
1514
- "outputs": [],
1515
- "stateMutability": "nonpayable",
1516
- "type": "function"
1517
- },
1518
- {
1519
- "inputs": [
1520
- {
1521
- "internalType": "uint96",
1522
- "name": "_maxAccountSize",
1523
- "type": "uint96"
1524
- }
1525
- ],
1526
- "name": "setMaxAccountSize",
1527
- "outputs": [],
1528
- "stateMutability": "nonpayable",
1529
- "type": "function"
1530
- },
1531
- {
1532
- "inputs": [
1533
- {
1534
- "internalType": "uint256",
1535
- "name": "_maxCap",
1536
- "type": "uint256"
1537
- }
1538
- ],
1539
- "name": "setMaxCap",
1540
- "outputs": [],
1541
- "stateMutability": "nonpayable",
1542
- "type": "function"
1543
- },
1544
- {
1545
- "inputs": [
1546
- {
1547
- "internalType": "uint16",
1548
- "name": "_maxDrawdownBps",
1549
- "type": "uint16"
1550
- }
1551
- ],
1552
- "name": "setMaxDrawdownBps",
1553
- "outputs": [],
1554
- "stateMutability": "nonpayable",
1555
- "type": "function"
1556
- },
1557
- {
1558
- "inputs": [
1559
- {
1560
- "internalType": "uint256",
1561
- "name": "_maxSingleAccountBps",
1562
- "type": "uint256"
1563
- }
1564
- ],
1565
- "name": "setMaxSingleAccountBps",
1566
- "outputs": [],
1567
- "stateMutability": "nonpayable",
1568
- "type": "function"
1569
- },
1570
- {
1571
- "inputs": [
1572
- {
1573
- "internalType": "uint256",
1574
- "name": "_maxUtilizationBps",
1575
- "type": "uint256"
1576
- }
1577
- ],
1578
- "name": "setMaxUtilizationBps",
1579
- "outputs": [],
1580
- "stateMutability": "nonpayable",
1581
- "type": "function"
1582
- },
1583
- {
1584
- "inputs": [
1585
- {
1586
- "internalType": "uint96",
1587
- "name": "_minAccountSize",
1588
- "type": "uint96"
1589
- }
1590
- ],
1591
- "name": "setMinAccountSize",
1592
- "outputs": [],
1593
- "stateMutability": "nonpayable",
1594
- "type": "function"
1595
- },
1596
- {
1597
- "inputs": [
1598
- {
1599
- "internalType": "uint256",
1600
- "name": "_minBuilderShares",
1601
- "type": "uint256"
1602
- }
1603
- ],
1604
- "name": "setMinBuilderShares",
1605
- "outputs": [],
1606
- "stateMutability": "nonpayable",
1607
- "type": "function"
1608
- },
1609
- {
1610
- "inputs": [
1611
- {
1612
- "internalType": "uint16",
1613
- "name": "_minDrawdownBps",
1614
- "type": "uint16"
1615
- }
1616
- ],
1617
- "name": "setMinDrawdownBps",
1618
- "outputs": [],
1619
- "stateMutability": "nonpayable",
1620
- "type": "function"
1621
- },
1622
- {
1623
- "inputs": [
1624
- {
1625
- "internalType": "uint256",
1626
- "name": "_protocolFeeBps",
1627
- "type": "uint256"
1628
- }
1629
- ],
1630
- "name": "setProtocolFeeBps",
1631
- "outputs": [],
1632
- "stateMutability": "nonpayable",
1633
- "type": "function"
1634
- },
1635
- {
1636
- "inputs": [
1637
- {
1638
- "internalType": "address",
1639
- "name": "_receiver",
1640
- "type": "address"
1641
- }
1642
- ],
1643
- "name": "setProtocolFeeReceiver",
1644
- "outputs": [],
1645
- "stateMutability": "nonpayable",
1646
- "type": "function"
1647
- },
1648
- {
1649
- "inputs": [
1650
- {
1651
- "internalType": "address",
1652
- "name": "_relayer",
1653
- "type": "address"
1654
- }
1655
- ],
1656
- "name": "setRelayer",
1657
- "outputs": [],
1658
- "stateMutability": "nonpayable",
1659
- "type": "function"
1660
- },
1661
- {
1662
- "inputs": [
1663
- {
1664
- "internalType": "uint16",
1665
- "name": "_subscriptionFeeMultiplier",
1666
- "type": "uint16"
1667
- }
1668
- ],
1669
- "name": "setSubscriptionFeeMultiplier",
1670
- "outputs": [],
1671
- "stateMutability": "nonpayable",
1672
- "type": "function"
1673
- },
1674
- {
1675
- "inputs": [],
1676
- "name": "sharePrice",
1677
- "outputs": [
1678
- {
1679
- "internalType": "uint256",
1680
- "name": "",
1681
- "type": "uint256"
1682
- }
1683
- ],
1684
- "stateMutability": "view",
1685
- "type": "function"
1686
- },
1687
- {
1688
- "inputs": [
1689
- {
1690
- "internalType": "address",
1691
- "name": "",
1692
- "type": "address"
1693
- }
1694
- ],
1695
- "name": "shares",
1696
- "outputs": [
1697
- {
1698
- "internalType": "uint256",
1699
- "name": "",
1700
- "type": "uint256"
1701
- }
1702
- ],
1703
- "stateMutability": "view",
1704
- "type": "function"
1705
- },
1706
- {
1707
- "inputs": [
1708
- {
1709
- "internalType": "address",
1710
- "name": "account",
1711
- "type": "address"
1712
- }
1713
- ],
1714
- "name": "sharesValue",
1715
- "outputs": [
1716
- {
1717
- "internalType": "uint256",
1718
- "name": "",
1719
- "type": "uint256"
1720
- }
1721
- ],
1722
- "stateMutability": "view",
1723
- "type": "function"
1724
- },
1725
- {
1726
- "inputs": [],
1727
- "name": "subscriptionFeeMultiplier",
1728
- "outputs": [
1729
- {
1730
- "internalType": "uint16",
1731
- "name": "",
1732
- "type": "uint16"
1733
- }
1734
- ],
1735
- "stateMutability": "view",
1736
- "type": "function"
1737
- },
1738
- {
1739
- "inputs": [],
1740
- "name": "totalAllocated",
1741
- "outputs": [
1742
- {
1743
- "internalType": "uint256",
1744
- "name": "",
1745
- "type": "uint256"
1746
- }
1747
- ],
1748
- "stateMutability": "view",
1749
- "type": "function"
1750
- },
1751
- {
1752
- "inputs": [],
1753
- "name": "totalAssets",
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": "totalShares",
1767
- "outputs": [
1768
- {
1769
- "internalType": "uint256",
1770
- "name": "",
1771
- "type": "uint256"
1772
- }
1773
- ],
1774
- "stateMutability": "view",
1775
- "type": "function"
1776
- },
1777
- {
1778
- "inputs": [
1779
- {
1780
- "internalType": "address",
1781
- "name": "newOwner",
1782
- "type": "address"
1783
- }
1784
- ],
1785
- "name": "transferOwnership",
1786
- "outputs": [],
1787
- "stateMutability": "nonpayable",
1788
- "type": "function"
1789
- },
1790
- {
1791
- "inputs": [],
1792
- "name": "unpause",
1793
- "outputs": [],
1794
- "stateMutability": "nonpayable",
1795
- "type": "function"
1796
- },
1797
- {
1798
- "inputs": [],
1799
- "name": "usdc",
1800
- "outputs": [
1801
- {
1802
- "internalType": "contract IERC20",
1803
- "name": "",
1804
- "type": "address"
1805
- }
1806
- ],
1807
- "stateMutability": "view",
1808
- "type": "function"
1809
- },
1810
- {
1811
- "inputs": [
1812
- {
1813
- "internalType": "uint256",
1814
- "name": "sharesToBurn",
1815
- "type": "uint256"
1816
- }
1817
- ],
1818
- "name": "withdraw",
1819
- "outputs": [
1820
- {
1821
- "internalType": "uint256",
1822
- "name": "amountOut",
1823
- "type": "uint256"
1824
- }
1825
- ],
1826
- "stateMutability": "nonpayable",
1827
- "type": "function"
1828
- },
1829
- {
1830
- "inputs": [
1831
- {
1832
- "internalType": "address",
1833
- "name": "account",
1834
- "type": "address"
1835
- }
1836
- ],
1837
- "name": "withdrawableShares",
1838
- "outputs": [
1839
- {
1840
- "internalType": "uint256",
1841
- "name": "",
1842
- "type": "uint256"
1843
- }
1844
- ],
1845
- "stateMutability": "view",
1846
- "type": "function"
1847
- },
1848
- {
1849
- "stateMutability": "payable",
1850
- "type": "receive"
1851
- }
1852
- ] as const;