hedge-web3 0.2.33 → 0.3.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 (150) hide show
  1. package/declarations/Constants.d.ts +0 -12
  2. package/declarations/HedgeConstants.d.ts +76 -0
  3. package/declarations/idl/pyth.d.ts +1 -1
  4. package/declarations/idl/switchboard.d.ts +1 -1
  5. package/declarations/idl/vault.d.ts +2 -843
  6. package/declarations/index.d.ts +1 -12
  7. package/declarations/instructions/claimLiquidationPoolPosition.d.ts +1 -1
  8. package/declarations/instructions/claimStakingPoolPosition.d.ts +1 -1
  9. package/declarations/instructions/closeClaimedLiquidationPoolPosition.d.ts +1 -1
  10. package/declarations/instructions/closeLiquidationPoolPosition.d.ts +1 -1
  11. package/declarations/instructions/createReferralAccount.d.ts +1 -1
  12. package/declarations/instructions/createStakingPool.d.ts +1 -1
  13. package/declarations/instructions/createUserReferralAccount.d.ts +1 -1
  14. package/declarations/instructions/createVault.d.ts +1 -2
  15. package/declarations/instructions/depositLiquidationPool.d.ts +1 -2
  16. package/declarations/instructions/depositStakingPool.d.ts +1 -2
  17. package/declarations/instructions/depositVault.d.ts +1 -2
  18. package/declarations/instructions/initHedgeFoundation.d.ts +1 -1
  19. package/declarations/instructions/initHedgeFoundationTokens.d.ts +1 -1
  20. package/declarations/instructions/liquidateVault.d.ts +1 -1
  21. package/declarations/instructions/loanVault.d.ts +1 -2
  22. package/declarations/instructions/psmEditAccount.d.ts +1 -2
  23. package/declarations/instructions/psmMintUsh.d.ts +1 -2
  24. package/declarations/instructions/psmRedeemUsh.d.ts +1 -2
  25. package/declarations/instructions/redeemVault.d.ts +1 -2
  26. package/declarations/instructions/referralClaimFees.d.ts +1 -1
  27. package/declarations/instructions/refreshOraclePrice.d.ts +1 -1
  28. package/declarations/instructions/repayVault.d.ts +1 -2
  29. package/declarations/instructions/setHalted.d.ts +1 -1
  30. package/declarations/instructions/transferVault.d.ts +1 -1
  31. package/declarations/instructions/updateReferralAccount.d.ts +1 -2
  32. package/declarations/instructions/updateReferralState.d.ts +1 -2
  33. package/declarations/instructions/updateVaultType.d.ts +1 -2
  34. package/declarations/instructions/withdrawStakingPool.d.ts +1 -1
  35. package/declarations/instructions/withdrawVault.d.ts +1 -2
  36. package/declarations/state/VaultAccount.d.ts +2 -3
  37. package/declarations/utils/getLinkedListAccounts.d.ts +1 -2
  38. package/lib/Constants.js +27 -54
  39. package/lib/HedgeConstants.js +170 -0
  40. package/lib/HedgeDecimal.js +1 -2
  41. package/lib/StakingPools.js +5 -1
  42. package/lib/Vaults.js +5 -1
  43. package/lib/idl/vault.js +1 -842
  44. package/lib/index.js +6 -13
  45. package/lib/instructions/claimLiquidationPoolPosition.js +7 -8
  46. package/lib/instructions/claimStakingPoolPosition.js +7 -8
  47. package/lib/instructions/closeClaimedLiquidationPoolPosition.js +2 -3
  48. package/lib/instructions/closeLiquidationPoolPosition.js +16 -17
  49. package/lib/instructions/createReferralAccount.js +10 -11
  50. package/lib/instructions/createStakingPool.js +10 -11
  51. package/lib/instructions/createUserReferralAccount.js +9 -10
  52. package/lib/instructions/createVault.js +20 -21
  53. package/lib/instructions/depositLiquidationPool.js +12 -13
  54. package/lib/instructions/depositStakingPool.js +8 -9
  55. package/lib/instructions/depositVault.js +10 -11
  56. package/lib/instructions/initHedgeFoundation.js +10 -11
  57. package/lib/instructions/initHedgeFoundationTokens.js +7 -8
  58. package/lib/instructions/liquidateVault.js +12 -19
  59. package/lib/instructions/loanVault.js +16 -23
  60. package/lib/instructions/psmEditAccount.js +11 -11
  61. package/lib/instructions/psmMintUsh.js +18 -19
  62. package/lib/instructions/psmRedeemUsh.js +18 -19
  63. package/lib/instructions/redeemVault.js +10 -11
  64. package/lib/instructions/referralClaimFees.js +9 -10
  65. package/lib/instructions/refreshOraclePrice.js +9 -9
  66. package/lib/instructions/repayVault.js +12 -13
  67. package/lib/instructions/setHalted.js +4 -5
  68. package/lib/instructions/transferVault.js +2 -3
  69. package/lib/instructions/updateReferralAccount.js +6 -7
  70. package/lib/instructions/updateReferralState.js +6 -7
  71. package/lib/instructions/updateVaultType.js +5 -6
  72. package/lib/instructions/withdrawStakingPool.js +14 -15
  73. package/lib/instructions/withdrawVault.js +8 -9
  74. package/lib/state/VaultAccount.js +22 -8
  75. package/lib/state/VaultHistoryEvent.js +2 -2
  76. package/lib/utils/Errors.js +2 -3
  77. package/lib/utils/getLinkedListAccounts.js +2 -3
  78. package/lib/utils/sendAndConfirmWithDebug.js +1 -1
  79. package/package.json +9 -8
  80. package/src/{Constants.ts → HedgeConstants.ts} +13 -43
  81. package/src/idl/vault.ts +2342 -4024
  82. package/src/index.ts +3 -12
  83. package/src/instructions/claimLiquidationPoolPosition.ts +2 -2
  84. package/src/instructions/claimStakingPoolPosition.ts +2 -2
  85. package/src/instructions/closeClaimedLiquidationPoolPosition.ts +1 -1
  86. package/src/instructions/closeLiquidationPoolPosition.ts +2 -2
  87. package/src/instructions/createReferralAccount.ts +11 -8
  88. package/src/instructions/createStakingPool.ts +11 -4
  89. package/src/instructions/createUserReferralAccount.ts +2 -2
  90. package/src/instructions/createVault.ts +2 -2
  91. package/src/instructions/depositLiquidationPool.ts +2 -2
  92. package/src/instructions/depositStakingPool.ts +2 -2
  93. package/src/instructions/depositVault.ts +2 -2
  94. package/src/instructions/initHedgeFoundation.ts +2 -2
  95. package/src/instructions/initHedgeFoundationTokens.ts +2 -2
  96. package/src/instructions/liquidateVault.ts +29 -39
  97. package/src/instructions/loanVault.ts +23 -36
  98. package/src/instructions/psmEditAccount.ts +3 -3
  99. package/src/instructions/psmMintUsh.ts +3 -3
  100. package/src/instructions/psmRedeemUsh.ts +3 -3
  101. package/src/instructions/redeemVault.ts +2 -2
  102. package/src/instructions/referralClaimFees.ts +11 -9
  103. package/src/instructions/refreshOraclePrice.ts +4 -4
  104. package/src/instructions/repayVault.ts +2 -2
  105. package/src/instructions/setHalted.ts +2 -2
  106. package/src/instructions/transferVault.ts +1 -1
  107. package/src/instructions/updateReferralAccount.ts +2 -2
  108. package/src/instructions/updateReferralState.ts +2 -2
  109. package/src/instructions/updateVaultType.ts +2 -2
  110. package/src/instructions/withdrawStakingPool.ts +2 -2
  111. package/src/instructions/withdrawVault.ts +2 -2
  112. package/src/utils/Errors.ts +1 -1
  113. package/src/utils/getLinkedListAccounts.ts +1 -1
  114. package/declarations/instructions/adminWithdrawCol.d.ts +0 -5
  115. package/declarations/instructions/adminWithdrawUsh.d.ts +0 -5
  116. package/declarations/instructions/compoundCreateReferralAccount.d.ts +0 -17
  117. package/declarations/instructions/compoundReferralClaimFees.d.ts +0 -16
  118. package/declarations/instructions/createCompoundStakingPool.d.ts +0 -5
  119. package/declarations/instructions/createCompoundStakingPoolPosition.d.ts +0 -6
  120. package/declarations/instructions/depositCompoundStakingPoolPosition.d.ts +0 -6
  121. package/declarations/instructions/depositRewardsToCompoundPool.d.ts +0 -6
  122. package/declarations/instructions/setCompoundPoolActive.d.ts +0 -5
  123. package/declarations/instructions/setDelegateWallet.d.ts +0 -5
  124. package/declarations/instructions/setVaultTypeStatus.d.ts +0 -4
  125. package/declarations/instructions/withdrawCompoundStakingPoolPosition.d.ts +0 -6
  126. package/declarations/utils/Sender.d.ts +0 -2
  127. package/lib/instructions/adminWithdrawCol.js +0 -60
  128. package/lib/instructions/adminWithdrawUsh.js +0 -57
  129. package/lib/instructions/compoundCreateReferralAccount.js +0 -83
  130. package/lib/instructions/compoundReferralClaimFees.js +0 -87
  131. package/lib/instructions/createCompoundStakingPool.js +0 -58
  132. package/lib/instructions/createCompoundStakingPoolPosition.js +0 -56
  133. package/lib/instructions/depositCompoundStakingPoolPosition.js +0 -55
  134. package/lib/instructions/depositRewardsToCompoundPool.js +0 -64
  135. package/lib/instructions/setCompoundPoolActive.js +0 -43
  136. package/lib/instructions/setDelegateWallet.js +0 -43
  137. package/lib/instructions/setVaultTypeStatus.js +0 -38
  138. package/lib/instructions/withdrawCompoundStakingPoolPosition.js +0 -64
  139. package/lib/utils/Sender.js +0 -32
  140. package/src/instructions/adminWithdrawCol.ts +0 -87
  141. package/src/instructions/adminWithdrawUsh.ts +0 -78
  142. package/src/instructions/compoundCreateReferralAccount.ts +0 -119
  143. package/src/instructions/compoundReferralClaimFees.ts +0 -151
  144. package/src/instructions/createCompoundStakingPool.ts +0 -63
  145. package/src/instructions/createCompoundStakingPoolPosition.ts +0 -85
  146. package/src/instructions/depositCompoundStakingPoolPosition.ts +0 -78
  147. package/src/instructions/depositRewardsToCompoundPool.ts +0 -110
  148. package/src/instructions/setCompoundPoolActive.ts +0 -51
  149. package/src/instructions/setDelegateWallet.ts +0 -51
  150. package/src/instructions/withdrawCompoundStakingPoolPosition.ts +0 -100
@@ -1,4 +1,4 @@
1
- export declare type Vault = {
1
+ export type Vault = {
2
2
  "version": "0.1.0";
3
3
  "name": "vault";
4
4
  "instructions": [
@@ -2408,683 +2408,6 @@ export declare type Vault = {
2408
2408
  "type": "publicKey";
2409
2409
  }
2410
2410
  ];
2411
- },
2412
- {
2413
- "name": "createCompoundStakingPool";
2414
- "accounts": [
2415
- {
2416
- "name": "signer";
2417
- "isMut": true;
2418
- "isSigner": true;
2419
- },
2420
- {
2421
- "name": "vaultSystemState";
2422
- "isMut": true;
2423
- "isSigner": false;
2424
- },
2425
- {
2426
- "name": "pool";
2427
- "isMut": true;
2428
- "isSigner": false;
2429
- },
2430
- {
2431
- "name": "hedgeMint";
2432
- "isMut": true;
2433
- "isSigner": false;
2434
- },
2435
- {
2436
- "name": "ushMint";
2437
- "isMut": false;
2438
- "isSigner": false;
2439
- },
2440
- {
2441
- "name": "stakedTokenMint";
2442
- "isMut": false;
2443
- "isSigner": false;
2444
- },
2445
- {
2446
- "name": "poolAssociatedStakedTokenAccount";
2447
- "isMut": true;
2448
- "isSigner": false;
2449
- },
2450
- {
2451
- "name": "poolAssociatedUshTokenAccount";
2452
- "isMut": true;
2453
- "isSigner": false;
2454
- },
2455
- {
2456
- "name": "associatedTokenProgram";
2457
- "isMut": false;
2458
- "isSigner": false;
2459
- },
2460
- {
2461
- "name": "systemProgram";
2462
- "isMut": false;
2463
- "isSigner": false;
2464
- },
2465
- {
2466
- "name": "tokenProgram";
2467
- "isMut": false;
2468
- "isSigner": false;
2469
- },
2470
- {
2471
- "name": "rent";
2472
- "isMut": false;
2473
- "isSigner": false;
2474
- }
2475
- ];
2476
- "args": [
2477
- {
2478
- "name": "overrideCurrentTime";
2479
- "type": "i64";
2480
- }
2481
- ];
2482
- },
2483
- {
2484
- "name": "createCompoundStakingPoolPosition";
2485
- "accounts": [
2486
- {
2487
- "name": "payer";
2488
- "isMut": true;
2489
- "isSigner": true;
2490
- },
2491
- {
2492
- "name": "vaultSystemState";
2493
- "isMut": true;
2494
- "isSigner": false;
2495
- },
2496
- {
2497
- "name": "pool";
2498
- "isMut": true;
2499
- "isSigner": false;
2500
- },
2501
- {
2502
- "name": "stakedTokenMint";
2503
- "isMut": false;
2504
- "isSigner": false;
2505
- },
2506
- {
2507
- "name": "poolPosition";
2508
- "isMut": true;
2509
- "isSigner": false;
2510
- },
2511
- {
2512
- "name": "payerAssociatedStakedTokenAccount";
2513
- "isMut": true;
2514
- "isSigner": false;
2515
- },
2516
- {
2517
- "name": "poolAssociatedStakedTokenAccount";
2518
- "isMut": true;
2519
- "isSigner": false;
2520
- },
2521
- {
2522
- "name": "systemProgram";
2523
- "isMut": false;
2524
- "isSigner": false;
2525
- },
2526
- {
2527
- "name": "tokenProgram";
2528
- "isMut": false;
2529
- "isSigner": false;
2530
- },
2531
- {
2532
- "name": "rent";
2533
- "isMut": false;
2534
- "isSigner": false;
2535
- }
2536
- ];
2537
- "args": [
2538
- {
2539
- "name": "amount";
2540
- "type": "u64";
2541
- },
2542
- {
2543
- "name": "overrideCurrentTime";
2544
- "type": "i64";
2545
- }
2546
- ];
2547
- },
2548
- {
2549
- "name": "depositCompoundStakingPoolPosition";
2550
- "accounts": [
2551
- {
2552
- "name": "payer";
2553
- "isMut": true;
2554
- "isSigner": true;
2555
- },
2556
- {
2557
- "name": "vaultSystemState";
2558
- "isMut": true;
2559
- "isSigner": false;
2560
- },
2561
- {
2562
- "name": "pool";
2563
- "isMut": true;
2564
- "isSigner": false;
2565
- },
2566
- {
2567
- "name": "stakedTokenMint";
2568
- "isMut": false;
2569
- "isSigner": false;
2570
- },
2571
- {
2572
- "name": "poolPosition";
2573
- "isMut": true;
2574
- "isSigner": false;
2575
- },
2576
- {
2577
- "name": "payerAssociatedStakedTokenAccount";
2578
- "isMut": true;
2579
- "isSigner": false;
2580
- },
2581
- {
2582
- "name": "poolAssociatedStakedTokenAccount";
2583
- "isMut": true;
2584
- "isSigner": false;
2585
- },
2586
- {
2587
- "name": "systemProgram";
2588
- "isMut": false;
2589
- "isSigner": false;
2590
- },
2591
- {
2592
- "name": "tokenProgram";
2593
- "isMut": false;
2594
- "isSigner": false;
2595
- }
2596
- ];
2597
- "args": [
2598
- {
2599
- "name": "amount";
2600
- "type": "u64";
2601
- },
2602
- {
2603
- "name": "overrideCurrentTime";
2604
- "type": "i64";
2605
- }
2606
- ];
2607
- },
2608
- {
2609
- "name": "withdrawCompoundStakingPoolPosition";
2610
- "accounts": [
2611
- {
2612
- "name": "payer";
2613
- "isMut": true;
2614
- "isSigner": true;
2615
- },
2616
- {
2617
- "name": "vaultSystemState";
2618
- "isMut": true;
2619
- "isSigner": false;
2620
- },
2621
- {
2622
- "name": "pool";
2623
- "isMut": true;
2624
- "isSigner": false;
2625
- },
2626
- {
2627
- "name": "poolPosition";
2628
- "isMut": true;
2629
- "isSigner": false;
2630
- },
2631
- {
2632
- "name": "hedgeMint";
2633
- "isMut": true;
2634
- "isSigner": false;
2635
- },
2636
- {
2637
- "name": "stakedTokenMint";
2638
- "isMut": true;
2639
- "isSigner": false;
2640
- },
2641
- {
2642
- "name": "payerAssociatedStakedTokenAccount";
2643
- "isMut": true;
2644
- "isSigner": false;
2645
- },
2646
- {
2647
- "name": "poolAssociatedStakedTokenAccount";
2648
- "isMut": true;
2649
- "isSigner": false;
2650
- },
2651
- {
2652
- "name": "systemProgram";
2653
- "isMut": false;
2654
- "isSigner": false;
2655
- },
2656
- {
2657
- "name": "tokenProgram";
2658
- "isMut": false;
2659
- "isSigner": false;
2660
- }
2661
- ];
2662
- "args": [
2663
- {
2664
- "name": "overrideCurrentTime";
2665
- "type": "i64";
2666
- },
2667
- {
2668
- "name": "claimAmount";
2669
- "type": "u64";
2670
- }
2671
- ];
2672
- },
2673
- {
2674
- "name": "adminWithdrawColAta";
2675
- "accounts": [
2676
- {
2677
- "name": "payer";
2678
- "isMut": true;
2679
- "isSigner": true;
2680
- },
2681
- {
2682
- "name": "vaultSystemState";
2683
- "isMut": true;
2684
- "isSigner": false;
2685
- },
2686
- {
2687
- "name": "vaultTypeAccount";
2688
- "isMut": true;
2689
- "isSigner": false;
2690
- },
2691
- {
2692
- "name": "stakedTokenMint";
2693
- "isMut": true;
2694
- "isSigner": false;
2695
- },
2696
- {
2697
- "name": "pool";
2698
- "isMut": true;
2699
- "isSigner": false;
2700
- },
2701
- {
2702
- "name": "poolAssociatedTokenAccount";
2703
- "isMut": true;
2704
- "isSigner": false;
2705
- },
2706
- {
2707
- "name": "delegateAssociatedColAccount";
2708
- "isMut": true;
2709
- "isSigner": false;
2710
- },
2711
- {
2712
- "name": "associatedTokenProgram";
2713
- "isMut": false;
2714
- "isSigner": false;
2715
- },
2716
- {
2717
- "name": "systemProgram";
2718
- "isMut": false;
2719
- "isSigner": false;
2720
- },
2721
- {
2722
- "name": "tokenProgram";
2723
- "isMut": false;
2724
- "isSigner": false;
2725
- }
2726
- ];
2727
- "args": [];
2728
- },
2729
- {
2730
- "name": "adminWithdrawUshAta";
2731
- "accounts": [
2732
- {
2733
- "name": "payer";
2734
- "isMut": true;
2735
- "isSigner": true;
2736
- },
2737
- {
2738
- "name": "vaultSystemState";
2739
- "isMut": true;
2740
- "isSigner": false;
2741
- },
2742
- {
2743
- "name": "stakedTokenMint";
2744
- "isMut": true;
2745
- "isSigner": false;
2746
- },
2747
- {
2748
- "name": "pool";
2749
- "isMut": true;
2750
- "isSigner": false;
2751
- },
2752
- {
2753
- "name": "ushMint";
2754
- "isMut": false;
2755
- "isSigner": false;
2756
- },
2757
- {
2758
- "name": "poolAssociatedTokenAccount";
2759
- "isMut": true;
2760
- "isSigner": false;
2761
- },
2762
- {
2763
- "name": "delegateAssociatedUshAccount";
2764
- "isMut": true;
2765
- "isSigner": false;
2766
- },
2767
- {
2768
- "name": "associatedTokenProgram";
2769
- "isMut": false;
2770
- "isSigner": false;
2771
- },
2772
- {
2773
- "name": "systemProgram";
2774
- "isMut": false;
2775
- "isSigner": false;
2776
- },
2777
- {
2778
- "name": "tokenProgram";
2779
- "isMut": false;
2780
- "isSigner": false;
2781
- }
2782
- ];
2783
- "args": [];
2784
- },
2785
- {
2786
- "name": "depositRewardsToCompoundPool";
2787
- "accounts": [
2788
- {
2789
- "name": "payer";
2790
- "isMut": true;
2791
- "isSigner": true;
2792
- },
2793
- {
2794
- "name": "vaultSystemState";
2795
- "isMut": true;
2796
- "isSigner": false;
2797
- },
2798
- {
2799
- "name": "history";
2800
- "isMut": true;
2801
- "isSigner": true;
2802
- },
2803
- {
2804
- "name": "hedgeMint";
2805
- "isMut": true;
2806
- "isSigner": false;
2807
- },
2808
- {
2809
- "name": "stakedTokenMint";
2810
- "isMut": true;
2811
- "isSigner": false;
2812
- },
2813
- {
2814
- "name": "compoundPool";
2815
- "isMut": true;
2816
- "isSigner": false;
2817
- },
2818
- {
2819
- "name": "pool";
2820
- "isMut": true;
2821
- "isSigner": false;
2822
- },
2823
- {
2824
- "name": "poolAssociatedHedgeAccount";
2825
- "isMut": true;
2826
- "isSigner": false;
2827
- },
2828
- {
2829
- "name": "payerAssociatedHedgeAccount";
2830
- "isMut": true;
2831
- "isSigner": false;
2832
- },
2833
- {
2834
- "name": "associatedTokenProgram";
2835
- "isMut": false;
2836
- "isSigner": false;
2837
- },
2838
- {
2839
- "name": "systemProgram";
2840
- "isMut": false;
2841
- "isSigner": false;
2842
- },
2843
- {
2844
- "name": "tokenProgram";
2845
- "isMut": false;
2846
- "isSigner": false;
2847
- }
2848
- ];
2849
- "args": [
2850
- {
2851
- "name": "payerRewardsTokenDeposit";
2852
- "type": "u64";
2853
- },
2854
- {
2855
- "name": "overrideCurrentTime";
2856
- "type": "i64";
2857
- }
2858
- ];
2859
- },
2860
- {
2861
- "name": "setDelegateWallet";
2862
- "accounts": [
2863
- {
2864
- "name": "payer";
2865
- "isMut": true;
2866
- "isSigner": true;
2867
- },
2868
- {
2869
- "name": "vaultSystemState";
2870
- "isMut": true;
2871
- "isSigner": false;
2872
- },
2873
- {
2874
- "name": "pool";
2875
- "isMut": true;
2876
- "isSigner": false;
2877
- },
2878
- {
2879
- "name": "stakedTokenMint";
2880
- "isMut": true;
2881
- "isSigner": false;
2882
- }
2883
- ];
2884
- "args": [
2885
- {
2886
- "name": "delegateWallet";
2887
- "type": "publicKey";
2888
- }
2889
- ];
2890
- },
2891
- {
2892
- "name": "setCompoundPoolActive";
2893
- "accounts": [
2894
- {
2895
- "name": "payer";
2896
- "isMut": true;
2897
- "isSigner": true;
2898
- },
2899
- {
2900
- "name": "vaultSystemState";
2901
- "isMut": true;
2902
- "isSigner": false;
2903
- },
2904
- {
2905
- "name": "pool";
2906
- "isMut": true;
2907
- "isSigner": false;
2908
- },
2909
- {
2910
- "name": "stakedTokenMint";
2911
- "isMut": true;
2912
- "isSigner": false;
2913
- }
2914
- ];
2915
- "args": [
2916
- {
2917
- "name": "setActive";
2918
- "type": "bool";
2919
- }
2920
- ];
2921
- },
2922
- {
2923
- "name": "compoundCreateReferralAccount";
2924
- "accounts": [
2925
- {
2926
- "name": "signer";
2927
- "isMut": true;
2928
- "isSigner": true;
2929
- },
2930
- {
2931
- "name": "vaultSystemState";
2932
- "isMut": true;
2933
- "isSigner": false;
2934
- },
2935
- {
2936
- "name": "referralState";
2937
- "isMut": true;
2938
- "isSigner": false;
2939
- },
2940
- {
2941
- "name": "referralAccount";
2942
- "isMut": true;
2943
- "isSigner": false;
2944
- },
2945
- {
2946
- "name": "userReferralAccount";
2947
- "isMut": true;
2948
- "isSigner": false;
2949
- },
2950
- {
2951
- "name": "poolPosition";
2952
- "isMut": true;
2953
- "isSigner": false;
2954
- },
2955
- {
2956
- "name": "hedgeMint";
2957
- "isMut": true;
2958
- "isSigner": false;
2959
- },
2960
- {
2961
- "name": "hdgAta";
2962
- "isMut": true;
2963
- "isSigner": false;
2964
- },
2965
- {
2966
- "name": "pool";
2967
- "isMut": true;
2968
- "isSigner": false;
2969
- },
2970
- {
2971
- "name": "stakedTokenMint";
2972
- "isMut": true;
2973
- "isSigner": false;
2974
- },
2975
- {
2976
- "name": "systemProgram";
2977
- "isMut": false;
2978
- "isSigner": false;
2979
- },
2980
- {
2981
- "name": "tokenProgram";
2982
- "isMut": false;
2983
- "isSigner": false;
2984
- },
2985
- {
2986
- "name": "rent";
2987
- "isMut": false;
2988
- "isSigner": false;
2989
- }
2990
- ];
2991
- "args": [
2992
- {
2993
- "name": "overrideCurrentTime";
2994
- "type": "i64";
2995
- }
2996
- ];
2997
- },
2998
- {
2999
- "name": "compoundReferralClaimFees";
3000
- "accounts": [
3001
- {
3002
- "name": "signer";
3003
- "isMut": true;
3004
- "isSigner": true;
3005
- },
3006
- {
3007
- "name": "vaultSystemState";
3008
- "isMut": true;
3009
- "isSigner": false;
3010
- },
3011
- {
3012
- "name": "referralState";
3013
- "isMut": true;
3014
- "isSigner": false;
3015
- },
3016
- {
3017
- "name": "referralAccount";
3018
- "isMut": true;
3019
- "isSigner": false;
3020
- },
3021
- {
3022
- "name": "poolPosition";
3023
- "isMut": true;
3024
- "isSigner": false;
3025
- },
3026
- {
3027
- "name": "hedgeMint";
3028
- "isMut": true;
3029
- "isSigner": false;
3030
- },
3031
- {
3032
- "name": "signerHdgAta";
3033
- "isMut": true;
3034
- "isSigner": false;
3035
- },
3036
- {
3037
- "name": "ushMint";
3038
- "isMut": true;
3039
- "isSigner": false;
3040
- },
3041
- {
3042
- "name": "signerUshAta";
3043
- "isMut": true;
3044
- "isSigner": false;
3045
- },
3046
- {
3047
- "name": "communityAssociatedHedgeTokenAccount";
3048
- "isMut": true;
3049
- "isSigner": false;
3050
- },
3051
- {
3052
- "name": "feePool";
3053
- "isMut": true;
3054
- "isSigner": false;
3055
- },
3056
- {
3057
- "name": "feePoolAssociatedUshTokenAccount";
3058
- "isMut": true;
3059
- "isSigner": false;
3060
- },
3061
- {
3062
- "name": "pool";
3063
- "isMut": true;
3064
- "isSigner": false;
3065
- },
3066
- {
3067
- "name": "stakedTokenMint";
3068
- "isMut": false;
3069
- "isSigner": false;
3070
- },
3071
- {
3072
- "name": "systemProgram";
3073
- "isMut": false;
3074
- "isSigner": false;
3075
- },
3076
- {
3077
- "name": "tokenProgram";
3078
- "isMut": false;
3079
- "isSigner": false;
3080
- },
3081
- {
3082
- "name": "rent";
3083
- "isMut": false;
3084
- "isSigner": false;
3085
- }
3086
- ];
3087
- "args": [];
3088
2411
  }
3089
2412
  ];
3090
2413
  "accounts": [
@@ -3159,98 +2482,6 @@ export declare type Vault = {
3159
2482
  ];
3160
2483
  };
3161
2484
  },
3162
- {
3163
- "name": "poolHistoryEvent";
3164
- "type": {
3165
- "kind": "struct";
3166
- "fields": [
3167
- {
3168
- "name": "poolAccount";
3169
- "type": "publicKey";
3170
- },
3171
- {
3172
- "name": "accumRatio";
3173
- "type": "u128";
3174
- },
3175
- {
3176
- "name": "timestamp";
3177
- "type": "u64";
3178
- }
3179
- ];
3180
- };
3181
- },
3182
- {
3183
- "name": "compoundStakingPoolPosition";
3184
- "type": {
3185
- "kind": "struct";
3186
- "fields": [
3187
- {
3188
- "name": "owner";
3189
- "type": "publicKey";
3190
- },
3191
- {
3192
- "name": "pool";
3193
- "type": "publicKey";
3194
- },
3195
- {
3196
- "name": "timestampOpened";
3197
- "type": "u64";
3198
- },
3199
- {
3200
- "name": "denormalizedDeposited";
3201
- "type": "u64";
3202
- },
3203
- {
3204
- "name": "timelockPeriod";
3205
- "type": "u64";
3206
- },
3207
- {
3208
- "name": "state";
3209
- "type": {
3210
- "defined": "PositionState";
3211
- };
3212
- },
3213
- {
3214
- "name": "stakeType";
3215
- "type": {
3216
- "defined": "StakingType";
3217
- };
3218
- },
3219
- {
3220
- "name": "bump";
3221
- "type": "u8";
3222
- }
3223
- ];
3224
- };
3225
- },
3226
- {
3227
- "name": "compoundStakingPool";
3228
- "type": {
3229
- "kind": "struct";
3230
- "fields": [
3231
- {
3232
- "name": "hedgeRewardAccumulator";
3233
- "type": "u128";
3234
- },
3235
- {
3236
- "name": "minStakingPeriod";
3237
- "type": "u64";
3238
- },
3239
- {
3240
- "name": "deposits";
3241
- "type": "u64";
3242
- },
3243
- {
3244
- "name": "startTime";
3245
- "type": "u64";
3246
- },
3247
- {
3248
- "name": "stakedTokenMint";
3249
- "type": "publicKey";
3250
- }
3251
- ];
3252
- };
3253
- },
3254
2485
  {
3255
2486
  "name": "liquidationPoolEra";
3256
2487
  "type": {
@@ -3756,31 +2987,6 @@ export declare type Vault = {
3756
2987
  {
3757
2988
  "name": "bump";
3758
2989
  "type": "u8";
3759
- },
3760
- {
3761
- "name": "compoundPoolActive";
3762
- "type": "bool";
3763
- },
3764
- {
3765
- "name": "pad";
3766
- "type": {
3767
- "array": [
3768
- "u8",
3769
- 6
3770
- ];
3771
- };
3772
- },
3773
- {
3774
- "name": "ushDepositCounter";
3775
- "type": "u64";
3776
- },
3777
- {
3778
- "name": "totalUshDepositCounter";
3779
- "type": "u64";
3780
- },
3781
- {
3782
- "name": "compoundPoolDelegateWallet";
3783
- "type": "publicKey";
3784
2990
  }
3785
2991
  ];
3786
2992
  };
@@ -4023,14 +3229,6 @@ export declare type Vault = {
4023
3229
  {
4024
3230
  "name": "lastRedeemTimestamp";
4025
3231
  "type": "u64";
4026
- },
4027
- {
4028
- "name": "colFeeCounter";
4029
- "type": "u64";
4030
- },
4031
- {
4032
- "name": "totalColFeeCounter";
4033
- "type": "u64";
4034
3232
  }
4035
3233
  ];
4036
3234
  };
@@ -4381,20 +3579,6 @@ export declare type Vault = {
4381
3579
  ];
4382
3580
  };
4383
3581
  },
4384
- {
4385
- "name": "StakingType";
4386
- "type": {
4387
- "kind": "enum";
4388
- "variants": [
4389
- {
4390
- "name": "Standard";
4391
- },
4392
- {
4393
- "name": "Timelocked";
4394
- }
4395
- ];
4396
- };
4397
- },
4398
3582
  {
4399
3583
  "name": "CurrencyType";
4400
3584
  "type": {
@@ -4628,16 +3812,6 @@ export declare type Vault = {
4628
3812
  "index": false;
4629
3813
  }
4630
3814
  ];
4631
- },
4632
- {
4633
- "name": "PoolDepositRatioEvent";
4634
- "fields": [
4635
- {
4636
- "name": "poolDepositRatio";
4637
- "type": "u128";
4638
- "index": false;
4639
- }
4640
- ];
4641
3815
  }
4642
3816
  ];
4643
3817
  "errors": [
@@ -4723,7 +3897,7 @@ export declare type Vault = {
4723
3897
  },
4724
3898
  {
4725
3899
  "code": 6016;
4726
- "name": "PoolPositionNotYetClosed";
3900
+ "name": "PoolPositionNoYetClosed";
4727
3901
  "msg": "Pool position must be closed to claim reward";
4728
3902
  },
4729
3903
  {
@@ -4835,21 +4009,6 @@ export declare type Vault = {
4835
4009
  "code": 6038;
4836
4010
  "name": "OracleUpdateFailed";
4837
4011
  "msg": "OracleUpdateFailed";
4838
- },
4839
- {
4840
- "code": 6039;
4841
- "name": "PoolPositionTimelockPeriodNotExpired";
4842
- "msg": "Staking Pool Position timelock not expired";
4843
- },
4844
- {
4845
- "code": 6040;
4846
- "name": "PoolPositionOverClaim";
4847
- "msg": "Cannot overclaim pool positon.";
4848
- },
4849
- {
4850
- "code": 6041;
4851
- "name": "PoolPositionNotOpen";
4852
- "msg": "Pool Position not open";
4853
4012
  }
4854
4013
  ];
4855
4014
  };